/* ============================================================
   Davis Window Guy — Shared Stylesheet
   Visual identity: clean white base, professional blue accent,
   deep navy text, premium serif headings + clean sans body.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f4f7fb;
  --bg-3: #eaf1f8;
  --surface: #ffffff;
  --line: #e2e8f0;
  --gold: #1e5bb8;
  --gold-soft: #2f74d8;
  --gold-deep: #17457f;
  --text: #14233f;
  --text-dim: #46536b;
  --text-faint: #7c8798;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(20, 40, 80, 0.14);
  --shadow-soft: 0 8px 28px rgba(20, 40, 80, 0.09);
  --max: 1180px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold-soft); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.3px;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.1em; color: var(--text-dim); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.section { padding: 92px 0; }
.section--tight { padding: 60px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 60ch; }

.center { text-align: center; }
.muted { color: var(--text-faint); }
.gold { color: var(--gold); }

/* ---------- Skip link / accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(30, 91, 184, 0.28);
}
.btn--gold:hover { transform: translateY(-2px); color: #ffffff; box-shadow: 0 14px 34px rgba(30, 91, 184, 0.4); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand:hover { color: var(--text); }
.brand .mark {
  width: 38px; height: 38px;
  display: block;
  border-radius: 9px;
  flex-shrink: 0;
}
.brand small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.32em; color: var(--text-faint); text-transform: uppercase; font-weight: 600; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-phone:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 46px; height: 44px;
  cursor: pointer;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; transition: 0.25s; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .nav-phone { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(30, 91, 184, 0.12), transparent 60%),
    linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.80), rgba(255,255,255,0.90)),
    var(--hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .gold { background: linear-gradient(120deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.hero-trust div { font-size: 0.9rem; color: var(--text-faint); }
.hero-trust strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #eaf1f8, #f4f7fb);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { aspect-ratio: 16 / 11; order: -1; }
  .hero { padding: 80px 0 70px; }
}

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(30,91,184,0.4); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.98rem; }
.card .icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(30,91,184,0.1);
  border: 1px solid rgba(30,91,184,0.28);
  color: var(--gold);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }

.price-tag { font-family: var(--serif); color: var(--gold); font-size: 1.25rem; margin-top: 14px; display: block; }
.price-tag small { font-family: var(--sans); font-size: 0.72rem; color: var(--text-faint); letter-spacing: 0.04em; }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { margin-bottom: 0; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 34px; } }

.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--text-dim); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(30,91,184,0.12);
  border: 1px solid var(--gold);
}
.check-list li::after {
  content: "";
  position: absolute; left: 7px; top: 9px;
  width: 6px; height: 10px;
  border: solid var(--gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Band / CTA ---------- */
