/* ═══════════════════════════════════════════════════════════
   DuoQuim Consultoria Ambiental — Premium CSS Design System
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─── */
:root {
  /* Brand colors (from logo) */
  --blue-900: #0D2B52;
  --blue-800: #1A3F6F;
  --blue-700: #1E4D8C;
  --blue-600: #2563AE;
  --blue-500: #3378C5;
  --blue-400: #5B96D6;
  --blue-100: #E8F0FB;
  --blue-50:  #F0F5FD;

  --green-800: #1B5E36;
  --green-700: #217A43;
  --green-600: #289452;
  --green-500: #2EAD61;
  --green-400: #4CC47A;
  --green-200: #A8E6BF;
  --green-100: #E0F5E9;
  --green-50:  #F0FAF4;

  /* Neutrals */
  --white:     #FFFFFF;
  --gray-50:   #F7F9FC;
  --gray-100:  #EEF2F7;
  --gray-200:  #DDE4EF;
  --gray-300:  #C4CFE0;
  --gray-400:  #9AACBF;
  --gray-500:  #6B7D92;
  --gray-600:  #4A5A6B;
  --gray-700:  #2F3D4E;
  --gray-800:  #1C2733;
  --gray-900:  #111820;

  /* Typography */
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --fw-light:  300;
  --fw-regular:400;
  --fw-medium: 500;
  --fw-semi:   600;
  --fw-bold:   700;
  --fw-extra:  800;

  /* Spacing — calibrated for viewport-fit */
  --section-py: clamp(48px, 7vh, 80px);
  --section-py-sm: clamp(32px, 5vh, 56px);

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13,43,82,.06), 0 1px 2px rgba(13,43,82,.04);
  --shadow-sm:  0 2px 8px rgba(13,43,82,.08), 0 1px 3px rgba(13,43,82,.06);
  --shadow-md:  0 4px 20px rgba(13,43,82,.10), 0 2px 8px rgba(13,43,82,.06);
  --shadow-lg:  0 8px 40px rgba(13,43,82,.14), 0 4px 16px rgba(13,43,82,.08);
  --shadow-xl:  0 16px 64px rgba(13,43,82,.18), 0 8px 24px rgba(13,43,82,.10);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 200ms;
  --dur-base: 320ms;
  --dur-slow: 480ms;
  --dur-slower: 640ms;
}

/* ─── 2. RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-regular);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
svg { flex-shrink: 0; }

/* ─── 3. CONTAINER ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── 4. BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semi);
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px) !important; }

/* Primary */
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--green-600);
  border-color: var(--green-600);
  box-shadow: 0 6px 24px rgba(42,157,88,.35);
  transform: translateY(-2px);
}

