/* site.css — Marden Estate Law (2026 redesign). Tokens in tokens.css (cream page, deep green, brass);
   base.css is shared. The reader is fifty, has been meaning to do this for years, and is slightly
   embarrassed about it. Everything is printed, calm and finite: a serif for the headlines, brass for
   the rules and the prices, green for the one button, and a lot of quiet cream. */

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--brand); }
h2 { max-width: 22ch; }
.lead { line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--accent-ink); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-2); }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--accent-ink); flex: none; }
.eyebrow--onbrand { color: rgba(239, 245, 242, 0.85); }
.eyebrow--onbrand::before { background: rgba(239, 245, 242, 0.6); }
.section-head { max-width: 44rem; margin-bottom: var(--space-3); }
.section-head h2 { margin-bottom: 0; }
.measure p { max-width: 58ch; }
.textlink { display: inline-block; margin-top: var(--space-1); font-weight: 700; color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 0.15rem; }
.textlink:hover { border-bottom-color: var(--brand); }

/* ---------- rhythm ---------- */
.section { padding-block: clamp(3rem, 5vw, 5rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }

/* ---------- header ---------- */
.site-header { background: rgba(247, 245, 240, 0.94); }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; min-height: 44px; gap: 0.65rem; color: var(--brand); letter-spacing: 0.005em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.nav a:not(.btn) { color: var(--ink); font-size: 0.96rem; }
.nav a:not(.btn):hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.nav .btn--primary { min-height: 44px; padding: 0.55rem 1.05rem; font-size: 0.94rem; }
.nav-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: flex; align-items: center; min-height: 46px; padding: 0.5rem 0; } }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 0.75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn { border-radius: var(--radius-sm); }
.btn--ghost { border-color: rgba(34, 48, 44, 0.35); color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(34, 48, 44, 0.06); border-color: var(--ink); }
.btn--light { background: var(--bg); color: var(--brand); border-color: var(--bg); box-shadow: var(--shadow-sm); }
.btn--light:hover, .btn--light:focus-visible { background: #fff; border-color: #fff; }
.close .btn--ghost { border-color: rgba(239, 245, 242, 0.55); color: var(--on-brand); }
.close .btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.btn--call { flex-direction: column; align-items: flex-start; line-height: 1.1; padding: 0.85rem 1.5rem; gap: 0.2rem; }
.btn--call .btn__sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.02em; opacity: 0.85; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: stretch; margin-top: var(--space-2); }

/* ---------- hero: serif headline, framed photo ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.hero h1 { margin-bottom: var(--space-2); max-width: 18ch; font-size: clamp(2.3rem, 1.55rem + 3.3vw, 3.7rem); }
.hero .lead { max-width: 34rem; margin-bottom: var(--space-2); }
.feestrip { list-style: none; margin: var(--space-3) 0 0; padding: var(--space-2) 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; color: var(--ink-muted); font-size: 0.95rem; }
.feestrip b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--accent-ink); margin: 0 0.15rem; }
.hero__figure { position: relative; margin: 0; width: min(100%, 520px); justify-self: center; }
@media (min-width: 900px) { .hero__figure { justify-self: end; } }
.hero__frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__figure::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--accent-ink); border-radius: var(--radius); z-index: -1; opacity: 0.55; }

/* ---------- page heads ---------- */
.pagehead { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.pagehead h1 { max-width: 16ch; }
.pagehead .lead { max-width: 40rem; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.pagehead__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pagehead__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.pagehead__media { margin: 0; }
.timeline { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); max-width: 44rem; }
.timeline li { display: flex; align-items: center; gap: 0.6rem; padding-top: 0.8rem; border-top: 2px solid var(--accent-ink); font-family: var(--font-display); font-size: var(--fs-1); font-weight: 600; color: var(--brand); }
.timeline b { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; color: var(--accent-ink); }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; gap: 0.4rem; } .timeline li { padding-top: 0.5rem; border-top-width: 1px; } }

/* ---------- two-up ---------- */
.duo { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
.duo--top { align-items: start; }
@media (min-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .duo--flip > :first-child { order: 2; }
}
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin: 0; position: relative; background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 4 / 3; }
@media (min-width: 860px) { .media--tall { max-width: 440px; justify-self: center; width: 100%; } }
/* the brass offset frame: one hairline behind the photo, like a plate on a printed page */
.media--offset { overflow: visible; box-shadow: none; background: none; }
.media--offset::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; border: 1px solid var(--accent-ink); border-radius: var(--radius); opacity: 0.55; }
.media--offset img { position: relative; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .media--offset::before { inset: 8px -6px -6px 8px; } }

