/* ===== EKWIS Design System ===== */
:root {
  --cerulean: #004BFF;
  --cerulean-dark: #0039CC;
  --cerulean-light: #E8EFFF;
  --storm: #1A1A2E;
  --storm-light: #2D2D44;
  --cool-grey: #F5F7FA;
  --cool-grey-dark: #E8ECF1;
  --cirrus: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #555570;
  --text-light: #7A7A8E;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--cirrus);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cerulean);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--cerulean-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--cerulean);
  color: #fff;
}

.btn-primary:hover {
  background: var(--cerulean-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: #fff;
  color: var(--cerulean);
}

.btn-white:hover {
  background: var(--cool-grey);
  color: var(--cerulean-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cerulean);
  border: 2px solid var(--cerulean);
}

.btn-outline:hover {
  background: var(--cerulean);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Header / Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cerulean);
  text-decoration: none;
}

.logo svg {
  width: 120px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--cerulean);
  background: var(--cerulean-light);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  position: relative;
  top: -3px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--cool-grey);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 192px; /* 120px + 72px header height */
  padding-bottom: 120px;
  background-color: #032D60; /* Salesforce Dark Blue */
  color: #FFFFFF;
  text-align: left;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero .hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 16px;
  
  /* Animation */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #FFFFFF; /* White for better visibility on dark bg */
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  
  /* Animation */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  
  /* Animation */
  opacity: 0;
  animation: fadeInRight 1s ease-out forwards;
  animation-delay: 0.8s;
}

.hero-logo {
  max-width: 100%;
  height: auto;
  max-height: 550px; /* Increased to match text block height */
}

/* Remove the old background pseudo-element if not needed, or update it */
.hero::before {
  display: none; 
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  max-width: 600px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #FFFFFF; /* White text for dark background */
  background: none;
  -webkit-text-fill-color: initial;
  
  /* Animation */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9); /* Light text */
  line-height: 1.8;
  
  /* Animation */
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

.btn-outline-light {
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.btn-outline-light:hover {
  background: #FFFFFF;
  color: #032D60;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero {
    padding-top: 120px; /* Reduce top padding on mobile */
    padding-bottom: 60px;
  }
  
  .hero .hero-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .hero-content {
    display: contents; /* Flatten the structure to reorder children */
  }

  .hero-label {
    order: 1;
    justify-content: center;
    margin-bottom: 0;
    width: 100%;
    /* Hide the line on mobile if it causes layout issues or simply to tighten space */
  }
  
  .hero-label::after {
    display: none;
  }

  .hero h1 {
    order: 2;
    margin-top: 0; /* Create specific reset just in case */
    margin-bottom: 8px; /* Further reduce from 12px */
    font-size: 2rem; /* slightly smaller to fit better */
    line-height: 1.1;
  }


  .hero p {
    order: 3;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    order: 4; /* Logo in the middle */
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 32px;
    width: 100%;
    display: flex; /* Ensure it behaves as a container for centering */
  }
  
  .hero-image img {
    max-height: 200px; /* Reduce size on mobile if needed */
  }
  
  .hero-actions {
    order: 5; /* Buttons at the bottom */
    justify-content: center;
    margin-top: 0;
    width: 100%;
    display: flex; /* Ensure flex layout is preserved */
  }
}



/* ===== Section Styles ===== */
.section {
  padding: 100px 0;
}

.section-grey {
  background: var(--cool-grey);
}

.section-blue {
  background: var(--cerulean-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--cerulean);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ===== Service Cards ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cerulean);
}

.service-icon {
  background: transparent;
  color: var(--cerulean);
  margin-bottom: 24px;
  display: inline-block;
  width: auto;
  height: auto;
}

.service-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.service-card .learn-more {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card .learn-more::after {
  content: "\2192";
  transition: var(--transition);
}

.service-card:hover .learn-more::after {
  transform: translateX(4px);
}

/* ===== Features / Why Choose ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
}

.feature-icon {
  background: transparent;
  width: auto;
  height: auto;
  margin: 0 auto 24px;
  color: var(--cerulean);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.feature-card h4 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
}

/* Five-column features variant */
.features-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.features-grid-5 .feature-card {
  padding: 32px 16px;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px; /* Reduced from 24px to sit closer to button */
  font-style: italic;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--cerulean);
  
  /* Truncation */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-quote.expanded {
  -webkit-line-clamp: unset;
  display: block; /* Remove webkit-box to allow normal flow if needed, or just let unset handle it */
}

/* Wrapper to hold quote + expected button */
.testimonial-quote-wrapper {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--cerulean);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  margin-left: 24px; /* Align with text padding */
  font-size: 0.9rem;
  display: inline-block;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--cerulean-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--cerulean);
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-title {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--cerulean) 0%, var(--cerulean-dark) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Endcap background graphic for all pages */
.home-endcap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(860px 460px at 86% 12%, rgba(70, 82, 255, 0.64), rgba(70, 82, 255, 0) 70%),
    radial-gradient(600px 320px at 8% 4%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 68%),
    linear-gradient(135deg, #05070f 0%, #070d28 40%, #16206b 100%);
}

