/* John Forberger | jforberger.com */
:root {
  --navy: #154143;
  --navy-deep: #0f3032;
  --cream: #FFFDEF;
  --yellow: #FFF3B1;
  --clay: #B9471D;
  --ink: #1B1B1B;
  --ink-2: #3D3D3D;
  --line: #E8E2CF;
  --white: #FFFFFF;
  --tint: #D9E2DF;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Century Gothic', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--clay); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; line-height: 1.08; }
p { margin: 0; }
table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--cream); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; font: 600 16px/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #fff8cf; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-deep); color: var(--cream); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; padding-top: 14px; padding-bottom: 6px; }
.site-header .nav { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid var(--line); padding-top: 4px; }
.header-cta { color: var(--cream) !important; padding: 10px 18px; min-height: 44px; }
.brand { display: flex; align-items: center; gap: 18px; }
.brand img { height: 60px; width: auto; }
.brand img.logo-h, .foot-id img.logo-h { height: 40px; width: auto; }
.brand .phone { font-weight: 600; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 500; }
.nav { align-items: center; }
.nav a { text-decoration: none; padding: 8px 0; }

/* Press strip */
.press { background: var(--white); border-bottom: 1px solid var(--line); }
.press-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; }
.press-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.press-list li { font-family: var(--serif); font-size: 22px; color: var(--ink-2); letter-spacing: 0.01em; }

/* Off-market card */
.card-media.om-media { background: var(--navy); display: flex; align-items: center; justify-content: center; }
.om-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 24px; }
.om-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.om-title { font-family: var(--serif); font-size: 32px; line-height: 1.1; color: var(--cream); }
.om-sub { color: var(--cream); font-size: 15px; }

/* Notable sales */
.sold-card { background: var(--navy); color: var(--cream); padding: 26px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.sold-card .badge-sold { position: static; align-self: flex-start; background: var(--yellow); color: var(--navy); margin-bottom: 8px; }
.sold-price { font-family: var(--serif); font-size: 38px; color: var(--yellow); line-height: 1.1; }
.sold-card strong { font-size: 17px; }
.sold-facts { font-size: 14px; opacity: 0.9; }
.sold-role { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); margin-top: 6px; }

/* Newsletter cards */
.nl-card { text-decoration: none; color: var(--ink); }
.nl-card:hover .nl-title { color: var(--clay); }
.nl-media { aspect-ratio: 16 / 10; }
.nl-title { font-size: 17px; line-height: 1.35; }

/* Home valuation */
.val-hero { background: var(--navy); color: var(--cream); }
.val-grid { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 72px; align-items: flex-start; }
.val-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.val-copy h1 { color: var(--cream); font-size: clamp(40px, 5vw, 60px); }
.val-copy h1 span { color: var(--yellow); }
.val-copy p { font-size: 18px; max-width: 560px; }
.val-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.val-checks li::before { content: "\2713"; color: var(--yellow); font-weight: 700; margin-right: 10px; }
.val-instant { border-top: 1px solid rgba(255,253,239,0.25); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.val-instant a { color: var(--yellow); font-weight: 600; }
.val-form { flex: 1 1 400px; background: var(--navy-deep); border: 1px solid rgba(255,253,239,0.15); }
.val-steps .tile { min-height: 160px; }

/* Hero */
.hero { position: relative; color: var(--cream); background: var(--navy); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,65,67,0.15) 0%, rgba(21,65,67,0.35) 40%, rgba(21,65,67,0.92) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 240px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { color: var(--cream); font-size: clamp(38px, 5.6vw, 66px); max-width: 920px; }
.hero h1 span { color: var(--yellow); }
.hero p { max-width: 560px; }
.hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; padding-top: 150px; padding-bottom: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; padding-bottom: 80px; }
.hero-photo { margin: 0; position: relative; align-self: end; }
.hero-photo img { height: 540px; width: auto; filter: drop-shadow(0 10px 30px rgba(15,48,50,0.45)); }
.hero-photo figcaption { position: absolute; right: 0; bottom: 18px; background: var(--navy); color: var(--cream); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; padding: 6px 12px; }
.tagline { font-size: 14px; letter-spacing: 0.14em; color: var(--yellow); }