/* Outline white (for dark backgrounds) */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-white:hover, .btn-outline-white:focus-visible {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* CTA button */
.btn-cta {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
  font-size: 1.0625rem;
  padding: 18px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.btn-cta:hover, .btn-cta:focus-visible {
  background: var(--green-500);
  color: var(--white);
  border-color: var(--green-500);
  box-shadow: 0 8px 32px rgba(42,173,97,.4);
  transform: translateY(-3px);
}

/* Sizes */
.btn-lg  { padding: 16px 36px; font-size: 1rem; }
.btn-sm  { padding: 10px 20px; font-size: 0.875rem; }
.btn-form{ width: 100%; padding: 15px; font-size: 1rem; justify-content: center; }

/* ─── 5. SECTION TYPOGRAPHY ─── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: 16px;
}
.section-tag--white {
  color: var(--green-200);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: var(--fw-extra);
  color: var(--gray-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.0625rem;
  font-weight: var(--fw-regular);
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.75;
}
.section-subtitle--white { color: rgba(255,255,255,.75); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .section-subtitle { margin-inline: auto; }

/* ─── 6. AOS ANIMATIONS ─── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slower) var(--ease-out),
    transform var(--dur-slower) var(--ease-out);
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-aos="fade-right"] { transform: translateX(-28px); }
[data-aos="fade-right"].aos-visible { transform: translateX(0); }
[data-aos="fade-left"]  { transform: translateX(28px); }
[data-aos="fade-left"].aos-visible  { transform: translateX(0); }
[data-aos-delay="80"]  { transition-delay: 80ms; }
[data-aos-delay="120"] { transition-delay: 120ms; }
[data-aos-delay="160"] { transition-delay: 160ms; }
[data-aos-delay="240"] { transition-delay: 240ms; }

/* ─── 7. HEADER ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition:
    background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    padding var(--dur-base) var(--ease-out);
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(13,43,82,.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--dur-base) var(--ease-out);
}
.site-header.scrolled .header-inner { height: 68px; }

.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: filter var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
  filter: brightness(0) invert(1);
}
.site-header.scrolled .logo-img {
  filter: none;
  height: 42px;
}

.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--green-400);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
  transform-origin: left;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--white); }
.site-header.scrolled .nav-link {
  color: var(--gray-600);
}
.site-header.scrolled .nav-link:hover { color: var(--blue-700); }
.site-header.scrolled .nav-link::after { background: var(--blue-600); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-link {
  color: rgba(255,255,255,.80);
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.icon-link:hover { color: var(--white); background: rgba(255,255,255,.12); }
.site-header.scrolled .icon-link { color: var(--gray-500); }
.site-header.scrolled .icon-link:hover { color: var(--blue-700); background: var(--blue-50); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base), width var(--dur-base);
}
.site-header.scrolled .hamburger span { background: var(--gray-700); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px 28px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-link {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mobile-link:hover { background: var(--blue-50); color: var(--blue-700); }
.mobile-cta {
  margin-top: 12px;
  display: block;
  text-align: center;
  border-radius: var(--radius-full);
}

/* ─── 8. HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 140px; /* space for wave (~120px) + breathing room */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,43,82,.85) 0%,
    rgba(26,63,111,.74) 40%,
    rgba(27,122,67,.52) 100%
  );
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
}
.hero-wave svg { width: 100%; display: block; }

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding-top: clamp(32px, 6vh, 64px);
  padding-bottom: clamp(16px, 3vh, 32px);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--green-200);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  margin-bottom: clamp(14px, 2vh, 22px);
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--fw-extra);
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: clamp(14px, 2.5vh, 22px);
}
.hero-title em {
  font-style: normal;
  color: var(--green-400);
}
.hero-text {
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: rgba(255,255,255,.82);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: clamp(24px, 4vh, 36px);
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ─── 9. STATS BAR ─── */
.stats-bar {
  background: var(--white);
  padding: clamp(24px, 3.5vh, 36px) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.stat-num {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: var(--fw-extra);
  color: var(--blue-700);
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: var(--fw-medium);
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ─── 10. SERVICES ─── */
.services {
  background: var(--gray-50);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
  position: relative;
}
.section-curve-top {
  position: absolute;
  top: -1px; left: 0; right: 0;
}
.section-curve-top svg { width: 100%; display: block; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: clamp(28px, 4vh, 40px);
}

/* Each card spans 2 of 6 columns → 3 per row */
.cards-grid .service-card {
  grid-column: span 2;
}

/* 4th and 5th card: center them by starting at col 2 and 4 */
.cards-grid .service-card:nth-child(4) {
  grid-column: 2 / 4;
}
.cards-grid .service-card:nth-child(5) {
  grid-column: 4 / 6;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vh, 36px) clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--green-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-100);
}
.service-card:hover::before { transform: scaleX(1); }

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue-700);
  transition: background var(--dur-base), color var(--dur-base);
}
.service-card:hover .card-icon-wrap {
  background: var(--green-50);
  border-color: var(--green-200);
  color: var(--green-600);
}
.card-icon-wrap svg { width: 26px; height: 26px; }

