
:root {
  --cta: #c5112e;
  --cta-hover: #a50e26;
  --teal: #15495d;
  --cyan: #049fd9;
  --focus: #049fd9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Manrope, system-ui, sans-serif;
}

/* Theme tokens: dark default on :root / [data-theme="dark"], light on [data-theme="light"] */
:root, [data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #181818;
  --bg-card: #1F1F1F;
  --bg-soft: #272727;
  --bg-soft2: #313131;
  --text: #FFFFFF;
  --text-muted: #9B9B9B;
  --border: rgba(255,255,255,0.10);
  --nav-bg: rgba(24,24,24,0.72);
  --panel-bg: rgba(0,0,0,0.92);
  --hero-grad-from: #FFFFFF;
  --hero-grad-to: #9B9B9B;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-elev: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-soft: #F0F0F0;
  --bg-soft2: #E8E8E8;
  --text: #000000;
  --text-muted: #666666;
  --border: rgba(0,0,0,0.10);
  --nav-bg: rgba(255,255,255,0.78);
  --panel-bg: rgba(255,255,255,0.96);
  --hero-grad-from: #000000;
  --hero-grad-to: #666666;
  color-scheme: light;
}
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; background: var(--bg-soft);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
  font-size: 18px; color: var(--text); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-soft2); transform: translateY(-1px); }
