/* ================================================================
   ASHB · "Arctic Stadium" redesign
   ================================================================ */

/* ---- Custom properties --------------------------------------- */
:root {
  --bg:           #050d1e;
  --bg-2:         #091629;
  --bg-3:         #0d1e3a;
  --bg-4:         #112248;

  --ice:          #4dc8f5;
  --ice-dim:      rgba(77, 200, 245, 0.18);
  --ice-glow:     rgba(77, 200, 245, 0.30);

  --gold:         #f0c04c;
  --gold-dim:     rgba(240, 192, 76, 0.14);
  --gold-glow:    rgba(240, 192, 76, 0.35);

  --blue-bright:  #1a7ee8;

  --text:         #eef4ff;
  --muted:        #7a9bca;
  --faint:        rgba(255, 255, 255, 0.05);

  --line:         rgba(77, 200, 245, 0.12);
  --line-gold:    rgba(240, 192, 76, 0.20);
  --line-white:   rgba(255, 255, 255, 0.07);

  --shadow:       0 24px 72px rgba(0, 0, 0, 0.55);
  --shadow-card:  0 12px 40px rgba(0, 0, 0, 0.40);

  --radius-card:  28px;
  --radius-pill:  999px;
}

/* ---- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  /* Subtle atmospheric depth — matches the annual report palette */
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%,   rgba(26, 126, 232, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 15%, rgba(240, 192, 76, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 50% 90%,  rgba(26, 126, 232, 0.06) 0%, transparent 60%);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ---- Page shell ---------------------------------------------- */
.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---- Eyebrow label ------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ice);
  flex-shrink: 0;
}

/* ---- Display typography (Anton) ------------------------------ */
.hero-copy h1,
.section-heading h2,
.spotlight-copy h2,
.footer h2 {
  font-family: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  font-weight: 400;   /* Anton carries its own weight */
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 0.95;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.06;
  max-width: 11ch;
  /* Gradient text — white to ice blue */
  background: linear-gradient(160deg, #ffffff 0%, #d4ecff 55%, var(--ice) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading h2,
.spotlight-copy h2,
.footer h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.02;
  text-wrap: balance;
}

.lead,
.panel p,
.program-card p,
.spotlight-copy p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.lead {
  max-width: 56ch;
  margin: 20px 0 0;
}

/* ---- Navigation --------------------------------------------- */
.hero {
  position: relative;
  padding: 28px 0 68px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.brand span { white-space: nowrap; }
.brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(77, 200, 245, 0.35));
}

.topbar-panel {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(9, 22, 41, 0.65);
  backdrop-filter: blur(18px);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 4px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  transition: background 180ms, color 180ms;
}

.nav-links-primary a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links-secondary a {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--faint);
  color: var(--text);
}

.social-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.social-link,
.social-action {
  gap: 8px;
}

/* ---- Buttons ------------------------------------------------- */
.button,
.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.button:hover,
.contact-pill:hover,
.button:focus-visible,
.contact-pill:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #ffd76b 100%);
  color: #07100f;
  box-shadow: 0 8px 28px var(--gold-dim);
}
.button-primary:hover {
  box-shadow: 0 14px 40px var(--gold-glow);
}

.button-secondary {
  border-color: var(--line-white);
  background: var(--faint);
  color: var(--text);
}
.button-secondary:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

/* ---- Hero grid ---------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 44px;
  min-height: 72vh;
}

.hero-copy { text-align: left; }

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 28px;
  padding: 15px 20px;
  max-width: 520px;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(240, 192, 76, 0.07), transparent);
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}
.hero-note strong { color: var(--gold); }

/* ---- Hero card (annual report) ------------------------------ */
.hero-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow), 0 0 60px rgba(77, 200, 245, 0.08);
  transition: transform 320ms ease, box-shadow 320ms ease;
}
.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 80px rgba(77, 200, 245, 0.14);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 1555 / 2200;
  object-fit: cover;
}
.card-copy {
  padding: 22px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-top: 1px solid var(--line);
}
.card-copy p {
  margin: 0 0 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}
.card-copy h2 {
  margin: 0 0 14px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.card-copy a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  transition: gap 180ms;
}
.card-copy a::after { content: '→'; }
.card-copy a:hover { gap: 12px; }

/* ---- Sections ----------------------------------------------- */
.section {
  padding: 72px 0;
}

/* Rink-line dividers between sections */
.section + .section,
main + footer {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin: 0 0 44px;
  text-align: left;
}
.section-heading.compact { max-width: 700px; }

/* ---- Intro / About ------------------------------------------ */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.panel {
  padding: 30px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-white);
  background: linear-gradient(145deg, var(--bg-3) 0%, var(--bg-2) 100%);
  transition: border-color 240ms, transform 240ms;
}
.panel:hover {
  border-color: var(--line);
  transform: translateY(-3px);
}

