/* ============================================================
   WedMeWed — style.css
   Palette: Ivory #FBF7F2 · Cream #F5EDE3 · Champagne #E8D4B0
            Gold #B58A4A · Rose #C98F91 · Ink #2D2926 · Muted #756C65
   Type:    Playfair Display (display) · DM Sans (body)
   ============================================================ */

:root {
  --ivory:     #FBF7F2;
  --cream:     #F5EDE3;
  --champagne: #E8D4B0;
  --gold:      #B58A4A;
  --gold-dark: #96703A;
  --rose:      #C98F91;
  --ink:       #2D2926;
  --muted:     #756C65;
  --white:     #FFFFFF;
  --line:      rgba(181, 138, 74, 0.25);
  --shadow-soft: 0 10px 40px rgba(45, 41, 38, 0.08);
  --shadow-card: 0 4px 18px rgba(45, 41, 38, 0.06);
  --radius: 14px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

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

.container { width: min(1160px, 92%); margin-inline: auto; }
.container.narrow { width: min(880px, 92%); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.section-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(181, 138, 74, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(181, 138, 74, 0.45); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream); }

.btn-outline { background: var(--white); color: var(--gold-dark); border-color: var(--gold); }
.btn-outline:hover { background: var(--cream); transform: translateY(-1px); }

.btn-wa { border-color: #2e7d52; color: #2e7d52; }
.btn-wa:hover { background: #eef7f1; }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.logo-text em { font-style: italic; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 0.93rem; }
.main-nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-cta { margin-left: 0.4rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(232, 212, 176, 0.45), transparent 70%),
    var(--ivory);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero .accent-script { font-style: italic; color: var(--gold); }
.hero-sub {
  max-width: 560px;
  margin: 1.2rem auto 2rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
}
.hero-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.trust-row {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 2.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.tick { color: var(--gold); font-weight: 700; margin-right: 0.3rem; }

/* Signature: mandap-arch line ornaments */
.hero-ornament {
  position: absolute;
  top: 8%;
  width: 260px;
  height: 380px;
  border: 1.5px solid var(--champagne);
  border-bottom: none;
  border-radius: 130px 130px 0 0;
  opacity: 0.7;
  pointer-events: none;
}
.hero-ornament::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--rose);
  border-bottom: none;
  border-radius: 112px 112px 0 0;
  opacity: 0.5;
}
.hero-ornament-left  { left: -110px; }
.hero-ornament-right { right: -110px; }

/* ---------- Calculator ---------- */
.calculator-section { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--cream); }

.calc-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border: 1px solid var(--line);
}

.calc-progress { height: 4px; background: var(--cream); border-radius: 4px; overflow: hidden; }
.calc-progress-bar {
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 4px;
  transition: width 0.35s ease;
}
.calc-steps-label {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0.8rem 0 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-steps-label li.active { color: var(--gold-dark); font-weight: 700; }

.calc-q { text-align: center; margin-bottom: 1.6rem; }

.calc-step { animation: stepIn 0.35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.calc-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.8rem; gap: 1rem; flex-wrap: wrap; }

/* City cards */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}
.city-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: 1rem 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
  font-family: var(--font-body);
}
.city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.city-card:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.city-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff, var(--cream));
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-card);
}
.city-name { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); }
.city-tier {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(232, 212, 176, 0.5);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* Ranges */
.range-block { margin-bottom: 1.8rem; }
.range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.range-head label { font-weight: 600; font-size: 0.95rem; }
.range-value-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ivory);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
}
.range-value-wrap:focus-within { border-color: var(--gold); }
.range-value-wrap .rupee, .range-value-wrap .unit { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.range-value-wrap input {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  width: 8.5ch;
  text-align: right;
}
#budgetInput { width: 10.5ch; }
.range-value-wrap input:focus { outline: none; }

input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 30%), var(--cream) var(--fill, 30%));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  box-shadow: 0 2px 8px rgba(45,41,38,0.2);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
  box-shadow: 0 2px 8px rgba(45,41,38,0.2);
}
input[type="range"]:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.field-error { font-size: 0.83rem; color: #a3352f; margin-top: 0.5rem; font-weight: 600; }

/* Priority cards */
.priority-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.priority-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  padding: 1.15rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
  font-family: var(--font-body);
}
.priority-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.priority-card:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.priority-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff, var(--cream));
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-card);
}
.priority-icon { font-size: 1.5rem; }
.priority-name { display: block; font-weight: 700; margin: 0.4rem 0 0.15rem; color: var(--ink); }
.priority-desc { font-size: 0.83rem; color: var(--muted); }

