/*
Theme Name: POPCHOR Merklingen
Theme URI: https://www.saengerbund-merklingen.de/
Author: Annika Zuske, Niel Smith
Description: Offizielles Theme für POPCHOR Merklingen – Sängerbund Merklingen e.V. Modernes A-Cappella-Pop-Chor-Website-Theme mit Event-Verwaltung, Sängerheim-Buchungssystem und Mitgliederbereich.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: popchor-merklingen
Tags: custom-menu, featured-images, full-width-template, custom-colors, custom-logo, threaded-comments, translation-ready
*/

/* ===================================================================
   GOOGLE FONTS
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ===================================================================
   DESIGN TOKENS
   =================================================================== */
:root {
  --bg:           hsl(40, 20%, 97%);
  --fg:           hsl(150, 25%, 12%);
  --card-bg:      hsl(40, 15%, 93%);
  --card-fg:      hsl(150, 25%, 12%);
  --primary:      hsl(150, 30%, 28%);
  --primary-fg:   hsl(40, 20%, 97%);
  --secondary:    hsl(40, 18%, 88%);
  --muted:        hsl(150, 10%, 45%);
  --accent:       hsl(0, 45%, 35%);
  --accent-fg:    hsl(40, 20%, 97%);
  --border:       hsl(40, 12%, 85%);
  --input-bg:     hsl(40, 20%, 97%);
  --radius:       0.75rem;
  --radius-full:  9999px;

  --grad-forest:    linear-gradient(135deg, hsl(150, 30%, 28%), hsl(160, 25%, 22%));
  --grad-burgundy:  linear-gradient(135deg, hsl(0, 45%, 35%), hsl(350, 40%, 28%));
  --grad-warm:      linear-gradient(180deg, hsl(40, 25%, 95%), hsl(40, 18%, 88%));
  --grad-stage:     linear-gradient(180deg, transparent 0%, hsl(150 25% 8% / 0.6) 50%, hsl(150 25% 8%) 100%);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-sm: 0 1px 3px hsl(150 25% 8% / 0.06);
  --shadow-md: 0 4px 16px hsl(150 25% 8% / 0.10);
  --shadow-lg: 0 8px 32px hsl(150 25% 8% / 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ===================================================================
   TYPOGRAPHY HELPERS
   =================================================================== */
.overline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.15;
}

.section-title em, .section-title .text-italic {
  font-style: italic;
  color: var(--primary);
}

.body-text {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* ===================================================================
   LAYOUT
   =================================================================== */
.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section          { padding: 6rem 1.5rem; }
.section--sm      { padding: 4rem 1.5rem; }
.section--warm    { background: var(--grad-warm); }
.section--primary { background: var(--primary); color: var(--primary-fg); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.text-center { text-align: center; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  line-height: 1;
}
.btn svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }

.btn-primary  { background: var(--grad-forest);   color: var(--primary-fg); }
.btn-burgundy { background: var(--grad-burgundy); color: var(--accent-fg); }
.btn-light    { background: var(--primary-fg);    color: var(--fg); }
.btn-outline  { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: var(--primary-fg); }
.btn-ghost    { background: transparent; color: var(--primary); }

.btn-primary:hover,
.btn-burgundy:hover { opacity: 0.9; }
.btn-light:hover    { opacity: 0.92; color: var(--fg); }
.btn-outline:hover  { background: rgba(255,255,255,0.1); color: var(--primary-fg); }
.btn-ghost:hover    { text-decoration: underline; text-underline-offset: 4px; }

/* ===================================================================
   SITE HEADER
   =================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: hsl(40 20% 97% / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
}

.site-logo img { height: 3rem; width:auto; display: block; }
@media (min-width: 768px) { .site-logo img { height: 3.5rem; } }

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
@media (min-width: 1024px) { .nav-desktop { display: flex; } }
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop .nav-icon { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-desktop .nav-icon svg { width: 0.875rem; height: 0.875rem; }
.nav-desktop .nav-cta {
  background: var(--grad-forest);
  color: var(--primary-fg);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.nav-desktop .nav-cta:hover { opacity: 0.9; color: var(--primary-fg); }

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--fg);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* Mobile menu */
.nav-mobile {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}
.nav-mobile a:hover {
  background: hsl(150 30% 28% / 0.05);
  color: var(--primary);
}
.nav-mobile-cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.nav-mobile-cta-row .btn { flex: 1; text-align: center; justify-content: center; }
.nav-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0 1rem;
}
.nav-social a { color: var(--muted); transition: color 0.2s; display: flex; }
.nav-social a:hover { color: var(--primary); }
.nav-social svg { width: 1.25rem; height: 1.25rem; }

/* ===================================================================
   MARQUEE BANNER
   =================================================================== */
.marquee-banner {
  position: fixed;
  top: 5rem;
  left: 0; right: 0;
  z-index: 90;
  background: var(--accent);
  color: var(--accent-fg);
  border-top: 1px solid hsl(0 45% 35% / 0.2);
  border-bottom: 1px solid hsl(0 45% 35% / 0.2);
  box-shadow: var(--shadow-sm);
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
}
.marquee-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.marquee-track { flex: 1; overflow: hidden; }
.marquee-content {
  display: flex;
  white-space: nowrap;
  will-change: transform;
  transform: translateZ(0);
  animation: marquee 35s linear infinite;
}
.marquee-content span {
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}
.marquee-content.paused { animation-play-state: paused; }
.marquee-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius-full);
  color: var(--accent-fg);
  transition: background 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.marquee-btn:hover { background: hsl(0 100% 100% / 0.1); }
