/* =========================================================
   2362 Gareth Road — Cooksville
   Pilarski Real Estate Group
   ========================================================= */

/* -------- Reset / Tokens -------- */
:root {
  --cream: #f6f1ea;
  --cream-2: #ece5d8;
  --bone: #fbf8f3;
  --ink: #1c1b18;
  --ink-soft: #3a3733;
  --muted: #8a8278;
  --line: #d9d1c1;
  --gold: #b69160;
  --gold-dark: #8a6c43;
  --white: #ffffff;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --nav-h: 84px;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(.2, .65, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; }

/* -------- Typography -------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .002em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); font-weight: 500; }
em { font-style: italic; color: var(--gold-dark); font-weight: 400; }

.section__eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.section__title { margin: 0 0 1.5rem; }
.section__lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 3rem;
}

/* -------- Layout -------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 160px) var(--gutter);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--solid { width: 100%; justify-content: center; margin-top: 8px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  z-index: 100;
  background: rgba(251, 248, 243, 0);
  backdrop-filter: blur(0);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
}
/* Scrolled nav matches reference site: dark background, white logos and
   text stay visible. (The PNG logos are white and designed for dark bgs.) */
.nav.is-scrolled {
  background: rgba(28, 27, 24, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0; /* never let the logo group be squeezed by the nav links */
}

/* Sized to match reference site exactly. The PNG is already circular —
   no border-radius needed. object-fit: contain preserves aspect ratio. */
.nav__logo-mark { width: 40px; height: 40px; object-fit: contain; }
.nav__logo-word { width: 111px; height: 22px; object-fit: contain; }
.nav__logo-fallback {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .04em;
  display: none; /* only shown when logos fail to load */
}
/* When both logo images fail to load, show the wordmark text fallback */
.no-logo-mark.no-logo-word .nav__logo-fallback,
.no-logo-word .nav__logo-fallback { display: inline; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  padding: 11px 22px !important;
  border: 1px solid currentColor;
  letter-spacing: .16em !important;
}
.nav__cta:hover { background: var(--white); color: var(--ink) !important; border-color: var(--white); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 32px;
  height: 32px;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.92);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%);
}
.hero__content {
  position: relative;
  padding: 0 var(--gutter) clamp(60px, 8vw, 110px);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 0 0 1.2rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}
.hero__title {
  color: var(--white);
  margin: 0 0 .8rem;
  font-weight: 300;
  letter-spacing: -.01em;
}
.hero__title em { color: var(--gold); font-weight: 300; }
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-style: italic;
  color: rgba(255,255,255,.88);
  margin: 0 0 2.5rem;
}
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 2rem;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--white);
  font-weight: 400;
}
.hero__stat-label {
  font-size: .68rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero__explore {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(60px, 8vw, 110px);
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: var(--white);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__explore svg { animation: bounce 2.2s var(--ease) infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* =========================================================
   INTRO
   ========================================================= */
.section--intro { text-align: center; max-width: 1080px; }
.section--intro .section__eyebrow { display: inline-block; }
.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 720px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 20px;
  position: relative;
  font-weight: 400;
}
.intro__body {
  text-align: left;
  max-width: 720px;
  margin: 0 auto;
}
.intro__body p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.intro__price {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  width: 100%;
  max-width: 300px;
}
.intro__price-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--ink);
}
.intro__price-label {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* =========================================================
   IMAGE BANDS
   ========================================================= */
.band {
  width: 100%;
  height: clamp(380px, 60vh, 720px);
  overflow: hidden;
}
.band img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease);
}
.band:hover img { transform: scale(1.04); }

/* =========================================================
   GALLERY
   ========================================================= */
.section--gallery { background: var(--cream); max-width: none; }
.section--gallery > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section--gallery .section__title,
.section--gallery .section__eyebrow,
.section--gallery .section__lede { padding: 0 var(--gutter); }
.section--gallery .section__title { padding-left: var(--gutter); padding-right: var(--gutter); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0 var(--gutter);
}
.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(.95); }
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0);
  transition: border .35s var(--ease);
}
.gallery__item:hover::after { border-color: rgba(255,255,255,.7); }

/* Feature taller items occasionally */
.gallery__item:nth-child(6n+1) { grid-row: span 2; aspect-ratio: 4 / 6; }

/* =========================================================
   FEATURES
   ========================================================= */
.section--features { text-align: center; }
.section--features .section__title { margin-bottom: 4rem; }
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature {
  background: var(--bone);
  padding: clamp(28px, 3vw, 44px);
  text-align: left;
  transition: background .35s var(--ease);
}
.feature:hover { background: var(--cream); }
.feature h3 {
  margin: 0 0 .8rem;
  font-family: var(--serif);
  font-weight: 500;
}
.feature p {
  font-size: .95rem;
  line-height: 1.7;
  margin: 0;
  color: var(--ink-soft);
}

/* =========================================================
   DETAILS / PARTICULARS
   ========================================================= */
