/* ============================================================
   CBS WINE — Design System & Styles
   Copenhagen Business School Wine Society
   
   TABLE OF CONTENTS:
   1. CSS Custom Properties (Design Tokens)
   2. CSS Reset & Base
   3. Typography Scale
   4. Layout & Grid Utilities
   5. Navigation
   6. Hero Sections
   7. Cards & Surfaces
   8. Buttons & Links
   9. Footer
   10. Scroll Animations
   11. Gallery & Lightbox
   12. Partners Section
   13. Forms
   14. Utility Classes
   15. Responsive Breakpoints
   ============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   
   All visual decisions are centralized here for easy theming.
   Non-technical maintainers: change colors/sizes here and
   they propagate everywhere automatically.
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --color-primary: #A43D3E;         /* Wine red — primary CTA, nav, links */
  --color-primary-dark: #7A2D2E;    /* Deep wine — hover states, footer bg */
  --color-primary-light: #C25657;   /* Lighter wine — subtle highlights */
  --color-accent: #C9A84C;          /* Gold — decorative accents, highlights */
  --color-accent-light: #D4BA6A;    /* Light gold — hover on gold elements */

  /* --- Neutral Palette --- */
  --color-bg: #FAF8F5;              /* Warm off-white page background */
  --color-surface: #F0ECE6;         /* Warm grey — cards, alternating sections */
  --color-surface-dark: #E5DFD6;    /* Darker surface for deeper cards */
  --color-text: #1A1A1A;            /* Near-black body text */
  --color-text-muted: #5C5C5C;      /* Secondary/muted text */
  --color-text-light: #8A8A8A;      /* Tertiary text, captions */
  --color-text-on-dark: #FFFFFF;    /* White text on dark backgrounds */
  --color-text-on-dark-muted: #D4C9C9; /* Muted text on dark bg */
  --color-border: #DDD7CE;          /* Subtle warm borders */
  --color-overlay: rgba(26, 26, 26, 0.7); /* Dark overlay for modals/lightbox */

  /* --- Typography --- */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type Scale (modular, base 1rem = 16px)
     Using a 1.25 ratio for pleasant rhythm */
  --text-xs: 0.75rem;     /* 12px — fine print */
  --text-sm: 0.875rem;    /* 14px — captions, metadata */
  --text-base: 1rem;      /* 16px — body text */
  --text-md: 1.125rem;    /* 18px — lead paragraphs */
  --text-lg: 1.25rem;     /* 20px — card titles */
  --text-xl: 1.5rem;      /* 24px — section subtitles */
  --text-2xl: 2rem;       /* 32px — section headings */
  --text-3xl: 2.5rem;     /* 40px — page titles */
  --text-4xl: 3.25rem;    /* 52px — hero headlines */
  --text-5xl: 4rem;       /* 64px — large hero on desktop */

  /* --- Spacing Scale --- */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  --space-5xl: 8rem;      /* 128px */

  /* --- Layout --- */
  --max-width: 1200px;              /* Content max-width */
  --max-width-narrow: 800px;        /* Narrow content (text-heavy) */
  --nav-height: 72px;               /* Fixed nav bar height */
  --nav-height-mobile: 60px;        /* Mobile nav height */
  --border-radius: 6px;             /* Default border radius */
  --border-radius-lg: 12px;         /* Larger radius for cards */
  --border-radius-xl: 20px;         /* Hero images, featured cards */

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.14);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.08);

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ============================================================
   2. CSS RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Offset for fixed nav */
  padding-top: var(--nav-height-mobile);
}

@media (min-width: 768px) {
  body {
    padding-top: var(--nav-height);
  }
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}


/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .text-lead {
    font-size: var(--text-lg);
  }
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

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


/* ============================================================
   4. LAYOUT & GRID UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* Decorative line under section headers */
.section-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--space-lg) auto 0;
  border-radius: 2px;
}

/* Section spacing — generous whitespace */
.section {
  padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-4xl) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-5xl) 0;
  }
}

.section--surface {
  background-color: var(--color-surface);
}

.section--dark {
  background-color: var(--color-primary-dark);
  color: var(--color-text-on-dark);
}

.section--compact {
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .section--compact {
    padding: var(--space-3xl) 0;
  }
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-on-dark);
}

