/* ===========================================================
   Court Marriage Service — courtsmarriage.com
   Design system: Wine & Gold — legal trust meets wedding premium
   =========================================================== */

:root {
  /* Color tokens */
  --wine: #7A1B2E;
  --wine-dark: #4E1019;
  --wine-tint: #FBEDEF;
  --gold: #C9A227;
  --gold-light: #E7CE7C;
  --gold-pale: #F6EEDA;
  --ivory: #FBF6EE;
  --ivory-deep: #F3EAD9;
  --charcoal: #201712;
  --ink-soft: #574B42;
  --sage: #33513F;
  --sage-tint: #E9F0EA;
  --line: rgba(32, 23, 18, 0.12);
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Shape / motion */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --shadow-card: 0 1px 2px rgba(32,23,18,.04), 0 12px 32px -16px rgba(32,23,18,.18);
  --shadow-lift: 0 20px 48px -20px rgba(32,23,18,.35);
  --ease: cubic-bezier(.22,.85,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { 
  overflow-x: hidden; 
  width: 100%; 
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--charcoal); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; }

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.relative-z { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--gold);
}
.eyebrow-gold { color: var(--gold-light); }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }
.section--sage { background: var(--sage-tint); }
.section--wine { background: var(--wine); color: var(--ivory); }
.section--ivory-deep { background: var(--ivory-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--wine);
  color: var(--ivory);
  box-shadow: 0 10px 24px -10px rgba(122,27,46,.55);
}
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(122,27,46,.6); }
.btn-outline {
  background: transparent;
  color: var(--wine);
  border-color: var(--wine);
}
.btn-outline:hover { background: var(--wine); color: var(--ivory); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold);
  color: var(--wine-dark);
  box-shadow: 0 10px 24px -10px rgba(201,162,39,.55);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-ghost-light {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(251,246,238,.5);
}
.btn-ghost-light:hover { background: rgba(251,246,238,.12); border-color: var(--ivory); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,246,238,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.1; color: var(--wine-dark); }
.brand-text span { display: block; font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 600;
}
.nav-links > a { position: relative; padding: 4px 0; color: var(--charcoal); }
.nav-links > a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links > a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; color: var(--wine-dark);
}
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--wine-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  background:
    radial-gradient(circle at 85% 10%, rgba(201,162,39,.14), transparent 45%),
    var(--ivory);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--wine-dark);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage-tint); color: var(--sage);
  display: flex; align-items: center; justify-content: center;
}
.hero-badge .dot svg { width: 13px; height: 13px; }

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--wine);
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 36px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--wine);
  font-weight: 600;
}
.stat-label { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }

/* Hero photo collage */
.hero-visual {
  position: relative;
  height: 560px;
  width: 100%;
}
.frame {
  position: absolute;
  border: 8px solid var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  background: var(--white);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(201,162,39,.5);
  pointer-events: none;
}
.frame-1 { width: 62%; top: 0; right: 0; height: 66%; transform: rotate(3deg) translateZ(0); z-index: 2; }
.frame-2 { width: 46%; bottom: 6%; left: 0; height: 46%; transform: rotate(-5deg) translateZ(0); z-index: 3; }
.frame-3 { width: 34%; top: 10%; left: 6%; height: 32%; transform: rotate(-8deg) translateZ(0); z-index: 1; }
.hero-visual .seal {
  position: absolute;
  bottom: -14px; right: 10%;
  z-index: 4;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.25;
  box-shadow: var(--shadow-lift);
  border: 3px solid var(--gold);
  padding: 10px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--wine);
  color: var(--ivory);
  padding: 18px 0;
  overflow: hidden;
}
.trust-strip ul {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.trust-strip li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.trust-strip svg { width: 16px; height: 16px; color: var(--gold-light); flex-shrink: 0; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }
.svc-card.featured { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-pale), var(--white) 55%); }
.svc-tag {
  position: absolute; top: -12px; left: 26px;
  background: var(--wine); color: var(--ivory);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px;
  z-index: 5;
}
.svc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--wine-tint);
  color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 19px; margin-bottom: 10px; }
