/* ==========================================================================
   Legacy Grove Estate Planning - demo site stylesheet
   Standalone demo by Inland Web Services for estate-planning practices.
   ========================================================================= */

:root {
  --green: #1b4332;
  --green-d: #123c2b;
  --ink: #14201a;
  --text: #24382e;
  --muted: #5f7166;
  --border: #ded8c8;
  --bg: #ffffff;
  --bg-soft: #f6f3ea;
  --gold: #d8b455;
  --gold-d: #a8842c;
  --radius: 16px;
  --pill: 999px;
  --shadow: 0 12px 30px rgba(20, 32, 26, .10);
  --shadow-lg: 0 24px 56px rgba(20, 32, 26, .22);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Lora", Georgia, serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.14; margin: 0 0 .5em; font-weight: 600; letter-spacing: 0; }
h1 { font-size: 2.45rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: linear-gradient(140deg, #14201a, #1b4332); color: #dcebe2; }
.section--ink h2, .section--ink h3 { color: #fff; }
.grid { display: grid; gap: 22px; }
.head { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.head p { color: var(--muted); font-size: 1.05rem; }
.section--ink .head p { color: #bcd6c8; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-d); margin-bottom: .6rem; }
.section--ink .eyebrow { color: #e7cc7f; }
.eyebrow::before { content:""; width: 22px; height: 3px; background: var(--gold); border-radius: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 800; font-size: 1rem; padding: 14px 26px; border-radius: var(--pill); border: 2px solid transparent; cursor: pointer; transition: transform .06s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn--cta { background: linear-gradient(135deg, var(--gold), #b98a2f); color: #241a02; box-shadow: 0 12px 28px rgba(216,180,85,.35); }
.btn--cta:hover { background: linear-gradient(135deg, var(--gold-d), #93701f); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: #fff; color: var(--green); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.topstack { position: sticky; top: 0; z-index: 50; }
.demobar { background: var(--ink); color: #bccec3; font-size: .85rem; }
.demobar .container { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; min-height: 42px; }
.demobar b { color: #fff; }
.demo-back { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.demo-back svg { width: 16px; height: 16px; }
.demo-cta { color: #e7cc7f; font-weight: 800; white-space: nowrap; }
.site-header { position: relative; z-index: 1; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.logo { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.logo svg { width: 44px; height: 44px; }
.wm { display: flex; flex-direction: column; line-height: 1; }
.wm-name { font-size: 1.2rem; }
.wm-sub { font-family: var(--font-body); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); font-weight: 800; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: var(--pill); color: var(--ink); font-weight: 700; font-size: .95rem; font-family: var(--font-body); white-space: nowrap; }
.nav a:hover { background: var(--bg-soft); }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.header-cta .btn { white-space: nowrap; }
.header-phone { font-family: var(--font-body); font-weight: 800; color: var(--green); white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; justify-content: center; width: 46px; height: 46px; background: #fff; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); margin: 0 auto; }

.hero { background: #fbfaf6; border-bottom: 1px solid var(--border); overflow: hidden; }
.planning-hero-grid { display: grid; gap: 42px; padding-top: 58px; padding-bottom: 64px; align-items: center; }
.tagpill { display: block; color: var(--gold-d); font-family: var(--font-body); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: var(--ink); font-size: 2.75rem; max-width: 650px; }
.hero p.lead { color: var(--text); font-size: 1.15rem; max-width: 590px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.planning-phone { align-self: center; color: var(--green); font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; border-bottom: 2px solid var(--gold); }
.planning-availability { margin: 22px 0 0; color: var(--muted); font-size: .84rem; font-weight: 600; }
.planning-portrait { position: relative; margin: 0; padding: 0 0 54px 38px; }
.planning-portrait::before { content:""; position: absolute; left: 0; top: 36px; bottom: 12px; width: 72%; background: var(--bg-soft); border: 1px solid var(--border); }
.planning-portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: right center; box-shadow: 0 12px 30px rgba(20,32,26,.12); }
.planning-portrait figcaption { position: absolute; left: 0; bottom: 0; width: 76%; background: var(--green); color: #fff; padding: 16px 18px; }
.planning-portrait figcaption span, .planning-portrait figcaption strong { display: block; }
.planning-portrait figcaption span { color: #e7cc7f; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.planning-portrait figcaption strong { margin-top: 4px; font-family: var(--font-head); font-size: .95rem; font-weight: 500; }

.trust { background: var(--green); color: #fff; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 15px 20px; font-family: var(--font-body); font-weight: 700; font-size: .95rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: #e7cc7f; }

.planning-note { background: var(--green); color: #e8f1ec; padding: 28px 0; }
.planning-note__inner { display: grid; gap: 8px 28px; }
.planning-note p { margin: 0; }
.planning-note__lead { color: #fff; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }

.svc { background: #fff; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; box-shadow: 0 8px 22px rgba(20,32,26,.07); display: flex; flex-direction: column; }
.shot { min-height: 200px; background: #e6e0d0; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.svc .shot { height: 210px; }
.svc-body { padding: 22px 24px 26px; }
.svc p { color: var(--muted); margin: 0; }

.result-panel { display: grid; gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 8px 22px rgba(20,32,26,.07); overflow: hidden; }
.result-panel figure { margin: 0; position: relative; min-height: 280px; }
.result-panel figure img { width: 100%; height: 100%; object-fit: cover; }
.result-panel figcaption { position: absolute; left: 16px; top: 16px; background: var(--green); color: #fff; font-family: var(--font-body); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--pill); padding: 7px 14px; }
.result-copy { padding: 26px; align-self: center; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; }
.checks li { margin: 10px 0; padding-left: 28px; position: relative; font-weight: 600; }
.checks li::before { content:"\2713"; position: absolute; left: 0; color: var(--gold-d); font-weight: 900; }

/* Flat-fee cards */
.fee { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); text-align: center; }
.fee--pop { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.pop-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #241a02; font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--pill); white-space: nowrap; }
.fee .amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--green); margin: 6px 0 10px; }
.fee p:last-child { color: var(--muted); margin: 0; }

.fee-table { border-top: 1px solid var(--ink); }
.fee-table article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; padding: 25px 4px; border-bottom: 1px solid var(--border); }
.fee-table h3 { margin-bottom: 5px; }
.fee-table p { color: var(--muted); margin: 0; max-width: 710px; }
.fee-table article > strong { font-family: var(--font-head); color: var(--green); font-size: 1.75rem; white-space: nowrap; }
.fee-kicker { display: block; margin-bottom: 5px; color: var(--gold-d); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fee-disclaimer { margin: 14px 0 0; color: var(--muted); font-size: .82rem; font-style: italic; }

.steps { counter-reset: s; }
.step { position: relative; padding-left: 60px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), #2d6a4f); color: #e7cc7f; font-family: var(--font-body); font-weight: 800; border-radius: 13px; }
.review { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.review .stars { color: var(--gold-d); letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-style: italic; }
.review .who { font-style: normal; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.review .who small { display: block; font-weight: 500; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: var(--pill); padding: 8px 16px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }

.plan-guide { display: grid; gap: 36px; }
.plan-guide__intro p { color: var(--muted); font-size: 1.05rem; }
.text-link { display: inline-block; border-bottom: 2px solid var(--gold); padding-bottom: 3px; font-weight: 800; }
.document-list { margin: 0; border-top: 1px solid var(--ink); }
.document-list > div { padding: 20px 0; border-bottom: 1px solid var(--border); }
.document-list dt { color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.document-list dd { margin: 5px 0 0; color: var(--muted); }
.questions-section .container { display: grid; gap: 38px; }
.questions-intro { max-width: 430px; }
.questions-intro p { color: var(--muted); font-size: 1.05rem; }
.question-list { border-top: 1px solid var(--ink); }
.question-list details { border-bottom: 1px solid var(--border); padding: 0; }
.question-list summary { position: relative; cursor: pointer; list-style: none; padding: 20px 42px 20px 0; color: var(--ink); font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; position: absolute; right: 4px; top: 17px; color: var(--green); font-family: var(--font-body); font-size: 1.4rem; }
.question-list details[open] summary::after { content: "−"; }
.question-list details p { margin: -4px 42px 20px 0; color: var(--muted); }
.service-note { padding: 24px 0; background: var(--bg-soft); border-top: 1px solid var(--border); text-align: center; }
.service-note p { margin: 0; }

.contact-grid { display: grid; gap: 26px; }
.contact-grid > * { min-width: 0; }
.info-card .row a { overflow-wrap: anywhere; }
.form-card { background: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea { font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,180,85,.25); }
.field textarea { min-height: 110px; resize: vertical; }
.form-success { display: none; background: #f6f0dd; border: 1px solid #e7cc7f; color: #6b5410; padding: 16px; border-radius: 10px; font-weight: 700; margin-bottom: 16px; }
.info-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #dcebe2; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card h3 { color: #fff; }
.info-card a { color: #fff; }
.info-card .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.info-card .row svg { width: 22px; height: 22px; flex: none; color: #e7cc7f; }

.site-footer { background: var(--ink); color: #a9baaf; padding: 44px 0 24px; }
.site-footer h4 { color: #fff; }
.site-footer a { color: #e7cc7f; }
.foot-grid { display: grid; gap: 26px; }
.footer-brand { margin-bottom: 12px; }
.footer-brand .wm-name { color: #fff; }
.foot-grid p { margin: 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 16px; font-size: .82rem; color: #8fa196; }
.call-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: none; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--gold), #b98a2f); color: #241a02; font-family: var(--font-body); font-weight: 800; padding: 14px 20px; border-radius: var(--pill); box-shadow: var(--shadow-lg); }
.call-fab svg { width: 20px; height: 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--green); color: #fff; padding: 10px 16px; border-bottom-right-radius: 8px; font-family: var(--font-body); font-weight: 800; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid #e7cc7f; outline-offset: 2px; border-radius: 4px; }

@media (min-width: 700px) { .cols-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 880px) {
  .hero h1 { font-size: 3.2rem; }
  .planning-hero-grid { grid-template-columns: .92fr 1.08fr; padding-top: 76px; padding-bottom: 82px; }
  .contact-grid { grid-template-columns: 1.18fr .82fr; }
  .result-panel { grid-template-columns: 1.1fr .9fr; }
  .planning-note__inner { grid-template-columns: .72fr 1.28fr; align-items: center; }
  .plan-guide { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .questions-section .container { grid-template-columns: .75fr 1.25fr; align-items: start; }
  .foot-grid { grid-template-columns: 2fr 1fr 1.4fr; }
}
/* Tighten the nav before it has room to wrap (wrapping used to make the
   header CTA taller than the bar and clip it top and bottom). */
@media (max-width: 1140px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 8px; font-size: .89rem; }
  .header-cta { gap: 9px; }
  .header-cta .btn { padding: 12px 20px; font-size: .95rem; }
  .header-phone { font-size: .93rem; }
}
@media (max-width: 1040px) {
  .nav, .header-phone, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 10px 14px 16px; }
  .call-fab { display: inline-flex; }
}
@media (max-width: 840px) {
  .planning-hero-grid { padding-top: 56px; padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .demo-note { display: none; }
  h1 { font-size: 2.05rem; }
  .hero h1 { font-size: 2.3rem; }
  .btn { width: 100%; }
  .planning-portrait { padding-left: 24px; }
  .fee-table article { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; transition: none !important; } }