/* Section Header — consistent heading + subtitle pattern */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-3xl);
  }
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.section--dark .section-header p {
  color: var(--color-text-on-dark-muted);
}


/* Responsive grid */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.grid--4 {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .grid--4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .grid {
    gap: var(--space-xl);
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .grid--3 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex--center {
  align-items: center;
  justify-content: center;
}

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

.flex--column {
  flex-direction: column;
}

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }


/* ============================================================
   5. NAVIGATION
   
   - Fixed to top of viewport
   - Transparent when at top (hero pages), solid on scroll
   - Hamburger menu on mobile (<768px)
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height-mobile);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base);
  /* Start transparent on hero pages — JS adds .nav--scrolled */
  background-color: transparent;
}

@media (min-width: 768px) {
  .nav {
    height: var(--nav-height);
  }
}

/* When scrolled OR on non-hero pages — frosted glass */
.nav--scrolled,
.nav--solid {
  background-color: rgba(250, 248, 245, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

/* Links revert to dark text on the light frosted background */
.nav--scrolled .nav__link,
.nav--solid .nav__link {
  color: var(--color-text);
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active,
.nav--solid .nav__link:hover,
.nav--solid .nav__link--active {
  color: var(--color-primary);
}

/* Hamburger bars are dark on frosted background */
.nav--scrolled .nav__hamburger span,
.nav--solid .nav__hamburger span {
  background-color: var(--color-text);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
  .nav__inner {
    padding: 0 var(--space-2xl);
  }
}

/* Logo area */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  z-index: 1001;
}

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  transition: color var(--transition-fast);
  letter-spacing: 0.02em;
}

/* On transparent nav over hero, logo is white */
.nav:not(.nav--scrolled):not(.nav--solid) .nav__logo-text {
  color: var(--color-text-on-dark);
}

.nav:not(.nav--scrolled):not(.nav--solid) .nav__logo-icon path {
  fill: var(--color-text-on-dark);
}

/* Desktop nav links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  color: var(--color-primary);
}

/* On transparent nav, links are white */
.nav:not(.nav--scrolled):not(.nav--solid) .nav__link {
  color: var(--color-text-on-dark);
}

.nav:not(.nav--scrolled):not(.nav--solid) .nav__link:hover,
.nav:not(.nav--scrolled):not(.nav--solid) .nav__link--active {
  color: var(--color-accent);
}

/* Hamburger button — mobile only */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: 1001;
  padding: 0;
}

@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base),
              opacity var(--transition-fast);
  transform-origin: center;
}

/* On transparent nav, hamburger is white */
.nav:not(.nav--scrolled):not(.nav--solid) .nav__hamburger span {
  background-color: var(--color-text-on-dark);
}

/* Hamburger → X animation */
.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Force dark hamburger when menu is open (over white overlay) */
.nav__hamburger--open span {
  background-color: var(--color-text) !important;
}

/* Solid nav background when mobile menu is open */
.nav:has(.nav__hamburger--open) {
  background-color: var(--color-bg) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Mobile overlay menu */
.nav__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav__overlay--open {
  opacity: 1;
  pointer-events: all;
}

.nav__overlay-link {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
}

.nav__overlay--open .nav__overlay-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--transition-slow),
              transform var(--transition-slow),
              color var(--transition-fast);
}

/* Stagger the link animations */
.nav__overlay--open .nav__overlay-link:nth-child(1) { transition-delay: 80ms; }
.nav__overlay--open .nav__overlay-link:nth-child(2) { transition-delay: 140ms; }
.nav__overlay--open .nav__overlay-link:nth-child(3) { transition-delay: 200ms; }
.nav__overlay--open .nav__overlay-link:nth-child(4) { transition-delay: 260ms; }
.nav__overlay--open .nav__overlay-link:nth-child(5) { transition-delay: 320ms; }

.nav__overlay-link:hover {
  color: var(--color-primary);
}

.nav__overlay-link--active {
  color: var(--color-primary);
}


/* ============================================================
   6. HERO SECTIONS
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: var(--space-4xl) 0;
  background-color: var(--color-primary-dark);
  overflow: hidden;
  /* Negative margin to overlap under transparent nav */
  margin-top: calc(-1 * var(--nav-height-mobile));
  padding-top: calc(var(--nav-height-mobile) + var(--space-4xl));
}

