/* ===== TOKENS ===== */
:root {
  --primary-hsl: 22 100% 35%;           /* maro-portocaliu închis */
  --primary-foreground-hsl: 0 0% 100%;
  --background-hsl: 0 0% 5%;
  --foreground-hsl: 0 0% 93%;
  --accent-hsl: 22 40% 60%;
  --muted-hsl: 0 0% 25%;
  --card-hsl: 0 0% 10%;
  --card-foreground-hsl: 0 0% 93%;
  --border-hsl: 0 0% 30%;
  --input-hsl: 0 0% 18%;
  --ring-hsl: 22 70% 45%;
  --radius: 0.5rem;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  --header-height: 5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--foreground);
  background: hsl(var(--background-hsl));
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 60rem;          /* redus pentru desktop */
  margin-inline: auto;
  padding-inline: 1rem;
}

.section {
  padding-block: 4rem;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ===== HEADER (sticky, glass) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: hsl(var(--background-hsl) / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border-hsl) / 0.5);
  height: var(--header-height);
}

.site-header .container {
  max-width: 72rem;       /* puțin mai lat pentru nav */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--foreground);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.25rem;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  width: 100%;
}

.nav-toggle-label span {
  position: relative;
}

.nav-toggle-label span::before {
  position: absolute;
  top: -0.5rem;
}

.nav-toggle-label span::after {
  position: absolute;
  top: 0.5rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* ===== MOBILE NAV ===== */
@media (max-width: 47.99rem) {
  .nav-toggle-label {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: hsl(var(--background-hsl) / 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-toggle:checked ~ .nav {
    max-height: 300px;
    border-bottom: 1px solid hsl(var(--border-hsl) / 0.5);
    padding-block: 1rem;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: center;
  }
}

/* ===== MOBILE CTA BAR ===== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  z-index: 99;
  text-align: center;
  font-weight: 600;
  padding: 0.75rem 1rem;
  font-size: var(--text-lg);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}

.mobile-cta-bar a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (max-width: 47.99rem) {
  .mobile-cta-bar {
    display: block;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);  /* compensăm header-ul sticky */
  background: radial-gradient(ellipse at 50% 50%, hsl(var(--primary-hsl) / 0.2) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1.1;
  color: var(--foreground);
  margin: 0;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: hsl(var(--foreground-hsl) / 0.75);
  max-width: 28rem;
  margin: 0 auto;
}

.hero-cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.hero-cta:hover {
  background: hsl(var(--primary-hsl) / 0.9);
  transform: translateY(-2px);
}

/* ===== GLASS CARDS ===== */
.glass-card {
  background: hsl(var(--card-hsl) / 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid hsl(var(--border-hsl) / 0.6);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.glass-card h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

/* ===== PROGRAM SECTION ===== */
.program {
  padding-block: 4rem;
}

.program-card {
  max-width: 32rem;
  margin-inline: auto;
}

.program-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.program-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid hsl(var(--border-hsl) / 0.3);
  padding-bottom: 0.75rem;
  font-size: var(--text-lg);
}

.day {
  color: hsl(var(--foreground-hsl) / 0.8);
}

.time {
  color: var(--foreground);
  font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding-block: 4rem;
}

.contact-card {
  max-width: 32rem;
  margin-inline: auto;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.4;
}

.contact-item .icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  margin-top: 0.125rem;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ===== FORM SECTION ===== */
.formular {
  padding-block: 4rem;
}

.form-card {
  max-width: 32rem;
  margin-inline: auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.label {
  font-weight: 600;
  font-size: var(--text-sm);
  color: hsl(var(--foreground-hsl) / 0.9);
}

.input,
.textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: inherit;
  border: 1px solid hsl(var(--border-hsl) / 0.7);
  border-radius: var(--radius);
  background: #ffffff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(var(--ring-hsl) / 0.3);
}

.textarea {
  resize: vertical;
  min-height: 5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.btn-primary:hover {
  background: hsl(var(--primary-hsl) / 0.9);
  transform: translateY(-1px);
}

.btn-submit {
  align-self: flex-start;
  min-width: 10rem;
  font-size: var(--text-lg);
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid hsl(var(--border-hsl) / 0.5);
  padding-block: 1.5rem;
  text-align: center;
  font-size: var(--text-sm);
  color: hsl(var(--foreground-hsl) / 0.5);
}

/* ===== REVEAL (JS adds class) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  .revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 48rem) {
  .hero {
    min-height: 100svh;
  }
}

@media (max-width: 47.99rem) {
  .section {
    padding-block: 3rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
  .hero-subtitle {
    font-size: var(--text-base);
  }
  .glass-card {
    padding: 1.5rem;
  }
}