.section--details { text-align: center; max-width: 880px; }
.particulars {
  margin: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  text-align: left;
}
.particulars__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  gap: 16px;
}
.particulars__row span:first-child {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.particulars__row span:last-child {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-align: right;
}

/* =========================================================
   FLOOR PLANS
   ========================================================= */
.section--floorplans { text-align: center; }
.section--floorplans .section__lede { margin-left: auto; margin-right: auto; text-align: center; }
.floorplans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 2rem;
}
.floorplan {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  cursor: zoom-in;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.floorplan:hover {
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.18);
  transform: translateY(-3px);
}
.floorplan img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.floorplan figcaption {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* =========================================================
   VIDEO
   ========================================================= */
.section--video { text-align: center; background: var(--ink); color: var(--cream); max-width: none; }
.section--video .section__title { color: var(--white); }
.section--video .section__title em { color: var(--gold); }
.section--video .section__eyebrow { color: rgba(255,255,255,.55); }
.section--video > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.video__wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 2rem auto 0;
  max-width: 1100px;
  background: #000;
  overflow: hidden;
}
.video__wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 2;
}
.video__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-family: var(--serif);
  font-size: 1.4rem;
  gap: 14px;
  text-align: center;
  padding: 0 24px;
  z-index: 1;
}
.video__placeholder p { margin: 0; font-style: italic; }
.video__placeholder small {
  font-family: var(--sans);
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-style: normal;
  max-width: 520px;
  line-height: 1.6;
}
.video__placeholder code {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: .72rem;
  background: rgba(255,255,255,.1);
  padding: 2px 6px;
}

/* =========================================================
   NEIGHBOURHOOD
   ========================================================= */
.section--neighbourhood { background: var(--cream); max-width: none; }
.section--neighbourhood > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section--neighbourhood .section__eyebrow,
.section--neighbourhood .section__title,
.section--neighbourhood .neighbourhood__body,
.section--neighbourhood .neighbourhood__chips,
.section--neighbourhood .map { padding-left: var(--gutter); padding-right: var(--gutter); }

.neighbourhood__body {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.neighbourhood__body p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}
.neighbourhood__chips {
  list-style: none;
  padding: 0 var(--gutter);
  margin: 0 auto 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.neighbourhood__chips li {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bone);
}
.map { padding: 0 var(--gutter); }
.map iframe {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

/* =========================================================
   CONTACT
   ========================================================= */
.section--contact { text-align: center; }
.section--contact .section__lede { margin-left: auto; margin-right: auto; text-align: center; }
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 3rem;
  text-align: left;
}
.contact__info {
  padding-right: 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}
.contact__phone, .contact__email {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--ink);
  transition: color .25s var(--ease);
}
.contact__phone:hover, .contact__email:hover { color: var(--gold-dark); }
.contact__address {
  font-size: .9rem;
  color: var(--muted);
  margin: 12px 0 0;
  letter-spacing: .04em;
}
.contact__agent { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact__agent-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}
.contact__agent-sub {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 0;
}

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.contact__form label {
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  gap: 8px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
  border-radius: 0;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { border-bottom-color: var(--gold-dark); }
.contact__form textarea { resize: vertical; min-height: 100px; }
.contact__thanks {
  margin-top: 12px;
  padding: 14px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 60px var(--gutter) 50px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
/* Footer logos match reference site exactly — slightly smaller than nav. */
.footer__mark { width: 34px; height: 34px; object-fit: contain; }
.footer__word { width: 76px; height: 15px; object-fit: contain; }
.footer__copy { font-size: .8rem; letter-spacing: .12em; margin: 0 0 18px; color: rgba(255,255,255,.75); }
.footer__brokerage { font-size: .75rem; letter-spacing: .1em; color: rgba(255,255,255,.5); margin: 0; line-height: 1.8; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,14,12,.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; }

/* =========================================================
   FADE-IN ON SCROLL
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(6n+1) { grid-row: auto; aspect-ratio: 4 / 3; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .floorplans { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 50px; }
  .contact__info { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 40px; }
}
/* Hamburger menu kicks in here. 8 nav links + the JP/wordmark logo
   need ~1450px to lay out cleanly with comfortable spacing — beyond
   most laptop widths — so we switch to a hamburger menu earlier. */
@media (max-width: 1200px) {
  .nav__links {
    position: fixed;
    top: var(--nav-h); right: 0;
    width: min(360px, 90vw);
    height: calc(100vh - var(--nav-h));
    background: var(--bone);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 50px 40px;
    transform: translateX(110%);
    transition: transform .45s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--ink-soft); }
  .nav.is-scrolled .nav__links a { color: var(--ink-soft); }
  .nav__toggle { display: flex; }
}

@media (max-width: 720px) {
  :root { --nav-h: 70px; }
  .nav { padding: 0 24px; }
  .nav__logo-word { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero__explore { display: none; }
  .hero__stats { gap: 24px 36px; }
  .particulars__row { font-size: .9rem; }
  .particulars__row span:last-child { font-size: 1rem; }
  .pull-quote { font-size: 1.05rem; }
  .lightbox { padding: 24px; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }
}
