/* ═══════════════════════════════════════════════════
   OLDE COTTAGE — KENLEY
   Premium owner-led microsite
   Palette: warm stone / deep forest / aged parchment
═══════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────── */
:root {
  --stone:      #f5f0e8;
  --parchment:  #ede8dc;
  --warm-white: #faf8f4;
  --forest:     #2d3b2e;
  --forest-mid: #3e5240;
  --forest-lt:  #5a7260;
  --oak:        #8b6f47;
  --oak-lt:     #c4a882;
  --charcoal:   #1e1e1e;
  --muted:      #6b6560;
  --border:     #d8d0c4;

  --ff-serif:   "Georgia", "Times New Roman", serif;
  --ff-sans:    system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:     4px;
  --radius-lg:  10px;
  --max-w:      1200px;
  --max-w-narrow: 740px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.16);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Accessibility ───────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1.25rem;
  background: var(--forest);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .15s;
}
.skip-link:focus { top: 0; outline: none; }

:focus-visible {
  outline: 2px solid var(--forest-lt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* masonry image buttons */
.masonry-btn {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: zoom-in;
}
.masonry-btn img {
  width: 100%;
  display: block;
  transition: transform .35s ease, opacity .2s;
}
.masonry-btn:hover img { transform: scale(1.025); opacity: .9; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--ff-serif);
  line-height: 1.2;
  font-weight: normal;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--forest);
  margin-bottom: 2rem;
}

