/* ══════════════════════════════════════════
   CHRISTIAN IX EVENTS — Stylesheet
   Colors: Gold #cfa670 · Dark #1a1209 · Cream #f5f0e8
   ══════════════════════════════════════════ */

:root {
  --gold:        #cfa670;
  --gold-light:  #e8c898;
  --gold-dark:   #a07840;
  --dark:        #1a1209;
  --dark-mid:    #2a1e0f;
  --dark-soft:   #5a4530;
  --cream:       #f5f0e8;
  --text:        #2c2017;
  --text-light:  #6b5740;

  --font-script: 'Kristi', cursive;
  --font-serif:  'Cormorant Garamond', serif;
  --font-sans:   'Lato', sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --transition:  0.4s var(--ease-out);
}

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

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

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

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════════
   TOP NAV
   ══════════════════════════════════════════ */
.events-topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(26, 18, 9, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(207, 166, 112, 0.15);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: color var(--transition);
}
.back-link:hover { color: var(--gold); }
.back-link i { font-size: 0.7rem; }

.topnav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.topnav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 0.5rem 1.3rem;
  transition: background var(--transition), color var(--transition);
}
.topnav-cta:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.events-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 9, 0.45) 0%,
    rgba(26, 18, 9, 0.6) 50%,
    rgba(26, 18, 9, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 5rem;
  max-width: 900px;
}

.hero-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--cream);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.hero-title .script-title {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(5rem, 14vw, 10rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(248, 244, 238, 0.72);
  margin-bottom: 3.5rem;
}

.scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(207, 166, 112, 0.4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.85rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(7px); opacity: 0.7; }
}

/* ══════════════════════════════════════════
   GOLD RULE UTILITY
   ══════════════════════════════════════════ */
.gold-rule {
  width: 60px;
  height: 1px;
  background: var(--gold-dark);
  margin: 1.5rem auto 0;
}

/* ══════════════════════════════════════════
   INTRO
   ══════════════════════════════════════════ */
.intro-section {
  background: var(--cream);
  color: var(--text);
  padding: 7rem 2rem;
}

.intro-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.section-eyebrow.light { color: var(--gold-light); }

.intro-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 2rem;
}

.intro-heading .script,
.occasions-title .script,
.scale-heading .script {
  display: block;
  font-family: var(--font-script);
  font-size: 1.65em;
  color: var(--gold-dark);
  line-height: 1;
  font-weight: 400;
}

.intro-lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.intro-body {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.85;
}

.intro-image {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.intro-image::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(160, 120, 64, 0.45);
  z-index: 0;
  pointer-events: none;
}

.intro-image img {
  position: relative;
  z-index: 1;
  object-position: center top;
}

/* ══════════════════════════════════════════
   FOOD GALLERY
   ══════════════════════════════════════════ */
.gallery-section {
  background: var(--dark);
  overflow: hidden;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 3px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item-wide {
  grid-column: span 2;
}

.gallery-item img {
  transition: transform 0.9s var(--ease-out), filter 0.6s ease;
  filter: brightness(0.8) saturate(0.9);
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(1) saturate(1);
}

.gallery-item:nth-child(even) img {
  object-position: center top;
}

/* ══════════════════════════════════════════
   CHEF PARALLAX
   ══════════════════════════════════════════ */
.chef-parallax {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chef-parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.chef-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 9, 0.45) 0%,
    rgba(26, 18, 9, 0.72) 100%
  );
}

.chef-parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 740px;
}

.chef-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.chef-quote {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.chef-sub {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 244, 238, 0.55);
}

/* ══════════════════════════════════════════
   OCCASIONS
   ══════════════════════════════════════════ */
.occasions-section {
  background: var(--dark-mid);
  padding: 7rem 2rem;
  position: relative;
}

.occasions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}

.occasions-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.occasions-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 3.5rem;
  line-height: 1.05;
}

.occasions-title .script {
  color: var(--gold);
}

