/* ================================
   Vortex Glance Exhibitions — style.css
   Nature_Organic theme: earth tones, organic shapes, green accents
   Mobile-first, flexbox-only layouts
   ================================ */

/* ================================
   0) RESET & NORMALIZE
   ================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Arial, sans-serif; line-height: 1.6; color: #2F2A1E; background: #FAF7F0; }
img { max-width: 100%; height: auto; display: block; }
a { color: #2F6E4E; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
button { font: inherit; background: transparent; border: none; cursor: pointer; }
:focus-visible { outline: 2px dashed #3F7D62; outline-offset: 2px; }

/* ================================
   1) THEME TOKENS (CSS VARIABLES)
   ================================ */
:root {
  /* Brand */
  --brand-primary: #1E3A5F; /* deep blue */
  --brand-secondary: #7A1631; /* burgundy */
  --brand-accent: #F4F7FB; /* light accent */

  /* Nature Organic Palette */
  --soil: #2F2A1E;        /* deep earth text */
  --sand: #FAF7F0;        /* soft paper bg */
  --stone: #E9E4DA;       /* subtle divider */
  --clay: #B5654A;        /* terracotta */
  --moss: #2E5E4E;        /* dark green */
  --leaf: #3F7D62;        /* primary button green */
  --sage: #A8BFA3;        /* gentle green tint */
  --fern: #6FAF8C;        /* hover green */
  --charcoal: #1E201E;    /* darkest text */

  /* Base application */
  --bg: var(--sand);
  --text: var(--soil);
  --muted-text: #5A564D;

  /* Surfaces & borders */
  --surface: #FFFFFF;
  --surface-tint: #FCFBF7;
  --border: #D9D2C6;

  /* Shadows & radii */
  --shadow-sm: 0 2px 8px rgba(34, 43, 25, 0.08);
  --shadow-md: 0 6px 20px rgba(34, 43, 25, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-organic: 22px 18px 24px 18px / 18px 24px 18px 22px; /* organic */

  /* Spacing scale */
  --space-4: 4px;  --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; --space-80: 80px;
}

/* ================================
   2) TYPOGRAPHY
   ================================ */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--charcoal); line-height: 1.25; margin: 0 0 var(--space-16); }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 var(--space-16); color: var(--text); }
.small { font-size: 14px; color: var(--muted-text); }
.eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--moss); margin-bottom: var(--space-8); }
.subheadline { font-size: 18px; color: var(--text); }
.tagline { font-style: italic; color: var(--muted-text); }

/* ================================
   3) GLOBAL LAYOUT CONTAINERS (Flexbox-only)
   ================================ */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: var(--space-20); }
.content-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-20); }

/* Mandatory spacing class */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Generic section spacing */
section { margin-bottom: var(--space-60); padding: var(--space-40) 0; }

/* ================================
   4) HEADER & NAVIGATION
   ================================ */
header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 20; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-12); padding-bottom: var(--space-12); }
.logo img { height: 40px; }

.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { padding: 8px 10px; color: var(--text); border-radius: var(--radius-sm); transition: color 0.2s ease, background-color 0.2s ease; }
.main-nav a:hover { background: var(--brand-accent); color: var(--moss); }

.header-ctas { display: none; align-items: center; gap: var(--space-12); }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); transition: background 0.2s ease; }
.mobile-menu-toggle:hover { background: var(--surface-tint); }

/* Mobile slide-in menu */
.mobile-menu { position: fixed; inset: 0 0 0 auto; top: 0; right: 0; height: 100vh; width: 100%; max-width: 420px; background: var(--surface); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: var(--space-24); padding: var(--space-24); transform: translateX(100%); transition: transform 0.35s ease; z-index: 9999; pointer-events: none; }
/* Open states supported: body.menu-open, .mobile-menu.open, .mobile-menu.is-open */
body.menu-open .mobile-menu, .mobile-menu.open, .mobile-menu.is-open { transform: translateX(0); pointer-events: auto; }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text); background: var(--brand-accent); border-radius: var(--radius-md); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 8px; font-size: 18px; color: var(--text); border-radius: var(--radius-sm); }
.mobile-nav a:hover { background: var(--brand-accent); color: var(--moss); }