/* ── Layout ─────────────────────────────────────── */
.container        { max-width: var(--max-w);        margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 2.5rem); }
.container-narrow { max-width: var(--max-w-narrow); margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 2.5rem); }
.section          { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: opacity .15s, transform .1s, background .15s;
  white-space: nowrap;
}
.btn:hover  { opacity: .88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm  { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg  { padding: .85rem 2rem; font-size: 1rem; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-ghost   { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-reel { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.reel-play-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }

/* ═══════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-address {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-pin {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--forest-lt);
  stroke-width: 2;
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 56px; /* nav height */
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.05) 0%,
    rgba(0,0,0,.1)  40%,
    rgba(0,0,0,.6)  80%,
    rgba(0,0,0,.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  color: #fff;
}
.hero-area {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .5rem;
}
.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-family: var(--ff-serif);
  font-weight: normal;
  line-height: 1.05;
  margin-bottom: .75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-headline {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  max-width: 580px;
  color: rgba(255,255,255,.88);
  margin-bottom: .5rem;
  font-family: var(--ff-serif);
  font-style: italic;
}
.hero-price {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ═══════════════════════════════════════════════════
   KEY FACTS
═══════════════════════════════════════════════════ */
.facts-section { background: var(--parchment); }
/* ── Hero stat row ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.stat-block {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}
.stat-block:last-child { border-right: none; }
.stat-value {
  font-family: var(--ff-serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: .35rem;
}
.stat-label {
  font-size: .7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ── Secondary facts ── */
.stat-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
}
.stat-pill {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  font-size: .875rem;
  color: var(--charcoal);
}
.stat-pill-icon {
  color: var(--forest-lt);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}
.stat-pill-icon svg { width: 14px; height: 14px; }
.stat-pill-label {
  font-weight: 600;
  color: var(--forest);
}
.stat-pill--link { cursor: pointer; }
.fact-cert {
  display: inline-block;
  font-size: .75rem;
  color: var(--forest-lt);
  margin-left: .25rem;
}
.stat-pill--link:hover .fact-cert { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-child(1),
  .stat-block:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ── Floorplan tile in masonry gallery ── */
.masonry-item--floorplan {
  background: #fff;
  overflow: hidden;
}
.masonry-item--floorplan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* ═══════════════════════════════════════════════════
   WHY WE LOVE IT
═══════════════════════════════════════════════════ */
.loves-section { background: var(--warm-white); }
.loves-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.love-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.love-item:last-child { border-bottom: none; }
.love-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--oak);
  min-width: 2rem;
  padding-top: .2rem;
}
.love-heading {
  display: block;
  font-size: 1.05rem;
  font-family: var(--ff-serif);
  color: var(--forest);
  margin-bottom: .3rem;
}
.love-body { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   GALLERY — masonry
═══════════════════════════════════════════════════ */
.gallery-section  { background: var(--stone); }
.gallery-header   {
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 1.5rem;
}

.masonry-grid {
  columns: 3 280px;
  column-gap: 4px;
  padding: 0 4px 4px;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
}
.masonry-item img {
  width: 100%;
  display: block;
}

/* video tile — portrait reel sits naturally tall in the column */
.masonry-item--video video {
  width: 100%;
  display: block;
  background: var(--charcoal);
}

@media (max-width: 600px) {
  .masonry-grid { columns: 2 160px; }
  .masonry-item--video { column-span: all; }
  .masonry-item--video video { max-height: 60vw; object-fit: cover; }
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  max-width: min(90vw, 1000px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-figure figcaption {
  margin-top: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  padding: .5rem .8rem;
  background: rgba(0,0,0,.4);
  border-radius: var(--radius);
  transition: background .15s;
  z-index: 201;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(0,0,0,.7); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.2rem; }
.lightbox-prev  { top: 50%; left: 1rem;  transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 1rem; transform: translateY(-50%); }

/* ── Reel modal ── */
.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-modal[hidden] { display: none; }
.reel-modal video {
  max-height: 90svh;
  max-width: min(90vw, calc(90svh * 9 / 16));
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
}
.reel-modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.reel-modal-close:hover { background: rgba(255,255,255,.3); }
.reel-ig-link {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.reel-ig-link:hover { color: #fff; }

/* ═══════════════════════════════════════════════════
   OPPORTUNITY
═══════════════════════════════════════════════════ */
.opportunity-section { background: var(--warm-white); }
.opportunity-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.opportunity-body p {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.8;
}
.rooms-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.rooms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.rooms-table th {
  background: var(--parchment);
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.rooms-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.rooms-table tr:last-child td { border-bottom: none; }
.rooms-table tr:hover td { background: var(--stone); }

/* ═══════════════════════════════════════════════════
   LOCATION
═══════════════════════════════════════════════════ */
.location-section { background: var(--parchment); }
.location-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 720px) {
  .location-layout { grid-template-columns: 1fr; }
  .location-images { grid-template-columns: 1fr 1fr; }
  .loc-img-item img { height: 130px; }
}
.location-blurb {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.location-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.location-highlights li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .9rem;
}
.location-highlights strong {
  color: var(--forest);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.location-highlights span { color: var(--muted); }
.wura-note {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.6);
  border-left: 3px solid var(--oak-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.wura-note a { color: var(--forest-lt); text-decoration: underline; text-underline-offset: 2px; }
.wura-note a:hover { color: var(--forest); }

.map-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--forest-lt);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-link:hover { color: var(--forest); }
.location-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.location-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.loc-img-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: zoom-in;
}
.loc-img-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.loc-img-item:hover img { transform: scale(1.04); }
.loc-img-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .45rem .6rem .4rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.loc-img-caption {
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.loc-img-credit {
  font-size: .65rem;
  color: rgba(255,255,255,.65);
  line-height: 1.2;
}
.location-map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.location-map-embed iframe {
  width: 100%;
  height: 340px;
  border: none;
  display: block;
}

/* ═══════════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════════ */
.cta-section { background: var(--forest); color: #fff; }
.cta-inner   { text-align: center; }
.cta-section .eyebrow { color: var(--oak-lt); }
.cta-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #fff;
  margin-bottom: 1rem;
}
.cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 2.5rem;
  font-family: var(--ff-serif);
  font-style: italic;
}
.cta-sub-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  margin-bottom: .4rem;
}
.agent-card + .cta-sub-label {
  margin-top: 2.5rem;
}
.portal-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 3rem;
}
.btn-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--forest);
  border: none;
  transition: opacity .15s, transform .1s;
  min-width: 180px;
}
.btn-portal:hover { opacity: .9; transform: translateY(-1px); }
.portal-logo {
  height: 24px;
  width: auto;
  display: block;
}
.portal-hint {
  font-size: .72rem;
  font-weight: 400;
  opacity: .8;
  letter-spacing: .04em;
}

.agent-card {
  display: inline-flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
}
.agent-name {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .2rem;
}
.agent-name span { color: rgba(255,255,255,.65); font-weight: 400; }
.agent-contact {
  font-size: .85rem;
  color: var(--oak-lt);
  text-decoration: none;
  transition: color .15s;
}
.agent-contact:hover { color: #fff; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.5);
  padding-block: 2rem;
  font-size: .78rem;
  text-align: center;
}
.site-footer p + p { margin-top: .5rem; }
.footer-legal { max-width: 600px; margin-inline: auto; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn-lg    { width: 100%; }
  .portal-btns { flex-direction: column; align-items: stretch; }
  .btn-portal { width: 100%; text-align: center; }
  .container, .container-narrow { padding-inline: 2.5rem; }
}
