/* ============================================================
   ŽIVOTNÉ ZRKADLO — STYLE SYSTEM
   Digital Brutalism Lite · Schibsted Grotesk
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --color-bg:           #F5F2ED;
  --color-bg-inset:     #EDE9E2;
  --color-surface:      #FDFAF6;
  --color-surface-raised: #FFFFFF;
  --color-border:       #D4CEC4;
  --color-border-strong:#B8B0A4;
  --color-text-primary: #1C1915;
  --color-text-secondary:#4A4540;
  --color-text-muted:   #7A746C;
  --color-accent:       #D4520A;
  --color-accent-light: #F5E6DC;
  --color-accent-dark:  #A83E07;
  --color-mono:         #2D2D2D;
  --color-yellow:       #E8C547;
  --color-yellow-muted: #F5ECC4;

  --shadow-sm:  0 1px 3px rgba(28,25,21,0.08), 0 1px 2px rgba(28,25,21,0.06);
  --shadow-md:  0 4px 12px rgba(28,25,21,0.10), 0 2px 4px rgba(28,25,21,0.06);
  --shadow-lg:  0 12px 32px rgba(28,25,21,0.12), 0 4px 8px rgba(28,25,21,0.07);
  --shadow-xl:  0 24px 48px rgba(28,25,21,0.14), 0 8px 16px rgba(28,25,21,0.08);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  9rem;

  --font-mono:  'Courier New', Courier, monospace;

  --nav-height: 68px;
  --container-max: 1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Schibsted Grotesk', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── SURFACE TOKENS ── */
.surface         { background: var(--color-bg); }
.surface-raised  { background: var(--color-surface-raised); box-shadow: var(--shadow-md); }
.surface-inset   { background: var(--color-bg-inset); }

/* ── TYPOGRAPHY TOKENS ── */
.text-display {
  font-family: 'Schibsted Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}
.text-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.text-caption {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ── SPACING TOKENS ── */
.space-section { padding: var(--space-2xl) 0; }
.space-card    { padding: var(--space-lg); }

/* ── ACTIONS ── */
.action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.625rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(212,82,10,0.25), 0 1px 2px rgba(212,82,10,0.15);
  white-space: nowrap;
}
.action-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,82,10,0.30), 0 2px 6px rgba(212,82,10,0.20);
}
.action-primary:active { transform: translateY(0); }

.action-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.8125rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border-strong);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.action-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── NAVIGATION ── */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(245,242,237,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-bar.nav-hidden { transform: translateY(-100%); }
.nav-bar.nav-scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--color-accent); background: var(--color-accent-light); }
.nav-cta { margin-left: var(--space-xs); font-size: 0.875rem; padding: 0.6rem 1.25rem; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger:hover { background: var(--color-accent-light); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── MOBILE MENU ── */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,25,21,0.5);
  z-index: 950;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active { display: block; opacity: 1; }

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--color-surface-raised);
  z-index: 960;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-xl);
}
.mobile-menu-panel.active { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
  padding: var(--space-xs);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}
.mobile-menu-close:hover { color: var(--color-accent); background: var(--color-accent-light); }

.mobile-menu-links {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}
.mobile-menu-links a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  padding: 0.75rem var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s ease, padding-left 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu-links a:hover { color: var(--color-accent); padding-left: 0.75rem; }

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}
.mobile-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  min-height: 44px;
}
.mobile-contact-link:hover { color: var(--color-accent); }

/* ── HERO ── */
.hero-section {
  position: relative;
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  border-bottom: 2px solid var(--color-border);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.45;
  pointer-events: none;
}

.hero-accent-block {
  position: absolute;
  top: 10%;
  right: -80px;
  width: 380px;
  height: 380px;
  background: var(--color-yellow);
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-block;
  background: var(--color-mono);
  color: var(--color-yellow);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 7rem);
  max-width: 16ch;
  margin-bottom: var(--space-md);
}
.headline-accent {
  color: var(--color-accent);
  display: block;
}

.hero-sub {
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-panel-strip {
  display: flex;
  gap: 12px;
  height: 260px;
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 780px;
}
.panel-demo {
  overflow: hidden;
  position: relative;
  border-right: 2px solid var(--color-border-strong);
  transition: flex 0.4s ease;
}
.panel-demo:last-child { border-right: none; }
.panel-demo--tall  { flex: 2; }
.panel-demo--short { flex: 1; }
.panel-demo--mid   { flex: 1.5; }
.panel-demo:hover  { flex: 3; }
.panel-demo img    { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.panel-demo:hover img { transform: scale(1.04); }

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50%      { opacity: 1;   transform: scaleY(1.2); }
}

/* ── INTRO STRIP ── */
.intro-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 2px solid var(--color-border-strong);
  padding: var(--space-sm) 0;
  overflow: hidden;
}
.intro-strip-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
}
.strip-item { color: var(--color-text-muted); }
.strip-divider { color: var(--color-accent); font-weight: 700; }

