/* ===== SpokenLab — New Design System ===== */

/* ===== TOKENS ===== */
:root {
  /* Brand — 3 color palette */
  --lime: #D4DC24;
  --lime-dark: #b8c000;
  --lime-light: #e2e94d;
  --lime-pale: rgba(212,220,36,0.12);
  --blue: #3187B6;
  --blue-dark: #276d96;
  --blue-light: #4da3d4;
  --blue-pale: rgba(49,135,182,0.10);
  --red: #F33128;
  --red-dark: #d42620;
  --red-light: #ff5a52;
  --red-pale: rgba(243,49,40,0.10);

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f1f1f1;
  --gray-200: #e2e2e2;
  --gray-300: #c4c4c4;
  --gray-400: #9e9e9e;
  --gray-500: #6e6e6e;
  --gray-600: #4a4a4a;
  --gray-700: #333333;
  --gray-800: #1f1f1f;
  --gray-900: #111111;

  /* Semantic */
  --primary: var(--blue);
  --primary-dark: var(--blue-dark);
  --bg: #ffffff;
  --bg-alt: var(--gray-50);
  --text: var(--gray-800);
  --text-muted: #5f6368;
  --text-light: var(--gray-400);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 16px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-main);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.1);
  --shadow-glow-blue: 0 4px 30px rgba(49,135,182,0.25);
  --shadow-glow-red: 0 4px 30px rgba(243,49,40,0.2);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ===== ANIMATED WORDS BACKGROUND ===== */
#words-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); position: relative; z-index: 1; }
.section { padding: var(--space-4xl) 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.section-header h2 span { color: var(--primary); }
.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--lime));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(49,135,182,0.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-glow-red);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: var(--space-sm) 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gray-800);
  z-index: 1001;
}
.navbar-brand em {
  font-style: normal;
  color: var(--red);
}
.navbar-brand .logo-icon {
  font-size: 1.6rem;
}
.navbar-brand img {
  height: 38px;
  width: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition-fast);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: var(--blue-pale);
}
.nav-menu a.nav-btn {
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  padding: 10px 24px;
  margin-left: var(--space-sm);
}
.nav-menu a.nav-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-red);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(49,135,182,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(243,49,40,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(212,220,36,0.06) 0%, transparent 50%);
  z-index: 0;
}
.hero::after {
  display: none; /* dot-grid removed — replaced by animated words canvas */
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.hero-content {
  max-width: 560px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--blue-pale);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease both;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.15s both;
}
.hero-content h1 span {
  background: linear-gradient(135deg, var(--lime), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content > p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 480px;
  animation: fadeInUp 0.6s ease 0.3s both;
}
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.45s both;
}

/* Hero visual — decorative cards grid */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  animation: fadeInRight 0.8s ease 0.3s both;
}
.hero-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition);
}
.hero-card:nth-child(2) { transform: translateY(24px); }
.hero-card:nth-child(3) { transform: translateY(-12px); }
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.hero-card:nth-child(2):hover { transform: translateY(18px); }
.hero-card:nth-child(3):hover { transform: translateY(-18px); }
.hero-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.hero-card:nth-child(1) .icon { background: var(--blue-pale); }
.hero-card:nth-child(2) .icon { background: var(--red-pale); }
.hero-card:nth-child(3) .icon { background: var(--lime-pale); }
.hero-card:nth-child(4) .icon { background: var(--blue-pale); }
.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.hero-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(74,144,217,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(231,76,60,0.05) 0%, transparent 50%);
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--gray-300) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-sm);
}
.page-header h1 span { color: var(--primary); }
.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}
.about-text h2 span { color: var(--primary); }
.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.about-stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: var(--transition);
}
.about-stat-card:nth-child(2) { transform: translateY(20px); }
.about-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.about-stat-card:nth-child(2):hover { transform: translateY(14px); }
.about-stat-card .stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}
.about-stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}
.about-stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ===== HOW IT WORKS ===== */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.hiw-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.hiw-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: var(--transition);
}
.hiw-card:nth-child(1)::after { background: var(--blue); }
.hiw-card:nth-child(2)::after { background: var(--green); }
.hiw-card:nth-child(3)::after { background: var(--red); }
.hiw-card:nth-child(4)::after { background: var(--yellow); }
.hiw-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.hiw-card:hover::after { opacity: 1; }
.hiw-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.6rem;
}
.hiw-card:nth-child(1) .hiw-icon { background: var(--blue-pale); }
.hiw-card:nth-child(2) .hiw-icon { background: rgba(124,179,66,0.1); }
.hiw-card:nth-child(3) .hiw-icon { background: rgba(231,76,60,0.1); }
.hiw-card:nth-child(4) .hiw-icon { background: rgba(249,211,66,0.15); }
.hiw-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.hiw-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== WEEKLY PROGRAM ===== */
.program-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.program-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.program-table th {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 16px;
  text-align: left;
}
.program-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.program-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.program-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  vertical-align: top;
}
.program-table tr:last-child td { border-bottom: none; }
.program-table tr:hover td { background: var(--blue-pale); }
.program-day {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.program-time {
  font-weight: 600;
  white-space: nowrap;
}
.program-level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--blue-pale);
  color: var(--primary);
}
.program-level[data-level="A1-A2"] { background: rgba(231,76,60,0.1); color: var(--red); }
.program-level[data-level="A2-B1"] { background: rgba(243,156,18,0.1); color: #f39c12; }
.program-level[data-level="B1-B2"] { background: rgba(249,211,66,0.15); color: var(--yellow-dark); }
.program-level[data-level="B2-C1"] { background: rgba(74,144,217,0.1); color: var(--blue); }
.program-level[data-level="all"] { background: rgba(124,179,66,0.1); color: var(--green); }

/* Program mobile cards */
.program-cards { display: none; }
.program-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-md); }
.program-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}
.program-card-header .day {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
}
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.program-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}
.program-card-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== QUIZ ===== */
.quiz-container {
  max-width: 680px;
  margin: 0 auto;
}
.quiz-progress {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.quiz-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}
.quiz-question-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--space-md);
}
.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--space-xl);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 14px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.quiz-option:hover {
  border-color: var(--primary);
  background: var(--blue-pale);
}
.quiz-option.selected {
  border-color: var(--primary);
  background: var(--blue-pale);
  font-weight: 600;
}
.quiz-option .option-letter {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.quiz-option.selected .option-letter {
  background: var(--primary);
  color: var(--white);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}
.quiz-result {
  text-align: center;
  padding: var(--space-2xl);
}
.quiz-result .level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: var(--space-lg);
}
.quiz-result h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}
.quiz-result p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
}
.quiz-start {
  text-align: center;
  padding: var(--space-2xl);
}
.quiz-start h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}
.quiz-start p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.quiz-start .quiz-icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.gallery-empty {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: var(--space-xl);
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img, .lightbox video {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  transition: var(--transition-fast);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}
.contact-info h2 span { color: var(--primary); }
.contact-info > p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.contact-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== FORMS ===== */
.form-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.form-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--gray-800);
}
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--space-xs);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,144,217,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.form-submit {
  width: 100%;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: var(--space-md);
}
.form-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}
.form-submit.btn-red { background: var(--red); }
.form-submit.btn-red:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow-glow-red);
}

