/* ============================================
   Cerrajero en Altea — Premium Static Site
   Mobile First · Performance Optimized
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-dark: #0c0e12;
  --color-bg-card: #ffffff;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  --color-accent: #1a56db;
  --color-accent-hover: #1447b8;
  --color-accent-light: #eff6ff;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1fb855;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-gold: #b8956a;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
  --shadow-glow: 0 0 40px rgba(26,86,219,.15);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --header-h: 76px;
  --max-w: 1200px;
  --container-px: 1.625rem;
  --section-py: clamp(3rem, 8vw, 7rem);
}

@media (min-width: 768px) {
  :root {
    --container-px: 1.25rem;
    --section-py: clamp(4rem, 8vw, 7rem);
  }
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .75rem;
}

.section-title { margin-bottom: 1rem; }

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: max(var(--container-px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-px), env(safe-area-inset-right, 0px));
}

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-bg-dark);
  color: #f9fafb;
}
.section--dark .section-desc { color: #9ca3af; }
.section--dark .section-label { color: var(--color-gold); }

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-header .section-desc { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(26,86,219,.3);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.btn--ghost {
  color: var(--color-text);
  padding: .625rem 1rem;
}
.btn--ghost:hover { color: var(--color-accent); }

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--sm { padding: .625rem 1.25rem; font-size: .875rem; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
}

.logo__img {
  width: auto;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.logo__text {
  font-weight: 800;
  font-size: clamp(.625rem, 1.8vw, .875rem);
  letter-spacing: .035em;
  line-height: 1.15;
  color: var(--color-text);
  white-space: nowrap;
}

.logo__text-accent {
  color: var(--color-accent);
}

.logo--footer .logo__text {
  color: #f3f4f6;
}

.logo--footer .logo__text-accent {
  color: #60a5fa;
}

.logo--footer .logo__img {
  height: 44px;
}

.footer__brand .logo--footer {
  flex-wrap: wrap;
  row-gap: .375rem;
}

@media (min-width: 768px) {
  .logo--footer .logo__img {
    height: 48px;
  }
}

.header__inner .logo {
  max-width: calc(100% - 52px);
}

@media (min-width: 768px) {
  :root {
    --header-h: 80px;
  }

  .logo__img {
    height: 54px;
  }

  .logo__text {
    font-size: .875rem;
    letter-spacing: .04em;
  }
}

@media (min-width: 1024px) {
  .logo__img {
    height: 58px;
  }

  .logo__text {
    font-size: .9375rem;
  }

  .header__inner .logo {
    max-width: 420px;
  }
}

@media (max-width: 374px) {
  .logo__img {
    height: 42px;
  }

  .logo__text {
    font-size: .5625rem;
    letter-spacing: .03em;
  }
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav__link {
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover { color: var(--color-text); background: var(--color-bg-alt); }

/* Nav dropdown — Cobertura */
.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  cursor: pointer;
}

.nav__dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav__dropdown.is-open .nav__dropdown-icon,
.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: max-content;
  min-width: 440px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 1001;
}

.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -.75rem;
  left: 0;
  right: 0;
  height: .75rem;
}

.nav__dropdown.is-open .nav__dropdown-menu,
.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.nav__dropdown-label {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-light);
  margin-bottom: .625rem;
  padding: 0 .5rem;
}

.nav__dropdown-links {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}

.nav__dropdown-link {
  display: block;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav__dropdown-link:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.header__actions {
  display: none;
  align-items: center;
  gap: .5rem;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-accent);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
}

.menu-toggle:hover { background: var(--color-bg-alt); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__list { display: flex; flex-direction: column; gap: .25rem; }

.mobile-nav__link {
  display: block;
  padding: .875rem 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.mobile-nav__link:hover { background: var(--color-bg-alt); }

.mobile-nav__dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.mobile-nav__dropdown-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.mobile-nav__dropdown.is-open .mobile-nav__dropdown-icon {
  transform: rotate(180deg);
}

.mobile-nav__dropdown-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.mobile-nav__dropdown.is-open .mobile-nav__dropdown-panel {
  max-height: 720px;
}

.mobile-nav__dropdown-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-light);
  padding: .875rem 1rem .375rem;
}

