/* Arcane Venture Festivals — Scandinavian Clean UI
   Complete style.css for all pages
   - Mobile-first, flexbox-only layouts
   - Brand-integrated Scandinavian palette, simple typography
   - Includes mobile menu and cookie consent system
*/

/* ------------------------------
   1) RESET & NORMALIZE
------------------------------ */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
button { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #2B185E; outline-offset: 3px; }

/* ------------------------------
   2) THEME TOKENS (with fallbacks)
------------------------------ */
:root {
  --brand-primary: #2B185E; /* deep plum */
  --brand-secondary: #B23A48; /* warm crimson */
  --brand-accent: #FFF4E6; /* warm ivory */
  --ink: #2A2F37; /* charcoal ink */
  --muted-ink: #596271; /* cool gray */
  --bg: #FAFAF8; /* near-white with warmth */
  --surface: #FFFFFF; /* pure white */
  --line: #E7E7E2; /* light line, Scandinavian subtle */
  --wood: #F4EFE7; /* natural sand/wood note */
  --focus: #2B185E;
  --success: #2F855A;
  --danger: #B23A48;
  --shadow-100: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-200: 0 4px 10px rgba(17, 24, 39, 0.08);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
}

/* ------------------------------
   3) BASE TYPOGRAPHY
------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", "Lucida Grande", Arial, sans-serif; color: #1F2430; margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: -0.02em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 16px; color: var(--ink); }
small { color: var(--muted-ink); }
strong { color: #20242E; }
em { color: #374151; }

/* Links */
a { color: var(--brand-primary); text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
a.btn { text-decoration: none; }

/* Lists */
ul, ol { display: flex; flex-direction: column; gap: 8px; }
li { padding-left: 2px; }

/* ------------------------------
   4) LAYOUT SHELL
------------------------------ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sections */
section { padding: 32px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* MANDATORY spacing class (kept for reusability even if not in markup) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Shared text blocks */
.text-section { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }

/* Utility flex patterns (all flexbox-only) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow-100); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-100); color: #1F2430; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ------------------------------
   5) HEADER & NAVIGATION
------------------------------ */
header { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 0 0 rgba(0,0,0,0); }
header .container { padding-top: 12px; padding-bottom: 12px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a { color: var(--ink); padding: 8px 10px; border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.main-nav a[aria-current="page"] { color: var(--brand-primary); font-weight: bold; }
.main-nav a:hover { background: var(--brand-accent); color: var(--brand-primary); }

.cta-group { display: none; gap: 10px; align-items: center; }

/* Mobile burger */
.mobile-menu-toggle { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-primary); color: #fff; box-shadow: var(--shadow-100); transition: transform .15s ease, background .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #24134e; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 88%; max-width: 360px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(17, 24, 39, 0.12); transform: translateX(100%); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s ease; z-index: 1000; display: flex; flex-direction: column; }

/* ARIA-driven open/close */
.mobile-menu[aria-hidden="false"] { transform: translateX(0); opacity: 1; visibility: visible; }

.mobile-menu-close { align-self: flex-end; margin: 12px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--wood); color: var(--ink); }
.mobile-menu-close:hover { background: var(--brand-accent); }

.mobile-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 24px; }
.mobile-nav a { padding: 14px 12px; border-radius: 10px; color: var(--ink); border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--brand-accent); color: var(--brand-primary); }
.mobile-nav a[aria-current="page"] { border-color: var(--line); font-weight: bold; }

/* Desktop nav: visible from 992px */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .cta-group { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ------------------------------
   6) HERO SECTIONS
------------------------------ */
.hero { background: var(--brand-accent); border-top: none; border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 32px; padding-bottom: 32px; }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { color: #1F2430; }
.hero p { color: var(--muted-ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------
   7) BUTTONS & INTERACTIONS
------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: bold; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; box-shadow: var(--shadow-100); }

.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: #24134e; transform: translateY(-1px); box-shadow: var(--shadow-200); }

.btn-secondary { background: var(--surface); color: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn-secondary:hover { background: #FFF7F2; transform: translateY(-1px); }

.btn:active { transform: translateY(0); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(43, 24, 94, 0.25); }

/* ------------------------------
   8) CARDS, TESTIMONIALS, CONTENT PATTERNS
------------------------------ */
/* General surface card look for Scandinavian simplicity */
.card, .testimonial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-100); }

.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--muted-ink); }

/* Features (unused but prepared) */
.features { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-item > h3 { margin-bottom: 0; }

/* Text-image pattern responsiveness */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------
   9) LINKS INSIDE TEXT SECTIONS
------------------------------ */
.text-section a { color: var(--brand-primary); border-bottom: 1px solid rgba(43,24,94,0.25); padding-bottom: 1px; }
.text-section a:hover { border-bottom-color: rgba(43,24,94,0.6); }

/* ------------------------------
   10) FOOTER
------------------------------ */
footer { background: var(--wood); border-top: 1px solid var(--line); color: #1E232B; }
footer .content-wrapper { flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-brand, .footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
footer a { color: #1E232B; }
footer a:hover { color: var(--brand-primary); text-decoration: underline; }
footer img { height: 18px; width: auto; display: inline-block; margin-right: 8px; }
.footer-brand img { height: 28px; margin-bottom: 8px; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-brand, .footer-links, .footer-contact { flex: 1 1 0; max-width: 33%; }
}

/* ------------------------------
   11) RESPONSIVE SPACING & TYPOGRAPHY
------------------------------ */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
@media (min-width: 992px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  section { padding: 40px 0; }
}

/* ------------------------------
   12) ACCESSIBILITY & STATES
------------------------------ */
[aria-current="page"] { position: relative; }
[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--brand-primary); width: 22px; margin-top: 2px; border-radius: 2px; }

/* ------------------------------
   13) SCANDINAVIAN MICRO-DETAILS
------------------------------ */
/* Gentle separators and white space rhythm */
.container > .content-wrapper > h2 { padding-top: 4px; }
hr { border: 0; height: 1px; background: var(--line); }

/* Subtle hover lift for cards */
.card:hover, .testimonial-card:hover { box-shadow: var(--shadow-200); transform: translateY(-1px); transition: transform .15s ease, box-shadow .2s ease; }

/* ------------------------------
   14) COOKIE CONSENT BANNER & MODAL
------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17,24,39,0.08); z-index: 900; display: flex; flex-direction: column; gap: 14px; padding: 16px; transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner .cookie-body { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner .btn-accept { background: var(--brand-primary); color: #fff; }
.cookie-banner .btn-reject { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.cookie-banner .btn-settings { background: var(--surface); color: var(--brand-secondary); border: 1px solid var(--brand-secondary); }
.cookie-banner .btn-reject:hover { background: #F8F9FA; }

/* Cookie Modal Overlay */
.cookie-modal { position: fixed; inset: 0; background: rgba(17,24,39,0.42); z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.cookie-modal.show { opacity: 1; visibility: visible; }
.cookie-modal .cookie-dialog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: var(--shadow-200); transform: translateY(12px); transition: transform .3s ease; }
.cookie-modal.show .cookie-dialog { transform: translateY(0); }
.cookie-dialog .cookie-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-dialog .cookie-content { display: flex; flex-direction: column; gap: 12px; }
.cookie-dialog .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; background: #FBFBF9; border: 1px solid var(--line); border-radius: 10px; }
.cookie-dialog .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle styles (if implemented via input[type=checkbox]) */
.cookie-toggle { position: relative; width: 44px; height: 26px; border-radius: 20px; background: #D1D5DB; transition: background .2s ease; flex: 0 0 auto; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-100); transition: transform .2s ease; }
.cookie-toggle.on { background: #2F855A; }
.cookie-toggle.on::after { transform: translateX(18px); }

/* ------------------------------
   15) TABLES (generic if used later)
------------------------------ */
.table { width: 100%; border-collapse: collapse; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.table thead, .table tbody, .table tr { display: flex; width: 100%; }
.table thead { background: #F8F8F6; border-bottom: 1px solid var(--line); }
.table th, .table td { flex: 1 1 0; padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* ------------------------------
   16) FORMS (generic if used later)
------------------------------ */
.form-row { display: flex; flex-direction: column; gap: 8px; }
.input, input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease, box-shadow .2s ease; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(43,24,94,0.15); }

/* ------------------------------
   17) PAGE-SPECIFIC TOUCHES
------------------------------ */
/* Index highlights spacing */
.hero-ctas + .text-section { margin-top: -4px; }

/* Lists in schedule/tickets: use gentle separators */
.text-section ul > li { border-left: 3px solid #ECECE8; padding-left: 10px; }

/* Emphasis for small inline filters */
.text-section div strong { color: #232936; }

/* ------------------------------
   18) RESPONSIVE LAYOUT ENHANCEMENTS
------------------------------ */
@media (min-width: 768px) {
  .content-wrapper { gap: 24px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}
@media (min-width: 992px) {
  .container { padding: 0 24px; }
}

/* ------------------------------
   19) PRINT BASICS
------------------------------ */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* ------------------------------
   20) ENSURE NO OVERLAP & SAFE Z-INDEX
------------------------------ */
header { z-index: 10; }
.mobile-menu { z-index: 1000; }
.cookie-banner { z-index: 1050; }
.cookie-modal { z-index: 1100; }

/* ------------------------------
   21) ADDITIONAL FLEX HELPERS
------------------------------ */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; flex: 1 1 260px; }

/* ------------------------------
   22) VISUAL HIERARCHY SPACING SCALE
------------------------------ */
.space-8 { height: 8px; }
.space-16 { height: 16px; }
.space-24 { height: 24px; }
.space-32 { height: 32px; }
.space-40 { height: 40px; }
.space-60 { height: 60px; }

/* ------------------------------
   23) ACCESSIBLE TESTIMONIAL CONTRAST
------------------------------ */
/* Dark text, light surface for strict readability */
.testimonial-card { background: #FFFFFF; color: #111827; }
.testimonial-card strong { color: #0F172A; }

/* ------------------------------
   24) MANDATORY SPACING & ALIGNMENT RE-ASSERTED
------------------------------ */
/* Provided again explicitly as required */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ------------------------------
   25) MISC ELEMENT TWEAKS
------------------------------ */
header a, footer a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }

/* Icon + text pairs */
.footer-contact p, .text-section p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.text-section p img, .footer-contact p img { width: 18px; height: 18px; }

/* ------------------------------
   26) PAGE CALLOUT BANNERS (optional)
------------------------------ */
.callout { display: flex; flex-direction: column; gap: 12px; background: #F7F6F3; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }

/* End of file */