/* ── SECTION COMMON ── */
.section-eyebrow {
  display: inline-block;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.section-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

/* ── ABOUT ── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.about-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}
.about-text-col p + p { margin-top: var(--space-md); }
.about-highlights {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.highlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.highlight-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-top: 2px;
}
.highlight-item strong { display: block; font-weight: 600; margin-bottom: 4px; color: var(--color-text-primary); }

.about-visual-col { position: relative; }
.about-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border-strong);
  position: relative;
}
.about-main-img { width: 100%; height: 420px; object-fit: cover; }
.about-image-tag {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  background: rgba(28,25,21,0.75);
  color: var(--color-yellow);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}
.about-float-card {
  position: absolute;
  bottom: -var(--space-md);
  right: -var(--space-md);
  width: 200px;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 2px solid var(--color-border-strong);
  bottom: -24px;
  right: -24px;
}
.float-card-label { display: block; margin-bottom: 6px; }
.float-card-text { font-size: 0.875rem; color: var(--color-text-secondary); font-style: italic; line-height: 1.5; }

/* ── PROGRAM ── */
.program-header { text-align: center; max-width: 60ch; margin: 0 auto var(--space-xl); }
.program-intro { font-size: 1.0625rem; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.program-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.program-card-number {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.program-card-icon {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.program-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}
.program-card-desc { font-size: 0.9rem; line-height: 1.65; }
.tooltip-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-sm);
  color: var(--color-accent);
  cursor: help;
  transition: color 0.2s ease;
}
.tooltip-indicator:hover { color: var(--color-accent-dark); }

/* ── TOOLTIP ── */
.tooltip-popup {
  position: fixed;
  z-index: 9000;
  background: var(--color-mono);
  color: #F5F2ED;
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-left: 3px solid var(--color-accent);
}
.tooltip-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MEDIUM SECTION ── */
.medium-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
}
.medium-image-stack { position: relative; height: 480px; }
.medium-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border-strong);
}
.medium-img-main img { width: 100%; height: 340px; object-fit: cover; }
.medium-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-accent);
}
.medium-img-accent img { width: 100%; height: 200px; object-fit: cover; }

.medium-text-col .text-body + .text-body { margin-top: var(--space-md); }
.medium-facts {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
}
.medium-fact {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.medium-fact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}
.medium-fact strong { display: block; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }

/* ── TEAM ── */
.team-intro { max-width: 52ch; margin-bottom: var(--space-xl); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.team-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo-wrap {
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-inset);
}
.team-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover .team-photo { transform: scale(1.05); }
.team-info { padding: var(--space-md); }
.team-name { font-size: 1.0625rem; font-weight: 700; color: var(--color-text-primary); margin-bottom: 4px; }
.team-role { display: block; color: var(--color-accent); margin-bottom: var(--space-sm); }
.team-bio { font-size: 0.875rem; line-height: 1.65; }

/* ── SCHEDULE ── */
.schedule-header { margin-bottom: var(--space-xl); }
.schedule-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.schedule-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.schedule-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}
.schedule-card:hover { box-shadow: var(--shadow-lg); }
.schedule-card-top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.schedule-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.schedule-title { font-size: 1.0625rem; font-weight: 700; color: var(--color-text-primary); }
.schedule-desc { font-size: 0.9rem; margin-bottom: var(--space-sm); }
.schedule-details { display: flex; flex-direction: column; gap: 6px; }
.schedule-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}
.schedule-details i { color: var(--color-accent); width: 14px; }

.schedule-aside {
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border-strong);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}
.schedule-aside-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--space-md); color: var(--color-text-primary); }
.schedule-bring-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: var(--space-md); }
.schedule-bring-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9375rem; }
.schedule-bring-list i { color: var(--color-accent); margin-top: 3px; flex-shrink: 0; }
.schedule-aside-note {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ── CONTACT ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}
.contact-details { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.contact-detail-item { display: flex; gap: var(--space-sm); align-items: flex-start; }
.contact-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail-item strong { display: block; font-weight: 600; color: var(--color-text-primary); margin-bottom: 2px; }
.contact-link { color: var(--color-text-muted); transition: color 0.2s ease; }
.contact-link:hover { color: var(--color-accent); }

.contact-form {
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border-strong);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.form-row-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--wide { grid-column: 1 / -1; }
.form-label { color: var(--color-text-muted); }
.form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-height: 44px;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212,82,10,0.12);
}
.form-textarea { resize: vertical; min-height: 70px; }
.form-row-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  cursor: pointer;
  min-height: 44px;
}
.privacy-checkbox { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--color-accent); cursor: pointer; }
.form-link { color: var(--color-accent); text-decoration: underline; }
.form-submit { flex-shrink: 0; }

.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--color-border); }
.contact-map-iframe { display: block; }