/* Desktop nav reveal */
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ================================
   5) BUTTONS
   ================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 18px; border: 1px solid transparent; font-weight: bold; transition: transform 0.08s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--leaf); color: #FFFFFF; }
.btn-primary:hover { background: var(--fern); }

/* Secondary uses brand primary to honor guidelines while keeping organic palette */
.btn-secondary { background: var(--brand-primary); color: #FFFFFF; }
.btn-secondary:hover { background: #244a79; }

/* Text link button style (when links appear inside text) */
.text-section a, .content-wrapper a { color: #a4dcc9; border-bottom: 1px solid rgba(47,94,78,0.25); padding-bottom: 2px; }
.text-section a:hover, .content-wrapper a:hover { color: var(--leaf); border-bottom-color: rgba(63,125,98,0.5); text-decoration: none; }

/* ================================
   6) HERO
   ================================ */
.hero { background: var(--brand-accent); position: relative; padding: var(--space-40) 0; }
/* Organic shape decoration (decorative only) */
.hero::before { content: ""; position: absolute; inset: auto auto -28px -30px; width: 180px; height: 120px; background: #E6EFE9; border-radius: 52% 48% 42% 58% / 58% 44% 56% 42%; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: -34px -26px auto auto; width: 140px; height: 140px; background: #F0EAE0; border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%; z-index: 0; }
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }
.hero .content-wrapper { gap: var(--space-16); }
.hero h1 { font-size: 32px; }
.hero .subheadline { max-width: 70ch; }
.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.supporting-bullets { display: flex; flex-direction: column; gap: var(--space-8); margin: var(--space-8) 0 0; padding: 0; list-style: none; }
.supporting-bullets li { padding-left: 28px; position: relative; }
.supporting-bullets li::before { content: "\2022"; position: absolute; left: 0; color: var(--leaf); font-size: 22px; line-height: 1; top: -2px; }

/* ================================
   7) CONTENT & FEATURE SECTIONS
   ================================ */
.section-intro { color: var(--muted-text); max-width: 70ch; }

/* Flexible card-like text sections */
.text-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-organic); box-shadow: var(--shadow-sm); padding: var(--space-20); margin-bottom: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); }

/* Layout helpers for groups */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.feature-grid .text-section { flex: 1 1 280px; min-width: 260px; }

/* General group layout */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* Text-image split (if used) */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.text-image-section > * { flex: 1 1 320px; }