.band {
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(30,91,184,0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band { text-align: center; padding: 84px 0; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .btn { margin-top: 14px; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}
.quote-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.45; color: var(--text); }
.quote-card cite { font-style: normal; color: var(--text-faint); font-size: 0.9rem; }
.quote-card cite b { color: var(--gold); font-weight: 600; display: block; font-style: normal; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; transition: 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text-dim); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 22px 0 0; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li { color: var(--text-faint); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--gold); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 36px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 380px at 80% -30%, rgba(30,91,184,0.09), transparent 60%); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { margin: 0; }

/* ---------- Blog ---------- */
.post-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(30,91,184,0.4); }
.post-card .thumb { aspect-ratio: 16/10; background: linear-gradient(160deg,#eaf1f8,#f4f7fb); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px 24px 26px; }
.post-card .meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { font-size: 0.95rem; margin-bottom: 16px; }

.article { max-width: 760px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 8px 0 34px; aspect-ratio: 16/8; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; }
.article p { font-size: 1.08rem; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { color: var(--text-dim); padding-left: 1.3em; margin-bottom: 1.2em; }
.article li { margin-bottom: 0.5em; }
.article .article-meta { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 6px; }
.article blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.6em 0;
  padding: 6px 0 6px 22px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
}
.article .tip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.6em 0;
}
.article .tip p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.info-row b { display: block; color: var(--text); font-weight: 600; }
.info-row span { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; letter-spacing: 0.02em; }
label .req { color: var(--gold); }
input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder, textarea::placeholder { color: #9aa4b2; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(30,91,184,0.16);
}
textarea { resize: vertical; min-height: 110px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.checkbox label { margin: 0; font-weight: 400; font-size: 0.9rem; color: var(--text-faint); }
.form-note { font-size: 0.82rem; color: var(--text-faint); margin-top: 14px; }

.form-panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,25,45,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 18px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, #ffffff, #f7fafd);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 38px 36px 34px;
  margin: auto;
  animation: rise 0.3s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 18px 18px 0 0;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: 0.2s;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal .eyebrow { margin-bottom: 8px; }
.modal h2 { font-size: 1.9rem; margin-bottom: 6px; }
.modal > p { font-size: 0.95rem; margin-bottom: 22px; }
@media (max-width: 520px) { .modal { padding: 30px 22px 26px; } }

.form-success { text-align: center; padding: 20px 0 8px; display: none; }
.form-success.show { display: block; animation: fade 0.3s ease; }
.form-success .tick {
  width: 76px; height: 76px; margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(30,91,184,0.12);
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
}
.form-success .tick svg { width: 38px; height: 38px; color: var(--gold); }
.form-success h2 { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: var(--text-dim); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.95rem; margin-top: 14px; max-width: 34ch; }
.footer-nap { font-size: 0.95rem; color: var(--text-dim); }
.footer-nap b { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tag { font-size: 0.78rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-dim); background: var(--surface); }

/* ---------- Rating badge ---------- */
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(30,91,184,0.08);
  border: 1px solid rgba(30,91,184,0.3);
  border-radius: 999px;
  padding: 8px 16px; margin-bottom: 22px;
  font-size: 0.9rem; color: var(--text);
}
.rating-badge .stars { color: var(--gold); letter-spacing: 1px; }
.rating-badge b { color: var(--gold); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step .num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: rgba(30,91,184,0.1);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.97rem; }

/* ---------- Before / After gallery ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.ba-frame { position: relative; aspect-ratio: 4 / 3; background: #eaf1f8; overflow: hidden; }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-frame .before { opacity: 0; transition: opacity 0.35s ease; }
.ba-card.show-before .before { opacity: 1; }
.ba-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  color: var(--text); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.ba-card.show-before .ba-tag::after { content: "Before"; }
.ba-card:not(.show-before) .ba-tag::after { content: "After"; }
.ba-body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; }
.ba-body span { color: var(--text-dim); font-size: 0.95rem; }
.ba-toggle {
  background: transparent; border: 1px solid var(--line);
  color: var(--gold); border-radius: var(--radius-sm);
  padding: 8px 16px; font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: 0.2s;
}
.ba-toggle:hover { border-color: var(--gold); }

/* ---------- Pricing tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.tier {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
}
.tier.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.tier .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #ffffff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.tier h3 { margin-bottom: 4px; }
.tier .amount { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin: 8px 0 2px; }
.tier .amount small { font-family: var(--sans); font-size: 0.8rem; color: var(--text-faint); font-weight: 500; }
.tier .per { color: var(--text-faint); font-size: 0.84rem; margin-bottom: 4px; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.tier li { padding: 9px 0 9px 28px; position: relative; border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 0.95rem; }
.tier li:last-child { border-bottom: none; }
.tier li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 6px; height: 10px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Service area chips ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
.area-chip {
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: 0.2s;
}
.area-chip:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Sticky bottom CTA bar ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(20, 40, 80, 0.1);
}
.sticky-cta .btn { flex: 1; padding: 14px 18px; }
/* Reserve space so the bar never hides page content or the footer */
body.has-sticky-cta { padding-bottom: 84px; }

/* ---------- Misc helpers ---------- */
.center-cta { margin-top: 38px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
