/* ============================================================
   GEOLERIC CONSULTANTS — ABOUT PAGE STYLESHEET
   Font: Jost (300 / 400 / 500)
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --fs-h1: clamp(34px, 4.6vw, 52px);
  --fs-h2: clamp(26px, 3.2vw, 38px);
  --fs-h3: clamp(20px, 1.9vw, 26px);
  --fs-h4: 20px;
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-body: 1.72;

  --brand-blue:   #2CB2E2;
  --brand-yellow: #FBB03B;
  --brand-red:    #E61C24;
  --brand-ink:    #0F1214;
  --brand-coal:   #212529;
  --brand-mist:   #F8F9FA;
  --brand-navy:   #101820;
  --wa-green:     #25D366;
  --wa-green-h:   #1EBE5D;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  scroll-padding-top: 6rem;
  scroll-behavior: smooth;
}

body {
  font-weight: 300;
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--brand-coal);
  background: #FFFFFF;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- TYPOGRAPHY ---------- */
h1, .h1 { font-size: var(--fs-h1); font-weight: 500; line-height: var(--lh-tight); letter-spacing: -0.028em; color: var(--brand-ink); margin: 0; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.18; letter-spacing: -0.022em; color: var(--brand-ink); margin: 0; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-snug); letter-spacing: -0.014em; color: var(--brand-ink); margin: 0; }
h4, h5, h6, .h4 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.35; letter-spacing: -0.008em; color: var(--brand-ink); margin: 0; }

p, li, .body-text { font-weight: 300; line-height: var(--lh-body); letter-spacing: 0.004em; }

::selection { background: var(--brand-blue); color: #FFFFFF; }

/* ---------- COMPONENTS ---------- */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--brand-coal);
  text-decoration: none;
  transition: color .3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -7px;
  width: 100%; height: 1.5px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .38s var(--ease);
}
.nav-link:hover { color: var(--brand-blue); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--brand-blue); }
.nav-link.is-active::after { transform: scaleX(1); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.045em;
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all .4s var(--ease);
  will-change: transform;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-blue); color: #FFFFFF; box-shadow: 0 10px 26px -12px rgba(44,178,226,.75); }
.btn-primary:hover { background: #1E9DCB; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(44,178,226,.85); }
.btn-accent { background: var(--brand-yellow); color: var(--brand-ink); box-shadow: 0 10px 26px -12px rgba(251,176,59,.75); }
.btn-accent:hover { background: #F59E20; transform: translateY(-2px); }
.btn-ghost { background: #FFFFFF; color: var(--brand-ink); border: 1px solid rgba(15,18,20,.14); }
.btn-ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); transform: translateY(-2px); }

.hairline { height: 1px; background: rgba(15,18,20,.08); }

.dot-grid {
  background-image: radial-gradient(rgba(44,178,226,.22) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---------- MOBILE DRAWER LINKS ---------- */
.drawer-link {
  font-size: 17px;
  font-weight: 400;
  color: #FFFFFF;
  padding: 10px 0;
  transition: color .3s ease;
  text-decoration: none;
  display: block;
}
.drawer-link:hover { color: var(--brand-blue); }

.drawer-sub {
  font-size: 14px;
  font-weight: 300;
  color: #9CA3AF;
  padding: 8px 0 8px 14px;
  border-left: 1px solid rgba(255,255,255,.10);
  transition: all .3s ease;
  text-decoration: none;
  display: block;
}
.drawer-sub:hover { color: var(--brand-blue); border-left-color: var(--brand-blue); padding-left: 18px; }

/* ============================================================
   HERO — FULL BACKGROUND IMAGE, 60vh MAX
   ============================================================ */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  max-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand-ink);
}

.about-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: saturate(0.9) contrast(1.05);
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(15, 18, 20, 0.35) 0%,
      rgba(15, 18, 20, 0.55) 45%,
      rgba(15, 18, 20, 0.88) 100%
    );
  pointer-events: none;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 48px;
}

@media (min-width: 1024px) {
  .about-hero { min-height: 520px; }
  .about-hero-content { padding-bottom: 64px; }
}

@media (max-width: 640px) {
  .about-hero {
    min-height: 420px;
    max-height: 60vh;
  }
  .about-hero-content { padding-bottom: 36px; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   DISCIPLINE TABS (Planning / GIS / Environment)
   ============================================================ */
.disc-tab {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 22px 0;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(15,18,20,.10);
  cursor: pointer;
  transition: all .35s var(--ease);
}
.disc-tab:last-of-type { border-bottom: 1px solid rgba(15,18,20,.10); }

.disc-tab .disc-num {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(15,18,20,.35);
  transition: color .35s ease;
}
.disc-tab .disc-name {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: rgba(15,18,20,.55);
  transition: color .35s ease, letter-spacing .35s ease;
}
.disc-tab .disc-underline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--brand-blue);
  transition: width .5s var(--ease);
}

.disc-tab:hover .disc-name { color: rgba(15,18,20,.85); }

