/* ============================================================
   AL DESPACHO DEL DIRECTOR — hoja de estilos v2
   Paleta óxido/metal con textura · Archivo Black + Space Grotesk
   ============================================================ */

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-black-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-variable.woff2') format('woff2-variations'), url('/assets/fonts/space-grotesk-variable.woff2') format('woff2');
}

:root {
  /* Paleta de marca v2 — metal oxidado */
  --oxide-bg: #0e0d0a;
  --oxide-bg-raised: #18160f;
  --oxide-green: #3d6357;
  --oxide-green-hi: #5a8577;
  --oxide-orange: #8a4a1f;
  --oxide-orange-hi: #c9762f;
  --oxide-amber: #d4a03a;
  --oxide-text: #f1e9dc;

  /* Roles semánticos */
  --bg: var(--oxide-bg);
  --bg-alt: var(--oxide-green);
  --surface: rgba(24, 22, 15, 0.62);
  --text: var(--oxide-text);
  --text-dim: rgba(241, 233, 220, 0.66);
  --text-faint: rgba(241, 233, 220, 0.42);
  --accent: var(--oxide-orange-hi);
  --accent-2: var(--oxide-green-hi);
  --amber: var(--oxide-amber);
  --border: rgba(241, 233, 220, 0.14);
  --border-strong: rgba(241, 233, 220, 0.28);
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  /* Degradado óxido — inspirado en pátina de cobre/bronce (rust → oro → verdín) */
  --gradient-oxide: linear-gradient(100deg, var(--oxide-orange-hi) 0%, var(--oxide-amber) 45%, var(--oxide-green-hi) 100%);
  --gradient-oxide-rich: linear-gradient(120deg, #a8501a 0%, #d4881f 24%, #d4a03a 46%, #7a9a89 72%, #3d6357 100%);

  /* Tipografía */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Ritmo */
  --container: 1240px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Browser surfaces (craft detail) ---------- */
::selection { background: var(--accent); color: var(--oxide-bg); }
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 1px;
}
html { scrollbar-color: var(--accent-2) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 6px; border: 2px solid var(--bg); }

/* ---------- Textura óxido (grano + gradientes en capas) ---------- */
/* Ningún fondo es un color sólido plano: se aplica una vez, fija, a toda la página. */
body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 46% at 10% 6%, rgba(90, 133, 119, 0.34), transparent 65%),
    radial-gradient(ellipse 50% 42% at 88% -4%, rgba(201, 118, 47, 0.32), transparent 62%),
    radial-gradient(ellipse 60% 50% at 96% 58%, rgba(61, 99, 87, 0.28), transparent 66%),
    radial-gradient(ellipse 55% 46% at 6% 72%, rgba(138, 74, 31, 0.30), transparent 64%),
    radial-gradient(ellipse 46% 40% at 58% 102%, rgba(212, 160, 58, 0.18), transparent 60%),
    conic-gradient(from 210deg at 50% 45%, rgba(61, 99, 87, 0.10), rgba(138, 74, 31, 0.12), rgba(14, 13, 10, 0) 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }

p { max-width: 62ch; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-dim);
  max-width: 46ch;
}

.mono-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

/* Degradado naranja → verde óxido directamente sobre el texto */
.text-gradient {
  background: var(--gradient-oxide-rich);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Naranja plano de la paleta — para palabras clave que no son "director" */
.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(14, 13, 10, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out);
}
.site-header[data-scrolled='true'] {
  border-bottom-color: var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }

.site-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  position: relative;
  padding-block: 4px;
  transition: color 200ms var(--ease-out);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 240ms var(--ease-out);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current='page'] { color: var(--text); }
.site-nav a[aria-current='page']::after { right: 0; background: var(--accent-2); }

