/* ============================================================
   Patinoarul Olimpic Brașov — shared stylesheet
   Mobile breakpoint: 480px
   ============================================================ */

/* ---------- Self-hosted Raleway (latin + latin-ext, 400–800) ---------- */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/raleway-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/raleway-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Raleway', system-ui, sans-serif;
  color: #2b303a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: #2f6fd6; color: #fff; }

/* ---------- Logo animation ---------- */
.logo-symbol {
  height: 36px; display: block; flex: 0 0 auto;
  width: 0; opacity: 0; margin-right: 0;
  transition: width .4s cubic-bezier(.4,0,.2,1),
              opacity .4s cubic-bezier(.4,0,.2,1),
              margin .4s cubic-bezier(.4,0,.2,1);
}
.logo-wordmark {
  height: 30px; display: block; flex: 0 0 auto; max-width: 260px; opacity: 1;
  transition: max-width .4s cubic-bezier(.4,0,.2,1),
              opacity .4s cubic-bezier(.4,0,.2,1);
}
#header-bar { transition: max-width .4s cubic-bezier(.4,0,.2,1); }

/* ---------- Screens (SPA) ---------- */
.screen { display: none; }
.screen.active { display: block; }

/* ---------- Nav ---------- */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  background: none; border: none;
  padding: 8px 14px; font-size: 15px; font-weight: 600;
  color: #8a8a8a; border-bottom: 2px solid transparent;
  margin-bottom: -1.5px; cursor: pointer;
}
.nav-link:hover { color: #2b303a; }
.nav-link.active { color: #2b303a; border-bottom: 2px solid #2f6fd6; }

/* Buy + hamburger always grouped right */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  background: none; border: none;
  padding: 6px; cursor: pointer;
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #2b303a;
  transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — hidden by default */
.mobile-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 40;
  flex-direction: column;
  padding: 100px 28px 40px;
  gap: 4px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer .m-link {
  background: none; border: none; border-bottom: 1.5px solid #eef2f7;
  padding: 18px 0; font-size: 20px; font-weight: 700;
  color: #2b303a; text-align: left; cursor: pointer; font-family: inherit;
  width: 100%;
}
.mobile-drawer .m-link:hover { color: #2f6fd6; }
.mobile-drawer .m-buy {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  background: #2f6fd6; color: #fff;
  border: 1.5px solid #2b303a;
  padding: 14px 22px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit; width: 100%; justify-content: center;
}

/* ---------- Hero ---------- */
.hero-section {
  position: static;
  background-image: linear-gradient(90deg, #ffffff 0%, #ffffff 55%, rgba(255,255,255,0.78) 68%, rgba(255,255,255,0.3) 86%, rgba(255,255,255,0.05) 100%), url('assets/rink-interior.png');
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
  margin-top: -110px;
}
.hero-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 60px; line-height: 0.98;
  letter-spacing: -0.03em; margin: 0 0 22px; text-wrap: balance;
}
.page-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800; font-size: 52px; line-height: 1;
  letter-spacing: -0.03em; margin: 0 0 18px;
}

/* ---------- Specs 3-col grid ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid #2b303a;
}
.specs-grid > div:nth-child(1),
.specs-grid > div:nth-child(2) { border-right: 1.5px solid #2b303a; border-bottom: 1.5px solid #2b303a; }
.specs-grid > div:nth-child(3) { border-bottom: 1.5px solid #2b303a; }
.specs-grid > div:nth-child(4),
.specs-grid > div:nth-child(5) { border-right: 1.5px solid #2b303a; }

/* ---------- Program 2-col grid ---------- */
.program-grid {
  border: 1.5px solid #2b303a;
  border-bottom: none;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: stretch;
}

/* ---------- Event rows ---------- */
.event-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1.5px solid #2b303a;
  padding: 22px 28px;
}
.event-time { white-space: nowrap; text-align: right; }

/* ---------- Corona 2-col ---------- */
.corona-outer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

/* ---------- Contact 2-col ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid #2b303a;
}
.contact-left {
  padding: 40px;
  border-right: 1.5px solid #2b303a;
  display: flex; flex-direction: column; gap: 28px;
}

/* ---------- Hover states ---------- */
.btn-buy:hover { background: #2456b0 !important; }
.btn-ghost:hover { background: #2f6fd6 !important; color: #fff !important; }
.legal-link:hover { color: #ffffff !important; }

/* ---------- Schedule rows ---------- */
.sched-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

/* ---------- Legal pages ---------- */
.prose h2 { font-family: 'Raleway', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; line-height: 1.7; color: #3d3d3d; margin: 0 0 16px; }
.prose ul { font-size: 16px; line-height: 1.7; color: #3d3d3d; margin: 0 0 16px; padding-left: 22px; }
.prose ul li { margin-bottom: 6px; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: #eef2f7; border: 1.5px solid #2b303a; padding: 10px 16px; font-size: 14px; font-weight: 600; margin-bottom: 32px; }
.status-dot { width: 10px; height: 10px; background: #2f6fd6; border-radius: 50%; flex: none; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 24px; }
.cookie-table th { font-weight: 700; text-align: left; padding: 10px 14px; border: 1.5px solid #2b303a; background: #eef2f7; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.cookie-table td { padding: 10px 14px; border: 1.5px solid #d6dde6; vertical-align: top; color: #3d3d3d; }
.cookie-table tr:nth-child(even) td { background: #f7f9fc; }

/* ============================================================
   RESPONSIVE — 768px (tablet): hide nav links, keep buy button
   ============================================================ */
@media (max-width: 768px) {
  .nav-link { display: none; }
  .hamburger { display: flex; }
}

/* ============================================================
   RESPONSIVE — 610px: symbol-only logo
   ============================================================ */
@media (max-width: 610px) {
  /* Force symbol logo regardless of scroll state */
  .logo-symbol { width: 36px !important; opacity: 1 !important; margin-right: 4px !important; }
  .logo-wordmark { max-width: 0 !important; opacity: 0 !important; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {

  /* Nav — hide everything including buy button (it's in the drawer) */
  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  /* Header padding */
  header { padding: 10px !important; }

  /* Hero */
  .hero-section {
    margin-top: 0 !important;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 55%, #ffffff 80%),
      url('assets/rink-interior.png') !important;
    background-size: cover !important;
    background-position: center top !important;
  }
  .hero-section > div {
    padding: 220px 20px 52px !important;
  }
  .hero-title { font-size: 34px !important; line-height: 1.05 !important; }
  .hero-section p { font-size: 15px !important; }

  /* Page titles */
  .page-title { font-size: 34px !important; }

  /* Section padding — global tightening */
  section { padding-left: 16px !important; padding-right: 16px !important; }

  /* Specs grid → 1 col */
  .specs-grid { grid-template-columns: 1fr !important; }
  .specs-grid > div { border-right: none !important; border-bottom: 1.5px solid #2b303a !important; }
  .specs-grid > div:last-child { border-bottom: none !important; }

  /* Program grid → stack */
  .program-grid { grid-template-columns: 1fr !important; }
  .program-grid > div:first-child {
    padding: 24px 20px 0 !important;
    border-bottom: 1.5px solid #2b303a;
  }
  .program-grid > div:first-child img {
    display: none !important; /* hide the skating photo when stacked — it has negative margin */
  }
  .program-grid > div:last-child { border-left: none !important; }

  /* Events → 2-col (drop time) */
  .event-row {
    grid-template-columns: 72px 1fr !important;
    gap: 14px !important;
    padding: 16px !important;
  }
  .event-time { display: none !important; }
  .event-row > div:nth-child(2) > div:last-child { font-size: 13px !important; }

  /* Section headings */
  section h2[style] { font-size: 24px !important; }

  /* Corona section → stack */
  .corona-outer { grid-template-columns: 1fr !important; gap: 32px !important; }
  .corona-outer > div:first-child > h2 { font-size: 28px !important; }

  /* Contact grid → stack */
  .contact-grid { grid-template-columns: 1fr !important; }
  .contact-left { border-right: none !important; border-bottom: 1.5px solid #2b303a; padding: 28px 20px !important; }
  .contact-grid > div:last-child > div:first-child { min-height: 200px !important; }

  /* Tarife price rows — stack label and price */
  .price-row { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; }
  .price-row .price-dot { display: none !important; }
  .price-row .price-val { font-size: 20px !important; }

  /* Footer */
  footer > div:first-child > div { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }

  /* Legal prose */
  .prose h2 { font-size: 18px !important; }
  .prose p, .prose ul { font-size: 15px !important; }
  .cookie-table { font-size: 13px !important; }
  .cookie-table th, .cookie-table td { padding: 8px 10px !important; }
}
