/* Westbrook Heritage Insurance
   Warm paper, deep pasture green, a little Texas clay. No gradients, no
   drop shadows, no cards for the sake of cards. */

:root {
  --paper: #f5f0e6;
  --paper-2: #ebe3d3;
  --paper-3: #e0d6c2;
  --ink: #1f1c17;
  --ink-2: #4a4539;
  --muted: #6f6858;
  --line: #d6cbb6;
  --green: #234333;
  --green-deep: #172d22;
  --green-soft: #dfe6dd;
  --rust: #b1522b;
  --rust-deep: #8f3f20;
  --brass: #9a7a3a;
  --focus: #b1522b;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(3rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--rust-deep); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-variation-settings: "opsz" 48; }
h4 { font-size: 1.15rem; font-variation-settings: "opsz" 24; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.9rem;
}

.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: var(--measure); }
.measure { max-width: var(--measure); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header ----------------------------------------------------------------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-2); }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--rust-deep); text-decoration: underline; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }

.wordmark { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 44px; height: 44px; flex: none; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; }
.wordmark-sub { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); margin-top: 0.25rem; white-space: nowrap; }
@media (max-width: 480px) { .hide-sm { display: none; } .wordmark svg { width: 38px; height: 38px; } .wordmark-name { font-size: 1.2rem; } }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.98rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--rust); }
.nav .btn { margin-left: 0.5rem; padding: 0.65rem 1.1rem; font-size: 0.92rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--ink);
  font: inherit; font-weight: 500; padding: 0.45rem 0.9rem; border-radius: 2px; cursor: pointer;
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1rem; z-index: 20;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--rust-deep); }
  .nav .btn { margin: 0.9rem 0 0; text-align: center; }
  .masthead { position: relative; }
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.98rem; line-height: 1.2;
  padding: 0.85rem 1.35rem; border-radius: 2px; border: 1.5px solid var(--green);
  background: var(--green); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--paper); }
.btn-primary { background: var(--rust); border-color: var(--rust); }
.btn-primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--green-deep); border-color: var(--paper); }
.btn-paper:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--green-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.75rem; }
.btn-row .aside { font-size: 0.9rem; color: var(--muted); flex-basis: 100%; margin-top: 0.15rem; }

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--section); border-top: 1px solid var(--line); }
.section:first-of-type, .hero { border-top: 0; }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: 3rem; }
  .section-head > p { margin-bottom: 0.4rem; }
}
.section-head h2 { margin-bottom: 0; }

.band { background: var(--green); color: var(--paper); border-top: 0; }
.band h2, .band h3, .band .eyebrow { color: var(--paper); }
.band .eyebrow { color: #c9b88a; }
.band a:not(.btn) { color: var(--paper); }
.band .muted { color: #c4cec4; }

/* Hero ------------------------------------------------------------------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) var(--section); }
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
}
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 1.5rem; }
.hero-figure { margin: 0; position: relative; }
.hero-figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.85rem; }
/* Offset hairline frame behind the portrait: a little print-era warmth
   without touching the photo itself. */
.hero-figure .portrait, .hero-figure .portrait-empty { position: relative; z-index: 1; }
.hero-figure::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 14px; left: 14px; right: -14px; bottom: calc(14px + 2.2rem);
  border: 1px solid var(--brass); border-radius: 2px;
}
@media (max-width: 899px) { .hero-figure::before { right: 0; left: 0; top: 0; bottom: 2.2rem; border: 0; } }

/* Portraits -------------------------------------------------------------- */
.portrait { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 2px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(31, 28, 23, 0.08); }
.portrait-empty {
  aspect-ratio: 4 / 5; width: 100%; border-radius: 2px; background: var(--paper-2);
  display: grid; place-items: center; color: var(--paper-3);
  font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); font-weight: 600;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.025) 14px 15px);
}
.portrait-sm { max-width: 320px; }

