/* ==========================================================================
   Gary Conlon, GRI — Eagle Ridge Realty
   Style sheet: design tokens, layout primitives, components
   No external dependencies (fonts, icons or frameworks) — offline friendly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette: evergreens of the Galena valley + brass accents */
  --ink:        #102620;
  --ink-2:      #17352c;
  --brand:      #1d4b3f;
  --brand-600:  #173d33;
  --brand-700:  #123128;
  --accent:     #b07d2b;
  --accent-700: #8a5f22;
  --accent-100: #f6ecd9;

  --paper:      #faf8f4;
  --paper-2:    #f3efe7;
  --card:       #ffffff;
  --line:       #e4ddd1;
  --line-soft:  #eee8dd;

  --text:       #1a2a25;
  --text-2:     #46564f;
  --muted:      #5c6a64;
  --on-dark:    #f4f1ea;
  --on-dark-2:  #c3cdc6;

  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;

  --shadow-xs:  0 1px 2px rgba(16, 38, 32, .06);
  --shadow-sm:  0 2px 6px rgba(16, 38, 32, .07), 0 1px 2px rgba(16, 38, 32, .05);
  --shadow-md:  0 10px 26px -12px rgba(16, 38, 32, .28), 0 2px 8px rgba(16, 38, 32, .06);
  --shadow-lg:  0 26px 60px -28px rgba(16, 38, 32, .45), 0 6px 18px rgba(16, 38, 32, .08);

  --wrap:       1120px;
  --wrap-wide:  1240px;
  --gutter:     clamp(18px, 4vw, 40px);
  --sp-section: clamp(56px, 8vw, 104px);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
                Georgia, "Times New Roman", serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                Arial, "Noto Sans", "Liberation Sans", sans-serif;

  --ease:       cubic-bezier(.2, .7, .3, 1);
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(16px, .55vw + 14.6px, 17.5px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.012em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 3.6vw + 1rem, 3.15rem); }
h2 { font-size: clamp(1.55rem, 1.9vw + 1rem, 2.3rem); }
h3 { font-size: clamp(1.18rem, .8vw + 1rem, 1.4rem); letter-spacing: -.006em; }
h4 { font-size: 1.05rem; }

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

a {
  color: var(--brand);
  text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  transition: color .18s var(--ease), text-decoration-color .18s var(--ease);
}
a:hover { color: var(--accent-700); text-decoration-color: currentColor; }

strong, b { font-weight: 650; color: var(--ink); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4rem 0;
}

blockquote {
  margin: 0 0 1.2em;
  padding: .2em 0 .2em 1.2em;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-style: italic;
}

small { font-size: .86em; color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--accent-100); color: var(--ink); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--sp-section); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--paper { background: var(--paper); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark-2); }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--on-dark); }
.section--dark a { color: var(--accent-100); }
.section--dark a:hover { color: #fff; }

.stack > * + * { margin-top: 1.1em; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.section-head { max-width: 720px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #faf8f4;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: var(--shadow-xs);
  flex: none;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.18; }
.brand__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .1rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__item { margin: 0; position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .62rem;
  border-radius: 9px;
  font-size: .93rem;
  font-weight: 550;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.nav__link:hover { background: rgba(29, 75, 63, .07); color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--brand); background: rgba(29, 75, 63, .08); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .62rem; right: .62rem; bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__toggle,
.nav__chevron { display: none; }

.nav__toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.nav__toggle:hover { background: var(--paper-2); }

.nav__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
  flex: none;
  margin-top: -2px;
}

/* Dropdown (desktop: hover + keyboard focus) */
.nav__submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 244px;
  list-style: none;
  margin: 0;
  padding: .45rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav__item:hover > .nav__submenu,
.nav__item:focus-within > .nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__submenu a {
  display: block;
  padding: .5rem .65rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text-2);
  text-decoration: none;
  white-space: normal;
}
.nav__submenu a:hover { background: var(--paper-2); color: var(--ink); }

.nav__cta { margin-left: .5rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 650;
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--accent-700); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.35rem;
  min-height: 46px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: .94rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .16s var(--ease), color .16s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  color: var(--btn-fg);
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--accent-700); }
.btn--accent:hover { background: #75501c; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(16, 38, 32, .05);
  color: var(--ink);
  box-shadow: none;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-bd: transparent;
}
.btn--light:hover { background: var(--paper-2); color: var(--ink); }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .34);
  box-shadow: none;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }

