/* ==========================================================================
   Kylmälä FBK r.f. / Kylmälän VPK - Modern Design System
   WCAG AA/AAA Compliant, Responsive, High Performance
   ========================================================================== */

:root {
  /* Color Palette */
  --navy-950: #070d1e;
  --navy-900: #0c152e;
  --navy-850: #121e40;
  --navy-800: #1a2a56;
  --navy-700: #263c78;
  --navy-600: #3b5998;

  --red-600: #d90429;
  --red-500: #ef233c;
  --red-400: #f75567;
  --red-100: #ffe8eb;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;

  --emerald-500: #10b981;
  --emerald-100: #d1fae5;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Theme tokens */
  --bg-main: var(--navy-950);
  --bg-surface: var(--navy-900);
  --bg-card: rgba(18, 30, 64, 0.7);
  --bg-card-hover: rgba(26, 42, 86, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-active: rgba(239, 35, 60, 0.6);

  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;

  --primary: var(--red-500);
  --primary-hover: var(--red-600);
  --accent: var(--amber-400);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(239, 35, 60, 0.25);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --container-max: 1240px;
  --header-height: 76px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #15224a 0%, #070d1e 65%);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 20px;
}

/* Layout Utilities */
.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--amber-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-red-gradient {
  background: linear-gradient(135deg, #ffffff 20%, var(--red-400) 70%, var(--amber-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(239, 35, 60, 0.15);
  border: 1px solid rgba(239, 35, 60, 0.35);
  color: var(--red-400);
}
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--amber-400);
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* Section Header Typography */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-block: 0.75rem 1rem;
}
.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(239, 35, 60, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(239, 35, 60, 0.6);
  background: linear-gradient(135deg, #ff3b53 0%, var(--red-500) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--amber-400);
  color: var(--amber-400);
}
.btn-outline-gold:hover {
  background: var(--amber-400);
  color: var(--navy-950);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(7, 13, 30, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-title {
  color: #ffffff;
  font-size: 1.1rem;
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--slate-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-block: 0.25rem;
}
.nav-link:hover {
  color: #ffffff;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
}
.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid var(--border-subtle);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Mobile Nav Drawer Button */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 8px 10px;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(90vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    linear-gradient(180deg, rgba(7, 13, 30, 0.8) 0%, rgba(7, 13, 30, 0.94) 85%, var(--bg-main) 100%),
    url('../assets/images/512917654_24111811818412808_741093090375881985_n.jpg') center/cover no-repeat;
  opacity: 0.45;
  filter: saturate(1.2) contrast(1.1);
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(239, 35, 60, 0.18) 0%, rgba(245, 158, 11, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--slate-300);
  line-height: 1.6;
  margin-bottom: 2.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  background: rgba(18, 30, 64, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.stat-item {
  text-align: center;
}
.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--amber-400);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ==========================================================================
   Quote / Mission Statement (Staging Feature)
   ========================================================================== */
.quote-section {
  padding-block: 4rem;
}

.quote-card {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 42, 86, 0.7) 0%, rgba(18, 30, 64, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.08);
  overflow: hidden;
}

.quote-card::before {
  content: '”';
  position: absolute;
  top: -20px;
  right: 25px;
  font-size: 11rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(245, 158, 11, 0.08);
  pointer-events: none;
}

.quote-tag {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.quote-text {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--amber-400);
  font-size: 1.15rem;
}

.author-info h4 {
  font-size: 1.1rem;
  color: #ffffff;
}
.author-info p {
  font-size: 0.88rem;
  color: var(--slate-400);
}

/* ==========================================================================
   Quiz / Interactive Matchmaker ("Mikä osasto sopii sinulle?")
   ========================================================================== */
.quiz-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(12, 21, 46, 0.8) 50%, var(--bg-main) 100%);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  max-width: 840px;
  margin-inline: auto;
}

.quiz-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-align: center;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.quiz-option-btn.selected {
  background: rgba(239, 35, 60, 0.18);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(239, 35, 60, 0.3);
}

.quiz-option-icon {
  font-size: 2rem;
}
.quiz-option-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}
.quiz-option-desc {
  font-size: 0.82rem;
  color: var(--slate-400);
}