.marquee-btn svg { width: 0.875rem; height: 0.875rem; }

/* ===================================================================
   PAGE OFFSET (header + marquee)
   =================================================================== */
.page-has-marquee { padding-top: calc(5rem + 2.75rem); }
.page-no-marquee  { padding-top: 5rem; }

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  will-change: transform;
  isolation: isolate;
  justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
  animation: ken-burns 10s ease-in-out infinite;
  will-change: transform;
}
.hero__overlay-wine {
  position: absolute; inset: 0;
  background: hsl(0 55% 25% / 0.55);
}
.hero__overlay-light {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, hsl(150 60% 35% / 0.2), transparent 55%),
    radial-gradient(ellipse at 75% 80%, hsl(0 70% 40% / 0.25), transparent 60%);
}
.hero__overlay-stage {
  position: absolute; inset: 0;
  background: var(--grad-stage);
}
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 50rem;
}
.hero__logo { height: 4rem; width: auto; margin: 0 auto 1.5rem; filter: brightness(0) invert(1); }
@media (min-width: 768px) { .hero__logo { height: 5rem; } }
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-style: italic;
  color: hsl(40 20% 97% / 0.8);
  margin-bottom: 0.5rem;
  animation: fade-up 0.6s ease-out 0.2s both;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  color: hsl(40 20% 97% / 0.6);
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-inline: auto;
  animation: fade-up 0.6s ease-out 0.4s both;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  animation: fade-up 0.6s ease-out 0.6s both;
}
@media (min-width: 640px) { .hero__actions { flex-direction: row; } }

/* ===================================================================
   ABOUT SECTION
   =================================================================== */
.about__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-lg);
}
.about__image img {
  position: absolute; top: 50%; left: 0;
  width: 100%; height: 130%; object-fit: cover;
  filter: sepia(0.25) saturate(1.15) hue-rotate(-8deg) contrast(1.05) brightness(0.98);
  will-change: transform;
  transform: translateY(-50%);
}
.about__counters {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.counter { text-align: center; }
.counter__value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.counter__label { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; }
.divider-v { width: 1px; height: 3rem; background: var(--border); }

/* ===================================================================
   FEATURES SECTION
   =================================================================== */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); border-color: hsl(150 30% 28% / 0.3); }
.feature-card__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: hsl(150 30% 28% / 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}
.feature-card:hover .feature-card__icon { background: hsl(150 30% 28% / 0.2); }
.feature-card__icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.feature-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; }

/* ===================================================================
   CONDUCTOR SECTION
   =================================================================== */
.conductor__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-lg);
}
.conductor__image img {
  position: absolute; top: 50%; left: 0;
  width: 100%; height: 130%; object-fit: cover;
  will-change: transform;
  transform: translateY(-50%);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary);
  transition: text-decoration 0.2s;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 1rem; height: 1rem; }

