/* ============================================================
   COWICHAN CONNECTS × 3ON ENTERTAINMENT GROUP
   Brand Design System — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Cowichan Connects Palette */
  --cc-teal:        #2A7F6F;
  --cc-teal-light:  #3AAFA0;
  --cc-teal-dark:   #1B5E52;
  --cc-gold:        #D4A843;
  --cc-gold-light:  #F0C96A;
  --cc-cream:       #FAF6EF;
  --cc-warm-white:  #FFFFFF;

  /* 3ON Entertainment Group Palette */
  --3on-black:      #0D0D0D;
  --3on-charcoal:   #1A1A2E;
  --3on-purple:     #6C3FC7;
  --3on-purple-light:#8B5CF6;
  --3on-electric:   #E040FB;
  --3on-silver:     #C0C0C0;
  --3on-dark-bg:    #111827;

  /* Shared / Neutral */
  --text-dark:      #1C2B2B;
  --text-mid:       #4A5568;
  --text-light:     #718096;
  --border-light:   #E2E8F0;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg:      0 20px 60px rgba(0,0,0,0.18);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;

  /* Typography */
  --font-display:   'Playfair Display', serif;
  --font-heading:   'Montserrat', sans-serif;
  --font-body:      'Open Sans', sans-serif;

  /* Transitions */
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cc-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, ol { list-style: none; }

/* ── DUAL BRAND HEADER ── */
.dual-brand-header {
  background: var(--3on-charcoal);
  padding: 10px 0;
  border-bottom: 3px solid var(--cc-gold);
}

.dual-brand-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-gold);
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.2);
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-cc {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--cc-teal-light);
  letter-spacing: 1px;
}

.logo-3on {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--3on-purple-light);
  letter-spacing: 2px;
}

