/* Golden B Property Management: public site */
:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --ink: oklch(0.21 0.025 160);
  --muted: oklch(0.42 0.02 160);
  --line: oklch(0.9 0.012 160);
  --surface: oklch(0.972 0.008 160);
  --green: oklch(0.36 0.075 160);
  --green-deep: oklch(0.29 0.06 160);
  --on-green: oklch(0.98 0.008 160);
  --on-green-muted: oklch(0.87 0.03 160);
  --gold: oklch(0.82 0.12 84);
  --gold-hover: oklch(0.86 0.12 87);
  --gold-ink: oklch(0.25 0.05 160);
  --focus: oklch(0.62 0.16 255);
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
  --z-header: 10;
  --z-sticky: 20;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 0.5rem; z-index: 100; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.15; }
.brand-mark {
  flex: none; width: 2.35rem; height: 2.35rem; border-radius: 0.65rem;
  display: grid; place-items: center; background: var(--green); color: var(--gold);
  font: 400 1.4rem/1 var(--serif); padding-top: 0.12rem;
}
.header-link {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 0.7rem;
  background: var(--green); color: var(--on-green); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.header-link:hover { background: var(--green-deep); }

/* Buttons */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.6rem; padding: 0 1.6rem; border-radius: 0.9rem;
  background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 1.1rem; text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cta:hover { background: var(--gold-hover); }
.cta:active { transform: translateY(1px); }
.cta svg { width: 1.2rem; height: 1.2rem; transition: transform 0.25s var(--ease); }
.cta:hover svg { transform: translateX(3px); }
.cta.green { background: var(--green); color: var(--on-green); }
.cta.green:hover { background: var(--green-deep); }
.text-link { font-weight: 700; color: inherit; }

/* Hero */
.hero { display: grid; background: var(--green); color: var(--on-green); }
.hero-media { position: relative; overflow: hidden; background: var(--green-deep); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media.art { display: grid; place-items: center; padding: 2rem 1.5rem 0; color: var(--gold); }
.hero-media.art svg { width: min(100%, 30rem); height: auto; }
.hero-panel { display: grid; gap: 1.1rem; align-content: center; padding: 2rem 1rem 2.6rem; }
.hero-town { color: var(--on-green-muted); font-weight: 700; }
.hero h1 { font-size: clamp(2.15rem, 1.5rem + 2.4vw, 3.15rem); color: var(--on-green); }
.hero-summary { font-size: 1.15rem; color: var(--on-green-muted); max-width: 34ch; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.2rem 0.6rem; margin-top: 0.35rem; }
.price strong { font: 400 clamp(2.1rem, 1.7rem + 1.6vw, 2.8rem)/1 var(--serif); color: var(--gold); }
.price span { color: var(--on-green-muted); font-size: 1.1rem; }
.hero-when { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin-top: 0.6rem; }
.hero-actions .text-link { color: var(--on-green); }
.hero-note { font-size: 0.95rem; color: var(--on-green-muted); }
.status-flag {
  display: inline-flex; align-items: center; min-height: 2.2rem; padding: 0 0.9rem; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink); font-weight: 800; justify-self: start;
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); min-height: min(80vh, 46rem); }
  .hero-media { aspect-ratio: auto; height: 100%; }
  .hero-media.art { padding: 3rem; }
  .hero-panel { padding: 3.5rem clamp(2rem, 4vw, 4.5rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 1.2s var(--ease); }
  .hero-panel > * { animation: lift 0.7s var(--ease) both; }
  .hero-panel > :nth-child(2) { animation-delay: 0.05s; }
  .hero-panel > :nth-child(3) { animation-delay: 0.1s; }
  .hero-panel > :nth-child(n+4) { animation-delay: 0.15s; }
  @keyframes settle { from { transform: scale(1.04); } }
  @keyframes lift { from { opacity: 0.25; transform: translateY(12px); } }
}

/* Key facts */
.facts { list-style: none; padding: 1.3rem 0; display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; border-bottom: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; }
.facts li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px oklch(0.82 0.12 84 / 0.25); }

