/* ========================================
   BuildHQ — Main Website CSS
   India's Home Building Platform
   ======================================== */

:root {
  --ink: #1a1714;
  --paper: #f4efe7;
  --card: #fbf8f2;
  --line: #e0d6c6;
  --accent: #c2410c;
  --accent-hover: #b03a0b;
  --accent2: #15803d;
  --muted: #7a6f60;
  --gold: #b08900;
  --white: #ffffff;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Spline Sans', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.025) 1px, transparent 0);
  background-size: 22px 22px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 900; margin-top: 0; line-height: 1.15; }
p { margin-top: 0; }
img { max-width: 100%; height: auto; }
ul { padding-left: 1.5rem; }

/* ===== NAVBAR ===== */
.site-nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  gap: 4px;
}
.nav-brand {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 22px;
  color: #f4efe7;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-right: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-brand b { color: #FC6403; }
.nav-brand:hover { text-decoration: none; color: #f4efe7; }
.nav-logo-img { max-height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 22px 10px;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #FC6403;
  border-bottom-color: #FC6403;
  text-decoration: none;
}
.nav-links > li > a.highlight { color: #FC6403; font-weight: 700; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #242018;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  color: #b8a99a;
  font-size: 13px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .1s, color .1s;
}
.nav-dropdown a:hover {
  background: rgba(255,255,255,.06);
  color: #FC6403;
  text-decoration: none;
}
.nav-dropdown a.highlight { color: #FC6403; font-weight: 700; }
.nav-dropdown a.partner { color: #b08900; font-weight: 600; }

.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  border-bottom: none !important;
  transition: background .15s, transform .1s;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); text-decoration: none !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #cdc3b5;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: auto;
  line-height: 1;
}

/* ===== HERO ===== */
.site-hero {
  background: #fff;
  color: var(--ink);
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner { max-width: 820px; margin: 0 auto; position: relative; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 11.5px;
  letter-spacing: 1px;
  margin-bottom: 28px;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-pill span { color: #FC6403; }

.site-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -2px;
  line-height: 1.0;
  margin-bottom: 8px;
  color: var(--ink);
}
.site-hero h1 em { color: #FC6403; font-style: normal; }

.hero-uvp {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 580px;
  margin: 16px auto 36px;
  line-height: 1.55;
}

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn-primary-hq {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Spline Sans', sans-serif;
  box-shadow: 0 4px 16px rgba(194,65,12,.4);
}
.btn-primary-hq:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194,65,12,.45);
  text-decoration: none;
}

.btn-secondary-hq {
  background: transparent;
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--line);
  transition: border-color .15s, color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Spline Sans', sans-serif;
}
.btn-secondary-hq:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; background: rgba(26,23,20,.04); }

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.hero-stat { flex: 1; padding: 0 24px; text-align: center; border-right: 1px solid var(--line); max-width: 180px; }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: 'Fraunces', serif; font-size: 30px; font-weight: 900; color: #FC6403; display: block; }
.hero-stat .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 80px 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.how-inner { max-width: 1000px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 10px;
}
.section-sub { color: var(--muted); font-size: 16px; max-width: 540px; margin: 0 auto 52px; line-height: 1.6; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--gold), var(--accent2));
  opacity: .4;
}
.step { padding: 36px 28px 24px; }
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step:nth-child(1) .step-num { background: var(--accent); box-shadow: 0 6px 20px rgba(194,65,12,.35); }
.step:nth-child(2) .step-num { background: var(--gold); box-shadow: 0 6px 20px rgba(176,137,0,.35); }
.step:nth-child(3) .step-num { background: var(--accent2); box-shadow: 0 6px 20px rgba(21,128,61,.35); }
.step h3 { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; }
.step .step-link { margin-top: 16px; display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ===== HOUSE PLANS ===== */
.plans-section { padding: 80px 24px; border-bottom: 1px solid var(--line); }
.plans-inner { max-width: 1300px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.view-all { font-size: 13.5px; font-weight: 600; color: var(--accent); }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-tab {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: .15s;
  text-decoration: none;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

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

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.09); text-decoration: none; color: inherit; }
.plan-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #282320, #403830);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.plan-thumb img { width: 100%; height: 100%; object-fit: fill; position: absolute; inset: 0; }
.plan-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.plan-body { padding: 16px 18px; }
.plan-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.plan-meta { display: flex; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.plan-meta span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.plan-price-row { display: flex; justify-content: space-between; align-items: center; }
.plan-est-cost { font-size: 13px; font-weight: 700; color: var(--accent2); }
.plan-action {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 5px 12px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  transition: .15s;
}
.plan-card:hover .plan-action { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== CALCULATORS SECTION ===== */
.calc-section {
  padding: 80px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.calc-section .section-heading { color: var(--ink); }
.calc-section .section-sub { color: var(--muted); }
.calc-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 8px; }
.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  transition: background .15s, transform .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
  display: block;
  text-align: left;
}
.calc-card:hover { background: #fff; transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0,0,0,.07); text-decoration: none; }
.calc-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.calc-card h4 { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink); margin: 0 0 6px; font-weight: 700; }
.calc-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ===== FIND PROFESSIONALS ===== */
.pros-section { padding: 80px 24px; border-bottom: 1px solid var(--line); }
.pros-inner { max-width: 1100px; margin: 0 auto; }
.pros-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.pro-type-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pro-type-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.07); border-color: var(--accent); }
.pro-type-icon {
  width: 72px;
  height: 72px;
  border-radius: 99px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.pro-type-card:nth-child(1) .pro-type-icon { background: #fff5e9; }
.pro-type-card:nth-child(2) .pro-type-icon { background: #f0fdf4; }
.pro-type-card:nth-child(3) .pro-type-icon { background: #fef9c3; }
.pro-type-card h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 8px; }
.pro-type-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }
.pro-count { font-size: 12px; color: var(--accent2); font-weight: 700; margin-bottom: 18px; }

.btn-outline-hq {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 10px 22px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-block;
  transition: .15s;
  font-family: 'Spline Sans', sans-serif;
}
.btn-outline-hq:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ===== PROJECT SHOWCASE ===== */
.projects-section { padding: 80px 24px; border-bottom: 1px solid var(--line); }
.projects-inner { max-width: 1200px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }

.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.09); text-decoration: none; color: inherit; }
.project-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #282320, #403830);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
  overflow: hidden;
}
.project-thumb img { width: 100%; height: 100%; object-fit: fill; position: absolute; inset: 0; }
.project-body { padding: 18px 20px; }
.project-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.project-tag { font-size: 11px; background: var(--paper); border: 1px solid var(--line); padding: 3px 9px; border-radius: 99px; color: var(--muted); }
.project-title { font-family: 'Fraunces', serif; font-size: 19px; margin: 0 0 6px; color: var(--ink); }
.project-desc { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.project-meta { display: flex; justify-content: space-between; align-items: center; }
.project-cost { font-weight: 700; color: var(--accent2); font-size: 15px; }
.project-city { font-size: 12px; color: var(--muted); }

/* ===== TRUST STRIP ===== */
.trust-section {
  padding: 64px 24px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.trust-stats { display: flex; justify-content: center; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.trust-stat { flex: 1; padding: 28px 20px; border-right: 1px solid var(--line); }
.trust-stat:last-child { border-right: none; }
.trust-stat .num { font-family: 'Fraunces', serif; font-size: 38px; font-weight: 900; color: var(--accent); display: block; letter-spacing: -1px; }
.trust-stat .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block; }

/* ===== MATERIAL PRICES BAND ===== */
.materials-band { padding: 60px 24px; border-bottom: 1px solid var(--line); }
.materials-inner { max-width: 1100px; margin: 0 auto; }
.material-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.mp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
  display: block;
}
.mp-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.mp-mat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.mp-price { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 2px; }
.mp-unit { font-size: 11px; color: var(--muted); }
.mp-trend { font-size: 11.5px; font-weight: 600; margin-top: 6px; }
.mp-up { color: #dc2626; }
.mp-down { color: var(--accent2); }
.mp-stable { color: var(--muted); }

/* ===== LEAD CAPTURE BAND ===== */
.lead-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 24px;
  text-align: center;
}
.lead-inner { max-width: 560px; margin: 0 auto; }
.lead-band h2 { font-family: 'Fraunces', serif; color: var(--ink); font-size: clamp(28px, 4vw, 46px); letter-spacing: -1.2px; margin-bottom: 12px; }
.lead-band h2 b { color: #FC6403; }
.lead-band p { color: var(--muted); font-size: 16px; margin: 0 auto 36px; line-height: 1.6; }
.lead-form-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.lead-form-inline input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: 'Spline Sans', sans-serif;
  outline: none;
  transition: border-color .15s;
}
.lead-form-inline input::placeholder { color: var(--muted); }
.lead-form-inline input:focus { border-color: var(--accent); }
.lead-form-inline button {
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Spline Sans', sans-serif;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.lead-form-inline button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.lead-note { font-size: 11px; color: var(--muted); margin-top: 12px; }

/* ===== PAGE HERO (section pages) ===== */
.page-hero {
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 56px 24px 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,65,12,.28), transparent 70%);
  pointer-events: none;
}
.page-hero .phi { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

.breadcrumb-hq {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin-top: 0;
}
.breadcrumb-hq a { color: var(--muted); text-decoration: none; transition: color .15s; }
.breadcrumb-hq a:hover { color: var(--accent); }
.breadcrumb-hq li::after { content: '›'; margin-left: 6px; color: var(--line); }
.breadcrumb-hq li:last-child::after { display: none; }

.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 10px;
}
.page-hero h1 b { color: #FC6403; }
.page-hero .sub { color: var(--muted); font-size: 16px; max-width: 580px; margin: 0; line-height: 1.6; }
.page-hero .tags { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.page-hero .tag-pill { font-size: 11.5px; border: 1px solid var(--line); padding: 4px 12px; border-radius: 99px; color: var(--muted); }

/* Hero with a featured background image — ensure text stays readable on any photo */
.page-hero.has-image { background-size: cover; background-position: center; }
.page-hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,17,14,.88), rgba(20,17,14,.88));
  pointer-events: none;
}
.page-hero.has-image .phi { z-index: 2; }
.page-hero.has-image .breadcrumb-hq a,
.page-hero.has-image .breadcrumb-hq li,
.page-hero.has-image h1,
.page-hero.has-image h1 b,
.page-hero.has-image .sub,
.page-hero.has-image .tag-pill {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.page-hero.has-image .breadcrumb-hq a { opacity: .85; }
.page-hero.has-image .breadcrumb-hq li::after { color: rgba(255,255,255,.5); }
.page-hero.has-image .tag-pill { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

/* ===== LISTING SECTIONS ===== */
.listing-section { padding: 48px 24px 80px; }
.listing-inner { max-width: 1200px; margin: 0 auto; }

.city-tabs-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.city-tab {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  transition: .15s;
  text-decoration: none;
  font-family: 'Spline Sans', sans-serif;
}
.city-tab:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.city-tab.active { background: var(--accent); color: #fff; }

.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.pro-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: transform .15s, box-shadow .15s;
}
.pro-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.07); }
.pro-card-header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.pro-avatar {
  width: 54px;
  height: 54px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.pro-info { flex: 1; }
.pro-name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 700; margin: 0 0 3px; color: var(--ink); }
.pro-location { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pro-rating { font-size: 13px; color: var(--gold); font-weight: 700; }
.pro-verified { font-size: 11px; color: var(--accent2); font-weight: 700; margin-left: 6px; }
.pro-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pro-tag { font-size: 11px; background: var(--paper); border: 1px solid var(--line); padding: 3px 8px; border-radius: 99px; color: var(--muted); }
.pro-footer { display: flex; justify-content: space-between; align-items: center; }
.pro-price-range { font-size: 13px; color: var(--ink); font-weight: 600; }

.btn-sm-hq {
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: 'Spline Sans', sans-serif;
}
.btn-sm-hq:hover { background: var(--accent-hover); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ===== CITY GRID ===== */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.city-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: block;
}
.city-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.07); border-color: var(--accent); text-decoration: none; }
.city-emoji { font-size: 28px; margin-bottom: 10px; display: block; }
.city-name { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 4px; display: block; }
.city-state { font-size: 12px; color: var(--muted); }