/* ── MAIN NAVIGATION ── */
.main-nav {
  background: var(--cc-teal-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: white;
  letter-spacing: 1px;
}

.nav-logo span { color: var(--cc-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--cc-gold);
  color: var(--text-dark);
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── HERO SECTIONS ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-community {
  background: linear-gradient(135deg, var(--cc-teal-dark) 0%, var(--cc-teal) 50%, var(--cc-teal-light) 100%);
}

.hero-festival {
  background: linear-gradient(135deg, var(--3on-charcoal) 0%, var(--3on-purple) 50%, var(--cc-teal-dark) 100%);
}

.hero-gala {
  background: linear-gradient(135deg, var(--3on-black) 0%, var(--3on-charcoal) 40%, var(--3on-purple) 100%);
}

.hero-walk {
  background: linear-gradient(135deg, var(--cc-teal-dark) 0%, #1a6b5a 40%, #2d8a6e 100%);
}

.hero-market {
  background: linear-gradient(135deg, #5c4b1e 0%, var(--cc-gold) 50%, #a07c2d 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cc-gold-light);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--cc-gold-light); }

.hero p {
  font-family: var(--font-body);
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.8;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: var(--cc-gold);
  color: var(--text-dark);
}
.btn-primary:hover {
  background: var(--cc-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,168,67,0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}

.btn-teal {
  background: var(--cc-teal);
  color: white;
}
.btn-teal:hover {
  background: var(--cc-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(42,127,111,0.4);
}

.btn-dark {
  background: var(--3on-charcoal);
  color: white;
}
.btn-dark:hover {
  background: var(--3on-purple);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--cc-gold);
  border: 2px solid var(--cc-gold);
}
.btn-outline-gold:hover {
  background: var(--cc-gold);
  color: var(--text-dark);
}

/* ── SECTION STYLES ── */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-lg { padding: 110px 0; }

.section-bg-cream { background: var(--cc-cream); }
.section-bg-white { background: white; }
.section-bg-dark { background: var(--3on-charcoal); }
.section-bg-teal { background: var(--cc-teal-dark); }

.section-header { text-align: center; margin-bottom: 60px; }

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cc-teal);
  margin-bottom: 12px;
}

.section-eyebrow.gold { color: var(--cc-gold); }
.section-eyebrow.purple { color: var(--3on-purple-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title.white { color: white; }

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.section-subtitle.white { color: rgba(255,255,255,0.75); }

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--cc-teal), var(--cc-gold));
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ── EVENT CARDS ── */
.event-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

.event-card-header {
  padding: 24px;
  position: relative;
}

.event-card-header.teal { background: linear-gradient(135deg, var(--cc-teal), var(--cc-teal-light)); }
.event-card-header.gold { background: linear-gradient(135deg, #5c4b1e, var(--cc-gold)); }
.event-card-header.purple { background: linear-gradient(135deg, var(--3on-charcoal), var(--3on-purple)); }
.event-card-header.dark { background: linear-gradient(135deg, var(--3on-black), var(--3on-charcoal)); }
.event-card-header.green { background: linear-gradient(135deg, var(--cc-teal-dark), #1a8a6f); }

.event-emoji {
  font-size: 36px;
  margin-bottom: 8px;
  display: block;
}

.event-date-badge {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.2);
  padding: 4px 12px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 8px;
}

.event-card-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.event-card-body { padding: 20px 24px 24px; }

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-mid);
}

.event-meta-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.event-type-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.badge-annual { background: #FEF3C7; color: #92400E; }
.badge-monthly { background: #E0F2FE; color: #0C4A6E; }
.badge-signature { background: #FDF4FF; color: #6B21A8; }
.badge-walk { background: #DCFCE7; color: #14532D; }
.badge-festival { background: #EDE9FE; color: #4C1D95; }
.badge-gala { background: #1A1A2E; color: var(--cc-gold); }
.badge-holiday { background: #FEF2F2; color: #991B1B; }

/* ── SPONSORSHIP TIERS ── */
.sponsor-tier-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.sponsor-tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--cc-gold);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 50px;
  transform: rotate(45deg);
  transform-origin: center;
}

.tier-header {
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
}

.tier-header.title { background: linear-gradient(135deg, var(--3on-black), var(--3on-charcoal)); color: white; }
.tier-header.gold  { background: linear-gradient(135deg, #5c4b1e, var(--cc-gold)); color: white; }
.tier-header.silver{ background: linear-gradient(135deg, #4a5568, #718096); color: white; }
.tier-header.bronze{ background: linear-gradient(135deg, #7c3d12, #c2773a); color: white; }
.tier-header.community { background: linear-gradient(135deg, var(--cc-teal-dark), var(--cc-teal)); color: white; }

.tier-icon { font-size: 48px; margin-bottom: 12px; }

.tier-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.tier-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--cc-gold-light);
  margin: 16px 0 4px;
}

.tier-price sup { font-size: 22px; vertical-align: super; }
.tier-price span { font-size: 16px; color: rgba(255,255,255,0.6); font-weight: 400; }

.tier-body { padding: 28px 32px 32px; background: white; }

.tier-features { margin-bottom: 24px; }

.tier-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-mid);
}

.tier-feature:last-child { border-bottom: none; }

.tier-feature .check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cc-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

/* ── INFO BOXES ── */
.info-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px;
  border-left: 5px solid var(--cc-teal);
  box-shadow: var(--shadow-sm);
}

.info-box.gold { border-left-color: var(--cc-gold); }
.info-box.purple { border-left-color: var(--3on-purple); }

.info-box-icon { font-size: 32px; margin-bottom: 12px; }
.info-box h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--3on-charcoal);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item { padding: 20px; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 900;
  color: var(--cc-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--3on-black);
  color: white;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo-cc { font-size: 22px; margin-bottom: 12px; display: block; }

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--cc-gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--cc-gold); }

/* ── MONTH SECTION HEADERS ── */
.month-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}

.month-badge {
  background: var(--cc-teal);
  color: white;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  white-space: nowrap;
}

.month-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--cc-teal-dark), var(--3on-charcoal));
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── DOCUMENT STYLES ── */
.doc-page {
  background: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
}

.doc-header {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 3px solid var(--cc-teal);
  margin-bottom: 40px;
}

.doc-header .org-line {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cc-teal);
  margin-bottom: 8px;
}

.doc-header h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.doc-header .subtitle {
  font-size: 16px;
  color: var(--text-mid);
}

.doc-section { margin-bottom: 40px; }
.doc-section h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--cc-teal-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}

.doc-table th {
  background: var(--cc-teal-dark);
  color: white;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}

.doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-mid);
  vertical-align: top;
}

.doc-table tr:nth-child(even) td { background: #F8FAFC; }
.doc-table tr:hover td { background: #EDF7F5; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { min-height: 380px; }
  .hero-content { padding: 50px 0; }
  .doc-page { padding: 30px; }
  .tier-price { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .main-nav, .dual-brand-header, .site-footer, .cta-section { display: none; }
  body { background: white; }
  .doc-page { box-shadow: none; padding: 20px; }
}