/* Sections */
.section { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-tight { padding-top: 0; }
.section-flush { padding-bottom: 0; }
.not-found { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 1.25rem; }
.not-found h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section h2 { font-size: clamp(1.8rem, 1.3rem + 1.9vw, 2.6rem); margin-bottom: 0.9rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Photos */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.5rem; }
.gallery button {
  display: block; padding: 0; border: 0; border-radius: 0.8rem; overflow: hidden;
  background: var(--surface); cursor: zoom-in; aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery button:hover img { transform: scale(1.035); }
.gallery button:first-child { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery button:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* Details */
.details { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .details { grid-template-columns: 1.15fr 1fr; gap: 4.5rem; } }
.about p + p { margin-top: 1rem; }
.lists { display: grid; gap: 1.75rem; align-content: start; }
@media (min-width: 30rem) { .lists { grid-template-columns: 1fr 1fr; } }
.lists h3, .place h3 { font: 800 1rem/1.3 var(--sans); color: var(--muted); margin-bottom: 0.55rem; }
.lists ul { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.lists li { display: grid; grid-template-columns: 1.3rem 1fr; gap: 0.35rem; }
.lists .yes li::before { content: "\2713"; color: var(--green); font-weight: 800; }
.lists .pay li::before { content: "\2022"; color: var(--muted); font-weight: 800; text-align: center; }
.place { grid-column: 1 / -1; display: grid; gap: 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .place { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Criteria */
.criteria { list-style: none; padding: 0; margin-top: 1.75rem; max-width: 50rem; border-top: 1px solid var(--line); }
.criteria li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.criteria svg { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; color: var(--green); }
.fair { margin-top: 1.25rem; color: var(--muted); max-width: 60ch; }

/* How to apply: a real sequence, so it is numbered */
.steps-band { background: var(--green); color: var(--on-green); }
.steps-band h2 { color: var(--on-green); }
.steps-band .lead { color: var(--on-green-muted); }
.steps { list-style: none; padding: 0; margin-top: 2.25rem; display: grid; gap: 1.6rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem; } }
.steps li { display: grid; gap: 0.5rem; align-content: start; padding-top: 1.2rem; border-top: 1px solid oklch(0.98 0.008 160 / 0.28); }
.step-num { font: 400 2.6rem/1 var(--serif); color: var(--gold); }
.steps h3 { font: 800 1.15rem/1.3 var(--sans); color: var(--on-green); }
.steps p { color: var(--on-green-muted); }
.steps-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* Scam note and contact */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.35rem 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); }
.notice svg { width: 1.8rem; height: 1.8rem; color: var(--green); }
.notice h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.notice p + p { margin-top: 0.6rem; }
.contact-list { list-style: none; padding: 0; margin-top: 1rem; display: grid; gap: 0.75rem; }
.contact-list a { font-weight: 700; font-size: 1.15rem; }

/* Home page */
.home-hero { background: var(--green); color: var(--on-green); }
.home-hero .container { display: grid; gap: 2rem; padding-block: clamp(3rem, 2rem + 5vw, 6rem); align-items: center; }
@media (min-width: 56rem) { .home-hero .container { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.home-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4rem); color: var(--on-green); }
.home-hero p { margin-top: 1.1rem; font-size: 1.2rem; color: var(--on-green-muted); max-width: 40ch; }
.home-hero .art { color: var(--gold); }
.home-hero .art svg { width: 100%; height: auto; max-width: 32rem; margin-inline: auto; }
.listings { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
@media (min-width: 48rem) { .listings { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); } }
.listing { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.2s var(--ease); }
.listing:hover { border-color: var(--green); }
.listing-media { aspect-ratio: 16 / 10; background: var(--green); overflow: hidden; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.listing:hover .listing-media img { transform: scale(1.03); }
.listing-media.art { display: grid; place-items: center; color: var(--gold); padding: 1.25rem 1.5rem 0; }
.listing-media.art svg { width: 78%; height: auto; }
.listing-body { display: grid; gap: 0.35rem; padding: 1.25rem 1.35rem 1.4rem; align-content: start; }
.listing-body h3 { font-size: 1.6rem; }
.listing-meta { color: var(--muted); }
.listing-price { font: 400 1.5rem/1.2 var(--serif); color: var(--green); margin-top: 0.35rem; }
.listing-go { margin-top: 0.6rem; font-weight: 800; color: var(--green); }
.ways { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.ways li { padding-top: 1.1rem; border-top: 2px solid var(--gold); }
.ways h3 { font: 800 1.15rem/1.3 var(--sans); margin-bottom: 0.4rem; }
.ways p { color: var(--muted); }
.empty-listings { margin-top: 1.5rem; padding: 1.5rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-deep); color: var(--on-green-muted); padding-block: 2.75rem calc(2.5rem + env(safe-area-inset-bottom)); }
.site-footer a { color: var(--on-green); }
.footer-grid { display: grid; gap: 1.75rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--on-green); font-weight: 700; }
.eho { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: center; max-width: 34rem; }
.eho svg { width: 2.6rem; height: 2.6rem; color: var(--on-green); }
.eho p { font-size: 0.95rem; }
.fineprint { margin-top: 1.5rem; font-size: 0.9rem; }

/* Sticky pre-screen bar (phones) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px oklch(0.2 0.03 160 / 0.45);
  transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-price { font: 400 1.35rem/1.1 var(--serif); color: var(--green); }
.sticky-price small { display: block; font: 600 0.85rem/1.3 var(--sans); color: var(--muted); }
.sticky-cta .cta { flex: none; white-space: nowrap; min-height: 3rem; padding: 0 1.1rem; font-size: 1rem; background: var(--green); color: var(--on-green); }
@media (min-width: 60rem) { .sticky-cta { display: none; } }

/* Photo viewer */
dialog.lightbox { width: 100%; max-width: min(96vw, 82rem); max-height: 100vh; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
dialog.lightbox::backdrop { background: oklch(0.12 0.02 160 / 0.9); }
.lightbox figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; object-fit: contain; border-radius: 0.5rem; }
.lightbox figcaption { text-align: center; color: oklch(0.92 0.01 160); }
.lb-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 0.75rem; }
.lb-btn {
  min-width: 3rem; min-height: 3rem; padding: 0 1rem; border-radius: 0.8rem;
  border: 1px solid oklch(1 0 0 / 0.35); background: oklch(1 0 0 / 0.08); color: #fff;
  font: 700 1rem/1 var(--sans); cursor: pointer;
}
.lb-btn:hover { background: oklch(1 0 0 / 0.16); }
.lb-count { min-width: 5rem; text-align: center; color: oklch(0.85 0.01 160); }
@media (prefers-reduced-motion: no-preference) {
  dialog.lightbox[open] { animation: fade 0.25s var(--ease); }
  @keyframes fade { from { opacity: 0; transform: scale(0.985); } }
}

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