/* Alpine Motors — black & gold, listing-first design */

:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --line: #2a2723;
  --line-strong: #3a352c;
  --ink: #f3efe6;           /* warm white */
  --ink-2: #c9c3b6;
  --muted: #8f897c;
  --gold: #d4ab4f;
  --gold-light: #f2d27c;
  --gold-dark: #9c7222;
  --gold-grad: linear-gradient(135deg, #a8781f 0%, #e9c766 38%, #f6dc8a 50%, #c99a35 68%, #9c7222 100%);
  --gold-soft: rgba(212, 171, 79, .12);
  --sold: #b0413e;
  --radius: 3px;
  --max: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: #0a0a0a; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,171,79,.55), transparent);
}
.header-inner { display: flex; align-items: center; gap: 30px; height: 84px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 58px; width: auto; }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); border-bottom-color: var(--gold); }

.header-search { flex: 1; max-width: 300px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; height: 38px; padding: 0 12px 0 36px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 14px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { outline: 1px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.header-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

.header-cta { white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; color: var(--gold); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px;
  border-radius: var(--radius); border: 1px solid transparent;
  background: var(--gold-grad); background-size: 140% 100%; background-position: 0 0;
  color: #0a0a0a;
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-position .3s, box-shadow .2s, color .15s, border-color .15s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 6px 22px rgba(212,171,79,.25); }
.btn-accent { /* same as primary in this theme */ }
.btn-outline { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold-soft); box-shadow: none; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- Photo placeholder ---------- */
.photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #161616; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: radial-gradient(ellipse at 50% 40%, #222019 0%, #121212 70%);
  color: #6f6555; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.photo-empty svg { width: 34%; max-width: 150px; color: #4a4134; }

/* ---------- Featured hero ---------- */
.hero { padding: 30px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.hero-main, .hero-side a { text-decoration: none; display: block; }
.hero-main .photo { aspect-ratio: 16 / 10; }
.hero-side { display: grid; gap: 18px; grid-template-rows: 1fr 1fr; }
.hero-side .photo { aspect-ratio: auto; height: 100%; min-height: 170px; }
.hero-card { display: block; position: relative; height: 100%; border: 1px solid var(--line); }
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent; transition: border-color .25s;
}
.hero-card:hover::after { border-color: rgba(212,171,79,.7); }
.hero-card .overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 70px 26px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,0));
  color: #fff;
}
.hero-card .eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.hero-card h2 { font-size: 40px; margin: 4px 0 4px; color: #fff; }
.hero-side .hero-card h2 { font-size: 24px; }
.hero-card .overlay p { margin: 0; color: var(--ink-2); font-size: 15px; letter-spacing: .02em; }
.hero-card:hover img { transform: scale(1.03); }
.hero-card .photo-empty { justify-content: flex-start; padding-top: 8%; }
.hero-card .photo-empty span { display: none; }
.hero-side .hero-card .photo-empty svg { width: 28%; }

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 38px; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px;
}
.chip {
  height: 34px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .04em; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--gold); color: var(--gold-light); }
