/* ==========================================================================
   Prime Home Revive — Home Renovation & Remodeling
   Global stylesheet (pure CSS, no frameworks)
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --surface-2: #e9eff4;
  --ink: #13293d;
  --ink-deep: #0c1e2e;
  --muted: #55697c;
  --line: #d9e2ea;
  --brand: #0e7c86;
  --brand-dark: #0a5f67;
  --brand-tint: #e2f1f2;
  --brand-soft: #5fb3ba;
  --navy: #12283c;
  --navy-deep: #0d1d2c;
  --gold: #f0b429;
  --success: #1e8e5a;
  --danger: #c44536;
  --shadow-sm: 0 6px 18px -10px rgba(12, 30, 46, 0.22);
  --shadow-md: 0 16px 38px -20px rgba(12, 30, 46, 0.32);
  --shadow-lg: 0 26px 60px -28px rgba(12, 30, 46, 0.42);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1.05em; }

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

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

ul { margin: 0; padding: 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand-soft);
  outline-offset: 2px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: #9fb4c4; border-radius: 8px; border: 2px solid var(--surface-2); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

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

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--navy); color: #fff; padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); font-weight: 700; font-size: 0.85rem;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- layout helpers ---------- */
.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

.section { padding: 5.5rem 0; }
.section-tight { padding: 4.5rem 0; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--brand-dark);
  border-left: 3px solid var(--brand);
  padding-left: 0.75rem;
  margin-bottom: 1.1rem;
}
.eyebrow.on-dark { color: var(--brand-soft); border-left-color: var(--brand-soft); }

.h-xl { font-size: clamp(2.35rem, 5vw, 3.6rem); }
.h-lg { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
.h-md { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.lead { font-size: 1.08rem; color: var(--muted); }

.mark {
  background: linear-gradient(transparent 64%, rgba(14, 124, 134, 0.20) 64%, rgba(14, 124, 134, 0.20) 96%, transparent 96%);
  border-radius: 2px;
  padding: 0 0.12em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.92rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 800; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -14px rgba(14, 124, 134, 0.75); }
.btn-primary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 12px 26px -14px rgba(18, 40, 60, 0.7); }
.btn-dark:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: rgba(19, 41, 61, 0.35); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); background: #fff; color: var(--brand-dark); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-tint); color: var(--brand-dark); transform: translateY(-2px); }

.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 800; font-size: 0.95rem; color: var(--brand-dark);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- reveal on scroll ---------- */
.reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0ms); }
html.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal:not(.in) { opacity: 1; transform: none; }
  .reveal { transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--navy-deep);
  color: #c6d3de;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 40px; padding: 0.3rem 0;
}
.topbar a { color: #c6d3de; display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar-note { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--brand-soft); font-weight: 700; }
.topbar svg { width: 14px; height: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, var(--navy) 100%);
  border-radius: 12px;
  box-shadow: 0 8px 18px -8px rgba(14, 124, 134, 0.6);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand-text small {
  display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--brand-dark); margin-top: 1px;
}

.main-nav { display: flex; align-items: center; gap: 0.4rem; }
.nav-link {
  position: relative;
  padding: 0.55rem 0.95rem;
  font-size: 0.93rem; font-weight: 700; color: var(--muted);
  border-radius: var(--r-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.active { color: var(--brand-dark); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.18rem;
  height: 3px; border-radius: 3px; background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); cursor: pointer;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 1rem 0 1.4rem;
}
.mobile-menu.open { display: block; }
.mobile-menu nav { display: grid; gap: 0.25rem; }
.mobile-menu .nav-link { padding: 0.8rem 0.9rem; font-size: 1rem; }
.mobile-menu .nav-link.active::after { display: none; }
.mobile-menu .nav-link.active { background: var(--brand-tint); }
.mobile-menu .btn { margin-top: 0.8rem; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 78%),
    repeating-linear-gradient(90deg, rgba(19, 41, 61, 0.035) 0 1px, transparent 1px 64px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -220px; right: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 124, 134, 0.12) 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem; align-items: center;
}
.hero-copy .h-xl { margin-bottom: 1.2rem; }
.hero-copy .lead { max-width: 34rem; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; }
.check-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.88rem; font-weight: 700; color: var(--ink);
}
.check-chip svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