.mobile-nav__sublink {
  display: block;
  padding: .625rem 1rem .625rem 1.5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav__sublink:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.mobile-nav__cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.mobile-nav__cta .btn { width: 100%; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__actions { display: flex; }
  .menu-toggle { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

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

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,14,18,.88) 0%,
    rgba(12,14,18,.68) 45%,
    rgba(12,14,18,.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  color: #fff;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero__typewriter {
  display: inline-flex;
  align-items: baseline;
  min-height: 1.2em;
}

.hero__typewriter-text {
  display: inline-block;
}

.hero__typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: .9em;
  margin-left: 2px;
  background: var(--color-gold);
  border-radius: 1px;
  animation: typewriter-cursor 1s step-end infinite;
}

@keyframes typewriter-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__typewriter-cursor {
    animation: none;
    opacity: .6;
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 600px;
  margin-inline: auto;
}

.hero__cta {
  margin-bottom: 3rem;
  max-width: 520px;
  margin-inline: auto;
  justify-content: center;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 22rem;
  margin-inline: auto;
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .375rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.8);
  text-align: center;
}

.hero__trust-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.hero__trust-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__trust-icon svg { width: 17px; height: 17px; color: var(--color-gold); }

@media (min-width: 768px) {
  .hero__trust {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 640px;
  }

  .hero__trust-item {
    font-size: .875rem;
    gap: .5rem;
  }

  .hero__trust-item:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .hero__trust-icon {
    width: 36px;
    height: 36px;
  }

  .hero__trust-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* --- Ticker --- */
.ticker {
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  padding: 1rem 0;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker__track:hover { animation-play-state: paused; }

.ticker__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}

.ticker__item svg { width: 16px; height: 16px; color: var(--color-gold); flex-shrink: 0; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card__emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.service-card__title {
  font-size: 1.125rem;
  margin-bottom: .625rem;
}

.service-card__desc {
  font-size: .9375rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 1.25rem;
}

.service-card__cta {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  transition: gap var(--transition);
}

.service-card:hover .service-card__cta { gap: .625rem; }

.services-grid--subpage {
  margin-top: 1.75rem;
}

.content-block > h3 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.content-block > h3 + p {
  margin-bottom: 0;
}

.content-block .service-card__title {
  font-size: 1.125rem;
}

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.why-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  transition: all var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(184,149,106,.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.why-card__icon svg { width: 24px; height: 24px; color: var(--color-gold); }

.why-card__title {
  font-size: 1.0625rem;
  margin-bottom: .5rem;
  color: #fff;
}

.why-card__desc {
  font-size: .875rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* --- Process Timeline --- */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.process__step {
  position: relative;
  text-align: center;
  padding: 2rem 1rem;
}

.process__number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.process__title {
  font-size: 1.125rem;
  margin-bottom: .5rem;
}

.process__desc {
  font-size: .875rem;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.75rem;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: var(--color-border);
  }
}

/* --- Coverage --- */
.coverage-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .coverage-content { grid-template-columns: 1fr 1fr; }
}

.coverage-map {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.coverage-map__placeholder {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.coverage-map__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

.coverage-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.coverage-link {
  display: inline-flex;
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 500;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  transition: all var(--transition);
}

.coverage-link:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--color-accent); }

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-text-muted);
}

.faq-item.is-open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: .9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1e40af 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 50%);
}

.cta-banner__content { position: relative; z-index: 1; }

.cta-banner h2 { margin-bottom: .75rem; }

