/* Crichton Realty Group — site styles */

:root {
  --ink: #2a2624;
  --ink-2: #4a4441;
  --muted: #6c6560;
  --paper: #f7f4ef;
  --paper-2: #efe9e0;
  --surface: #ffffff;
  --line: #e2dbd0;
  --brick: #9b3a26;
  --brick-dark: #7c2d1c;
  --brick-bg: #f5e3dc;
  --pine: #2e5140;
  --pine-bg: #e1ebe4;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --shadow: 0 1px 2px rgb(42 38 36 / 0.06), 0 8px 24px -12px rgb(42 38 36 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
a:hover { color: var(--brick); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; border-radius: 2px; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 8px; }

.eyebrow {
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 38em; }
.lead-sm { font-size: 1.1rem; color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--brick); text-decoration: none; }
.text-link:hover { color: var(--brick-dark); }
.text-link svg { transition: transform 0.2s; }
.text-link:hover svg { transform: translateX(3px); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  font: 600 1rem/1.2 var(--sans);
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-small { min-height: 40px; padding: 0.5em 1em; font-size: 0.95rem; }
.btn-solid { background: var(--brick); color: #fff; }
.btn-solid:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgb(247 244 239 / 0.4); color: var(--paper); }
.btn-outline-light:hover { border-color: var(--paper); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 244 239 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 4px;
  background: var(--ink); color: var(--paper);
  font: 500 1.05rem/1 var(--serif); letter-spacing: 0.02em;
}
.brand-mark span { color: #e5a08f; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font: 500 1.3rem/1.1 var(--serif); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-weight: 500; text-decoration: none; padding: 0.4em 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--ink); border-color: var(--line); }
.site-nav ul a[aria-current="page"] { border-color: var(--brick); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .brand-sub { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, background-color 0.2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    box-shadow: 0 12px 24px -16px rgb(0 0 0 / 0.25);
  }
  .js .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav ul a[aria-current="page"] { color: var(--brick); border-color: var(--line); }
  .nav-call { margin-top: 1rem; }
}

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

.hero { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 12em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-feature {
  position: relative; display: block; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4 / 3.2; background: var(--paper-2); box-shadow: var(--shadow); text-decoration: none; color: #fff;
}
.hero-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.hero-feature:hover img { transform: scale(1.025); }
.hero-feature-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 0.25rem; justify-items: start;
  padding: 3.5rem 1.4rem 1.25rem;
  background: linear-gradient(to top, rgb(20 17 16 / 0.82), rgb(20 17 16 / 0));
}
.hero-feature-addr { font: 500 1.5rem/1.15 var(--serif); margin-top: 0.4rem; }
.hero-feature-meta { font-size: 0.95rem; opacity: 0.9; }
.hero-feature:hover { color: #fff; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 1.75rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column-reverse; gap: 0.2rem; padding: 0 1.5rem; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: 0.95rem; color: var(--muted); }
.stats dd { margin: 0; font: 500 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.stats-stack { grid-template-columns: 1fr; margin: 0; padding: 0; border: 0; gap: 0; }
.stats-stack > div { border-left: 0; border-top: 1px solid var(--line); padding: 1.25rem 0; }
.stats-stack > div:first-child { border-top: 0; padding-top: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; padding: 0; }
  .stats > div { border-left: 0; border-top: 1px solid var(--line); padding: 1.1rem 0; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 1rem; }
  .stats > div:first-child { border-top: 0; }
  .stats dd { min-width: 3.3em; font-size: 2.1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

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

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section-alt { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.sub-h { font-size: 1.5rem; margin: 3.5rem 0 1.5rem; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1rem, 2vw, 1.5rem); }
.page-head h1 { max-width: 16em; }
.page-404 { padding-bottom: 6rem; }

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

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .chip { position: absolute; top: 0.9rem; left: 0.9rem; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; }
.card-price { font: 600 1.2rem/1.2 var(--sans); margin: 0 0 0.5rem; }
.price-unit { font-weight: 500; color: var(--muted); font-size: 0.8em; margin-left: 1px; }
.card-title { font-size: 1.45rem; margin: 0; }
.card-city { color: var(--muted); margin: 0.15rem 0 0.75rem; }
.card-meta { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.card-more { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; font-size: 0.95rem; color: var(--brick); }
.card:hover .card-more svg { transform: translateX(3px); }
.card-more svg { transition: transform 0.2s; }
.grid-past .card { opacity: 0.75; }
.card-headline, .card-features { display: none; }

/* a lone listing gets a wide feature layout */
.grid-single { grid-template-columns: 1fr; }
.grid-single .card-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.grid-single .card-media { aspect-ratio: auto; min-height: 100%; }
.grid-single .card-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.grid-single .card-price { font-size: 1.4rem; }
.grid-single .card-title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.2rem); }
.grid-single .card-headline { display: block; font-size: 1.05rem; color: var(--ink-2); margin: 0 0 1rem; }
.grid-single .card-features { display: grid; list-style: none; margin: 0 0 1.5rem; padding: 0; gap: 0.45rem; font-size: 0.97rem; }
.grid-single .card-features li { display: flex; gap: 0.6rem; align-items: baseline; }
.grid-single .card-features svg { color: var(--pine); transform: translateY(0.15em); }
.grid-single .card-more { margin-top: auto; }
@media (max-width: 760px) {
  .grid-single .card-link { grid-template-columns: 1fr; }
  .grid-single .card-media { aspect-ratio: 4 / 3; }
}

.chip {
  display: inline-block; padding: 0.3em 0.7em; border-radius: 3px;
  font: 700 0.72rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.chip-lease { background: var(--pine); color: #fff; }
.chip-sale { background: var(--brick); color: #fff; }
.chip-muted { background: var(--ink-2); color: #fff; }
.tag { display: inline-block; padding: 0.3em 0.7em; border: 1px solid var(--line); border-radius: 3px; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); background: var(--surface); }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 2.5rem; max-width: 40rem; }
.empty h3 { margin-bottom: 0.4rem; }
.empty p { margin: 0; color: var(--ink-2); }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter { min-height: 40px; padding: 0.4em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 0.95rem var(--sans); cursor: pointer; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- services / people / towns ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.services article { padding: 1.75rem 2rem 0.5rem 0; }
.services article + article { padding-left: 2rem; border-left: 1px solid var(--line); }
.services h3 { margin-bottom: 0.6rem; }
.services p { color: var(--ink-2); margin: 0; }
@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
  .services article, .services article + article { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

.people { display: grid; gap: 1.25rem; }
.people-full { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .people-full { grid-template-columns: 1fr; } }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.6rem 1.75rem; }
.person h3 { margin: 0; font-size: 1.55rem; }
.person-role { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brick); margin: 0.3rem 0 0; }
.person-note { font-size: 0.92rem; color: var(--pine); font-weight: 500; margin: 0.35rem 0 0; }
.person header { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.person p:last-child { margin-bottom: 0; }
.person > p { color: var(--ink-2); }

.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 1px solid var(--line); }
.towns li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font: 500 1.2rem/1.2 var(--serif); }

.checklist, .features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.checklist li, .features li { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.checklist svg, .features svg { color: var(--pine); transform: translateY(0.15em); }
.checklist li { font-size: 1.1rem; }
.prose p { color: var(--ink-2); }
.prose .lead { color: var(--ink); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 0.4rem; max-width: 20em; }
.cta-band p { margin: 0; color: rgb(247 244 239 / 0.75); }
.cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

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

.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

.listing { padding-top: 1.25rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.listing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.listing-head h1 { margin: 0; font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); }
.listing-tags { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.9rem; }
.listing-city { font-size: 1.15rem; color: var(--ink-2); margin: 0.35rem 0 0; }
.listing-price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.price { font: 500 clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem)/1 var(--serif); margin: 0; }
@media (max-width: 640px) {
  .listing-price { align-items: stretch; width: 100%; }
  .listing-price .btn { width: 100%; }
}

.gallery { display: grid; grid-template-columns: 1.7fr 1fr; gap: 0.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-main { position: relative; display: block; border-radius: 8px 0 0 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; gap: 0.45rem; align-items: center;
  background: rgb(247 244 239 / 0.94); color: var(--ink); font-weight: 600; font-size: 0.9rem;
  padding: 0.5em 0.85em; border-radius: var(--radius);
}
.gallery-count svg { transform: rotate(-45deg); }
.gallery-thumbs { list-style: none; margin: 0; padding: 0; min-width: 0; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 0.6rem; overflow: hidden; border-radius: 0 8px 8px 0; contain: size; }
.gallery-thumbs li { min-height: 0; }
.gallery-thumbs li:nth-child(n + 7) { display: none; }
.thumb { display: block; height: 100%; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.thumb:hover img { opacity: 0.85; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-main { border-radius: 8px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto; border-radius: 0; contain: none; }
  .gallery-thumbs li { aspect-ratio: 1; }
  .gallery-thumbs li:nth-child(n + 5) { display: none; }
}

.listing-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .listing-body { grid-template-columns: 1fr; } }
.listing-headline { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.listing-main > p { color: var(--ink-2); font-size: 1.1rem; }
.listing-main h3 { margin: 2.25rem 0 0.75rem; font-size: 1.5rem; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 8px; background: var(--paper-2); display: block; }
.map-link { margin-top: 0.75rem; }
.map-link a { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--brick); text-decoration: none; }

.listing-side { display: grid; gap: 1.5rem; position: sticky; top: 96px; }
@media (max-width: 900px) { .listing-side { position: static; } }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 1.4rem; }
.facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }

.inquire { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem 1.4rem; }
.inquire h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.inquire > p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- lightbox ---------- */

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(18 15 14 / 0.96); color: #fff; }
.lightbox::backdrop { background: rgb(18 15 14 / 0.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 4rem 4.5rem 3rem; display: grid; gap: 0.75rem; justify-items: center; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { font-size: 0.95rem; opacity: 0.8; text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.12); color: #fff; font: 400 2rem/1 var(--sans); cursor: pointer; }
.lb-btn:hover { background: rgb(255 255 255 / 0.24); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
@media (max-width: 640px) {
  .lightbox figure { padding: 4rem 0.5rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list svg { width: 1.35rem; height: 1.35rem; color: var(--brick); margin-top: 0.15rem; }
.info-list h2 { font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.35rem; }
.info-list a, .info-list p { font-size: 1.15rem; margin: 0; }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-form-wrap h2 { font-size: 1.75rem; }

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

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-compact .field-row { grid-template-columns: 1fr; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.92rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7em 0.85em;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brick); outline-offset: 0; border-color: transparent; background: #fff; }
.form .btn { justify-self: start; }
.form-compact .btn { justify-self: stretch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--pine-bg); color: var(--pine); }
.form-status.err { padding: 0.9rem 1rem; border-radius: var(--radius); background: var(--brick-bg); color: var(--brick-dark); }

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

.site-footer { background: #1f1c1a; color: rgb(247 244 239 / 0.78); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; font-size: 0.97rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #e5a08f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font: 500 1.4rem/1.2 var(--serif); color: var(--paper); margin-bottom: 0.6rem; }
.footer-brand p:not(.footer-name) { max-width: 26em; }
.footer-h { font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgb(247 244 239 / 0.5); margin: 0.4rem 0 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(247 244 239 / 0.12); font-size: 0.86rem; color: rgb(247 244 239 / 0.55); }
.footer-base p { margin: 0; }
.footer-base a { color: rgb(247 244 239 / 0.75); }