/* ===================================================================
   NEWS SECTION
   =================================================================== */
.news-featured {
  display: grid;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--fg);
}
@media (min-width: 768px) { .news-featured { grid-template-columns: 1fr 1fr; } }
.news-featured:hover { box-shadow: var(--shadow-lg); border-color: hsl(150 30% 28% / 0.3); }
.news-featured__image { aspect-ratio: 16/10; overflow: hidden; }
@media (min-width: 768px) { .news-featured__image { aspect-ratio: auto; } }
.news-featured__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.news-featured:hover .news-featured__image img { transform: scale(1.05); }
.news-featured__body {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); display: inline-block; }
.badge-label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-size: 0.7rem; }
.news-featured__date { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--muted); }
.news-featured__date svg { width: 0.875rem; height: 0.875rem; }
.news-featured__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.25;
  transition: color 0.2s;
}
.news-featured:hover .news-featured__title { color: var(--primary); }
.news-featured__excerpt {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .news-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ===================================================================
   EVENTS SECTION
   =================================================================== */
.events__layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
@media (min-width: 768px) {
  .events__layout { flex-direction: row; align-items: flex-start; gap: 4rem; }
  .events__sidebar { width: 18rem; flex-shrink: 0; position: sticky; top: 6rem; }
}
.events__list { flex: 1; display: flex; flex-direction: column; gap: 1rem; }

.event-card {
  display: flex;
  gap: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  background: var(--card-bg);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.event-card--highlight { border-color: hsl(150 30% 28% / 0.4); background: hsl(150 30% 28% / 0.05); }
.event-card:hover { box-shadow: var(--shadow-md); border-color: hsl(150 30% 28% / 0.4); }

.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 5rem; }
.event-date__month { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.event-date__day { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.event-date__dow { font-size: 0.7rem; color: var(--muted); }
.event-divider { width: 1px; background: var(--border); flex-shrink: 0; transition: background 0.2s; }
.event-card:hover .event-divider { background: hsl(150 30% 28% / 0.3); }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.375rem; transition: color 0.2s; }
.event-card:hover .event-body h3 { color: var(--primary); }
.event-body p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: 0.75rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.75rem; color: var(--muted); }
.event-meta span, .event-meta a { display: flex; align-items: center; gap: 0.375rem; }
.event-meta svg { width: 0.875rem; height: 0.875rem; color: hsl(150 30% 28% / 0.7); }
.event-meta a { color: var(--primary); }
.event-meta a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ===================================================================
   MEMBERSHIP SECTION
   =================================================================== */
.doc-list { display: flex; flex-direction: column; gap: 0.75rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--fg);
}
.doc-item:hover { box-shadow: var(--shadow-lg); border-color: hsl(150 30% 28% / 0.3); }
.doc-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(0 45% 35% / 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.doc-item:hover .doc-icon { background: hsl(0 45% 35% / 0.2); }
.doc-icon svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }
.doc-item span { flex: 1; font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; }
.doc-arrow { width: 1rem; height: 1rem; color: var(--muted); flex-shrink: 0; transition: color 0.2s; }
.doc-item:hover .doc-arrow { color: var(--primary); }

/* ===================================================================
   REHEARSAL SECTION
   =================================================================== */