.hero-media { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.4;
  background: var(--surface-2);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(13, 29, 44, 0.35) 100%);
}
.hero-cards {
  position: absolute; top: 50%; right: -1.6rem; transform: translateY(-50%);
  display: grid; gap: 0.8rem; z-index: 2;
}
.hero-card {
  display: flex; align-items: center; gap: 0.7rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.8rem 1.05rem;
  box-shadow: var(--shadow-md);
  font-size: 0.86rem; font-weight: 800; color: var(--ink);
  max-width: 240px;
}
.hero-card .hc-ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 9px;
}
.hero-card .hc-ico svg { width: 17px; height: 17px; }
.hero-badge {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
  background: rgba(13, 29, 44, 0.82); color: #fff;
  backdrop-filter: blur(6px);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.95rem;
  font-size: 0.8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--navy);
  color: #e6edf3;
  overflow: hidden;
  padding: 0.95rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; }
.marquee-group span {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee-group i { color: var(--brand-soft); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c3d3dc; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 12px;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* ---------- about split ---------- */
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem; align-items: center;
}
.split-media {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.promise-card { background: var(--navy); border-color: var(--navy); color: #dbe6ee; }
.promise-card h3 { color: #fff; font-size: 1.15rem; }
.promise-list { list-style: none; display: grid; gap: 0.95rem; margin-top: 1.2rem; }
.promise-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; font-weight: 600; color: #d7e2ea; }
.promise-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.28rem; color: var(--brand-soft); }

/* ---------- services ---------- */
.svc-group-title {
  display: flex; align-items: center; gap: 1rem;
  margin: 3.4rem 0 1.6rem;
}
.svc-group-title h3 { margin: 0; font-size: 1.25rem; }
.svc-group-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.svc-card { position: relative; overflow: hidden; }
.svc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--brand); text-transform: uppercase;
  display: block; margin-bottom: 0.8rem;
}

.svc-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  background: var(--brand-tint);
  border: 1px dashed var(--brand-soft);
  border-radius: var(--r-md);
  padding: 1.6rem 1.9rem;
  margin-top: 2.6rem;
}
.svc-note p { margin: 0; font-weight: 700; color: var(--brand-dark); }

/* ---------- why steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  display: block; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review-card { display: flex; flex-direction: column; gap: 1.1rem; }
.review-card .quote-glyph {
  font-family: var(--font-display);
  font-size: 2.6rem; line-height: 1; color: var(--brand-soft);
}
.review-card blockquote { margin: 0; font-size: 0.96rem; color: var(--ink); flex: 1; }
.review-who { display: flex; align-items: center; gap: 0.8rem; }
.review-avatar {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border-radius: 11px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em;
}
.review-who strong { display: block; font-size: 0.92rem; }
.review-who span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 2.2rem; align-items: start; }
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open { border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 800; color: var(--ink);
  text-align: left;
}
.faq-q .faq-icon {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2); color: var(--brand-dark);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-q .faq-icon svg { width: 15px; height: 15px; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: 0.94rem; }
.faq-a-inner p { margin: 0; }

.faq-aside {
  background: var(--navy);
  color: #d7e2ea;
  border-radius: var(--r-lg);
  padding: 2.2rem;
  position: sticky; top: calc(var(--header-h) + 1.4rem);
}
.faq-aside h3 { color: #fff; font-size: 1.35rem; }
.faq-aside p { font-size: 0.95rem; }

/* ---------- signature / quote band / steps label ---------- */
.sign {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.02rem; color: var(--brand-dark);
  margin: 1.6rem 0 0;
}
.sign::before { content: ""; width: 44px; height: 2px; background: var(--brand); flex: none; }

