/* ==========================================================================
   Template: "Ashland & Co." — editorial luxury real estate
   Original creative direction (no reference template) — full-bleed cinematic
   photography, oversized serif display type, thin bronze hairlines, dark/ivory
   contrast, scrolling ticker, full-screen overlay nav, count-up stats,
   horizontal-scroll neighborhood rail, rotating testimonial spotlight.
   Swap the --color-* tokens below to reskin for a new client.
   ========================================================================== */

:root {
  --charcoal: #15130f;
  --charcoal-soft: #23201a;
  --ivory: #f6f2ea;
  --stone: #ece5d6;
  --bronze: #a97c50;
  --bronze-light: #c99b6f;
  --ink: #221f19;
  --muted: #6f6858;
  --white: #ffffff;
  --line: rgba(34,31,25,0.12);
  --line-light: rgba(246,242,234,0.18);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: var(--font-sans); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 48px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: 88px; font-weight: 400; }
h2 { font-size: 46px; }
h3 { font-size: 26px; }
p { margin: 0; color: var(--muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--bronze); }
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--bronze-light); }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-solid { background: var(--charcoal); color: var(--ivory); }
.btn-solid:hover { background: var(--bronze); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-line-light { border-color: rgba(246,242,234,0.5); color: var(--ivory); }
.btn-line-light:hover { background: var(--ivory); color: var(--charcoal); }
.btn-block { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.text-link:hover { color: var(--bronze); border-color: var(--bronze); }
.text-link.on-dark { color: var(--ivory); border-color: var(--bronze-light); }

/* ------------------------------------------------------------------ Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 30px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(246,242,234,0.92);
  backdrop-filter: blur(10px);
  padding: 18px 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-serif); font-size: 22px; letter-spacing: 0.01em; color: var(--ivory); transition: color 0.4s ease; }
.site-header.scrolled .logo { color: var(--ink); }
.header-right { display: flex; align-items: center; gap: 28px; }
.header-phone { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ivory); transition: color 0.4s ease; }
.site-header.scrolled .header-phone { color: var(--ink); }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 34px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--ivory); transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease; }
.site-header.scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle span:nth-child(2) { width: 70%; }
body.menu-open .menu-toggle span { background: var(--ivory) !important; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 100%; }

/* ------------------------------------------------------------- Overlay menu */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
body.menu-open .overlay-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.overlay-menu nav { display: flex; flex-direction: column; gap: 6px; }
.overlay-menu a {
  font-family: var(--font-serif);
  font-size: 56px;
  color: var(--ivory);
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  width: fit-content;
}
.overlay-menu a:hover { color: var(--bronze-light); border-color: var(--bronze-light); }
.overlay-foot { position: absolute; bottom: 50px; left: 60px; right: 60px; display: flex; justify-content: space-between; color: rgba(246,242,234,0.5); font-size: 13px; }

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21,19,15,0.88) 0%, rgba(21,19,15,0.35) 55%, rgba(21,19,15,0.15) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: 86px; width: 100%; }
.hero h1 { max-width: 900px; }
.hero h1 em { font-style: italic; color: var(--bronze-light); }
.hero .lead { font-size: 18px; color: rgba(246,242,234,0.75); max-width: 460px; margin-top: 26px; }
.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 46px; gap: 30px; flex-wrap: wrap; }
.hero .btn-group { display: flex; gap: 16px; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246,242,234,0.6); }
.scroll-cue .line { width: 1px; height: 40px; background: rgba(246,242,234,0.4); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--bronze-light); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ------------------------------------------------------------------ Marquee */
.marquee {
  background: var(--charcoal);
  color: var(--stone);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 28px; }
.marquee-track span::after { content: "—"; margin-left: 28px; color: var(--bronze); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Section */
.section { padding: 130px 0; }
.section-charcoal { background: var(--charcoal); color: var(--ivory); }
.section-stone { background: var(--stone); }
.section-tight { padding: 90px 0; }

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------- Intro/stats */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.intro-grid h2 { margin-bottom: 28px; }
.intro-grid p.body-lg { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; margin-top: 10px; }
.stat-item .num { font-family: var(--font-serif); font-size: 58px; color: var(--bronze); line-height: 1; }
.stat-item .num::after { content: attr(data-suffix); }
.stat-item .label { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: 0.03em; }

/* -------------------------------------------------------------------- Bento */
.bento-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 30px; flex-wrap: wrap; }
.bento-head .eyebrow { margin-bottom: 14px; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 22px;
}
.bento-item {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; grid-row: span 1; }
.bento-item.small { grid-column: span 1; grid-row: span 1; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.bento-item:hover img { transform: scale(1.06); }
.bento-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(21,19,15,0.85) 0%, rgba(21,19,15,0.1) 45%, rgba(21,19,15,0) 70%);
}
.bento-item .info { position: absolute; left: 24px; right: 24px; bottom: 22px; color: var(--ivory); }
.bento-item .price { font-family: var(--font-serif); font-size: 26px; margin-bottom: 6px; }
.bento-item .addr { font-size: 13px; color: rgba(246,242,234,0.75); margin-bottom: 8px; }
.bento-item .meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246,242,234,0.6); }

