/* ======================================================
   FILE: styles.css
   ROLE: Core layout, typography, color system
   OWNS: layout, tokens, default visibility
   MUST NOT: animate, handle mobile, override accessibility
====================================================== */

:root {
  --primary: #DAA520;
  --primary-light: #FFC72C;
  --secondary: #44B78B;
  --secondary-dark: #2F8F61;
  --dark: #1C1C1E;
  --darker: #2A2A2D;
  --light: #FFFFFF;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  --font-main: 'Inter', sans-serif;
  --font-accent: 'Courier New', monospace;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;
  
  /* Enhanced breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  
  /* Fluid spacing */
  --fluid-space-xs-sm: clamp(0.5rem, 1.5vw, 0.75rem);
  --fluid-space-sm-md: clamp(1rem, 2vw, 1.5rem);
  --fluid-space-md-lg: clamp(1.5rem, 3vw, 2rem);
  --fluid-space-lg-xl: clamp(2rem, 4vw, 3rem);

  /* From your logo gradients */
  --art-green: #44B78B;      /* From "Art-" gradient */
  --life-gold: #DAA520;      /* From "Life" gradient */
  
  /* Derived colors */
  --art-green-dark: #2F8F61;
  --art-green-light: #5FC89F;
  --life-gold-dark: #B8860B;
  --life-gold-light: #FFC72C;
  
  /* Neutrals */
  --pure-black: #000000;
  --pure-white: #FFFFFF;
  --off-black: #1A1A1A;
  --off-white: #F5F5F5;
}

/* ======================================================
   GLOBAL STATE CONTRACT
   Purpose: Single source of truth for UI state
   JS toggles state, CSS decides appearance
====================================================== */

.is-hidden {
  display: none !important;
}

.is-visible {
  display: block;
}

.is-flex {
  display: flex;
}

.is-inert {
  pointer-events: none;
}

.is-interactive {
  pointer-events: auto;
}

.is-locked {
  overflow: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;  
  overflow: hidden !important;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  color: var(--text-light);
  background: linear-gradient(135deg, var(--dark), var(--darker));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh
}

/* ========== HOMEPAGE ANIMATION STATES - FIXED ========== */
/* Phase 1 & 2: Hide everything except logo */
body.homepage:not(.phase-3) .menu-bar,
body.homepage:not(.phase-3) .skyline-container,
body.homepage:not(.phase-3) #search-icon-container,
body.homepage:not(.phase-3) .hover-text,
body.homepage:not(.phase-3) .content-wrapper,
body.homepage:not(.phase-3) .site-footer,
body.homepage:not(.phase-3) .ticker-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* IMPORTANT: MOBILE HEADER IS ALWAYS VISIBLE ON MOBILE */
@media (max-width: 768px) {
  body.homepage .mobile-header {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Phase 3: Show all elements with staggered animation */
body.homepage.phase-3 .menu-bar.visible,
body.homepage.phase-3 #search-icon-container.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-out 0.2s, visibility 0.8s ease-out 0.2s;
}

body.homepage.phase-3 .skyline-container.visible,
body.homepage.phase-3 .hover-text.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-out 0.4s, visibility 0.8s ease-out 0.4s;
}

body.homepage.phase-3 .content-wrapper.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-out 0.6s, visibility 0.8s ease-out 0.6s;
}

body.homepage.phase-3 .ticker-container.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-out 0.8s, visibility 0.8s ease-out 0.8s;
}

body.homepage.phase-3 .site-footer.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease-out 1s, visibility 0.8s ease-out 1s;
}