/* ===== CALCULATOR PAGE ===== */
.calc-page { padding: 48px 24px 80px; }
.calc-page-inner { max-width: 900px; margin: 0 auto; }
.calc-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.calc-box h2 { font-family: 'Fraunces', serif; font-size: 26px; margin-bottom: 6px; }
.calc-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-control-hq {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: 'Spline Sans', sans-serif;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 20px;
  appearance: auto;
}
.form-control-hq:focus { border-color: var(--accent); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Spline Sans', sans-serif;
  transition: background .15s, transform .1s;
  margin-top: 8px;
}
.calc-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.calc-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-top: 28px;
  display: none;
}
.calc-result.show { display: block; }
.result-total-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 4px; }
.result-total { font-family: 'Fraunces', serif; font-size: 52px; font-weight: 900; color: #FC6403; line-height: 1; margin-bottom: 6px; letter-spacing: -2px; }
.result-psf { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.result-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.result-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.result-item .v { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 900; color: var(--ink); display: block; }
.result-item .k { font-size: 11px; color: var(--muted); margin-top: 3px; display: block; text-transform: uppercase; letter-spacing: .5px; }
.result-cta { border-top: 1px solid var(--line); padding-top: 22px; }
.result-cta p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.result-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.result-cta .btn-primary-hq { font-size: 14px; padding: 11px 20px; }
.result-cta .btn-secondary-hq { font-size: 14px; padding: 11px 20px; }

/* ===== FAQ ACCORDION ===== */
.faq-section { margin-top: 28px; }
.faq-section h3 { font-family: 'Fraunces', serif; font-size: 20px; margin-bottom: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 18px; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 18px 16px; font-size: 13.5px; color: var(--muted); }

/* ===== CALCULATOR LONG-FORM CONTENT ===== */
.calc-article-image {
  width: 100%;
  max-height: 380px;
  object-fit: fill;
  border-radius: 12px;
  margin-bottom: 24px;
}
.calc-article {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.calc-article h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  margin: 32px 0 14px;
}
.calc-article h2:first-child { margin-top: 0; }
.calc-article h3 {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  margin: 24px 0 10px;
}
.calc-article p { margin: 0 0 14px; color: var(--muted); }
.calc-article ul,
.calc-article ol {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--muted);
}
.calc-article li { margin-bottom: 6px; }
.calc-article strong { color: var(--ink); }
.calc-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}
.calc-article table th,
.calc-article table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.calc-article table th { font-weight: 700; color: var(--ink); }