/* ---------- Results ---------- */
.results-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}
.summary-item { background: var(--white); padding: 1rem 0.9rem; text-align: center; }
.summary-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.summary-item strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }

.results-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.6rem;
  align-items: start;
}

.donut-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.6rem;
  position: sticky;
  top: 90px;
}
.donut-wrap { display: flex; justify-content: center; }
.donut {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--cream) 0 100%);
  transition: background 0.5s ease;
}
.donut-hole {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.donut-hole-label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.donut-hole strong { font-family: var(--font-display); font-size: 1.25rem; }

.donut-legend { list-style: none; margin-top: 1.3rem; display: grid; gap: 0.45rem; }
.donut-legend li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; color: var(--muted); }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.donut-legend .legend-pct { margin-left: auto; font-weight: 700; color: var(--ink); }

.health-block { margin-top: 1.5rem; border-top: 1px dashed var(--line); padding-top: 1.2rem; }
.health-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; color: var(--muted); }
.health-head strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); }
.health-bar { height: 8px; background: var(--cream); border-radius: 8px; margin-top: 0.55rem; overflow: hidden; }
.health-bar-fill { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width 0.8s ease; }
.health-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.55rem; }

.category-list { display: grid; gap: 0.9rem; }
.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.25rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.cat-top { display: flex; align-items: center; gap: 0.7rem; }
.cat-icon { font-size: 1.35rem; }
.cat-name { font-weight: 700; font-size: 0.98rem; }
.cat-amt { margin-left: auto; text-align: right; }
.cat-amt strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.cat-amt span { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.cat-bar { height: 7px; background: var(--cream); border-radius: 7px; margin-top: 0.8rem; overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 7px; width: 0; transition: width 0.8s ease; }

.per-guest-note {
  text-align: center;
  margin: 2rem auto 0;
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
}

.result-cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}
.disclaimer { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 1.4rem; max-width: 620px; margin-inline: auto; }
.recalc-row { text-align: center; margin-top: 1rem; }

/* ---------- Tips ---------- */
.tips-section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--cream); }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tip-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.tip-card h3 { font-size: 1rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.tip-card p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Info / vendor / guides ---------- */
.info-section, .guides-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.info-lead { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 2rem; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}
.info-card h3 { margin-bottom: 0.5rem; color: var(--gold-dark); }
.info-card p { font-size: 0.9rem; color: var(--muted); }

.vendor-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.vendor-cta-card {
  background: linear-gradient(135deg, var(--ink) 0%, #453e39 100%);
  color: var(--ivory);
  text-align: center;
  border-radius: 22px;
  padding: clamp(2rem, 6vw, 3.5rem);
}
.vendor-cta-card h2 { color: var(--champagne); margin-bottom: 0.6rem; }
.vendor-cta-card p { color: rgba(251,247,242,0.75); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,247,242,0.7); padding: 2.6rem 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.8rem; }
.footer-brand .logo-text { color: var(--ivory); }
.footer-brand p { font-size: 0.85rem; margin-top: 0.5rem; max-width: 260px; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(251,247,242,0.75); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--champagne); }
.footer-bottom { border-top: 1px solid rgba(251,247,242,0.12); padding: 1.1rem 0; font-size: 0.78rem; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 41, 38, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 100;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--ivory);
  border-radius: 20px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  width: min(480px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal h3 { margin-bottom: 0.4rem; }
.modal-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; }
.modal-close {
  position: absolute;
  top: 0.9rem; right: 1rem;
  background: none; border: none;
  font-size: 1.7rem; color: var(--muted);
  cursor: pointer; line-height: 1;
}
.modal-close:focus-visible { outline: 3px solid var(--rose); border-radius: 6px; }

