/* ─────────────────────────────────────────────────────────
   Svendborg Judo Klub — theme
   Matched to live Uncode/WordPress site:
   - Display: Bebas Neue (headings, logo, CTAs)
   - Body: Roboto
   - Accent: red #c92228
   - Dark UI: teal #22535e / near-black #0e1416
   ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #c92228;
  --red-600: #b01c22;
  --red-700: #8e171c;
  --teal: #22535e;
  --teal-dark: #00525e;
  --teal-darker: #0e1416;
  --ink: #101314;
  --ink-2: #1a2024;
  --cream: #f6f1e4;
  --cream-2: #ece4cd;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: #e6dfc9;
  --muted: #5e5e5e;
  --muted-dark: rgba(255, 255, 255, 0.72);
  --bg: #ffffff;
  --text: #1a1a1a;
  --radius: 4px;
  --radius-lg: 6px;
  --max-width: 1200px;
  --font-sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Bebas Neue", "Oswald", "Roboto Condensed", Impact, sans-serif;
  --font-serif: "Playfair Display", "Droid Serif", Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-700); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--text);
  font-weight: 400; /* Bebas Neue looks heavy at 400 */
  text-transform: uppercase;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  border-radius: 0;
  font-weight: 400;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow .2s ease;
  border: 2px solid transparent;
}
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.15rem; }

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-700);
  border-color: var(--red-700);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s, gap .2s;
}
.link-arrow:hover {
  color: var(--red-700);
  border-color: currentColor;
  gap: 0.75rem;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: none;
  color: #fff;
}
.site-header--transparent.is-scrolled {
  position: fixed;
  background: rgba(16, 19, 20, 0.95);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  color: #fff;
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: inherit;
  text-transform: uppercase;
}
.logo-text span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: currentColor;
  opacity: 0.65;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: inherit;
  opacity: 0.85;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, opacity 0.2s;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover,
.nav-link.active { opacity: 1; color: var(--red); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  background: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.3rem;
  background: var(--red);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--red-700);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: inherit;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: 0.2s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
  padding: 10rem 0 8rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 20, 0.35) 0%, rgba(16, 19, 20, 0.55) 60%, rgba(16, 19, 20, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.75rem;
  padding-right: 0;
  padding-left: 0.45em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 9rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.hero-title .accent { color: var(--red); }

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Stats ribbon ────────────────────────────────────── */
.stats-ribbon {
  background: var(--ink);
  color: #fff;
  padding: 0 0 5rem;
  position: relative;
  margin-top: -1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--teal);
  padding: 3rem 1rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.stat {
  text-align: center;
  padding: 0.5rem 1.5rem;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}
.stat-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
  margin-top: 0.55rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.stat-cta {
  margin-top: 0.85rem;
}
.stat-cta a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.stat-cta a:hover { color: var(--red); border-color: var(--red); }

/* ── Generic section rhythm ──────────────────────────── */
section { padding: 6rem 0; }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.section-eyebrow--center { display: block; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  max-width: 900px;
  line-height: 1;
}
.section-title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.65;
}
.section-subtitle--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.25rem;
}
h3 { font-size: 1.5rem; font-weight: 400; }

/* ── Intro (below stats) ──────────────────────────────── */
.intro-section {
  background: #fff;
  padding: 5rem 0;
}
.intro-section p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
}
.intro-section .container { max-width: 940px; }

/* ── Teams grid (homepage) ───────────────────────────── */
.teams-section {
  background: var(--cream);
  padding: 6rem 0;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 20px 50px rgba(13, 13, 15, 0.12);
}
.team-card-body {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  margin: 0;
}
.team-card .team-schedule {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.team-card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
  flex: 1;
}
.team-card .team-link {
  margin-top: 0.6rem;
  align-self: flex-start;
}

/* ── Training split section ──────────────────────────── */
.training-section { background: #fff; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-grid.split-grid--reverse .split-media { order: 2; }

.split-media {
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: var(--ink-2);
  box-shadow: 0 30px 60px rgba(13, 13, 15, 0.18);
  position: relative;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split-body h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}
.split-body p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.split-body ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.split-body ul li {
  padding: 0.55rem 0 0.55rem 2rem;
  position: relative;
  color: var(--text);
  font-weight: 500;
}
.split-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 14px;
  height: 2px;
  background: var(--red);
}

