/* ==========================================================================
   mozart.ge — Modern Austrian-Georgian Cultural & Economic Hub
   Design System & Styling
   ========================================================================== */

:root {
  --bg: #F4ECDC;
  --bg-warm: #FAF4E8;
  --bg-card: rgba(251, 245, 233, 0.82);
  --bg-card-hover: rgba(255, 252, 246, 0.96);
  --bg-dark: #1F1914;
  
  --accent: #A11D26;        /* Imperial Crimson */
  --accent-light: #C8102E;  /* Austrian Flag Red */
  --accent-dark: #7C1518;   /* Deep Wine */
  --accent-rgb: 161, 29, 38;

  --gold: #9A7B33;          /* Habsburg Gold */
  --gold-light: #C4A757;
  --gold-glow: rgba(154, 123, 51, 0.28);

  --text-main: #211A14;
  --text-body: #4A4236;
  --text-muted: #6A6051;
  --text-light: #FBF5E9;

  --border-subtle: rgba(33, 26, 20, 0.12);
  --border-medium: rgba(33, 26, 20, 0.22);
  --border-gold: rgba(154, 123, 51, 0.35);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(33, 26, 20, 0.06);
  --shadow-md: 0 8px 24px rgba(33, 26, 20, 0.10);
  --shadow-lg: 0 24px 48px -12px rgba(33, 26, 20, 0.18);

  --font-serif: 'Noto Serif Georgian', 'Cormorant Garamond', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.2, 0.75, 0.2, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 12% 8%, rgba(154, 123, 51, 0.08), transparent 45%),
    radial-gradient(circle at 88% 2%, rgba(161, 29, 38, 0.07), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(154, 123, 51, 0.05), transparent 60%);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.78;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--text-light);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #EAE0CD;
}
::-webkit-scrollbar-thumb {
  background: #C4B599;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Container */
.site-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
}

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }

.sec-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.sec-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 18px;
}

.sec-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--text-muted);
  max-width: 740px;
  line-height: 1.6;
}

/* Header & Sticky Nav */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 236, 220, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-wrapper {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}
.brand-dot {
  color: var(--accent);
}

.austria-flag-badge {
  display: inline-block;
  width: 24px;
  height: 15px;
  background: linear-gradient(var(--accent-light) 0 33.33%, #fff 0 66.66%, var(--accent-light) 0);
  border: 1px solid rgba(33, 26, 20, 0.2);
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display), var(--font-serif);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link-btn:hover {
  color: var(--accent);
}

.nav-link-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 245, 233, 0.65);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  color: var(--accent);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 1px 4px rgba(161, 29, 38, 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
  font-size: 24px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--text-light);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(161, 29, 38, 0.2);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-main);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--text-light);
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

/* Main Tab Screen Switcher */
.tab-screen {
  display: none;
}
.tab-screen.active {
  display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0 40px;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-tagline-text {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-h1 em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--font-display), var(--font-serif);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-body);
  max-width: 530px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-portrait-wrapper {
  position: relative;
  justify-self: center;
}

.hero-portrait-frame {
  position: absolute;
  inset: -14px -14px 38px -14px;
  border: 1px solid var(--gold-light);
  border-radius: 230px 230px 6px 6px;
  z-index: 0;
  box-shadow: 0 0 20px rgba(154, 123, 51, 0.12);
}

.hero-portrait-img {
  position: relative;
  z-index: 1;
  width: 340px;
  height: 430px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 220px 220px 4px 4px;
  display: block;
  box-shadow: 0 30px 60px -28px rgba(33, 26, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero-portrait-caption {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  text-align: center;
}

.hero-portrait-title {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 1px;
  color: var(--text-main);
}

.hero-portrait-subtitle {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* Stats Section */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 50px auto;
}

.stat-box {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-box:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Why Section */
.why-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin: 80px 0;
}

.why-card-left {
  border-left: 2px solid var(--accent);
  padding: 10px 0 10px 36px;
}

.why-card-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.why-card-text {
  color: var(--text-body);
  font-size: 16.5px;
}

/* Historical Deed Promo Banner */
.deed-promo-banner {
  background: linear-gradient(135deg, rgba(31, 25, 20, 0.95), rgba(58, 42, 33, 0.96));
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: 44px 48px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(154, 123, 51, 0.4);
  position: relative;
  overflow: hidden;
}

.deed-promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(154, 123, 51, 0.18), transparent 70%);
  pointer-events: none;
}