/* ── FOOTER ── */
.site-footer {
  border-top: 2px solid var(--color-border-strong);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-logo { margin-bottom: var(--space-sm); }
.footer-tagline { color: var(--color-text-muted); max-width: 28ch; }
.footer-nav-label { display: block; color: var(--color-text-primary); font-weight: 600; margin-bottom: var(--space-sm); }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-link { color: var(--color-text-muted); font-size: 0.9rem; transition: color 0.2s ease; }
.footer-link:hover { color: var(--color-accent); }
.footer-address { color: var(--color-text-muted); font-size: 0.875rem; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-copy { color: var(--color-text-muted); }

/* ── COOKIE CONSENT ── */
.cookie-consent-card {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 9500;
  width: 300px;
  background: var(--color-surface-raised);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  border: 1.5px solid var(--color-border-strong);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
}
.cookie-consent-card.visible {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.cookie-card-icon {
  font-size: 1.75rem;
  color: var(--color-accent);
  text-align: center;
}
.cookie-card-title { font-weight: 700; color: var(--color-text-primary); text-align: center; }
.cookie-card-desc { color: var(--color-text-muted); text-align: center; font-size: 0.8rem; }
.cookie-card-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-accept { width: 100%; justify-content: center; }
.cookie-customize {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}
.cookie-toggles {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cookie-toggles.visible { display: flex; }
.cookie-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.cookie-toggle-input { display: none; }
.cookie-toggle-slider {
  width: 38px;
  height: 21px;
  background: var(--color-border-strong);
  border-radius: 21px;
  position: relative;
  transition: background 0.2s ease;
}
.cookie-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.cookie-toggle-input:checked + .cookie-toggle-slider { background: var(--color-accent); }
.cookie-toggle-input:checked + .cookie-toggle-slider::after { transform: translateX(17px); }
.cookie-toggle-slider--locked { background: var(--color-text-muted); opacity: 0.6; cursor: not-allowed; }
.cookie-save {
  background: var(--color-bg-inset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: var(--color-text-secondary);
  width: 100%;
  text-align: center;
  transition: background 0.2s ease;
}
.cookie-save:hover { background: var(--color-border); }
.cookie-policy-link {
  text-align: center;
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.cookie-policy-link:hover { color: var(--color-accent); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-float-card { display: none; }
  .medium-layout { grid-template-columns: 1fr; }
  .medium-image-stack { height: 320px; }
  .medium-img-main { width: 75%; }
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 700px) {
  .hero-panel-strip { height: 180px; }
  .program-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .form-row-main { grid-template-columns: 1fr; }
  .form-row-bottom { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer-bottom { flex-direction: column; }
  .cookie-consent-card { right: var(--space-sm); left: var(--space-sm); width: auto; bottom: var(--space-sm); }
  :root { --space-2xl: 4rem; --space-3xl: 6rem; }
  .hero-headline { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .action-primary,
  .hero-actions .action-ghost { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
  .hero-panel-strip { display: none; }
}

/* ── LEGAL PAGES ── */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page main { flex: 1; }
.legal-hero {
  background: var(--color-bg-inset);
  border-bottom: 2px solid var(--color-border-strong);
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
}
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-sm); }
.legal-hero .text-caption { display: block; margin-bottom: var(--space-md); }
.legal-content { padding: var(--space-2xl) 0; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.5rem; font-weight: 700; margin: var(--space-xl) 0 var(--space-md); color: var(--color-text-primary); }
.legal-body h3 { font-size: 1.125rem; font-weight: 700; margin: var(--space-lg) 0 var(--space-sm); color: var(--color-text-primary); }
.legal-body p { margin-bottom: var(--space-md); color: var(--color-text-secondary); line-height: 1.75; }
.legal-body ul, .legal-body ol { margin: var(--space-sm) 0 var(--space-md) var(--space-md); display: flex; flex-direction: column; gap: 0.5rem; }
.legal-body li { color: var(--color-text-secondary); line-height: 1.7; }
.legal-body ul li { list-style: disc; }
.legal-body ol li { list-style: decimal; }
.legal-term { font-weight: 700; color: var(--color-accent); }
.legal-definition {
  background: var(--color-accent-light);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-md);
  margin: var(--space-md) 0;
}
.legal-definition p { margin: 0; font-size: 0.9375rem; }
.legal-definition strong { color: var(--color-accent-dark); }

/* ── THANKS PAGE ── */
.thanks-page { min-height: 100vh; display: flex; flex-direction: column; }
.thanks-page main { flex: 1; display: flex; align-items: center; }
.thanks-content { text-align: center; padding: var(--space-2xl) var(--space-md); }
.thanks-icon { font-size: 3rem; color: var(--color-accent); margin-bottom: var(--space-lg); }
.thanks-content h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: var(--space-md); }
.thanks-content p { font-size: 1.0625rem; color: var(--color-text-secondary); margin-bottom: var(--space-sm); }
.thanks-countdown { font-size: 2rem; font-weight: 800; color: var(--color-accent); margin: var(--space-md) 0; }
.thanks-return { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-accent); font-weight: 600; text-decoration: underline; }

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .program-card, .team-card, .schedule-card { will-change: transform; }
}