@media (min-width: 768px) {
  .hero {
    min-height: 85vh;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: calc(var(--nav-height) + var(--space-4xl));
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 var(--space-lg);
}

.hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

/* Large logo mark shown inside the index hero */
.hero__logo-img {
  width: 110px;
  height: 110px;
  display: block;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
}

@media (min-width: 768px) {
  .hero__logo-img {
    width: 130px;
    height: 130px;
  }
}

.hero__title {
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-md);
  font-size: var(--text-3xl);
}

/* Gold accent line under the hero title */
.hero__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

/* Tagline row: "Tastings — Learning — Socializing — Discounts" */
.hero__tagline {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: var(--text-md);
    letter-spacing: 0.12em;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--text-5xl);
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: clamp(3.5rem, 6vw, 5rem);
  }
}

.hero__subtitle {
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-md);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Page hero — shorter, for inner pages. Solid signature red, no overlay needed. */
.hero--page {
  min-height: 40vh;
  padding: var(--space-3xl) 0;
  background-color: var(--color-primary);
}

@media (min-width: 768px) {
  .hero--page {
    min-height: 45vh;
    padding-top: calc(var(--nav-height) + var(--space-3xl));
  }
}

.hero--page .hero__overlay {
  display: none;
}

.hero--page .hero__bg {
  opacity: 0;
}


/* ============================================================
   7. CARDS & SURFACES
   ============================================================ */
.card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--color-surface);
}

.card__body {
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .card__body {
    padding: var(--space-xl);
  }
}

.card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: rgba(164, 61, 62, 0.08);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Skeleton/placeholder state for loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-surface-dark) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--border-radius);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--text {
  height: 1em;
  margin-bottom: var(--space-sm);
  width: 80%;
}

.skeleton--text-short {
  height: 1em;
  width: 50%;
}

.skeleton--image {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.skeleton--circle {
  border-radius: 50%;
}

/* Placeholder content state */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
}

.placeholder__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-lg);
  opacity: 0.4;
}

.placeholder__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.placeholder__text {
  font-size: var(--text-sm);
  max-width: 400px;
}


/* ============================================================
   8. BUTTONS & LINKS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  border: 2px solid var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-text-on-dark);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-on-dark);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline-dark:hover {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.btn--gold {
  background-color: var(--color-accent);
  color: var(--color-text);
  border: 2px solid var(--color-accent);
}

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

/* Arrow link — for inline "Read more →" style links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap var(--transition-base);
}

.link-arrow:hover {
  gap: var(--space-sm);
  color: var(--color-primary-dark);
}

.link-arrow::after {
  content: '→';
}


/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
  }
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer__logo-icon {
  width: 32px;
  height: 32px;
}

.footer__logo-icon path {
  fill: var(--color-text-on-dark);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-on-dark);
}

.footer__description {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-on-dark);
  transition: background-color var(--transition-fast),
              transform var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
  transform: scale(1.1);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.footer__link-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-text-on-dark);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
}

.footer__email {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--color-accent);
}


/* ============================================================
   10. SCROLL ANIMATIONS (fade-in on scroll)
   
   Elements with [data-animate] start invisible and fade in
   when they enter the viewport. JS uses IntersectionObserver.
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
[data-animate-stagger].is-visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }


/* ============================================================
   11. GALLERY & LIGHTBOX
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .gallery-grid {
    gap: var(--space-md);
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__caption {
  color: var(--color-text-on-dark);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: var(--space-lg);
}

.lightbox--open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: white;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: none;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__nav--prev {
  left: var(--space-lg);
}

.lightbox__nav--next {
  right: var(--space-lg);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-on-dark);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 500px;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius);
}


/* ============================================================
   12. PARTNERS SECTION
   ============================================================ */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 480px) {
  .partner-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .partner-logo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
  }
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  transition: filter var(--transition-base), transform var(--transition-base);
}

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

.partner-logo img {
  max-height: 60px;
  width: auto;
  max-width: 100%;
}

/* Partner detail card */
.partner-card {
  background-color: var(--color-bg);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base),
              transform var(--transition-base);
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-card__logo {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-lg);
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.partner-card:hover .partner-card__logo {
  filter: grayscale(0%);
}