.deed-promo-content h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin: 8px 0 14px;
  color: #F8F1E2;
}

.deed-promo-content p {
  color: #D6C8B2;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.deed-preview-thumb {
  position: relative;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.deed-preview-thumb:hover {
  transform: scale(1.03);
}

.deed-preview-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.deed-preview-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 12, 10, 0.85);
  color: var(--gold-light);
  font-size: 12px;
  letter-spacing: 1px;
  text-align: center;
  padding: 6px;
  text-transform: uppercase;
}

/* Explore Grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin: 40px 0;
}

.explore-card {
  text-decoration: none;
  color: var(--text-main);
  display: block;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.explore-card:hover {
  transform: translateY(-4px);
}

.explore-img-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
}

.explore-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.explore-card:hover .explore-img {
  transform: scale(1.06);
}

.explore-label-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}

.explore-no {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
}

.explore-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
}

/* Famous Portraits */
.famous-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.famous-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.famous-avatar-frame {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid var(--border-gold);
}

.famous-avatar-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 50% 20%;
  border-radius: 50%;
}

.famous-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 4px;
}

.famous-role {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}

.famous-desc {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
}

/* Events & Education 2-Col */
.events-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 70px 0;
  padding-top: 60px;
  border-top: 1px solid var(--border-subtle);
}

.event-item {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 20px;
}

.event-date-box {
  background: var(--accent);
  color: var(--text-light);
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-sm);
  min-width: 64px;
  height: fit-content;
}

.event-day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.event-month {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

.event-tag {
  font-size: 11px;
  color: var(--accent);
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.event-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  margin: 4px 0 6px;
  line-height: 1.35;
}

.event-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.btn-cal-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition-fast);
}

