/* ===================================================================
   IKNAUTIC — Stylesheet (Light Premium / estilo Webild)
   Navy #102A43 · Gold #C9A14A · Off-white #FFFFFF / #F4F5F7
   Tipografía: Inter Tight
   =================================================================== */

:root {
  --navy: #0E2235;
  --navy-deep: #0A1A29;
  --navy-soft: #1B3A57;
  --ink: #15212B;
  --ink-soft: #5B6B7A;
  --muted: #8A97A4;
  --gold: #C9A14A;
  --gold-light: #E2C383;

  --bg: #FFFFFF;
  --bg-soft: #F4F5F7;
  --bg-card: #FFFFFF;
  --line: #E7E9EE;
  --line-soft: #EFF1F4;

  --danger: #C0473E;
  --danger-soft: rgba(192, 71, 62, 0.06);
  --ok: #2D6F44;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;

  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --t: 280ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 520ms cubic-bezier(.4, 0, .2, 1);

  --shadow-pill: 0 8px 30px rgba(14, 34, 53, 0.10);
  --shadow-sm: 0 4px 16px rgba(14, 34, 53, 0.06);
  --shadow-md: 0 16px 44px rgba(14, 34, 53, 0.10);
  --shadow-lg: 0 30px 70px rgba(14, 34, 53, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.gold { color: var(--gold); }

/* ---------- Badge pill ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

/* ---------- Botones píldora ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 8px 7px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.btn-pill .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  transition: transform var(--t);
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:hover .btn-ico { transform: rotate(45deg); }

.btn-pill-dark {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-pill-dark:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-pill-dark .btn-ico { background: #fff; color: var(--navy); }

.btn-pill-light {
  background: var(--bg-soft);
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-pill-light:hover { background: #ECEEF2; }
.btn-pill-light .btn-ico { background: var(--navy); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  transition: gap var(--t), color var(--t);
}
.link-arrow:hover { gap: 12px; color: var(--gold); }

/* =================================================================
   NAVBAR PILL FLOTANTE
   ================================================================= */
.navbar {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  transition: top var(--t);
}
.nav-pill {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow var(--t), background var(--t), border-color var(--t);
}
.navbar.is-scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 38px rgba(14, 34, 53, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
  color: var(--navy);
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
}
.brand-footer .brand-logo { background: rgba(255, 255, 255, 0.10); color: var(--gold-light); }

.nav-links { margin-left: auto; }
.nav-links ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--navy); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.lang-btn {
  padding: 5px 11px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: background var(--t), color var(--t);
}
.lang-btn.is-active { background: var(--navy); color: #fff; }

.nav-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  flex-shrink: 0;
  transition: background var(--t), transform var(--t);
}
.nav-plus:hover { background: var(--navy-deep); transform: rotate(90deg); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   FONDO TOPOGRÁFICO SUTIL (global)
   ================================================================= */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/topo.jpg') center/cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  padding: 170px 0 90px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-title { color: var(--ink); margin-bottom: 22px; }
.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { display: flex; justify-content: center; }
.hero-card {
  width: 100%;
  max-width: 460px;
  padding: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 12px);
}

/* =================================================================
   SECCIONES
   ================================================================= */
.section { position: relative; padding: 100px 0; }
.section-light { background: var(--bg); }
.section-dark { background: var(--navy); color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head .section-sub { color: var(--ink-soft); font-size: 1.02rem; }
.section-head-light h2 { color: #fff; }
.section-head-light .section-sub { color: rgba(255, 255, 255, 0.72); }

/* =================================================================
   ACORDEÓN DE SERVICIOS
   ================================================================= */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.accordion-item.is-open {
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 161, 74, 0.4);
}
.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  text-align: left;
  color: var(--navy);
  transition: background var(--t);
}
.accordion-header:hover { background: var(--bg-soft); }
.accordion-index {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 26px;
}
.accordion-title { font-size: 1.32rem; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy);
  flex-shrink: 0;
  transition: transform var(--t-slow), background var(--t), color var(--t);
}
.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
  background: var(--gold);
  color: #fff;
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), opacity var(--t-slow);
}
.accordion-item.is-open .accordion-content { opacity: 1; }
.accordion-inner { padding: 4px 28px 32px 74px; color: var(--ink-soft); }
.accordion-inner > p:first-child { margin-top: 0; }

.accordion-inner ul { list-style: none; margin: 12px 0 4px; padding: 0; }
.accordion-inner ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.95rem;
}
.accordion-inner ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 11px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.accordion-inner h4 {
  margin: 26px 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---- Sub-acordeón (subtítulos desplegables) ---- */
.subaccordion {
  margin: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.subaccordion-item { border-bottom: 1px solid var(--line); }
.subaccordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  transition: color var(--t);
}
.subaccordion-header:hover { color: #9C7B2E; }
.sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy);
  flex-shrink: 0;
  transition: transform var(--t), background var(--t), color var(--t);
}
.subaccordion-item.is-open .sub-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: #fff;
}
.subaccordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), opacity var(--t-slow);
}
.subaccordion-item.is-open .subaccordion-content { opacity: 1; }
.subaccordion-content ul { margin: 2px 0 16px !important; }