.home-endcap::before,
.home-endcap::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(198, 210, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}

.home-endcap::before {
  width: 980px;
  height: 420px;
  top: -180px;
  right: -120px;
  transform: rotate(-8deg);
}

.home-endcap::after {
  width: 760px;
  height: 320px;
  bottom: 40px;
  left: -140px;
  transform: rotate(8deg);
}

.home-endcap .footer {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

/* ===== Footer ===== */
.footer {
  background: var(--storm);
  color: #fff;
  padding: 140px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand-column {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  margin: 0;
}

.footer-logo {
  display: block;
  padding: 0;
  margin: 0;
}

.footer-logo img {
  height: auto;
  width: auto;
  max-width: 200px;
  max-height: 300px;
  margin: 0;
  padding: 0;
  display: block;
  margin-left: -40px;
}

.footer-cta-column {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-cta-heading {
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.footer-cta-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.footer-cta-btn-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-cta-linkedin {
  display: none;
}

.footer-cta-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #ffffff;
  border-radius: 50px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-cta-btn:hover {
  background: #ffffff;
  color: #0a1628;
}

.footer-links-column {
  text-align: right;
  min-width: 200px; /* Prevent it from being too squshed */
}

.footer-links-column h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-right: 4px; /* Subtle movement on hover */
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
  width: 100%;
}

.footer-bottom {
  display: flex;
  justify-content: space-between; /* Copyright left, social right */
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Update social link styles for the new location */
.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--cerulean);
  transform: translateY(-2px);
}

/* Existing footer styles to be replaced/removed or overridden above */
/*
.footer-grid { ... }
.footer-brand .logo { ... }
*/

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Remove old footer-grid override */

  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* ... existing styles ... */
  
  .footer-content {
    flex-direction: column;
    text-align: left;
    gap: 40px;
  }

  .footer-brand-column {
    display: none;
  }

  .footer-links-column {
    display: none;
  }

  .footer-cta-column {
    width: 100%;
    align-items: stretch;
  }

  .footer-cta-btn-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .footer-cta-btn {
    flex: 1;
    text-align: center;
    box-sizing: border-box;
  }

  .footer-cta-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
  }

  .footer-bottom .footer-social {
    display: none;
  }
}


.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--cerulean);
}

.footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--cool-grey) 0%, #fff 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== About Page ===== */
.mission-section {
  background: var(--cerulean-light);
  padding: 80px 0;
}

.mission-section p {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.history-section {
  padding: 100px 0;
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.history-content h2 {
  margin-bottom: 20px;
}

.history-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.partner-badge {
  max-width: 300px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form h3 {
  margin-bottom: 8px;
}

.contact-form > p {
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--cool-grey);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cerulean);
  box-shadow: 0 0 0 3px rgba(0, 75, 255, 0.1);
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 32px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.why-reach-out {
  background: var(--cool-grey);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 32px;
}

.why-reach-out h4 {
  margin-bottom: 16px;
}

.why-reach-out ul {
  list-style: none;
  padding: 0;
}

.why-reach-out li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.why-reach-out li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cerulean);
  font-weight: 700;
}

/* ===== Case Studies Page ===== */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-study-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--cerulean);
}

.case-study-image {
  height: 200px;
  background: var(--cerulean-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--cerulean);
  font-weight: 700;
}

.case-study-content {
  padding: 28px;
}

