/* ==========================================================================
   Casa Frenchie — casafrenchiecr.com
   Palette drawn from the property itself:
   rainforest ink, canopy green, sand/linen, Pacific slate, golden-hour dusk.
   Type: Fraunces (display) + Karla (body). Mobile-first.
   ========================================================================== */

:root {
  --ink: #1c2a22;          /* deep rainforest, near-black green */
  --canopy: #2e4b3c;       /* primary brand green */
  --palm: #6e8b72;         /* muted sage */
  --sand: #f6f2e9;         /* ivory sand */
  --sand-deep: #ece5d5;    /* deeper sand for cards */
  --dusk: #c98a4b;         /* golden-hour accent — CTAs only */
  --dusk-deep: #a96d33;
  --ocean: #33586b;        /* Pacific slate */
  --white: #fffdf9;
  --line: rgba(28, 42, 34, 0.14);
  --shadow: 0 12px 32px rgba(28, 42, 34, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.6rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); margin-bottom: 0.5rem; }

a { color: var(--canopy); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--dusk);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--canopy); color: var(--white); padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.desktop-br { display: none; }
@media (min-width: 760px) { .desktop-br { display: inline; } }

/* --- Eyebrows & section rhythm ------------------------------------------ */
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--dusk-deep); margin-bottom: 0.6rem;
}
.eyebrow-light { color: #e4b57f; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-lede { max-width: 46rem; margin: 0.25rem 0 2.25rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #e9ede8; }
.on-dark { color: #f2f4ef; }
.section-dark a { color: #e4b57f; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-primary { background: var(--dusk); color: #241703; }
.btn-primary:hover { background: var(--dusk-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--canopy); border-color: var(--canopy); }
.btn-ghost:hover { background: var(--canopy); color: var(--white); }
.btn-ghost-light { background: transparent; color: #f2f4ef; border-color: rgba(242,244,239,0.6); }
.btn-ghost-light:hover { background: #f2f4ef; color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1220px; margin: 0 auto; padding: 0.7rem var(--pad);
  display: flex; align-items: center; gap: 1rem;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; margin-right: auto; }
.brand-mark { color: var(--dusk); margin-right: 0.35rem; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand-sub { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--palm); }
.nav-list { display: none; list-style: none; gap: 1.4rem; }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.nav-list a:hover { color: var(--dusk-deep); }
.header-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none;
  border: none; padding: 0.5rem; cursor: pointer;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; }
  .header-cta { display: inline-block; }
}
/* mobile open state */
.main-nav.open .nav-list {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 1rem var(--pad) 1.4rem; gap: 0.9rem;
}

/* --- Hero ------------------------------------------------------------------ */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: var(--white); }
.hero-short { min-height: 62vh; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,42,34,0.15) 30%, rgba(28,42,34,0.78) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 var(--pad) clamp(3rem, 7vw, 5.5rem); max-width: 1120px; margin: 0 auto; width: 100%; }
.hero .eyebrow { color: #f0cf9e; }
.hero-lede { max-width: 38rem; margin: 1.1rem 0 1.8rem; font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.65); }
.hero .btn-ghost:hover { background: var(--white); color: var(--ink); }
.hero-proof { margin-top: 1.6rem; font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.proof-stars { color: #f0cf9e; letter-spacing: 0.15em; }

/* --- Facts strip ------------------------------------------------------------ */
.facts { background: var(--canopy); color: var(--sand); }
.facts-list {
  list-style: none; max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 1.3rem var(--pad); gap: 1rem 0.5rem; text-align: center;
}
.facts-list strong { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.facts-list span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
@media (min-width: 700px) { .facts-list { grid-template-columns: repeat(6, 1fr); } }

/* --- Houses ------------------------------------------------------------------ */
.house-grid { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 820px) { .house-grid { grid-template-columns: 1fr 1fr; } }
.house-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.house-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.house-card-body { padding: 1.6rem 1.6rem 1.8rem; }
.house-tag {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dusk-deep);
  border: 1px solid currentColor; border-radius: 999px; padding: 0.2rem 0.65rem;
  vertical-align: middle; margin-left: 0.4rem; white-space: nowrap;
}
.house-features { list-style: none; margin-top: 1.1rem; display: grid; gap: 0.45rem; font-size: 0.95rem; }
.house-features li::before { content: "✦"; color: var(--dusk); margin-right: 0.55rem; font-size: 0.7rem; }

/* --- Feature band -------------------------------------------------------------- */
.feature-band {
  margin-top: 3.5rem; display: grid; gap: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--ocean); color: #eef3f5;
}
.feature-band img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.feature-band-text { padding: clamp(1.6rem, 3.5vw, 3rem); align-self: center; }
@media (min-width: 820px) { .feature-band { grid-template-columns: 1.15fr 1fr; } }

/* --- Amenities ------------------------------------------------------------------ */
.amenities { margin-top: 3.5rem; }
.amenity-grid {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.4rem; margin-top: 1.2rem;
}
.amenity-grid li { font-size: 0.97rem; padding-left: 1.2rem; position: relative; }
.amenity-grid li::before { content: "✔"; position: absolute; left: 0; color: var(--canopy); font-size: 0.8rem; }
@media (min-width: 760px) { .amenity-grid { grid-template-columns: repeat(4, 1fr); } }
.amenity-note { margin-top: 1.4rem; font-size: 0.9rem; color: #4c5a51; max-width: 52rem; }

/* --- Gallery ---------------------------------------------------------------------- */
.gallery-grid {
  max-width: 1220px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid button {
  border: none; padding: 0; background: #101a14; cursor: zoom-in;
  border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-grid button:hover img { transform: scale(1.045); }
.gallery-more { text-align: center; margin-top: 1.8rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(12, 18, 14, 0.95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.12); color: var(--white);
  border: none; font-size: 1.9rem; line-height: 1; width: 48px; height: 48px;
  border-radius: 999px; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,0.28); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 0.8rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.8rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #cfd8cf; font-size: 0.9rem; }

/* --- Reviews --------------------------------------------------------------------------- */
.review-grid { display: grid; gap: 1.4rem; }
@media (min-width: 820px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--sand); border-radius: var(--radius); padding: 1.7rem 1.6rem;
  border-top: 4px solid var(--dusk);
}
.review-theme { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.7rem; }
.review-count { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--palm); margin-top: 0.25rem; }
.review-disclosure { margin-top: 1.8rem; font-size: 0.9rem; color: #4c5a51; max-width: 52rem; }

.direct-perks { display: grid; gap: 1.6rem; margin-top: 3rem; }
@media (min-width: 820px) { .direct-perks { grid-template-columns: repeat(3, 1fr); } }

/* --- Availability (live calendar embed) ---------------------------------------------------- */

/* --- Destination ------------------------------------------------------------------------------ */
.dist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
@media (min-width: 760px) { .dist-grid { grid-template-columns: repeat(4, 1fr); } }
.dist {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px; padding: 1rem 1.1rem;
}
.dist strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #f0cf9e; }
.dist span { font-size: 0.88rem; opacity: 0.9; }
.dist-note { margin-top: 1.4rem; font-size: 0.92rem; opacity: 0.9; }

/* --- Details grid ------------------------------------------------------------------------------ */
.details-grid { display: grid; gap: 1.8rem 2.4rem; }
@media (min-width: 760px) { .details-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .details-grid { grid-template-columns: repeat(3, 1fr); } }
.detail h3 { color: var(--canopy); }

/* --- Contact ------------------------------------------------------------------------------------ */
.contact-grid { display: grid; gap: 1rem; max-width: 780px; }
@media (min-width: 700px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow); color: var(--ink);
  transition: transform 0.15s ease;
}
.contact-card:hover { transform: translateY(-2px); }
.contact-label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dusk-deep); }
.contact-value { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }

/* --- Towns / prose (destination page) -------------------------------------------------------------- */
.prose p + p { margin-top: 1.1rem; }
.prose { max-width: 46rem; }
.town-grid { display: grid; gap: 1.4rem; }
@media (min-width: 820px) { .town-grid { grid-template-columns: repeat(3, 1fr); } }
.town-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.town-tag {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean);
  display: block; margin-top: 0.3rem;
}

/* --- Footer ------------------------------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #cfd8cf; padding: 3rem 0 5.5rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr; padding-bottom: 1rem; } }
.footer-brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }
.footer-brand span { color: var(--dusk); }
.footer-small { font-size: 0.85rem; margin-top: 0.5rem; max-width: 34rem; }
.footer-nav { list-style: none; display: grid; gap: 0.5rem; }
.footer-nav a { color: #cfd8cf; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: #f0cf9e; }
.footer-copy { text-align: center; font-size: 0.8rem; margin-top: 2.2rem; opacity: 0.65; }

/* --- Sticky booking bar (mobile) ------------------------------------------------------------------------ */
.sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255, 253, 249, 0.97); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.65rem var(--pad);
  box-shadow: 0 -6px 20px rgba(28, 42, 34, 0.12);
}
.sticky-bar-info { line-height: 1.25; }
.sticky-bar-info strong { display: block; font-size: 0.95rem; }
.sticky-bar-info span { font-size: 0.78rem; color: var(--palm); }
@media (min-width: 900px) { .sticky-bar { display: none; } .site-footer { padding-bottom: 3rem; } }
