/* assets/css/site.css */
/* Cleo Retreats — shared site shell: tokens, nav, footer, base typography. */
/* Loaded on every page; page-specific stylesheets layer content sections on top. */

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

:root {
  --black: #0d0d0d;
  --dark: #111111;
  --dark2: #161616;
  --gold: #b8982a;
  --gold-light: #c9a94a;
  --gold-pale: #d4b86a;
  --white: #f5f0ea;
  --white-dim: rgba(245,240,234,0.75);
  --white-muted: rgba(245,240,234,0.5);
  --border: rgba(184,152,42,0.25);
  --accent: var(--gold);
  --accent-pale: var(--gold-pale);
  --content-max: 680px;
  --content-max-desktop: 760px;
  /* Fluid type tokens for small uppercase labels / meta text. These were fixed px/rem
     values with no responsive scaling, so they read too small on mobile and never grew
     on desktop. Both tiers grow with viewport width and cap out larger on desktop. */
  --text-2xs: clamp(0.8rem, 0.74rem + 0.3vw, 1rem);     /* labels, eyebrows, footer/meta text */
  --text-xs: clamp(0.85rem, 0.79rem + 0.3vw, 1.05rem);  /* small body copy (btn, terms, cta-body) */
}

/* Cleo master palette: scoped to non-gender-specific pages. */
body.master-site {
  --black: #DED6CB;
  --dark: #F7F3EE;
  --dark2: #D2C7BA;
  --gold: #B59458;
  --gold-light: #C6A66D;
  --gold-pale: #B59458;
  --white: #3C312D;
  --white-dim: rgba(60,49,45,0.78);
  --white-muted: rgba(90,71,65,0.62);
  --border: rgba(60,49,45,0.24);
  --accent: var(--gold);
  --accent-pale: #B59458;
}

body.master-site .btn { color: #3C312D; }
body.master-site .btn:hover { background: #C6A66D; }
body.master-site .btn::after {
  background: linear-gradient(120deg, transparent, rgba(247,243,238,0.5), transparent);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 450;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* TYPOGRAPHY PRIMITIVES (shared across all pages) */
.display { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.05; }
.display-italic {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  line-height: 1.05;
  color: var(--accent-pale);
}
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
/* width(65vw) can exceed the narrower .container parent, so margin:auto can't center it —
   auto margins resolve to 0 when over-constrained, leaving it flush-left instead. Break out
   and center on the viewport explicitly instead. */
.divider {
  visibility: hidden;
  position: relative;
  left: 50%;
  /* transform, not margin-left, pulls it back to centered — many sections set an inline or
     per-page "margin:Npx auto" override on this element. At mobile widths the divider (65vw)
     can be narrower than its .container parent, so that auto margin stops being a no-op and
     re-centers it within the container, stacking on top of and breaking the left/transform
     viewport-centering. !important pins horizontal margin to 0 regardless of any override,
     while leaving margin-top/bottom free for per-section vertical spacing. */
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: translateX(-50%);
  width: 65vw;
  height: 1px;
  background: var(--accent);
  margin-top: 28px;
  margin-bottom: 28px;
  opacity: 0.7;
}
.divider-left { width: 40px; height: 1px; background: var(--accent); opacity: 0.7; }
.text-center { text-align: center; }
.container { max-width: var(--content-max); margin: 0 auto; }
.container-wide { max-width: var(--content-max-desktop); margin: 0 auto; }
section { padding: 56px 32px; }

/* BUTTONS */
.btn, .btn-outline { position: relative; overflow: hidden; }
.btn::after, .btn-outline::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after, .btn-outline:hover::after { left: 125%; }
.btn {
  display: block;
  width: 100%;
  padding: 22px 32px;
  background: var(--accent);
  color: var(--black);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background: var(--accent-pale); }
.btn-outline {
  display: block;
  width: 100%;
  padding: 20px 32px;
  background: transparent;
  color: var(--accent);
  border: 3px solid var(--accent);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { background: var(--accent); color: var(--black); }

/* ===== SITE NAV ===== */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--border);
}
/* Icon always sits left, in normal flow, on every breakpoint. */
#site-nav .nav-logo {
  position: static;
  display: flex;
  align-items: center;
  height: 34px;
  text-decoration: none;
}
#site-nav .nav-logo-icon {
  height: 100%;
  width: auto;
  display: block;
}
/* Mobile: the "CLEO" wordmark is centered over the whole bar, independent of the icon
   and the toggle button. #site-nav is positioned (fixed + backdrop-filter), so this
   centers relative to the bar itself. */
#site-nav .nav-logo-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.265rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: #B59458 !important;
}
#site-nav .nav-toggle {
  background: none;
  border: 1px solid #B59458;
  color: #B59458;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  margin-left: auto;
}
#site-nav .nav-links {
  position: fixed;
  /* #site-nav has backdrop-filter, which makes it the containing block for fixed descendants —
     "bottom: 0" resolved against the 61px nav bar itself, not the viewport, collapsing this panel
     to ~10px tall. Use an explicit height anchored to the viewport instead. */
  top: 61px; left: 0; right: 0;
  height: calc(100vh - 61px);
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
#site-nav .nav-links.open { transform: translateX(0); }
#site-nav .nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white-dim);
}
#site-nav .nav-links a:hover,
#site-nav .nav-links a.active { color: var(--accent); }
body { padding-top: 61px; }

@media (min-width: 900px) {
  #site-nav .nav-toggle { display: none; }
  #site-nav .nav-logo-text { position: static; left: auto; top: auto; transform: none; margin-left: 10px; }
  #site-nav .nav-links {
    position: static;
    height: auto;
    flex-direction: row;
    transform: none;
    background: transparent;
    gap: 36px;
  }
}

/* ===== SITE FOOTER ===== */
footer {
  background: var(--black);
  padding: 60px 32px;
  text-align: center;
  border-top: 3px solid var(--border);
}
footer .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 8px;
}
footer .sub {
  font-size: var(--text-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
footer .copy { font-size: var(--text-xs); color: var(--white-muted); }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
footer .footer-links a {
  font-size: var(--text-2xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-decoration: none;
}
footer .footer-links a:hover { color: var(--accent); }

/* IMAGES */
.img-real { width: 100%; display: block; object-fit: cover; }

/* Full-bleed narrative photos retain a cinematic frame, but use a taller responsive crop so
   portrait and 4:3 source images keep substantially more of their composition. */
.divider-photo { width: 100%; height: clamp(400px, 72vw, 1100px); overflow: hidden; }
.divider-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* CARDS (shared primitive) */
.card { border: 3px solid var(--border); padding: 32px 28px; margin-bottom: 16px; }
.card p { font-size: 0.95rem; color: var(--white-dim); text-align: center; line-height: 1.85; }

/* PLACEHOLDER CONTENT MARKER */
.placeholder-block {
  border: 1px dashed var(--border);
  padding: 24px;
  text-align: center;
  color: var(--white-muted);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem);
  letter-spacing: 0.03em;
}
.placeholder-tag {
  display: inline-block;
  font-size: var(--text-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 3px solid var(--border);
  padding: 4px 10px;
  margin-bottom: 12px;
}