.btn--sm { padding: .55rem 1rem; min-height: 40px; font-size: .87rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 620;
  font-size: .93rem;
  text-decoration: none;
  color: var(--brand);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  padding-bottom: 1px;
}
.text-link:hover { color: var(--accent-700); border-color: currentColor; }
.text-link::after { content: "\2192"; font-size: .95em; transition: transform .16s var(--ease); }
.text-link:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(176, 125, 43, .22) 0%, rgba(176, 125, 43, 0) 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(165deg, #14342b 0%, #0e241f 58%, #0b1d19 100%);
  color: var(--on-dark-2);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-house.jpg");
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: cover;
  opacity: .12;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero__inner {
  max-width: 840px;
  padding-block: clamp(46px, 6.5vw, 88px) clamp(34px, 4.5vw, 56px);
}

.hero h1 {
  color: #fff;
  margin-bottom: .5em;
  font-size: clamp(2rem, 3vw + .95rem, 3.1rem);
  max-width: 18em;
}
.hero p { color: var(--on-dark-2); }
.hero__lead {
  font-size: clamp(1.02rem, .5vw + .95rem, 1.16rem);
  max-width: 36em;
  color: #d8e0da;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, .14);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.hero__facts > div {
  background: rgba(10, 26, 22, .62);
  padding: .95rem 1.2rem 1.05rem;
}
.hero__facts dt {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #93a69b;
  font-weight: 700;
}
.hero__facts dd {
  margin: .3rem 0 0;
  font-size: .95rem;
  line-height: 1.35;
  color: #eef2ec;
  font-weight: 600;
}
.hero__facts a {
  color: #eef2ec;
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 125, 43, .65);
}
.hero__facts a:hover { color: #fff; border-color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.eyebrow--dark { color: var(--accent-700); }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.hero__chips li {
  margin: 0;
  padding: .4rem .78rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: .79rem;
  letter-spacing: .02em;
  color: #d9e2db;
  background: rgba(255, 255, 255, .05);
}

