/* =========================================================================
   THE CHARLOTTE SOCIAL — Direct Booking Site
   Design system: "Upscale + Playful" · POV: the backyard social space
   Built on the 10 principles in bestprinciples.md
   ========================================================================= */

/* ----------  Design tokens  ---------- */
:root {
  /* Palette — golden-hour backyard, evening string lights, garden-after-dark */
  --ink:        #16130F;   /* near-black warm ink — text & dark sections      */
  --ink-soft:   #3A332B;   /* secondary text                                  */
  --cream:      #F6EFE3;   /* bone / page background                          */
  --cream-2:    #EFE6D6;   /* slightly deeper cream for cards                 */
  --forest:     #294A3A;   /* deep botanical green — the "luxury" anchor      */
  --forest-2:   #1E3A2C;
  --ember:      #D86B3C;   /* terracotta / spritz-orange — the "playful" pop  */
  --ember-2:    #C25A2E;
  --brass:      #C39A5B;   /* metallic accent, dividers, eyebrows             */
  --blush:      #E9C7B8;
  --white:      #FFFFFF;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.2rem, 1.7rem + 2.6vw, 3.6rem);
  --step-4:  clamp(2.9rem, 2.1rem + 4.2vw, 5.6rem);

  /* Space & shape */
  --radius:   18px;
  --radius-sm: 10px;
  --shadow:   0 18px 50px -20px rgba(22,19,15,0.45);
  --shadow-sm: 0 8px 24px -12px rgba(22,19,15,0.35);
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.01em; }

/* ----------  Helpers  ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ember);
}
.eyebrow--brass { color: var(--brass); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.center { text-align: center; }
.serif { font-family: var(--font-display); }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ember); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ember-2); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--forest); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--lg { padding: 1.1rem 2rem; font-size: var(--step-0); }

/* ----------  Header / nav  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand span { color: var(--ember); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { font-weight: 500; font-size: var(--step--1); letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--ember); }
.nav-cta { display: inline-flex; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ----------  Hero  ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--cream); isolation: isolate; }
.hero__media, .hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  /* Darkened for legibility over bright daytime photography */
  background:
    linear-gradient(180deg, rgba(22,19,15,.55) 0%, rgba(22,19,15,.45) 40%, rgba(22,19,15,.88) 100%),
    radial-gradient(120% 80% at 30% 70%, rgba(22,19,15,.35), transparent 60%);
}
.hero__inner { padding-block: clamp(2.5rem, 6vw, 5rem); width: 100%; }
.hero__eyebrow { color: var(--blush); }
.hero h1 { font-size: var(--step-4); margin-block: 0.5rem 0.4rem; max-width: 16ch; }
.hero h1 .verb { display: inline-block; }
.hero h1 .dot { color: var(--ember); }
.hero__promise { font-size: var(--step-1); max-width: 44ch; color: color-mix(in srgb, var(--cream) 92%, transparent); }

/* Inline booking widget (Principle 01) */
.book-bar {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  background: color-mix(in srgb, var(--cream) 96%, transparent);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr auto;
  gap: 0.6rem;
  align-items: end;
  max-width: 760px;
}
.book-bar .field { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.35rem 0.6rem; }
.book-bar label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--ink-soft); }
.book-bar input, .book-bar select {
  border: none; background: transparent; font: inherit; font-weight: 600; color: var(--ink);
  padding: 0.15rem 0; outline: none; width: 100%;
}
.book-bar .field + .field { border-left: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.book-bar .btn { width: 100%; justify-content: center; }
.book-note { margin-top: 0.7rem; font-size: var(--step--1); color: var(--blush); display:flex; align-items:center; gap:.5rem; }
@media (max-width: 720px) {
  .book-bar { grid-template-columns: 1fr 1fr; }
  .book-bar .field + .field { border-left: none; }
  .book-bar .book-bar__submit { grid-column: 1 / -1; }
}

/* ----------  Trust strip (Principle 03)  ---------- */
.trust { background: var(--ink); color: var(--cream); }
.trust__row { display: flex; flex-wrap: wrap; gap: clamp(1rem,4vw,3rem); justify-content: center; align-items: center; padding-block: 1.3rem; text-align: center; }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; min-width: 130px; }
.trust__item strong { font-family: var(--font-display); font-size: var(--step-1); }
.trust__item span { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brass); }
.trust__item .stars { color: var(--ember); letter-spacing: 2px; }

/* ----------  Section heads  ---------- */
.shead { max-width: 56ch; }
.shead.center { margin-inline: auto; }
.shead h2 { font-size: var(--step-3); margin-block: 0.4rem 0.6rem; }

/* ----------  Reviews (Principle 06)  ---------- */
.reviews { background: var(--cream-2); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.review-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.9rem;
}
.review-card .stars { color: var(--ember); letter-spacing: 2px; font-size: 1.05rem; }
.review-card blockquote { font-size: var(--step-0); line-height: 1.55; }
.review-card .meta { margin-top: auto; display: flex; align-items: center; gap: 0.7rem; }
.review-card .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.review-card .meta b { font-weight: 600; }
.review-card .meta small { color: var(--ink-soft); display:block; }
.reviews__foot { margin-top: 1.6rem; display:flex; gap: 1rem; align-items:center; flex-wrap:wrap; }