.form-field { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--muted); }
.form-field input, .form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(181,138,74,0.15); }
.form-field input[aria-invalid="true"], .form-field select[aria-invalid="true"] { border-color: #a3352f; }

.modal-budget-line {
  background: var(--cream);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.form-status { font-size: 0.88rem; text-align: center; margin-top: 0.8rem; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: #2e7d52; }
.form-status.err { color: #a3352f; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .results-grid { grid-template-columns: 1fr; }
  .donut-card { position: static; }
}

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 61px;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    width: min(300px, 82vw);
    height: calc(100dvh - 61px);
    padding: 1.6rem 1.4rem;
    gap: 1.1rem;
    box-shadow: -12px 0 30px rgba(0,0,0,0.1);
    transform: translateX(105%);
    transition: transform 0.28s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-cta { margin: 0.6rem 0 0; width: 100%; }
  .hero-ornament { display: none; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .calc-nav .btn { flex: 1 1 auto; }
  .result-cta-row .btn { width: 100%; }
  .donut { width: 200px; height: 200px; }
  .donut-hole { width: 122px; height: 122px; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print (report handled by report.js) ---------- */
@media print {
  .site-header, .site-footer, .calculator-section, .hero, .info-section,
  .vendor-section, .guides-section, .result-cta-row, .recalc-row,
  .modal-backdrop, .hamburger { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   OPTIONAL VENDOR-QUOTE CARD (inline — replaces the old popup)
   ============================================================ */

.cta-freenote {
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.connect-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.connect-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  position: relative;
  overflow: hidden;
}

.connect-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--champagne), var(--gold), var(--rose));
}

.connect-intro h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin: 0.25rem 0 0.6rem;
}

.connect-intro h2 span { color: var(--gold-dark); }

.connect-sub {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

.connect-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.connect-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.connect-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.connect-form-wrap {
  background: var(--cream);
  border-radius: calc(var(--radius) - 4px);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}

.connect-skip {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

#leadFormWrap { margin-top: 1.1rem; }

.connect-privacy {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 0.8rem;
  text-align: center;
}

@media (max-width: 820px) {
  .connect-card { grid-template-columns: 1fr; }
}

@media print {
  .connect-section { display: none !important; }
}

/* ============================================================
   PHASE 4 — CONTENT PAGES (city cost guides + planning guides)
   ============================================================ */

.content-page { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem); }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--ink); font-weight: 600; }

.content-head { margin-bottom: 2rem; }
.content-head h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0.3rem 0 0.9rem;
}
.lede {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.75;
  color: var(--muted);
}

.content-section { margin-bottom: clamp(2rem, 5vw, 3rem); }
.content-section h2 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.content-section h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.content-section p { line-height: 1.75; color: var(--ink); margin-bottom: 0.9rem; }

/* Inline CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--cream), rgba(232, 212, 176, 0.45));
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.inline-cta p { margin: 0; flex: 1 1 260px; font-size: 0.93rem; line-height: 1.6; }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.cost-table th, .cost-table td { padding: 0.7rem 0.85rem; text-align: left; }
.cost-table thead th {
  background: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cost-table tbody tr { border-top: 1px solid var(--line); }
.cost-table tbody th { font-weight: 600; }
.cost-table tbody td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.cost-table tfoot tr { border-top: 2px solid var(--champagne); background: var(--ivory); }
.cost-table tfoot th, .cost-table tfoot td { font-weight: 700; }
.cell-sub { color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.table-note { font-size: 0.84rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.6rem; }

.scenario-block { margin-bottom: 2rem; }
.scenario-block h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}

/* Cost drivers */
.driver-list { display: grid; gap: 1.1rem; }
.driver-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.driver-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.85rem;
}
.driver-item p { margin: 0; font-size: 0.93rem; }

/* Tick list */
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  line-height: 1.65;
  font-size: 0.93rem;
}
.tick-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--gold);
  font-weight: 700;
}

/* FAQ */
.faq-list { display: grid; gap: 0.6rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* City chips */
.city-chip-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.city-chip {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--champagne);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.city-chip:hover { background: var(--cream); transform: translateY(-1px); }

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.guide-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.guide-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.7rem; }
.guide-link { font-size: 0.84rem; font-weight: 700; color: var(--gold-dark); }

/* Closing CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--cream), var(--champagne));
  padding: clamp(2.2rem, 5vw, 3.5rem) 0;
  text-align: center;
}
.cta-band-inner h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin-bottom: 0.6rem; }
.cta-band-inner p { color: var(--muted); margin-bottom: 1.3rem; }

@media (max-width: 640px) {
  .inline-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .cost-table { font-size: 0.82rem; }
  .cost-table th, .cost-table td { padding: 0.55rem 0.6rem; }
}

@media print {
  .cta-band, .inline-cta, .breadcrumb, .city-chip-row { display: none !important; }
}

.guides-subhead {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 1.8rem 0 0.8rem;
}

/* ============================================================
   PHASE 3b — VENDOR PROFILE PAGES
   ============================================================ */

.vendor-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  margin-bottom: 2rem;
}

.vendor-hero-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  display: block;
}

.vendor-hero-body h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  margin: 0.25rem 0 0.5rem;
}

.vendor-area { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.7rem; }

.vendor-price-lg {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 1.1rem;
}
.price-note {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.vendor-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.featured-flag {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(232, 212, 176, 0.6);
  color: var(--gold-dark);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  vertical-align: middle;
  margin-left: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
}

/* Enquiry form (inline — never a popup) */
.enquiry-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
}
.enquiry-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.enquiry-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  resize: vertical;
}
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 138, 74, 0.15);
}