/* ========== SUBPAGE OVERRIDES ========== */
body.subpage .content-wrapper,
body.subpage .scroll-content,
body.subpage .site-footer,
body.subpage .mobile-header,
body.subpage .ticker-container {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.subpage .title-container {
  transform: scale(0.4) translate(0, 0) !important;
  top: 20px !important;
  left: 20px !important;
  pointer-events: auto !important;
}

body.subpage {
  transition: none !important;
}

body.subpage .menu-bar,
body.subpage .skyline-container,
body.subpage #search-icon-container,
body.subpage .hover-text {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

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

.btn {
  display: inline-block;
  padding: var(--fluid-space-xs-sm) var(--fluid-space-sm-md);
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 44px;
  min-height: 44px;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ========== MAIN CONTENT WRAPPER ========== */
.content-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible !important; /* No scrolling here */
  height: auto !important; /* Don't restrict height */
  max-height: none !important; /* Remove any max-height */
  min-height: auto; /* Let it grow naturally */
}

/* ========== ENHANCED LAYOUT STYLES ========== */
.header {
  position: relative;
  z-index: 10;
}

.hero {
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

/* Ensure logo container and link are always clickable */
.title-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4000;
  display: flex;
  justify-content: center;
  will-change: transform;
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1;
  transition: all 1.5s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.5s ease;
}

.hero-link {
  display: flex;
  text-decoration: none;
  z-index: 4001;
  pointer-events: auto !important;
  cursor: pointer !important;
  transition: opacity 0.3s ease;
}

.hero-link:hover,
.hero-link:focus {
  opacity: 0.85;
}

.word {
  display: inline-block;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  will-change: transform;
  pointer-events: none !important;
}

.word.art {
  background-image: linear-gradient(120deg, var(--secondary-dark), var(--secondary));
  transform: translateX(-100vw);
  font-family: 'Playfair Display', serif;
}

.word.life {
  background-image: linear-gradient(120deg, var(--primary), var(--primary-light));
  transform: translateX(100vw);
  font-family: 'Playfair Display', serif;
}

/* Animation phases */
body.homepage.phase-1 .word.art,
body.homepage.phase-1 .word.life {
  transform: translateX(0);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}

body.homepage.phase-2 .title-container {
  transition: none;
}

body.homepage.phase-3 .title-container {
  transition: all 1.5s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Mobile and tablet: central position */
@media (max-width: 1023px) {
  body.homepage.phase-3 .title-container {
    top: 5vh;
    left: 50%;
    transform: scale(0.7) translate(-50%, -50%);
    transform-origin: top left;
  }
}

/* Enhanced desktop adjustments */
@media (min-width: 1024px) {
  .word {
    font-size: clamp(3rem, 10vw, 8rem);
    letter-spacing: -3px;
  }
  
  body.homepage.phase-3 .title-container {
    top: 20px;
    left: 20px;
    transform: scale(0.4) translate(0, 0);
    transform-origin: top left;
    transition-duration: 1.8s;
  }

  .subpage-search-container {
    position: fixed;
    top: 45px;
    right: 30px;
    z-index: 20;
  }

  .subpage-search-icon {
    width: clamp(24px, 2.5vw, 40px);
    height: clamp(24px, 2.5vw, 40px);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .subpage-search-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--primary);
    transition: fill var(--transition-fast);
  }

  .subpage-search-icon:hover svg,
  .subpage-search-icon:focus svg {
    fill: var(--secondary);
  }
}

/* Enhanced tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .word {
    font-size: clamp(2.5rem, 8vw, 5rem);
  }
  
  body.homepage.phase-3 .title-container {
    top: 5vh;
    left: 50%;
    transform: scale(0.5) translate(-50%, -50%);
    transform-origin: top left;
  } 
}

/* ========== ENHANCED TYPEWRITER EFFECTS ========== */
@media (min-width: 1024px) {
  .hover-text::after {
    display: none;
    content: '|';
    animation: blink 1s step-end infinite;
  }
  
  @keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
  }
  
  .hover-text {
    visibility: visible !important;
  }

  .hover-text.typewriter-ready::after {
    display: inline;
    animation: blink 1s step-end infinite;
  }
}

/* Hide typewriter cursor on mobile */
@media (max-width: 1023px) {
  .hover-text::after {
    display: none !important;
  }
}

/* ========== ENHANCED NAVIGATION ========== */
.menu-bar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 var(--spacing-xs);
  z-index: 8;
  transition: opacity var(--transition-normal);
  width: auto;
}

.menu-row {
  display: flex;
  flex-direction: row;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 1rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 2vw, 1.5rem);
  color: var(--primary);
}

.menu-row li {
  list-style: none;
}

.menu-row a {
  font-size: clamp(1rem, 2vw, 1.2rem);
  padding: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.menu-row a:hover,
.menu-row a:focus {
  color: var(--secondary);
  outline: none;
}

.menu-row a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition-fast);
}

.menu-row a:hover::after,
.menu-row a:focus::after {
  width: 100%;
}