.card-title {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--gray-800);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.card-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.card-footer { margin-top: auto; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: var(--fw-semi);
  color: var(--blue-700);
  transition: color var(--dur-fast), gap var(--dur-base);
}
.card-link:hover { color: var(--green-600); gap: 10px; }

.section-cta { text-align: center; }

/* ─── 11. DIFFERENTIALS ─── */
.differentials {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 55%, var(--green-800) 100%);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.diff-bg-shape {
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.diff-text { display: flex; flex-direction: column; align-items: flex-start; }
.diff-cta { margin-top: 36px; }

.diff-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.diff-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: background var(--dur-base), border-color var(--dur-base);
}
.diff-item:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}
.diff-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(46,173,97,.20);
  border: 1px solid rgba(46,173,97,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-400);
  flex-shrink: 0;
}
.diff-icon svg { width: 16px; height: 16px; }
.diff-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.diff-item p {
  font-size: 0.75rem;
  color: rgba(255,255,255,.60);
  line-height: 1.55;
}

/* ─── 12. ABOUT ─── */
.about {
  background: var(--white);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-image-col { display: flex; justify-content: center; }
.about-img-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  aspect-ratio: 3/4;
  max-height: 58vh;
  box-shadow: var(--shadow-xl);
}
.about-img-badge {
  position: absolute;
  bottom: 28px;
  left: -24px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  color: var(--blue-800);
  border: 1px solid var(--gray-100);
}
.about-img-badge svg { color: var(--green-600); }

.about-text-col { display: flex; flex-direction: column; }

.about-highlight {
  font-size: 1rem;
  font-weight: var(--fw-semi);
  color: var(--blue-800);
  line-height: 1.5;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--green-500);
}
.about-body {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}
.about-body:last-of-type { margin-bottom: 20px; }

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: var(--fw-semi);
  color: var(--blue-800);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}
.value-pill svg { color: var(--green-600); }

/* ─── 13. TEAM ─── */
.team {
  background: var(--gray-50);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin-inline: auto;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vh, 36px) clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--blue-100), 0 4px 20px rgba(13,43,82,.15);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.team-name {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--gray-800);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.team-role {
  display: block;
  font-size: 0.8125rem;
  font-weight: var(--fw-semi);
  color: var(--green-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.team-bio {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.team-socials { display: flex; gap: 8px; margin-top: auto; }
.team-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.team-social-link:hover {
  background: var(--blue-700);
  color: var(--white);
  border-color: var(--blue-700);
}

/* ─── 14. CTA SECTION ─── */
.cta-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 45%, var(--green-800) 100%);
  z-index: 0;
}
.cta-bg::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,173,97,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin-inline: auto;
}
.cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 2px solid rgba(255,255,255,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: clamp(16px, 3vh, 28px);
  color: var(--green-400);
}
.cta-icon svg { width: 26px; height: 26px; }
.cta-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: var(--fw-extra);
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: clamp(12px, 2vh, 18px);
}
.cta-text {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: clamp(24px, 4vh, 36px);
}

/* ─── 15. CONTACT ─── */
.contact {
  background: var(--white);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-py) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}

/* WhatsApp card */
.contact-wa-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wa-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.wa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #25D366, #128C7E);
}

.wa-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #E8FAF0;
  border: 2px solid #B7EDD0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.wa-card-icon svg { width: 38px; height: 38px; }

.wa-card-title {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  color: var(--gray-800);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.wa-card-text {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 380px;
}

.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  font-size: 1.0625rem;
  padding: 16px 40px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.30);
}
.btn-wa:hover, .btn-wa:focus-visible {
  background: #128C7E;
  border-color: #128C7E;
  box-shadow: 0 8px 32px rgba(18,140,126,.40);
  transform: translateY(-3px);
}

.wa-card-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 14px;
}

/* Contact info */
.contact-info-title, .contact-form-title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--gray-800);
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-detail { display: flex; flex-direction: column; padding-top: 4px; }
.contact-label {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--gray-700);
  transition: color var(--dur-fast);
}
a.contact-value:hover { color: var(--blue-700); }

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

