/* ==========================================================================
   Witham Hill Realty, LLC — site styles
   Single stylesheet for the whole static site.
   ========================================================================== */

:root {
  /* Brand palette — Willamette Valley: deep fir green, warm clay, oat paper */
  --fir-900: #10241c;
  --fir-800: #16362a;
  --fir-700: #1d4636;
  --fir-600: #2a6350;
  --fir-500: #3d8168;
  --fir-300: #8dbdaa;
  --fir-100: #dcece5;

  --clay-600: #a75c33;
  --clay-500: #c47341;
  --clay-300: #e8b995;
  --clay-100: #f7e9de;

  --paper: #fbf9f5;
  --paper-alt: #f3efe7;
  --line: #e2dcd0;

  --ink-900: #1a1c1a;
  --ink-700: #3c423e;
  --ink-500: #676f6a;
  --ink-300: #9aa19c;

  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16, 36, 28, .06), 0 1px 3px rgba(16, 36, 28, .08);
  --shadow-md: 0 4px 12px rgba(16, 36, 28, .08), 0 2px 4px rgba(16, 36, 28, .05);
  --shadow-lg: 0 18px 40px rgba(16, 36, 28, .12), 0 4px 10px rgba(16, 36, 28, .06);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --wrap: 1140px;
  --gutter: 24px;

  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--fir-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--fir-700); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--fir-900);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--fir-800); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ------------------------------------------------------------- layout -- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }

section { padding: clamp(56px, 8vw, 96px) 0; }
section.tight { padding: clamp(40px, 5vw, 60px) 0; }

.band-alt { background: var(--paper-alt); }
.band-dark { background: var(--fir-800); color: var(--fir-100); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark a { color: var(--clay-300); }

.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--clay-600);
  margin-bottom: .9em;
}
.band-dark .eyebrow { color: var(--clay-300); }

.lede { font-size: 1.12rem; color: var(--ink-500); }
.band-dark .lede { color: var(--fir-300); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--clay-500); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--clay-600); color: var(--white); box-shadow: var(--shadow-lg); }

.btn-solid { background: var(--fir-700); color: var(--white); box-shadow: var(--shadow-md); }
.btn-solid:hover { background: var(--fir-800); color: var(--white); }

.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

.btn-outline { border-color: var(--fir-600); color: var(--fir-700); background: transparent; }
.btn-outline:hover { background: var(--fir-700); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 245, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fir-900);
  letter-spacing: -.01em;
}
.brand-sub {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-300);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--fir-800);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px; margin: 4px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
}
.nav a:hover { background: var(--fir-100); color: var(--fir-800); }
.nav a[aria-current="page"] { color: var(--fir-800); font-weight: 600; box-shadow: inset 0 -2px 0 var(--clay-500); }
.nav .btn { margin-left: 10px; }
.nav .btn:hover { background: var(--clay-600); }

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--fir-800) 0%, var(--fir-900) 58%, #0b1a14 100%);
  color: var(--fir-100);
  padding: clamp(64px, 9vw, 116px) 0 clamp(72px, 10vw, 120px);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 82% 18%, rgba(196, 115, 65, .22), transparent 62%),
    radial-gradient(50% 60% at 8% 92%, rgba(61, 129, 104, .3), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero .lede { color: var(--fir-300); font-size: 1.2rem; max-width: 54ch; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-card h2 { font-size: 1.15rem; color: var(--white); margin-bottom: .8em; }
.hero-card dl { margin: 0; display: grid; gap: 16px; }
.hero-card dt { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fir-300); }
.hero-card dd { margin: 2px 0 0; color: var(--white); font-weight: 500; }
.hero-card dd a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); }

.page-hero {
  background: linear-gradient(150deg, var(--fir-800), var(--fir-900));
  color: var(--fir-300);
  padding: clamp(52px, 7vw, 84px) 0;
}
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { max-width: 62ch; font-size: 1.1rem; margin: 0; }

.breadcrumb { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fir-300); margin-bottom: 1.1em; }
.breadcrumb a { color: var(--fir-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* -------------------------------------------------------------- stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--white); padding: 30px 26px; text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 2.9rem);
  font-weight: 600;
  color: var(--fir-700);
  line-height: 1;
  display: block;
}
.stat-label { display: block; margin-top: 10px; font-size: .88rem; color: var(--ink-500); }

