/* ─────────────────────────────────────────────────────────────
   SJGB Design System — shared across homepage + inner pages
   Tokens, typography, buttons, eyebrows, sections, cards,
   footer, modal, mobile bar, FAQ. Keep design changes here.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Palette (sourced from homepage) */
  --cream:        #f5f0e4;
  --cream-soft:   #fefcf5;
  --cream-dark:   #ebe4d3;
  --ink:          #1a1f1a;
  --green-deep:   #1e2a1f;
  --green-darker: #151d16;
  --gold:         #c9a961;
  --gold-muted:   #b09450;
  --gold-soft:    #d4b876;
  --text-muted:        #6b6a62;
  --text-cream-muted:  #b8b2a3;

  --border-subtle: rgba(26, 31, 26, 0.12);
  --border-cream:  rgba(245, 240, 228, 0.15);

  --shadow-soft:   0 2px 24px rgba(26, 31, 26, 0.06);
  --shadow-medium: 0 8px 40px rgba(26, 31, 26, 0.10);

  --radius-sm: 2px;
  --radius-md: 4px;

  --display: 'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset (scoped, doesn't fight shared header) ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.serif  { font-family: var(--display); }
.italic { font-style: italic; }

/* ─── Container ─── */
.container        { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px;  margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 22px; }
}

/* ─── Eyebrow label ─── */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold-muted);
  display: inline-block;
}
.eyebrow-light          { color: var(--text-cream-muted); }
.eyebrow-light::before  { background: var(--gold); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: var(--radius-sm);
  line-height: 1;
}
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover  .arrow { transform: translateX(3px); }

.btn-primary { background: var(--green-deep); color: var(--cream); }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--green-darker); font-weight: 500; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-outline-light { background: transparent; color: var(--cream); border: 1px solid var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--green-deep); }

.btn-large { padding: 18px 36px; font-size: 15px; }

/* Compact text-link CTA used inline */
.text-cta {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.text-cta:hover { border-bottom-color: var(--ink); }
.text-cta .arrow { transition: transform 0.2s ease; }
.text-cta:hover .arrow { transform: translateX(4px); }

/* ─── Section spacing ─── */
.section        { padding: 96px 0; }
.section-tight  { padding: 64px 0; }
.section-dark   { padding: 96px 0; background: var(--green-deep); color: var(--cream); }
.section-cream  { padding: 96px 0; background: var(--cream-dark); }
@media (max-width: 720px) {
  .section, .section-dark, .section-cream { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 880px;
}
.page-hero h1 em,
.page-hero h1 .italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-muted);
}
.page-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}
.page-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 720px) {
  .page-hero { padding: 48px 0 40px; }
}

/* ─── Section heading block ─── */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 18px 0 0;
}
.section-head h2 em,
.section-head h2 .italic-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-muted);
}
.section-head .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}
.section-dark .section-head h2 { color: var(--cream); }
.section-dark .section-head .lede { color: var(--text-cream-muted); }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* ─── Info / feature cards ─── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .info-grid, .info-grid.cols-3, .info-grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .info-grid, .info-grid.cols-3, .info-grid.cols-4 { grid-template-columns: 1fr; }
}

.info-card {
  background: var(--cream-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.info-card:hover { border-color: var(--gold-muted); }
.info-card .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-muted);
  font-size: 14px;
  display: block;
  margin-bottom: 16px;
}
.info-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.info-card h3 em,
.info-card h3 .italic-accent {
  font-style: italic;
  color: var(--gold-muted);
}
.info-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.info-card p + p { margin-top: 12px; }

.section-dark .info-card {
  background: var(--green-darker);
  border-color: var(--border-cream);
}
.section-dark .info-card h3 { color: var(--cream); }
.section-dark .info-card p  { color: var(--text-cream-muted); }
.section-dark .info-card:hover { border-color: var(--gold); }

/* ─── Step / process list ─── */
.step-list { display: grid; gap: 20px; }
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
}
.step-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-muted);
  font-weight: 400;
}
.step-body h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.step-body p { color: var(--text-muted); margin: 0; max-width: 640px; }
.section-dark .step-row { border-color: var(--border-cream); }
.section-dark .step-body h3 { color: var(--cream); }
.section-dark .step-body p  { color: var(--text-cream-muted); }
@media (max-width: 640px) {
  .step-row { grid-template-columns: 1fr; gap: 8px; }
  .step-num { font-size: 22px; }
}