/* Contact form */
.contact-form-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: var(--fw-semi);
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-input, .form-textarea {
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  width: 100%;
  outline: none;
  resize: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37,99,174,.12);
}
.form-input.error, .form-textarea.error { border-color: #dc3545; }
.form-textarea { min-height: 140px; line-height: 1.6; }

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
  color: var(--green-700);
}
.form-success svg { margin-inline: auto; margin-bottom: 16px; stroke: var(--green-600); }
.form-success h4 {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--gray-800);
  margin-bottom: 8px;
}
.form-success p { color: var(--gray-500); font-size: 0.9375rem; }

/* ─── 16. FOOTER ─── */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.70);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,173,97,.08) 0%, transparent 70%);
  pointer-events: none;
}

.footer-wave {
  line-height: 0;
}
.footer-wave svg { width: 100%; display: block; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1.2fr;
  gap: 48px;
  padding-block: 60px 48px;
}

.footer-brand { display: flex; flex-direction: column; }
.footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 24px;
  color: rgba(255,255,255,.55);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: var(--fw-semi);
  color: var(--green-400);
  transition: color var(--dur-fast);
}
.footer-social:hover { color: var(--green-300, #7cdd9e); }

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-links ul,
.footer-services ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-services a {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--dur-fast), padding-left var(--dur-base);
}
.footer-links a:hover,
.footer-services a:hover {
  color: var(--green-400);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
}
.footer-contact svg { color: var(--green-400); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.55); transition: color var(--dur-fast); }
.footer-contact a:hover { color: var(--green-400); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}

/* ─── 17. BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    background var(--dur-fast),
    visibility var(--dur-base);
  opacity: 0;
  visibility: hidden;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--green-600);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* ─── 18. FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── 19. RESPONSIVE ─── */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  /* Remove full-viewport on tablet — let content breathe naturally */
  .services, .differentials, .about, .team, .cta-section, .contact {
    min-height: auto;
    padding: 64px 0;
  }

  .diff-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Services — 2 cols on tablet */
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cards-grid .service-card { grid-column: span 2; }
  .cards-grid .service-card:nth-child(4),
  .cards-grid .service-card:nth-child(5) { grid-column: span 2; }

  .diff-items { grid-template-columns: 1fr 1fr; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-col { order: -1; }
  .about-img-frame { max-width: 100%; }
  .about-img { aspect-ratio: 16/9; max-height: none; }

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

/* ── Mobile L ≤ 768px ── */
@media (max-width: 768px) {
  /* All sections: natural scroll on mobile */
  .services, .differentials, .about, .team, .cta-section, .contact {
    min-height: auto;
    padding: 56px 0;
  }

  /* Header */
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  /* Hero */
  .hero { min-height: 90svh; padding-bottom: 100px; }
  .hero-content { padding-top: 40px; padding-bottom: 16px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Stats */
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .stat-divider { display: none; }
  .stat-item {
    padding: 20px 12px;
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  /* Services — 1 col on mobile */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cards-grid .service-card,
  .cards-grid .service-card:nth-child(4),
  .cards-grid .service-card:nth-child(5) { grid-column: span 1; }
  .section-curve-top { display: none; }

  /* Differentials */
  .diff-items { grid-template-columns: 1fr; }
  .diff-cta { margin-top: 24px; }

  /* Team */
  .team-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  /* Back to top */
  .back-to-top { bottom: 20px; right: 20px; }
}

/* ── Mobile S ≤ 480px ── */
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero-title { font-size: 1.75rem; }
  .about-img-badge {
    left: 0;
    font-size: 0.75rem;
    padding: 8px 12px;
  }
}

/* ── Section header spacing — uniform tighter on desktop ── */
.section-header {
  margin-bottom: clamp(32px, 5vh, 48px);
}

