/*
Theme Name: Christopher Preston Thompson
Theme URI: https://christopherprestonthompson.com
Author: Traveling Troubadour Media & Design
Author URI: https://travelingtroubadour.com
Description: A custom theme for Christopher Preston Thompson - Tenor, Medieval Harpist, and Musicologist. Features elegant medieval-inspired design with custom post types for events, albums, videos, and press quotes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cpt-theme
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo

Christopher Preston Thompson Theme - Bringing early music to life through elegant web design.
*/

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  --parchment: #f4f1ea;
  --parchment-dark: #e8e3d8;
  --ink: #1a1612;
  --ink-light: #2d2722;
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --burgundy: #722f37;
  --burgundy-dark: #5a252c;
  --sage: #6b7c5e;
  --cream: #faf8f5;
  --shadow: rgba(26, 22, 18, 0.15);
  --shadow-deep: rgba(26, 22, 18, 0.3);
}

/* ========================================
   RESET & BASE
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.7;
  font-size: 18px;
  overflow-x: hidden;
}

/* Hide default WordPress elements we're overriding */
.wp-post-image {
  display: none;
}

#copyright {
  display: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--parchment-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* ========================================
   NAVIGATION
======================================== */
nav#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 22, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease, background 0.3s ease;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

nav#mainNav.visible {
  transform: translateY(0);
}

nav#mainNav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

nav#mainNav li {
  margin: 0;
}

nav#mainNav a {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

nav#mainNav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav#mainNav a:hover {
  color: var(--gold);
}

nav#mainNav a:hover::after {
  width: 80%;
}

nav#mainNav a.active {
  color: var(--gold);
}

nav#mainNav a.active::after {
  width: 80%;
}

/* Admin bar compatibility */
body.admin-bar nav#mainNav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar nav#mainNav {
    top: 46px;
  }
  
  nav#mainNav ul {
    gap: 0.3rem;
    padding: 0.8rem 1rem;
  }
  
  nav#mainNav a {
    font-size: 0.6rem;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.1em;
  }
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 50%, #3d332d 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(114, 47, 55, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Animated musical notation background */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L50 70 M50 70 C50 80 60 85 65 80 C70 75 65 65 55 65 C50 65 50 70 50 70' stroke='%23b8860b' stroke-width='2' fill='none'/%3E%3Ccircle cx='25' cy='50' r='8' stroke='%23b8860b' stroke-width='2' fill='none'/%3E%3Cpath d='M75 30 L75 60' stroke='%23b8860b' stroke-width='2'/%3E%3C/svg%3E");
  animation: floatPattern 60s linear infinite;
}

@keyframes floatPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100px, -100px); }
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-image-container {
  position: relative;
  margin: 0 auto 2.5rem auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(184, 134, 11, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
  animation: imageGlow 4s ease-in-out infinite;
}

.hero-image,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-image {
  z-index: 2;
  transition: opacity 0.6s ease;
}

.hero-image.faded {
  opacity: 0;
}

@keyframes imageGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(184, 134, 11, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(184, 134, 11, 0.15), 0 25px 70px rgba(0, 0, 0, 0.6); }
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--parchment);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--gold-light);
  font-style: italic;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: rgba(244, 241, 234, 0.8);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-indicator a {
  color: var(--gold);
  font-size: 2.2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.scroll-indicator a:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   SECTIONS COMMON STYLES
======================================== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.15em;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-header .decorative-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--gold);
  opacity: 0.5;
}

.section-header .decorative-line span {
  font-size: 0.8rem;
}

.section-header .decorative-line::before,
.section-header .decorative-line::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

/* ========================================
   ABOUT SECTION
======================================== */
#about {
  background: var(--cream);
  border-top: 1px solid var(--parchment-dark);
  border-bottom: 1px solid var(--parchment-dark);
  max-width: 100%;
  width: 100%;
}

#about > .section-header,
#about > .about-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Bio Layout with Headshot */
.bio-layout {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 3rem;
  align-items: start;
}

.bio-headshot {
  position: relative;
}

.bio-headshot-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 3px solid var(--gold);
  box-shadow: 0 10px 40px var(--shadow-deep);
}

.bio-headshot-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  transition: opacity 0.6s ease;
}

.bio-headshot-image.faded {
  opacity: 0;
}

.bio-headshot-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Fallback for when there's no video - just the image */
.bio-headshot-container.no-video .bio-headshot-image {
  position: relative;
  z-index: 1;
}