.panel h3,
.program-card h3,
.report-copy h3 {
  margin: 0 0 11px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Quote panel */
.quote-panel {
  border-color: var(--line-gold);
  background: linear-gradient(145deg, rgba(240,192,76,0.07) 0%, var(--bg-2) 60%);
  position: relative;
  overflow: hidden;
}
.quote-panel::before {
  content: '\201C';
  position: absolute;
  top: -28px;
  right: 10px;
  font-family: 'Anton', Georgia, serif;
  font-size: 11rem;
  line-height: 1;
  color: rgba(240, 192, 76, 0.09);
  pointer-events: none;
  user-select: none;
}

.quote {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.quote-source {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Programs / Implicare ----------------------------------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.program-card {
  padding: 32px 28px 30px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-white);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  transition: border-color 240ms, transform 240ms, box-shadow 240ms;
}

/* Colour accent strip at top — different per card */
.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
}
.program-card:nth-child(1)::before { background: var(--ice); }
.program-card:nth-child(2)::before { background: var(--gold); }
.program-card:nth-child(3)::before { background: var(--blue-bright); }

.program-card:hover {
  border-color: var(--line);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* Giant decorative number */
.program-card > span {
  display: block;
  margin-bottom: 16px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.06);
  user-select: none;
}

.program-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

/* ---- Media gallery ------------------------------------------ */
.media-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.media-card {
  margin: 0;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line-white);
  background: var(--bg-2);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 450ms ease, filter 450ms ease;
  filter: brightness(0.88) saturate(0.9);
}
.media-card-tall img { min-height: 560px; }
.media-card:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1.05);
}

/* Overlay caption — slides up on hover */
.media-card figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 18px 18px;
  background: linear-gradient(0deg, rgba(5, 13, 30, 0.96) 0%, transparent 100%);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms, transform 300ms;
}
.media-card:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Spotlight ---------------------------------------------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.spotlight-copy {
  text-align: left;
}
.spotlight-copy p {
  max-width: 52ch;
  margin: 18px 0 0;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid var(--line-white);
  background: var(--bg-2);
  transition: border-color 220ms, box-shadow 220ms;
}
.stat-card:hover {
  border-color: var(--line-gold);
  box-shadow: 0 0 0 1px var(--line-gold);
}
.stat-card strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.stat-card span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

/* ---- Footer / Contact --------------------------------------- */
.footer {
  padding: 72px 0 56px;
  border-top: 1px solid var(--line);
}

.footer h2 {
  max-width: min(66%, 820px);
  line-height: 1.04;
  font-size: clamp(1.9rem, 2.8vw, 3.1rem);
  margin-bottom: 0;
}

/* Contact form card */
.contact-form {
  margin-top: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.form-consent {
  color: var(--muted);
  font-size: 0.88rem;
}

.field span {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.97rem;
  resize: vertical;
  transition: border-color 200ms, box-shadow 200ms;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(77, 200, 245, 0.40);
  box-shadow: 0 0 0 3px rgba(77, 200, 245, 0.08);
}

.field-message { grid-column: 1 / -1; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  line-height: 1.65;
}
.form-consent input { margin-top: 3px; }
.form-consent a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
}
.form-actions .footer-actions { margin-top: 0; }

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-pill {
  border: 1px solid var(--line);
  background: rgba(9, 22, 41, 0.85);
  color: var(--text);
}
.contact-pill.ghost {
  border-color: var(--line-white);
  background: var(--faint);
}
.contact-pill:hover {
  border-color: var(--ice-dim);
}

.form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: 0.91rem;
  color: var(--muted);
}
.form-status.is-success { color: #7ee8a2; }
.form-status.is-error   { color: #ff8f8f; }

.footer-copy {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-white);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-reg {
  display: inline-block;
  margin: 0 0.4em;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(77, 200, 245, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---- Decorative ice-line between hero and main -------------- */
.hero {
  padding-bottom: 64px;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 1060px) {
  .spotlight {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .spotlight-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .stat-card {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .program-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { min-height: auto; }
  .hero-copy h1 { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .media-card-tall img { min-height: 340px; }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .topbar-panel {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 8px;
  }
  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }
  .nav-links { justify-content: center; }
  .nav-links a { justify-content: center; flex: 1 1 auto; }

  .hero {
    padding-top: 18px;
    padding-bottom: 48px;
  }
  .hero-grid { padding-top: 36px; }
  .hero-copy h1 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
    -webkit-text-fill-color: transparent;
  }

  .section { padding: 52px 0; }

  .spotlight-stats {
    grid-template-columns: 1fr;
  }
  .stat-card {
    grid-template-columns: auto 1fr;
    text-align: left;
    gap: 18px;
  }

  .panel, .program-card, .media-card,
  .hero-card, .stat-card, .contact-form {
    border-radius: 22px;
  }

  .contact-form { padding: 22px; }
}