.disc-tab.is-active .disc-num  { color: var(--brand-blue); }
.disc-tab.is-active .disc-name { color: var(--brand-ink); letter-spacing: -0.02em; }
.disc-tab.is-active .disc-underline { width: 100%; }

/* Discipline panel crossfade */
.disc-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .55s var(--ease),
              transform .55s var(--ease),
              visibility 0s linear .55s;
}
.disc-panel.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .55s var(--ease),
              transform .55s var(--ease),
              visibility 0s;
}

/* ============================================================
   SPATIAL LAYER TOGGLES
   ============================================================ */
.layer-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all .35s ease;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.layer-toggle:last-of-type { border-bottom: none; }

.layer-toggle:hover { color: rgba(255,255,255,.9); }

.layer-toggle .layer-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,.15);
  transition: all .35s ease;
  flex-shrink: 0;
}
.layer-toggle.is-on {
  color: #FFFFFF;
}
.layer-toggle.is-on .layer-dot {
  background: var(--layer-color, var(--brand-blue));
  box-shadow: 0 0 12px var(--layer-color, var(--brand-blue));
}
.layer-toggle .layer-status {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.35);
  transition: color .35s ease;
}
.layer-toggle.is-on .layer-status {
  color: var(--layer-color, var(--brand-blue));
}

/* SVG layer groups */
.map-layer {
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.map-layer.is-on {
  opacity: 1;
}

/* ============================================================
   METHOD (scroll-driven)
   ============================================================ */
.method-step {
  position: relative;
  padding: 28px 0 28px 28px;
  border-left: 1px solid rgba(15,18,20,.10);
  transition: all .5s var(--ease);
  cursor: pointer;
}
.method-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 34px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid rgba(15,18,20,.20);
  transition: all .5s var(--ease);
}
.method-step .method-num {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: rgba(15,18,20,.35);
  transition: color .4s ease;
}
.method-step .method-name {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(15,18,20,.45);
  transition: all .5s var(--ease);
}
.method-step .method-desc {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(15,18,20,.42);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .55s var(--ease);
}

.method-step.is-active { padding-left: 36px; }
.method-step.is-active::before {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 5px rgba(44,178,226,.15);
  transform: scale(1.1);
}
.method-step.is-active .method-num  { color: var(--brand-blue); }
.method-step.is-active .method-name { color: var(--brand-ink); font-size: 22px; }
.method-step.is-active .method-desc {
  max-height: 160px;
  opacity: 1;
  color: rgba(15,18,20,.62);
}

/* ============================================================
   PRINCIPLES (scroll reveal, staggered)
   ============================================================ */
.principle {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.principle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   AUDIENCE SELECTOR
   ============================================================ */
.aud-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: transparent;
  border: 1px solid rgba(15,18,20,.08);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(15,18,20,.55);
  cursor: pointer;
  transition: all .4s var(--ease);
}
.aud-btn:hover {
  border-color: rgba(44,178,226,.4);
  color: var(--brand-ink);
}
.aud-btn.is-active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  box-shadow: 0 20px 40px -20px rgba(15,18,20,.4);
}
.aud-panel {
  display: none;
}
.aud-panel.is-active {
  display: block;
  animation: audIn .55s var(--ease);
}
@keyframes audIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LAYER ILLUSTRATION MINI MAP
   ============================================================ */
.layer-map {
  background: linear-gradient(135deg, #0B0E10 0%, #141A1E 100%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}

/* ============================================================
   FLOATING WHATSAPP — DESKTOP ONLY
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 45;
  height: 56px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: var(--wa-green);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow:
    0 14px 30px -10px rgba(37, 211, 102, .60),
    0 4px 14px rgba(15, 18, 20, .10);
  transition: all .35s var(--ease);
  text-decoration: none;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: var(--wa-green);
  opacity: 0.22;
  z-index: -1;
  animation: waPulse 2.6s var(--ease) infinite;
}

.whatsapp-float:hover {
  background: var(--wa-green-h);
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 20px 40px -12px rgba(37, 211, 102, .70),
    0 6px 18px rgba(15, 18, 20, .12);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.22; }
  70%  { transform: scale(1.15); opacity: 0;    }
  100% { transform: scale(1.15); opacity: 0;    }
}

/* ============================================================
   MOBILE STICKY CTA — WhatsApp green
   ============================================================ */
.wa-mobile {
  background: var(--wa-green);
  color: #FFFFFF;
}
.wa-mobile:hover {
  background: var(--wa-green-h);
}

/* ============================================================
   FOOTER + DRAWER SOCIAL ICONS
   ============================================================ */
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.65);
  transition: all .3s var(--ease);
  text-decoration: none;
}
.social-icon:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .principle {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .disc-panel,
  .method-step,
  .aud-panel {
    transition: none !important;
  }
  .whatsapp-float::before { display: none; }
}
/* ============================================================
   FLOATING WHATSAPP — DESKTOP ONLY
   Overrides the base .whatsapp-float display:flex rule below 1024px
   ============================================================ */
@media (max-width: 1023.98px) {
  .whatsapp-float {
    display: none !important;
  }
}