.bio-headshot-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-light);
  text-align: center;
  margin-top: 0.75rem;
  padding: 0 0.5rem;
}

.about-text {
  font-size: 1.15rem;
  line-height: 1.9;
  text-align: justify;
  hyphens: auto;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Illuminated Manuscript First Letter */
.about-text p:first-of-type::first-letter {
  font-family: 'Cinzel', serif;
  float: left;
  font-size: 5.5rem;
  line-height: 0.75;
  padding: 0.1em 0.15em 0 0;
  margin-top: 0.05em;
  color: var(--burgundy);
  font-weight: 700;
  /* Illuminated effect */
  background: linear-gradient(135deg, var(--burgundy) 0%, #8b3a44 40%, var(--burgundy) 60%, #5a252c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Gold border/outline effect */
  text-shadow: none;
  position: relative;
  filter: drop-shadow(2px 2px 0 var(--gold)) drop-shadow(-1px -1px 0 rgba(184, 134, 11, 0.3));
}

/* Illuminated letter decoration wrapper */
.illuminated-letter-wrapper {
  float: left;
  margin: 0 0.3em 0.1em 0;
  position: relative;
}

.illuminated-letter {
  font-family: 'Cinzel', serif;
  font-size: 5.5rem;
  line-height: 0.75;
  font-weight: 700;
  color: var(--burgundy);
  position: relative;
  display: inline-block;
  /* Illuminated manuscript styling */
  background: linear-gradient(145deg, 
    var(--burgundy) 0%, 
    #943d47 25%, 
    var(--burgundy-dark) 50%,
    #b54a56 75%,
    var(--burgundy) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 3px 0 var(--gold));
}

.illuminated-letter::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: linear-gradient(135deg, 
    rgba(184, 134, 11, 0.08) 0%, 
    rgba(244, 241, 234, 0.5) 50%,
    rgba(184, 134, 11, 0.08) 100%
  );
  z-index: -1;
}

.illuminated-letter::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid rgba(184, 134, 11, 0.5);
  border-radius: 2px;
  z-index: -1;
}

/* Alternative: Use this class on the first paragraph for enhanced illumination */
.about-text .has-illuminated-letter::first-letter {
  font-family: 'Cinzel', serif;
  float: left;
  font-size: 6rem;
  line-height: 0.7;
  padding: 0.15em 0.2em 0.1em 0.15em;
  margin: 0.05em 0.1em 0 -0.05em;
  font-weight: 700;
  /* Rich burgundy with gold highlights */
  background: 
    linear-gradient(145deg, 
      #722f37 0%, 
      #943d47 20%, 
      #722f37 40%,
      #5a252c 60%,
      #722f37 80%,
      #8b3a44 100%
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Gold border box */
  border: 3px solid var(--gold);
  border-radius: 4px;
  /* Inner gold glow */
  box-shadow: 
    inset 0 0 20px rgba(184, 134, 11, 0.15),
    0 4px 15px rgba(26, 22, 18, 0.2),
    0 0 0 1px rgba(184, 134, 11, 0.3);
  /* Parchment-like background */
  background-color: rgba(250, 248, 245, 0.9);
  position: relative;
}

/* Responsive bio layout */
@media (max-width: 900px) {
  .bio-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .bio-headshot {
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .bio-layout {
    gap: 1.5rem;
  }
  
  .bio-headshot {
    max-width: 280px;
  }
  
  .about-text p:first-of-type::first-letter,
  .about-text .has-illuminated-letter::first-letter {
    font-size: 4rem;
  }
}

.about-text a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
  transition: all 0.3s ease;
}

.about-text a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--parchment-dark);
}

.highlight-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--parchment);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow);
}

.highlight-item i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.highlight-item h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--ink-light);
}

/* ========================================
   MODAL STYLES
======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 22, 18, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--cream);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--burgundy);
}

.modal-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.modal-content .modal-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-light);
}

/* ========================================
   PRESS SECTION
======================================== */
#press {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

#press .section-header h2 {
  color: var(--parchment);
}

.press-quotes-container {
  position: relative;
  height: 160px;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.press-quote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  text-align: center;
  padding: 0 2rem;
}

.press-quote.active {
  opacity: 1;
  transform: translateY(0);
}

.press-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--parchment);
  margin-bottom: 1rem;
}

