/* ============================================================
   WEDDING WEBSITE — CRETE 01.09.2026
   Palette: ivory, warm stone, sage olive, deep forest, gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&family=Mrs+Saint+Delafield&family=Marck+Script&display=swap');

/* Marck Script override for Russian hero tagline */
html[lang="ru"] .hero__names em {
  font-family: 'Marck Script', cursive;
  font-weight: 400;
  font-size: 0.45em;
  letter-spacing: 0.04em;
}

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

:root {
  --ivory:       #f8f4ee;
  --cream:       #f0e8da;
  --warm-white:  #faf7f2;
  --stone:       #c8b89a;
  --stone-light: #e0d4c0;
  --gold:        #b8965a;
  --gold-light:  #d4b07a;
  --sage:        #8a9e7e;
  --sage-light:  #b8c9ae;
  --olive:       #6b7c4e;
  --forest:      #3a4a2e;
  --bark:        #5c4a32;
  --charcoal:    #2e2a24;
  --ink:         #1c1a16;

  --ff-serif:    'Cormorant Garamond', Georgia, serif;
  --ff-sans:     'Jost', sans-serif;
  --ff-script:   'Mrs Saint Delafield', cursive;

  --nav-h:       70px;
  --max-w:       1180px;
  --radius:      2px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  background: var(--ivory);
  color: var(--charcoal);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

::selection { background: var(--sage-light); color: var(--forest); }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--forest);
}

.script {
  font-family: var(--ff-script);
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}

p { max-width: 62ch; }

a { color: inherit; text-decoration: none; }

/* ── TEXTURE OVERLAY ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
}

/* ── NAV ──────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(248, 244, 238, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone-light);
  transition: background var(--transition);
}

.site-nav__logo {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.site-nav__logo span { font-family: var(--ff-script); font-size: 30px; color: var(--gold); vertical-align: -4px; }

.site-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.site-nav__links a {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
  position: relative;
}

.site-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.site-nav__links a:hover { color: var(--gold); }
.site-nav__links a:hover::after,
.site-nav__links a.active::after { width: 100%; }
.site-nav__links a.active { color: var(--forest); }

/* ── DIVIDERS ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto 40px;
  max-width: 320px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone);
}
.divider__leaf {
  font-size: 18px;
  color: var(--sage);
  line-height: 1;
}

/* ── SECTION SHELL ────────────────────────────────────────── */
.section {
  padding: 100px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__eyebrow {
  font-family: var(--ff-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(36px, 5vw, 58px);
  font-style: italic;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.btn--dark {
  color: var(--forest);
  border-color: var(--forest);
}
.btn--dark:hover {
  background: var(--forest);
  color: var(--ivory);
}

.btn--gold {
  color: var(--gold);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold);
  color: var(--ivory);
}

.btn--light {
  color: var(--ivory);
  border-color: var(--ivory);
}
.btn--light:hover {
  background: var(--ivory);
  color: var(--forest);
}

/* ── PAGE HERO (non-landing pages) ───────────────────────── */
.page-hero {
  padding-top: var(--nav-h);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  border-bottom: 1px solid var(--stone-light);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(107,124,78,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(184,150,90,0.07) 0%, transparent 50%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding: 60px 48px 48px;
}

.page-hero__script {
  font-size: clamp(54px, 8vw, 90px);
  display: block;
  margin-bottom: 8px;
}

.page-hero__title {
  font-size: clamp(13px, 1.5vw, 15px);
  font-family: var(--ff-sans);
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bark);
}

/* ── OLIVE BRANCH DECORATION ─────────────────────────────── */
.olive-branch {
  display: block;
  text-align: center;
  font-size: 28px;
  color: var(--sage);
  margin: 24px 0;
  letter-spacing: 8px;
  opacity: 0.7;
}

/* ── CARD ─────────────────────────────────────────────────── */
.card {
  background: var(--warm-white);
  border: 1px solid var(--stone-light);
  padding: 40px 36px;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px; right: -6px; bottom: -6px;
  border: 1px solid var(--stone-light);
  z-index: -1;
  opacity: 0.5;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--forest);
  color: var(--stone-light);
  text-align: center;
  padding: 56px 48px;
}

.site-footer__script {
  font-size: 64px;
  color: var(--gold-light);
  display: block;
  margin-bottom: 12px;
}

.site-footer p {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  max-width: none;
  color: var(--stone);
}

/* ── LANGUAGE TOGGLE ──────────────────────────────────────── */
.lang-toggle {
  font-family: var(--ff-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--ivory);
  background: var(--sage);
  border: 1px solid var(--sage);
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
  border-radius: 0;
  position: relative;
}
.lang-toggle::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--sage-light);
  opacity: 0.4;
  pointer-events: none;
  animation: langPulse 2.5s ease-in-out infinite;
}
@keyframes langPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0; transform: scale(1.08); }
}
.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}
.lang-toggle.active-ru {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}
.lang-toggle.active-ru::after { border-color: var(--gold-light); }

/* ── FADE-IN ANIMATION ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ───────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--charcoal);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .site-nav { padding: 0 24px; }
  .hamburger { display: flex; }
  .site-nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--stone-light);
    padding: 16px 0;
  }
  .site-nav__links.open { display: flex; }
  .site-nav__links a { padding: 14px 24px; display: block; }
  .section { padding: 64px 24px; }
  .page-hero__content { padding: 48px 24px 36px; }
  .site-nav__logo { font-size: 17px; }
  .site-nav__logo span { font-size: 24px; }
}

/* ── OLIVE BRANCH SVG ─────────────────────────────────────── */
.olive-svg {
  width: 56px;
  height: 32px;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.85;
}
.site-footer__script { display: block; margin-bottom: 12px; }

/* ── FOOTER OLIVE IMAGE ───────────────────────────────────── */
.footer-olive {
  width: 128px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  opacity: 0.75;
  filter: brightness(1.15);
}