.svc-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Pricing Section with Premium Image Background ---------- */
.pricing-section {
  position: relative;
  background: linear-gradient(rgba(32, 23, 18, 0.88), rgba(32, 23, 18, 0.95)), url('https://images.unsplash.com/photo-1622353112204-6330ce9a08e6?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  color: var(--ivory);
  border-top: none;
}
.pricing-section .section-head h2 { color: var(--ivory); }
.pricing-section .section-head p { color: rgba(251, 246, 238, 0.8); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.price-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 162, 39, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-m);
  padding: 32px 24px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}
.price-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.4); 
  border-color: rgba(201, 162, 39, 0.7); 
}
.price-card.featured-price {
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.15), rgba(255, 255, 255, 0.05));
  border-color: var(--gold);
}
.price-card.featured-price .svc-tag { left: 50%; transform: translateX(-50%); top: -14px; width: max-content; }
.price-card h3 { 
  font-size: 17px; 
  margin-bottom: 20px; 
  color: rgba(251, 246, 238, 0.95); 
  font-family: var(--font-body); 
  font-weight: 600; 
  line-height: 1.4; 
}
.price-card .price-amt { 
  font-family: var(--font-display); 
  font-size: 32px; 
  color: var(--gold-light); 
  font-weight: 700; 
  margin-top: auto; 
}

/* ---------- Wall of Vows (signature gallery) ---------- */
.vows-wrap { position: relative; }
.vows-scroll {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 28px 4px 28px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.vows-scroll::-webkit-scrollbar { height: 8px; }
.vows-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
.vows-scroll::-webkit-scrollbar-track { background: var(--ivory-deep); }

.vow-card {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
  background: var(--white);
  padding: 10px 10px 40px;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.vow-card:nth-child(odd) { transform: rotate(-2.4deg) translateZ(0); }
.vow-card:nth-child(even) { transform: rotate(2deg) translateZ(0); }
.vow-card:hover { transform: rotate(0deg) scale(1.04) translateY(-4px); box-shadow: var(--shadow-lift); z-index: 5; }
.vow-card img { width: 100%; height: 320px; object-fit: cover; border-radius: 2px; }
.vow-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
  text-align: center;
  color: var(--ink-soft);
  padding-top: 12px;
}

/* ---------- How it works ---------- */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.steps { position: relative; }
.step { display: flex; gap: 20px; padding-bottom: 34px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute; left: 21px; top: 46px; bottom: 0;
  width: 1.5px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--wine-tint);
  color: var(--wine);
  font-family: var(--font-display);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  z-index: 1;
}
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

.court-photo-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lift);
}
.court-photo-card img { height: 280px; object-fit: cover; }
.court-photo-caption {
  padding: 20px 22px;
  background: var(--wine-dark);
  color: var(--ivory);
  font-size: 13.5px;
}
.court-photo-caption strong { color: var(--gold-light); font-family: var(--font-display); font-size: 15px; display: block; margin-bottom: 4px; }

.docs-card {
  margin-top: 24px;
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.docs-card h4 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.docs-card h4 svg { width: 20px; height: 20px; color: var(--gold); }
.doc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  cursor: pointer;
  user-select: none;
}
.doc-item:last-of-type { border-bottom: none; }
.doc-check {
  width: 21px; height: 21px; border-radius: 6px;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.doc-check svg { width: 13px; height: 13px; color: var(--white); opacity: 0; transition: opacity .15s var(--ease); }
.doc-item.checked .doc-check { background: var(--sage); border-color: var(--sage); }
.doc-item.checked .doc-check svg { opacity: 1; }
.doc-item.checked .doc-label { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--line); }
.docs-progress { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Reviews ---------- */
.reviews-head-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  margin-bottom: 8px;
}
.google-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px 22px;
  box-shadow: var(--shadow-card);
}
.google-badge .stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.google-badge .num { font-family: var(--font-display); font-size: 26px; color: var(--wine); }
.google-badge .meta { font-size: 12.5px; color: var(--ink-soft); }

