/* Layout: ink header and footer bands framing an open, light reading column; one coastal accent. */
:root {
  --ink: #16191d;
  --ink-soft: #2a2f35;
  --paper: #fbfaf8;
  --sand: #efebe4;
  --line: #ddd8cf;
  --muted: #5d6268;
  --accent: #2b5f6e;
  --accent-ink: #1d4652;
  --on-ink: #f3f1ed;
  --on-ink-muted: #a9adb2;
  --tbd: #fff3c4;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 2.75rem);
  --step-4: clamp(2.4rem, 6vw, 3.75rem);

  --wrap: 72rem;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-ink); }
.brand img { width: 132px; }
.brand span { font-family: var(--body); font-size: 0.92rem; line-height: 1.35; padding-left: 16px; border-left: 1px solid var(--ink-soft); color: var(--on-ink-muted); }
.brand .dre { font-family: var(--body); font-style: normal; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--on-ink-muted); margin-left: 4px; white-space: nowrap; }
.brand small { display: block; font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink-muted); }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.nav a { color: var(--on-ink); text-decoration: none; font-size: 0.95rem; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--on-ink); border-color: var(--on-ink-muted); }
.nav a[aria-current="page"] { border-color: var(--on-ink); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: var(--body);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
section.alt { background: var(--sand); }
.section-head { display: grid; gap: 12px; max-width: 42rem; margin-bottom: 36px; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 38rem; }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-photo figcaption { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }

/* Who I help */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.path { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.path:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.path p { color: var(--ink-soft); }

/* Two column prose */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose { display: grid; gap: 18px; max-width: 40rem; min-width: 0; }
.prose p { color: var(--ink-soft); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--accent); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--on-ink); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band p { color: var(--on-ink-muted); margin-top: 8px; max-width: 34rem; }
.cta-band .btn.ghost { color: var(--on-ink); border-color: var(--on-ink); }
.cta-band .btn.ghost:hover { background: var(--on-ink); color: var(--ink); }

/* About page */
.about-top .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-top img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.facts { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* Contact page */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 18px; min-width: 0; }
.contact-info dl { margin: 0; display: grid; gap: 14px; }
.contact-info dt { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-info dd { margin: 2px 0 0; font-size: 1.1rem; }
form.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }
label { font-weight: 600; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit;
  font-size: 1rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 130px; resize: vertical; }
.fine { font-size: var(--step--1); color: var(--muted); }
.form-status { padding: 12px 14px; border-radius: 3px; background: var(--sand); }
.hp { position: absolute; left: -9999px; }

/* Placeholder marker for content Sam still needs to supply */
.tbd { background: var(--tbd); padding: 0 4px; border-radius: 2px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; padding-block: 44px; align-items: start; }
.site-footer img { width: 150px; }
.site-footer strong { color: var(--on-ink); font-weight: 600; }
.site-footer a { color: var(--on-ink); }
.footer-text { display: grid; gap: 10px; min-width: 0; }
.legal { font-size: 0.8rem; line-height: 1.55; }

@media (max-width: 760px) {
  .hero .wrap, .split, .about-top .wrap, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { max-width: 420px; }
  .brand img { width: 104px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .path, .path:nth-child(even) { padding: 22px 0; border-left: 0; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: 7rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Calculator cards */
a.path.tool { text-decoration: none; color: inherit; }
a.path.tool h3 { color: var(--ink); }
a.path.tool:hover h3, a.path.tool:hover .tool-go { color: var(--accent); }
.tool-go { font-weight: 600; color: var(--accent-ink); }

/* Photo behind the first section of each page, lightly washed. A page sets its own
   photo with style="--photo: url(...)"; the home coastline is the fallback.
   Text sits on a frosted panel (.glass) so it stays readable over the busy image. */
.photo-bg {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(251, 250, 248, 0.35), rgba(251, 250, 248, 0.35)),
    var(--photo, url("assets/sd-coast.jpg"));
  background-size: cover, cover;
  background-position: center, center 50%;
  background-repeat: no-repeat;
}
.glass {
  background: rgba(251, 250, 248, 0.65);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 6px;
  padding: clamp(20px, 3.5vw, 36px);
  box-shadow: 0 10px 40px rgba(22, 25, 29, 0.18);
}
.photo-bg .hero-photo figcaption { display: inline-block; color: #fff; background: rgba(22, 25, 29, 0.6); padding: 3px 10px; border-radius: 3px; }
@media (max-width: 760px) {
  .photo-bg { background-image: linear-gradient(rgba(251, 250, 248, 0.35), rgba(251, 250, 248, 0.35)), var(--photo-sm, var(--photo, url("assets/sd-coast-sm.jpg"))); background-size: cover; background-position: center top; }
  .glass { background: rgba(251, 250, 248, 0.9); }
}

/* Home hero without the headshot: one text panel over the photo */
.hero.hero-solo .wrap { grid-template-columns: minmax(0, 58rem); justify-content: center; }
.hero.hero-solo .hero-text { text-align: center; justify-items: center; }
.hero.hero-solo .lede { max-width: 42rem; text-wrap: balance; }
.hero.hero-solo .actions { justify-content: center; }
.hero.hero-solo { padding-block: clamp(64px, 11vw, 140px); }

/* Meet Sam: headshot near the bottom of the home page */
.meet .wrap { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.meet .hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; width: 100%; }
@media (max-width: 760px) { .meet .wrap { grid-template-columns: minmax(0, 1fr); } .meet .hero-photo { max-width: 320px; } }

/* Seller and buyer landing pages: process on the left, form on the right */
.lp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lp-form { position: sticky; top: 24px; scroll-margin-top: 24px; }
.form-title { font-size: var(--step-2); margin-bottom: 6px; }
ol.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 4px 12px; padding-block: 20px; border-bottom: 1px solid var(--line); }
ol.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-size: 1.4rem; color: var(--accent); line-height: 1.2; }
ol.steps h3 { font-size: 1.15rem; }
.also { display: grid; gap: 14px; margin-top: 12px; }
@media (max-width: 760px) {
  .lp { grid-template-columns: minmax(0, 1fr); }
  .lp-form { position: static; }
}

/* Header dropdowns: open on hover, keyboard focus, or tap (.open is set by the nav script) */
.nav { align-items: center; }
.nav .has-menu { position: relative; display: flex; }
.nav .nav-top {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; border-bottom: 1px solid transparent;
  color: var(--on-ink); font: inherit; font-size: 0.95rem; padding-block: 4px; padding-inline: 0;
  cursor: pointer; text-decoration: none;
}
.nav .nav-top:hover, .nav .nav-top[data-current] { border-color: var(--on-ink-muted); }
.nav .nav-top[aria-current="page"], .nav .nav-top[data-current] { border-color: var(--on-ink); }
.nav .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav .nav-menu {
  display: none; position: absolute; top: 100%; left: -16px; z-index: 30;
  min-width: 220px; padding: 8px 0; background: var(--ink);
  border: 1px solid var(--ink-soft); border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.nav .has-menu:hover .nav-menu,
.nav .has-menu:focus-within .nav-menu,
.nav .has-menu.open .nav-menu { display: grid; }
.nav .nav-menu a { padding: 9px 16px; border: 0; white-space: nowrap; }
.nav .nav-menu a:hover, .nav .nav-menu a[aria-current="page"] { background: var(--ink-soft); border: 0; }

/* Seller and buyer landing pages, v2: full-bleed photo hero with the form beside it,
   then value cards, a numbered process, a feature split, FAQ, and a closing band. */
.lp-hero {
  color: #fff;
  background-color: var(--ink);
  background-image:
    linear-gradient(100deg, rgba(16, 19, 23, 0.8) 0%, rgba(16, 19, 23, 0.5) 50%, rgba(16, 19, 23, 0.15) 100%),
    var(--photo);
  background-size: cover;
  background-position: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.lp-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lp-hero-text { display: grid; gap: 20px; min-width: 0; padding-top: clamp(20px, 4vw, 32px); }
.lp-hero .eyebrow { color: #cfe3e8; }
.lp-hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.6rem); }
.lp-hero .lede { color: rgba(255, 255, 255, 0.86); }
.hero-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, 0.92); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.lp-hero form.card { color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); border: 0; scroll-margin-top: 24px; }
.lp-hero .text-link { color: #fff; font-weight: 600; }

.lp-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-value { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.lp-value p { color: var(--ink-soft); }
.lp-icon { width: 44px; height: 44px; border-radius: 50%; background: #e3eef0; color: var(--accent); display: grid; place-items: center; }
.lp-icon svg { width: 22px; height: 22px; }

.lp-process { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.lp-process li { counter-increment: step; background: var(--paper); border-radius: 6px; padding: 22px 20px; display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--accent); min-width: 0; }
.lp-process li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--accent); }
.lp-process h3 { font-size: 1.08rem; }
.lp-process p { color: var(--ink-soft); font-size: 0.95rem; }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-split figure { margin: 0; }
.lp-split figure img { border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.cost-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3.5vw, 32px); display: grid; gap: 14px; box-shadow: 0 16px 40px rgba(22, 25, 29, 0.08); }
.cost-card h3 { font-family: var(--body); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cost-row { display: grid; gap: 6px; }
.cost-row span { font-size: 0.95rem; }
.cost-bar { height: 10px; border-radius: 5px; background: var(--sand); overflow: hidden; }
.cost-bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.cost-card .fine { margin-top: 4px; }

.faq { display: grid; border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--body); font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 42rem; }

@media (max-width: 1000px) {
  .lp-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lp-hero .wrap, .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lp-hero { background-image: linear-gradient(rgba(16, 19, 23, 0.72), rgba(16, 19, 23, 0.72)), var(--photo-sm, var(--photo)); }
  .lp-process { grid-template-columns: minmax(0, 1fr); }
}
