/* Self-hosted fonts (SEO/AEO plan Phase 0) — latin subsets */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("fonts/playfair-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("fonts/inter-700.woff2") format("woff2"); }

/* ==========================================================================
   SarahJLarkin.com — Phase 1 prototype design system
   Palette carried over from the project brief: charcoal / gold / cream.
   ========================================================================== */

:root {
  --charcoal: #1f2023;
  --charcoal-2: #2a2b30;
  --ink: #23242a;
  --body: #3c3d43;
  --muted: #6c6d74;
  --gold: #b08a4a;
  --gold-dark: #8a6830;
  --gold-light: #d9b875;
  --cream: #f5f2ec;
  --cream-2: #efeade;
  --paper: #fbfaf7;
  --line: #e4e0d6;
  --white: #ffffff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(31, 32, 35, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: var(--white);
  padding: 10px 18px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: var(--white); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ type */

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold-light); }

.lead { font-size: 18px; color: var(--muted); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.btn-primary { background: var(--gold); color: #16130c; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: #16130c; }
.btn-dark { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--charcoal-2); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-block { width: 100%; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 24px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: block; line-height: 1.2; }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: var(--ink); letter-spacing: 0.02em;
}
.brand-sub {
  font-size: 10px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-dark);
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink);
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--gold-dark); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold-dark); }
.main-nav a.nav-phone { color: var(--white); letter-spacing: 0.06em; padding: 12px 18px; border-bottom: 0; white-space: nowrap; }
.main-nav a.nav-phone:hover { color: var(--white); background: var(--charcoal-2); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 8px; color: var(--ink);
}

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

.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 96px 24px 88px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  max-width: 17ch;
  margin-bottom: 20px;
}
.hero .hero-sub {
  font-size: 18px; color: #cfd0d4; max-width: 54ch; margin-bottom: 34px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.contact-line { font-size: 14px; color: #b9bac0; }
.contact-line a { color: var(--gold-light); font-weight: 600; }
.contact-line a:hover { color: var(--white); }

/* -------------------------------------------------------------- sections */

.section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--charcoal); color: #c9cace; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* --------------------------------------------------------- photo frames */