/* Service lists ---------------------------------------------------------- */
.columns-3 { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 720px) { .columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.columns-2 { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 800px) { .columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-rules > li { padding: 0.7rem 0; border-top: 1px solid var(--line); }
.list-rules > li:last-child { border-bottom: 1px solid var(--line); }
.list-rules a { text-decoration: none; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.list-rules a:hover { color: var(--rust-deep); }
.list-rules a::after { content: "→"; color: var(--brass); font-size: 0.9em; }
.list-rules .note { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }

.group-title { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.group-title h3 { margin: 0; }
.group-title p { margin: 0.5rem 0 1rem; color: var(--ink-2); }

/* Steps ------------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 2rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font-family: var(--font-display); font-size: 2.2rem; color: var(--brass); line-height: 1; margin-bottom: 0.6rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-2); }

/* Owner / bio ------------------------------------------------------------ */
.bio-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .bio-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; } }
.bio-grid .sticky { position: sticky; top: 1.5rem; }
.bio-meta { margin-top: 1rem; font-size: 0.92rem; color: var(--ink-2); }
.bio-meta dt { font-weight: 600; color: var(--ink); margin-top: 0.7rem; }
.bio-meta dd { margin: 0; }
.prose { max-width: var(--measure); }
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose-large { font-size: 1.1rem; }
.pullquote {
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.3;
  border-left: 3px solid var(--rust); padding-left: 1.25rem; margin: 2rem 0; color: var(--ink);
  font-variation-settings: "opsz" 72;
}

/* Community -------------------------------------------------------------- */
.notes { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.note-card img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; margin-bottom: 0.75rem; }
.note-card h3 { margin-bottom: 0.2rem; }
.note-card time { font-size: 0.85rem; color: var(--muted); }

/* Booking ---------------------------------------------------------------- */
.book-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .book-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 3rem; align-items: start; } }
.event-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.event-list li { border-top: 1px solid rgba(255,255,255,0.18); }
.event-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.18); }
.event-list a { display: block; padding: 0.8rem 0.6rem; text-decoration: none; color: var(--paper); }
.event-list a:hover { background: rgba(255,255,255,0.06); }
.event-list a[aria-current="true"] { background: rgba(255,255,255,0.1); border-left: 3px solid #c9b88a; padding-left: 0.9rem; }
.event-list .who { display: block; font-size: 0.85rem; color: #c4cec4; }
.cal-frame { background: var(--paper); border-radius: 3px; min-height: 640px; padding: 0.25rem; }
.cal-frame iframe { border-radius: 3px; }
.cal-fallback { background: rgba(255,255,255,0.06); border: 1px dashed rgba(255,255,255,0.3); padding: 1.5rem; border-radius: 3px; }

/* Forms ------------------------------------------------------------------ */
.form-grid { display: grid; gap: 1.25rem; max-width: 40rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 2px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); outline-offset: 0; }
.field .help { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.field .errorlist { list-style: none; margin: 0.35rem 0 0; padding: 0; color: var(--rust-deep); font-size: 0.9rem; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.radio-row label { font-weight: 400; display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.radio-row ul { list-style: none; margin: 0; padding: 0; display: contents; }
.radio-row input { accent-color: var(--green); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-errors { border-left: 3px solid var(--rust); padding: 0.6rem 1rem; background: #f9ece4; margin-bottom: 1.25rem; }
.form-errors ul { margin: 0; padding-left: 1rem; }

/* Contact block ---------------------------------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; } }
.contact-card { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.contact-card dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-top: 1.1rem; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.2rem 0 0; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* Testimonials ----------------------------------------------------------- */
.quotes { display: grid; gap: 2rem; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quotes blockquote { margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.quotes blockquote p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; font-variation-settings: "opsz" 36; }
.quotes cite { font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--green-deep); color: #d9dfd6; margin-top: var(--section); font-size: 0.93rem; }
.footer .container { padding-block: 3rem 2rem; display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer .container { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { color: var(--paper); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.7rem; }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.35rem; }
.footer .wordmark { color: var(--paper); margin-bottom: 0.8rem; }
.footer .wordmark-sub { color: #c9b88a; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; font-size: 0.82rem; color: #aab5a9; }
.footer-legal p { margin-bottom: 0.5rem; }

/* Page intro ------------------------------------------------------------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: inherit; }

.handy { background: var(--paper-2); border-radius: 3px; padding: 1.25rem 1.5rem; }
.handy h3 { margin-bottom: 0.5rem; }
.handy ul { margin: 0; padding-left: 1.1rem; }
.handy li { margin-bottom: 0.3rem; }

.related { margin-top: 3rem; }

/* Messages --------------------------------------------------------------- */
.messages { list-style: none; margin: 0; padding: 0; }
.messages li { background: var(--green-soft); border-left: 3px solid var(--green); padding: 0.75rem 1rem; margin: 1rem 0; }

@media print {
  .topbar, .nav, .nav-toggle, .footer, .btn { display: none !important; }
}