.cta-banner p {
  font-size: 1.125rem;
  opacity: .85;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-group { justify-content: center; }

.cta-banner .btn--outline {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.cta-banner .btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: #d1d5db;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer__brand p {
  font-size: .875rem;
  color: #9ca3af;
  margin-top: 1rem;
  max-width: 320px;
  line-height: 1.7;
}

.footer__title {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  margin-bottom: 1rem;
}

.footer__links { display: flex; flex-direction: column; gap: .5rem; }

.footer__link {
  font-size: .875rem;
  color: #9ca3af;
  transition: color var(--transition);
}

.footer__link:hover { color: #fff; }

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  margin-bottom: .625rem;
}

.footer__contact-item svg { width: 16px; height: 16px; color: var(--color-gold); flex-shrink: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer__legal a {
  font-size: .8125rem;
  color: #6b7280;
  transition: color var(--transition);
}

.footer__legal a:hover { color: #fff; }

.footer__copy {
  font-size: .8125rem;
  color: #6b7280;
}

/* --- Floating CTAs (Mobile) --- */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.floating-cta.is-visible { transform: translateY(0); }

.floating-cta .btn {
  flex: 1;
  padding: .75rem .5rem;
  font-size: .8125rem;
}

@media (min-width: 768px) {
  .floating-cta { display: none; }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: calc(var(--header-h) + 1.5rem) 0 0;
  background: var(--color-bg-alt);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  color: var(--color-text-muted);
}

.breadcrumbs__item { display: flex; align-items: center; gap: .375rem; }

.breadcrumbs__sep { color: var(--color-text-light); }

.breadcrumbs__link { transition: color var(--transition); }
.breadcrumbs__link:hover { color: var(--color-accent); }

.breadcrumbs__current { color: var(--color-text); font-weight: 500; }

/* --- Page Hero (subpages) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-hero--image {
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.page-hero--image .page-hero__content {
  width: 100%;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 14, 18, .88) 0%,
    rgba(12, 14, 18, .72) 45%,
    rgba(12, 14, 18, .58) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 1rem;
  max-width: 720px;
  color: inherit;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
}

.page-hero--image .page-hero__desc {
  color: rgba(255, 255, 255, .82);
}

.page-hero__desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* --- Content Sections (subpages) --- */
.content-section { padding: clamp(3rem, 6vw, 5rem) 0; }

.content-block {
  max-width: 800px;
  margin-bottom: 3rem;
}

.content-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.content-block h3 {
  font-size: 1.25rem;
  margin: 2rem 0 .75rem;
}

.content-block p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.content-block li { margin-bottom: .375rem; }

/* Subpages — desktop layout */
@media (min-width: 1024px) {
  .page-hero--image {
    min-height: 480px;
  }

  .page-hero--image .page-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 1.25rem 4rem;
    align-items: center;
  }

  .page-hero h1 {
    grid-column: 1;
    grid-row: 1;
    max-width: none;
    margin-bottom: 0;
  }

  .page-hero__desc {
    grid-column: 1;
    grid-row: 2;
    max-width: 620px;
    margin-bottom: 0;
  }

  .page-hero .btn-group {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: stretch;
    min-width: 260px;
  }

  .page-hero .btn-group .btn {
    white-space: nowrap;
  }

  .content-block {
    max-width: none;
  }

  .content-section .faq-list {
    max-width: none;
    margin: 0;
  }

  .content-block:first-of-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
  }

  .content-block:first-of-type > h2,
  .content-block:first-of-type > h3,
  .content-block:first-of-type > .services-grid--subpage {
    grid-column: 1 / -1;
  }

  .content-block:first-of-type > p:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .content-block ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .625rem 2.5rem;
  }

  .services-grid--subpage {
    margin-top: 2rem;
  }
}

.related-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .related-links { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .related-links { grid-template-columns: repeat(3, 1fr); }
}

