/* style.css for Die Brücke German Language School */
/* ─────────────────────────────────────────────────
   BASE (mobile-first — applies to every screen)
───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #0d0e10;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────────
   NAV
───────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

/* Logo group */
.logo-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.logo {
  height: 44px;
}

.school-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #e5a900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.3;
}

.school-sub {
  display: block;
  font-size: 0.78em;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-top: -1px;
  margin-left: 2px;
}

/* Nav links — hidden on mobile, visible on desktop */
.nav-links {
  display: none;               /* hidden by default (mobile-first) */
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;

  /* Mobile slide-down panel */
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  background: #000000;
  border-top: 1px solid rgba(229, 169, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* Slide animation */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.nav-links.active {
  display: flex;
  max-height: 400px;
  opacity: 1;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 1.5rem;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a:last-child {
  border-bottom: none;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #e5a900;
  transition: width 0.3s;
  position: absolute;
  left: 0;
  bottom: 0;
}

.nav-links a:hover {
  color: #ecee6b;
  background: rgba(229, 169, 0, 0.05);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Enroll button — hidden on small mobile, shown from 480px */
.enroll-btn {
   background: linear-gradient(90deg, #e5a900 0%, #e7ae0f 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 183, 221, 0.08);
  transition: background 0.2s, transform 0.2s;
  outline: none;
  display: none;           /* hidden until 480px */
  white-space: nowrap;
}

.enroll-btn:hover {
   background: linear-gradient(90deg, #e5a900 0%, #e7ae0f 100%);
  transform: translateY(-2px) scale(1.04);
}

/* Nav actions (hamburger wrapper) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ─────────────────────────────────────────────────
   HAMBURGER
───────────────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: none;
  border: 1px solid rgba(229, 169, 0, 0.35);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e5a900;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* X state */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─────────────────────────────────────────────────
   MAIN / HERO
───────────────────────────────────────────────── */
main {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: #e5a900;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  color: white;
  text-align: center;
  margin-top: 0.75rem;
}

p {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  color: white;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* hero p — break tag hides on narrow */
main p br {
  display: none;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.button-group button {
  background: linear-gradient(90deg, #cfc502 0%, #f0e801 100%);
  color: #1a1a00;
  border: none;
  border-radius: 24px;
  padding: 0.75rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 183, 221, 0.08);
  transition: background 0.2s, transform 0.2s;
  outline: none;
  width: 100%;
  max-width: 260px;
}

.button-group button:hover {
  background: linear-gradient(90deg, #e5d800 0%, #cfc502 100%);
  transform: translateY(-2px) scale(1.04);
}

/* ─────────────────────────────────────────────────
   FEATURES
───────────────────────────────────────────────── */
.features {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 1.25rem;
  background-color: #102b4d;
  gap: 2rem;
}

.feature {
  text-align: center;
  max-width: 280px;
  width: 100%;
}

.icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.feature h3 {
  margin-bottom: 8px;
  color: #e5dd00;
  font-size: 1.1rem;
}

.feature p {
  font-size: 0.95rem;
  margin-top: 0;
}

/* ─────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────── */
footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
}

.scroll-indicator {
  font-size: 2rem;
  color: #ff6b00;
  cursor: pointer;
}

/* ════════════════════════════════════════════════════
   BREAKPOINT — 480px  (large phones)
════════════════════════════════════════════════════ */
@media (min-width: 480px) {
  nav {
    padding: 1rem 1.75rem;
  }

  .logo {
    height: 48px;
  }

  .enroll-btn {
    display: block;
  }

  main {
    padding: 3.5rem 1.5rem 2rem;
  }

  main p br {
    display: inline;
  }

  .button-group {
    flex-direction: row;
    justify-content: center;
    gap: 1.25rem;
  }

  .button-group button {
    width: auto;
    min-width: 170px;
  }
}

/* ════════════════════════════════════════════════════
   BREAKPOINT — 640px  (phablets / large phones)
════════════════════════════════════════════════════ */
@media (min-width: 640px) {
  .features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 56px 2rem;
  }

  .feature {
    max-width: 220px;
  }
}

/* ════════════════════════════════════════════════════
   BREAKPOINT — 900px  (tablet and up — desktop nav)
════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  nav {
    padding: 1.2rem 2rem;
  }

  /* Show desktop nav links inline */
  .nav-links {
    display: flex !important;         /* override mobile hide */
    flex-direction: row;
    position: static;                 /* back in normal flow */
    background: none;
    border: none;
    box-shadow: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
    gap: 2.7rem;
  }

  .nav-links a {
    padding: 0;
    border-bottom: none;
    font-size: 1.05rem;
  }

  .nav-links a:hover {
    background: none;
  }

  /* Hide hamburger on desktop */
  .hamburger {
    display: none;
  }

  .logo {
    height: 52px;
  }

  .logo-group {
    margin-right: 3.5rem;
  }

  .school-name {
    font-size: 1.35rem;
  }

  .enroll-btn {
    display: block;
    margin-left: 3.5rem;
    padding: 0.7rem 1.7rem;
    font-size: 1.1rem;
  }

  main {
    padding: 4rem 1rem 2rem;
  }

  h1 {
    margin-top: 3rem;
  }

  .features {
    flex-wrap: nowrap;
    justify-content: space-around;
    padding: 60px 20px;
  }

  .feature {
    max-width: 250px;
  }
}

/* ════════════════════════════════════════════════════
   BREAKPOINT — 1200px  (wide desktop)
════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  nav {
    padding: 1.2rem 3rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  p {
    font-size: 1.1rem;
  }
}
