/* =============================================================
   SINCO — Servicios Integrales de Construcción
   Archetype: Brutalist Grid (adapted warm) · Blueprint system
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --cream:      #f5f2eb;
  --cream-2:    #ede9e0;
  --cream-3:    #ddd9d0;
  --teal:       #1a7a8a;
  --teal-dark:  #155f6d;
  --teal-light: #22a0b4;
  --navy:       #2c3e50;
  --navy-light: #3d5166;
  --navy-deep:  #1e2d3d;
  --ink:        #14181d;   /* warm near-black for dramatic sections */
  --ink-soft:   #1a1a1a;
  --muted:      #6b7280;
  --line:       rgba(20, 24, 29, 0.14);
  --line-strong:rgba(20, 24, 29, 0.30);
  --line-light: rgba(245, 242, 235, 0.16);
  --grid:       rgba(26, 122, 138, 0.07);

  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --wrap: 1280px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --nav-h: 78px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--cond); text-wrap: balance; line-height: 0.98; letter-spacing: -0.01em; font-weight: 800; }
::selection { background: var(--teal); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem; background: var(--navy); color: var(--cream);
  z-index: 9999; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--teal); font-weight: 500;
}
.kicker-tick {
  width: 26px; height: 2px; background: var(--teal); display: inline-block;
}

.section-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--navy-deep);
  margin-bottom: 1.4rem;
}
.section-title em { font-style: normal; color: var(--teal); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; color: #3a4452; margin-bottom: 1.1rem; max-width: 52ch; }

.link-underline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--cond); font-weight: 700; font-size: 1.15rem;
  color: var(--teal); border-bottom: 2px solid var(--teal);
  padding-bottom: 2px; transition: gap 0.25s var(--ease-out);
}
.link-underline:hover { gap: 1rem; }

/* Section heads — numbered, brutalist */
.section-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 1.1rem; margin-bottom: 3rem;
}
.section-index {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500; color: var(--teal); line-height: 1;
  font-family: var(--mono);
}
.section-head .kicker { color: var(--muted); }
.section-head-dark { border-color: var(--line-light); }
.section-head-dark .section-index { color: var(--teal-light); }
.section-head-dark .kicker { color: rgba(245,242,235,0.55); }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--cond); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 0.95rem 1.7rem; transition: all 0.25s var(--ease-out);
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--navy-deep); }
.btn-solid span { transition: transform 0.25s var(--ease-out); }
.btn-solid:hover span { transform: translateX(4px); }
.btn-ghost { border: 2px solid var(--line-strong); color: var(--navy); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { width: 100%; justify-content: center; padding-block: 1.1rem; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--navy-deep);
  display: none; place-items: center;
  animation: splashSafety 0.01s 4.5s forwards;
}
.js .splash { display: grid; }
.splash.is-out {
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.splash-inner { text-align: center; padding: 2rem; }
.splash-logo {
  width: 150px; margin: 0 auto 1.6rem;
  filter: brightness(0) invert(1);
  opacity: 0; animation: fadeIn 0.6s 0.1s forwards;
}
.splash-bar {
  width: 220px; height: 2px; background: rgba(255,255,255,0.14);
  margin: 0 auto 1.1rem; overflow: hidden;
}
.splash-bar span {
  display: block; height: 100%; width: 0; background: var(--teal-light);
  animation: splashLoad 1.6s var(--ease-out) forwards;
}
.splash-meta { color: rgba(245,242,235,0.5); font-size: 0.66rem; letter-spacing: 0.22em; }
@keyframes splashLoad { to { width: 100%; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; visibility: hidden; } }
@keyframes fadeIn { to { opacity: 1; } }

/* =============================================================
   6. CAD coordinate HUD (signature)
   ============================================================= */
.coords {
  position: fixed; left: 0; top: 0; z-index: 60;
  display: flex; gap: 0.7rem;
  padding: 0.3rem 0.55rem;
  background: var(--navy-deep); color: var(--teal-light);
  font-size: 0.64rem; letter-spacing: 0.06em;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease-out);
}
.coords.is-ready { opacity: 0.92; }

/* =============================================================
   6b. Hexagon background (rotates on scroll)
   ============================================================= */