/* Page header for interior pages */
.page-head {
  position: relative;
  padding-block: clamp(34px, 5vw, 62px) clamp(28px, 4vw, 46px);
  background: linear-gradient(160deg, #14342b 0%, #0e241f 100%);
  color: var(--on-dark-2);
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-house.jpg");
  background-size: cover;
  background-position: 50% 62%;
  opacity: .1;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.page-head > .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .5rem; max-width: 26em; }
.page-head__lead {
  max-width: 46em;
  color: #cfd9d2;
  font-size: clamp(1rem, .4vw + .92rem, 1.1rem);
  margin-bottom: 0;
}

.breadcrumbs {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: #9fb0a7;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "/"; color: #6d8378; }
.breadcrumbs a { color: #cfd9d2; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #fff; }

/* --------------------------------------------------------------------------
   7. Cards & content blocks
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow-xs);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card > p:last-child, .card > ul:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--text-2); }

a.card { text-decoration: none; color: inherit; }
a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: inherit;
}
a.card:hover h3 { color: var(--brand); }

.card--flat { box-shadow: none; }
.card--accent { border-top: 3px solid var(--accent); }
.card__more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 620;
  font-size: .9rem;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.card__more::after { content: "\2192"; transition: transform .16s var(--ease); }
a.card:hover .card__more::after { transform: translateX(3px); }

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-100);
  color: var(--accent-700);
  margin-bottom: 1rem;
  flex: none;
}
.icon-badge svg { width: 22px; height: 22px; stroke-width: 1.7; }
.section--dark .icon-badge { background: rgba(176, 125, 43, .17); color: #dcb573; }

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats > div {
  background: var(--card);
  padding: 1.15rem 1.3rem;
}
.stats dt {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.2;
}
.stats dd {
  margin: .2rem 0 0;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Callout */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-100);
  color: var(--text-2);
}
.callout svg { width: 22px; height: 22px; color: var(--accent-700); margin-top: .15rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: clamp(16px, 2vw, 22px); }
.step {
  position: relative;
  padding-left: 4.1rem;
  min-height: 3.2rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-700);
  background: var(--accent-100);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.step h3 { margin-bottom: .3rem; font-size: 1.12rem; }
.step p { color: var(--text-2); margin-bottom: 0; }
.section--dark .step::before { background: rgba(176, 125, 43, .16); color: #dcb573; }
.section--dark .step p { color: var(--on-dark-2); }

/* Feature list with ticks */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: .62rem;
  color: var(--text-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent-700);
  border-bottom: 2px solid var(--accent-700);
  transform: rotate(-45deg);
}
.section--dark .ticks li { color: var(--on-dark-2); }
.section--dark .ticks li::before { border-color: #dcb573; }

/* Split feature (image + text) */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.split__media { margin: 0; position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split__media--portrait { max-width: 330px; }

.portrait-frame {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.portrait-frame img { border-radius: 12px; width: 100%; }
.portrait-frame figcaption {
  padding: .7rem .4rem .2rem;
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .2rem .2rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow-xs); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1.1rem;
  cursor: pointer;
  font-weight: 620;
  color: var(--ink);
  list-style: none;
  border-radius: calc(var(--radius) - 2px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 400;
  color: var(--accent-700);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--paper); }
.faq .faq__body { padding: 0 1.1rem 1.1rem; color: var(--text-2); }
.faq .faq__body > *:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   9. Prose (article pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose > h2 { margin-top: 2.2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose > p, .prose > ul, .prose > ol { color: var(--text-2); }
.prose ul li::marker { color: var(--accent); }
.prose img { border-radius: var(--radius); margin: 1.6rem 0; }

.lead {
  font-size: clamp(1.05rem, .5vw + .96rem, 1.2rem);
  color: var(--text-2);
  line-height: 1.65;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: .38rem; }

/* Two-column article layout with sticky sidebar */
.layout-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.sidebar { position: sticky; top: 92px; display: grid; gap: 1rem; }
.sidebar .card { padding: 1.3rem; }
.sidebar h2, .sidebar h3 { font-size: 1.02rem; margin-bottom: .55rem; }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .35rem; }
.field > label {
  font-size: .87rem;
  font-weight: 620;
  color: var(--ink);
}
.field .hint { font-size: .8rem; color: var(--muted); }
.req { color: #a3341f; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input[type="date"], select, textarea {
  width: 100%;
  padding: .68rem .8rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #cfc8ba;
  border-radius: 10px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  appearance: none;
}
input:hover, select:hover, textarea:hover { border-color: #b3a998; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 75, 63, .14);
}
textarea { min-height: 130px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2346564f' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
}

.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.05rem; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 1.3rem;
  margin: 0;
  background: var(--card);
}
legend {
  padding: 0 .45rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .55rem; }
.choice {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.choice:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.choice input { width: 1.02rem; height: 1.02rem; accent-color: var(--brand); flex: none; margin: 0; }

.form-note {
  font-size: .84rem;
  color: var(--muted);
  padding: .9rem 1rem;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
caption { caption-side: bottom; padding: .8rem 1rem; font-size: .8rem; color: var(--muted); text-align: left; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th {
  background: var(--paper-2);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaf6; }

/* --------------------------------------------------------------------------
   12. Mortgage calculator
   -------------------------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
.calc__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: var(--shadow-sm);
}
.calc__result {
  background: linear-gradient(165deg, #14342b, #0e241f);
  color: var(--on-dark-2);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 32px);
  position: sticky;
  top: 92px;
}
.calc__result .label {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9fb0a7;
  margin: 0;
}
.calc__amount {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.1;
  color: #fff;
  margin: .15rem 0 .1rem;
  font-variant-numeric: tabular-nums;
}
.calc__breakdown {
  margin: 1.3rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  gap: .5rem;
  font-size: .88rem;
}
.calc__breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.calc__breakdown dt { color: #a9b8b0; }
.calc__breakdown dd { margin: 0; color: #eef2ee; font-variant-numeric: tabular-nums; }
.calc__disclaimer { margin-top: 1.1rem; font-size: .76rem; color: #93a49b; line-height: 1.55; }

.range-row { display: grid; gap: .3rem; }
input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
  height: 26px;
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(176, 125, 43, .2), rgba(176, 125, 43, 0) 60%),
    linear-gradient(150deg, #17352c, #0d221d);
  color: var(--on-dark-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin-bottom: 0; color: var(--on-dark-2); max-width: 46em; }
.cta-band .btn-row { justify-content: flex-end; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #a9b8b0;
  padding-block: clamp(44px, 6vw, 72px) 0;
  font-size: .92rem;
  margin-top: 0;
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8ea096;
  font-weight: 700;
  margin: 0 0 .95rem;
}
.site-footer a { color: #d5ded8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 52px);
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: #8ea096; }
.footer-brand > p { color: #a9b8b0; margin: 1rem 0 1.4rem; max-width: 32ch; font-size: .9rem; }
.footer-brand .footer-contact { margin-top: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-list li { margin: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer-contact li { margin: 0; }
.footer-contact a {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand);
  word-break: break-word;
}
.footer-contact a:hover { color: var(--accent-700); text-decoration: underline; }
.site-footer .footer-contact a { color: #d5ded8; }
.site-footer .footer-contact a:hover { color: #fff; }
.footer-contact .k {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7f9188;
}
.footer-bottom {
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  color: #8ea096;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   15. Misc
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent-100);
  color: var(--accent-700);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.badge--brand { background: rgba(29, 75, 63, .09); color: var(--brand); border-color: rgba(29, 75, 63, .18); }

.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.linklist li { margin: 0; }
.linklist a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 550;
}
.linklist li:last-child a { border-bottom: 0; }
.linklist a:hover { color: var(--accent-700); }
.linklist a span { font-size: .82rem; color: var(--muted); font-weight: 400; text-align: right; }

.directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 38px); }
.directory h2 { font-size: 1.12rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }

.h-sm { font-size: 1.15rem; letter-spacing: -.004em; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .layout-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact desktop header: keeps the eight-item menu on one line on
   laptops without dropping into the mobile drawer. */
@media (max-width: 1280px) and (min-width: 1081px) {
  .nav__link { font-size: .86rem; padding-inline: .45rem; }
  .nav__cta { margin-left: .2rem; }
  .nav__cta .btn { font-size: .82rem; padding: .5rem .8rem; min-height: 38px; }
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: .66rem; letter-spacing: .1em; }
  .header-inner { gap: .8rem; }
}

@media (max-width: 1080px) {
  .header-inner { min-height: 64px; }
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    margin: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: .8rem var(--gutter) 1.4rem;
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link {
    padding: .78rem .5rem;
    font-size: 1rem;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    margin: 0 0 .35rem 1.15rem;
    padding: .1rem 0 .2rem .85rem;
    background: transparent;
    min-width: 0;
    display: block;
  }
  .nav__link .nav__chevron { display: none; }
  .header-phone { display: none; }
  .nav__cta { margin: .9rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .header-phone span { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { line-height: 1.66; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { padding-left: 3.4rem; }
  .step::before { width: 2.3rem; height: 2.3rem; font-size: 1rem; }
  .callout { grid-template-columns: 1fr; }
  .callout svg { margin-bottom: .1rem; }
  .hero__chips li { font-size: .74rem; }
  .split__media--portrait { max-width: 260px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   17. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav, .btn-row, .hero::after, .page-head::after { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-head { background: none; color: #000; padding-block: 0 1rem; }
  .page-head h1, .page-head__lead { color: #000; }
  a { color: #000; text-decoration: underline; }
  .card, .calc__panel { border: 1px solid #ccc; box-shadow: none; }
  .section { padding-block: 1rem; }
}