.quote-band {
  background:
    radial-gradient(600px 200px at 10% 0%, rgba(14, 124, 134, 0.10) 0%, transparent 70%),
    var(--brand-tint);
  border: 1px solid rgba(14, 124, 134, 0.25);
  border-radius: var(--r-lg);
  padding: 3rem 3.2rem;
  text-align: center;
}
.quote-band blockquote {
  margin: 0 auto 1.1rem; max-width: 52rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.72rem);
  font-weight: 600; line-height: 1.45; color: var(--ink);
}
.quote-band cite { font-style: normal; font-weight: 800; font-size: 0.95rem; color: var(--brand-dark); }

.steps-label {
  display: flex; align-items: center; gap: 1.2rem;
  margin: 0 0 1.8rem;
  color: var(--muted); font-weight: 800; font-size: 0.78rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.steps-label::before, .steps-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 340px at 85% -40%, rgba(14, 124, 134, 0.45) 0%, transparent 65%),
    var(--navy);
  color: #dce7ee;
  border-radius: var(--r-lg);
  padding: 3.4rem 3rem;
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { margin: 0; max-width: 44rem; color: #c3d2dc; }
.cta-actions { display: flex; flex-direction: column; gap: 0.8rem; }

/* ==========================================================================
   Inner page head
   ========================================================================== */
.page-head {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px),
    radial-gradient(700px 300px at 15% -30%, rgba(14, 124, 134, 0.5) 0%, transparent 62%),
    var(--navy);
  color: #d7e2ea;
  padding: 4.6rem 0 4.2rem;
}
.page-head .h-xl { color: #fff; margin-bottom: 0.8rem; }
.page-head p { color: #b9c9d5; max-width: 46rem; margin: 0; font-size: 1.05rem; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: grid; gap: 0.45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 800; color: var(--ink); }
.form-field label .req { color: var(--danger); }

.input,
.select,
.textarea {
  width: 100%;
  font: inherit; font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdfe;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.82rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 124, 134, 0.14);
  background: #fff;
}
.input.invalid, .select.invalid, .textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(196, 69, 54, 0.12);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }

.consent {
  display: flex; gap: 0.7rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--muted); font-weight: 600;
}
.consent input {
  width: 19px; height: 19px; margin: 0.15rem 0 0; flex: none;
  accent-color: var(--brand);
}
.consent.invalid { color: var(--danger); }

.form-foot { margin-top: 1.4rem; display: grid; gap: 0.9rem; justify-items: start; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* inline confirmation banner (pairs with the toast) */
.form-success {
  display: flex; align-items: flex-start; gap: 0.9rem; flex-wrap: wrap;
  background: #e9f7f0;
  border: 1px solid rgba(30, 142, 90, 0.35);
  border-left: 5px solid var(--success);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.6rem;
}
.form-success[hidden] { display: none; }
.form-success.pop { animation: fspop 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes fspop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.fs-icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: #fff; color: var(--success);
  border-radius: 9px;
}
.fs-icon svg { width: 18px; height: 18px; }
.fs-body { flex: 1; min-width: 200px; }
.fs-body strong { display: block; font-size: 0.98rem; color: var(--ink); margin-bottom: 0.15rem; }
.fs-body p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.85rem; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 2.4rem; align-items: start; }
.info-stack { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 1.5rem; }
.info-card .card-icon { margin: 0; flex: none; }
.info-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.25rem; }
.info-card a, .info-card p { font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0; }
.info-note {
  background: var(--brand-tint);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1rem 1.2rem;
  font-size: 0.9rem; font-weight: 700; color: var(--brand-dark);
  margin: 0;
}

/* centered narrow forms (newsletter / unsubscribe) */
.narrow { max-width: 720px; margin-inline: auto; }
.narrow-xs { max-width: 560px; margin-inline: auto; }