.reviews-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding: 24px 4px;
  scroll-snap-type: x proximity;
}
.review-card {
  flex: 0 0 auto; width: 320px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 24px;
  box-shadow: var(--shadow-card);
}
.review-card .stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; margin-bottom: 12px; }
.review-card p.quote { font-size: 14.5px; color: var(--charcoal); min-height: 84px; }
.review-name { margin-top: 16px; font-weight: 700; font-size: 14px; }
.review-meta { font-size: 12.5px; color: var(--ink-soft); }
.review-card.editable { border: 1.5px dashed var(--gold); background: var(--gold-pale); }
.review-card.editable .quote { font-style: italic; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 4px; background: none; border: none;
  font-family: var(--font-display); font-size: 18px; text-align: left; color: var(--charcoal);
}
.faq-q .plus {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--gold); color: var(--wine);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), background .3s var(--ease);
  position: relative;
}
.faq-q .plus svg { width: 14px; height: 14px; }
.faq-item.open .faq-q .plus { background: var(--wine); border-color: var(--wine); color: var(--ivory); transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 4px 22px; font-size: 15px; color: var(--ink-soft); max-width: 640px; }
.faq-item.open .faq-a { max-height: 220px; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(160deg, var(--wine-dark), var(--wine));
  color: var(--ivory);
  border-radius: var(--radius-l);
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(201,162,39,.25), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(201,162,39,.18), transparent 45%);
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(28px, 4vw, 42px); color: var(--ivory); margin: 14px 0 8px; }
.final-cta .eyebrow { color: var(--gold-light); }
.final-cta .eyebrow::before { background: var(--gold-light); }
.final-cta p.support { color: rgba(251,246,238,.8); margin-bottom: 32px; font-size: 15px; }
.final-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-info h2 { font-size: clamp(28px, 3.6vw, 36px); margin-top: 14px; }
.contact-info > p { margin-top: 14px; color: var(--ink-soft); font-size: 16px; max-width: 460px; }
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--wine-tint); color: var(--wine);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row .label { font-size: 12.5px; color: var(--ink-soft); }
.contact-row .value { font-weight: 700; font-size: 15.5px; }
.map-embed { margin-top: 28px; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

.inquiry-form {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 36px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
}
.inquiry-form h3 { font-size: 20px; margin-bottom: 6px; }
.inquiry-form .form-sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  background: var(--ivory);
  color: var(--charcoal);
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.form-note { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.form-note a { color: var(--wine); font-weight: 700; }
#formStatus { text-align: center; font-size: 13.5px; margin-top: 10px; min-height: 18px; }
#formStatus.success { color: var(--sage); font-weight: 700; }
#formStatus.error { color: var(--wine); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: rgba(251,246,238,.7); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(251,246,238,.12); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-text { color: var(--ivory); }
.footer-col h5 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--ivory); }
.footer-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-areas span { font-size: 12px; padding: 5px 12px; border: 1px solid rgba(251,246,238,.18); border-radius: 999px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: .5;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.mobile-cta-bar .btn { flex: 1; padding: 13px 10px; font-size: 13.5px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===================== INNER PAGES & DROPDOWN ===================== */

/* Dropdown Menu */
.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown {
  position: absolute; top: 100%; left: -16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-lift);
  padding: 12px 0; min-width: 240px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s var(--ease); z-index: 200;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 24px; font-size: 14px; font-weight: 600;
  color: var(--charcoal); transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--wine-tint); color: var(--wine); }
.dropdown a::after { display: none !important; }

