/* ============================================================
   TRIVIUM FILM — Shared Stylesheet
   Direction: Romantic & Cinematic
   Fonts: Cormorant Garant (display) + Jost (body)
   ============================================================ */

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

/* ---- DESIGN TOKENS ---------------------------------------- */
:root {
  --c-cream:        #FEFCF9;
  --c-cream-2:      #F5EEE3;
  --c-cream-3:      #EDE3D5;
  --c-dark:         #110E0A;
  --c-dark-2:       #1B1710;
  --c-dark-3:       #251E15;
  --c-text:         #231B12;
  --c-text-2:       #7A6855;
  --c-text-3:       #A69480;
  --c-gold:         #B8864A;
  --c-gold-light:   #CFA468;
  --c-gold-pale:    #E8D5B8;
  --c-border:       rgba(35, 27, 18, 0.10);
  --c-border-warm:  rgba(184, 134, 74, 0.22);

  --f-display:  'Cormorant Garant', Georgia, serif;
  --f-body:     'Jost', system-ui, sans-serif;

  --nav-h:      72px;
  --max-w:      1200px;
  --section-py: clamp(4.5rem, 9vw, 9rem);
  --gutter:     clamp(1.5rem, 4.5vw, 3.5rem);
}

/* ---- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }

body {
  font-family: var(--f-body);
  background: var(--c-cream);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- FILM GRAIN OVERLAY ------------------------------------ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  background-repeat: repeat;
}

/* ---- LANGUAGE SYSTEM --------------------------------------- */
.en { display: none; }
html.lang-en .no { display: none; }
html.lang-en .en { display: unset; }

/* ---- SCROLL REVEAL ----------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 0.85s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.42s; }

/* ---- NAVIGATION -------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--c-cream);
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}
nav.on-light {
  color: var(--c-text);
  background: rgba(248, 245, 240, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo em { font-style: italic; font-weight: 300; }

.nav-center {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  position: absolute;
  left: 50%; transform: translateX(-50%);
}
.nav-center a {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.68;
  transition: opacity 0.2s;
}
.nav-center a:hover, .nav-center a.active { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.42;
  transition: opacity 0.2s;
  padding: 0;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.active { opacity: 1; font-weight: 500; }
.lang-sep { opacity: 0.22; font-size: 0.7rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(17, 14, 10, 0.97);
  backdrop-filter: blur(12px);
  z-index: 499;
  padding: 2.5rem var(--gutter) 3rem;
  display: none;
  flex-direction: column;
  gap: 0;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.mobile-menu.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--c-cream);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.mobile-menu a:hover { opacity: 1; }
.mobile-lang {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.mobile-lang-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--c-cream);
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.mobile-lang-btn.active {
  background: rgba(184,134,74,0.2);
  border-color: var(--c-gold);
}

/* ---- COMMON SECTION PARTS ---------------------------------- */
.section-wrapper {
  padding: var(--section-py) var(--gutter);
}
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: block;
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--c-gold-light); }

.section-heading {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-heading em { font-style: italic; font-weight: 300; }

/* ---- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.25s, color 0.25s, transform 0.2s, border-color 0.25s;
  line-height: 1;
  padding: 1rem 2.25rem;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--c-gold);
  color: #fff;
}
.btn-gold:hover { background: var(--c-gold-light); }

.btn-outline-dark {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(35,27,18,0.3);
}
.btn-outline-dark:hover { border-color: var(--c-text); background: rgba(35,27,18,0.04); }

.btn-outline-light {
  background: transparent;
  color: var(--c-cream);
  border: 1px solid rgba(248,245,240,0.3);
}
.btn-outline-light:hover { border-color: rgba(248,245,240,0.75); background: rgba(248,245,240,0.05); }

/* ---- FOOTER ----------------------------------------------- */
footer {
  background: var(--c-dark);
  color: rgba(248,245,240,0.45);
  padding: 3.5rem var(--gutter);
  border-top: 1px solid rgba(248,245,240,0.06);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}
.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-logo {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: rgba(248,245,240,0.7);
  text-decoration: none;
  font-weight: 500;
}
.footer-logo em { font-style: italic; font-weight: 300; }
.footer-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  font-weight: 300;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
}
.footer-nav a {
  font-family: var(--f-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(248,245,240,0.85); }

.footer-contact {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 2;
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover { color: rgba(248,245,240,0.85); }

.footer-social {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.footer-social a {
  font-family: var(--f-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover { color: rgba(248,245,240,0.85); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248,245,240,0.06);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 768px) {
  .nav-center { display: none; }
  .hamburger { display: flex; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-contact { text-align: center; }
  .footer-social { justify-content: center; }
}
/* ---- VIDEO MODAL (add to bottom of style.css) ------------ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.video-modal.is-open { opacity: 1; }

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,8,5,0.92);
  cursor: pointer;
}
.video-modal-inner {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
}
.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(248,245,240,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
}
.video-modal-close:hover { color: rgba(248,245,240,1); }
.video-modal-frame {
  aspect-ratio: 16/9;
  background: #000;
}
.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- LOGO IMAGES ------------------------------------------ */
.nav-logo { line-height: 0; padding: 0; }
.nav-logo-img { height: 30px; width: auto; display: block; transition: opacity 0.3s; }
.logo-on-dark { display: block; }
.logo-on-light { display: none; }
nav.on-light .logo-on-dark { display: none; }
nav.on-light .logo-on-light { display: block; }

.footer-logo { line-height: 0; }
.footer-logo-img { height: 26px; width: auto; opacity: 0.75; transition: opacity 0.2s; }
.footer-logo-img:hover { opacity: 1; }

/* ---- WEDDING BADGE (hero) --------------------------------- */
.wedding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(184,134,74,0.45);
  padding: 0.45rem 1rem;
  margin-bottom: 2rem;
  font-family: var(--f-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold-light);
}
.wedding-badge::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--c-gold);
}
