/* London Website Agency — design system
   Palette: navy, paper, gold. Mobile-first. Fluid type. */

:root {
  --navy: #0c1222;
  --navy-2: #151d33;
  --ink: #1a1f2b;
  --slate: #5a6270;
  --line: #e4dfd4;
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --white: #fffcf7;
  --gold: #c9a54a;
  --gold-2: #b08d38;
  --gold-soft: #f3ead2;
  --success: #1f6b4a;
  --error: #9b2c2c;
  --shadow: 0 18px 50px rgba(12, 18, 34, 0.12);
  --radius: 14px;
  --header: 76px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.6vw, 4.6rem);
  --space: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --max: 1180px;
}

*, *::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: none !important; transition: none !important; }
  .preloader { display: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
iframe { width: 100%; border: 0; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
h1, h2, h3, h4, p, li, a, td, th {
  overflow-wrap: anywhere;
  word-break: break-word;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }
code {
  font-size: 0.88em;
  background: var(--gold-soft);
  padding: 0.12em 0.4em;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}
.narrow { width: min(100%, 760px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 18, 34, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 0.75rem;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-width: 0;
}
.logo svg { flex-shrink: 0; }
.nav-toggle { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.logo-text, .site-nav a, .btn, .eyebrow {
  overflow-wrap: normal;
  word-break: normal;
}
.nav-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s, opacity 0.2s;
}
.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); }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0;
  min-height: 48px;
  font-weight: 600;
  color: var(--navy);
}
.site-nav a[aria-current="page"] { color: var(--gold-2); }
.header-cta { margin-top: 0.5rem; width: 100%; }

