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

/* ---------- DESIGN TOKENS ---------- */
:root {
  --fs-h1: clamp(38px, 5.4vw, 60px);
  --fs-h2: clamp(28px, 3.4vw, 42px);
  --fs-h3: clamp(20px, 1.9vw, 26px);
  --fs-h4: 20px;
  --lh-tight: 1.08;
  --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.16; 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;
}

.text-\[11px\], .text-xs, p.small { letter-spacing: 0.015em; }

::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 32px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .4s var(--ease);
  will-change: transform;
  line-height: 1;
  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); box-shadow: 0 18px 34px -14px rgba(251,176,59,.8); }

.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); }

.btn-dark-ghost { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.22); }
.btn-dark-ghost:hover { background: #FFFFFF; color: var(--brand-ink); border-color: #FFFFFF; transform: translateY(-2px); }

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

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

.img-zoom { overflow: hidden; position: relative; }
.img-zoom img { transition: transform 1s var(--ease); will-change: transform; }
.img-zoom:hover img { transform: scale(1.06); }

/* ---------- FORM FIELDS ---------- */
.field-light {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 300;
  font-family: inherit;
  line-height: 1.5;
  background: #FFFFFF;
  border: 1px solid rgba(15,18,20,.10);
  color: var(--brand-ink);
  transition: all .3s var(--ease);
}
.field-light::placeholder { color: #9CA3AF; font-weight: 300; }
.field-light:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(44,178,226,.12); }

/* ---------- SIGNATURE STRIP ---------- */
.sig-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15,18,20,.55);
}
.sig-strip > span { padding: 0 22px; position: relative; }
.sig-strip > span + span::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 12px;
  background: rgba(15,18,20,.18);
}
.sig-strip > span:first-child { padding-left: 0; }
.sig-strip > span:last-child { padding-right: 0; }

/* ---------- MOBILE DRAWER LINKS ---------- */
.drawer-link { font-size: 17px; font-weight: 400; letter-spacing: 0.01em; color: #FFFFFF; padding: 10px 0; transition: color .3s ease; }
.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;
}
.drawer-sub:hover { color: var(--brand-blue); border-left-color: var(--brand-blue); padding-left: 18px; }

/* ============================================================
   ★ NEW: 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;    }
}

/* ============================================================
   ★ NEW: MOBILE STICKY WHATSAPP BUTTON (GREEN)
   ============================================================ */
.wa-mobile {
  background: var(--wa-green);
  color: #FFFFFF;
}
.wa-mobile:hover {
  background: var(--wa-green-h);
}

/* ============================================================
   ★ NEW: FOOTER 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;
}

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

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .whatsapp-float::before { display: none; }
}

/* ============================================================
   ★ CINEMATIC VIDEO HERO — GEOLERIC
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #081523;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-placeholder,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  z-index: 1;
  transform: scale(1.03);
  filter: saturate(0.9) contrast(1.05) brightness(0.75);
}

.hero-video {
  z-index: 2;
  filter: saturate(0.85) contrast(1.05) brightness(0.72);
}

/* Main dark cinematic overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.88) 0%, rgba(5, 12, 22, 0.70) 38%, rgba(5, 12, 22, 0.38) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.36) 100%);
}

/* Soft vignette */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 50%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 30%),
    radial-gradient(circle at center, rgba(0,0,0,0) 45%, rgba(0,0,0,0.32) 100%);
}

/* Bottom fade into next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(8,21,35,0) 0%, rgba(8,21,35,0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(92%, 720px);
  margin-left: clamp(20px, 6vw, 90px);
  color: #fff;
  padding-top: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.95rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.92);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  stroke: var(--brand-blue);
  flex-shrink: 0;
}

.hero-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 6vw, 4rem);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: 12ch;
  text-wrap: balance;
}

.hero-content p {
  margin: 0 0 1.8rem;
  max-width: 560px;
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

/* Override the primary button for the hero — cyan, not the default */
.hero .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 54px;
  padding: 0.95rem 1.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #3BBEF0 0%, var(--brand-blue) 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 30px rgba(44, 178, 226, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #4ECBFA 0%, #1E9DCB 100%);
  box-shadow:
    0 16px 38px rgba(44, 178, 226, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.hero .btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.hero .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-meta svg {
  width: 14px;
  height: 14px;
  stroke: var(--brand-blue);
  flex-shrink: 0;
}

/* Vertical accent line */
.hero-accent {
  position: absolute;
  left: clamp(20px, 4vw, 42px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2px;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--brand-blue), rgba(255,255,255,0));
  opacity: 0.9;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .hero {
    min-height: 86svh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-accent { display: none; }
  .hero-content {
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 0 1.4rem;
  }
  .hero-content h1 {
    max-width: 12ch;
    font-size: clamp(2.5rem, 7.5vw, 4.2rem);
    line-height: 0.98;
    margin-bottom: 0.9rem;
  }
  .hero-content p {
    max-width: 44ch;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 80svh;
    padding: 0;
  }
  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(4, 10, 18, 0.40) 0%,
        rgba(4, 10, 18, 0.58) 28%,
        rgba(4, 10, 18, 0.82) 62%,
        rgba(4, 10, 18, 0.96) 100%
      );
  }
  .hero-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .hero-badge {
    margin: 0 auto 0.9rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }
  .hero-content h1 {
    max-width: 14ch;
    margin: 0 auto 0.85rem;
    font-size: clamp(2.2rem, 9vw, 3.1rem);
    line-height: 1.01;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 8px 30px rgba(0,0,0,0.22);
  }
  .hero-content p {
    max-width: 31ch;
    margin: 0 auto 1.2rem;
    font-size: 0.94rem;
    line-height: 1.58;
    text-align: center;
  }
  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    min-height: 50px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    border-radius: 16px;
    justify-content: center;
  }
  .hero-meta {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    justify-items: center;
  }
  .hero-meta span {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    padding: 0.62rem 0.8rem;
    border-radius: 14px;
  }
  .hero::after { height: 64px; }
}

@media (max-width: 420px) {
  .hero-content { padding: 0 0.9rem; }
  .hero-content h1 {
    max-width: 15ch;
    font-size: clamp(2rem, 9.5vw, 2.5rem);
    line-height: 1.02;
  }
  .hero-content p {
    max-width: 29ch;
    font-size: 0.9rem;
    line-height: 1.55;
  }
  .hero .btn-primary,
  .hero .btn-secondary {
    min-height: 48px;
    font-size: 0.86rem;
    border-radius: 14px;
  }
}

/* ============================================================
   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: #25D366;
  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 cubic-bezier(.4, 0, .2, 1);
  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: #25D366;
  opacity: 0.22;
  z-index: -1;
  animation: waPulse 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
.whatsapp-float:hover {
  background: #1EBE5D;
  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;    }
}

/* ============================================================
   FOOTER 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 cubic-bezier(.4, 0, .2, 1);
  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;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { display: none; }
}