.chip[aria-pressed="true"] { background: var(--gold-grad); border-color: var(--gold); color: #0a0a0a; font-weight: 700; }
.filters select, .filters input[type="search"] {
  height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 14px; background: var(--surface); color: var(--ink);
}
.filters input[type="search"]::placeholder { color: var(--muted); }
.filters .spacer { flex: 1; }
.result-count { color: var(--muted); font-size: 13px; letter-spacing: .06em; }

/* ---------- Listing grid ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
.listing-card { text-decoration: none; display: flex; flex-direction: column; }
.listing-card .photo { border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .25s; }
.listing-card:hover .photo { border-color: rgba(212,171,79,.7); }
.listing-card:hover img { transform: scale(1.03); }
.listing-card:hover h3 { color: var(--gold-light); }
.listing-card h3 { font-size: 18px; font-weight: 600; margin: 14px 0 4px; transition: color .15s; }
.listing-card .teaser { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.listing-meta {
  margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--muted);
}
.listing-meta .price {
  color: var(--gold-light); font-weight: 600; font-size: 15px;
  border: 1px solid rgba(212,171,79,.45); padding: 2px 10px; border-radius: var(--radius);
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: var(--radius);
  font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: #0a0a0a; color: var(--gold);
}
.badge-sold { background: var(--sold); color: #fff; }
/* Sold cards stay in full colour; the SOLD badge marks them */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-state a { color: var(--gold-light); }

/* ---------- Value props ---------- */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.prop { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.prop svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 12px; }
.prop h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.prop p { color: var(--ink-2); margin: 0; }

/* ---------- Sell CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 85% 50%, rgba(212,171,79,.16), transparent 60%), #0d0d0d;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 60px; padding-bottom: 60px; flex-wrap: wrap; }
.cta-band h2 { font-size: 40px; margin: 0 0 8px; }
.cta-band p { margin: 0; color: var(--ink-2); max-width: 560px; }

/* ---------- Listing detail ---------- */
.breadcrumbs { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 22px 0 8px; }
.breadcrumbs a { text-decoration: none; color: var(--ink-2); }
.breadcrumbs a:hover { color: var(--gold-light); }
.detail-title { font-size: 48px; margin: 4px 0 6px; }
.detail-sub { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; }

.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main .photo { aspect-ratio: 16 / 10; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; margin-top: 32px; align-items: start; }
.detail-body h2 { font-size: 30px; margin-top: 32px; }
.detail-body p { font-size: 17px; color: var(--ink-2); line-height: 1.75; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; list-style: none; }
.highlights li { border: 1px solid rgba(212,171,79,.4); background: var(--gold-soft); color: var(--gold-light); font-size: 13px; letter-spacing: .04em; padding: 5px 13px; border-radius: 999px; }

.essentials { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.essentials h3 { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.essentials dl { margin: 0; padding: 4px 20px 10px; }
.essentials .row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.essentials .row:last-child { border-bottom: 0; }
.essentials dt { color: var(--muted); }
.essentials dd { margin: 0; font-weight: 500; text-align: right; color: var(--ink); }

.price-box { border: 1px solid rgba(212,171,79,.45); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 18px; background: linear-gradient(180deg, #17150f, var(--surface)); }
.price-box .label { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .28em; font-weight: 600; }
.price-box .amount { font-family: var(--serif); font-size: 46px; font-weight: 600; margin: 2px 0 16px; color: #fff; }
.price-box .btn + .btn { margin-top: 10px; }
.sticky-side { position: sticky; top: 104px; }

/* ---------- Forms ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 7px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; font-size: 15px;
  padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #0e0e0e; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.form-note a { color: var(--gold-light); }
.form-status { margin-top: 12px; font-weight: 500; }
.form-status.ok { color: var(--gold-light); }
.form-status.err { color: #e07a76; }

/* ---------- Page intro / steps ---------- */
.page-intro { padding: 56px 0 24px; max-width: 780px; }
.page-intro h1 { font-size: 58px; }
.page-intro p { font-size: 18px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; margin: 10px 0 0; padding: 0; list-style: none; }
.steps li { border-top: 1px solid var(--gold); padding-top: 16px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--gold); margin-bottom: 4px; line-height: 1; }
.steps h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 15px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col h2 { font-size: 34px; }
.two-col p { color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.contact-list strong { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; color: var(--gold); margin-bottom: 4px; }
.contact-list a { text-decoration: none; font-weight: 500; color: var(--ink); }
.contact-list a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 30px; margin-top: 56px; font-size: 14.5px; background: #070707; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer .logo img { height: 64px; }
.site-footer h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .26em; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; color: var(--ink-2); }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--gold-light); }
.footer-tagline { margin-top: 16px; color: var(--muted); max-width: 340px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--muted); font-size: 12.5px; letter-spacing: .04em; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-search { display: none; }
  .main-nav { margin-left: auto; }
}
@media (max-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .header-inner { height: 68px; }
  .logo img { height: 40px; }
  .site-header.open .main-nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #0a0a0a; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .site-header.open .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-side .photo { aspect-ratio: 3 / 2; min-height: 0; }
  .props, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .listing-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-card h2 { font-size: 28px; }
  .hero-side .hero-card h2 { font-size: 24px; }
  .section-head h2, .cta-band h2 { font-size: 32px; }
  .detail-title { font-size: 34px; }
  .page-intro h1 { font-size: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .filters input[type="search"] { width: 100% !important; }
}

/* Contact page map */
.contact-list .map-embed { border-bottom: 0; padding-bottom: 0; }
.map-embed iframe {
  display: block; width: 100%; height: 280px; border: 1px solid var(--line); border-radius: var(--radius);
  filter: grayscale(1) invert(.92) contrast(.9);
}

/* ---------- Photo hero (home) ---------- */
.brand-hero {
  position: relative; overflow: hidden;
  height: min(86vh, 780px); min-height: 520px;
  display: flex; align-items: flex-start;
  border-bottom: 1px solid var(--line);
}
.brand-hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 72%;
}
.brand-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.45) 34%, rgba(10,10,10,0) 58%, rgba(10,10,10,.15) 82%, #0a0a0a 100%),
    linear-gradient(90deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 55%);
}
.brand-hero-inner { position: relative; z-index: 2; padding-top: 64px; width: 100%; }
.brand-hero h1 { font-size: 66px; max-width: 760px; margin-bottom: 12px; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.brand-hero p { font-size: 19px; color: var(--ink); max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.brand-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.brand-hero .btn-outline { background: rgba(10,10,10,.45); }
.hero .section-head { margin-bottom: 18px; }

/* ---------- Photo CTA band ---------- */
.cta-photo .cta-bg {
  position: absolute; top: 0; right: 0; height: 100%; width: 62%;
  object-fit: cover; object-position: 50% 45%;
}
.cta-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #0d0d0d 38%, rgba(13,13,13,.75) 58%, rgba(13,13,13,.2) 100%);
}
.cta-photo .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }

/* ---------- In-page photo banner ---------- */
.page-banner { margin: 0 0 40px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.page-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 55%; }

@media (max-width: 900px) {
  .brand-hero { height: 78vh; min-height: 480px; }
  .brand-hero h1 { font-size: 48px; }
  .cta-photo .cta-bg { width: 100%; opacity: .45; }
  .cta-photo::before { background: linear-gradient(90deg, rgba(13,13,13,.92), rgba(13,13,13,.6)); }
  .page-banner img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .brand-hero { height: 72vh; min-height: 460px; }
  .brand-hero > img { object-position: 38% 75%; }
  .brand-hero-inner { padding-top: 40px; }
  .brand-hero h1 { font-size: 40px; }
  .brand-hero p { font-size: 17px; }
}

/* Phones: stack the hero text above the photo so it never covers the trucks */
@media (max-width: 600px) {
  .brand-hero { display: block; height: auto; min-height: 0; }
  .brand-hero::before { display: none; }
  .brand-hero > img { position: static; aspect-ratio: 4 / 3; height: auto; object-position: 45% 78%; }
  .brand-hero-inner { padding-top: 32px; padding-bottom: 24px; }
  .brand-hero h1, .brand-hero p { text-shadow: none; }
}
.price-box .amount-call { font-size: 34px; }
.filters select { width: auto; }
@media (max-width: 600px) { .filters select { flex: 1; } }
/* Show the whole photo in the listing viewer (portrait shots get side bars instead of being cropped) */
.gallery-main .photo { background: #050505; }
.gallery-main .photo img { object-fit: contain; }
/* Featured cards: photos fill their card without stretching the row */
.hero-card .photo { height: 100%; }
.hero-card .photo img { position: absolute; inset: 0; }
/* Listing viewer: fit each photo in the frame but never enlarge it past its real size (enlarging makes it blurry) */
.gallery-main .photo img {
  position: absolute; inset: 0; margin: auto;
  width: auto; height: auto; max-width: 100%; max-height: 100%;
  object-fit: initial;
}

/* ---------- About page ---------- */
.page-intro .lead { font-size: 20px; color: var(--ink); }
.about-block { padding: 8px 0 56px; }
.about-block h2 { font-size: 40px; max-width: 760px; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 18px; }
.about-cols p { color: var(--ink-2); margin: 0; }

.founder {
  background: radial-gradient(ellipse at 10% 30%, rgba(212,171,79,.12), transparent 55%), #0d0d0d;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 72px 0;
}
.founder-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.founder-quote { position: sticky; top: 110px; }
.founder-quote blockquote {
  margin: 6px 0 0; font-family: var(--serif); font-size: 44px; line-height: 1.15; font-weight: 600;
  border-left: 2px solid var(--gold); padding-left: 24px;
}
.founder-story h2 { font-size: 40px; }
.founder-story p { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.founder-story a { color: var(--gold-light); text-decoration: none; }
.founder-story a:hover { text-decoration: underline; }
.founder-story .founder-sign { font-family: var(--serif); font-size: 22px; color: var(--gold-light); margin-top: 24px; }

.props-4 { grid-template-columns: repeat(4, 1fr); }
.section-soft .two-col .btn { margin-top: 8px; }

@media (max-width: 1024px) {
  .props-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about-cols, .founder-grid { grid-template-columns: 1fr; gap: 20px; }
  .founder-quote { position: static; }
  .founder-quote blockquote { font-size: 34px; }
  .about-block h2, .founder-story h2 { font-size: 32px; }
}
@media (max-width: 600px) {
  .props-4 { grid-template-columns: 1fr; }
  .founder { padding: 52px 0; }
}
@media (max-width: 600px) { .br-wide { display: none; } }

/* ---------- Listing gallery: arrows, counter, click to enlarge ---------- */
.gallery-main { position: relative; }
.gallery-open { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery-hint, .gallery-count {
  position: absolute; z-index: 3; pointer-events: none;
  background: rgba(10,10,10,.72); color: var(--ink); border: 1px solid rgba(212,171,79,.35);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 6px 10px; border-radius: var(--radius);
}
.gallery-hint { right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.gallery-hint svg { width: 14px; height: 14px; color: var(--gold); }
.gallery-count { left: 12px; bottom: 12px; }
.gallery-arrow, .lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(212,171,79,.5);
  background: rgba(10,10,10,.65); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s;
}
.gallery-arrow:hover, .lb-arrow:hover { background: rgba(10,10,10,.9); border-color: var(--gold); color: var(--gold-light); }
.gallery-arrow svg, .lb-arrow svg { width: 24px; height: 24px; }
.gallery-arrow.prev { left: 12px; } .gallery-arrow.next { right: 12px; }
.thumbs button { cursor: pointer; transition: border-color .15s, opacity .15s; }
.thumbs button:hover { border-color: var(--gold); }

/* ---------- Full-screen viewer ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: #050505;
  display: flex; flex-direction: column;
}
.lb-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 20px; color: var(--ink); }
.lb-title { font-family: var(--serif); font-size: 20px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { color: var(--muted); font-size: 14px; letter-spacing: .08em; white-space: nowrap; }
.lb-close { width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { color: var(--gold-light); }
.lb-close svg { width: 26px; height: 26px; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 80px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-arrow { width: 56px; height: 56px; }
.lb-arrow.prev { left: 16px; } .lb-arrow.next { right: 16px; }
.lb-strip { display: flex; gap: 8px; padding: 12px 16px 16px; overflow-x: auto; justify-content: safe center; }
.lb-strip button { flex: none; width: 96px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; background: #111; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.lb-strip button:hover { opacity: .9; }
.lb-strip button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 600px) {
  .gallery-arrow { width: 40px; height: 40px; }
  .gallery-arrow svg { width: 20px; height: 20px; }
  .gallery-hint { font-size: 11px; padding: 5px 8px; }
  .lb-stage { padding: 0; }
  .lb-arrow { width: 44px; height: 44px; background: rgba(10,10,10,.5); }
  .lb-arrow.prev { left: 8px; } .lb-arrow.next { right: 8px; }
  .lb-title { font-size: 17px; }
  .lb-strip button { width: 72px; height: 48px; }
}

/* Listing page: keep the title and the whole main photo on screen together */
.breadcrumbs { padding: 16px 0 4px; }
.detail-title { font-size: 40px; margin: 2px 0 4px; }
.detail-sub { margin-bottom: 16px; }
@media (min-width: 601px) {
  .gallery-main .photo { aspect-ratio: auto; height: clamp(300px, calc(100vh - 340px), 640px); }
}
@media (max-width: 600px) {
  .detail-title { font-size: 30px; }
}