/* ---------- Desplegable de Servicios ---------- */
.nav-item-dropdown { position: relative; }
.nav-caret {
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 5px;
  margin-bottom: 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 200ms var(--ease-out);
}
.nav-item-dropdown:hover .nav-caret,
.nav-item-dropdown:focus-within .nav-caret { transform: rotate(225deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 250px;
  margin-top: 0.85rem;
  padding: 0.5rem;
  background: rgba(24, 22, 15, 0.92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 180ms;
  z-index: 200;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  white-space: nowrap;
  border-radius: 4px;
}
.nav-dropdown a::after { display: none; }
.nav-dropdown a:hover { background: rgba(201, 118, 47, 0.12); color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  background: var(--accent);
  color: var(--oxide-bg);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform 160ms var(--ease-out), filter 200ms var(--ease-out);
}
.nav-cta:hover { filter: brightness(1.14); }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 220ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--oxide-bg); }
.btn-primary:hover { filter: brightness(1.14); }

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-2); background: rgba(90, 133, 119, 0.1); }

.btn-ghost { color: var(--text-dim); padding-inline: 0; }
.btn-ghost::after {
  content: '→';
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* Botón oficial de WhatsApp */
.btn-whatsapp-official {
  background: var(--whatsapp);
  color: #04150c;
  gap: 0.65rem;
}
.btn-whatsapp-official:hover { background: var(--whatsapp-dark); }
.btn-whatsapp-official svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  position: relative;
}

.hero-inner { padding-block: clamp(2.5rem, 6vw, 4rem); }

.hero h1 {
  font-size: clamp(2.75rem, 8.2vw, 6rem);
}

.hero-copy { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1rem; max-width: 52ch; }
.hero-copy p { color: var(--text-dim); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }

.hero-tagline {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

.hero-scroll {
  position: absolute;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-faint);
  font-size: 0.78rem;
}
.hero-scroll .line {
  width: 1px; height: 28px;
  background: linear-gradient(var(--text-faint), transparent);
  animation: scrollLine 1.8s var(--ease-in-out) infinite;
  flex-shrink: 0;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Page hero (páginas internas) ---------- */
.page-hero {
  min-height: auto;
  padding-top: calc(72px + 5rem);
  padding-bottom: 2rem;
}
.page-hero .hero-inner { padding-block: 0; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.page-hero .hero-sub { margin-top: 1.5rem; grid-template-columns: 1fr; }
.section-tight-top { padding-top: 0; }

.hero-sub {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 46ch) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.hero-sub p { color: var(--text-dim); font-size: clamp(1.02rem, 1.5vw, 1.2rem); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Sections ---------- */
section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-alt { background: rgba(61, 99, 87, 0.14); }
.section-surface { background: var(--surface); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p { color: var(--text-dim); }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---------- Tarjetas resumen (Home) — sin numerar ---------- */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.summary-card {
  position: relative;
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 260ms var(--ease-out), box-shadow 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.summary-card h3 { margin-bottom: 0.9rem; transition: color 260ms var(--ease-out); }
.summary-card p { color: var(--text-dim); font-size: 0.98rem; margin-bottom: 1.5rem; flex-grow: 1; }
.summary-card a.btn-ghost::before,
.service-row a.btn-ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .summary-card:hover,
  .summary-card:focus-within {
    background: rgba(201, 118, 47, 0.08);
    box-shadow: inset 0 0 0 1px rgba(201, 118, 47, 0.4), 0 0 36px rgba(201, 118, 47, 0.14);
    transform: translateY(-2px);
  }
  .summary-card:hover h3,
  .summary-card:focus-within h3 { color: var(--oxide-amber); }
}

/* ---------- Servicios: hub ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-row {
  position: relative;
  background: var(--bg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 260ms var(--ease-out), box-shadow 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.service-row h3 { margin-bottom: 0.9rem; transition: color 260ms var(--ease-out); }
.service-row p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
@media (hover: hover) and (pointer: fine) {
  .service-row:hover,
  .service-row:focus-within {
    background: rgba(201, 118, 47, 0.08);
    box-shadow: inset 0 0 0 1px rgba(201, 118, 47, 0.4), 0 0 36px rgba(201, 118, 47, 0.14);
    transform: translateY(-2px);
  }
  .service-row:hover h3,
  .service-row:focus-within h3 { color: var(--oxide-amber); }
}

/* ---------- Servicios: página dedicada ---------- */
.pillar-intro { padding-bottom: 0; }
.pillar-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  padding-top: 0;
}
.pillar-block h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.pillar-block ul { display: flex; flex-direction: column; gap: 0.75rem; }
.pillar-block li {
  color: var(--text-dim);
  font-size: 0.96rem;
  padding-left: 1.3rem;
  position: relative;
}
.pillar-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  background: var(--accent-2);
}
.pillar-block--no h4 { border-color: rgba(138, 74, 31, 0.4); }
.pillar-block--no li { color: var(--text-faint); }
.pillar-block--no li::before {
  background: none;
  width: 9px; height: 9px;
  top: 0.5em;
  border-left: 1.5px solid var(--oxide-orange-hi);
  border-top: 1.5px solid var(--oxide-orange-hi);
  transform: rotate(-45deg);
  opacity: 0.6;
}

/* ---------- Quote / authority block ---------- */
.authority {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.authority blockquote {
  font-family: var(--font-display);
  text-transform: none;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  max-width: 22ch;
}
.authority cite {
  display: block;
  margin-top: 1.75rem;
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ---------- Cita del Home ---------- */
.home-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  max-width: 38ch;
  margin-bottom: 3rem;
}
.home-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- FAQ (pregunta-respuesta) ---------- */
.faq { display: flex; flex-direction: column; gap: 2rem; max-width: 72ch; }
.faq-item h3 { font-family: var(--font-body); text-transform: none; font-weight: 600; font-size: 1.1rem; margin-bottom: 0.6rem; }
.faq-item p { color: var(--text-dim); }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.field label { font-size: 0.88rem; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  transition: border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(90, 133, 119, 0.06);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-error { font-size: 0.82rem; color: var(--accent); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.field.has-error .field-error { display: block; }

.field-consent { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.field-consent input { width: 17px; height: 17px; margin-top: 0.2rem; accent-color: var(--accent); flex-shrink: 0; }
.field-consent label { font-size: 0.85rem; color: var(--text-dim); }
.field-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(61, 99, 87, 0.3); border: 1px solid var(--oxide-green-hi); }
.form-status.is-error { background: rgba(138, 74, 31, 0.18); border: 1px solid var(--accent); }

.contact-alt {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
}
.contact-alt h3 { font-size: 1.3rem; }
.contact-alt p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { color: var(--text-dim); font-size: 0.94rem; transition: color 180ms var(--ease-out); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: var(--text-faint); transition: color 180ms var(--ease-out); }
.footer-legal a:hover { color: var(--text-dim); }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 132px; }
.legal-page h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 2.5rem; }
.legal-body { max-width: 72ch; display: flex; flex-direction: column; gap: 2rem; }
.legal-body h3 { font-family: var(--font-body); text-transform: none; font-weight: 600; font-size: 1.05rem; margin-bottom: 0.75rem; }
.legal-body p, .legal-body li { color: var(--text-dim); font-size: 0.98rem; max-width: 68ch; }
.legal-body ul { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.2rem; list-style: disc; }
.legal-body strong { color: var(--text); }
.legal-updated { color: var(--text-faint); font-size: 0.85rem; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .summary-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pillar-blocks { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}

@media (max-width: 780px) {
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100dvh - 72px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2.5rem var(--gutter);
    gap: 1.75rem;
    transform: translateX(100%);
    transition: transform 320ms var(--ease-in-out);
  }
  .site-nav[data-open='true'] { transform: translateX(0); }
  .site-nav a { font-size: 1.3rem; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-top: 0.5rem; }

  .nav-item-dropdown { width: 100%; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: none;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    margin: 0.75rem 0 0 0.25rem;
    padding: 0 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-dropdown a { font-size: 1rem; color: var(--text-dim); padding: 0; }
  .nav-caret { display: none; }

  .hero-sub { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
