/* Stratton Appraisals — site styles
   Palette and type lifted straight from the business-card system
   (generation/BusinessDocs/output/README.md §4). Fraunces / Public Sans /
   IBM Plex Mono are SIL OFL 1.1 and self-hosted from /assets/fonts.        */

:root {
  --bone: #f4efe4;
  --paper: #fbf8f1;
  --ink: #14231f;
  --spruce: #12332e;
  --spruce-deep: #0d2622;
  --forest: #276556;
  --gold: #e1c28e;
  --gold-deep: #c6a46a;
  --gold-ink: #7d6030;          /* gold dark enough to read on bone */
  --sage: #9bb0a6;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1100px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --rule: 1px solid rgba(198, 164, 106, .5);
}

/* ---------- fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-700.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-600.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-400.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-600.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans-700.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-400.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--spruce); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--gold); color: var(--spruce); padding: .6rem 1rem; font-weight: 600;
}
.skip-link:focus { left: .5rem; top: .5rem; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 .7rem;
}
.hero .eyebrow, .contact-band .eyebrow, .contact-card .eyebrow, .page-head .eyebrow {
  color: var(--gold-deep);
}
.muted { color: #5d6b65; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--spruce);
  border-bottom: 1px solid rgba(225, 194, 142, .28);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 62px; }
.wordmark {
  display: inline-flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--gold); margin-right: auto;
}
.wm-state img { width: 22px; height: 25px; }
.wm-text { display: flex; flex-direction: column; line-height: 1; }
.wm-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: .01em;
}
.wm-sub {
  font-family: var(--font-body); font-weight: 600;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--sage); margin-top: .25rem;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  color: var(--bone); text-decoration: none;
  font-size: .93rem; font-weight: 600; letter-spacing: .01em;
  padding-block: .35rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold-deep); }
.nav-cta {
  border: 1px solid rgba(225, 194, 142, .55) !important;
  border-radius: 3px; padding: .4rem .8rem !important;
  font-family: var(--font-mono); font-size: .85rem !important; letter-spacing: .02em;
}
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(225, 194, 142, .5);
  border-radius: 3px; padding: .5rem .6rem; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: var(--gold); content: "";
}
.bars { position: relative; }
.bars::before { position: absolute; top: -6px; }
.bars::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0 0; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-size: .95rem; letter-spacing: .02em; padding: .78rem 1.15rem; border-radius: 3px;
  border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--spruce-deep); }
.btn-gold:hover { background: #ecd2a5; color: var(--spruce-deep); }
.btn-ghost { border-color: rgba(225, 194, 142, .6); color: var(--gold); }
.btn-ghost:hover { background: rgba(225, 194, 142, .12); color: var(--gold); }
.btn-ink { border-color: var(--forest); color: var(--spruce); }
.btn-ink:hover { background: var(--forest); color: var(--bone); }

/* ---------- hero ---------- */
.hero { background: var(--spruce); color: var(--bone); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), rgba(198, 164, 106, 0));
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero-copy h1 { margin: 0 0 1.1rem; }
.brand-name {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.9rem, 2rem + 4.6vw, 5.1rem); color: var(--gold); line-height: .95;
}
.brand-sub {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: clamp(.9rem, .6rem + 1vw, 1.25rem);
  letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-top: .5rem;
}
.lede { font-size: 1.08rem; max-width: 46ch; color: #e7e2d6; }
.cred-list {
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: 1.7rem;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--sage);
}
.cred-list li { position: relative; padding-left: .9rem; }
.cred-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px;
  background: var(--gold-deep); border-radius: 50%;
}
.hero-map { margin: 0; }
.hero-map picture { filter: drop-shadow(14px 18px 22px rgba(0, 0, 0, .45)); }
.hero-map img { margin-inline: auto; width: min(100%, 400px); }
.hero-map figcaption {
  margin-top: .9rem; font-size: .82rem; color: var(--sage); text-align: center;
  font-family: var(--font-mono); letter-spacing: .02em;
}

