/* 2239barbermill.com
   Palette: eXp structural colors + Hooke personal accents.
   Gold #b88128 is for fills and large type only; small gold text uses
   --gold-text, which meets contrast on white and light grey. */

:root {
  --navy: #0C0F24;
  --black: #000000;
  --mist: #EEEEEE;
  --white: #FFFFFF;
  --gold: #b88128;
  --gold-light: #d8bd85;
  --gold-text: #8a5f17;
  --teal: #2e6f5f;
  --maroon: #9c0b44;
  --muted: #5a5d70;
  --rule: #d9d9de;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --maxw: 1180px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
sup { font-size: .6em; line-height: 0; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--navy); color: var(--white);
  padding: .6rem 1rem; z-index: 100; text-decoration: none;
}
.skip:focus { top: .75rem; }

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

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--navy); }
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.75rem);
  line-height: .92;
  letter-spacing: -.015em;
}
h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 22ch;
}
h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: .6rem; }
p { margin: 0 0 1rem; }
.col-text p, .section-intro { max-width: 60ch; }
.section-intro { font-size: 1.125rem; margin-bottom: 2.5rem; }
.fine { font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.aside { font-size: .92rem; color: var(--muted); margin-top: 1.5rem; }

.text-link {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: var(--gold-light);
  text-underline-offset: 3px;
  font-weight: 500;
}
.text-link:hover { text-decoration-color: var(--gold-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-small { padding: .6rem 1.1rem; font-size: .85rem; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--rule);
}
.masthead-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.site-nav { display: flex; gap: 1.6rem; margin-left: auto; font-size: .88rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--navy); }
.site-nav a:hover { color: var(--gold-text); }

/* Brokerage mark: official eXp SVG, unaltered; plain firm name if missing.
   eXp asks for clear space about the height of the logo's lowercase "e"
   (roughly 61% of the logo's height). The padding/margins here provide it:
   header logo 36px tall -> 22px clear; footer logo 44px -> 28px clear. */
.brokerage {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: 10px 22px 10px 0; flex-shrink: 0;
}
.brokerage .logo-img { display: none; height: 36px; width: auto; }
.brokerage.has-logo .logo-img { display: block; }
.brokerage.has-logo .logo-text { display: none; }
.logo-text { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.brokerage-footer .logo-text { color: var(--white); }

/* ---------- Photo slots ---------- */
.shot {
  position: relative; margin: 0; overflow: hidden;
  background-color: #e6e6ea;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(12, 15, 36, .035) 14px 15px);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-label {
  display: none;
  position: absolute; inset: 0;
  align-items: center; justify-content: center; text-align: center;
  padding: 1.25rem; font-size: .82rem; line-height: 1.5; color: var(--muted);
}
.shot-label code { font-size: .78rem; color: var(--gold-text); }
.shot.missing img { visibility: hidden; }
.shot.missing .shot-label { display: flex; flex-direction: column; }

.shot-hero { aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.shot-tall { aspect-ratio: 4 / 5; }
.shot-band { aspect-ratio: 24 / 10; width: 100%; margin-bottom: var(--section-y); }
.shot-plan { aspect-ratio: 14 / 11; background-color: var(--white); border: 1px solid var(--rule); }
.shot-plan img { object-fit: contain; }
.plan-full { background: var(--white); aspect-ratio: 1848 / 1716; max-width: 860px; margin: clamp(1.5rem, 3vw, 2.5rem) auto 0; padding: clamp(.5rem, 2vw, 1.25rem); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section.tint { background: var(--mist); }
.grounds { padding-top: 0; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.two-col-wide-right { grid-template-columns: 5fr 7fr; align-items: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); }
.pair .shot:not(.shot-plan) { aspect-ratio: 4 / 3; }
.grounds .pair { margin-top: clamp(3rem, 6vw, 5rem); }
.venue { margin-top: clamp(3rem, 6vw, 5rem); }
.venue-lede { max-width: 62ch; margin: .6rem 0 0; }
.grounds .venue .pair { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.photo-credit {
  position: absolute; left: 0; bottom: 0; margin: 0;
  padding: .3rem .65rem; font-size: .72rem; line-height: 1.4;
  color: var(--white); background: rgba(12, 15, 36, .6);
}
.photo-credit a { color: var(--white); text-underline-offset: 2px; }
.photo-credits a { color: inherit; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.75rem, 4vw, 3.25rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .85rem; font-weight: 500; margin-bottom: 1.4rem;
}
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--maroon); }
.status[data-state="under-contract"] .status-dot { background: var(--teal); }
.status[data-state="sold"] .status-dot { background: var(--navy); }
.hero-place {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin: .6rem 0 0;
}
.hero-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.25rem 4rem; flex-wrap: wrap; margin-top: clamp(1.25rem, 2.5vw, 2rem);
}
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 36ch; margin: 0; }
.hero-price { text-align: right; }
.price {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; margin: 0 0 .4rem;
}
.price-note { font-size: .85rem; color: var(--muted); margin: 0; max-width: 30ch; margin-left: auto; }
.glance {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.glance-card { border-top: 4px solid var(--navy); padding-top: 1.1rem; }
.glance-up { border-color: var(--gold-light); }
.glance-main { border-color: var(--teal); }
.glance-out { border-color: var(--rule); }
.glance-label {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold-text); margin: 0 0 .35rem;
}
.glance-figure { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; line-height: 1.1; margin: 0 0 .7rem; }
.glance-figure span { font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--muted); }
.glance ul { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.glance li { padding: .32rem 0; border-bottom: 1px solid var(--rule); }
.glance li:last-child { border-bottom: 0; }

/* ---------- Two floors ---------- */
.elevation { width: 100%; max-width: 880px; height: auto; display: block; margin: 0 auto; }
.elevation .line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.elevation .thin { stroke-width: 1.25; }
.elevation .zone-up { fill: var(--gold-light); opacity: .55; }
.elevation .zone-main { fill: var(--teal); opacity: .16; }
.floor-keys {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.floor-key { border-top: 4px solid; padding-top: 1.25rem; }
.key-up { border-color: var(--gold-light); }
.key-main { border-color: var(--teal); }
.capacity { font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; border-left: 1px solid var(--gold-light); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: calc(-2rem - 5px); top: .7rem;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}
.timeline li:first-child::before { background: var(--maroon); }
.t-year { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; line-height: 1.2; margin-bottom: .35rem; }
.t-year span { font-style: italic; font-weight: 500; color: var(--muted); font-size: 1.25rem; }
.timeline p:last-child { margin-bottom: 0; max-width: 62ch; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 23vw, 300px);
  gap: clamp(.6rem, 1.5vw, 1rem);
}
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery { grid-auto-flow: dense; }
.pair.trio { grid-template-columns: repeat(3, 1fr); }
.gallery img[src$="main-hall.jpg"] { object-position: 50% 30%; }

/* ---------- Grounds ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.feature-list li:first-child { border-top: 1px solid var(--rule); }
.feature-list strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* ---------- Details ---------- */
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 4rem); }
.facts { margin: 0; }
.facts > div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 1rem;
  padding: .85rem 0; border-bottom: 1px solid var(--rule);
}
.facts > div[hidden] { display: none; }
.facts dt { font-size: .85rem; font-weight: 500; color: var(--muted); padding-top: .15rem; }
.facts dd { margin: 0; }
.conveys {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.conveys p { margin: 0; }

/* ---------- Location ---------- */
.map-frame { aspect-ratio: 4 / 3; background: #e6e6ea; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contact ---------- */
.contact .two-col { align-items: start; }
.agent { display: flex; gap: 1.25rem; align-items: center; margin-top: 2rem; }
.agent p { margin: 0; }
.shot-agent { width: 116px; height: 116px; flex-shrink: 0; border-radius: 50%; }
.shot-agent img { object-position: center top; }
.shot-agent .shot-label { font-size: 0; }
.shot-agent .shot-label code { display: none; }
.agent-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.agent-firm { color: var(--muted); font-size: .92rem; margin-bottom: .4rem !important; }

.showing-form {
  background: var(--mist); border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.showing-form h3 { margin-bottom: 1.25rem; }
.section.tint .showing-form { background: var(--white); }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .35rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--navy);
  padding: .7rem .8rem; border: 1px solid #b9bac4; border-radius: 2px; background: var(--white);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--maroon); }
.check { display: flex !important; gap: .6rem; align-items: center; font-weight: 400 !important; font-size: .95rem !important; margin-bottom: .35rem !important; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-wrap { margin: 1rem 0 .25rem; min-height: 0; }
.ts-wrap:empty { margin: 0; }
.form-status { font-size: .92rem; margin: 1rem 0 0; min-height: 1.4em; }
.form-status.ok { color: var(--teal); font-weight: 500; }
.form-status.err { color: var(--maroon); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .9rem; }
.site-footer a { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2rem 3rem; }
.footer-firm .brokerage { padding: 0; margin-bottom: 28px; }
.footer-firm .brokerage .logo-img { height: 44px; }
.footer-social { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin-top: 1.25rem; }
.footer-social-label { flex-basis: 100%; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.footer-social a { text-decoration: none; border-bottom: 1px solid rgba(216, 189, 133, .45); padding: .35rem 0 .1rem; }
.footer-social a:hover, .footer-social a:focus-visible { border-bottom-color: currentColor; }
.footer-eho { display: flex; gap: 1rem; align-items: flex-start; }
.footer-eho img { flex-shrink: 0; }
.footer-legal {
  margin-top: 2.5rem; padding-top: 1.5rem;
  background: linear-gradient(rgba(255, 255, 255, .15), rgba(255, 255, 255, .15)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: .78rem; color: rgba(255, 255, 255, .72);
}
.footer-legal p { max-width: 90ch; }

/* ---------- Photo viewer ---------- */
.zoomable img { cursor: zoom-in; }
.shot img:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--navy); color: var(--white);
}
.lightbox::backdrop { background: var(--navy); }
.lb-figure {
  margin: 0; height: 100%; box-sizing: border-box; padding: 64px 72px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lb-img { max-width: 100%; max-height: calc(100% - 3.5rem); object-fit: contain; }
.lb-caption { margin-top: 1rem; font-size: .92rem; color: rgba(255, 255, 255, .85); text-align: center; max-width: 70ch; }
.lb-credit { margin: .35rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .7); text-align: center; }
.lb-credit a { color: var(--white); text-underline-offset: 2px; }
.lb-count { position: absolute; top: 24px; left: 24px; margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.lb-btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0 0 4px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white); font: 400 2rem/1 var(--sans); cursor: pointer;
}
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 680px) {
  .lb-figure { padding: 64px 10px 92px; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .masthead-inner .btn { margin-left: auto; }
  .two-col, .two-col-wide-right, .details-grid, .floor-keys, .conveys { grid-template-columns: 1fr; }
  .glance { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-eho { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { padding-bottom: 76px; }
  .masthead-inner .btn { display: none; }
  .hero-price { text-align: left; }
  .price-note { margin-left: 0; }
  .glance { grid-template-columns: 1fr; }
  /* Phones open on the house: photo above the address */
  .hero { display: flex; flex-direction: column; padding-top: 0; }
  .shot-hero { aspect-ratio: 4 / 3; order: -1; margin-top: 0; }
  .hero-text { padding-top: 1.75rem; }
  .shot-band { aspect-ratio: 4 / 3; }
  .pair, .pair.trio, .field-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .facts > div { grid-template-columns: 1fr; gap: .15rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 2fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--rule);
  }
}

@media print {
  .masthead, .mobile-bar, .showing-form, .map-frame { display: none; }
  .section { padding: 2rem 0; }
}