.btn-cal-add:hover {
  color: var(--accent);
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.edu-badge-tag {
  background: rgba(161, 29, 38, 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.edu-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  margin: 12px 0 8px;
}

.edu-desc {
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.edu-action-link {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.edu-action-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   VIENNA, ECONOMY, ALPS, HISTORY TAB SECTIONS
   ========================================================================== */
.hero-band-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.band-caption-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 32px 40px;
  background: linear-gradient(0deg, rgba(20, 15, 11, 0.82), transparent);
  width: 100%;
}

.band-caption-h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: #FBF5E9;
}

.band-caption-sub {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(251, 245, 233, 0.85);
  margin-top: 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-box {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 34px 30px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.timeline-wrapper {
  max-width: 860px;
  margin: 40px auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-medium);
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 40px 38px 0;
  text-align: right;
}

.tl-item.even {
  margin-left: 50%;
  padding: 0 0 38px 40px;
  text-align: left;
}

.tl-dot {
  position: absolute;
  top: 6px;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.tl-item.even .tl-dot {
  left: -6px;
  right: auto;
}

.tl-year {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 6px;
}

.tl-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 8px;
}

.tl-text {
  color: var(--text-body);
  font-size: 15px;
}

/* ==========================================================================
   INTERACTIVE QUIZ
   ========================================================================== */
.quiz-container {
  max-width: 760px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.quiz-progress-bar {
  height: 6px;
  background: rgba(33, 26, 20, 0.1);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

.quiz-question-title {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.quiz-option-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover {
  background: #fff;
  border-color: var(--gold);
}

.quiz-option-btn.selected {
  border-color: var(--accent);
  background: rgba(161, 29, 38, 0.08);
  font-weight: 600;
}

.quiz-option-btn.correct {
  background: rgba(46, 125, 50, 0.15);
  border-color: #2e7d32;
  color: #1b5e20;
}

.quiz-option-btn.wrong {
  background: rgba(198, 40, 40, 0.15);
  border-color: #c62828;
  color: #b71c1c;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  margin: 50px 0;
}

.contact-card-form {
  border: 1px solid var(--border-medium);
  padding: 44px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-input, .form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-medium);
  padding: 10px 0;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   1903 USHBA DEED MODAL
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 11, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 30px 20px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

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

.modal-card {
  background: var(--bg);
  width: 100%;
  max-width: 1000px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.4s ease;
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 245, 233, 0.9);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--accent);
}

.modal-body {
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-tabs-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.modal-tab-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--text-main);
}

.modal-tab-btn.active {
  background: var(--accent);
  color: var(--text-light);
  border-color: var(--accent);
}

.deed-viewer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.deed-img-container {
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
  text-align: center;
}

.deed-img-container img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  display: block;
}

.deed-text-box {
  background: rgba(251, 245, 233, 0.7);
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.deed-text-box h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 8px;
}

.deed-text-box p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* ==========================================================================
   FLOATING MOZART SOUNDSCAPE AUDIO PLAYER
   ========================================================================== */
.audio-player-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: rgba(31, 25, 20, 0.94);
  color: var(--text-light);
  border: 1px solid var(--gold);
  border-radius: 40px;
  padding: 10px 20px 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.audio-play-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(161, 29, 38, 0.4);
  transition: transform var(--transition-fast);
}

.audio-play-toggle:hover {
  transform: scale(1.1);
}

.audio-info {
  display: flex;
  flex-direction: column;
}

.audio-track-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #F8F1E2;
}

.audio-track-sub {
  font-size: 11px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.audio-bar {
  width: 3px;
  background: var(--gold-light);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.audio-player-widget.playing .audio-bar:nth-child(1) { animation: bounce 0.8s infinite ease-in-out alternate; }
.audio-player-widget.playing .audio-bar:nth-child(2) { animation: bounce 0.6s 0.2s infinite ease-in-out alternate; }
.audio-player-widget.playing .audio-bar:nth-child(3) { animation: bounce 0.9s 0.4s infinite ease-in-out alternate; }
.audio-player-widget.playing .audio-bar:nth-child(4) { animation: bounce 0.7s 0.1s infinite ease-in-out alternate; }

@keyframes bounce {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wrapper {
  border-top: 1px solid var(--border-subtle);
  background: rgba(235, 225, 205, 0.65);
  margin-top: 80px;
  padding: 46px 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

/* Responsive Media Queries */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tagline, .hero-actions {
    justify-content: center;
  }
  .hero-lead {
    margin: 0 auto 34px;
  }
  .stats-band {
    grid-template-columns: 1fr 1fr;
  }
  .stat-box:nth-child(2) {
    border-right: none;
  }
  .stat-box:nth-child(3) {
    border-top: 1px solid var(--border-subtle);
  }
  .stat-box:nth-child(4) {
    border-top: 1px solid var(--border-subtle);
    border-right: none;
  }
  .why-split-grid, .events-edu-grid, .contact-layout, .deed-promo-banner, .deed-viewer-grid {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .tl-item, .tl-item.even {
    width: 100%;
    margin-left: 0;
    padding: 0 0 38px 34px;
    text-align: left;
  }
  .timeline-line {
    left: 8px;
  }
  .tl-dot, .tl-item.even .tl-dot {
    left: 2px;
    right: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(244, 236, 220, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-medium);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-h1 {
    font-size: 44px;
  }
  .site-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .stats-band {
    grid-template-columns: 1fr;
  }
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .hero-h1 {
    font-size: 36px;
  }
}