.partner-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.partner-card__type {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.partner-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ============================================================
   13. FORMS (Contact / Partner inquiry)
   ============================================================ */
.form {
  max-width: 560px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(164, 61, 62, 0.12);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__submit {
  width: 100%;
}

.form__success {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================================
   EMAIL SIGNUP SECTION
   ============================================================ */

.email-signup {
  border-top: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
}

.email-signup__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .email-signup__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-3xl);
  }

  .email-signup__copy {
    flex: 1;
  }

  .email-signup__form-wrap {
    flex: 1;
  }
}

.email-signup__copy h2 {
  margin-bottom: var(--space-xs);
  font-size: var(--text-2xl);
}

.email-signup__copy p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: var(--text-md);
}

.email-signup__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .email-signup__field {
    flex-direction: row;
  }

  .email-signup__field .btn {
    flex-shrink: 0;
  }
}

.email-signup__input {
  flex: 1;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.email-signup__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(164, 61, 62, 0.12);
}

.email-signup__input::placeholder {
  color: var(--color-text-muted);
}

.email-signup__success {
  padding: var(--space-md) var(--space-lg);
  background-color: rgba(164, 61, 62, 0.06);
  border: 1px solid rgba(164, 61, 62, 0.2);
  border-radius: var(--border-radius);
  color: var(--color-primary);
  font-weight: 500;
  font-size: var(--text-sm);
}


/* ============================================================
   14. UTILITY CLASSES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* Gold decorative divider */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
  border: none;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   WORK WITH US — collaboration benefits & audience cards
   ============================================================ */

.collab-benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
}

.collab-benefit__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(164, 61, 62, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-bottom: var(--space-xs);
}

.collab-benefit__icon svg {
  width: 22px;
  height: 22px;
}

.collab-benefit h4 {
  margin: 0;
}

.collab-audience {
  padding: var(--space-xl);
  border: 1px solid var(--color-accent-light);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
}

.collab-audience h4 {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.collab-audience p {
  color: var(--color-text-muted);
}

/* Intro prose (replaces stats row on home page) */
.intro-prose {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--color-text-on-dark-muted);
}

.intro-prose__highlight {
  color: var(--color-accent);
  font-weight: 500;
}

/* Stats row (used on home page) */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat__number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.section--dark .stat__number {
  color: var(--color-accent);
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.section--dark .stat__label {
  color: var(--color-text-on-dark-muted);
}

/* Join the Team — group photo */
.join-photo {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  aspect-ratio: 16 / 9;
}

.join-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.join-photo__caption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-surface);
}

/* Join the Team — role & perk cards */
.join-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-xl);
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
}

.join-card h4 {
  margin: 0;
}

.join-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(164, 61, 62, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--color-primary);
  flex-shrink: 0;
  margin-bottom: var(--space-xs);
}

.join-card__icon svg {
  width: 22px;
  height: 22px;
}

.join-card__icon--gold {
  background-color: rgba(201, 168, 76, 0.12);
  color: var(--color-accent);
}

.join-card--highlight {
  background-color: var(--color-primary);
}

.join-card--highlight h4 {
  color: var(--color-text-on-dark);
}

.join-card--highlight .text-muted {
  color: var(--color-text-on-dark-muted) !important;
}

.join-card--highlight .join-card__icon--gold {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-accent);
}

/* Availability note callout near the join CTA */
.join-availability {
  max-width: 480px;
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--color-surface);
  border-radius: var(--border-radius-lg);
  border-left: 3px solid var(--color-primary);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.join-availability strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Event status badges */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}

.badge--upcoming {
  background-color: rgba(164, 61, 62, 0.1);
  color: var(--color-primary);
}

.badge--past {
  background-color: var(--color-surface);
  color: var(--color-text-muted);
}

.badge--soldout {
  background-color: var(--color-surface-dark);
  color: var(--color-text-muted);
}


/* ============================================================
   15. RESPONSIVE BREAKPOINTS
   
   Breakpoints:
   - Mobile:  < 480px  (default, mobile-first)
   - Phablet: >= 480px
   - Tablet:  >= 768px
   - Desktop: >= 1024px
   
   Most responsive adjustments are co-located with their
   component above. Below are any remaining global tweaks.
   ============================================================ */

/* Fine-tune spacing on very small screens */
@media (max-width: 479px) {
  :root {
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
  }

  .hero {
    min-height: 60vh;
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--text-xs);
  }
}

/* Ensure touch targets are large enough on mobile */
@media (max-width: 767px) {
  .nav__link,
  .footer__link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
