/* ==========================================================================
   Blåkilde Tennis – stylesheet
   Palette fra klubbens logo: royalblå på is-hvid, navy som blæk,
   tennisbold-gul som eneste kontrastfarve.
   ========================================================================== */

:root {
  --blue: #3060ff; /* logoets blå */
  --blue-deep: #1c4ed8;
  --ink: #0a1a3f;
  --navy: #0b1e4e;
  --navy-deep: #081636;
  --ice: #eef3fd;
  --paper: #ffffff;
  --line: #d7e1f6;
  --ball: #d9e94f;
  --muted: #51618c;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --maxw: 68rem;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

/* ---------- genbrugte småting ---------- */

.hex {
  display: inline-block;
  width: 0.85em;
  height: 0.95em;
  margin-right: 0.5em;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transform: translateY(0.12em);
}
.hex--ball { background: var(--ball); }

.overline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}
.section--dark .overline { color: var(--ball); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-deep); color: #fff; }
.btn--ghost { border: 2px solid var(--blue); color: var(--blue-deep); }
.btn--ghost:hover { background: var(--blue); color: #fff; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.topbar__logo {
  display: block;
  width: 3rem;
  height: 3rem;
  color: var(--blue);
}
.topbar__logo svg { display: block; width: 100%; height: 100%; }
.topbar__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.01em; }

.topbar__nav { display: flex; gap: clamp(0.7rem, 2vw, 1.4rem); flex-wrap: wrap; }
.topbar__nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.topbar__nav a:hover { color: var(--blue); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 110% -10%, #dfe9ff 0%, transparent 60%),
    var(--ice);
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6.5rem);
}

.hero__court {
  position: absolute;
  top: 50%;
  right: clamp(-6rem, -2vw, 0rem);
  height: 130%;
  transform: translateY(-50%) rotate(14deg);
  color: var(--blue);
  opacity: 0.13;
  pointer-events: none;
}

/* Klubmærket som stort "emaljeskilt" i heroens højre side */
.hero__badge {
  position: absolute;
  top: 50%;
  right: clamp(2rem, 9vw, 11rem);
  width: clamp(11rem, 24vw, 20rem);
  color: var(--blue);
  --logo-hex-fill: #fff;
  opacity: 0;
  animation: badge-in 0.9s ease 0.25s forwards;
}
.hero__badge svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(11, 30, 78, 0.3));
  transform: translateY(-50%);
}
@keyframes badge-in { to { opacity: 1; } }

.hero__inner { max-width: var(--maxw); margin: 0 auto; position: relative; }

.hero__kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.hero__title {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.1em 0 0.25em;
}
.hero__title > span { display: block; }
.hero__title-line2 { color: var(--blue); margin-left: clamp(1.5rem, 6vw, 5rem); }

/* å'ets ring er en tennisbold (bolden ER ringen over a'et) */
.ball-a { position: relative; display: inline-block; }
.ball-a__ball {
  position: absolute;
  top: 0.015em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.3em;
  height: 0.3em;
  fill: var(--ball);
  stroke: var(--ink);
}
.ball-a__ball circle { stroke-width: 1.8; }

.hero__lede { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink); }
.hero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__addr { margin-top: 2.2rem; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- sektioner ---------- */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem); }
.section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: 2.2rem; }
.section__sub { max-width: 36rem; color: var(--muted); }

.section--tint { background: var(--ice); }

.season-note {
  margin: 1.4rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.season-note--center { max-width: 44rem; }

.section--dark {
  background:
    radial-gradient(50rem 26rem at -10% 110%, #14306e 0%, transparent 60%),
    var(--navy);
  color: #eaf0ff;
}
.section--dark h2 { color: #fff; }
.section--dark .section__sub { color: #aebbdf; }

/* ---------- træningstider ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 10px 30px -18px rgba(11, 30, 78, 0.25);
}
.card--time { border-top: 4px solid var(--blue); }

.card__title { font-size: 1.25rem; margin: 0 0 0.4rem; }
.card__title .hex { width: 0.6em; height: 0.66em; }
.card__text { margin: 0; color: var(--muted); font-size: 0.98rem; }

.card__chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--ice);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin: 0 0 1rem;
}
.card__big { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; margin: 0 0 0.3rem; }
.card__big-time { color: var(--blue); white-space: nowrap; }
.card__meta { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- priser ---------- */

.pricelist { list-style: none; margin: 0 auto; padding: 0; max-width: 44rem; }

.pricelist__row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.pricelist__row:first-child { border-top: 1px solid var(--line); }
.pricelist__name { font-weight: 600; }
.pricelist__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-0.35em); }
.pricelist__price { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--blue-deep); }
.pricelist__price small { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; color: var(--muted); }

/* ---------- bestyrelse ---------- */

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.2rem; }

