/* ─── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #1a1612;
  --ink-soft: #3d352c;
  --gold:     #b89b6a;
  --gold-lt:  #d4bb8c;
  --cream:    #f7f3ed;
  --cream-dk: #ede6db;
  --white:    #ffffff;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;
  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Remove WP admin bar offset from hero */
.hero { scroll-margin-top: 0; }
.admin-bar .hero { padding-top: 32px; }

/* ─── Language Toggle ─────────────────────────────────────────────── */
.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  background: rgba(247, 243, 237, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 155, 106, 0.3);
  border-radius: 50px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 4px 24px rgba(26,22,18,0.1);
}

.admin-bar .lang-toggle { top: calc(1.5rem + 32px); }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 40px;
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: var(--transition);
}

.lang-btn .flag { font-size: 1.1rem; line-height: 1; }
.lang-btn.active { background: var(--gold); color: var(--white); }
.lang-btn:hover:not(.active) { background: var(--cream-dk); }

.lang-sep {
  width: 1px;
  height: 1.1rem;
  background: rgba(184,155,106,0.4);
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(184,155,106,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(90,110,130,0.15) 0%, transparent 60%),
    linear-gradient(175deg, #0e1118 0%, #1a1612 45%, #1e1a14 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 760px;
}

/* ─── Logo ────────────────────────────────────────────────────────── */
.logo-wrap {
  margin-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  animation: fadeUp 1s ease both;
}

/* White logo on dark background via CSS */
.logo-image-wrap {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 260px;
  max-width: 72vw;
  height: auto;
  display: block;
  /* Invert the black-on-white logo to white-on-transparent for the dark hero */
  filter: invert(1);
  mix-blend-mode: screen;
  /* Subtle golden tint */
  filter: invert(1) sepia(0.25) saturate(1.4) brightness(1.05);
}

.logo-tagline {
  font-family: var(--ff-serif);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(212,187,140,0.7);
  letter-spacing: 0.06em;
}

/* ─── Hero sub / divider ──────────────────────────────────────────── */
.hero-sub {
  font-family: var(--ff-serif);
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(247,243,237,0.72);
  line-height: 1.55;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2.2rem auto 0;
  animation: fadeUp 1s 0.3s ease both;
}

/* ─── Scroll indicator ────────────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  animation: fadeUp 1s 0.6s ease both;
  color: rgba(184,155,106,0.7);
  font-family: var(--ff-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Story Section ───────────────────────────────────────────────── */
.story { background: var(--cream); position: relative; }

.story-edge {
  height: 80px;
  background: var(--ink);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.story-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

.story-label {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.story-label.visible { opacity: 1; transform: none; }

.story-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s 0.1s ease, transform 0.8s 0.1s ease;
}
.story-title.visible { opacity: 1; transform: none; }

.story-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  transition: opacity 0.7s 0.2s ease;
}
.story-divider.visible { opacity: 1; }

.story-body {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink-soft);
}

.story-body p {
  margin-bottom: 1.6em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.story-body p.visible { opacity: 1; transform: none; }
.story-body p:first-child { font-size: 1.3rem; font-style: italic; color: var(--ink); }
.story-body strong { font-weight: 600; color: var(--ink); }

/* ─── Pull Quote ──────────────────────────────────────────────────── */
.pull-quote {
  border-left: 2px solid var(--gold);
  margin: 2.5rem 0;
  padding: 1.2rem 1.8rem;
  background: rgba(184,155,106,0.07);
  border-radius: 0 8px 8px 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.pull-quote.visible { opacity: 1; transform: none; }
.pull-quote p {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 300;
  color: var(--ink);
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ─── Attributes ──────────────────────────────────────────────────── */
.attrs { background: var(--ink); padding: 4rem 2rem; }

.attrs-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.attr-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.attr-item.visible { opacity: 1; transform: none; }

.attr-icon { font-size: 1.8rem; margin-bottom: 0.8rem; display: block; }

.attr-title {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-lt);
  margin-bottom: 0.4rem;
}

.attr-text {
  font-family: var(--ff-sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(247,243,237,0.5);
  line-height: 1.6;
}

/* ─── Closing ─────────────────────────────────────────────────────── */
.closing {
  background: var(--cream);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.closing-quote {
  font-family: var(--ff-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.closing-quote.visible { opacity: 1; transform: none; }

.closing-sig {
  font-family: var(--ff-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  opacity: 0;
  transition: opacity 0.8s 0.2s ease;
}
.closing-sig.visible { opacity: 1; }

/* ─── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(184,155,106,0.15);
}

.footer-logo {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(247,243,237,0.4);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.footer-text {
  font-family: var(--ff-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(247,243,237,0.25);
}

/* ─── Language visibility ─────────────────────────────────────────── */
[data-lang] { display: none; }
html.lang-en [data-lang="en"],
body.lang-en [data-lang="en"] { display: block; }
html.lang-fr [data-lang="fr"],
body.lang-fr [data-lang="fr"] { display: block; }

[data-lang-inline] { display: none; }
html.lang-en [data-lang-inline="en"],
body.lang-en [data-lang-inline="en"] { display: inline; }
html.lang-fr [data-lang-inline="fr"],
body.lang-fr [data-lang-inline="fr"] { display: inline; }

/* ─── Animations ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .logo-img { width: 200px; }
  .attrs-inner { grid-template-columns: 1fr; gap: 2rem; }
  .lang-toggle { top: 1rem; right: 1rem; }
  .story-inner { padding: 3rem 1.25rem 4rem; }
  .hero-sub { font-size: 1.2rem; }
}