/* Alerts */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.alert-success {
  background: rgba(124,179,66,0.1);
  color: var(--green-dark);
  border: 1px solid rgba(124,179,66,0.25);
}
.alert-error {
  background: rgba(231,76,60,0.1);
  color: var(--red-dark);
  border: 1px solid rgba(231,76,60,0.25);
}

/* ===== ANNOUNCEMENTS ===== */
.announcements-list {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}
.announcement-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.announcement-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}
.announcement-card .ann-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}
.announcement-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-md);
}
.announcement-card .ann-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.no-announcements {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-3xl) 0 var(--space-lg);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: var(--space-md);
}
.footer-logo em { font-style: normal; color: var(--red); }
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-400);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-lg);
}
.footer-col ul li { margin-bottom: var(--space-sm); }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-col ul li:not(:has(a)) {
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Designer credit — eye-catching */
.footer-designer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  margin-bottom: var(--space-lg);
}
.footer-designer .designer-label {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #888888 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.footer-designer .designer-url {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 1px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 2px;
}
.footer-designer .designer-url:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-lg);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== FEATURES (home) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: var(--transition);
}
.feature-card:nth-child(1)::before { background: var(--blue); }
.feature-card:nth-child(2)::before { background: var(--green); }
.feature-card:nth-child(3)::before { background: var(--red); }
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 2rem;
}
.feature-card:nth-child(1) .feature-icon { background: var(--blue-pale); }
.feature-card:nth-child(2) .feature-icon { background: rgba(124,179,66,0.1); }
.feature-card:nth-child(3) .feature-icon { background: rgba(231,76,60,0.1); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-pale) 0%, rgba(124,179,66,0.06) 100%);
  border-radius: var(--radius-xl);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}
.cta-section h2 span { color: var(--primary); }
.cta-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== EVENTS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-lg);
}
.event-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  transition: var(--transition);
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.event-date-badge {
  min-width: 60px;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  flex-shrink: 0;
}
.event-date-badge .day {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.event-date-badge .month {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}
.event-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.event-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-content > p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { max-width: 400px; margin: var(--space-xl) auto 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 400px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px var(--space-xl) var(--space-xl);
    gap: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu a {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
  }
  .nav-menu a.nav-btn {
    margin-left: 0;
    margin-top: var(--space-md);
    text-align: center;
    justify-content: center;
    display: flex;
    border-radius: var(--radius-full);
  }
  .hamburger { display: flex; }
  .section { padding: var(--space-3xl) 0; }
  .events-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Program: table hidden, cards shown */
  .program-table-wrap { display: none; }
  .program-cards { display: block; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr; max-width: 280px; }
  .hero-card:nth-child(2),
  .hero-card:nth-child(3) { transform: none; }
}