/* ---------- sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.intro { border-left: 2px solid var(--gold-deep); padding-left: 1.2rem; margin-bottom: 2.5rem; }
.intro-copy { font-size: 1.12rem; max-width: 62ch; margin: 0; }
.about { display: grid; grid-template-columns: minmax(140px, 190px) 1fr; gap: 1.6rem; align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%; border: 1px solid var(--gold-deep); border-radius: 3px;
  filter: drop-shadow(6px 8px 12px rgba(20, 35, 31, .16));
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.card {
  background: var(--paper); border: 1px solid rgba(20, 35, 31, .12);
  border-top: 2px solid var(--gold-deep); border-radius: 3px; padding: 1.5rem 1.4rem 1.3rem;
}
.card h2 { font-size: 1.3rem; margin-bottom: .55rem; }
.card p { font-size: .98rem; margin-bottom: 1rem; }
.more { font-size: .9rem; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.figure { margin: 0; }
.figure img { filter: drop-shadow(10px 14px 18px rgba(20, 35, 31, .18)); margin-inline: auto; width: min(100%, 340px); }
.section-map { background: var(--paper); border-block: var(--rule); }

.band-towns { text-align: center; }
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1rem; margin: .4rem 0 1rem; }
.towns li {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem);
  color: var(--spruce); padding: .1rem .5rem; border-bottom: 2px solid var(--gold);
}
.band-note { color: #4c5a54; max-width: 62ch; margin-inline: auto; font-size: .97rem; }

.contact-band { background: var(--spruce); color: var(--bone); }
.contact-inner h2 { color: var(--gold); }
.contact-inner p { color: #e7e2d6; max-width: 52ch; }
.contact-list { margin: 1.6rem 0 0; display: grid; gap: .45rem; }
.contact-list a {
  color: var(--gold); text-decoration: none; font-size: 1.15rem; font-weight: 600;
  border-bottom: 1px solid rgba(225, 194, 142, .4); width: fit-content;
}
.contact-list a:hover { color: #fff; border-bottom-color: var(--gold); }
.contact-list .muted { color: var(--sage); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; }

/* ---------- inner page headers ---------- */
.page-head { background: var(--spruce); color: var(--bone); padding-block: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); color: var(--gold); margin: 0 0 .4rem; }
.page-head p { color: #e7e2d6; max-width: 62ch; margin: 0; }
.crumbs { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: .9rem; }
.crumbs a { color: var(--sage); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4rem; }
.prose li { margin-bottom: .55rem; padding-left: 1.1rem; position: relative; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; background: var(--gold-deep);
}
.prose .lead { font-size: 1.15rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 1.2rem; }
.steps li { position: relative; counter-increment: step; background: var(--paper); border: 1px solid rgba(20, 35, 31, .1); border-radius: 3px; padding: 1rem 1.2rem 1rem 3.4rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1rem;
  font-family: var(--font-mono); color: var(--gold-deep); font-size: .85rem;
}
.steps h3 { margin: 0 0 .3rem; }
.steps p { margin: 0; font-size: .96rem; }

.faq { border-top: var(--rule); }
.faq details { border-bottom: var(--rule); padding: 1rem 0; }
.faq summary {
  cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  list-style: none; position: relative; padding-right: 1.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; color: var(--gold-deep); font-family: var(--font-mono);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 0; max-width: 66ch; }
.faq-flush { border-top: 0; }

/* ---------- contact page ---------- */
.contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--gap); align-items: start; }
.contact-card { background: var(--spruce); color: var(--bone); border-radius: 3px; padding: 1.7rem 1.5rem 1.4rem; }
.contact-card .eyebrow { color: var(--gold-deep); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .5rem; }
.email {
  color: var(--gold); font-weight: 700; font-size: 1.1rem; word-break: break-all;
  text-decoration: none; border-bottom: 1px solid rgba(225, 194, 142, .4);
}
.email:hover { color: #fff; border-bottom-color: var(--gold); }
.chip {
  background: transparent; border: 1px solid rgba(225, 194, 142, .5); border-radius: 3px;
  color: var(--sage); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .38rem .6rem; cursor: pointer;
}
.chip:hover { color: var(--gold); border-color: var(--gold); }
.tel-line { margin: .2rem 0 0; }
.tel-line a { color: var(--bone); font-size: 1.7rem; font-weight: 700; text-decoration: none; }
.tel-line a:hover { color: var(--gold); }
.lic-block { margin: 1.3rem 0 0; display: grid; gap: .3rem; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--sage); }
.lic-block a { color: var(--gold); }
.contact-card .cta-row { margin-top: 1.3rem; }
.contact-card .note { margin: 1.3rem 0 0; padding-top: 1rem; font-size: .88rem; color: var(--sage); border-top: 1px solid rgba(244, 239, 228, .16); }