/* ===== CALCULATOR LEAD-GATE MODAL ===== */
.clm-overlay {
  position: fixed; inset: 0; background: rgba(26,23,20,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.clm-overlay.show { display: flex; }
.clm-box {
  background: #fff; border-radius: 16px; max-width: 420px; width: 100%;
  padding: 32px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.clm-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; padding: 4px; }
.clm-close:hover { color: var(--ink); }
.clm-box h3 { font-family: 'Fraunces', serif; font-size: 22px; margin-bottom: 6px; }
.clm-box p { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.clm-box .form-control-hq { margin-bottom: 14px; }
.clm-skip { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.clm-skip:hover { color: var(--accent); text-decoration: underline; }

/* ===== CONSTRUCTION COST ===== */
.cost-section { padding: 48px 24px 80px; }
.cost-inner { max-width: 1100px; margin: 0 auto; }
.cost-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.cost-tier {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.cost-tier.featured { border-color: var(--accent); }
.tier-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.tier-price { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.tier-unit { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.tier-features { list-style: none; padding: 0; margin: 0; }
.tier-features li { font-size: 13px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before { content: '✓'; color: var(--accent2); font-weight: 800; flex-shrink: 0; font-size: 12px; }

.city-costs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.city-cost-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.city-cost-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.city-cost-name { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.city-cost-range { font-size: 13px; color: var(--muted); margin-top: 2px; }
.city-cost-psf { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 900; color: var(--accent2); }

/* ===== PACKAGES ===== */
.packages-section { padding: 48px 24px 80px; }
.packages-inner { max-width: 1100px; margin: 0 auto; }
.packages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pkg-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
}
.pkg-card.popular { border-color: var(--accent); }
.pkg-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.pkg-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.pkg-psf { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.pkg-psf-unit { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.pkg-features { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.pkg-features li { font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 7px; color: var(--muted); line-height: 1.5; }
.pkg-features li:last-child { border-bottom: none; }
.pkg-features li::before { content: '✓'; color: var(--accent2); font-weight: 800; flex-shrink: 0; font-size: 11px; margin-top: 1px; }

/* ===== VASTU ===== */
.vastu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.vastu-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, border-color .15s;
  display: block;
}
.vastu-card:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; }
.vastu-emoji { font-size: 34px; margin-bottom: 12px; display: block; }
.vastu-card h4 { font-family: 'Fraunces', serif; font-size: 15px; color: var(--ink); margin: 0 0 5px; }
.vastu-card p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== MATERIALS ===== */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.material-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: transform .15s, border-color .15s;
  display: block;
}
.material-card:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.material-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.material-name { font-family: 'Fraunces', serif; font-size: 16px; color: var(--ink); margin: 0 0 4px; font-weight: 700; }
.material-desc { font-size: 12px; color: var(--muted); }

/* ===== INFO BOXES ===== */
.info-box {
  background: #fff5e9;
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #4a3a28;
  margin: 20px 0;
  line-height: 1.6;
}
.info-box b { color: var(--accent); }

.verdict-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 24px 26px;
  color: var(--ink);
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.65;
}
.verdict-box b { color: var(--accent); }

/* ===== FORMS ===== */
.form-hq .form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-hq .form-input,
.form-hq .form-select,
.form-hq .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: 'Spline Sans', sans-serif;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 18px;
}
.form-hq .form-input:focus,
.form-hq .form-select:focus,
.form-hq .form-textarea:focus { border-color: var(--accent); }
.form-hq .form-textarea { resize: vertical; min-height: 100px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Spline Sans', sans-serif;
  transition: background .15s;
}
.form-submit:hover { background: var(--accent-hover); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: #9c8f80;
  padding: 60px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand-name { font-family: 'Fraunces', serif; font-weight: 900; font-size: 26px; color: #f4efe7; margin-bottom: 10px; display: block; }
.footer-brand-name b { color: #FC6403; }
.footer-logo-img { max-height: 40px; width: auto; display: block; filter: brightness(0) invert(1);}
.footer-tagline { font-size: 13.5px; color: #a8988a; line-height: 1.65; max-width: 240px; margin-bottom: 20px; }
.footer-col h5 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px; color: #d8cdbf; font-weight: 700; margin: 0 0 16px; }
.footer-col a { display: block; color: #a8988a; font-size: 13px; margin-bottom: 9px; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #FC6403; text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #a39686;
}
.footer-bottom a { color: #b8ab9c; text-decoration: none; }
.footer-bottom a:hover { color: #FC6403; }
.footer-credit { font-size: 11px; color: #8c8074; }

/* ===== UTILITIES ===== */
.section-inner { max-width: 1200px; margin: 0 auto; }
.container-hq { max-width: 1200px; margin: 0 auto; }
.text-accent { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.text-muted-hq { color: var(--muted); }
.text-gold { color: var(--gold); }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.font-serif { font-family: 'Fraunces', serif; }
.mt-8 { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-48 { margin-bottom: 48px !important; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-tiers { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pros-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 16px;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.is-open > li > a { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0 0 0 20px; background: transparent; display: none; }
  .nav-links.is-open > li:hover .nav-dropdown { display: block; }
  .nav-links.is-open .nav-dropdown a { color: var(--muted); }
  .nav-links.is-open .nav-dropdown a:hover { background: rgba(0,0,0,.04); color: var(--accent); }
  .steps-grid { grid-template-columns: 1fr; }
  .pros-grid { grid-template-columns: 1fr; }
  .trust-stats { flex-direction: column; }
  .trust-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-stat:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-2col { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--line); min-width: 50%; }
  .packages-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .calc-box { padding: 22px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary-hq, .btn-secondary-hq { width: 100%; justify-content: center; }
}

/* ===== RESPONSIVE: inline-style grids (detail / quote / profile pages) =====
   These layouts use inline `style="..."` grids that media queries on classes
   can't reach, so we target the inline style text directly. A stylesheet
   !important rule overrides a non-!important inline style. */
@media (max-width: 900px) {
  /* Two-column "content + sidebar" layouts collapse to a single column */
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns:1fr 320px"],
  [style*="grid-template-columns:1fr 300px"],
  [style*="grid-template-columns:1fr 280px"],
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns: 1fr 320px"],
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns: 1fr 280px"] {
    grid-template-columns: 1fr !important;
  }
  /* A sticky CTA sidebar shouldn't stay pinned once it's stacked below content */
  [style*="position:sticky"], [style*="position: sticky"] { position: static !important; }
}
@media (max-width: 640px) {
  /* 3-column inline grids drop to 2 columns on small screens */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 440px) {
  /* ...then to a single column on phones */
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }
}
/* ===== RESPONSIVE: global guards ===== */
@media (max-width: 768px) {
  /* overflow-x: clip prevents sideways scroll without breaking the sticky nav */
  body { overflow-x: clip; }
  .page-hero { padding-left: 20px; padding-right: 20px; }
  .listing-section, .calc-page { padding-left: 16px; padding-right: 16px; }
  /* Long words / URLs shouldn't push the layout wider than the screen */
  .prose, .page-extra-content .prose { overflow-wrap: anywhere; }
}

/* ===== ADMIN-EDITABLE PAGE CONTENT BLOCK ===== */
.page-extra-content { padding: 16px 24px 64px; }
.page-extra-content .pec-inner { max-width: 900px; margin: 0 auto; }
.page-extra-content .prose {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 2px 18px rgba(26,23,20,.04);
}
.page-extra-content .prose > *:first-child { margin-top: 0; }
.page-extra-content .prose > *:last-child { margin-bottom: 0; }
.page-extra-content .prose h2,
.page-extra-content .prose h3 { font-family: 'Fraunces', serif; color: var(--ink); }
.page-extra-content .prose h2 {
  font-size: 23px;
  font-weight: 900;
  margin: 36px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.page-extra-content .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.page-extra-content .prose h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin: 22px 0 8px;
}
.page-extra-content .prose p {
  margin: 0 0 16px;
  color: var(--ink);
  opacity: .82;
}
.page-extra-content .prose > p:first-of-type {
  font-size: 17px;
  line-height: 1.75;
  opacity: 1;
}
.page-extra-content .prose ul,
.page-extra-content .prose ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink);
  opacity: .82;
}
.page-extra-content .prose li { margin-bottom: 6px; }
.page-extra-content .prose ul { list-style: none; padding-left: 0; }
.page-extra-content .prose ul li {
  position: relative;
  padding-left: 26px;
}
.page-extra-content .prose ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent2);
  font-weight: 700;
}
.page-extra-content .prose strong { color: var(--ink); opacity: 1; }
.page-extra-content .prose a { color: var(--accent); font-weight: 600; }
.page-extra-content .page-sidebar {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 768px) {
  .page-extra-content .prose { padding: 24px 22px; border-radius: 12px; }
  .page-extra-content .prose h2 { font-size: 20px; }
}
::-webkit-scrollbar {
    width: 4px;
    height: 5px;
    border-radius: 34px;
    background: #edeef2;
}
::-webkit-scrollbar-thumb {
    background-color: #A73509;
    border-radius: 34px;
}
::-webkit-scrollbar-track {
    border-radius: 30px;
    background: #edeef2;
}