.press-quote cite {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

.press-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.press-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.press-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ========================================
   DISCOGRAPHY SECTION
======================================== */
#discography {
  background: var(--parchment);
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.album-card {
  background: var(--cream);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.album-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-deep);
}

.album-cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
  transform: scale(1.05);
}

.album-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(26, 22, 18, 0.9), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.album-card:hover .album-overlay {
  opacity: 1;
}

.album-links {
  display: flex;
  gap: 1rem;
}

.album-links a {
  color: var(--parchment);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.album-links a:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.album-info {
  padding: 1.5rem;
}

.album-info h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.album-info .album-ensemble {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.album-info .album-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-light);
}

/* ========================================
   ENSEMBLES SECTION
======================================== */
#ensembles {
  background: var(--cream);
  border-top: 1px solid var(--parchment-dark);
  max-width: 100%;
  width: 100%;
}

.ensembles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ensemble-card {
  background: var(--parchment);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.ensemble-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
}

.ensemble-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-deep);
}

.ensemble-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.ensemble-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.ensemble-card .role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.ensemble-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 1.5rem;
}

.ensemble-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.ensemble-card .btn:hover {
  background: var(--gold);
  color: var(--parchment);
}

/* ========================================
   SCHEDULE SECTION
======================================== */
#schedule {
  background: var(--parchment);
  border-top: 1px solid var(--parchment-dark);
}

.events-container {
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 15px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.event-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px var(--shadow);
}

.event-date {
  background: var(--burgundy);
  color: var(--parchment);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  min-width: 80px;
}

.event-date .month {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-date .day {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin: 0.3rem 0;
}

.event-date .year {
  font-size: 0.75rem;
  opacity: 0.8;
}

.event-details h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.event-details .program {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.event-details .venue {
  font-size: 0.9rem;
  color: var(--ink-light);
}

.event-details .venue i {
  color: var(--gold);
  margin-right: 0.3rem;
}

.event-details .time {
  font-size: 0.85rem;
  color: var(--ink-light);
  margin-top: 0.3rem;
}

.event-details .time i {
  color: var(--gold);
  margin-right: 0.3rem;
}

.event-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--gold);
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.event-actions .btn:hover {
  background: var(--burgundy);
  transform: translateY(-2px);
}

.no-events {
  text-align: center;
  padding: 3rem;
  background: var(--cream);
  border-radius: 12px;
}

.no-events i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-events p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--ink-light);
}

/* ========================================
   MEDIA SECTION
======================================== */
#media {
  background: var(--cream);
  border-top: 1px solid var(--parchment-dark);
  max-width: 100%;
  width: 100%;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.media-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--shadow);
  aspect-ratio: 16/9;
}

.media-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.media-placeholder {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.media-placeholder:hover {
  background: var(--ink-light);
}

.media-placeholder i {
  font-size: 3rem;
  color: var(--gold);
}

.media-placeholder span {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--parchment);
}

/* ========================================
   CONTACT & FOOTER SECTION
======================================== */
#contact {
  background: var(--ink);
  color: var(--parchment);
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 100%;
  width: 100%;
}

#contact .section-header h2 {
  color: var(--parchment);
}

#contact .section-header .decorative-line {
  color: var(--gold);
}

#contact .section-header .decorative-line::before,
#contact .section-header .decorative-line::after {
  background: var(--gold);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--parchment);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--gold);
}

.contact-email i {
  color: var(--parchment);
  transition: color 0.3s ease;
}

.contact-email:hover i {
  color: var(--gold);
}

.affiliations {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 134, 11, 0.3);
}

.affiliations h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.affiliation-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.affiliation-links a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.affiliation-links a:hover {
  color: var(--gold-light);
  opacity: 1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: var(--parchment);
  font-size: 1.3rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--gold);
  opacity: 1;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(244, 241, 234, 0.5);
  margin: 0;
}

/* ========================================
   SCROLL ANIMATIONS
======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
  nav ul {
    gap: 1.2rem;
  }

  nav a {
    font-size: 0.65rem;
  }

  .hero-image-container {
    width: 200px;
    height: 200px;
  }

  section {
    padding: 3rem 1.5rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .event-date {
    width: fit-content;
    margin: 0 auto;
  }

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

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

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

  .about-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   ADMIN BAR COMPATIBILITY
======================================== */
body.admin-bar .modal-overlay {
  padding-top: calc(2rem + 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .modal-overlay {
    padding-top: calc(2rem + 46px);
  }
}
