/*
Theme Name: Rallus JT
Theme URI: https://example.com/rallus
Author: Rallus
Description: Classic PHP theme for Rallus — junior tennis matchmaking. The front page is built from ACF Flexible Content sections with hardcoded fallbacks, so it renders correctly with or without ACF installed. Playful, high-contrast "neobrutalist" design: bold Bricolage Grotesque headings, chunky outlined cards with offset shadows, and a lime accent.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rallus
Tags: one-column, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --ink: #051D3F;          /* navy — text, borders, shadows */
  --ink-900: #000C1F;      /* deep shadow for dark buttons */
  --accent: #C1D617;       /* lime — primary accent */
  --accent-ink: #051D3F;   /* text on accent */
  --green: #1F4D3A;        /* deep green panel (safety, hero court) */
  --green-ink: #1F6B40;    /* green text / strokes */
  --green-dot: #3DBE6E;
  --body: #3D4C66;         /* body copy */
  --muted: #55627A;        /* secondary copy */
  --line: #E3ECF7;         /* hairline / soft borders */
  --panel: #F2F7FF;        /* light blue tint panel */
  --paper: #FFFFFF;
  --canvas: #FBFCFE;

  /* tints */
  --tint-red: #FFECEC;
  --tint-red-ink: #8E1B22;
  --tint-orange: #FFF0E0;
  --tint-orange-ink: #8A4300;
  --tint-green: #E2F7EA;
  --tint-yellow: #FBFBD8;
  --tint-yellow-ink: #5C5F00;
  --tint-blue: #E6EEFB;
  --tint-sky: #BFE3FF;
  --tint-mint: #D9F5E3;
  --tint-sun: #FFE58A;
  --tint-peach: #FFD3C4;
  --tint-cream: #FFF4D6;
  --tint-cream-ink: #7A5600;

  /* ball colors */
  --ball-red: #E53935;
  --ball-orange: #FB8C00;
  --ball-green: #43A047;
  --ball-yellow: #D4E21B;

  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow: 0 5px 0 var(--ink);
  --shadow-sm: 0 3px 0 var(--ink);
  --shadow-lg: 0 8px 0 var(--ink);
  --display: 'Bricolage Grotesque', 'Nunito', system-ui, sans-serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: var(--sans);
  font-weight: 600;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
svg { flex: none; }
.font-display { font-family: var(--display); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { max-width: 1200px; margin: 0 auto; padding: 88px 24px; }
.section-narrow { max-width: 880px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -1px; }

/* Shared helpers */
.eyebrow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--paper); border: 2px solid var(--ink);
  font-weight: 800; font-size: 13px; letter-spacing: .8px; text-transform: uppercase;
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }
.eyebrow.eyebrow-green { background: var(--tint-mint); color: var(--green-ink); border: 0; }

.lead { font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--body); }
.muted { color: var(--muted); }
.fine { font-size: 14px; font-weight: 600; color: var(--muted); line-height: 1.5; }

/* Cards */
.card {
  border-radius: var(--radius); background: var(--paper);
  border: 2px solid var(--line); padding: 24px;
}
.card-ink { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.lift { transition: transform .12s ease, box-shadow .12s ease; }
.lift:hover { transform: translateY(-3px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 800; font-size: 16px;
  height: 46px; padding: 0 20px; border-radius: 16px;
  border: 2px solid var(--ink); background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--shadow-sm); cursor: pointer; white-space: nowrap;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 4px 0 var(--ink-900); }
.btn-dark:hover { box-shadow: 0 6px 0 var(--ink-900); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 18px; border-radius: 18px; }
.btn-ghost { border: 0; background: transparent; box-shadow: none; padding: 12px 14px; height: auto; }
.btn-ghost:hover { transform: none; box-shadow: none; text-decoration: underline; }

/* ==========================================================================
   3. Header / nav
   ========================================================================== */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--line); }