.case-study-tag {
  display: inline-block;
  background: var(--cerulean-light);
  color: var(--cerulean);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.case-study-content h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.case-study-meta span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.case-study-meta strong {
  color: var(--text-primary);
}

.case-study-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-tag {
  background: var(--cool-grey);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ===== Insights Page ===== */
.insights-filters {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 20px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cool-grey);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--cerulean);
  box-shadow: 0 0 0 3px rgba(0, 75, 255, 0.1);
  background: #fff;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--cerulean);
  color: #fff;
  border-color: var(--cerulean);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.article-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.6s ease-out, opacity 0.6s ease-out, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.article-card:nth-child(1) { transition-delay: 0s; }
.article-card:nth-child(2) { transition-delay: 0.12s; }
.article-card:nth-child(3) { transition-delay: 0.24s; }
.article-card:nth-child(4) { transition-delay: 0.36s; }
.article-card:nth-child(5) { transition-delay: 0.48s; }
.article-card:nth-child(6) { transition-delay: 0.6s; }
.article-card:nth-child(7) { transition-delay: 0.72s; }

.articles-grid.revealed .article-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-image {
  height: 200px;
  background: var(--cerulean-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cerulean);
  font-size: 2.5rem;
}

.article-content {
  padding: 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-category {
  background: var(--cerulean-light);
  color: var(--cerulean);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-content p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.read-more {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more::after {
  content: "\2192";
  transition: var(--transition);
}

.article-card:hover .read-more::after {
  transform: translateX(4px);
}

/* ===== Insight Article Pages ===== */
.insight-article-page .page-hero.article-hero {
  padding: 128px 0 64px;
  background: #f5f7fa;
  border-bottom: 1px solid #ebeff5;
}

.insight-article-page .article-hero .article-hero-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.insight-article-page .article-hero h1 {
  max-width: 1080px;
  margin: 0 auto 18px;
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
  color: #1b1f39;
}

.insight-article-page .article-hero p {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  line-height: 1.55;
  color: #59607a;
}

.insight-article-page .article-body-section {
  padding: 64px 0 96px;
}

.insight-article-page .article-body-wrapper {
  max-width: 980px;
}

.insight-article-page .article-body-content {
  border-top: 1px solid #cfd6e4;
  padding-top: 52px;
}

.insight-article-page .article-body-content p {
  margin: 0 0 26px;
  color: #565f78;
  font-size: clamp(1.05rem, 1.2vw, 1.45rem);
  line-height: 1.55;
}

.insight-article-page .article-body-content h2 {
  margin: 44px 0 20px;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: #1a1f39;
}

.insight-article-page .article-body-content h3 {
  margin: 32px 0 14px;
  font-size: clamp(1.45rem, 2.1vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
  color: #1a1f39;
}

.insight-article-page .article-body-content ul,
.insight-article-page .article-body-content ol {
  margin: 10px 0 28px;
  padding-left: 28px;
}

.insight-article-page .article-body-content li {
  margin-bottom: 12px;
  color: #565f78;
  font-size: clamp(1.02rem, 1.1vw, 1.35rem);
  line-height: 1.5;
}

.insight-article-page .article-back-link {
  margin-top: 34px;
}

/* ===== Services Detail ===== */
.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

.service-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cerulean);
  font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* .footer-grid is deprecated, removed */

  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insight-article-page .article-hero h1 {
    max-width: 900px;
  }

  .insight-article-page .article-body-wrapper {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  /* Footer Mobile Styles */
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-links-column {
    text-align: left;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }

  .nav, .nav-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .header.mobile-nav-open {
    bottom: 0;
    height: 100dvh;
    height: 100vh;
  }

  .header.mobile-nav-open .container {
    flex-wrap: wrap;
    height: 100%;
    align-content: start;
  }

  .mobile-nav-open .nav {
    display: flex;
    flex-direction: column;
    order: 3;
    width: 100%;
    padding: 16px 0;
    gap: 0;
  }

  .mobile-nav-open .nav a {
    font-size: 1.15rem;
    padding: 14px 16px;
    border-bottom: 1px solid #E0E4EA;
    text-align: left;
    margin: 0;
    border-radius: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-open .nav a:hover,
  .mobile-nav-open .nav a:active {
    background: var(--cool-grey);
  }

  .mobile-nav-open .nav-dropdown {
    display: contents;
  }

  .mobile-nav-open .nav-dropdown > a {
    display: none;
  }

  .mobile-nav-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    width: 100%;
  }

  .mobile-nav-open .dropdown-menu a {
    font-size: 1.15rem;
    padding: 14px 16px;
    border-radius: 0;
    border-bottom: 1px solid #E0E4EA;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }

  .mobile-nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    order: 4;
    width: 100%;
    gap: 12px;
  }

  .mobile-nav-open .nav-actions .btn {
    text-align: center;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .testimonials-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-studies-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .insight-article-page .page-hero.article-hero {
    padding: 112px 0 50px;
  }

  .insight-article-page .article-hero p {
    font-size: 1.35rem;
    line-height: 1.55;
  }

  .insight-article-page .article-body-section {
    padding: 48px 0 72px;
  }

  .insight-article-page .article-body-content {
    padding-top: 34px;
  }

  .insight-article-page .article-body-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .insight-article-page .article-body-content h2 {
    margin: 34px 0 16px;
    font-size: 2rem;
  }

  .insight-article-page .article-body-content h3 {
    margin: 24px 0 12px;
    font-size: 1.45rem;
  }

  .insight-article-page .article-body-content li {
    font-size: 1.15rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid-5 { grid-template-columns: 1fr; }
}

/* ===== Team Section ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.team-card {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--cerulean-light);
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background-color: var(--cool-grey-dark);
  border: 4px solid var(--cerulean-light);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.team-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--cerulean);
  margin-bottom: 16px;
}

.team-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (ma
/* ===== Team Section ==-grid.team-grid {
  display: grid; r  display: r)  grid-template (  gap: 32px;
  margin-top: 40px;
}

.tegr  margin-to-c}

.team-card {
  
