/* ============================================
   COFFEE FEST HALIFAX — PREMIUM DESIGN SYSTEM
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
  /* ── Official Brand Palette ── */
  --navy:             #192E41;
  --cream:            #f1e0c5;

  /* Mapped tokens */
  --bg-primary:       var(--cream);
  --bg-secondary:     var(--navy);
  --bg-card:          var(--cream);
  --bg-glass:         rgba(241,224,197,0.92);

  --text-primary:     var(--navy);
  --text-secondary:   var(--navy);
  --text-muted:       var(--navy);

  --accent-gold:      var(--navy);
  --accent-amber:     var(--navy);
  --accent-copper:    var(--navy);
  --accent-cream:     var(--cream);
  --accent-espresso:  var(--navy);

  /* Gradients */
  --gradient-gold:    linear-gradient(135deg, var(--navy) 0%, var(--navy) 100%);
  --gradient-navy:    linear-gradient(180deg, var(--navy) 0%, var(--navy) 100%);
  --gradient-hero:    linear-gradient(180deg, rgba(25,46,65,0.4) 0%, rgba(25,46,65,0.7) 40%, rgba(25,46,65,0.95) 100%);
  --gradient-top:     linear-gradient(180deg, rgba(25,46,65,0.85) 0%, rgba(25,46,65,0) 100%);

  /* Spacing */
  --section-padding:  clamp(4rem, 10vw, 8rem);
  --container-max:    1200px;

  /* Transitions */
  --ease-out-expo:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:   cubic-bezier(0.25, 1, 0.5, 1);

  /* Blur */
  --blur-glass:       20px;
  --blur-heavy:       40px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: inherit;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand scrollbar */
::-webkit-scrollbar        { width: 8px; }
::-webkit-scrollbar-track  { background: var(--cream-soft); }
::-webkit-scrollbar-thumb  { background: var(--navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

::selection {
  background: inherit;
  color: var(--bg-primary);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s var(--ease-out-quart);
}

a:hover {
  color: var(--accent-cream);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-espresso);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-copper);
}

/* ---------- Utility Classes ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--gradient-gold);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: inherit;
}

/* ---------- Loading Screen ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-bean {
  width: 48px;
  height: 48px;
  position: relative;
}

.loader-bean::before,
.loader-bean::after {
  content: '';
  font-size: 2.5rem;
  position: absolute;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-bean::after {
  animation-delay: 0.7s;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.loader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: inherit;
  animation: loaderFade 1.4s ease-in-out infinite;
}

@keyframes loaderFade {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.5s var(--ease-out-expo);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(200,164,78,0.2);
  transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: var(--navy);
  box-shadow: 0 4px 30px rgba(25,46,65,0.35);
  border-bottom: 1px solid rgba(200,164,78,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  font-size: 1.8rem;
}

.nav-logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: height 0.5s var(--ease-out-expo);
}

.navbar.scrolled .nav-logo-img {
  height: 48px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: inherit;
  letter-spacing: 0.02em;
}

.nav-logo-text span {
  color: inherit;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  position: relative;
  opacity: 0.85;
  transition: all 0.3s var(--ease-out-quart);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: inherit;
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.5rem 1.4rem !important;
  border: 1px solid var(--gold) !important;
  border-radius: 2px;
  color: var(--gold) !important;
  letter-spacing: 0.12em !important;
  opacity: 1 !important;
  transition: all 0.4s var(--ease-out-expo) !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: all 0.3s var(--ease-out-expo);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--gradient-hero);
}

.hero-top-fade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 3;
  background: var(--gradient-top);
}

/* Particle steam effect */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  background: rgba(200, 164, 78, 0.15);
  border-radius: 50%;
  animation: particleRise linear infinite;
}

@keyframes particleRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

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

.hero-dateline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-logo-wrap {
  opacity: 0;
  animation: heroLogoIn 1.2s var(--ease-out-expo) 0.7s forwards;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  overflow: visible;
}

.steam-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  mix-blend-mode: screen;
}

.hero-logo-img {
  width: clamp(280px, 45vw, 580px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(25, 46, 65, 0.25))
          drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
  transition: filter 0.4s ease;
}

.hero-logo-img:hover {
  filter: drop-shadow(0 0 80px rgba(25, 46, 65, 0.25))
          drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-logo {
  display: block;
  max-width: 95%;
  width: 800px;
  height: auto;
  margin: 4rem auto 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
  filter: drop-shadow(0 4px 40px rgba(25, 46, 65, 0.45));
}

.hero-location {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-location span {
  color: var(--cream);
}

/* Coming Soon Badge */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(25, 46, 65, 0.25);
  border-radius: 50px;
  background: rgba(25, 46, 65, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.1s forwards;
}

.coming-soon-badge .pulse {
  width: 8px;
  height: 8px;
  background: inherit;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(25, 46, 65, 0.25); }
  50%      { box-shadow: 0 0 0 14px rgba(25, 46, 65, 0.25); }
}

.coming-soon-badge span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.3s forwards;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  display: block;
  min-width: 80px;
}

