/* =====================================================================
   1738 NEWT GREEN — STYLES
   Palette: warm cream, deep charcoal-green, olive/sage accent, brass.
   ===================================================================== */

:root {
  --cream: #f6f3ec;
  --cream-2: #efeae0;
  --paper: #fbfaf6;
  --ink: #23271f;         /* deep charcoal-green */
  --ink-soft: #4a4f43;
  --muted: #7d8072;
  --line: #ddd8cc;
  --olive: #5b6b4f;       /* sage/olive accent */
  --olive-dark: #43503a;
  --brass: #a98b57;       /* refined metallic accent */
  --brass-dark: #8a6f41;
  --white: #ffffff;
  --shadow: 0 24px 60px -28px rgba(35, 39, 31, 0.35);
  --shadow-sm: 0 10px 30px -18px rgba(35, 39, 31, 0.4);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: 0.2px; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13.5px; letter-spacing: 1.6px;
  text-transform: uppercase; font-weight: 500;
  padding: 16px 34px; border-radius: 2px; cursor: pointer;
  border: 1px solid transparent; transition: all .35s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-dark-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-dark-ghost:hover { border-color: var(--ink); }

/* ---- Nav ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; transition: all .4s var(--ease);
  color: var(--cream);
}
.nav.scrolled {
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -20px rgba(0,0,0,.4);
}
.brand { font-family: var(--serif); font-size: 23px; letter-spacing: 1px; }
.brand small { display:block; font-family: var(--sans); font-size: 10px; letter-spacing: 3px; opacity: .7; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .9; transition: opacity .25s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { border: 1px solid currentColor; padding: 10px 20px; border-radius: 2px; }
.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; }

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,18,.45) 0%, rgba(20,24,18,.15) 35%, rgba(20,24,18,.75) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 8vh; }
.hero .status { font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: #efe6d2; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); margin: 16px 0 8px; max-width: 14ch; }
.hero .addr { font-family: var(--sans); font-size: 15px; letter-spacing: 2px; text-transform: uppercase; opacity: .9; }
.hero .price { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); margin-top: 22px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .8;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue span { width: 1px; height: 40px; background: currentColor; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%,100%{ opacity:.3; transform: scaleY(.6);} 50%{ opacity:1; transform: scaleY(1);} }

/* ---- Stats bar ----------------------------------------------------- */
.stats {
  background: var(--ink); color: var(--cream);
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.stat { padding: 34px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.09); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 40px; font-weight: 500; line-height: 1; }
.stat span { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; opacity: .65; margin-top: 10px; display: block; }

/* ---- Section basics ------------------------------------------------ */
section { position: relative; }
.section-pad { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 18px; }
.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }

/* ---- About / split ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 68px; align-items: center; }
.about-copy p { color: var(--ink-soft); margin: 0 0 20px; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.about-tag {
  position: absolute; bottom: -22px; left: -22px; background: var(--paper);
  padding: 20px 26px; box-shadow: var(--shadow-sm); border-radius: 2px;
  border-left: 3px solid var(--brass);
}
.about-tag b { font-family: var(--serif); font-size: 30px; display: block; }
.about-tag span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* ---- Features ------------------------------------------------------ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.feature-card {
  background: var(--paper); padding: 40px 36px; border-radius: 3px;
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 27px; margin-bottom: 22px; }
.feature-card h3::after { content:""; display:block; width: 44px; height: 2px; background: var(--brass); margin-top: 14px; }
.feature-card ul { list-style: none; margin: 0; padding: 0; }
.feature-card li { position: relative; padding: 9px 0 9px 26px; color: var(--ink-soft); font-size: 15.5px; border-bottom: 1px solid var(--cream-2); }
.feature-card li:last-child { border-bottom: 0; }
.feature-card li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border: 1.5px solid var(--olive); transform: rotate(45deg); }

/* ---- Gallery ------------------------------------------------------- */
.gallery-filters { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.gf { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; padding: 9px 20px; border: 1px solid var(--line); background: transparent; border-radius: 2px; cursor: pointer; color: var(--ink-soft); transition: all .25s; }
.gf.active, .gf:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.g-item { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; background: var(--cream-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item .cap {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px;
  color: #fff; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.6));
  opacity: 0; transition: opacity .35s; font-size: 14px; letter-spacing: .5px;
}
.g-item:hover .cap { opacity: 1; }
/* editorial spans */
.g-item:nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
.g-item:nth-child(6n+2) { grid-column: span 5; }
.g-item:nth-child(6n+3) { grid-column: span 5; }
.g-item:nth-child(6n+4) { grid-column: span 4; }
.g-item:nth-child(6n+5) { grid-column: span 4; }
.g-item:nth-child(6n)   { grid-column: span 4; }
.g-item { min-height: 240px; }

/* ---- Lightbox ------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,20,15,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 82vh; border-radius: 3px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lb-cap { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; color: #eee; font-size: 15px; letter-spacing: 1px; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 26px; } .lb-next { right: 26px; }
.lb-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; opacity: .85; }

/* ---- Location ------------------------------------------------------ */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.drive-list { list-style: none; margin: 26px 0 0; padding: 0; }
.drive-list li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drive-list li span:first-child { color: var(--ink-soft); }
.drive-list li span:last-child { font-family: var(--serif); font-size: 20px; color: var(--olive-dark); }
.schools { margin-top: 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 28px 30px; }
.schools h4 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.schools .note { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.schools ul { list-style: none; margin: 0; padding: 0; }
.schools li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--cream-2); }
.schools li span:first-child { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass-dark); }
.map-embed { width: 100%; aspect-ratio: 4/3.4; border: 0; border-radius: 3px; box-shadow: var(--shadow-sm); filter: saturate(.9); }

/* ---- Floor plans --------------------------------------------------- */
.fp-tabs { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.fp-tab { font-family: var(--sans); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; padding: 11px 26px; border: 1px solid var(--line); background: transparent; border-radius: 2px; cursor: pointer; color: var(--ink-soft); transition: all .25s; }
.fp-tab.active, .fp-tab:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.fp-stage { position: relative; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 26px; box-shadow: var(--shadow-sm); }
.fp-stage img { width: 100%; border-radius: 3px; cursor: zoom-in; display: block; }
.fp-meta { display: flex; align-items: baseline; gap: 18px; margin-top: 22px; }
.fp-meta span:first-child { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.fp-meta span:last-child { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--brass-dark); }
.fp-note { color: var(--ink-soft); margin: 8px 0 0; font-size: 15.5px; max-width: 60ch; }
.fp-zoom { position: absolute; top: 40px; right: 40px; font-family: var(--sans); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; background: rgba(35,39,31,.82); color: var(--cream); border: 0; padding: 9px 16px; border-radius: 2px; cursor: pointer; transition: background .25s; }
.fp-zoom:hover { background: var(--ink); }

/* ---- Video --------------------------------------------------------- */
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--cream); }
.video-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,18,.35), rgba(20,24,18,.7)); }
.video-poster > * { position: relative; z-index: 1; }
.video-play { width: 84px; height: 84px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center; font-size: 26px; padding-left: 6px; margin-bottom: 20px; transition: transform .3s var(--ease), background .3s; }
.video-poster:hover .video-play { transform: scale(1.08); background: rgba(255,255,255,.15); }
.video-ph-title { font-family: var(--serif); font-size: 30px; margin: 0; }
.video-ph-note { font-size: 14px; opacity: .85; margin: 8px 0 0; }
.video-ph-note code { background: rgba(255,255,255,.15); padding: 2px 7px; border-radius: 3px; font-size: 13px; }

/* ---- Contact ------------------------------------------------------- */
.contact { background: var(--ink); color: var(--cream); }
.contact .split { align-items: start; }
.contact h2 { color: var(--cream); font-size: clamp(32px, 4.4vw, 52px); }
.contact .lead { color: #cfccbf; margin-top: 18px; font-size: 18px; }
.contact-info { margin-top: 36px; }
.contact-info a, .contact-info div { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-info .ic { width: 20px; opacity: .7; }
form.lead-form { display: grid; gap: 16px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #b7b4a7; display: block; margin-bottom: 7px; }
.lead-form input, .lead-form textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: var(--cream); padding: 14px 16px; border-radius: 2px; font-family: var(--sans); font-size: 15px;
  transition: border-color .25s, background .25s;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--brass); background: rgba(255,255,255,.1); }
.lead-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: #9c998d; }
.form-status { font-size: 14.5px; padding: 12px 0; min-height: 20px; }
.form-status.ok { color: #b9d3a3; }
.form-status.err { color: #e0a99a; }

/* ---- Footer -------------------------------------------------------- */
.footer { background: #191c15; color: #b7b9ac; padding: 60px 0 34px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 34px; }
.footer .brand { color: var(--cream); }
.socials { display: flex; gap: 12px; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all .3s; }
.socials a:hover { background: var(--brass); border-color: var(--brass); color: #191c15; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #85887b; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Reveal animation --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 0; left: 0;
    background: var(--cream); color: var(--ink); padding: 22px 32px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { color: var(--ink); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .split, .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .g-item { grid-column: span 1 !important; grid-row: auto !important; min-height: 220px; }
  .about-tag { left: 12px; bottom: -16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section-pad { padding: 76px 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .lead-form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}