/* Inner Page Hero */
.inner-hero {
  padding: 72px 0 56px;
  background: linear-gradient(160deg, var(--ivory), var(--ivory-deep));
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.inner-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.inner-hero p { font-size: 18px; color: var(--ink-soft); max-width: 680px; margin: 0 auto; }

/* Content + Sticky Form Layout */
.page-layout {
  display: grid; grid-template-columns: 1fr 400px; gap: 64px;
  align-items: start; padding: 64px 0;
}
.page-content h2 { font-size: 28px; margin: 32px 0 16px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 16px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; }
.page-content ul.seo-list { margin-bottom: 24px; padding-left: 20px; }
.page-content ul.seo-list li { font-size: 16px; color: var(--ink-soft); margin-bottom: 8px; list-style-type: disc; }
.page-content ul.seo-list li strong { color: var(--charcoal); }

.sticky-sidebar { position: sticky; top: 100px; }
.sticky-sidebar .inquiry-form { box-shadow: var(--shadow-card); padding: 32px; }

/* ===================== Desktop Overrides ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 460px; margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}

/* ===================== STRICT MOBILE OVERRIDES ===================== */
.hide-mobile { display: flex; }
.show-mobile-inline { display: none; }

@media (max-width: 760px) {
  /* Header & General Layout */
  .nav-links { display: none; }
  .hide-mobile { display: none !important; }
  .show-mobile-inline { display: flex; align-items: center; }
  
  .header-cta { gap: 16px; }
  .nav-toggle { display: flex; }
  .section { padding: 56px 0; }
  body { padding-bottom: 74px; overflow-x: hidden; }

  /* Mobile Services Header Dropdown */
  .show-mobile-inline.has-dropdown > a {
    font-family: var(--font-body);
    font-size: 15px; font-weight: 700; color: var(--wine);
  }
  .show-mobile-inline .dropdown {
    left: auto; right: -50px; top: 140%; min-width: 220px;
  }

  /* Blinking WA Icon in Mobile Header */
  .header-wa-mobile {
    position: relative;
    color: #25D366;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
  }
  .header-wa-mobile svg { width: 26px; height: 26px; z-index: 2; position: relative; fill: currentColor; }
  .pulse-ring {
    position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(37,211,102,0.3);
    animation: pulse 2s ease-out infinite;
  }

  /* Hero Section Strict Fixes */
  .hero { padding-top: 36px; overflow: hidden; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); word-wrap: break-word; hyphens: auto; line-height: 1.1; }
  .hero-sub { font-size: 16px; margin-top: 16px; }
  .hero-badge { max-width: 100%; white-space: normal; line-height: 1.4; text-align: left; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 24px; margin-top: 32px; }
  .stat-num { font-size: 26px; }
  
  /* Hero Visual Overlap Fix */
  .hero-visual { 
    height: 320px; 
    width: 100%; 
    max-width: 400px; 
    margin: 20px auto 0;
  }
  .frame-1 { width: 55%; height: 60%; }
  .frame-2 { width: 45%; height: 50%; }
  .frame-3 { width: 40%; height: 40%; top: 5%; }
  .hero-visual .seal { width: 80px; height: 80px; font-size: 11px; padding: 5px; right: 5%; bottom: 0; }

  /* Trust Strip Fix */
  .trust-strip ul { gap: 24px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 0 12px; scroll-snap-type: x mandatory; }
  .trust-strip li { scroll-snap-align: start; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  
  /* Pricing Mobile Fixes */
  .pricing-section { padding: 64px 0; }
  .price-card { min-height: auto; padding: 28px 20px; }
  .price-card h3 { font-size: 16px; margin-bottom: 12px; }
  .price-card .price-amt { font-size: 28px; }

  /* Footer & Sticky Elements */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .mobile-cta-bar { display: flex; }
  .wa-float { bottom: 90px; width: 52px; height: 52px; right: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .hero-visual { height: 280px; }
  .final-cta { padding: 44px 22px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .inner-hero { padding: 48px 0 32px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ivory);
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-shrink: 0; }
.mobile-nav > a { font-family: var(--font-display); font-size: 26px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; flex-shrink: 0; font-family: var(--font-body); font-size: 16px; padding: 16px; border-bottom: none; }

/* ===================== MOBILE SERVICES ACCORDION ===================== */
.mobile-dropdown-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--charcoal);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-dropdown-btn svg {
  width: 24px;
  height: 24px;
  color: var(--wine);
  transition: transform .3s var(--ease);
}
.mobile-dropdown-btn.active svg {
  transform: rotate(180deg);
}
.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
  background: var(--ivory-deep);
  margin: 0 -24px;
  padding: 0 24px;
}
.mobile-dropdown-content a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  display: block;
}
.mobile-dropdown-content a:last-child {
  border-bottom: none;
}