/* ---------- tick lists ---------- */
.ticks { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.8rem; height: 1px; background: var(--accent-ink); }
.ticks b { color: var(--brand); }
.ticks--roomy { gap: 0.9rem; }

/* ---------- ledger: the printed rate card ---------- */
.ledger { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger__row { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-3); align-items: baseline; padding: clamp(0.85rem, 1.6vw, 1.05rem) clamp(1rem, 2.5vw, 1.6rem); border-top: 1px solid var(--line); }
.ledger__row:first-child { border-top: 0; }
.ledger__row dt { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-1); color: var(--ink); }
.ledger__row dt small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--ink-muted); margin-top: 0.2rem; max-width: 58ch; }
.ledger__row dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2); color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger__row dd.is-note { font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); background: var(--bg-alt); padding: 0.35rem 0.7rem; border-radius: 999px; align-self: center; }
.ledger--full .ledger__row { padding-block: clamp(1.1rem, 2.2vw, 1.5rem); }
@media (max-width: 520px) { .ledger__row { grid-template-columns: 1fr; row-gap: 0.3rem; } .ledger__row dd.is-note { justify-self: start; } }
.ledger__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-top: var(--space-3); color: var(--ink-muted); }
.ledger__foot p { margin: 0; max-width: 58ch; }
.ledger__note { margin: var(--space-2) 0 0; color: var(--ink-muted); max-width: 60ch; }

/* ---------- steps / numbers / quote ---------- */
.steps { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; }
.steps__n { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--accent-ink); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; display: grid; place-items: center; flex: none; }
.steps h3 { font-size: var(--fs-1); margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--ink-muted); }
.quote { margin: 0; max-width: 46rem; }
.quote p { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: var(--fs-3); line-height: 1.2; color: var(--brand); margin-bottom: var(--space-2); max-width: none; }
.quote footer { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.quote footer::before { content: "— "; }
.numbers { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--hair); display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers li { display: grid; gap: 0.15rem; }
.numbers b { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-3); line-height: 1; color: var(--brand); }
.numbers span { color: var(--ink-muted); font-size: 0.95rem; }
.bring { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--hair); max-width: 46rem; }
.bring p:last-child { margin: 0; }