.bg-hex {
  position: fixed; inset: 0; z-index: 0;
  display: grid; place-items: center;
  pointer-events: none; overflow: hidden;
}
.bg-hex img {
  width: min(82vw, 720px); height: auto;
  opacity: 0.04; will-change: transform;
  transform: rotate(0deg);
}
/* Lift all real content above the hexagon layer */
main, .footer { position: relative; z-index: 1; }

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--cond); font-weight: 600; font-size: 1.05rem;
  color: var(--navy); display: inline-flex; align-items: baseline; gap: 0.4rem;
  position: relative; padding-bottom: 3px; transition: color 0.2s var(--ease-out);
}
.nav-links a .mono { font-size: 0.62rem; color: var(--teal); font-weight: 500; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--teal); transition: width 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-cta {
  display: none;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  font-size: 0.95rem; letter-spacing: 0.02em;
  background: var(--teal); color: #fff; padding: 0.7rem 1.3rem;
  transition: background 0.2s var(--ease-out);
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--navy); transition: all 0.25s var(--ease-out);
}
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: flex; flex-direction: column;
  background: var(--cream); border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.nav.is-open .nav-drawer { max-height: 420px; }
.nav-drawer a {
  font-family: var(--cond); font-weight: 600; font-size: 1.2rem; color: var(--navy);
  padding: 1rem var(--pad); border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.nav-drawer a .mono { font-size: 0.7rem; color: var(--teal); }
.nav-drawer-cta { background: var(--teal); color: #fff !important; justify-content: center; }

/* =============================================================
   8. Hero
   ============================================================= */
.blueprint {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3.5rem));
  border-bottom: 1px solid var(--line);
}
.hero-wrap {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero-copy { max-width: 620px; }
.hero-title {
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  color: var(--navy-deep); margin: 1.4rem 0 1.6rem;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: normal; color: var(--teal); }
.hero-lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 300; color: #36404e; margin-bottom: 1.2rem; max-width: 46ch; }
.hero-lead strong { font-weight: 600; color: var(--navy-deep); }
.hero-sub {
  font-size: 0.72rem; letter-spacing: 0.12em; color: var(--teal-dark);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-figure {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--cream-2);
}
.hero-figure img {
  width: 100%; height: clamp(320px, 46vw, 540px); object-fit: cover;
  filter: saturate(1.04) contrast(1.03);
}
.hero-figure figcaption {
  position: absolute; bottom: 0; left: 0;
  background: var(--navy-deep); color: var(--teal-light);
  font-size: 0.62rem; letter-spacing: 0.1em; padding: 0.35rem 0.7rem;
}
.hero-tag {
  position: absolute; z-index: 2;
  font-size: 0.6rem; letter-spacing: 0.1em; color: var(--navy-deep);
  background: var(--cream); padding: 0.25rem 0.5rem; border: 1px solid var(--line-strong);
}
.hero-tag-tl { top: 0.7rem; left: 0.7rem; }
.hero-tag-br { top: 0.7rem; right: 0.7rem; }

.hero-stats {
  border-top: 1px solid var(--line);
  background: rgba(44, 62, 80, 0.035);
}
.hero-stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.stat {
  padding: 1.5rem var(--pad); text-align: left;
  border-bottom: 1px solid var(--line);
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat-num {
  font-family: var(--cond); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--teal); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.4rem; }

/* =============================================================
   9. Nosotros
   ============================================================= */
.about { padding: clamp(4rem, 9vw, 7rem) 0; }
.about-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.about-copy p { margin-bottom: 1.1rem; color: #3a4452; }
.about-copy .link-underline { margin-top: 0.6rem; }

.lean-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); }
.lean-block {
  position: relative; padding: 1.8rem; border-bottom: 1px solid var(--line);
  background: var(--cream); transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.lean-block:last-child { border-bottom: 0; }
.lean-num { font-size: 0.7rem; color: var(--teal); letter-spacing: 0.1em; }
.lean-block h3 { font-size: 1.55rem; color: var(--navy-deep); margin: 0.5rem 0 0.6rem; transition: color 0.3s var(--ease-out); }
.lean-block p { font-size: 0.92rem; color: var(--muted); font-weight: 400; transition: color 0.3s var(--ease-out); }

/* hover-invert (signature) */
.invert-block:hover { background: var(--teal); }
.invert-block:hover .lean-num { color: rgba(255,255,255,0.7); }
.invert-block:hover h3 { color: #fff; }
.invert-block:hover p { color: rgba(255,255,255,0.9); }

/* =============================================================
   10. Servicios (dark)
   ============================================================= */
.services {
  background: var(--ink); color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative; overflow: hidden;
}
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(34,160,180,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,160,180,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.services > .wrap { position: relative; }
.services .section-title { color: var(--cream); }
.services-intro { max-width: 620px; margin-bottom: 3rem; }
.services-intro .lead { color: rgba(245,242,235,0.6); }

.services-grid {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line-light);
}
.service {
  position: relative; padding: 2rem 1.8rem 2.2rem;
  border-bottom: 1px solid var(--line-light);
  transition: background 0.3s var(--ease-out);
}
.service-tag {
  position: absolute; top: 1.4rem; right: 1.4rem;
  font-size: 0.58rem; letter-spacing: 0.12em; color: var(--teal-light);
  border: 1px solid rgba(34,160,180,0.4); padding: 0.2rem 0.5rem;
}
.service-num { font-size: 0.7rem; color: rgba(245,242,235,0.4); letter-spacing: 0.1em; }
.service h3 { font-size: 1.7rem; color: var(--cream); margin: 0.7rem 0 0.7rem; max-width: 18ch; }
.service p { font-size: 0.92rem; color: rgba(245,242,235,0.6); font-weight: 400; max-width: 42ch; }
.service::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--teal-light); transition: width 0.35s var(--ease-out);
}
.service:hover { background: rgba(34,160,180,0.06); }
.service:hover::after { width: 100%; }