.ph-frame {
  position: relative;
  background: linear-gradient(160deg, var(--cream-2) 0%, #e6dfd0 55%, #ddd3bf 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph-frame::after {
  content: attr(data-label);
  position: absolute; bottom: 10px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #5f5540;
}
.ph-frame svg { width: 34%; max-width: 150px; opacity: 0.5; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-45 { aspect-ratio: 4 / 5; }

/* --------------------------------------------------- featured listing */

.listing-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.listing-card .ph-frame { border: 0; border-radius: 0; min-height: 340px; }
.listing-card-body { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.listing-price { font-family: var(--serif); font-size: 30px; color: var(--ink); margin: 4px 0 2px; }
.listing-addr { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--cream); border: 1px solid var(--line);
  color: var(--ink); padding: 6px 12px; border-radius: 999px;
}
.badge-sample {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--charcoal); color: var(--gold-light);
  padding: 5px 10px; border-radius: 3px;
}

/* ------------------------------------------------------------ checklist */

.check-list { list-style: none; margin-top: 18px; }
.check-list li {
  position: relative; padding: 7px 0 7px 32px; color: var(--body);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z"/></svg>') center / contain no-repeat;
}

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

.exp-card {
  background: var(--charcoal-2);
  border: 1px solid #3a3b41;
  border-radius: var(--radius);
  padding: 30px 28px;
}
.exp-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--gold-light); }
.exp-card p { font-size: 14.5px; color: #b9bac0; }

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

.proof-card {
  border: 2px dashed #d8d0bd;
  border-radius: var(--radius);
  padding: 34px 30px;
  color: var(--muted);
  font-size: 14.5px;
  background: var(--paper);
}
.proof-card strong { color: var(--ink); display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 17px; }

/* --------------------------------------------------------------- banners */

.cta-band { background: var(--charcoal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.cta-band p { color: #b9bac0; max-width: 52ch; margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }

/* --------------------------------------------------------------- listing */

.listing-hero { padding: 56px 0 44px; }
.listing-hero .eyebrow { margin-bottom: 8px; }
.listing-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 8px 0 6px; }
.listing-hero .price { font-family: var(--serif); font-size: 30px; color: var(--gold-dark); margin: 10px 0 4px; }
.headline { font-size: 19px; color: var(--muted); font-style: italic; margin-top: 10px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .g-item { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery .g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery .ph-frame { height: 100%; }
.gallery .g-item:nth-child(even) .ph-frame { background: linear-gradient(160deg, #ece5d6 0%, #e0d6c0 100%); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(24, 24, 27, 0.94);
  display: none;
  align-items: center; justify-content: center;
  padding: 5vh 6vw;
}
.lightbox.open { display: flex; }
.lightbox figure { width: min(920px, 100%); }
.lightbox .ph-frame { aspect-ratio: 3 / 2; background: linear-gradient(160deg, #3a382f, #57503c); }
.lightbox .ph-frame::after { color: #cbb98c; }
.lightbox figcaption { color: #c9cace; font-size: 13px; margin-top: 12px; text-align: center; }
.lb-btn {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 34px; line-height: 1; cursor: pointer; padding: 14px;
}
.lb-close { top: 18px; right: 22px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.video-frame {
  position: relative;
  background: var(--charcoal);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.video-frame .play {
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--gold); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-frame .play svg { width: 26px; margin-left: 4px; }
.video-note {
  position: absolute; bottom: 14px; left: 16px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #9d9ea5; font-weight: 600;
}

.prose { max-width: 68ch; }
.prose p { margin-bottom: 18px; font-size: 16.5px; }

.hl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }

.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 13px 16px; }
.facts-table th {
  width: 44%;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark);
  background: var(--cream);
}
.facts-table td { background: var(--paper); color: var(--ink); }
.facts-table tr { border-bottom: 3px solid var(--white); }

.map-frame {
  background: linear-gradient(140deg, var(--cream) 0%, var(--cream-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 21 / 9;
  display: flex; align-items: center; justify-content: center;
  color: #9a8a63; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.agent-card {
  display: flex; gap: 26px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow);
}
.agent-card .ph-frame { width: 110px; min-width: 110px; aspect-ratio: 1; border-radius: 50%; }
.agent-card .ph-frame::after { display: none; }
.agent-name { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.agent-meta { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.share-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.share-note { font-size: 13px; color: var(--muted); }

/* ----------------------------------------------------------------- forms */

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15px;
  padding: 13px 14px; border: 1.5px solid #d5d1c6;
  border-radius: 4px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(176, 138, 74, 0.35); border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none;
  background: #eef4ea; border: 1px solid #c4d8ba; color: #2f4d25;
  border-radius: 4px; padding: 16px 18px; font-size: 14.5px; margin-top: 16px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  background: #f9ecea; border: 1px solid #dfb4ac; color: #7a2e20;
  border-radius: 4px; padding: 16px 18px; font-size: 14.5px; margin-top: 16px;
}
.form-error.show { display: block; }
/* spam honeypot — visually removed, still in the form payload */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ------------------------------------------------------ real media */

.g-photo, .card-photo, .frame-photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lb-photo { width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.video-embed { width: 100%; height: 100%; border: 0; }

/* ------------------------------------------- floor plans / map / calc */

.floor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.floor-grid .g-item {
  border: 0; padding: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
}
.floor-grid .ph-frame, .floor-grid img { height: 100%; width: 100%; }

.map-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 30px;
}
.map-addr { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 16px; }

.calc-out {
  font-family: var(--serif); font-size: 24px; color: var(--ink);
  margin: 18px 0 4px; min-height: 1.4em;
}

/* -------------------------------------------- print: property sheet */
/* "Print property sheet" on listing pages: strips chrome and interactive
   blocks, keeps address, price, top photos, bio, facts, agent identity
   and the EHO/DRE legal line. */
@media print {
  .skip-link, .main-nav, .nav-toggle, .mobile-cta, .cta-band, .form-card,
  .lightbox, .share-row, .no-print, .btn, .cta-row, .footer-grid,
  .share-note, .map-frame { display: none !important; }
  body { background: #fff; color: #111; }
  .site-header { position: static; box-shadow: none; }
  .section { padding: 16px 0; }
  .split { display: block; }
  .split > * + * { margin-top: 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .g-item:nth-child(1) { grid-column: auto; grid-row: auto; }
  .gallery .g-item:nth-child(n+4) { display: none; }
  .facts-table { page-break-inside: avoid; }
  .agent-card { box-shadow: none; page-break-inside: avoid; }
  .listing-hero, .section-dark, .section-cream, .site-footer { background: #fff !important; }
  .listing-hero, .listing-hero h1, .listing-hero .price, .listing-hero .headline,
  .section-dark, .section-dark h2, .section-dark h3, .section-dark p,
  .site-footer, .site-footer * { color: #111 !important; }
  a { color: inherit; text-decoration: none; }
}

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

.site-footer { background: var(--charcoal); color: #b9bac0; padding: 64px 0 96px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.footer-brand .brand-name { color: var(--white); font-size: 22px; }
.footer-brand .brand-sub { color: var(--gold-light); }
.footer-tag { font-family: var(--serif); font-style: italic; color: #cfd0d4; margin: 14px 0 0; }
.site-footer h3 {
  color: var(--white); font-family: var(--sans); font-size: 11px;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer a { color: #cfd0d4; }
.site-footer a:hover { color: var(--gold-light); }
.footer-list { list-style: none; }
.footer-list li { padding: 4px 0; font-size: 14.5px; }
.footer-legal {
  border-top: 1px solid #3a3b41; margin-top: 44px; padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  justify-content: space-between; font-size: 12.5px; color: #8d8e95;
}
.eho { display: flex; align-items: center; gap: 10px; }
.eho svg { width: 34px; height: 34px; }
.proto-note { font-size: 11px; color: #8d8e95; }

/* ------------------------------------------------------- mobile call bar */

.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--charcoal); border-top: 1px solid #3a3b41;
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 10px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.mobile-cta .m-call { background: var(--gold); color: #16130c; }
.mobile-cta .m-text { color: var(--white); }

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

@media (max-width: 900px) {
  .split, .grid-3, .grid-2, .footer-grid, .listing-card, .hl-grid,
  .form-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .hero-inner { padding: 72px 24px 64px; }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    display: none; padding: 10px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 26px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .nav-phone-wrap { display: none; }
  .mobile-cta { display: grid; }
  body { padding-bottom: 54px; }
}