/* --------------------------------------------------------------- Split about */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media { position: relative; min-height: 620px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text { display: flex; align-items: center; padding: 90px 90px; }
.split-text h2 { margin-bottom: 26px; }
.split-text p { font-size: 17px; margin-bottom: 20px; }
.split-text .btn { margin-top: 14px; }

/* --------------------------------------------------------------- Process */
.process-list { max-width: 900px; margin: 0 auto; }
.process-row {
  display: grid;
  grid-template-columns: 100px 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  padding: 38px 0;
  border-top: 1px solid var(--line-light);
}
.process-list .process-row:last-child { border-bottom: 1px solid var(--line-light); }
.process-row .index { font-family: var(--font-serif); font-size: 42px; color: var(--bronze); }
.process-row h3 { color: var(--ivory); font-size: 24px; }
.process-row p { color: rgba(246,242,234,0.6); margin: 0; }

/* --------------------------------------------------------- Neighborhood rail */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
.rail-controls { display: flex; gap: 12px; }
.rail-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--ink);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.rail-btn:hover { background: var(--ink); color: var(--ivory); }
.rail-btn svg { width: 18px; height: 18px; }
.rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 auto;
  width: 460px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}
.rail-card img { width: 100%; height: 480px; object-fit: cover; transition: transform 0.7s ease; }
.rail-card:hover img { transform: scale(1.05); }
.rail-card .overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,19,15,0.75) 0%, transparent 55%); }
.rail-card .info { position: absolute; left: 24px; bottom: 22px; color: var(--ivory); }
.rail-card .name { font-family: var(--font-serif); font-size: 28px; }
.rail-card .tag { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246,242,234,0.7); margin-top: 6px; }

/* --------------------------------------------------------------- Testimonial */
.spotlight { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.spotlight-quote { display: none; }
.spotlight-quote.active { display: block; animation: fadeQuote 0.6s ease; }
@keyframes fadeQuote { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.spotlight-quote blockquote {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 34px;
}
.spotlight-quote .who { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); font-weight: 700; }
.spotlight-dots { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.spotlight-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; padding: 0; transition: background 0.3s ease, transform 0.3s ease; }
.spotlight-dots button.active { background: var(--bronze); transform: scale(1.3); }

/* --------------------------------------------------------------------- Contact */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; }
.contact-info-list { margin-top: 34px; display: grid; gap: 22px; }
.contact-info-list .k { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze); display: block; margin-bottom: 4px; }
.contact-info-list .v { font-size: 17px; color: var(--ink); }
.field { margin-bottom: 28px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bronze); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 160px 0;
  text-align: center;
  color: var(--ivory);
  overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(21,19,15,0.72); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ivory); max-width: 700px; margin: 0 auto 34px; }
.cta-band .btn-group { justify-content: center; display: flex; gap: 16px; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--charcoal); color: rgba(246,242,234,0.6); padding: 100px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--line-light); }
.footer-logo { font-family: var(--font-serif); font-size: 26px; color: var(--ivory); margin-bottom: 18px; display: block; }
.footer-top h4 { font-family: var(--font-sans); color: var(--ivory); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 22px; font-weight: 700; }
.footer-top a, .footer-top li { display: block; font-size: 14px; padding: 6px 0; color: rgba(246,242,234,0.55); }
.footer-top a:hover { color: var(--bronze-light); }
.footer-bottom { padding-top: 30px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  h1 { font-size: 60px; }
  h2 { font-size: 34px; }
  .intro-grid, .split, .contact-wrap { grid-template-columns: 1fr; }
  .split-text { padding: 70px 40px; }
  .split-media { min-height: 420px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 260px); }
  .bento-item.large, .bento-item.wide, .bento-item.small { grid-column: span 2; grid-row: span 1; }
  .process-row { grid-template-columns: 60px 1fr; }
  .process-row p { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .overlay-menu a { font-size: 38px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 42px; }
  .stat-list { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .rail-card { width: 280px; }
  .rail-card img { height: 380px; }
  .cta-band { padding: 100px 0; }
  .overlay-menu { padding: 40px 30px; }
  .overlay-foot { left: 30px; right: 30px; bottom: 30px; flex-direction: column; gap: 6px; }
}