.service-cta {
  display: block; background: var(--teal); color: #fff;
}
.service-cta .service-num { color: rgba(255,255,255,0.7); font-size: 1.4rem; }
.service-cta h3 { color: #fff; }
.service-cta p { color: rgba(255,255,255,0.85); }
.service-cta-link { display: inline-block; margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.12em; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 2px; }
.service-cta:hover { background: var(--teal-dark); }
.service-cta::after { display: none; }

/* =============================================================
   11. Proyectos
   ============================================================= */
.projects { padding: clamp(4rem, 9vw, 7rem) 0; background: transparent; }
.projects-intro { max-width: 620px; margin-bottom: 2rem; }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filter {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 1rem; border: 1px solid var(--line-strong); color: var(--navy);
  transition: all 0.2s var(--ease-out);
}
.filter:hover { border-color: var(--teal); color: var(--teal); }
.filter.is-active { background: var(--navy-deep); color: var(--cream); border-color: var(--navy-deep); }

.projects-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.project { background: var(--cream); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.project.is-hidden { display: none; }
.project-img { position: relative; overflow: hidden; aspect-ratio: 16 / 11; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-soft), filter 0.4s var(--ease-out); }
.project:hover .project-img img { transform: scale(1.05); filter: saturate(1.12); }
.project-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--teal); color: #fff; font-size: 0.58rem; letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
}
.project-body { padding: 1.5rem 1.5rem 1.8rem; }
.project-id { font-size: 0.66rem; color: var(--teal); letter-spacing: 0.1em; }
.project-body h3 { font-size: 1.5rem; color: var(--navy-deep); margin: 0.4rem 0 0.6rem; }
.project-body p { font-size: 0.9rem; color: var(--muted); font-weight: 400; }

/* =============================================================
   12. Contacto
   ============================================================= */
.contact { padding: clamp(4rem, 9vw, 7rem) 0; background: transparent; }
.contact-intro { max-width: 620px; margin-bottom: 3rem; }
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }

.info-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem;
  padding: 1.3rem 0; border-top: 1px solid var(--line);
}
.info-row:first-child { border-top: 0; padding-top: 0; }
.info-label { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--teal); padding-top: 0.3rem; }
.info-row a { display: block; color: var(--navy-deep); font-size: 1.05rem; transition: color 0.2s var(--ease-out); }
.info-row a:hover { color: var(--teal); }
.info-row p { color: #3a4452; font-weight: 400; }

.wa-card {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem;
  padding: 1.2rem; border: 1px solid rgba(37, 211, 102, 0.4);
  background: rgba(37, 211, 102, 0.07); transition: background 0.25s var(--ease-out);
}
.wa-card:hover { background: rgba(37, 211, 102, 0.14); }
.wa-card svg { width: 30px; height: 30px; color: #1ebe5c; flex-shrink: 0; }
.wa-card strong { display: block; font-family: var(--cond); font-size: 1.15rem; color: var(--navy-deep); }
.wa-card em { font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* Form */
.contact-form { border: 1px solid var(--line-strong); background: var(--cream); padding: clamp(1.4rem, 3vw, 2.2rem); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.field { display: block; }
.field-label { display: block; font-size: 0.64rem; letter-spacing: 0.1em; color: var(--navy); margin-bottom: 0.45rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink-soft);
  background: var(--cream-2); border: 1px solid var(--line); padding: 0.8rem 0.9rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa3ad; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(26,122,138,0.12);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-error { color: #c0392b; font-size: 0.72rem; margin-bottom: 1rem; }
.form-note { font-size: 0.62rem; color: var(--muted); text-align: center; margin-top: 0.9rem; letter-spacing: 0.04em; }
.btn-block.is-loading { opacity: 0.65; pointer-events: none; }

.form-success {
  border: 1px solid var(--teal); background: var(--cream);
  padding: clamp(2rem, 5vw, 3rem); text-align: center;
}
.success-mark {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; background: var(--teal); color: #fff;
  font-size: 1.6rem; margin-bottom: 1rem;
}
.form-success h3 { font-size: 2rem; color: var(--navy-deep); margin-bottom: 0.6rem; }
.form-success p { color: var(--muted); font-weight: 400; max-width: 40ch; margin-inline: auto; }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { background: var(--navy-deep); color: var(--cream); }
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad);
  border-bottom: 1px solid var(--line-light);
}
.footer-brand img { height: 38px; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(245,242,235,0.55); font-weight: 300; max-width: 32ch; margin-bottom: 1.3rem; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: rgba(255,255,255,0.08); transition: background 0.2s var(--ease-out);
}
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h4 { font-size: 0.66rem; letter-spacing: 0.14em; color: rgba(245,242,235,0.9); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col a { display: block; font-size: 0.9rem; color: rgba(245,242,235,0.6); padding: 0.35rem 0; transition: color 0.2s var(--ease-out); font-weight: 400; }
.footer-col a:hover { color: var(--teal-light); }
.footer-label { font-size: 0.58rem; letter-spacing: 0.1em; color: rgba(245,242,235,0.4); margin: 0.9rem 0 0.2rem; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.3rem var(--pad);
}
.footer-bottom p { font-size: 0.62rem; color: rgba(245,242,235,0.35); letter-spacing: 0.04em; }

/* =============================================================
   14. Floating WhatsApp
   ============================================================= */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80;
  width: 56px; height: 56px; background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  animation: waPulse 2.6s ease-in-out infinite;
  transition: transform 0.2s var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; color: #fff; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.35), 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 8px 24px rgba(37,211,102,0.35), 0 0 0 14px rgba(37,211,102,0); }
}

/* =============================================================
   15. Reveal (scroll)
   ============================================================= */
/* Reveal only hides when JS is active — no-JS users see all content */
.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: split-text reveals must never stay invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .hero-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-right: 1px solid var(--line); border-bottom: 0; }
  .stat:last-child { border-right: 0; }
  .lean-grid { grid-template-columns: 1fr 1fr; }
  .lean-block:nth-child(odd) { border-right: 1px solid var(--line); }
  .lean-block:nth-child(3), .lean-block:nth-child(4) { border-bottom: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(odd) { border-right: 1px solid var(--line-light); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .hero-wrap { grid-template-columns: 1.05fr 0.95fr; }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .service:nth-child(odd) { border-right: 0; }
  .service:not(:nth-child(3n)) { border-right: 1px solid var(--line-light); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}

@media (min-width: 1280px) {
  .lean-block { padding: 2.1rem; }
}

/* =============================================================
   17. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
  .splash-bar span { animation-duration: 0.4s; }
  /* hover, reveal, invert, count-up all keep working */
}