/* Micro stats as organic pills */
.micro-stats { display: flex; flex-wrap: wrap; gap: var(--space-12); list-style: none; padding: 0; margin: var(--space-12) 0 0; }
.micro-stats li { background: #EEF4EF; color: var(--moss); border: 1px solid #D4E4D8; padding: 10px 14px; border-radius: 999px; font-weight: 600; }

/* Filters as inline pills */
.filters { display: flex; flex-direction: column; gap: var(--space-8); list-style: none; padding: 0; margin: 0; }
.filters a { display: inline-flex; align-items: center; padding: 6px 10px; margin: 4px 4px 0 0; border-radius: 999px; background: #EEF4EF; color: var(--moss); border: 1px solid #D4E4D8; }
.filters a:hover { background: #E3EFE7; }

/* Day/Week views */
.day-view, .week-view { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.day-view li, .week-view li { background: var(--surface-tint); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }

/* ================================
   8) TESTIMONIALS (high-contrast on light bg)
   ================================ */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FCFEFB; border: 1px solid #D7E7DA; border-left: 6px solid var(--leaf); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--text); }
.testimonial-card p { margin: 0; }
.rating-summary { font-weight: bold; color: var(--moss); }

/* ================================
   9) CARDS (generic, if used)
   ================================ */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-organic); box-shadow: var(--shadow-sm); padding: var(--space-20); display: flex; flex-direction: column; gap: var(--space-12); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ================================
   10) FOOTER
   ================================ */
footer { background: #F4F1EA; border-top: 1px solid var(--border); padding-top: var(--space-40); padding-bottom: var(--space-40); }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { color: var(--text); padding: 6px 10px; border-radius: var(--radius-sm); }
.footer-nav a:hover { background: var(--brand-accent); color: var(--moss); }
.footer-ctas { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.contact-info { display: flex; flex-direction: column; gap: var(--space-8); }
.contact-info p { display: flex; align-items: center; gap: var(--space-8); margin: 0; }
.contact-info img { width: 18px; height: 18px; }
.newsletter, .social-links { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; }
.legal { color: var(--muted-text); }

@media (min-width: 900px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: var(--space-24); }
  .footer-nav, .footer-ctas, .contact-info, .newsletter, .social-links { flex: 1 1 280px; }
}

/* ================================
   11) RESPONSIVE ADJUSTMENTS
   ================================ */
@media (min-width: 768px) {
  .hero { padding: var(--space-60) 0; }
  .hero h1 { font-size: 40px; }
  .subheadline { font-size: 20px; }
}
@media (min-width: 1024px) {
  .content-wrapper { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .content-wrapper > .text-section { flex: 1 1 320px; }
}

/* Mobile rule explicitly requested */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ================================
   12) TABLES (if any appear later)
   ================================ */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px; }

/* ================================
   13) COOKIE CONSENT (banner + modal)
   ================================ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #F5F3EC; color: var(--text); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(34,43,25,0.08); display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: 14px 16px; z-index: 9998; transform: translateY(100%); transition: transform 0.35s ease; }
.cookie-banner.show, body.show-cookie-banner .cookie-banner { transform: translateY(0); }
.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; box-shadow: none; }
.cookie-actions .btn-accept { background: var(--leaf); color: #fff; }
.cookie-actions .btn-accept:hover { background: var(--fern); }
.cookie-actions .btn-reject { background: var(--clay); color: #fff; }
.cookie-actions .btn-reject:hover { background: #a75840; }
.cookie-actions .btn-settings { background: transparent; color: var(--moss); border: 1px solid var(--moss); }
.cookie-actions .btn-settings:hover { background: #E6EFE9; }

.cookie-overlay { position: fixed; inset: 0; background: rgba(30,32,30,0.5); z-index: 9997; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cookie-overlay.show, body.cookie-modal-open .cookie-overlay { opacity: 1; pointer-events: auto; }

.cookie-modal { position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 720px; background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-md); padding: var(--space-24); z-index: 9999; transform: translateY(100%); transition: transform 0.35s ease; display: flex; flex-direction: column; gap: var(--space-16); }
.cookie-modal.show, body.cookie-modal-open .cookie-modal { transform: translateY(0); }
.cookie-modal h3 { margin: 0; }
.cookie-categories { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-tint); }
.cookie-category .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-toggle { width: 46px; height: 28px; border-radius: 999px; background: #D9E7DC; position: relative; transition: background 0.2s ease; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.cookie-toggle.on { background: var(--leaf); }
.cookie-toggle.on::after { transform: translateX(18px); }

/* ================================
   14) UTILITIES & MISC
   ================================ */
.divider { width: 100%; height: 1px; background: var(--border); }
.muted { color: var(--muted-text); }
.center { display: flex; align-items: center; justify-content: center; }

/* ================================
   15) ACCESSIBILITY & STATES
   ================================ */
[aria-current="page"], .main-nav a[aria-current="page"] { color: var(--moss); font-weight: 700; }
button:disabled, .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ================================
   16) PAGE-SPECIFIC TOUCHES (lightweight)
   ================================ */
/* Breadcrumbs inside hero */
[aria-label="Breadcrumbs"] { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-text); }
[aria-label="Breadcrumbs"] a { color: var(--moss); }

/* Schedules */
.text-section ol, .text-section ul { margin: 0; padding-left: 1.1rem; }

/* Footer social links separator already present in HTML: keep spacing pleasant */
.social-links a { color: var(--moss); }
.social-links a:hover { color: var(--leaf); }

/* ================================
   17) ENSURE NO OVERLAPS & CONSISTENT GAPS
   ================================ */
.container > * + * { margin-top: 0; }
.content-wrapper { gap: 20px; }
/* Keep minimum 20px between content cards */
.content-wrapper > * { margin-right: 0; }

/* ================================
   18) DESKTOP ENHANCEMENTS (layout only with flex)
   ================================ */
@media (min-width: 1100px) {
  .hero .content-wrapper { max-width: 920px; }
}

/* ================================
   19) PRINT BASICS (optional)
   ================================ */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; }
}
