/* ==========================================================================
   Aproges Sanxenxo · Asesoría Fiscal — hoja de estilos principal
   ========================================================================== */

:root {
  /* Paleta */
  --navy-950: #0a1c30;
  --navy-900: #0f2a47;
  --navy-800: #163a5f;
  --navy-700: #1f4a78;
  --navy-100: #e6ecf3;
  --gold-600: #b4863a;
  --gold-500: #c9a24b;
  --gold-400: #dbb96a;
  --gold-100: #f6ecd6;
  --ink: #1c2b3a;
  --ink-muted: #56697c;
  --ink-faint: #8494a5;
  --paper: #ffffff;
  --paper-alt: #f5f7fa;
  --paper-tint: #eef2f6;
  --border: #dfe5eb;
  --success: #1e7a4c;
  --error: #b3261e;

  /* Tipografía */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Ritmo y forma */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 42, 71, 0.08), 0 1px 2px rgba(15, 42, 71, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 42, 71, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 42, 71, 0.16);
  --header-h: 80px;
  --container-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

.section--tight {
  padding-block: 64px;
}

.section--alt {
  background: var(--paper-alt);
}

.section--navy {
  background: var(--navy-900);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.section--navy .eyebrow,
.hero .eyebrow {
  color: var(--gold-400);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.section--navy .lede {
  color: #c7d3df;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gold-400);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy-900);
  border-color: #fff;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* La difuminación vive en un pseudo-elemento (no en .site-header) para que
   .site-header no cree un containing block de "filter" y así el menú móvil
   (position: fixed) pueda anclarse correctamente al viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--navy-900);
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--paper-tint);
  color: var(--navy-900);
}

.main-nav a.is-active {
  color: var(--navy-900);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-900);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--gold-600);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--navy-900);
}

.nav-toggle .icon-close {
  display: none;
}

body.nav-open .nav-toggle .icon-menu {
  display: none;
}

body.nav-open .nav-toggle .icon-close {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 75, 0.18), transparent 45%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #fff;
  padding-block: 120px 100px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-400);
}

.hero-stat span {
  font-size: 0.85rem;
  color: #c7d3df;
}

.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(6px);
}

.hero-card ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #e7ecf2;
}

.hero-card li svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-400);
}

/* ---------- Aurora: fondo con movimiento suave (hero + page-banner) ---------- */
.hero-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
  will-change: transform;
}

.aurora-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(201, 162, 75, 0.55), transparent 70%);
  animation: aurora-drift-1 22s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 380px;
  height: 380px;
  bottom: -120px;
  right: 8%;
  background: radial-gradient(circle, rgba(31, 74, 120, 0.6), transparent 70%);
  animation: aurora-drift-2 27s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 260px;
  height: 260px;
  top: 25%;
  right: -70px;
  background: radial-gradient(circle, rgba(219, 185, 106, 0.4), transparent 70%);
  animation: aurora-drift-3 19s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, 35px) scale(1.08); }
}

@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-35px, -45px) scale(1.06); }
}

@keyframes aurora-drift-3 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-25px, 30px) scale(0.94); }
}

/* ---------- Page banner (páginas internas) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(201, 162, 75, 0.16), transparent 45%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: #fff;
  padding-block: 70px 60px;
}

.page-banner .container {
  position: relative;
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: #b9c6d4;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--gold-400);
}

.page-banner .lede {
  max-width: 620px;
  margin-top: 16px;
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-400);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gold-100);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-900);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* ---------- Servicio detallado ---------- */
.service-block {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 26px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block .card-icon {
  margin-bottom: 0;
}

.service-block h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.service-block p {
  color: var(--ink-muted);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.service-list li {
  font-size: 0.85rem;
  background: var(--paper-tint);
  border: 1px solid var(--border);
  color: var(--navy-800);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Valores / Por qué elegirnos ---------- */
.value-item {
  display: flex;
  gap: 18px;
}

.value-item .card-icon {
  margin-bottom: 0;
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.value-item p {
  color: var(--ink-muted);
  font-size: 0.93rem;
}

/* ---------- Historia / Sobre nosotros ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-media {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-media svg {
  width: 55%;
  color: rgba(255, 255, 255, 0.9);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat-row .stat {
  text-align: left;
  border-left: 3px solid var(--gold-500);
  padding-left: 16px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy-900);
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- CTA banda ---------- */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 8px;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 22px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-info-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a9b8c8;
  margin-bottom: 4px;
}

.contact-info-item .value {
  font-weight: 600;
}

.contact-info-item .placeholder {
  color: var(--gold-400);
  font-style: italic;
  font-weight: 500;
}

.map-embed {
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.form-field .required {
  color: var(--gold-600);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper-alt);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--navy-700);
  background: #fff;
  outline: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--error);
  background: #fdf1f0;
}

.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
}

.form-field.has-error .field-error {
  display: block;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.form-consent input {
  margin-top: 4px;
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  background: #e7f5ec;
  color: var(--success);
  border: 1px solid #bfe3cc;
}

.form-status.error {
  background: #fdecea;
  color: var(--error);
  border: 1px solid #f5c6c2;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #c7d3df;
  padding-block: 64px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
}

.footer-brand .brand-name,
.footer-brand .brand-tag {
  color: #fff;
}

.footer-brand .brand-tag {
  color: var(--gold-400);
}

.footer-about {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #a9b8c8;
  max-width: 320px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: #b9c6d4;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--gold-400);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #b9c6d4;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--gold-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8494a5;
}

.footer-bottom a:hover {
  color: var(--gold-400);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

/* ---------- Utilidades ---------- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: 48px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 8px 16px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-500);
  color: var(--navy-950);
  padding: 12px 20px;
  z-index: 999;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Aparición al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid > .reveal:nth-child(1),
.split > .reveal:nth-child(1),
.contact-grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2),
.split > .reveal:nth-child(2),
.contact-grid > .reveal:nth-child(2) { transition-delay: 120ms; }
.grid > .reveal:nth-child(3) { transition-delay: 140ms; }
.grid > .reveal:nth-child(4) { transition-delay: 210ms; }
.grid > .reveal:nth-child(5) { transition-delay: 280ms; }
.grid > .reveal:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .aurora {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-media {
    min-height: 280px;
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  body.nav-open .main-nav a {
    padding: 16px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  body.nav-open .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 720px) {
  .section {
    padding-block: 60px;
  }

  .grid-3,
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block: 96px 70px;
  }

  .hero-stats {
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .hero-actions,
  .cta-band .btn {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-card,
  .contact-info-card {
    padding: 28px 22px;
  }
}