/* ---------- service-area map ---------- */
.areamap {
  position: relative; width: min(100%, 480px); margin-inline: auto;
}
.areamap img { width: 100%; }
.areamap picture { filter: drop-shadow(12px 16px 20px rgba(20, 35, 31, .18)); }
.areamarker {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--spruce); border: 3px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(225, 194, 142, .28);
}
.areamarker::after {
  content: attr(data-label); position: absolute; left: 130%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--spruce); white-space: nowrap;
  background: var(--bone); border: 1px solid var(--gold-deep); border-radius: 2px;
  padding: .2rem .4rem; box-shadow: 0 2px 6px rgba(20, 35, 31, .18);
}
.areamarker.pulse { animation: pulse 3s ease-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(225, 194, 142, .28); }
  50% { box-shadow: 0 0 0 10px rgba(225, 194, 142, .12); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .areamarker.pulse { animation: none; }
  .btn:hover { transform: none; }
  .faq summary::after { transition: none; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--spruce-deep); color: var(--bone); position: relative;
  padding-top: clamp(2rem, 5vw, 3.5rem); overflow: hidden;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--gap); position: relative; z-index: 1; }
.f-brand .wm-name { font-family: var(--font-display); color: var(--gold); font-size: 1.4rem; margin: 0; }
.f-brand .wm-sub { display: inline; font-family: var(--font-body); font-size: .68rem; letter-spacing: .28em; color: var(--sage); text-transform: uppercase; margin: 0; }
.f-tag { color: #d8d3c7; font-size: .92rem; margin: .5rem 0 1rem; }
.f-lic { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: var(--sage); line-height: 1.8; }
.f-nav { display: grid; gap: .5rem; align-content: start; }
.f-nav a, .f-contact a { color: var(--bone); text-decoration: none; font-size: .95rem; }
.f-nav a:hover, .f-contact a:hover { color: var(--gold); text-decoration: underline; }
.f-contact { display: grid; gap: .5rem; align-content: start; }
.f-contact .muted { color: var(--sage); font-size: .88rem; margin: .4rem 0 0; }
.footer-rule {
  border-top: 1px solid rgba(225, 194, 142, .22); margin-top: 2.2rem; padding-top: 1.1rem;
  font-size: .8rem; color: var(--sage); position: relative; z-index: 1;
}
.footer-rule p { margin: 0; }
.footer-mark {
  position: absolute; right: -60px; bottom: -70px; width: 320px; opacity: .07; z-index: 0; pointer-events: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .contact-page { grid-template-columns: 1fr; }
  .hero-map { order: -1; }
  .hero-map img { width: min(72vw, 330px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 1rem; }
  .about-photo img { width: min(42vw, 190px); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 62px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--spruce-deep); padding: .5rem clamp(1.1rem, 4vw, 2.5rem) 1rem;
    border-bottom: 1px solid rgba(225, 194, 142, .3);
    display: none;
  }
  .site-nav a { width: 100%; padding: .7rem 0; border-bottom: 1px solid rgba(244, 239, 228, .08); }
  .nav-cta { width: auto !important; margin-top: .6rem; }
  .site-nav.is-open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
}