/* ---------- band ---------- */
.band-figure { margin: 0; }
.band { position: relative; min-height: clamp(240px, 40vw, 440px); overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__caption { padding-block: 0.8rem; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 54rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 clamp(1rem, 2.5vw, 1.6rem); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); align-items: center; padding: clamp(0.9rem, 2vw, 1.15rem) 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-1); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair); color: var(--accent-ink); font-family: var(--font-body); font-weight: 700; flex: none; }
.faq details[open] summary::after { content: "\2013"; background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.faq .answer { padding: 0 0 clamp(1rem, 2vw, 1.3rem); max-width: 60ch; color: var(--ink-muted); }
.faq .answer p { margin-bottom: var(--space-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- notes / reach (contact) ---------- */
.notes { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.notes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.notes b { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-1); color: var(--brand); margin-bottom: 0.2rem; }
.notes span { color: var(--ink-muted); }
.reach { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .reach { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .reach { grid-template-columns: 1fr 1.3fr 1fr 1fr; gap: var(--space-3); } }
.reach__item { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.reach__item p { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.reach__item p:last-child { margin-bottom: 0; }
.reach__item .muted { font-size: 0.95rem; font-weight: 400; }
.reach__label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; margin: 0 0 0.5rem; }
.reach__item a { text-decoration: none; color: var(--brand); border-bottom: 1px solid var(--hair); display: inline-block; padding-block: 0.15rem; }
.reach__item a:hover { border-bottom-color: var(--brand); }

/* ---------- close band ---------- */
.close { background: var(--brand); color: var(--on-brand); }
.close h2, .close .lead { color: inherit; }
.close h2 em { color: inherit; }
.close .lead { opacity: 0.9; max-width: 32rem; }
.close__grid { display: grid; gap: var(--space-4); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .close__grid { grid-template-columns: 1.1fr 0.9fr; } }
.contact-list { font-style: normal; display: grid; gap: 0.7rem; margin: 0; }
.contact-list div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.75rem; align-items: baseline; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(239, 245, 242, 0.22); }
.contact-list .label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; font-weight: 700; }
.contact-list a, .contact-list span:not(.label) { color: var(--on-brand); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a { border-bottom: 1px solid rgba(239, 245, 242, 0.45); }
.contact-list a:hover { border-bottom-color: #fff; }
@media (max-width: 520px) { .contact-list div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-4); }
.site-footer h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; color: var(--accent-ink); }
.site-footer p { margin: 0 0 0.35rem; font-size: 0.95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer__legal { font-size: 0.86rem; }

/* ---------- mobile sticky call bar ---------- */
.cta-bar { background: var(--surface); border-top: 1px solid var(--line); }
.cta-bar__inner { display: flex; align-items: center; gap: var(--space-2); }
.cta-bar__inner .btn { flex: 1; }
.cta-bar__hours { font-size: 0.78rem; color: var(--ink-muted); line-height: 1.2; }

/* ---------- Duna Marketing sample-site bar ---------- */
:root { --duna-h: 54px; }
.duna-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  box-sizing: border-box; min-height: var(--duna-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(25, 28, 35, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #FFFFFF; text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--font-body); font-size: 0.92rem; line-height: 1.3; text-align: center;
  cursor: pointer; transition: background 0.15s ease;
}
.duna-bar a { text-decoration: none; }
.duna-bar__copy { justify-self: start; font-size: 0.76rem; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.duna-bar__note { grid-column: 3; justify-self: end; font-size: 0.76rem; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.duna-bar__actions { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; gap: 0.5rem; }
.duna-bar__btn { display: inline-block; background: rgba(0, 0, 0, 0.45); color: #FFFFFF; border: 1.5px solid #FFFFFF; border-radius: 4px; padding: 0.45rem 1.1rem; font-weight: 700; font-size: 0.9rem; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.duna-bar__btn:hover, .duna-bar__btn:focus-visible { background: #FFFFFF; color: #14171E; }
.duna-bar__btn--text { margin-left: 0.6rem; background: #C8102E; color: #FFFFFF; border-color: #C8102E;
  border-radius: 10px; box-shadow: 0 4px 14px rgba(200, 16, 46, 0.32);
  display: inline-flex; align-items: center; gap: 0.45rem; }
.duna-bar__btn--text svg { width: 15px; height: 15px; flex: none; }
.duna-bar__btn--text:hover, .duna-bar__btn--text:focus-visible { background: #A50D25; border-color: #A50D25;
  color: #FFFFFF; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.42); }
.duna-bar__btn--call { margin-left: 0.6rem; background: #003087; color: #FFFFFF; border-color: #003087;
  border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 48, 135, 0.34);
  display: inline-flex; align-items: center; gap: 0.45rem; }
.duna-bar__btn--call:hover, .duna-bar__btn--call:focus-visible { background: #001D52; border-color: #001D52;
  color: #FFFFFF; box-shadow: 0 6px 18px rgba(0, 48, 135, 0.44); }
.duna-bar__btn--call svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 720px) {
  /* Phones (all ad traffic): two full-width, full-label text and call buttons on one row.
     --duna-h tracks the taller bar so pages keep clearing it. */
  :root { --duna-h: 66px; }
  .duna-bar__copy, .duna-bar__note, .duna-bar .long { display: none; }
  .duna-bar { grid-template-columns: 1fr; gap: 0; padding: 0.4rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom)); }
  .duna-bar__actions { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.5rem; }
  .duna-bar__btn { grid-column: 1 / -1; justify-self: center; background: none; border: 0; padding: 0.1rem 0 0.15rem;
    font-size: 0.74rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
  .duna-bar__btn--text, .duna-bar__btn--call { grid-column: auto; justify-self: stretch; justify-content: center; text-align: center;
    margin-left: 0; min-height: 46px; padding: 0.4rem 0.45rem; font-size: 0.82rem; font-weight: 700; line-height: 1.15;
    white-space: normal; text-decoration: none; opacity: 1; border-radius: 10px; }
  .duna-bar__btn--text { background: #C8102E; border: 1.5px solid #C8102E; }
  .duna-bar__btn--call { background: #003087; border: 1.5px solid #003087; }
  .duna-bar__btn--text .long, .duna-bar__btn--call .long { display: inline; }
  .duna-bar__btn--text svg, .duna-bar__btn--call svg { width: 16px; height: 16px; }
}
body { padding-bottom: calc(var(--duna-h) + env(safe-area-inset-bottom)); }
@media (max-width: 720px) {
  .cta-bar { bottom: calc(var(--duna-h) + env(safe-area-inset-bottom)); }
  body.has-cta-bar { padding-bottom: calc(84px + var(--duna-h)); }
}

/* Uniform legal block shared by every Duna sample site. */
.site-footer .duna-legal { grid-column: 1 / -1; margin-top: 0.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line, rgba(127, 127, 127, 0.35)); font-size: 0.85rem; line-height: 1.55; }
.site-footer .duna-legal p { margin: 0 0 0.3rem; max-width: none; }
.site-footer .duna-legal p:last-child { margin-bottom: 0; }