/* ─── Definition / fact list (used for hours, pricing math, etc.) ─── */
.def-list { display: grid; gap: 16px; }
.def-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
}
.def-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.def-row dt {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-muted);
  font-size: 16px;
}
.def-row dd { margin: 0; color: var(--ink); }
@media (max-width: 640px) {
  .def-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ─── Two-column content + aside ─── */
.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.prose h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.prose h2 em { font-style: italic; color: var(--gold-muted); font-weight: 400; }
.prose h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 16px;
  max-width: 64ch;
}
.prose p strong, .prose p b { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; color: var(--text-muted); line-height: 1.7; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-muted); text-underline-offset: 4px; }

.aside-card {
  background: var(--cream-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.aside-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold), var(--gold-muted));
}
.aside-card h3 {
  font-family: var(--display);
  font-size: 20px; font-weight: 400; line-height: 1.25;
  margin: 8px 0 14px;
}
.aside-card p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
.aside-card .eyebrow { margin-bottom: 4px; }

/* ─── FAQ (homepage-styled) ─── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--border-subtle);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border-subtle); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold-muted);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-body {
  padding: 0 40px 28px 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 70ch;
}

/* ─── Final CTA band ─── */
.final-cta {
  padding: 96px 0;
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
}
.final-cta .eyebrow { justify-content: center; margin-bottom: 24px; }
.final-cta h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.final-cta h2 .italic-accent,
.final-cta h2 em { font-style: italic; font-weight: 400; color: var(--gold); }
.final-cta-sub {
  font-size: 17px;
  color: var(--text-cream-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.final-cta-buttons { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 720px) { .final-cta { padding: 64px 0; } }

/* ─── Footer ─── */
footer.sjgb-footer {
  background: var(--green-darker);
  color: var(--cream);
  padding: 72px 0 32px;
}
footer.sjgb-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-cream);
}
footer.sjgb-footer .footer-brand .footer-logo {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--cream);
}
footer.sjgb-footer .footer-brand p {
  font-size: 14px;
  color: var(--text-cream-muted);
  margin: 0 0 4px;
  line-height: 1.6;
}
footer.sjgb-footer .footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 18px;
}
footer.sjgb-footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
footer.sjgb-footer .footer-col li { margin-bottom: 10px; font-size: 14px; color: var(--text-cream-muted); }
footer.sjgb-footer .footer-col a {
  color: var(--text-cream-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer.sjgb-footer .footer-col a:hover { color: var(--gold); }
footer.sjgb-footer .footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-cream-muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 880px) {
  footer.sjgb-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  footer.sjgb-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Sticky mobile bar ─── */
.sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--cream-soft);
  border-top: 1px solid var(--border-subtle);
  padding: 12px 16px;
  z-index: 90;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.sticky-mobile .sticky-cta {
  background: var(--gold);
  color: var(--green-darker);
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.sticky-mobile .sticky-text {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
}
@media (max-width: 720px) {
  .sticky-mobile { display: flex; }
  body { padding-bottom: 70px; }
}

/* ─── Quote modal (used by inner pages) ─── */
.qm-back {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 24, 18, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.qm-back.is-open { display: flex; }
.qm-box {
  background: var(--cream-soft);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-medium);
  max-height: 90vh;
  overflow-y: auto;
}
.qm-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-muted), var(--gold), var(--gold-muted));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.qm-x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted);
}
.qm-box h3 {
  font-family: var(--display);
  font-size: 28px; font-weight: 400; line-height: 1.2;
  margin: 8px 0 8px;
}
.qm-box h3 em { font-style: italic; color: var(--gold-muted); }
.qm-box .body { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }

.qm-group { margin-bottom: 18px; }
.qm-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.qm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qm-pill {
  padding: 10px 16px;
  background: var(--cream);
  border: 1px solid var(--border-subtle);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.qm-pill:hover { border-color: var(--gold-muted); }
.qm-pill.on { background: var(--green-deep); color: var(--gold); border-color: var(--green-deep); }
.qm-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ink);
}
.qm-input:focus { outline: none; border-color: var(--green-deep); }
.qm-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px 24px;
  background: var(--green-deep);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease;
}
.qm-submit:hover { background: var(--ink); }
.qm-win { display: none; text-align: center; padding: 16px 0; }
.qm-win.is-on { display: block; }
.qm-win svg { width: 56px; height: 56px; color: var(--gold-muted); margin: 0 auto 16px; }

/* ─── Reveal animation ─── */
.rev { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rev.in { opacity: 1; transform: none; }

/* ─── Utilities ─── */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ─── Global heading weight override (Bold) ─── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.hero-headline, .section-headline, .display, .display-text {
  font-weight: 700 !important;
}