/* ── Trainers section (homepage + /traenerne/) ────────── */
.trainers-section {
  background: #fff;
  padding: 6rem 0;
}
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.trainer-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(13, 13, 15, 0.14);
}
.trainer-portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink-2);
}
.trainer-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(8%);
  transition: transform .35s ease, filter .35s ease;
}
.trainer-card:hover .trainer-portrait img {
  transform: scale(1.04);
  filter: none;
}
.trainer-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  text-align: center;
}
.trainer-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}
.trainer-role {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

/* ── Gallery ─────────────────────────────────────────── */
.gallery-section {
  background: var(--cream);
  padding: 6rem 0;
}
.gallery-section .section-title { margin-bottom: 2.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 15, 0);
  transition: background .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(.9); }
.gallery-item:hover::after { background: rgba(13, 13, 15, 0.15); }

.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--big { grid-column: span 2; grid-row: span 2; }

/* ── CTA section ─────────────────────────────────────── */
.cta-section {
  position: relative;
  color: #fff;
  overflow: hidden;
  padding: 7rem 0;
  background: var(--ink);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,19,20,0.55) 0%, rgba(16,19,20,0.92) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.cta-inner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* ── Page header (non-home) ──────────────────────────── */
.page-header {
  background: var(--ink);
  color: #fff;
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header.has-bg .page-header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,19,20,0.25) 0%, rgba(16,19,20,0.65) 100%);
  pointer-events: none;
}
.page-header > * { position: relative; z-index: 1; }
.page-header .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 0.9rem;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6.5vw, 4.8rem);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.page-header .page-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ── Page content ────────────────────────────────────── */
.page-content {
  padding: 5rem 0;
}
.page-content .container { max-width: 860px; }
.page-content h2 {
  text-align: left;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.page-content p { margin-bottom: 1rem; font-size: 1.05rem; color: var(--text); line-height: 1.75; }
.page-content ul,
.page-content ol { margin: 1rem 0 1.25rem 1.4rem; }
.page-content li { margin-bottom: 0.5rem; font-size: 1.03rem; line-height: 1.6; }
.page-content a { color: var(--red); font-weight: 500; border-bottom: 1px solid rgba(201, 34, 40, 0.3); }
.page-content a:hover { color: var(--red-700); border-color: currentColor; }
.page-content a.btn,
.page-content .btn { border-bottom: none; font-weight: 400; }
.page-content a.btn-primary,
.page-content .btn-primary { color: #fff; }
.page-content a.btn-primary:hover,
.page-content .btn-primary:hover { color: #fff; border-color: var(--red-700); }
.page-content a.btn-outline,
.page-content .btn-outline { color: var(--text); }
.page-content a.btn-outline:hover,
.page-content .btn-outline:hover { color: #fff; }
.page-content a.btn-outline-light,
.page-content .btn-outline-light { color: #fff; }
.page-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--red);
  background: var(--cream);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}
.page-content blockquote p:last-child { margin-bottom: 0; }
.page-content hr {
  border: none;
  height: 1px;
  background: var(--line-dark);
  margin: 2.5rem 0;
}
.page-content strong { color: var(--ink); font-weight: 700; }
.page-content img { margin: 1.5rem 0; }

/* hold schedule callout */
.hold-schedule {
  background: var(--teal);
  color: #fff;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}
.hold-schedule strong { color: #fff; font-weight: 400; }

/* ── Page with sidebar (team/trainer pages) ──────────── */
.page-with-sidebar {
  padding: 5rem 0;
  background: #fff;
}
.page-with-sidebar .sidebar-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.page-sidebar {
  background: var(--teal);
  color: #fff;
  padding: 2rem 1.75rem;
  position: sticky;
  top: 100px;
}
.page-sidebar img {
  width: 100%;
  margin-bottom: 1.25rem;
}
.page-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 0.5rem;
}
.page-sidebar .role {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  opacity: 0.75;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.page-sidebar p { font-size: 0.95rem; line-height: 1.55; color: rgba(255,255,255,0.9); margin-bottom: 0.6rem; }
.page-sidebar .sidebar-sub {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.page-sidebar .sidebar-sub strong {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  display: block;
  margin-bottom: 0.3rem;
  opacity: 0.85;
}
.page-sidebar .btn {
  margin-top: 1.25rem;
  width: 100%;
}

.page-main .page-content { padding: 0; }
.page-main .page-content .container { max-width: none; padding: 0; }

/* ── Contact page ────────────────────────────────────── */
.contact-page { padding: 5rem 0; background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper {
  background: #fff;
  border: 1px solid var(--line-dark);
  padding: 2.25rem;
  box-shadow: 0 12px 32px rgba(13, 13, 15, 0.05);
}
.contact-form-wrapper h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.contact-form-wrapper > p.lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(201, 34, 40, 0.15);
}

.contact-form .btn {
  margin-top: 1.5rem;
  width: 100%;
}
.contact-form .btn:disabled { opacity: 0.6; cursor: progress; }

.contact-form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid transparent;
}
.contact-form-status.is-sending {
  background: #f4f4f4; color: #333; border-color: var(--line-dark);
}
.contact-form-status.is-success {
  background: #e8f8ef; color: #0f6a38; border-color: #9fd9b4;
}
.contact-form-status.is-error {
  background: #fdecea; color: #8b1e17; border-color: #f5b3ac;
}
.contact-form-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-form-note--warning {
  padding: 0.85rem 1rem;
  border: 1px dashed #d4a017;
  background: #fff7e0;
  color: #6a4c00;
}
.contact-form-note a { color: inherit; text-decoration: underline; }

.thankyou-page { padding: 4rem 0 6rem; background: var(--bg-soft, #f6f5f2); }
.thankyou-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem 2.5rem;
  border: 1px solid var(--line-dark);
  box-shadow: 0 12px 32px rgba(13, 13, 15, 0.05);
  text-align: center;
}
.thankyou-card .page-content {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.thankyou-contact {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.thankyou-contact a { color: var(--red); text-decoration: none; }
.thankyou-contact a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .thankyou-card { padding: 2rem 1.5rem; }
  .thankyou-contact { grid-template-columns: 1fr; gap: 1rem; }
}

.contact-info {
  background: var(--teal);
  color: #fff;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(13, 13, 15, 0.18);
}
.contact-info h2,
.contact-info h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.contact-info h3 { font-size: 1.15rem; margin-top: 1.5rem; letter-spacing: 0.12em; }
.contact-info p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.97rem;
}
.contact-info a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.contact-info a:hover { border-color: #fff; }
.contact-info .officer {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.contact-info .officer:first-of-type { border-top: none; padding-top: 0; }
.contact-info .officer p { margin-bottom: 0.2rem; }
.contact-info .officer strong { color: #fff; font-weight: 700; }

/* ── Sponsorers ──────────────────────────────────────── */
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.sponsor-card {
  background: var(--cream);
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--red);
}
.sponsor-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}
.sponsor-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--teal-darker);
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 1.75rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-brand .motto {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color .2s;
}
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 0.4rem; font-size: 0.93rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; font-size: 0.93rem; }

.footer-affiliation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}
.footer-affiliation img {
  height: 44px;
  width: auto;
  background: #fff;
  padding: 4px 6px;
}
.footer-affiliation span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

.copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  letter-spacing: 0.04em;
}

/* ── Timeline (used on /laer-judo/) ──────────────────── */
.timeline {
  border-left: 3px solid var(--red);
  margin: 2rem 0;
  padding-left: 1.5rem;
}
.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.7rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .teams-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .trainers-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .split-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-grid.split-grid--reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-with-sidebar .sidebar-grid { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
}

@media (max-width: 1100px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 0.35rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0,0,0,0.06);
    color: var(--ink);
  }
  .site-header--transparent .main-nav { background: var(--ink); color: #fff; border-top-color: var(--line); }
  .main-nav.open { display: flex; }
  .nav-link {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    white-space: normal;
  }
  .site-header--transparent .nav-link { border-bottom-color: rgba(255,255,255,0.08); }
  .nav-link.active::after { display: none; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 0.75rem; }
}

@media (max-width: 768px) {
  .header-inner { height: 72px; }
  .logo img { height: 46px; }
  .logo-text { display: none; }

  .hero { min-height: 88vh; padding: 8rem 0 5rem; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 4.2rem); }

  section { padding: 4.5rem 0; }
  .stats-ribbon { padding: 0 0 3.5rem; }
  .stats-grid { grid-template-columns: 1fr; padding: 1.5rem 0.5rem; gap: 0; }
  .stat + .stat::before { display: none; }
  .stat { padding: 1.5rem 0.5rem; border-top: 1px solid rgba(255,255,255,0.16); }
  .stat:first-child { border-top: none; }

  .trainers-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item--wide,
  .gallery-item--big { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 1.5rem; }

  .page-header { padding: 7rem 0 3rem; }
}