/* Sections */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.section h2 { font-size: clamp(32px, 4vw, 46px); }
.band-yellow { background: var(--yellow); }
.band-navy { background: var(--navy); color: var(--cream); }
.band-navy h2 { color: var(--cream); }
.band-navy h2 span { color: var(--yellow); }
.band-navy a { color: var(--yellow); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; padding: 6px 10px; }
.badge-sale { background: var(--navy); color: var(--cream); }
.badge-contract { background: var(--yellow); color: var(--navy); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-family: var(--serif); font-size: 30px; color: var(--navy); }
.card-body .addr { font-weight: 600; }
.card-body .more { margin-top: auto; padding-top: 10px; font-weight: 600; }
.tile { background: var(--white); border: 1px solid var(--line); padding: 20px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.tile strong { font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--navy); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats > div { background: var(--white); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stats .num { font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1.1; }
.stats .lbl { font-size: 14px; }
.stats .sub { font-size: 13px; color: var(--ink-2); }
.on-cream > div { background: var(--cream); }

/* Report */
.report { display: flex; flex-wrap: wrap; gap: 40px; }
.report-main { flex: 1 1 520px; min-width: 0; }
.report-card { background: var(--white); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.report-card h3 { font-size: 28px; }
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.data th, .data td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.data th:first-child, .data td:first-child { text-align: left; padding-left: 0; }
.data thead th { font-weight: 600; }
.note { font-size: 13px; font-style: italic; color: var(--ink-2); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-dark { background: var(--navy); color: var(--cream); padding: 30px; }
.form label { font-size: 14px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px; font: 16px var(--sans); border: 1px solid transparent; background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; }
.form .field { display: flex; flex-direction: column; gap: 6px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.form .consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; min-height: 1.2em; }
.form-dark .btn { border: 0; }

/* Video */
.video { background: var(--white); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(21,65,67,0) 45%, rgba(21,65,67,0.85) 100%); }
.video-frame .tag { position: absolute; left: 16px; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--yellow); }
.video-meta { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.video-meta strong { font-size: 17px; line-height: 1.35; }
.video:hover .play svg circle { fill: rgba(21,65,67,0.8); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about-photo { flex: 0 1 340px; background: var(--navy); display: flex; justify-content: center; align-items: flex-end; height: 420px; overflow: hidden; }
.about-photo img { height: 400px; width: auto; }
.about-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 16px; font-size: 18px; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; }
.contact > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 14px; }
.contact .form { flex: 1 1 440px; }
.contact-lines { line-height: 1.75; }

/* Instagram */
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.ig-grid .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; background: var(--white); border: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; }
.ig-grid blockquote.instagram-media { padding: 20px; font-weight: 600; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Listing page */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 230px 230px; gap: 10px; }
.gallery img, .gallery .ph { width: 100%; height: 100%; object-fit: cover; }
.gallery .main { grid-column: span 2; grid-row: span 2; }
.gallery-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 460px; }
.gallery-2 .main { grid-column: auto; grid-row: auto; }
.gallery .ph { background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--navy); text-align: center; padding: 8px; }
.listing { display: flex; flex-wrap: wrap; gap: 48px; }
.listing-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.listing-main h1 { font-size: clamp(38px, 5vw, 54px); }
.listing-main h1 small { display: block; font-size: 0.55em; color: var(--ink); margin-top: 6px; }
.listing-side { flex: 1 1 340px; display: flex; flex-direction: column; gap: 16px; align-self: flex-start; }
.status { display: inline-block; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 600; padding: 6px 12px; }
.status.sale { background: var(--navy); color: var(--cream); }
.facts { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: 16px; }
.facts th, .facts td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.facts th { font-weight: 500; color: var(--ink-2); width: 44%; }
.agent-card { background: var(--white); border: 1px solid var(--line); padding: 20px; display: flex; gap: 16px; align-items: center; font-size: 14px; line-height: 1.55; }
.agent-card .pic { width: 76px; height: 76px; flex: 0 0 76px; background: var(--navy); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.agent-card .pic img { height: 76px; width: auto; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq { background: var(--white); border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--clay); }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 20px 18px; color: var(--ink-2); }

/* Legal pages */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 4.5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 26px; margin-top: 32px; margin-bottom: 10px; }
.legal p, .legal li { margin-bottom: 10px; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.foot-id { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.foot-id img { height: 56px; width: auto; }
.foot-id strong { color: var(--ink); display: block; }
.eho { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.disclaimer { font-size: 12px; letter-spacing: 0.02em; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero .wrap { padding-top: 150px; padding-bottom: 56px; }
  .hero .hero-grid { grid-template-columns: 1fr; padding-top: 120px; padding-bottom: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo { justify-self: center; }
  .hero-photo img { height: 320px; }
  .brand img { height: 48px; }
  .brand img.logo-h { height: 30px; }
  .press-list li { font-size: 18px; }
  .site-header .wrap { grid-template-columns: 1fr; }
  .header-cta { justify-content: center; }
  .site-header .nav { grid-row: 3; flex-wrap: nowrap; overflow-x: auto; gap: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .site-header .nav a { white-space: nowrap; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 220px 140px 140px; }
  .gallery .main { grid-column: span 2; grid-row: span 1; }
  .gallery-2 { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .gallery-2 .main { grid-column: auto; }
  .gallery-2 img { height: auto; aspect-ratio: 16 / 10; }
  .about-photo { height: 360px; flex-basis: 100%; }
  .about-photo img { height: 340px; }
  .form-dark { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