.perks { list-style: none; display: grid; gap: 0.8rem; margin: 1.6rem 0 0; }
.perks li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 700; font-size: 0.95rem; }
.perks svg { width: 18px; height: 18px; flex: none; margin-top: 0.3rem; color: var(--brand); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; }
.toc {
  position: sticky; top: calc(var(--header-h) + 1.6rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - var(--header-h) - 3rem);
  overflow: auto;
}
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 1rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0.15rem; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 0.6rem; align-items: baseline;
  padding: 0.42rem 0.6rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 700; color: var(--muted);
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-size: 0.72rem; color: var(--brand); font-weight: 800; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }

.legal-body section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 2.2rem;
  margin-bottom: 1.4rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.legal-body h2 { display: flex; align-items: baseline; gap: 0.8rem; font-size: 1.22rem; margin-bottom: 0.9rem; }
.legal-body h2 .sec-no {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--brand-dark); background: var(--brand-tint);
  border-radius: 7px; padding: 0.28rem 0.55rem;
  flex: none;
}
.legal-body p { color: var(--muted); font-size: 0.96rem; }
.legal-body ul { list-style: none; display: grid; gap: 0.75rem; margin-top: 1rem; }
.legal-body ul li {
  position: relative; padding-left: 1.5rem;
  color: var(--muted); font-size: 0.95rem;
}
.legal-body ul li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--brand);
}
.legal-intro { font-size: 1.05rem; color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-region {
  position: fixed; right: 1.2rem; bottom: 4.9rem; z-index: 300;
  display: grid; gap: 0.8rem;
  width: min(380px, calc(100vw - 2.4rem));
  pointer-events: none;
}
.toast { pointer-events: auto; }
.toast {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 1.05rem 1.15rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast.hide { transform: translateX(120%); opacity: 0; }
.toast-icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand-tint); color: var(--brand-dark);
}
.toast-icon svg { width: 18px; height: 18px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 800; font-size: 0.95rem; color: var(--ink); margin-bottom: 0.15rem; }
.toast-msg { font-size: 0.87rem; color: var(--muted); margin: 0; }
.toast-close {
  border: 0; background: none; cursor: pointer;
  color: var(--muted); padding: 0.2rem; border-radius: 6px;
  line-height: 0;
}
.toast-close:hover { color: var(--ink); background: var(--surface-2); }
.toast-close svg { width: 15px; height: 15px; }
.toast.success { border-left-color: var(--success); }
.toast.success .toast-icon { background: #e3f4ec; color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.error .toast-icon { background: #fbeae7; color: var(--danger); }

/* ---------- to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 250;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 0; border-radius: 12px;
  background: var(--navy); color: #fff;
  cursor: pointer; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #aebfcd;
  margin-top: 5.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 1fr 1.05fr;
  gap: 2.6rem;
  padding: 4rem 0 3rem;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text small { color: var(--brand-soft); }
.footer-brand p { font-size: 0.92rem; margin-top: 1.1rem; max-width: 22rem; }
.footer-col h3 {
  color: #fff; font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col ul a { color: #aebfcd; font-size: 0.92rem; font-weight: 600; }
.footer-col ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.92rem; font-weight: 600; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 0.3rem; color: var(--brand-soft); }
.footer-contact a { display: inline; }
.footer-cta { margin-top: 1.2rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.3rem 0;
}
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.6rem;
  font-size: 0.85rem;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-legal a { color: #aebfcd; font-weight: 600; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-link { padding: 0.55rem 0.65rem; font-size: 0.88rem; }
}

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cards { right: 0.8rem; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-cards { position: static; transform: none; margin-top: 1rem; grid-template-columns: repeat(3, 1fr); }
  .hero-card { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .cta-band { grid-template-columns: 1fr; padding: 2.6rem 2rem; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .section { padding: 4rem 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.8rem; }
  .topbar-note { display: none; }
  .hero-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .topbar-left { gap: 1rem; }
  .container { width: calc(100% - 2rem); }
}