.countdown-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 0.5rem;
  display: block;
}

.countdown-separator {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  opacity: 0.5;
  align-self: flex-start;
  margin-top: 0.25rem;
  animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.15; }
}

/* Hero CTA */
.hero-cta {
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.5s forwards;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 2s forwards;
}

.scroll-indicator span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  display: block;
  margin-bottom: 0.75rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #ffffff, transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { height: 40px; opacity: 1; }
  50%      { height: 20px; opacity: 0.3; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-primary);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(25, 46, 65, 0.25);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(200, 164, 78, 0.4);
}

.btn-outline:hover {
  background: rgba(200, 164, 78, 0.1);
  border-color: inherit;
  transform: translateY(-2px);
  color: inherit;
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 0.9rem;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  padding: var(--section-padding) 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image-accent {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 1px solid rgba(25, 46, 65, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.about-stats {
  position: absolute;
  bottom: -30px;
  right: -30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(25, 46, 65, 0.25);
  border-radius: 4px;
  overflow: hidden;
  z-index: 2;
}

.about-stat {
  background: var(--bg-secondary);
  padding: 1.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
}

.about-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}

.about-stat-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  margin-top: 0.4rem;
}

.about-text p {
  color: inherit;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.about-text p:first-of-type {
  font-size: 1.15rem;
  color: inherit;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(25, 46, 65, 0.25);
  border: 1px solid rgba(25, 46, 65, 0.25);
  border-radius: 4px;
  transition: all 0.3s var(--ease-out-quart);
}

.about-feature:hover {
  background: rgba(25, 46, 65, 0.25);
  border-color: rgba(25, 46, 65, 0.25);
  transform: translateX(4px);
}

.about-feature-icon {
  font-size: 1.3rem;
}

.about-feature-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: inherit;
}

/* =============================================
   DIVIDER
   ============================================= */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.section-divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(25, 46, 65, 0.25), transparent);
}

.section-divider .icon {
  color: inherit;
  font-size: 1.2rem;
  opacity: 0.5;
}

/* =============================================
   EXPERIENCE SECTION (What to Expect)
   ============================================= */
.experience {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.experience-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.experience-header p {
  color: inherit;
  font-size: 1.1rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.experience-card {
  position: relative;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  color: var(--navy);
  border: 1px solid rgba(25, 46, 65, 0.15);
  border-radius: 4px;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.experience-card:hover {
  transform: translateY(-8px);
  border-color: rgba(25, 46, 65, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 30px rgba(25, 46, 65, 0.06);
}

.experience-card:hover::before {
  transform: scaleX(1);
}

.experience-card-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(25, 46, 65, 0.15);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.experience-card-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
}

.experience-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: inherit;
}

.experience-card p {
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   GALLERY / IMAGE SHOWCASE
   ============================================= */
.showcase {
  padding: var(--section-padding) 0;
  position: relative;
}

.showcase-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.showcase-header p {
  color: inherit;
  font-size: 1.1rem;
}

.showcase-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 300px 300px;
  gap: 1.5rem;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.showcase-item:nth-child(1) {
  grid-column: span 5;
}

.showcase-item:nth-child(2) {
  grid-column: span 4;
}

.showcase-item:nth-child(3) {
  grid-column: span 3;
}

.showcase-item:nth-child(4) {
  grid-column: span 7;
}

.showcase-item:nth-child(5) {
  grid-column: span 5;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.showcase-item:hover img {
  transform: scale(1.08);
}

.showcase-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 6, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.showcase-item:hover .showcase-item-overlay {
  opacity: 1;
}

.showcase-item-overlay span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: inherit;
}

/* =============================================
   HALIFAX SECTION
   ============================================= */
.halifax {
  padding: var(--section-padding) 0;
  position: relative;
}

.halifax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.halifax-content {
  order: 2;
}

.halifax-image-wrapper {
  order: 1;
  position: relative;
}

.halifax-image {
  border-radius: 4px;
  overflow: hidden;
}

.halifax-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.halifax-image:hover img {
  transform: scale(1.03);
}

.halifax-content p {
  color: inherit;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.halifax-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.halifax-highlight {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(25, 46, 65, 0.25);
  border-left: 3px solid inherit;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s var(--ease-out-quart);
}

.halifax-highlight:hover {
  background: rgba(25, 46, 65, 0.25);
  transform: translateX(4px);
}

.halifax-highlight-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.halifax-highlight h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 0.25rem;
}

.halifax-highlight p {
  font-size: 0.9rem !important;
  color: inherit !important;
  margin-bottom: 0 !important;
}

/* =============================================
   NEWSLETTER / SIGNUP SECTION
   ============================================= */
.signup {
  padding: var(--section-padding) 0;
  position: relative;
  background: var(--navy);
  color: var(--cream);
}

.signup-wrapper {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.signup-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(25, 46, 65, 0.25) 0%, rgba(196, 127, 44, 0.08) 100%);
  border: 1px solid rgba(25, 46, 65, 0.25);
  border-radius: 8px;
}

.signup-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(25, 46, 65, 0.25), transparent 50%);
}