.nav-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.nav-links a { padding: 12px 14px; border-radius: 12px; font-weight: 800; font-size: 16px; }
.nav-links a:hover, .nav-links .current-menu-item > a { background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-ghost { font-size: 16px; }
.nav-links-cta { display: none; }

/* Hamburger toggle (shown on mobile only) */
.nav-toggle-cb { position: absolute; }
.nav-toggle { display: none; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: transform .15s ease, opacity .15s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

/* Logo wordmark (used when no custom logo is set) */
.logo {
  font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.5px;
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); line-height: 1;
}
.logo .ball-r {
  width: 30px; height: 30px; border-radius: 50%; flex: none; border: 2px solid var(--ink);
  background: radial-gradient(circle at 32% 32%, #fff 0 2px, transparent 3px),
              linear-gradient(135deg, var(--accent) 0 50%, var(--ball-green) 50% 100%);
}
.logo.small { font-size: 22px; color: #fff; }
.logo.small .ball-r { width: 24px; height: 24px; }
.logo img, .custom-logo { height: 40px; width: auto; display: block; }
.logo.small img, .logo.small .custom-logo {
	height: 50px;
	filter: brightness(0) invert(1);
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 96px; }
.hero-body { flex: 999 1 460px; display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -2px; }
.hero-title .mark { position: relative; display: inline-block; color: var(--green-ink); }
.hero-title .mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14 Q80 2 150 10 T296 8' fill='none' stroke='%23C1D617' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-sub { font-size: 20px; max-width: 540px; }

.zipfinder { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.zip-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; max-width: 280px; }
.zip-field label { font-weight: 800; font-size: 14px; }
.zipfinder input {
  height: 54px; padding: 0 16px; width: 100%;
  border-radius: 16px; border: 2px solid var(--ink); background: var(--paper);
  font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--ink);
}
.zipfinder input:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
.zipfinder .btn {  height: 52px;  padding: 0 26px;  font-size: 17px;  margin-bottom: 9px; }

.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.hero-trust svg { color: var(--green-ink); }

/* Hero visual (decorative) */
.hero-visual { flex: 1 1 400px; max-width: 520px; margin: 0 auto; position: relative; }
.hero-court { position: relative; height: 460px; overflow: hidden; border-radius: 36px; background: var(--green); border: 3px solid var(--ink); box-shadow: var(--shadow-lg); }
.hero-court svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-court .ball-badge { position: absolute; right: 28px; top: 28px; transform: rotate(18deg); width: 64px; height: 64px; }
.hero-card {
  position: absolute; left: 12px; right: 32px; top: 48px;
  background: var(--paper); border-radius: 28px; border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink); padding: 22px;
  display: flex; flex-direction: column; gap: 14px; transform: rotate(-2deg);
}
.hero-card .live { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--green-ink); }
.hero-card .live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot); }
.hero-card .when { font-family: var(--display); font-weight: 800; font-size: 24px; }
.hero-card .where { font-weight: 600; font-size: 15px; color: var(--muted); }
.hero-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 5px 10px; border-radius: var(--radius-pill); background: var(--tint-blue); font-size: 14px; font-weight: 800; }
.tag-green { background: var(--tint-mint); color: var(--green-ink); }
.tag-cream { background: var(--tint-cream); color: var(--tint-cream-ink); }
.hero-card hr { border: 0; height: 2px; background: var(--line); margin: 0; }
.hero-card .respond-label { font-weight: 800; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.hero-resp { display: flex; align-items: center; gap: 12px; }
.hero-resp .face { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-resp .face-a { background: #FFE7CF; }
.hero-resp .face-b { background: #DCEBFF; }
.hero-resp .who { flex: 1; display: flex; flex-direction: column; }
.hero-resp .who b { font-weight: 800; font-size: 16px; }
.hero-resp .who span { font-weight: 600; font-size: 13px; color: var(--muted); }
.hero-resp .pill { padding: 8px 14px; border-radius: 12px; border: 2px solid var(--ink); font-weight: 800; font-size: 14px; }
.hero-resp .pill-accept { background: var(--accent); }
.hero-resp .pill-plain { background: var(--paper); }
.hero-flag {
  position: absolute; right: 8px; bottom: -20px; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 18px; background: var(--tint-sun);
  border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transform: rotate(2deg);
  font-weight: 800; font-size: 15px;
}

/* ==========================================================================
   5. Pilot ribbon
   ========================================================================== */
.pilot { background: var(--ink); color: #fff; }
.pilot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 0; }
.pilot p { margin: 0; font-weight: 800; font-size: 17px; }
.pilot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pilot li { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.12); font-weight: 800; font-size: 14px; }
.pilot li.hot { background: var(--accent); color: var(--ink); }

/* ==========================================================================
   6. Section headers (shared)
   ========================================================================== */
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.sec-head.center { align-items: center; text-align: center; max-width: none; }
.sec-head.split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; max-width: none; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sec-head .sec-title-col { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.sec-head .sec-aside { font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--body); max-width: 420px; }
.center .lead { max-width: 640px; }

/* ==========================================================================
   7. Problem
   ========================================================================== */
.problem { display: flex; flex-direction: column; gap: 36px; padding-bottom: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.problem-card { display: flex; flex-direction: column; gap: 10px; }
.icon-chip { width: 48px; height: 48px; border-radius: 16px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.problem-card h3 { font-size: 20px; }

/* ==========================================================================
   8. How it works (steps)
   ========================================================================== */
.how { display: flex; flex-direction: column; gap: 44px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step { border-radius: 28px; background: var(--paper); border: 2px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 52px; height: 52px; border-radius: 18px; border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 24px;
}
.step h3 { font-size: 21px; }
.step p { font-size: 15px; }

/* ==========================================================================
   9. Court finder
   ========================================================================== */
.courts { display: flex; flex-direction: column; gap: 32px; padding-top: 0; }
.courts-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.court-map {
  flex: 999 1 560px; min-width: 0; position: relative; height: 480px;
  border-radius: var(--radius-lg); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  overflow: hidden; background: #E9F2E4;
}
.court-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.court-area { position: absolute; width: 132px; height: 132px; transform: translate(-50%, -50%); border-radius: 50%; }
.court-area.you { background: rgba(47,91,211,.16); border: 2px dashed #2F5BD3; }
.court-area.them { background: rgba(240,122,58,.16); border: 2px dashed #C2410C; }
.court-flag { position: absolute; transform: translate(-50%, -50%); padding: 6px 12px; border-radius: var(--radius-pill); background: var(--paper); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap; }
.court-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-sizing: border-box; }
.court-pin { position: absolute; transform: translate(-50%, -100%); padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; z-index: 2; transition: transform .12s ease; }
.court-pin svg path { fill: #fff; transition: fill .12s ease; }
.court-pin[aria-pressed="true"] { z-index: 3; transform: translate(-50%, -100%) scale(1.28); }
.court-pin[aria-pressed="true"] svg path { fill: var(--accent); }
.court-note {
  position: absolute; left: 16px; bottom: 16px; right: 16px; margin: 0; max-width: max-content;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  background: var(--paper); border: 2px solid var(--ink); font-size: 14px; font-weight: 700;
}
.court-list { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.court-list h3 { font-size: 22px; }
.court-row {
  display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box;
  min-height: 76px; padding: 14px 16px; border-radius: 20px; cursor: pointer;
  font-family: var(--sans); color: var(--ink); text-align: left;
  background: var(--paper); border: 3px solid var(--line);
  transition: box-shadow .12s ease, border-color .12s ease;
}
.court-row[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.court-badge {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  border: 2px solid var(--ink); background: var(--panel);
}
.court-row[aria-pressed="true"] .court-badge { background: var(--accent); }
.court-row .court-info { display: flex; flex-direction: column; gap: 2px; text-align: left; flex: 1; min-width: 0; }
.court-row .court-info b { font-weight: 800; font-size: 17px; }
.court-row .court-info span { font-weight: 600; font-size: 14px; color: var(--body); }
.court-row .court-dist { font-weight: 800; font-size: 14px; white-space: nowrap; color: var(--green-ink); }

/* ==========================================================================
   10. Levels + rating
   ========================================================================== */
.band { background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.levels-inner { display: flex; flex-direction: column; gap: 36px; }
.levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.level { border-radius: 28px; border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.level .ball { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); }
.level h3 { font-size: 26px; }
.level dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.level dt { font-weight: 800; }
.level dd { margin: 0; font-weight: 700; }
.level p { font-size: 15px; }
.level.red { background: var(--tint-red); }       .level.red dt { color: var(--tint-red-ink); }
.level.orange { background: var(--tint-orange); }  .level.orange dt { color: var(--tint-orange-ink); }
.level.green { background: var(--tint-green); }    .level.green dt { color: var(--green-ink); }
.level.yellow { background: var(--tint-yellow); }  .level.yellow dt { color: var(--tint-yellow-ink); }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.rating-body { flex: 999 1 420px; display: flex; flex-direction: column; gap: 18px; }
.rating-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rating-list li { display: flex; gap: 14px; align-items: center; }
.rating-list .n { width: 32px; height: 32px; border-radius: 10px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; }
.rating-list p { font-size: 16px; font-weight: 600; line-height: 1.5; }
.rating-list strong { font-weight: 800; }
.note-box { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 2px solid var(--line); font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--body); }
.rating-card { flex: 1 1 395px; max-width: 440px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 18px; transform: rotate(1.5deg); }
.rating-card .rc-top { display: flex; align-items: center; justify-content: space-between; }
.rating-card .rc-label { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.rating-card .rc-score { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.rating-card .rc-rows { display: flex; flex-direction: column; gap: 10px; }
.rating-card .rc-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 16px; gap: 10px; }
.rating-card .rc-row.ok { background: var(--panel); }
.rating-card .rc-row.wait { background: var(--tint-cream); }
.rating-card .rc-row b { font-weight: 800; font-size: 15px; }
.rating-card .rc-tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.rating-card .rc-tag.ok { color: var(--green-ink); }
.rating-card .rc-tag.wait { color: var(--tint-cream-ink); }
.rating-card > svg { width: 100%; height: auto; }
.rating h2 {font-size: clamp(30px, 3.6vw, 44px);}

/* ==========================================================================
   11. Family features
   ========================================================================== */
.features-inner { display: flex; flex-direction: column; gap: 36px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--panel); }
.feature .icon-chip { background: var(--paper); }
.feature .body { display: flex; flex-direction: column; gap: 4px; }
.feature h3 { font-size: 19px; }
.feature p { font-size: 15px; }

/* ==========================================================================
   12. Safety
   ========================================================================== */
.safety { position: relative; overflow: hidden; background: var(--green); color: #fff; }
.safety-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.safety-inner { position: relative; display: flex; flex-direction: column; gap: 40px; }
.safety-inner .sec-head { color: #fff; }
.safety-inner .sec-head .lead { color: #E3F2E9; }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.promise { border-radius: var(--radius); background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 #0F2A1F; padding: 24px; display: flex; gap: 16px; }
.promise h3 { font-size: 20px; }
.promise p { font-size: 15px; color: var(--body); }
.promise .body { display: flex; flex-direction: column; gap: 6px; }

/* ==========================================================================
   13. FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 28px; }
.faq h2 { text-align: center; font-size: clamp(30px, 3.6vw, 44px); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 20px; background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); padding: 0 22px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { display: inline-flex; line-height: 0; transition: transform .15s ease; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--body); }

/* ==========================================================================
   14. Final CTA
   ========================================================================== */
.cta-final { padding-top: 0; padding-bottom: 96px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--tint-sun);
  border: 3px solid var(--ink); box-shadow: var(--shadow-lg);
  padding: clamp(36px, 5vw, 64px) 24px; display: flex; flex-direction: column; align-items: center;
  gap: 18px; text-align: center;
}
.cta-box .deco { position: absolute; opacity: .5; }
.cta-box .deco.a { left: -30px; bottom: -40px; }
.cta-box .deco.b { right: 40px; top: -26px; }
.cta-box h2 { position: relative; font-size: clamp(30px, 4vw, 52px); max-width: 760px; }
.cta-box p { position: relative; font-size: 18px; font-weight: 700; color: #3D3200; max-width: 560px; }
.cta-box .btn { position: relative; margin-top: 6px; }

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #fff; }
.footer-inner { display: flex; flex-direction: column; gap: 48px; padding: 64px 0 32px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.footer-brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.footer-brand p { font-size: 16px; font-weight: 600; line-height: 1.55; color: #C9D4E5; }
.footer-brand .btn { align-self: flex-start; border-color: #fff; box-shadow: 0 3px 0 #fff; }
.footer-brand .btn:hover { box-shadow: 0 5px 0 #fff; }
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-col h2 { font-family: var(--sans); margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.footer-col a { padding: 8px 0; font-weight: 700; font-size: 16px; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600; line-height: 1.5; color: #C9D4E5; }
.footer-bottom p { margin: 0; max-width: 640px; }

/* ==========================================================================
   16. WordPress-specific + generic content
   ========================================================================== */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important; }
.skip-link:focus { display: block; position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow-sm); clip: auto; clip-path: none; height: auto; width: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Generic page / post content */
.page-shell { padding: 56px 0 72px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -1.2px; margin-bottom: 10px; }
.page-meta { font-size: 14px; color: var(--muted); font-weight: 700; }
.entry { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 36px; max-width: 760px; }
.entry > * + * { margin-top: 18px; }
.entry h2 { font-size: 27px; margin-top: 34px; }
.entry h3 { font-size: 20px; margin-top: 26px; }
.entry p, .entry li { font-size: 16px; line-height: 1.65; color: var(--body); }
.entry a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 2px; }
.entry ul, .entry ol { padding-left: 22px; }
.entry li + li { margin-top: 8px; }
.entry img, .entry iframe { max-width: 100%; height: auto; border-radius: 16px; }
.entry blockquote { border-left: 4px solid var(--accent); padding-left: 18px; color: var(--muted); font-style: italic; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { border: 2px solid var(--line); padding: 10px 12px; text-align: left; }
.entry code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: 14px; }

.post-list { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 760px; }
.post-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px 26px; }
.post-card h2 { font-size: 21px; margin-bottom: 6px; }
.post-card h2 a:hover { color: var(--green-ink); }
.post-card p { font-size: 15px; color: var(--body); margin-top: 8px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font-size: 14px; font-weight: 800; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--accent); }

.comments { max-width: 760px; margin-top: 34px; }
.comments h2 { font-size: 22px; margin-bottom: 16px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list li { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 12px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; font-family: inherit; font-size: 15px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); }
.comment-form p { margin-bottom: 12px; }
.comment-form input[type=submit] { font-family: inherit; font-weight: 800; font-size: 15px; border: 2px solid var(--ink); cursor: pointer; background: var(--accent); color: var(--ink); border-radius: 12px; padding: 12px 22px; box-shadow: var(--shadow-sm); }

.error-404 { text-align: center; padding: 96px 0; }
.error-404 h1 { font-size: 44px; margin-bottom: 12px; }
.error-404 p { color: var(--muted); margin-bottom: 26px; }

/* ==========================================================================
   17. Responsive
   ========================================================================== */
/* Simplify the hero once it stacks: drop the decorative court + floating flag
   and let the match card sit in normal flow, upright and full-width. */
@media (max-width: 720px) {
  .hero-court,
  .hero-flag { display: none; }
  .hero-visual { max-width: none; width: 100%; }
  .hero-card {
    position: static; left: auto; right: auto; top: auto;
    max-width: none; margin: 0; transform: none;
  }
}

/* Collapse the primary menu into a hamburger dropdown. */
@media (max-width: 860px) {
  .nav-inner { row-gap: 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; flex: none; border: 2px solid var(--ink);
    border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer;
  }
  .nav-links {
    display: none; order: 5; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 6px;
  }
  .nav-links ul { flex-direction: column; width: 100%; gap: 2px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 10px; border-radius: 12px; font-size: 17px; }
  .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .nav-toggle-cb:checked ~ .nav-actions .nav-toggle-bars { background: transparent; }
  .nav-toggle-cb:checked ~ .nav-actions .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle-cb:checked ~ .nav-actions .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
  .nav-links-cta { display: block; margin-top: 4px; }
  .nav-links-cta .btn-ghost { padding: 13px 10px; }
}

@media (max-width: 600px) {
  .section { padding: 56px 20px; }
  .hero { padding: 36px 20px 56px; gap: 36px; }
  /* Horizontal only — a shorthand here would wipe the vertical padding of
     elements that also carry .wrap (hero, pilot ribbon, footer, nav). */
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-inner { gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .nav-login { display: none; }
  .nav-actions .btn { font-size: 14px; padding: 0 12px; height: 44px; }
  .nav-toggle { width: 44px; }
  .logo { font-size: 22px; gap: 8px; }
  .logo .ball-r { width: 26px; height: 26px; }
  .sec-head.split { gap: 12px; }
  .hero-title { letter-spacing: -1px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lift, .btn { transition: none; }
}