.quiz-result-box {
  display: none;
  animation: fadeIn 0.4s ease forwards;
  background: linear-gradient(135deg, rgba(239, 35, 60, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  margin-top: 1.5rem;
}

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

/* ==========================================================================
   Departments Section (High Conversion Focus)
   ========================================================================== */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.dept-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(239, 35, 60, 0.15);
}

.dept-card.featured-youth {
  border-color: rgba(245, 158, 11, 0.5);
}
.dept-card.featured-youth:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 158, 11, 0.25);
}

.dept-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.dept-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.dept-card:hover .dept-img {
  transform: scale(1.05);
}

.dept-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.dept-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.dept-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--amber-400);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dept-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dept-highlights {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dept-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--slate-300);
}
.dept-highlights li svg {
  flex-shrink: 0;
  color: var(--emerald-500);
  margin-top: 3px;
}

.dept-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Fleet Section (Kalusto)
   ========================================================================== */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.fleet-card:hover {
  border-color: rgba(239, 35, 60, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fleet-img-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
}

.fleet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.fleet-card:hover .fleet-img {
  transform: scale(1.04);
}

.fleet-body {
  padding: 1.5rem;
}

.fleet-callsign {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.fleet-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.fleet-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.spec-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--slate-300);
}

.fleet-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Events & Community Section (Bingo, Harjoitukset, Kylätapahtumat)
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.event-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.event-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-day {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.event-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.event-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--slate-400);
  margin-top: auto;
}

/* Hall Rental Notice Banner */
.hall-notice-box {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, rgba(38, 60, 120, 0.4) 0%, rgba(18, 30, 64, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hall-notice-content {
  max-width: 720px;
}

.hall-notice-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hall-notice-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Application & Contact Form Section (Validated with :user-invalid / :user-valid)
   Per Modern Web Guidance: Validate Input After Interaction
   ========================================================================== */
.form-section {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(26, 42, 86, 0.5) 0%, var(--bg-main) 70%);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
}

.form-info-col h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.form-info-col p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.faq-question {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.faq-answer {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

/* Form Fields & Modern Validation */
.field-group {
  margin-bottom: 1.35rem;
  position: relative;
}

.field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.field-hint {
  display: block;
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(12, 21, 46, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 1rem;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--amber-400);
  background: rgba(18, 30, 64, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Mandatory Modern Web Guidance: :user-invalid and :user-valid */
.form-input:user-invalid, .form-select:user-invalid, .form-textarea:user-invalid {
  border-color: var(--red-500);
  background-color: rgba(239, 35, 60, 0.08);
}

.form-input:user-valid:not(:placeholder-shown), .form-select:user-valid {
  border-color: var(--emerald-500);
  background-color: rgba(16, 185, 129, 0.04);
}

.field-error-msg {
  display: none;
  color: var(--red-400);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Reveal error message only after user interaction commits an invalid state */
.form-input:user-invalid + .field-error-msg,
.form-select:user-invalid + .field-error-msg {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-status-alert {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}
.form-status-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald-500);
  color: #34d399;
}

/* ==========================================================================
   Contacts & Map Section
   ========================================================================== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-person-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.contact-person-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

.contact-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--red-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.contact-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.contact-detail-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.contact-detail-line a:hover {
  color: var(--amber-400);
  text-decoration: underline;
}

/* Location Card */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.location-info {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.location-map-wrap {
  min-height: 320px;
  background: var(--navy-900);
  border-left: 1px solid var(--border-subtle);
}

.location-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(1.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--border-subtle);
  padding-block: 4.5rem 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--slate-400);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* ==========================================================================
   Mobile Navigation Drawer (Semantic Dialog / Drawer)
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7, 13, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.25rem;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.drawer-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}
.drawer-link:hover {
  color: var(--amber-400);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .form-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .location-card {
    grid-template-columns: 1fr;
  }
  .location-map-wrap {
    min-height: 260px;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hall-notice-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
