/* ════════════════════════════════════════════════════════════
   THE DREAM VILLAGE — shared design system
   Wine · Butter · Dusty Blue   /   Cormorant Garamond + Jost
   ════════════════════════════════════════════════════════════ */

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

:root {
  --wine:        #5C1A2E;
  --wine-deep:   #3E0F1E;
  --wine-mid:    #7A2840;
  --wine-blush:  #A04060;
  --butter:      #EDD98A;
  --butter-warm: #F2E6B0;
  --butter-text: #FAF3D8;
  --blue:        #B8CDD9;
  --blue-light:  #D4E4ED;
  --blue-pale:   #EBF3F7;
  --ivory:       #FAF6EE;
  --ivory-warm:  #EDE6D6;
  --near-black:  #1E080F;
  --body-ink:    #4A2535;
  --blue-ink:    #5E7E8F;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  --maxw: 1180px;
  --pad: clamp(1.5rem, 5vw, 5rem);
}

html { scroll-behavior: smooth; font-size: 112.5%; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--wine-deep);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
.photo-fill { width: 100%; height: 100%; object-fit: cover; object-position: center; }
a { color: inherit; }

/* ── shared type primitives ─────────────────────────── */
.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine-blush);
  font-weight: 400;
}
.section-label {
  font-size: 0.67rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--wine-blush);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--butter);
  display: inline-block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--wine);
  letter-spacing: -0.005em;
}
.section-title em { font-style: italic; color: var(--wine-blush); }
.divider { width: 48px; height: 1.5px; background: var(--butter); margin: 1.4rem 0; }
.body-text {
  color: var(--body-ink);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 1.1rem;
  max-width: 56ch;
  text-wrap: pretty;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--wine-mid);
}

/* ── buttons ────────────────────────────────────────── */
.btn {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, transform 0.2s, border-color 0.3s;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--butter); color: var(--wine-deep); }
.btn-primary:hover { background: var(--butter-warm); transform: translateY(-2px); }
.btn-wine { background: var(--wine); color: var(--butter-text); }
.btn-wine:hover { background: var(--wine-mid); color: var(--butter); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--wine-mid);
  border-bottom: 1px solid rgba(92,26,46,0.3);
  padding: 0 0 4px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
}
.btn-ghost:hover { color: var(--wine); border-color: var(--wine); }
.btn-ghost-light {
  background: transparent;
  color: rgba(184,205,217,0.75);
  border-bottom: 1px solid rgba(184,205,217,0.3);
  padding: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}
.btn-ghost-light:hover { color: var(--blue-light); border-color: var(--blue-light); }

/* ── icons ──────────────────────────────────────────── */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── NAV ────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.15rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250,246,238,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92,26,46,0.1);
  transition: padding 0.3s, background 0.3s;
}
nav.site-nav.scrolled { padding: 0.8rem var(--pad); background: rgba(250,246,238,0.97); }
nav.on-dark {
  background: rgba(62,15,30,0.55);
  border-bottom-color: rgba(242,230,176,0.12);
}
nav.on-dark.scrolled { background: rgba(62,15,30,0.92); }
.nav-logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--wine);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.nav-logo .mark { color: var(--wine-blush); display: inline-flex; align-items: center; }
.nav-logo .mark svg { width: 22px; height: 22px; }
.nav-logo .mark.mark-moon { width: 40px; height: 40px; }
.nav-logo .mark.mark-moon svg { width: 28px; height: 28px; }
.footer-logo .footer-moon { display: inline-flex; align-items: center; color: var(--butter); }
.footer-logo .footer-moon { width: 34px; height: 34px; }
.footer-logo .footer-moon svg { width: 25px; height: 25px; }
.nav-logo .mark.mark-sssh {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.04em;
  width: 36px; height: 36px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-right: 1px;
}
.nav-logo .mark.mark-sssh .cap { font-size: 1.32em; }
.nav-logo em { font-style: italic; color: var(--wine-blush); margin-left: -0.2em; }
nav.on-dark .nav-logo { color: var(--butter-text); }
nav.on-dark .nav-logo em, nav.on-dark .nav-logo .mark { color: var(--butter); }

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--wine);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--wine-blush);
  transition: width 0.3s;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--wine); }
nav.on-dark .nav-links a { color: rgba(250,243,216,0.96); }
nav.on-dark .nav-links a:hover, nav.on-dark .nav-links a.active { color: var(--butter); }
nav.on-dark .nav-links a:not(.nav-cta)::after { background: var(--butter); }

.nav-cta {
  background: var(--wine);
  color: var(--butter-text) !important;
  padding: 0.6rem 1.4rem;
  letter-spacing: 0.13em;
  border-radius: 100px;
}
.nav-cta:hover { background: var(--wine-mid); color: var(--butter) !important; }
nav.on-dark .nav-cta { background: var(--butter); color: var(--wine-deep) !important; }
nav.on-dark .nav-cta:hover { background: var(--butter-warm); }

/* ── language switcher (flags in nav) ──────────────────── */
.lang-switch-group { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.4rem; }
.lang-switch {
  width: 24px; height: 17px; padding: 0; border: 1px solid transparent; border-radius: 3px;
  background: none; cursor: pointer; overflow: hidden; display: block; opacity: 0.55;
  transition: opacity 0.25s, border-color 0.25s, transform 0.2s;
}
.lang-switch:hover { opacity: 0.9; transform: translateY(-1px); }
.lang-switch.is-active { opacity: 1; border-color: var(--butter); }
.lang-switch-flag, .lang-switch-flag svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1080px) {
  .lang-switch-group { margin: 0.6rem 0 0; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none; border: none;
  padding: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--wine); transition: 0.3s; }
nav.on-dark .nav-toggle span { background: var(--butter-text); }

/* ── footer ─────────────────────────────────────────── */
footer.site-footer {
  background: var(--near-black);
  padding: 4.5rem var(--pad) 2.5rem;
  color: rgba(250,243,216,0.5);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242,230,176,0.08);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--butter-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo em { font-style: italic; color: var(--butter); margin-left: -0.2em; }
.footer-blurb { margin-top: 1.1rem; font-size: 0.9rem; line-height: 1.8; max-width: 34ch; color: rgba(184,205,217,0.74); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--butter);
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a {
  font-size: 0.86rem;
  color: rgba(184,205,217,0.8);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--butter); }
.footer-base {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184,205,217,0.3);
}

/* ── image slot framing ─────────────────────────────── */
image-slot {
  --slot-bg: var(--ivory-warm);
  background: var(--ivory-warm);
  display: block;
}
.framed { position: relative; }
.framed::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(242,230,176,0.5);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

/* ── reveal animation ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── page hero (interior pages) ─────────────────────── */
.page-hero {
  background: var(--wine-deep);
  padding: 12rem var(--pad) 6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(184,205,217,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(242,230,176,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--butter); opacity: 0.85; margin-bottom: 1.3rem; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--butter-text);
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--butter); }
.page-hero .page-hero-sub {
  color: rgba(231,240,246,0.92);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 48ch;
  margin-top: 1.6rem;
}

/* ── generic section wrap ───────────────────────────── */
.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ── responsive base ────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(92,26,46,0.12);
    padding: 1.4rem var(--pad);
    gap: 1.3rem;
    align-items: flex-start;
  }
  nav.on-dark .nav-links { background: var(--wine-deep); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