.related-link {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.related-link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.related-link__title {
  font-weight: 600;
  font-size: .9375rem;
  margin-bottom: .25rem;
}

.related-link__desc {
  font-size: .8125rem;
  color: var(--color-text-muted);
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.legal-content h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.375rem;
  margin: 2.5rem 0 1rem;
}

.legal-content p, .legal-content li {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

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

/* --- Mobile refinements --- */
@media (max-width: 767px) {
  h1 { font-size: clamp(1.625rem, 6.5vw, 2rem); }
  h2 { font-size: clamp(1.375rem, 5.2vw, 1.625rem); }
  h3 { font-size: 1.125rem; }

  body { padding-bottom: 5.5rem; }

  .section-header { margin-bottom: 2rem; }
  .section-desc { font-size: 1rem; line-height: 1.65; }

  .hero__content {
    padding: 2.25rem 0 3rem;
    max-width: 100%;
  }

  .hero h1 {
    margin-bottom: .875rem;
    line-height: 1.25;
  }

  .hero__badge {
    font-size: .75rem;
    margin-bottom: 1.125rem;
  }

  .hero__subtitle {
    font-size: .9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero__cta {
    margin-bottom: 2rem;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .hero__cta .btn {
    width: auto;
    max-width: 100%;
    align-self: center;
  }

  .hero__trust {
    gap: .625rem;
    max-width: 100%;
  }

  .hero__trust-item {
    font-size: .75rem;
    gap: .3125rem;
  }

  .hero__trust-icon {
    width: 32px;
    height: 32px;
  }

  .hero__trust-icon svg {
    width: 16px;
    height: 16px;
  }

  .page-hero {
    padding: 2.5rem 0 2.25rem;
  }

  .page-hero--image {
    min-height: auto;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.625rem);
    margin-bottom: .875rem;
    line-height: 1.2;
  }

  .page-hero__desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
  }

  .btn-group {
    gap: .625rem;
  }

  .hero__cta.btn-group {
    flex-direction: column;
    align-items: center;
  }

  .page-hero .btn-group,
  .cta-banner .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero .btn-group .btn,
  .cta-banner .btn-group .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .btn--lg {
    padding: .875rem 1.25rem;
    font-size: .9375rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card__title { font-size: 1.0625rem; }
  .service-card__desc { font-size: .875rem; }

  .why-card {
    padding: 1.5rem 1.25rem;
  }

  .process__step {
    padding: 1.5rem .5rem;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .cta-banner h2 { margin-bottom: .625rem; }

  .cta-banner p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
  }

  .content-section { padding: 2.75rem 0; }

  .content-block {
    margin-bottom: 2.25rem;
  }

  .content-block h2 {
    font-size: 1.25rem;
  }

  .content-block h3 {
    font-size: 1.0625rem;
    margin: 1.5rem 0 .625rem;
  }

  .content-block p,
  .content-block li {
    font-size: .9375rem;
  }

  .breadcrumbs {
    padding-top: calc(var(--header-h) + 1rem);
  }

  .breadcrumbs__list {
    font-size: .75rem;
    line-height: 1.5;
  }

  .faq-question {
    font-size: .9375rem;
    padding: 1rem 0;
    gap: .75rem;
  }

  .faq-answer p {
    font-size: .875rem;
  }

  .related-link {
    padding: 1.125rem 1.25rem;
  }

  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }

  .footer__grid {
    gap: 2rem;
  }

  .mobile-nav {
    padding: 1.25rem var(--container-px);
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }

  .floating-cta {
    padding: .75rem var(--container-px);
    padding-bottom: max(.75rem, env(safe-area-inset-bottom, 0px));
  }

  .floating-cta .btn {
    font-size: .8125rem;
    padding: .75rem .625rem;
  }

  .legal-content {
    padding: calc(var(--header-h) + 2rem) 0 3.5rem;
  }

  .legal-content h1 {
    font-size: 1.625rem;
    margin-bottom: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.1875rem;
  }
}

@media (max-width: 374px) {
  h1 { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.875rem; }
  .hero__subtitle,
  .page-hero__desc { font-size: .9375rem; }
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}