.rehearsal { background: var(--primary); color: var(--primary-fg); }
.rehearsal h2 { color: var(--primary-fg); margin-bottom: 1.5rem; }
.rehearsal p { color: hsl(40 20% 97% / 0.7); margin-bottom: 3rem; }
.rehearsal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .rehearsal-grid { grid-template-columns: repeat(3, 1fr); } }
.rehearsal-item { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.rehearsal-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.rehearsal-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary-fg); }
.rehearsal-item .rehearsal-label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary-fg); }
.rehearsal-item .rehearsal-sublabel { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

/* ===================================================================
   VENUE INTRO
   =================================================================== */
.venue-info-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.venue-info-box img { width: auto; height: 6rem; margin: 0 auto 1.5rem; }
.venue-info-box p { color: var(--muted); font-size: 0.875rem; line-height: 1.75; }
.venue-info-links { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.5rem; }
.venue-info-links .venue-link-main { color: var(--primary); font-family: var(--font-body); font-weight: 600; font-size: 0.875rem; }
.venue-info-links .venue-link-main:hover { text-decoration: underline; text-underline-offset: 4px; }
.venue-info-links .venue-link-sub { color: var(--muted); font-family: var(--font-body); font-size: 0.75rem; }
.venue-info-links .venue-link-sub:hover { color: var(--fg); }

/* ===================================================================
   VENUE GALLERY
   =================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  display: block;
  width: 100%;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(0.2) saturate(1.1) hue-rotate(-5deg) contrast(1.03);
  transition: transform 0.5s, filter 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); filter: sepia(0.1) saturate(1.2) brightness(0.85); }
.gallery-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
}
.gallery-item:hover .gallery-zoom { background: rgba(0,0,0,0.2); }
.gallery-zoom svg { width: 2rem; height: 2rem; color: white; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-zoom svg { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: hsl(150 25% 12% / 0.92);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 0.5rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.1); border: none; color: white; cursor: pointer;
  padding: 0.625rem; border-radius: 50%; display: flex; transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__close svg { width: 1.5rem; height: 1.5rem; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: none; color: white; cursor: pointer;
  padding: 0.75rem; border-radius: 50%; display: flex; transition: background 0.2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav svg { width: 1.5rem; height: 1.5rem; }
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }

/* ===================================================================
   BOOKING SECTION
   =================================================================== */
.booking__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.booking-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1024px) { .booking-panel--sticky { position: sticky; top: 6rem; } }
.booking-panel h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.booking-panel h3 svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.booking-hint { font-size: 0.7rem; color: var(--muted); margin-bottom: 1rem; }
.booking-config { display: flex; flex-direction: column; gap: 1.5rem; }

/* Date input */
.date-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--fg);
  cursor: pointer;
  margin-bottom: 1rem;
}
.date-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(150 30% 28% / 0.1); }

.booked-legend { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--muted); flex-wrap: wrap; }
.booked-legend span { display: flex; align-items: center; gap: 0.375rem; }
.legend-swatch { width: 0.75rem; height: 0.75rem; border-radius: 0.125rem; display: inline-block; }
.legend-swatch--selected { background: var(--primary); }
.legend-swatch--booked { background: hsl(0 45% 35% / 0.2); border: 1px solid hsl(0 45% 35% / 0.4); }

.booked-dates-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.booked-dates-section p { font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-bottom: 0.5rem; }
.booked-dates-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.booked-date-tag {
  font-size: 0.7rem;
  background: hsl(0 45% 35% / 0.1);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid hsl(0 45% 35% / 0.2);
  text-decoration: line-through;
}

/* Room buttons */
.room-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .room-grid { grid-template-columns: 1fr 1fr; } }
.room-btn {
  text-align: left;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  width: 100%;
}
.room-btn:hover { border-color: hsl(150 30% 28% / 0.3); }
.room-btn.selected { border-color: var(--primary); background: hsl(150 30% 28% / 0.05); box-shadow: var(--shadow-md); }
.room-btn__name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--fg); }
.room-btn__capacity { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.5rem; }
.room-btn__desc { font-size: 0.875rem; color: var(--muted); line-height: 1.5; margin-bottom: 0.75rem; }
.room-features { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.room-feature-tag { font-size: 0.625rem; font-family: var(--font-body); font-weight: 500; background: var(--secondary); color: var(--fg); padding: 0.15rem 0.5rem; border-radius: var(--radius-full); }
.room-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* Duration */
.duration-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .duration-grid { grid-template-columns: repeat(3, 1fr); } }
.duration-btn {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  width: 100%;
}
.duration-btn:hover { border-color: hsl(150 30% 28% / 0.3); }
.duration-btn.selected { border-color: var(--primary); background: hsl(150 30% 28% / 0.05); box-shadow: var(--shadow-md); }
.duration-btn__label { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--fg); }
.duration-btn__price { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--primary); margin-top: 0.25rem; }