/* ----------  Vibes (Principle 05)  ---------- */
.vibe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2rem; }
.vibe-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  display: flex; align-items: flex-end; color: var(--cream); isolation: isolate;
  box-shadow: var(--shadow-sm); transition: transform .2s ease;
}
.vibe-card:hover { transform: translateY(-4px); }
.vibe-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.vibe-card::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, transparent 30%, rgba(22,19,15,.85)); }
.vibe-card .body { padding: 1.3rem; }
.vibe-card h3 { font-size: var(--step-1); }
.vibe-card p { font-size: var(--step--1); color: color-mix(in srgb, var(--cream) 85%, transparent); }
.vibe-card .arrow { font-weight:600; color: var(--ember); margin-top:.5rem; display:inline-block; }

/* ----------  Differentiator / backyard feature  ---------- */
.feature { background: var(--forest); color: var(--cream); padding-block: clamp(3.5rem, 8vw, 7rem); }
.feature__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; width:100%; }
.feature h2 { font-size: var(--step-3); color: var(--cream); }
.feature .eyebrow { color: var(--blush); }
.feature ul { list-style: none; padding: 0; margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.feature li { padding-left: 1.6rem; position: relative; }
.feature li::before { content: "✦"; position: absolute; left: 0; color: var(--ember); }
@media (max-width: 820px) { .feature__grid { grid-template-columns: 1fr; } }

/* ----------  Gallery  ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 0.7rem; margin-top: 2rem; }
.gallery-grid figure { overflow: hidden; border-radius: var(--radius-sm); position: relative; margin: 0; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.1rem .8rem .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--cream); background: linear-gradient(transparent, rgba(22,19,15,.82));
}
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .gallery-grid .wide { grid-column: span 2; } }

/* ----------  Founder (Principle 04)  ---------- */
.founder { }
.founder__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem,5vw,3.5rem); align-items: center; }
.founder__photo img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width:100%; box-shadow: var(--shadow); }
.founder blockquote { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; margin-block: 0.6rem 1rem; }
.founder .sig { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--forest); }
@media (max-width: 760px) { .founder__grid { grid-template-columns: 1fr; } }

/* ----------  Savings band (Principle 08)  ---------- */
.savings { background: var(--ember); color: var(--white); text-align:center; }
.savings h2 { font-size: var(--step-3); color: var(--white); }
.savings .big { font-family: var(--font-display); font-size: var(--step-4); display:block; line-height:1; margin-block: .3rem; }

/* ----------  Field guide (Principle 09)  ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.2rem; margin-top: 2rem; }
.guide-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; }
.guide-card img { aspect-ratio: 16/10; object-fit: cover; }
.guide-card .body { padding: 1.3rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.guide-card h3 { font-size: var(--step-1); }
.guide-card .tag { font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color: var(--ember); font-weight:700; }
.guide-card .arrow { margin-top:auto; font-weight:600; color: var(--forest); }

/* ----------  FAQ  ---------- */
.faq { max-width: 820px; margin-inline:auto; }
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding: 1.1rem 0; }
.faq summary { font-family: var(--font-display); font-size: var(--step-1); cursor: pointer; list-style: none; display:flex; justify-content:space-between; gap:1rem; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content: "+"; color: var(--ember); font-weight:400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 0.7rem; color: var(--ink-soft); }

/* ----------  Final CTA  ---------- */
.final-cta { background: var(--ink); color: var(--cream); text-align:center; }
.final-cta h2 { font-size: var(--step-3); color: var(--cream); max-width: 18ch; margin-inline:auto; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--forest-2); color: color-mix(in srgb, var(--cream) 85%, transparent); padding-block: 3rem 6rem; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer a:hover { color: var(--ember); }
.site-footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing:.14em; font-size:.74rem; color: var(--brass); margin-bottom:.8rem; }
.site-footer ul { list-style:none; padding:0; display:grid; gap:.5rem; }
.footer-bottom { margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.12); font-size:.8rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----------  Sticky mobile book bar (Principle 10)  ---------- */
.mobile-book {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 0.6rem; padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.mobile-book .price { color: var(--cream); display:flex; flex-direction:column; justify-content:center; line-height:1.1; }
.mobile-book .price b { font-family: var(--font-display); font-size: 1.1rem; }
.mobile-book .price small { color: var(--brass); font-size:.7rem; }
.mobile-book .btn { flex: 1; justify-content:center; }
.mobile-book a.call { background: var(--cream); color: var(--ink); width: 48px; flex: 0 0 48px; padding: 0; }
@media (max-width: 860px) { .mobile-book { display: flex; } body { padding-bottom: 76px; } }

/* ----------  Hospitable booking embed  ---------- */
/* The Hospitable widget renders its own ~340px card and left-aligns it.
   Constrain the iframe to that width and center it so there's no dead space. */
.booking-embed { margin-top: 1.5rem; display: flex; justify-content: center; }
.booking-embed iframe {
  width: 100%; max-width: 360px; height: 600px;
  border: 0; display: block; background: transparent; margin-inline: auto;
}
@media (max-width: 600px) { .booking-embed iframe { max-width: 100%; height: 640px; } }

/* ----------  Reveal animation  ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } html { scroll-behavior:auto; } }

/* ----------  Placeholder image styling (until real photos dropped in)  ---------- */
.ph {
  background:
    linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 60%, var(--ink) 100%);
  display:grid; place-items:center; color: color-mix(in srgb, var(--cream) 70%, transparent);
  font-family: var(--font-body); font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; text-align:center; padding:1rem;
  width:100%; height:100%;
}
.ph--ember { background: linear-gradient(135deg, var(--ember) 0%, var(--ember-2) 100%); color: var(--white); }
.ph--brass { background: linear-gradient(135deg, var(--brass), #9a7a44); color: var(--ink); }