.signup-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.signup-content .section-title {
  margin-bottom: 1rem;
}

.signup-content p {
  color: inherit;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.signup-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(25, 46, 65, 0.4);
  border-radius: 2px;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s var(--ease-out-quart);
}

.signup-form input[type="email"]::placeholder {
  color: rgba(25, 46, 65, 0.6);
}

.signup-form input[type="email"]:focus {
  border-color: inherit;
  box-shadow: 0 0 0 3px rgba(25, 46, 65, 0.25);
}

.signup-form button {
  white-space: nowrap;
}

.signup-note {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  color: inherit;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 4rem 0 2rem;
  background: var(--navy);
  color: var(--cream);
  border-top: 1px solid rgba(200,164,78,0.25);
}

.footer .footer-brand p,
.footer .footer-links a,
.footer .footer-bottom p,
.footer .footer-title {
  color: var(--cream);
}

.footer .footer-title {
  color: #d4af37;
}

.footer .section-title,
.footer .footer-brand p { color: var(--cream); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: inherit;
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: inherit;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: inherit;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: inherit;
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(25, 46, 65, 0.25);
  border-radius: 50%;
  color: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease-out-quart);
}

.footer-social a:hover {
  background: inherit;
  border-color: inherit;
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(25, 46, 65, 0.25);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: inherit;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
  .about-grid,
  .halifax-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .halifax-content { order: 1; }
  .halifax-image-wrapper { order: 2; }
  
  .about-stats {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
  }
  
  .showcase-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  
  .showcase-item:nth-child(n) {
    grid-column: span 1;
  }
  
  .showcase-item:nth-child(4) {
    grid-column: span 2;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
    transition: right 0.5s var(--ease-out-expo);
    border-left: 1px solid rgba(200, 164, 78, 0.1);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .experience-grid {
    grid-template-columns: 1fr;
  }
  
  .showcase-mosaic {
    grid-template-columns: 1fr;
  }
  
  .showcase-item:nth-child(n) {
    grid-column: span 1;
  }
  
  .signup-form {
    flex-direction: column;
  }
  
  .countdown {
    gap: 0.75rem;
  }
  
  .countdown-separator {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .about-image-accent {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 450px;
  }
  
  .coming-soon-badge {
    padding: 0.75rem 1.5rem;
  }
  
  .countdown-value {
    font-size: 2rem;
    min-width: 55px;
  }
}

/* =============================================
   SCROLL STORY
   ============================================= */
.story-container {
  height: 400vh;
  position: relative;
  background: var(--bg-primary);
  z-index: 10;
}

.story-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
}

.scene-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0; /* Default hidden */
  pointer-events: none;
  transition: opacity 0.1s linear;
}

/* Book Layer */
.book-layer {
  z-index: 3;
  opacity: 1;
}

.book-3d {
  position: relative;
  width: clamp(300px, 40vw, 500px);
  height: 60vh;
  min-height: 400px;
  transform-style: preserve-3d;
}

.book-cover {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #111;
  border: 2px solid inherit;
  border-radius: 4px 15px 15px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: left center;
  transform-style: preserve-3d;
  box-shadow: 10px 10px 40px rgba(0,0,0,0.9);
  z-index: 5;
  will-change: transform;
}

.book-logo {
  width: 80%;
  filter: drop-shadow(0 0 15px rgba(25, 46, 65, 0.25));
}

.book-page {
  position: absolute;
  top: 5px; bottom: 5px;
  background: #f5efe6;
  border-radius: 2px 10px 10px 2px;
  transform-origin: left center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.book-page-right {
  left: 0;
  width: 98%;
  z-index: 1;
}

.book-page-left {
  left: 0;
  width: 98%;
  z-index: 2;
  transform: rotateY(-180deg);
}

/* Scene BG (Latte & Croissant) */
.scene-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
  transform: scale(1.5);
  will-change: transform;
}

.story-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 3rem;
  background: rgba(10, 8, 6, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(25, 46, 65, 0.25);
  border-radius: 12px;
  transform: translateY(50px);
  will-change: transform, opacity;
}

.latte-layer { z-index: 2; }
.croissant-layer { z-index: 1; }

/* =============================================
   SPONSORS
   ============================================= */
.sponsors {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  color: var(--cream);
  text-align: center;
}

.sponsors-header {
  margin-bottom: 4rem;
}

.sponsors-tier {
  margin-bottom: 4rem;
}

.sponsors-tier-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: inherit;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  display: inline-block;
}

.sponsors-tier-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
}

.sponsors-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.sponsor-card {
  background: var(--bg-card);
  color: var(--navy);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  border: 1px solid rgba(25, 46, 65, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 280px;
}

.sponsor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(25, 46, 65, 0.25);
  border-color: rgba(25, 46, 65, 0.25);
}

.sponsor-logo {
  max-width: 220px;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.sponsor-card:hover .sponsor-logo {
  transform: scale(1.05);
}

.sponsor-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.05em;
}