/* Addons */
.addons-toggle-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
}
.addons-toggle-btn h3 { margin-bottom: 0; }
.addons-toggle-btn .toggle-icon { width: 1.25rem; height: 1.25rem; color: var(--muted); transition: transform 0.2s; }
.addons-toggle-btn.expanded .toggle-icon { transform: rotate(180deg); }
.addons-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.addon-label {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.addon-label.checked { border-color: var(--primary); background: hsl(150 30% 28% / 0.05); }
.addon-label:not(.checked):hover { border-color: hsl(150 30% 28% / 0.2); }
.addon-label input[type="checkbox"] { display: none; }
.addon-left { display: flex; align-items: center; gap: 0.75rem; }
.addon-checkbox {
  width: 1.25rem; height: 1.25rem;
  border-radius: 0.25rem;
  border: 2px solid hsl(150 10% 45% / 0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.addon-checkbox.checked { background: var(--primary); border-color: var(--primary); }
.addon-checkbox svg { width: 0.875rem; height: 0.875rem; color: var(--primary-fg); }
.addon-name { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; }
.addon-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary); }

/* Price summary */
.price-summary {
  background: var(--fg);
  color: var(--primary-fg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.price-summary__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.price-summary__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.price-summary__total { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; }
.price-summary__lines { color: hsl(40 20% 97% / 0.6); font-size: 0.875rem; display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.price-summary__line { display: flex; justify-content: space-between; }
.price-summary__disclaimer { font-size: 0.625rem; color: hsl(40 20% 97% / 0.4); }

/* Booking form */
.booking-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.selected-date-info { font-size: 0.875rem; color: var(--primary); font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(150 30% 28% / 0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: none; }

/* ===================================================================
   CTA / CONTACT SECTION
   =================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--fg);
}
.contact-card:hover { box-shadow: var(--shadow-lg); border-color: hsl(150 30% 28% / 0.3); }
.contact-card__icon {
  width: 3rem; height: 3rem;
  border-radius: var(--radius);
  background: hsl(150 30% 28% / 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.contact-card:hover .contact-card__icon { background: hsl(150 30% 28% / 0.2); }
.contact-card__icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.contact-card__label { font-family: var(--font-body); font-weight: 600; }
.contact-card__value { color: var(--muted); font-size: 0.875rem; }

/* ===================================================================
   SITE FOOTER
   =================================================================== */
.site-footer { background: var(--fg); color: var(--primary-fg); padding: 4rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { width: auto;height: 3rem; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-desc { color: hsl(40 20% 97% / 0.5); font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-fg);
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer-heading { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--primary-fg); margin-bottom: 1rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav li a { color: hsl(40 20% 97% / 0.5); font-size: 0.875rem; transition: color 0.2s; display: flex; align-items: center; gap: 0.375rem; }
.footer-nav li a:hover { color: var(--primary-fg); }
.footer-nav svg { width: 0.75rem; height: 0.75rem; }
.footer-lyra { height: 5rem; margin-bottom: 0.75rem; }
.footer-lyra-link { color: hsl(40 20% 97% / 0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-lyra-link:hover { color: var(--primary-fg); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy { color: hsl(40 20% 97% / 0.3); font-size: 0.75rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: hsl(40 20% 97% / 0.3); font-size: 0.75rem; transition: color 0.2s; }
.footer-links a:hover { color: hsl(40 20% 97% / 0.6); }

/* ===================================================================
   BLOG / NEWS ARCHIVE
   =================================================================== */
.page-banner { padding: 8rem 1.5rem 4rem; background: var(--grad-warm); text-align: center; }
.page-banner h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1rem; }
.page-banner p { color: var(--muted); max-width: 40rem; margin: 0 auto; }
.archive-content { padding: 4rem 1.5rem 6rem; }
.news-list { display: flex; flex-direction: column; gap: 1.5rem; }
.news-item {
  display: grid;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: var(--fg);
}
@media (min-width: 768px) { .news-item { grid-template-columns: 260px 1fr; } }
.news-item:hover { box-shadow: var(--shadow-lg); border-color: hsl(150 30% 28% / 0.3); }
.news-item__image { aspect-ratio: 4/3; overflow: hidden; background: var(--grad-warm); }
@media (min-width: 768px) { .news-item__image { aspect-ratio: auto; } }
.news-item__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-item:hover .news-item__image img { transform: scale(1.05); }
.news-item__body { padding: 1.5rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.news-item__date { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.75rem; }
.news-item__date svg { width: 0.875rem; height: 0.875rem; }
.news-item__title { font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 700; margin-bottom: 0.75rem; line-height: 1.25; transition: color 0.2s; }
.news-item:hover .news-item__title { color: var(--primary); }
.news-item__excerpt { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.read-more { display: inline-flex; align-items: center; gap: 0.375rem; font-family: var(--font-body); font-weight: 600; font-size: 0.875rem; color: var(--primary); }
.read-more svg { width: 0.875rem; height: 0.875rem; }

/* ===================================================================
   SINGLE POST
   =================================================================== */
.single-content { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 6rem; }
.single-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.single-content .post-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 2rem; }
.single-content .post-thumbnail { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; aspect-ratio: 16/8; }
.single-content .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.single-content .entry-content { line-height: 1.75; color: hsl(150 25% 12% / 0.9); }
.single-content .entry-content p { margin-bottom: 1.5rem; }
.single-content .entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary); margin: 2.5rem 0 1rem; }
.single-content .entry-content h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.single-content .entry-content ul, .single-content .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; list-style: disc; }
.single-content .entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.back-nav { margin-bottom: 2rem; }

/* ===================================================================
   HISTORY PAGE
   =================================================================== */
.history-hero { padding: 8rem 1.5rem 4rem; background: var(--grad-warm); text-align: center; }
.history-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.history-hero .history-hero__sub { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.875rem); color: var(--muted); margin-top: 1rem; }
.history-story { padding: 4rem 1.5rem; }
.history-prose { max-width: 48rem; margin: 0 auto; font-size: 1.125rem; line-height: 1.75; color: hsl(150 25% 12% / 0.9); }
.history-prose p { margin-bottom: 1.5rem; }
.history-prose h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--primary); margin: 2.5rem 0 1rem; }
.history-prose blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}
.history-timeline { position: relative; padding: 5rem 1.5rem; background: var(--card-bg); overflow: hidden; }
.timeline-lyra { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; max-width: none; opacity: 0.04; pointer-events: none; user-select: none; }
.timeline-notes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.timeline-note { position: absolute; font-family: var(--font-display); opacity: 0.08; }
.timeline-list { position: relative; max-width: 50rem; margin: 0 auto; }
.timeline-line { position: absolute; left: 1rem; top: 0; bottom: 0; width: 1px; background: var(--border); }
@media (min-width: 768px) { .timeline-line { left: 50%; transform: translateX(-50%); } }
.timeline-items { display: flex; flex-direction: column; gap: 3rem; }
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute; left: 1rem; top: 0.5rem;
  transform: translateX(-50%);
  width: 1rem; height: 1rem;
  border-radius: 50%;
  border: 4px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--border);
}
@media (min-width: 768px) { .timeline-dot { left: 50%; } }
.timeline-dot--primary { background: var(--primary); }
.timeline-dot--accent  { background: var(--accent); }
.timeline-content { padding-left: 3rem; }
@media (min-width: 768px) {
  .timeline-item:nth-child(odd) .timeline-content { width: 50%; padding-right: 3rem; padding-left: 0; }
  .timeline-item:nth-child(even) .timeline-content { width: 50%; margin-left: 50%; padding-left: 3rem; padding-right: 0; }
}
.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.timeline-card:hover { box-shadow: var(--shadow-md); }
.timeline-year { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 0.75rem; }
.timeline-year--primary { color: var(--primary); }
.timeline-year--accent  { color: var(--accent); }
.timeline-card p { color: var(--muted); line-height: 1.65; font-size: 0.9rem; margin-bottom: 0.5rem; }
.timeline-card p:last-child { margin-bottom: 0; }

/* ===================================================================
   MEMBERS AREA
   =================================================================== */
.members-login { min-height: 100vh; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.members-login__wrap { width: 100%; max-width: 28rem; }
.members-login__icon { width: 4rem; height: 4rem; border-radius: 50%; background: hsl(150 30% 28% / 0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.members-login__icon svg { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.login-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); margin-top: 2rem; }
.login-card input[type="password"] {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); font-family: var(--font-body); font-size: 0.875rem; color: var(--fg); margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-card input[type="password"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(150 30% 28% / 0.1); }
.login-card input.has-error { border-color: var(--accent); box-shadow: 0 0 0 3px hsl(0 45% 35% / 0.1); }
.login-error { color: var(--accent); font-size: 0.75rem; margin-bottom: 1rem; display: none; }
.login-error.visible { display: block; }
.members-back { text-align: center; margin-top: 1.5rem; }
.members-back a { color: var(--primary); font-size: 0.875rem; font-weight: 500; }
.members-back a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Members dashboard */
.members-site-header { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; }
.members-header-inner { max-width: 50rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.members-header-inner h1 { font-size: 1.5rem; }
.members-header-inner .subtitle { color: var(--muted); font-size: 0.75rem; }
.members-header-actions { display: flex; align-items: center; gap: 1.5rem; }
.members-header-actions a { color: var(--primary); font-size: 0.875rem; font-weight: 500; }
.members-header-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.logout-btn { display: flex; align-items: center; gap: 0.375rem; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 0.875rem; transition: color 0.2s; }
.logout-btn:hover { color: var(--fg); }
.logout-btn svg { width: 1rem; height: 1rem; }
.members-main { max-width: 50rem; margin: 0 auto; padding: 3rem 1.5rem; }
.members-info-box { background: hsl(150 30% 28% / 0.05); border: 1px solid hsl(150 30% 28% / 0.2); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2.5rem; }
.members-info-box h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.members-info-box h2 svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.members-info-box p { color: var(--muted); font-size: 0.875rem; }
.internal-events { display: flex; flex-direction: column; gap: 1rem; }
.internal-event {
  display: flex; gap: 1.25rem;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: box-shadow 0.2s;
}
.internal-event:hover { box-shadow: var(--shadow-md); }
.internal-event__date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 4rem; flex-shrink: 0; }
.internal-event__month { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.internal-event__day { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.internal-event__dow { font-size: 0.7rem; color: var(--muted); }
.internal-event__divider { width: 1px; background: var(--border); flex-shrink: 0; }
.internal-event__body { flex: 1; }
.internal-event__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.375rem; display: flex; align-items: center; gap: 0.5rem; }
.internal-event__title svg { width: 1rem; height: 1rem; color: hsl(150 30% 28% / 0.7); }
.internal-event__desc { color: var(--muted); font-size: 0.875rem; }

/* ===================================================================
   SLIM HEADER (interior pages)
   =================================================================== */
.slim-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsl(40 20% 97% / 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.slim-header-inner { max-width: 75rem; margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.slim-header-inner img { width: auto; height: 3rem; display: block; }
@media (min-width: 768px) { .slim-header-inner img { height: 3.5rem; } }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.back-link:hover { color: var(--fg); }
.back-link svg { width: 1rem; height: 1rem; }

/* ===================================================================
   404 PAGE
   =================================================================== */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: var(--grad-warm); }
.error-page h1 { font-size: clamp(6rem, 20vw, 12rem); color: var(--primary); line-height: 1; margin-bottom: 1rem; opacity: 0.4; }
.error-page h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.error-page p { color: var(--muted); margin-bottom: 2rem; }

/* ===================================================================
   POSTS OVERVIEW (page-posts.php)
   =================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px)  { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.post-card__image {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }

.post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.post-card__cat {
  background: var(--secondary);
  color: var(--fg);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.post-card__title a { color: var(--fg); }
.post-card__title a:hover { color: var(--primary); }

.post-card__excerpt {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}
.post-card__link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.post-card__link:hover svg { transform: translateX(3px); }

.posts-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.posts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: #fff;
  transition: background 0.15s, color 0.15s;
}
.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */
@keyframes ken-burns {
  0%   { transform: scale(1)    translate(0, 0); }
  25%  { transform: scale(1.08) translate(-1%, -1%); }
  50%  { transform: scale(1.05) translate(1%, 0%); }
  75%  { transform: scale(1.1)  translate(-0.5%, 1%); }
  100% { transform: scale(1)    translate(0, 0); }
}
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up  { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

/* ===================================================================
   WORDPRESS ALIGNMENTS & CORE COMPATIBILITY
   =================================================================== */
.wp-block-image img { border-radius: var(--radius); }
.aligncenter { text-align: center; margin: 2rem auto; display: block; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}