.board__member {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.board__name { margin: 0 0 0.15rem; font-size: 1.15rem; }
.board__role { margin: 0 0 0.7rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); }
.board__contact { margin: 0; font-size: 0.95rem; display: grid; gap: 0.15rem; }
.board__contact a { color: var(--muted); text-decoration: none; }
.board__contact a:hover { color: var(--blue); }

/* ---------- klubmestre ---------- */

.champs { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }

.champs__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 9vw, 6.5rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--ball);
}

.champs__list { display: grid; gap: 0.7rem; margin: 0; }
.champs__list > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.champs__list dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8fa3d4; }
.champs__list dd { margin: 0; font-weight: 600; color: #fff; }
.champs__list dd.champs__none { font-weight: 400; font-style: italic; color: #8fa3d4; }

/* Årgangsvælger: klik på et år, og det vises i panelet til venstre */
.champs__years {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  align-content: start;
}

.champs__yearbtn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.champs__yearbtn:hover { border-color: var(--ball); }
.champs__yearbtn.is-active {
  background: var(--ball);
  border-color: var(--ball);
  color: var(--navy);
}

.champs__year-panel { animation: panel-in 0.3s ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .champs__year-panel { animation: none; }
}

/* ---------- kontakt / kort ---------- */

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }

.contact__info h3 { margin-top: 1.6rem; }
.contact__info h3:first-child { margin-top: 0; }
.contact__addr { color: var(--muted); }
.contact__doc { font-weight: 600; }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px -24px rgba(11, 30, 78, 0.4);
}
.contact__map iframe { display: block; width: 100%; height: 26rem; border: 0; }

/* ---------- sponsor ---------- */

.section--sponsor { text-align: center; }
.sponsor { max-width: 38rem; }
.sponsor p { color: var(--muted); }
.sponsor .btn { margin-top: 0.4rem; }

.sponsor__logo { margin: 0.4rem 0 1.1rem; }
.sponsor__logo img {
  width: 5.5rem;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(11, 30, 78, 0.18));
  transition: transform 0.2s ease;
}
.sponsor__logo img:hover { transform: scale(1.05); }

/* ---------- footer ---------- */

.footer { background: var(--navy-deep); color: #aebbdf; padding: 3rem 1.5rem; text-align: center; }
.footer__logo { display: inline-block; width: 3.6rem; height: 3.6rem; color: var(--blue); }
.footer__logo svg { display: block; width: 100%; height: 100%; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; margin: 0.7rem 0 0.2rem; }
.footer__addr { margin: 0; font-size: 0.9rem; }
.footer__some { margin: 0.9rem 0 0; font-size: 0.9rem; }
.footer__some a { color: #aebbdf; text-decoration-color: rgba(174, 187, 223, 0.5); }
.footer__some a:hover { color: #fff; }

/* ---------- bevægelse ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-load { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-load { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__badge { opacity: 1; animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- mobil ---------- */

@media (max-width: 62rem) {
  .hero__badge { width: clamp(9rem, 20vw, 13rem); right: clamp(1rem, 4vw, 3rem); }
}

@media (max-width: 46rem) {
  .champs, .contact { grid-template-columns: 1fr; }
  .hero__court { right: -10rem; opacity: 0.09; }
  .topbar { justify-content: center; text-align: center; }
  .topbar__logo { width: 2.5rem; height: 2.5rem; }
  .contact__map iframe { height: 20rem; }

  /* Mærket skjules på smalle skærme */
  .hero__badge { display: none; }
}