.badge-gold {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(201, 161, 74, 0.12);
  border: 1px solid rgba(201, 161, 74, 0.32);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9C7B2E;
}

.auth-block {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}
.auth-block h5 {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--navy);
}
.auth-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.auth-grid span {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* =================================================================
   PROYECTOS (sección oscura) + FILTRO
   ================================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: all var(--t);
}
.filter-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.filter-btn.is-active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}
.project-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), background var(--t), opacity 400ms ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 161, 74, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.project-card.is-hidden { display: none; }
.project-card.is-fading { opacity: 0; }

.project-media {
  aspect-ratio: 16 / 10;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.project-media img { max-height: 100%; width: auto; }
.project-media-solid {
  background: linear-gradient(135deg, rgba(201, 161, 74, 0.22), rgba(14, 34, 53, 0.55));
}
.project-emoji { font-size: 3rem; }
/* Tarjetas con fotografía a sangre completa */
.project-media-photo { padding: 0; background: var(--navy-deep); }
.project-media-photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
/* Plano técnico sobre fondo blanco (se ve completo) */
.project-media-plan { background: #fff; padding: 14px; }
.project-media-plan img { width: 100%; height: 100%; max-height: none; object-fit: contain; }

.project-body { padding: 24px 24px 26px; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.project-body h3 { color: #fff; margin-bottom: 8px; }
.project-body p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin: 0; }

/* =================================================================
   NOSOTROS
   ================================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col-text h2 { margin: 14px 0 20px; }
.two-col-text p { color: var(--ink-soft); }
.two-col-art {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.two-col-art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat-num {
  display: block;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 4px;
}
.stat-label { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.4; }

/* =================================================================
   CONTACTO + FORMULARIO ASISTIDO
   ================================================================= */
.section-light.section { background: var(--bg-soft); }

/* Relieve topográfico muy sutil en secciones claras (como el hero) */
#contacto, #servicios { overflow: hidden; }
#contacto::before, #servicios::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/topo.jpg') center/cover no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
#servicios::before { opacity: 0.04; }
#contacto > .container,
#servicios > .container { position: relative; z-index: 1; }

/* Relieve en azul (líneas claras) para la sección oscura de Proyectos */
#proyectos { overflow: hidden; }
#proyectos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/topo.jpg') center/cover no-repeat;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
#proyectos > .container { position: relative; z-index: 1; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 44px 44px 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.form-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: rgba(201, 161, 74, 0.14);
}
.form-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 400ms cubic-bezier(.4, 0, .2, 1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}
.form-field { display: flex; flex-direction: column; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font-size: 0.84rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.req { color: var(--gold); margin-left: 2px; }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-msg {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 6px;
  height: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--t), transform var(--t), height var(--t);
}
.form-field.is-error input,
.form-field.is-error select,
.form-field.is-error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.form-field.is-error .form-msg { opacity: 1; height: auto; transform: translateY(0); }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.form-hint { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
#form-progress-text { color: var(--gold); font-weight: 700; }

.form-success {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(45, 111, 68, 0.08);
  border: 1px solid rgba(45, 111, 68, 0.28);
  border-radius: var(--radius-sm);
  color: var(--ok);
  font-weight: 500;
}

/* Tarjeta lateral de contacto (WhatsApp / datos) */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.contact-card h3 { color: #fff; margin-bottom: 6px; }
.contact-card p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.contact-card .qr {
  margin-top: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  width: 160px;
}
.contact-card .qr img { width: 100%; border-radius: 6px; }
.contact-meta { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.contact-meta a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 500;
}
.contact-meta a:hover { color: var(--gold-light); }
.contact-meta .ic { color: var(--gold); }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); padding: 70px 0 26px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-footer { color: #fff; }
.brand-footer .brand-name { color: #fff; font-size: 1.5rem; }
.footer-tag { margin-top: 12px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-cols h4 {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-cols p { margin: 0 0 7px; font-size: 0.92rem; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-bottom { padding-top: 24px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { max-width: none; }
  .hero-media { order: -1; }
  .hero-card { max-width: 420px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { flex-direction: row; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t), opacity var(--t);
  }
  .nav-links.is-open { display: block; transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links ul { flex-direction: column; gap: 14px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 140px 0 60px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 1.7rem; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 36px 22px 28px; }
  .accordion-header { padding: 20px 18px; gap: 14px; }
  .accordion-title { font-size: 1.1rem; }
  .accordion-inner { padding: 4px 18px 24px 52px; }
  .subaccordion-header { font-size: 0.95rem; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-pill { padding: 8px 10px 8px 14px; gap: 12px; }
  .brand-name { font-size: 1rem; }
}

@media (max-width: 420px) {
  .nav-links { right: 0; left: auto; min-width: 200px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-pill { justify-content: space-between; }
}