@media (max-width: 820px) {
  .vendor-hero { grid-template-columns: 1fr; }
  .vendor-hero-img { max-height: 240px; }
}
@media (max-width: 640px) {
  .enquiry-form .form-row { grid-template-columns: 1fr; }
}
@media print {
  .enquiry-form, .vendor-actions { display: none !important; }
}

/* ============================================================
   PHASE 6a — "FIND ME VENDORS" REQUEST FORM
   ============================================================ */

.request-section { margin-bottom: clamp(2rem, 5vw, 3.2rem); }

.request-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.3rem, 3.5vw, 2.6rem);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.3rem, 3.5vw, 2.4rem);
  position: relative;
  overflow: hidden;
}
.request-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--champagne), var(--gold), var(--rose));
}

.request-intro h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.95rem);
  line-height: 1.2;
  margin: 0.25rem 0 0.65rem;
}
.request-sub {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* Category chips */
.cat-fieldset { border: none; padding: 0; margin: 0 0 0.9rem; }
.cat-fieldset legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.5rem;
}
.cat-grid { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cat-chip { position: relative; cursor: pointer; }
.cat-chip input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.cat-chip span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
  user-select: none;
}
.cat-chip:hover span { border-color: var(--champagne); }
.cat-chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.cat-chip input:focus-visible + span {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* Success state */
.request-success {
  grid-column: 1 / -1;
  text-align: center;
  background: linear-gradient(135deg, var(--cream), rgba(232, 212, 176, 0.4));
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 3rem) 1.5rem;
}
.request-success:focus { outline: none; }
.success-tick {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
}
.request-success h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.request-success p { color: var(--ink); font-size: 0.95rem; line-height: 1.7; max-width: 430px; margin: 0 auto 0.5rem; }
.success-sub { color: var(--muted) !important; font-size: 0.87rem !important; }

.dir-heading {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .request-card { grid-template-columns: 1fr; }
}

/* ============================================================
   PHASE 6b — BLOG
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--cream);
}
.blog-card-noimg {
  background: linear-gradient(135deg, var(--cream), var(--champagne));
}

.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.blog-card-body h2 { font-size: 1.05rem; line-height: 1.35; margin: 0; }
.blog-card-body p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin: 0; }

.blog-cat {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(232, 212, 176, 0.5);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.blog-date { font-size: 0.76rem; color: var(--muted); margin-top: auto; padding-top: 0.4rem; }

.chip-active { background: var(--gold) !important; border-color: var(--gold) !important; color: #fff !important; }

.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.post-meta { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.9rem; }

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: block;
  background: var(--cream);
}
@media (max-width: 640px) {
  .post-cover { aspect-ratio: 4 / 3; border-radius: 12px; }
}

/* Article body — styles whatever HTML the author wrote */
.post-body { font-size: 1.02rem; line-height: 1.8; }
.post-body p { margin-bottom: 1.15rem; }
.post-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}
.post-body h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 1.7rem 0 0.6rem; }
.post-body ul, .post-body ol { margin: 0 0 1.15rem 1.3rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body a { color: var(--gold-dark); }
/* Article images.
   Every upload is scaled server-side to at most 1800px wide, and the editor
   tags each one as .full (>=900px, fills the column) or .inline (smaller,
   shown at its own size and centred). Nothing is ever stretched beyond its
   real resolution, so images never look blurry. width/height attributes are
   written on the tag, so the page does not jump as pictures load. */
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.6rem auto;
  display: block;
  background: var(--cream);
}
/* Anything not explicitly marked .inline runs full width. This also covers
   posts written before the class existed, so old articles look right too. */
.post-body img:not(.inline) { width: 100%; }
.post-body img.inline { width: auto; }

/* Two images side by side stay tidy rather than stacking awkwardly */
.post-body p > img + img { margin-top: 1rem; }

@media (max-width: 640px) {
  /* On a phone every image runs the full width of the column, so a page of
     mixed portrait and landscape photos still reads as one consistent column
     instead of jumping between widths. */
  .post-body img,
  .post-body img.inline,
  .post-body img.full {
    width: 100%;
    margin: 1.2rem 0;
    border-radius: 12px;
  }
}
.post-body blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-style: italic;
}
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.3rem; font-size: 0.9rem; }
.post-body th, .post-body td { padding: 0.6rem 0.8rem; border: 1px solid var(--line); text-align: left; }
.post-body th { background: var(--cream); font-weight: 700; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Draft preview banner (visible to a logged-in admin only) */
.draft-banner {
  background: #fdf1e0;
  border: 1px solid var(--champagne);
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.4rem;
}
.draft-banner a { color: var(--gold-dark); font-weight: 700; }