.site-nav {
  max-height: calc(100dvh - var(--header));
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 55;
}
body.nav-open { overflow: hidden; }
body.nav-open::before {
  content: "";
  position: fixed;
  inset: var(--header) 0 0 0;
  background: rgba(12, 18, 34, 0.4);
  z-index: 45;
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  body.nav-open { overflow: auto; }
  body.nav-open::before { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .site-nav ul { display: flex; gap: 0.1rem; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { padding: 0.4rem 0.55rem; min-height: auto; font-size: 0.9rem; }
  .header-cta { margin-top: 0; flex-shrink: 0; width: auto; }
  .site-nav { flex: 1; min-width: 0; justify-content: flex-end; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d4b45c; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn-block { width: 100%; }
.hero-actions, .cta-band-actions, .page-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6.5rem) 0 clamp(3.5rem, 7vw, 7rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background:
    linear-gradient(to top right, transparent 49%, var(--navy-2) 50%) left / 12% 100% no-repeat,
    linear-gradient(to top left, transparent 49%, #1b2744 50%) 12% / 10% 100% no-repeat,
    linear-gradient(to top right, transparent 49%, #10182c 50%) 22% / 16% 100% no-repeat,
    linear-gradient(to top left, transparent 49%, #243356 50%) 38% / 8% 100% no-repeat,
    linear-gradient(to top right, transparent 49%, #162038 50%) 46% / 22% 100% no-repeat,
    linear-gradient(to top left, transparent 49%, #1e2d4d 50%) 68% / 14% 100% no-repeat,
    linear-gradient(to top right, transparent 49%, #0f1728 50%) 82% / 18% 100% no-repeat;
  opacity: 0.45;
  pointer-events: none;
}
.hero-grid,
.split,
.grid-2,
.grid-3,
.grid-4,
.footer-grid,
.cta-band-inner {
  min-width: 0;
}
.hero-grid > *,
.split > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > * { min-width: 0; }
.hero-grid {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.85rem;
  max-width: 100%;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .lead, .lead {
  font-size: var(--fs-lead);
  color: rgba(255,252,247,0.78);
  max-width: 42ch;
}
.page-hero .lead, .section .lead, .prose .lead { color: var(--slate); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
}
.hero-stats span { font-size: var(--fs-xs); color: rgba(255,252,247,0.65); }
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.hero-card h2 { color: var(--white); font-size: 1.35rem; }
.hero-card p { color: rgba(255,252,247,0.7); font-size: 0.92rem; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head p { color: var(--slate); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-paper-2 { background: var(--paper-2); }

/* Cards & grids */
.grid-3, .grid-4, .grid-2 { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card + .card { margin-top: 1rem; }
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.card, .service-card, .project-card, .post-card, .price-card, .team-card, .faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.service-card:hover, .project-card:hover, .post-card:hover {
  border-color: #d8c48a;
  box-shadow: var(--shadow);
}
.icon-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}
.card-link {
  font-weight: 700;
  color: var(--gold-2);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

.project-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.project-media {
  aspect-ratio: 16/10;
  background: var(--navy-2);
  position: relative;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.15rem 1.2rem 1.35rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.35rem;
}
.result { font-weight: 700; color: var(--navy); font-size: 0.92rem; }

/* Trust */
.logo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-row { grid-template-columns: repeat(5, 1fr); } }
.client-logo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 64px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--slate);
  font-size: clamp(0.68rem, 2.4vw, 0.82rem);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.45rem 0.35rem;
}
.quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--navy);
}
.quote-meta { color: var(--slate); font-size: 0.9rem; margin-top: 0.75rem; }

/* Pricing */
.price-card.featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.price-card.featured h3, .price-card.featured .price { color: var(--white); }
.price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0.4rem 0 0.8rem;
}
.price small { font-size: 0.95rem; font-family: var(--font-sans); color: var(--slate); font-weight: 500; }
.price-card.featured .price small { color: rgba(255,255,255,0.65); }
.price-card ul { padding-left: 1rem; }

/* FAQ */
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding-top: 0.55rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-2); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--slate); margin: 0.4rem 0 0.2rem; }

/* Forms */
.lead-form, .contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.form-row { display: grid; gap: 0.8rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) and (max-width: 1099px) {
  .hero-card .form-row { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
input, select, textarea {
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230C1222' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-legal { font-size: 0.8rem; color: var(--slate); }
.form-status { min-height: 1.2em; font-weight: 600; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--error); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 240px;
  margin-top: 1rem;
  background: var(--navy-2);
}
.map-wrap iframe { width: 100%; height: min(50vh, 320px); min-height: 240px; border: 0; }

/* Page hero */
.page-hero {
  padding: clamp(2.4rem, 4vw, 4rem) 0 2rem;
}
.crumbs {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1rem;
}
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose a { color: var(--gold-2); }
.prose blockquote {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
}

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.cta-band h2 { color: var(--white); max-width: 16ch; }
.cta-band p { color: rgba(255,252,247,0.72); max-width: 46ch; }
.cta-band-inner { display: grid; gap: 1.5rem; }
@media (min-width: 860px) {
  .cta-band-inner { grid-template-columns: 1.3fr 0.7fr; align-items: center; }
}

/* Footer */
.site-footer {
  background: #080c16;
  color: rgba(255,252,247,0.72);
  padding: 3rem 0 6.5rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.site-footer h2 { color: var(--white); font-size: 1.05rem; font-family: var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-brand .logo-text { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
}
.social { display: flex; gap: 1rem; }

.wa-fab {
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  max-width: calc(100vw - 1.5rem);
  padding: 0.35rem 0.95rem 0.35rem 0.35rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(160deg, #3ee87a 0%, #25d366 45%, #128c4b 100%);
  box-shadow: 0 12px 32px rgba(18, 140, 75, 0.42);
  overflow-wrap: normal;
  word-break: normal;
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(18, 140, 75, 0.5); }
.wa-fab-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-fab-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-right: 0.15rem;
}
.wa-fab-copy strong { font-size: 0.92rem; letter-spacing: 0.01em; }
.wa-fab-copy small { font-size: 0.75rem; opacity: 0.9; font-weight: 600; }
.wa-fab-pulse {
  position: absolute;
  width: 48px;
  height: 48px;
  left: 0.4rem;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.65; }
  100% { transform: scale(1.85); opacity: 0; }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
}
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: var(--white); font-weight: 600; }

/* 404 */
.error-page { text-align: center; padding: 5rem 0 6rem; }
.error-page .lead { margin-inline: auto; }
.error-page .page-actions { justify-content: center; }
.error-page .code {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--gold);
  line-height: 1;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.1rem;
  border-radius: 12px;
  display: none;
  box-shadow: var(--shadow);
}
.cookie-bar.show { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; justify-content: space-between; }
.cookie-bar p { margin: 0; font-size: 0.88rem; max-width: 52ch; }

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (min-width: 800px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem;
  border: 1px solid var(--line);
}
.stat-strip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
}

.process { counter-reset: step; }
.process li {
  list-style: none;
  position: relative;
  padding-left: 3.2rem;
  margin-bottom: 1.2rem;
}
.process { padding-left: 0; }
.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.area-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.area-pills li {
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-meta { color: var(--slate); font-size: 0.88rem; margin-bottom: 1.2rem; }
.related { margin-top: 3rem; }

.aeo-answer {
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.3rem 1.3rem;
  margin: 0 0 2rem;
}
.aeo-answer h2 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.aeo-answer p:last-child { margin-bottom: 0; }
.aeo-answer ul { margin-bottom: 0; }

.admin-table tr.is-new td { background: var(--gold-soft); }
.admin-table td { vertical-align: top; font-size: 0.9rem; }
.admin-table .btn { min-height: 40px; padding: 0.4rem 0.8rem; font-size: 0.8rem; }

.hero-actions .btn,
.cta-band-actions .btn,
.page-actions .btn {
  width: 100%;
}
.form-reveal { margin-bottom: 0.85rem; }
.hero-form-inner { display: none; }
.hero-form-inner.is-open { display: block; }
.hero-card .lead-form { background: var(--white); color: var(--ink); }
.hero-card .lead-form h2, .hero-card .lead-form label { color: var(--navy); }

.hero-stats {
  grid-template-columns: 1fr;
  text-align: left;
}
.price { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.quote { font-size: clamp(1.1rem, 3vw, 1.35rem); }

.cookie-bar .btn { min-width: 120px; }

.site-header { position: sticky; }

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

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
  .hero-actions .btn,
  .cta-band-actions .btn,
  .page-actions .btn { width: auto; }
}

@media (min-width: 900px) {
  .form-reveal { display: none !important; }
  .hero-form-inner,
  .hero-form-inner.is-open { display: block; }
}

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
  .hero { padding: 2.2rem 0 4.5rem; }
  .hero h1 { max-width: none; }
  .hero .lead, .lead { max-width: none; }
  .page-hero { padding-top: 1.6rem; }
  .page-hero h1 { max-width: 18ch; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip strong { font-size: 1.55rem; }
  .error-page { padding: 3rem 0 5rem; }
  .cookie-bar.show { flex-direction: column; align-items: stretch; }
  .aeo-answer { padding: 1rem 1rem 1.1rem; }
  .aeo-answer h2 { font-size: 1.25rem; }
  .cta-band h2 { max-width: none; }
  .prose { max-width: 100%; }
  .section { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .lead-form, .contact-panel { padding: 1rem; }
  .hero-card { padding: 1rem; }
  .hero-card .lead-form { padding: 0.85rem; }
}

@media (max-width: 380px) {
  .logo-text { font-size: 0.88rem; }
  .container { padding-left: max(0.85rem, env(safe-area-inset-left, 0px)); padding-right: max(0.85rem, env(safe-area-inset-right, 0px)); }
  .hero-actions .btn { font-size: 0.9rem; padding-inline: 1rem; }
}

@media (max-width: 479px) {
  .wa-fab { padding-right: 0.75rem; gap: 0.4rem; }
  .wa-fab-icon { width: 44px; height: 44px; }
  .wa-fab-copy strong { font-size: 0.8rem; }
  .wa-fab-copy small { display: none; }
}
@media (max-width: 359px) {
  .wa-fab {
    padding: 0.35rem;
    width: 56px;
    height: 56px;
    min-height: 56px;
    justify-content: center;
  }
  .wa-fab-copy { display: none; }
  .wa-fab-pulse { left: 0.35rem; }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  overscroll-behavior: none;
  box-sizing: border-box;
  padding:
    max(1.25rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
  animation: lwa-preloader-off 0.4s ease 1.6s forwards;
}
html.is-ready .preloader,
.preloader.is-done {
  display: none !important;
}
.preloader svg {
  max-width: none;
  flex-shrink: 0;
}
.preloader-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 50% 42%, rgba(201, 165, 74, 0.16), transparent 58%),
    radial-gradient(circle at 18% 80%, rgba(201, 165, 74, 0.06), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(201, 165, 74, 0.07), transparent 32%);
  pointer-events: none;
}
.preloader-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 252, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 252, 247, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 45%, #000 18%, transparent 72%);
}
.preloader-inner,
.preloader-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  box-sizing: border-box;
  width: min(22rem, calc(100vw - 2.5rem));
  max-width: 100%;
  min-width: 0;
}
.preloader-intro { width: 100%; }
.preloader-mark {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.preloader-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.preloader-ring-track,
.preloader-ring-bar {
  fill: none;
  stroke-width: 1.4;
}
.preloader-ring-track { stroke: rgba(201, 165, 74, 0.2); }
.preloader-ring-bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
  animation: preloader-ring 1.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.preloader-logo {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  animation: preloader-logo-in 0.7s ease 0.15s both;
}
.preloader-brand {
  margin: 0.15rem 0 0;
  max-width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 4.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
  text-wrap: balance;
  overflow-wrap: break-word;
  animation: preloader-rise 0.7s ease 0.28s both;
}
.preloader-brand em {
  font-style: italic;
  color: var(--gold);
}
.preloader-track {
  width: min(100%, 11.5rem);
  height: 2px;
  background: rgba(255, 252, 247, 0.12);
  border-radius: 99px;
  overflow: hidden;
}
.preloader-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: inherit;
  animation: preloader-bar 1.35s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}
.preloader-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 100%;
  max-width: 100%;
  margin: 0.45rem 0 0;
  animation: preloader-rise 0.75s ease 0.4s both;
}
.preloader-stars {
  display: flex;
  gap: 0.28rem;
  margin-bottom: 0.2rem;
}
.preloader-stars span {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.preloader-trust-kicker,
.preloader-trust-sub {
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: clamp(0.6rem, 2.5vw, 0.72rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255, 252, 247, 0.62);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.preloader-trust-sub {
  letter-spacing: 0.1em;
  color: rgba(255, 252, 247, 0.82);
}
.preloader-trust-stat {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 10vw, 3.35rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold);
  white-space: nowrap;
}
@keyframes lwa-preloader-off {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes preloader-ring {
  to { stroke-dashoffset: 42; }
}
@keyframes preloader-bar {
  to { width: 100%; }
}
@keyframes preloader-logo-in {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes preloader-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media print {
  .preloader { display: none !important; }
}

@media (max-width: 767px) {
  .preloader-inner,
  .preloader-intro { gap: 0.7rem; }
  .preloader-trust-kicker,
  .preloader-trust-sub { letter-spacing: 0.07em; }
}

@media (max-width: 379px) {
  .preloader-mark { width: 76px; height: 76px; }
  .preloader-logo { width: 40px; height: 40px; }
  .preloader-brand { font-size: 1.05rem; }
  .preloader-trust-kicker,
  .preloader-trust-sub { letter-spacing: 0.04em; font-size: 0.6rem; }
}

@media (min-width: 768px) {
  .preloader-inner { width: min(26rem, calc(100vw - 3rem)); }
  .preloader-intro { width: 100%; max-width: 26rem; gap: 1rem; }
  .preloader-mark { width: 104px; height: 104px; }
  .preloader-logo { width: 56px; height: 56px; }
  .preloader-brand { font-size: 1.55rem; }
  .preloader-trust-kicker,
  .preloader-trust-sub { font-size: 0.75rem; letter-spacing: 0.16em; }
  .preloader-trust-sub { letter-spacing: 0.12em; }
  .preloader-trust-stat { font-size: 3.4rem; }
  .preloader-track { width: 13rem; }
}

@media (min-width: 1200px) {
  .preloader-inner { width: min(28rem, calc(100vw - 4rem)); }
  .preloader-brand { font-size: 1.7rem; }
}

@media (max-height: 520px) {
  .preloader { padding-block: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)); }
  .preloader-inner,
  .preloader-intro { gap: 0.4rem; }
  .preloader-mark { width: 64px; height: 64px; }
  .preloader-logo { width: 34px; height: 34px; }
  .preloader-brand { margin-top: 0; font-size: 1.15rem; }
  .preloader-trust { margin-top: 0.15rem; }
  .preloader-stars { margin-bottom: 0; }
  .preloader-trust-stat { font-size: 1.9rem; }
}

@media (max-height: 420px) and (orientation: landscape) {
  .preloader-inner {
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    width: min(38rem, calc(100vw - 2.5rem));
    gap: 0.75rem 2rem;
  }
  .preloader-intro { width: auto; max-width: 16rem; gap: 0.4rem; }
  .preloader-track { width: 8.5rem; }
  .preloader-trust {
    flex: 0 1 14rem;
    margin: 0;
    align-items: flex-start;
    text-align: left;
  }
  .preloader-stars { justify-content: flex-start; }
}

@media (min-width: 1440px) {
  :root { --max: 1240px; }
}

@media (max-width: 767px) {
  .admin-table { min-width: 0; }
  .admin-table thead { display: none; }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--white);
  }
  .admin-table td {
    border: 0;
    padding: 0.4rem 0;
  }
  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.15rem;
  }
  .admin-table td:last-child::before { content: none; }
  .admin-table .btn { width: 100%; }
}