.theme-toggle:active { transform: scale(0.98); }
.theme-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
.skip {
  position: absolute; left: 16px; top: 8px; z-index: 1000;
  padding: 8px 12px; background: var(--cta); color: #fff; border-radius: var(--radius-sm);
  transform: translateY(-120%); transition: transform 500ms var(--ease);
  font-size: 14px; line-height: 20px; font-weight: 600;
}
.skip:focus { transform: translateY(0); outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.h1 {
  font-size: 48px; line-height: 1; font-weight: 700;
  max-width: 680px; text-wrap: balance;
  background: linear-gradient(90deg, var(--hero-grad-from), var(--hero-grad-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 768px) { .h1 { font-size: 60px; } }
.h2 {
  font-size: 36px; line-height: 40px; font-weight: 700;
  text-wrap: balance; max-width: 680px;
}
@media (min-width: 768px) { .h2 { font-size: 48px; line-height: 1; } }
.h3 { font-size: 20px; line-height: 28px; font-weight: 600; text-wrap: balance; }
.lead {
  font-size: 18px; line-height: 28px; color: var(--text-muted);
  max-width: 680px; text-wrap: pretty; font-weight: 500;
}
.body { font-size: 16px; line-height: 24px; color: var(--text-muted); text-wrap: pretty; }
.small { font-size: 14px; line-height: 20px; color: var(--text-muted); text-wrap: pretty; }
.tiny { font-size: 12px; line-height: 16px; color: var(--text-muted); letter-spacing: 0.02em; text-transform: uppercase; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 16px; line-height: 24px; font-weight: 600;
  background: var(--cta); color: #fff;
  transition: background-color 300ms var(--ease), transform 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-sm { font-size: 14px; line-height: 20px; }
.nav-shell {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 12px 8px 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: calc(100% - 32px);
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; line-height: 20px; white-space: nowrap; }
.nav-brand .mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  border: 1px solid var(--cyan);
}
.nav-links { display: none; gap: 16px; align-items: center; }
.nav-links a {
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-muted);
  transition: color 300ms var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.nav-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; background: var(--bg-soft);
  transition: background-color 300ms var(--ease);
}
.nav-toggle:hover { background: var(--bg-soft2); }
.nav-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.burger { width: 18px; height: 12px; position: relative; display: block; }
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 500ms var(--ease), opacity 300ms var(--ease), top 500ms var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; }
.burger span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav { max-width: min(960px, calc(100% - 32px)); width: 100%; }
}
.mobile-panel {
  position: fixed; inset: 0; z-index: 40;
  background: var(--panel-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding: 96px 32px 48px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.mobile-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-panel a {
  font-size: 24px; line-height: 32px; font-weight: 600; padding: 12px 0;
  opacity: 0; transform: translateY(24px);
}
.mobile-panel.open a {
  opacity: 1; transform: translateY(0);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.mobile-panel.open a:nth-of-type(1) { transition-delay: 0ms; }
.mobile-panel.open a:nth-of-type(2) { transition-delay: 60ms; }
.mobile-panel.open a:nth-of-type(3) { transition-delay: 120ms; }
.mobile-panel.open a:nth-of-type(4) { transition-delay: 180ms; }
.mobile-panel.open a:nth-of-type(5) { transition-delay: 240ms; }
.mobile-panel.open a:nth-of-type(6) { transition-delay: 300ms; }
section { padding: 80px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }
.hero { padding-top: 128px; padding-bottom: 80px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.proof {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 14px; line-height: 20px; color: var(--text-muted); font-weight: 500;
}
.proof span { display: inline-flex; align-items: center; gap: 8px; }
.proof i { color: var(--cyan); }
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  min-height: 320px;
}
.hero-visual-inner {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: 100%;
  min-height: 288px;
  display: flex; flex-direction: column; gap: 16px;
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--bg-soft); border-radius: var(--radius-md); padding: 16px;
  border: 1px solid var(--border);
}
.stat strong { display: block; font-size: 24px; line-height: 32px; font-weight: 700; }
.stat span { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip {
  font-size: 12px; line-height: 16px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
  background: var(--bg-soft2); color: var(--text);
}
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 500ms var(--ease), background-color 300ms var(--ease);
}
.card:hover { transform: translateY(-4px); background: var(--bg-soft); }
.icon-box {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-soft2); color: var(--cyan);
  display: grid; place-items: center; font-size: 20px;
}
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 14px; line-height: 20px; font-weight: 700; color: var(--cyan);
}
.tagline { padding: 96px 0; background: var(--bg-elev); }
.tagline-inner { max-width: 680px; }
.tagline-text { font-size: 36px; line-height: 40px; font-weight: 700; text-wrap: balance; }
@media (min-width: 768px) { .tagline-text { font-size: 48px; line-height: 1; } }
.tagline-text .word {
  color: var(--text); opacity: 0.28;
  transition: opacity 500ms var(--ease); display: inline;
}
.tagline-text .word.on { opacity: 1; }
.quote { display: flex; flex-direction: column; gap: 16px; }
.quote p { font-size: 16px; line-height: 24px; color: var(--text); text-wrap: pretty; }
.quote footer { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.quote footer strong { color: var(--text); font-weight: 600; }
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 24px;
  transition: background-color 300ms var(--ease);
}
.faq details[open] { background: var(--bg-soft); }
.faq summary {
  cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.faq summary i { color: var(--text-muted); transition: transform 500ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq .ans { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-muted); text-wrap: pretty; }
.final {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
@media (min-width: 768px) {
  .final { padding: 64px 48px; }
}
.final .h2 { max-width: 480px; }
footer.site { padding: 64px 0 48px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer-grid a { color: var(--text-muted); transition: color 300ms var(--ease); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 14px; line-height: 20px; color: var(--text-muted);
}
.mock-note {
  margin-top: 24px; padding: 12px 16px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  font-size: 12px; line-height: 16px; color: var(--text-muted);
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tagline-text .word { opacity: 1; }
  .mobile-panel a { opacity: 1; transform: none; }
}
.form { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 420px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 16px; line-height: 24px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-elev); color: var(--text);
  transition: border-color 300ms var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--focus); outline-offset: 2px; border-color: transparent;
}
.field .err { font-size: 12px; line-height: 16px; color: #c5112e; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #c5112e; }
.form-ok {
  display: none; padding: 16px; border-radius: var(--radius-md);
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 14px; line-height: 20px;
}
.form-ok.show { display: block; }
.story-block { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.price { font-size: 48px; line-height: 1; font-weight: 700; }
.price span { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--text-muted); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas span {
  padding: 8px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 14px; line-height: 20px; font-weight: 500;
}
.bg-elev { background: var(--bg-elev); }


/* Production extras: contact form, legal, inner pages, cookie banner hook */
.page-hero { padding-top: 128px; padding-bottom: 48px; }
.page-hero .h1 { max-width: 820px; }
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin-top: 16px; }
.prose h3 { font-size: 18px; line-height: 28px; font-weight: 600; margin-top: 8px; }
.prose p, .prose li { font-size: 16px; line-height: 24px; color: var(--text-muted); text-wrap: pretty; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 8px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); font-weight: 600; }
.contact-layout { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.form-grid-2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-hint { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.form.wide { max-width: 560px; }
.side-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.side-card a { color: var(--cyan); }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 16px; text-align: center;
}
.modal-icon { font-size: 40px; color: var(--cyan); }
.modal-icon.error { color: var(--cta); }
.svc-list { display: grid; gap: 16px; }
@media (min-width: 768px) { .svc-list { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.svc-list a.card { color: inherit; }
.svc-list a.card:hover { color: inherit; }
.video-wrap { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.video-wrap video { width: 100%; display: block; }
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-size: 16px; line-height: 24px; font-weight: 600;
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--border);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn-ghost:hover { background: var(--bg-soft2); transform: translateY(-1px); }
.btn-ghost:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.legal-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.btn-submit-loading { opacity: 0.7; pointer-events: none; }

/* #1334: contact card text may shrink; long email wraps on a 320 px phone */
.contact-item > div:not(.icon) { min-width: 0; }
.contact-item a { overflow-wrap: anywhere; }

/* Same shrink behavior for the redesign form grids / side card links */
.contact-layout > *,
.form-grid-2 > * { min-width: 0; }
.field input, .field select, .field textarea { max-width: 100%; width: 100%; box-sizing: border-box; }
.side-card a { overflow-wrap: anywhere; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item .icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--bg-soft2); color: var(--cyan);
  display: grid; place-items: center; flex-shrink: 0; font-size: 18px;
}
.contact-item h4 { margin: 0 0 0.25rem; font-size: 14px; line-height: 20px; font-weight: 600; }
.contact-item p { margin: 0; color: var(--text-muted); font-size: 16px; line-height: 24px; }