.search-icon-container {
  position: fixed;
  top: 37px;
  right: 30px;
  z-index: 10;
  transition: opacity var(--transition-normal);
}

.search-icon {
  width: clamp(24px, 2.5vw, 40px);
  height: clamp(24px, 2.5vw, 40px);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--primary);
  transition: fill var(--transition-fast);
}

.search-icon:hover svg,
.search-icon:focus svg {
  fill: var(--secondary);
}

/* ========== ENHANCED CONTENT SECTIONS ========== */
.scroll-content {
  position: relative;
  z-index: 2;
  background: var(--dark);
  padding: var(--fluid-space-lg-xl) var(--fluid-space-md-lg);
  flex: 1;
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  pointer-events: auto !important;
  min-height: auto;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.scroll-content * {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  pointer-events: auto !important;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: auto;
}

.content-section {
  width: 95%;
  margin: 1rem auto;
  padding: var(--fluid-space-sm-md);
  background: rgba(42, 42, 45, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-lg);
}

.content-section:last-of-type {
  margin-bottom: 1rem;
}

/* ========== ENHANCED TOUCH TARGETS ========== */
@media (max-width: 768px) {
  .btn, .menu-row a, .exhibition-card {
    min-width: 44px;
    min-height: 44px;
    padding: 12px 16px;
  }
  
  .menu-row {
    gap: 1rem;
    padding: 0.5rem;
  }
}

/* ========== ENHANCED PERFORMANCE OPTIMIZATIONS ========== */
@media (max-width: 768px) {
  .word {
    transition: none !important;
    animation: none !important;
  }
    
  body::after {
    background: radial-gradient(circle at center, rgba(255,255,255,0.02), transparent 50%);
  }
}

/* ========== FOOTER STYLES ========== */
.site-footer {
  margin-top: auto;
  padding: clamp(0.75rem, 3vw, 1.25rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: var(--darker, #1a1a1a);
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.footer-section {
  width: 100%;
  text-align: center;
}

.footer-section h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--primary, #DAA520);
  margin-bottom: 0.5rem;
  font-family: var(--font-accent, sans-serif);
  letter-spacing: 0.5px;
}

.footer-section a {
  font-size: clamp(0.9rem, 2vw, 1rem);
  display: block;
  color: var(--text-muted, #aaa);
  margin-bottom: 0.25rem;
  text-decoration: none;
  transition: color var(--transition-fast, 0.3s ease);
  padding: 0.15rem 0;
}

.footer-section a:hover,
.footer-section a:focus {
  color: var(--light, #fff);
  outline: none;
}

.copyright {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted, #888);
  width: 100%;
  order: 999;
  font-size: 0.9rem;
}

.self-promo {
  text-align: center;
  color: var(--text-muted, #888);
  width: 100%;
  order: 999;
  margin: 1rem 0;
  font-style: italic;
  line-height: 1.5;
  font-size: 0.9rem;
}

.self-promo a {
  color: var(--secondary, #2F8F61);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
}

.self-promo a:hover {
  color: var(--secondary-dark, #2a7a53);
  border-bottom: 1px dotted var(--secondary);
}

.reveal {
  will-change: opacity, transform;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: white;
}

/* ===== Tablet (768px and up) ===== */
@media (min-width: 768px) {
  .footer-group {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
  }
  
  .footer-section {
    width: auto;
    flex: 0 1 auto;
    text-align: center;
    max-width: 280px;
  }
}

/* ===== Desktop (1024px and up) ===== */
@media (min-width: 1024px) {
  .footer-content {
    padding: 1.5rem;
  }
  
  .footer-group {
    gap: 3rem;
  }
}

/* ===== Small Mobile (320px and below) ===== */
@media (max-width: 320px) {
  .footer-content {
    padding: 0.75rem;
  }
  
  .social-links {
    gap: 0.9rem;
  }
  
  .social-links a {
    width: 36px;
    height: 36px;
  }
  
  .social-icon {
    width: 18px;
    height: 18px;
  }
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  background: var(--dark);
  border: 2px solid var(--primary);
  padding: var(--fluid-space-xs-sm) var(--fluid-space-sm-md);
  width: 80%;
  max-width: 600px;
  position: relative;
}

.search-box input {
  background: var(--breakpoint-xl);
  border: none;
  color: var(--secondary);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  width: 100%;
  outline: none;
}

.close-search {
  position: absolute;
  right: var(--fluid-space-sm-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  cursor: pointer;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  background: none;
  border: none;
  padding: 0;
}

.close-search:hover,
.close-search:focus {
  color: var(--secondary);
}

.visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none !important;
}

.fade-in {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.reveal-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ========== BACKGROUND EFFECTS ========== */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/french-stucco.png');
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 70%);
  z-index: 0;
}

body::before, body::after {
  position: fixed;
  overflow: hidden;
}

/* ========== HAMBURGER (BASE STYLES) ========== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: var(--light);
  border-radius: 4px;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  left: 0;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

.hamburger.active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
  top: 0;
  transform: rotate(90deg);
}

.hamburger.active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(90deg);
}

/* Hamburger positioning handled by mobile.css on mobile */
@media (min-width: 769px) {
  .hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
  }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 768px) { 
  .menu-bar {
    display: none;
  }
    
  .word {
    font-size: clamp(3rem, 12vw, 5rem);
  }
    
  .footer-section {
    flex: 1 1 100%;
  }
}

/* ========== HIDE MOBILE NAV ON DESKTOP ========== */
@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .overlay {
    display: none !important;
  }
}

/* ========== SHOW MOBILE NAV ONLY ON MOBILE ========== */
@media (max-width: 768px) {
  .mobile-nav {
    display: block;
  }
  
  .menu-bar {
    display: none;
  }
  
  .subpage-search-container {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  
  .ticker-track {
    animation: none !important;
  }
}

/* Print styles */
@media print {
  .header, .mobile-header, .footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .scroll-content {
    margin-top: 0 !important;
  }
}

@media (min-width: 768px) {
  .subpage-word {
    font-size: 2.5rem;
  }
}

/* ========== FULLSCREEN OVERLAY ========== */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.fullscreen-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.overlay-social {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0 2rem;
}

.overlay-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* ABOUT - Green theme (Art-) */
.fullscreen-overlay[data-bg-color="about"] {
  background: 
    radial-gradient(circle at 20% 80%, var(--art-green-light) 0%, transparent 50%),
    linear-gradient(135deg, var(--art-green), var(--art-green-dark));
}

/* WHAT WE DO - Black theme */
.fullscreen-overlay[data-bg-color="what-we-do"] {
  background: 
    radial-gradient(circle at 80% 20%, #333 0%, transparent 50%),
    linear-gradient(135deg, var(--pure-black), var(--off-black));
}

/* COMMUNITY - Gold theme (Life) - INVERSE */
.fullscreen-overlay[data-bg-color="community"] {
  background: 
    radial-gradient(circle at 20% 80%, var(--life-gold-light) 0%, transparent 50%),
    linear-gradient(135deg, var(--life-gold), var(--life-gold-dark));
}

/* PROJECTS - White theme - INVERSE */
.fullscreen-overlay[data-bg-color="projects"] {
  background: 
    radial-gradient(circle at 80% 20%, var(--off-white) 0%, transparent 50%),
    linear-gradient(135deg, var(--pure-white), var(--off-white));
}

.overlay-content {
  width: 90%;
  max-width: 800px;
  height: 80%;
  position: relative;
}

.close-overlay {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2001;
  transition: transform 0.3s ease;
}

.close-overlay:hover {
  transform: scale(1.1);
}

/* Text colors for different backgrounds */
.fullscreen-overlay[data-bg-color="about"] .nav-toggle,
.fullscreen-overlay[data-bg-color="what-we-do"] .nav-toggle {
  color: var(--pure-white);
}

.fullscreen-overlay[data-bg-color="community"] .nav-toggle,
.fullscreen-overlay[data-bg-color="projects"] .nav-toggle {
  color: var(--pure-black);
}

.fullscreen-overlay[data-bg-color="about"] .nav-toggle:hover,
.fullscreen-overlay[data-bg-color="what-we-do"] .nav-toggle:hover {
  color: var(--life-gold);
}

.fullscreen-overlay[data-bg-color="community"] .nav-toggle:hover,
.fullscreen-overlay[data-bg-color="projects"] .nav-toggle:hover {
  color: var(--art-green);
}

/* ========== FULLSCREEN NAVIGATION ========== */
.fullscreen-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: 100%;
  justify-content: center;
}

.nav-main-item {
  position: relative;
}

.nav-toggle {
  background: none;
  border: none;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  font-weight: bold;
}

.nav-submenu {
  display: none;
  padding-left: 2rem;
  margin-top: 1rem;
}

.nav-submenu.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.3s ease;
}

.nav-submenu a {
  text-decoration: none;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-family: 'Inter', sans-serif;
}

/* Text colors for submenu links */
.fullscreen-overlay[data-bg-color="about"] .nav-submenu a,
.fullscreen-overlay[data-bg-color="what-we-do"] .nav-submenu a {
  color: var(--pure-white);
  border-left-color: var(--life-gold);
}

.fullscreen-overlay[data-bg-color="community"] .nav-submenu a,
.fullscreen-overlay[data-bg-color="projects"] .nav-submenu a {
  color: var(--pure-black);
  border-left-color: var(--art-green);
}

.nav-submenu a:hover,
.nav-submenu a:focus {
  padding-left: 1.5rem;
  opacity: 0.8;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Base styles (for all screens) */
.main-heading {
  text-align: center;
  color: var(--primary-light, #FFC72C);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.main-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.main-subheading {
  font-weight: bold;
  color: var(--secondary-dark, #2F8F61);
  margin-bottom: 0.4rem;
}

.sub-main-subheading h3 {
  color: var(--primary, #DAA520);
  margin-bottom: 0.3rem;
}

.sub-main-subheading p {
  line-height: 1.6;
  color: white;
}

.sub-main-subheading a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.sub-main-subheading a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Desktop (1024px and above) */
.main-heading {
  font-size: 4rem;
}

.main-subheading {
  font-size: 2.5rem;
}

.sub-main-subheading h3 {
  font-size: 2rem;
}

.sub-main-subheading p {
  font-size: 1.2rem;
}

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
  .main-heading {
    font-size: 3rem;
    margin-bottom: 2.5rem;
  }
  
  .main-subheading {
    font-size: 2rem;
    margin-bottom: 0.3rem;
  }
  
  .sub-main-subheading h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
  }
  
  .sub-main-subheading p {
    font-size: 1.1rem;
    line-height: 1.5;
  }
}

/* Mobile (480px - 767px) */
@media screen and (max-width: 767px) {
  .main-heading {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .main-subheading {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }
  
  .sub-main-subheading h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
  }
  
  .sub-main-subheading p {
    font-size: 1rem;
    line-height: 1.4;
  }
}

/* Small Mobile (0px - 479px) */
@media screen and (max-width: 479px) {
  .main-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .main-subheading {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }
  
  .sub-main-subheading h3 {
    font-size: 1.2rem;
    margin-bottom: 0.15rem;
  }
  
  .sub-main-subheading p {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}

/* Sidebar - Only for laptop screens and above */
.sidebar {
  width: 280px;
  background-color: var(--darker);
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  padding: 0.55rem 1rem;
  position: relative;
  transition: all var(--transition-fast);
  border-radius: var(--border-radius, 6px);
}

.nav-link:hover {
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background-color: rgba(218, 165, 32, 0.1);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background-color: var(--primary);
  border-radius: 0 2px 2px 0;
}

/* Section Menu Styles */
.section-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.3rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.section-menu-item {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-accent);
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  padding-left: 1.1rem;
  border-radius: var(--border-radius, 6px);
  transition: all var(--transition-fast);
  display: block;
  position: relative;
}

.section-menu-item:hover {
  color: var(--secondary);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateX(4px);
}

.section-menu-item.active {
  color: var(--primary);
  font-weight: 500;
  background-color: rgba(218, 165, 32, 0.08);
}

.section-menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 50%;
  background-color: var(--primary);
  border-radius: 0 2px 2px 0;
}

/* Remove focus outline for sidebar navigation items */
.nav-link:focus,
.section-menu-item:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* But preserve focus visibility for accessibility */
.nav-link:focus-visible,
.section-menu-item:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Show sidebar only on laptop screens and above (1024px+) */
@media (min-width: 1024px) {
  .sidebar {
    display: flex;
  }
  
  /* Add padding to main content when sidebar is visible */
  body:has(.sidebar) {
    padding-left: 280px;
  }
}

/* Larger screens adjustment */
@media (min-width: 1280px) {
  .sidebar {
    width: 300px;
  }
  
  body:has(.sidebar) {
    padding-left: 300px;
  }
}

/* Smooth scrolling for sidebar */
.sidebar {
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar Logo Styles */
.sidebar-logo {
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  text-align: center;
}

.sidebar-logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.sidebar-logo-link:hover {
  opacity: 0.8;
}

.sidebar-logo-link .word {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -1px;
  display: inline-block;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-logo-link .art {
  background-image: linear-gradient(120deg, var(--secondary-dark), var(--secondary));
  font-family: 'Playfair Display', serif;
}

.sidebar-logo-link .life {
  background-image: linear-gradient(120deg, var(--primary), var(--primary-light));
  font-family: 'Playfair Display', serif;
}

.sidebar-logo-link .art,
.sidebar-logo-link .life {
  transform: translateX(0) !important;
}

.subpage-logo-container.mobile-nav-logo {
  pointer-events: none;
}

.subpage-logo-container.mobile-nav-logo a {
  pointer-events: auto;
}

/* ========== SCROLL FADE EFFECTS (Desktop only) ========== */
@media (min-width: 769px) {
  .scroll-fade {
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .scroll-fade.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .scroll-fade.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* Content fading (for featured-events, newsletter) */
.content-faded {
    opacity: 0.3 !important;
    pointer-events: none !important;
}

/* SCROLL FADE - FINAL VERSION */
@media (min-width: 769px) {
  .scroll-fade {
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
  }
  
  .scroll-fade.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  
  .scroll-fade.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Fix for fade-in animation */
.menu-bar,
.skyline-container,
#search-icon-container,
#hover-text {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.fade-in {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure the fade-in animation works */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* ===== UNIVERSAL EDGE FADE EFFECT ===== */
.content-wrapper {
  position: relative;
}

/* Create fade masks at top and bottom */
.content-wrapper::before,
.content-wrapper::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 998;
    transition: opacity 0.4s ease;
    opacity: 0;
}

/* Top fade mask */
.content-wrapper::before {
    top: 0;
    background: linear-gradient(to bottom, 
        rgba(26, 26, 26, 1) 0%,
        rgba(26, 26, 26, 0.6) 30%,
        rgba(26, 26, 26, 0.2) 70%,
        rgba(26, 26, 26, 0) 100%);
}

/* Bottom fade mask */
.content-wrapper::after {
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(26, 26, 26, 1) 0%,
        rgba(26, 26, 26, 0.6) 30%,
        rgba(26, 26, 26, 0.2) 70%,
        rgba(26, 26, 26, 0) 100%);
}

/* When edge fade is active */
.content-wrapper.edge-fade-active::before {
    opacity: var(--edge-fade-top, 0);
}

.content-wrapper.edge-fade-active::after {
    opacity: var(--edge-fade-bottom, 0);
}

/* ========== FIX SCROLLING ISSUE ========== */
/* Remove any blocking overlays */
.overlay,
.fullscreen-overlay,
.search-overlay {
  pointer-events: none !important;
}

.overlay.active,
.fullscreen-overlay.active,
.search-overlay.active {
  pointer-events: auto !important;
}

/* Ensure main content areas are ALWAYS interactive */
.content-wrapper,
.scroll-content,
main,
.content-container {
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

/* Force ALL content inside to be interactive */
.scroll-content * {
  pointer-events: auto !important;
}

/* Emergency override for any blocking elements */
body > *:not(.overlay):not(.fullscreen-overlay):not(.search-overlay) {
  pointer-events: auto !important;
}

/* Specific fix for content sections */
.featured-events,
.gallery-preview-section, 
.newsletter,
.ticker-container {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

/* ========== LOGO CLICKABILITY FIX - FINAL ========== */
/* Enable title container to receive clicks */
.title-container {
  pointer-events: auto !important;
  z-index: 4000 !important;
  cursor: pointer !important;
}

/* Make the logo link clickable */
.hero-link {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 4001 !important;
  display: flex !important;
}

/* Words should not block clicks but be visible */
.word.art,
.word.life {
  pointer-events: none !important;
  z-index: 4002 !important;
}

/* Hero container should not interfere */
.hero {
  pointer-events: none !important;
}

/* ========== FIX MENU BAR OVERLAP ========== */
/* Prevent menu bar from stealing clicks during animation */
body.homepage:not(.phase-3) .menu-bar {
  pointer-events: none !important;
}

/* Restore menu bar after animation */
body.homepage.phase-3 .menu-bar.visible {
  pointer-events: auto !important;
}

/* HIDE THE MAIN TITLE LOGO ON SUBPAGES */
body.subpage .hero {
  display: none !important;
}

/* Ensure only the sidebar/mobile logo shows on subpages */
body.subpage .title-container {
  display: none !important;
}

/* If you have a mobile header logo on subpages, show it */
body.subpage .mobile-nav-logo {
  display: block !important;
}

/* If you have a sidebar logo, ensure it's visible */
body.subpage .sidebar-logo {
  display: block !important;
}

/* ===== LEGACY STATE ALIASES ===== */
.active.is-hidden { display: none !important; }
.open.is-visible { display: block; }

/* Hide mobile header (and its logo) completely on laptops/desktops */
@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Extra safety: Reset any lingering transforms on mobile logo parts */
  .mobile-nav-logo .word.life {
    transform: none !important;
    display: none !important;
  }
}

/* Hide mobile header completely on laptops/desktops (min-width: 769px) */
@media (min-width: 769px) {
  .mobile-header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  
  /* Extra safety: Hide any sub-elements like the logo if they persist */
  .mobile-header * {
    display: none !important;
  }
}

/* FIX FOR SUBPAGES */
body.subpage {
  /* Ensure body doesn't clip content */
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

body.subpage .mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* High but reasonable */
  background: rgba(28, 28, 30, 0.95) !important;
  backdrop-filter: blur(10px);
}

body.subpage .content-wrapper {
  position: relative;
  z-index: 1; /* Lower than header */
  padding-top: 0;
}

body.subpage .scroll-content {
  position: relative;
  z-index: 1;
}

/* Remove any stacking context from content wrapper */
body.subpage .content-wrapper,
body.subpage .scroll-content {
  transform: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  will-change: auto !important;
  contain: none !important;
}

/* Fix ticker overflow */
.ticker-wrapper,
.ticker-track {
  max-width: 100vw;
  overflow: hidden !important;
}

/* ========== HAMBURGER FIXES (Add to END of styles.css) ========== */

/* Override base hamburger styles for mobile */
@media (max-width: 768px) {
  /* Ensure hamburger is visible and properly positioned on mobile */
  .hamburger {
    position: fixed !important;
    top: 8px !important;
    right: 1rem !important;
    z-index: 2501 !important; /* Match mobile.css */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
  }
  
  /* Remove any desktop interference */
  .hamburger,
  .hamburger * {
    box-sizing: border-box !important;
  }
}

/* Keep desktop hamburger hidden (it shouldn't exist on desktop) */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
}

/* Ensure fullscreen overlay is BELOW hamburger */
.fullscreen-overlay {
  z-index: 2400; /* Keep below hamburger's 2501 */
}

/* Mobile header should be above content but below hamburger */
@media (max-width: 768px) {
  .mobile-header {
    z-index: 2200 !important;
  }
  
  /* When overlay is active, hamburger should still be on top */
  .fullscreen-overlay.active ~ .mobile-header .hamburger {
    z-index: 2501 !important;
  }
}

/* Footer Logo Styles */
.footer-logo-center {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
  height: 100px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-logo {
    height: 80px;
  }
}

/* ========== TYPEWRITER TEXT SIZE - LARGER VERSION ========== */
.hover-text {
  font-size: clamp(1.3rem, 3vw, 1.8rem) !important; /* Increased size */
  font-family: var(--font-accent, 'Courier New', monospace);
  color: var(--text-light, rgba(255, 255, 255, 0.9)); /* Brighter color */
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Adjust for different screen sizes */
@media (max-width: 768px) {
  .hover-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
    line-height: 1.4;
  }
}

@media (min-width: 1024px) {
  .hover-text {
    font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  }
}

@media (min-width: 1440px) {
  .hover-text {
    font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
  }
}

/* Even larger for desktop if needed */
@media (min-width: 1920px) {
  .hover-text {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem) !important;
  }
}