/* Four items — pin the column count so it never wraps to an orphan cell. */
.stats--onhero {
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 64px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.18);
}
.stats--onhero .stat { background: rgba(11, 26, 20, .55); }
.stats--onhero .stat-num { color: var(--white); }
.stats--onhero .stat-label { color: var(--fir-300); }

/* -------------------------------------------------------------- cards -- */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; }
.card-media { aspect-ratio: 3 / 2; background: var(--fir-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-meta {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--clay-600);
  font-weight: 700;
  margin-bottom: .7em;
}
.card p { font-size: .96rem; color: var(--ink-500); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.tag {
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fir-100);
  color: var(--fir-700);
}
.tag--accent { background: var(--clay-100); color: var(--clay-600); }

/* feature card with numbered step */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--fir-100);
  color: var(--fir-700);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .4em; }
.feature p { font-size: .96rem; color: var(--ink-500); margin: 0; }

/* --------------------------------------------------- repair tier table -- */

.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier--highlight { border-color: var(--clay-300); box-shadow: var(--shadow-md); }
.tier-name { font-family: var(--serif); font-size: 1.35rem; color: var(--fir-900); margin: 0 0 .2em; }
.tier-cost {
  font-size: .95rem; font-weight: 700; color: var(--clay-600);
  margin-bottom: 1em; padding-bottom: 1em; border-bottom: 1px dashed var(--line);
}
.tier ul { list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--ink-500); }
.tier li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.tier li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fir-500);
}

/* --------------------------------------------------------- properties -- */

.prop-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.prop-address { font-family: var(--serif); font-size: 1.12rem; color: var(--fir-900); margin: 0 0 .25em; }
.prop-city { font-size: .9rem; color: var(--ink-500); margin: 0 0 1em; }

.map-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; text-decoration: none;
}
.map-link svg { width: 15px; height: 15px; }
.map-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------- quote/note -- */

.note {
  border-left: 4px solid var(--clay-500);
  background: var(--clay-100);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .97rem;
  color: var(--ink-700);
}
.band-dark .note { background: rgba(255,255,255,.07); border-left-color: var(--clay-300); color: var(--fir-100); }

/* ------------------------------------------------------------ contact -- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 56px); align-items: start; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; margin: 0; }
.contact-list .ci {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--fir-100); color: var(--fir-700);
}
.contact-list .ci svg { width: 21px; height: 21px; }
.contact-list dt, .contact-label {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-300); margin-bottom: 3px;
}
.contact-value { font-size: 1.05rem; color: var(--fir-900); font-weight: 500; }
.contact-value a { color: var(--fir-800); }

/* form */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .87rem; font-weight: 600; color: var(--fir-900); margin-bottom: 6px; }
.field .req { color: var(--clay-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink-900);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--fir-500);
  box-shadow: 0 0 0 3px var(--fir-100);
}
.form-hint { font-size: .84rem; color: var(--ink-300); margin-top: 14px; }

/* --------------------------------------------------------------- FAQ -- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--fir-900);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.5rem; font-weight: 300;
  color: var(--clay-500); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 44px 22px 0; font-size: .97rem; color: var(--ink-500); }

/* --------------------------------------------------------------- CTA -- */

.cta {
  background: linear-gradient(140deg, var(--fir-700), var(--fir-900));
  color: var(--fir-100);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta h2 { color: var(--white); }
.cta p { max-width: 56ch; margin-inline: auto; color: var(--fir-300); }
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* ------------------------------------------------------------- footer -- */

.site-footer { background: var(--fir-900); color: var(--fir-300); padding: clamp(48px, 6vw, 72px) 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.2em; }
.site-footer a { color: var(--fir-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6em; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--fir-300); }
.footer-brand p { margin-top: 16px; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--ink-300);
}

/* ------------------------------------------------------------ utility -- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------- responsive -- */

@media (max-width: 1000px) {
  .stats--onhero { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--clay-500); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .site-header { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats--onhero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-sub { display: none; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------- printing -- */

@media print {
  .site-header, .site-footer, .nav-toggle, .cta, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .page-hero, .band-dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1 { color: #000 !important; }
}