.occasions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.occasion-tag {
  padding: 0.6rem 1.5rem;
  border: 1px solid rgba(207, 166, 112, 0.3);
  color: rgba(248, 244, 238, 0.85);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.occasion-tag:hover {
  border-color: var(--gold);
  background: rgba(207, 166, 112, 0.08);
  color: var(--gold-light);
}

/* ══════════════════════════════════════════
   SCALE / STAFF SECTION
   ══════════════════════════════════════════ */
.scale-section {
  background: var(--cream);
  color: var(--text);
  padding: 7rem 2rem;
}

.scale-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.scale-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  height: 460px;
}

.scale-img-a,
.scale-img-b,
.scale-img-c {
  overflow: hidden;
}

.scale-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.05;
  margin-bottom: 2rem;
}

.scale-heading .script {
  color: var(--gold-dark);
}

.scale-body {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.85;
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.events-cta-section {
  background: var(--dark);
  padding: 9rem 2rem;
  text-align: center;
  position: relative;
}

.events-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
}

.cta-inner {
  max-width: 660px;
  margin: 0 auto;
}

.cta-script {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 10vw, 4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.cta-sub {
  font-size: 0.93rem;
  color: rgba(248, 244, 238, 0.55);
  margin-bottom: 3rem;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.btn-cta-primary:hover { background: var(--gold-light); }

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border: 1px solid rgba(207, 166, 112, 0.38);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition);
}
.btn-cta-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.events-footer {
  background: var(--dark);
  border-top: 1px solid rgba(207, 166, 112, 0.1);
  padding: 3rem 2rem;
  text-align: center;
  color: rgba(248, 244, 238, 0.45);
  font-size: 0.85rem;
  line-height: 1.9;
}

.events-footer .footer-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 1.5rem;
}

.events-footer a {
  color: var(--gold-dark);
  transition: color var(--transition);
}
.events-footer a:hover { color: var(--gold); }

.footer-back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 960px) {
  .intro-grid,
  .scale-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-section { padding: 5rem 1.5rem; }
  .intro-image { height: 400px; }
  .intro-image::before { display: none; }

  .scale-section { padding: 5rem 1.5rem; }

  .occasions-section { padding: 5rem 1.5rem; }
  .events-cta-section { padding: 5rem 1.5rem; }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item-wide { grid-column: span 2; }

  .scale-images {
    grid-template-columns: repeat(3, 1fr);
    height: 300px;
  }

  .chef-parallax { height: 50vh; min-height: 300px; }
  .chef-parallax-bg { background-attachment: scroll; }
}

@media (max-width: 600px) {
  .events-topnav { padding: 0 1.25rem; }
  .back-link span { display: none; }

  .hero-content { padding: 6rem 1.25rem 3rem; }
  .hero-sub { margin-bottom: 2rem; }

  .intro-section { padding: 4rem 1.25rem; }
  .intro-image { height: 320px; }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .occasions-section { padding: 4rem 1.25rem; }
  .events-cta-section { padding: 4rem 1.25rem; }
  .scale-section { padding: 4rem 1.25rem; }

  .scale-images {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .scale-img-a,
  .scale-img-b,
  .scale-img-c {
    height: 200px;
  }
  .scale-img-c { grid-column: span 2; }

  .chef-parallax { height: 45vh; min-height: 260px; }

  .occasion-tag {
    font-size: 0.88rem;
    padding: 0.5rem 1.1rem;
  }

  .cta-actions { flex-direction: column; align-items: center; }
  .btn-cta-primary,
  .btn-cta-secondary { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(2.8rem, 9vw, 3.5rem);
  }
  .hero-title .script-title {
    font-size: clamp(4rem, 14vw, 5rem);
  }

  .intro-heading { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .occasions-title { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .scale-heading { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .cta-heading { font-size: clamp(1.5rem, 7vw, 2rem); }

  .scale-images {
    grid-template-columns: 1fr;
  }
  .scale-img-a,
  .scale-img-b,
  .scale-img-c {
    height: 220px;
    grid-column: auto;
  }

  .gallery-strip { grid-auto-rows: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
