/*
Theme Name: EduSport Modern
Theme URI: https://fundacjaedusport.pl
Author: Fundacja EduSport
Description: Nowoczesny, responsywny motyw Fundacji EduSport i Akademii Badmintona FKB Izabelin.
Version: 1.2.0
Text Domain: edusport-modern
Requires at least: 6.4
Requires PHP: 8.1
*/

:root {
  --navy: #1c1d1f;
  --navy-2: #27282b;
  --navy-3: #36383c;
  --ink: #222326;
  --cream: #f3f2ef;
  --white: #ffffff;
  --lime: #ff914d;
  --lime-dark: #f06f4f;
  --blue: #8f949a;
  --muted: #71757a;
  --line: rgba(31, 32, 35, 0.12);
  --radius: 24px;
  --container: 1180px;
  --shadow: 0 22px 70px rgba(19, 20, 22, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -60px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--lime);
  color: var(--navy);
  border-radius: 10px;
  font-weight: 800;
}

.skip-link:focus { top: 20px; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--white);
}

.nav-shell {
  width: min(calc(100% - 40px), 1280px);
  margin-inline: auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand-logo-small {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 3px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.brand-logo-small img { width: 100%; height: 100%; object-fit: contain; }

.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 20px; letter-spacing: -.7px; }
.brand-copy small { margin-top: 5px; font-size: 9px; font-weight: 800; letter-spacing: 3.1px; text-transform: uppercase; opacity: .64; }

.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
.main-nav > a { opacity: .82; transition: opacity .2s ease, color .2s ease; }
.main-nav > a:hover { opacity: 1; color: var(--lime); }

.main-nav .nav-cta {
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 99px;
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: white; transition: transform .2s, opacity .2s; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 172px 0 86px;
  background: var(--navy);
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 440px; height: 440px; right: 9%; top: 100px; background: radial-gradient(circle, rgba(255,145,77,.2), transparent 67%); }
.hero-glow-two { width: 400px; height: 400px; left: -180px; top: 330px; background: radial-gradient(circle, rgba(255,255,255,.055), transparent 70%); }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: 74px; align-items: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.eyebrow span { width: 26px; height: 2px; background: var(--lime); }
.eyebrow-dark { color: #707277; }

.hero h1, .section-heading h2, .footer-cta h2 {
  margin: 0;
  font-size: clamp(47px, 5.25vw, 78px);
  line-height: .99;
  letter-spacing: -4px;
  font-weight: 820;
}

.hero h1 em, .footer-cta h2 em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

.hero-lead { max-width: 610px; margin: 28px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.7; }

.hero-actions { display: flex; align-items: center; gap: 13px; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 21px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: var(--navy); }
.button-primary:hover { background: var(--white); }
.button-ghost { border: 1px solid rgba(255,255,255,.23); color: white; }
.button-ghost:hover { background: white; color: var(--navy); }

.hero-proof { display: flex; gap: 26px; margin-top: 44px; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof strong { color: var(--lime); font-size: 10px; }

.hero-visual { position: relative; min-width: 0; }

.court-card {
  position: relative;
  padding: 19px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.025));
  box-shadow: 0 40px 90px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  transform: rotate(2.3deg);
}

.court-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 35%;
  height: 70%;
  right: -19px;
  bottom: -19px;
  border-radius: 22px;
  background: var(--lime);
  opacity: .9;
}

.court-topline, .court-caption { display: flex; justify-content: space-between; align-items: center; padding: 1px 2px 15px; color: rgba(255,255,255,.47); font-size: 9px; font-weight: 800; letter-spacing: 1.35px; text-transform: uppercase; }

.court {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.23 / 1;
  border: 2px solid rgba(255,255,255,.7);
  background: linear-gradient(145deg, #4a4c50, #242528);
}

.court::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.55); }
.court-line { position: absolute; background: rgba(255,255,255,.48); }
.court-center { width: 1px; height: 84%; left: 50%; top: 8%; }
.court-horizontal { height: 2px; width: 84%; top: 50%; left: 8%; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.court-short-one, .court-short-two { width: 1px; height: 34%; left: 50%; }
.court-short-one { top: 8%; }
.court-short-two { bottom: 8%; }

.shuttle { position: absolute; width: 115px; height: 155px; left: 53%; top: 31%; transform: translate(-50%, -50%) rotate(-23deg); filter: drop-shadow(12px 18px 11px rgba(0,0,0,.26)); }
.shuttle-head { position: absolute; bottom: 6px; left: 41px; width: 39px; height: 30px; border-radius: 50% 50% 60% 60%; background: var(--lime); border: 4px solid #ffe3d0; }
.shuttle-feather { position: absolute; top: 3px; height: 122px; width: 36px; border: 4px solid rgba(255,255,255,.91); border-bottom: 7px solid rgba(255,255,255,.95); clip-path: polygon(15% 0, 85% 0, 72% 100%, 28% 100%); }
.shuttle-feather::after { content: ""; position: absolute; width: 3px; height: 100%; left: 50%; background: rgba(255,255,255,.9); }
.f1 { left: 15px; transform: rotate(-10deg); }
.f2 { left: 42px; }
.f3 { left: 69px; transform: rotate(10deg); }
.court-dot { position: absolute; border-radius: 50%; background: var(--lime); }
.dot-one { width: 9px; height: 9px; left: 17%; bottom: 19%; }
.dot-two { width: 5px; height: 5px; right: 13%; top: 16%; background: white; }

.court-caption { padding: 17px 2px 0; }
.court-caption > span:first-child { color: white; font-size: 10px; }
.live-pill { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 99px; background: rgba(255,255,255,.08); }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(255,145,77,.16); }

.paths-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 90px; }

.path-card {
  position: relative;
  min-height: 420px;
  padding: 42px;
  overflow: hidden;
  border-radius: var(--radius);
}

.foundation-card {
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
  background-image:
    linear-gradient(90deg, rgba(18,19,21,.98) 0%, rgba(18,19,21,.9) 38%, rgba(18,19,21,.58) 67%, rgba(18,19,21,.2) 100%),
    url("assets/dzieci-badminton.webp");
  background-position: center, 58% center;
  background-size: cover;
  color: white;
  box-shadow: 0 25px 65px rgba(0,0,0,.22);
}
.foundation-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 72px;
  height: 72px;
  right: 26px;
  top: 26px;
  border-top: 4px solid var(--lime);
  border-right: 4px solid var(--lime);
}
.foundation-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 6px;
  background: linear-gradient(90deg, var(--lime) 0 72%, rgba(255,145,77,.18) 72% 100%);
}
.foundation-card > * { position: relative; z-index: 1; }
.foundation-card h2, .foundation-card > p:not(.path-label) { max-width: 56%; }
.foundation-card .path-logo { width: 112px; height: 112px; padding: 7px; background: rgba(255,255,255,.94); }
.academy-card { border: 1px solid rgba(31,32,35,.1); background: #e7e5e1; color: var(--navy); }
.path-number { position: absolute; right: 32px; top: 25px; font-size: 11px; font-weight: 900; opacity: .4; }
.path-logo {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  padding: 9px;
  border: 1px solid rgba(31,32,35,.1);
  border-radius: 22px;
  background: white;
  box-shadow: 0 18px 38px rgba(19,20,22,.13);
}
.path-logo img { width: 100%; height: 100%; object-fit: contain; }
.path-logo-fkb { padding: 6px; }
.path-label { margin: 0 0 10px; font-size: 11px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; opacity: .5; }
.path-card h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -2.5px; }
.path-card > p:not(.path-label) { max-width: 430px; margin: 22px 0 36px; font-size: 15px; opacity: .72; }
.path-link { padding: 0 0 8px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; font-weight: 850; cursor: pointer; }
.path-link span { margin-left: 14px; transition: margin-left .2s; }
.path-link:hover span { margin-left: 21px; }

.section { padding: 112px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 70px; }
.section-heading h2 { color: var(--ink); font-size: clamp(42px, 5vw, 68px); }
.section-heading > p { max-width: 480px; margin: 0 0 4px; color: var(--muted); font-size: 15px; }

.filter-shell { display: flex; align-items: center; gap: 28px; margin-top: 56px; padding: 12px 14px 12px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.54); }
.filter-intro { display: flex; gap: 10px; white-space: nowrap; color: #72757a; font-size: 11px; font-weight: 850; letter-spacing: 1.1px; text-transform: uppercase; }
.filter-index { color: var(--ink); }
.filters { display: flex; flex: 1; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

.filter-button { flex: 0 0 auto; padding: 10px 15px; border: 0; border-radius: 99px; background: transparent; color: #585b60; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.filter-button:hover { background: rgba(31,32,35,.06); }
.filter-button.active { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(19,20,22,.16); }

.result-count { min-height: 20px; margin: 23px 0 12px; color: #76797e; font-size: 12px; font-weight: 750; }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.offer-card {
  position: relative;
  min-height: 355px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.76);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.offer-card::before { content: ""; position: absolute; left: 24px; top: 0; width: 46px; height: 3px; background: var(--lime-dark); }
.offer-card.academy::before { background: var(--blue); }
.offer-card:hover { transform: translateY(-5px); border-color: rgba(31,32,35,.24); box-shadow: var(--shadow); }
.offer-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 48px; }
.offer-number { color: #8b8e92; font-size: 10px; font-weight: 900; }

.area-badge { display: inline-flex; align-items: center; width: fit-content; padding: 7px 9px; border-radius: 99px; font-size: 9px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.area-badge.foundation { background: rgba(240,111,79,.16); color: #a34224; }
.area-badge.academy { background: rgba(47,49,53,.1); color: #4b4e53; }
.offer-card h3 { margin: 0; font-size: 24px; line-height: 1.12; letter-spacing: -1px; }
.offer-card p { margin: 14px 0 22px; color: var(--muted); font-size: 14px; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.offer-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: #717378; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.offer-action { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 850; }
.offer-action span { font-size: 17px; }

.card-enter { animation: card-in .38s ease both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.news { background: var(--navy); color: white; }
.news-heading h2 { color: white; }
.news-heading > p { color: rgba(255,255,255,.56); }
.news-grid { display: grid; grid-template-columns: 1.1fr .95fr .95fr; gap: 15px; margin-top: 56px; }
.news-card { min-height: 460px; padding: 25px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.045); }
.news-card:first-child { grid-row: span 1; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.news-meta time { color: rgba(255,255,255,.45); font-size: 10px; font-weight: 750; }
.news-visual { position: relative; height: 145px; margin: 24px 0 28px; overflow: hidden; border-radius: 12px; background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.01)); }
.news-visual::before, .news-visual::after { content: ""; position: absolute; border-radius: 50%; }
.news-visual::before { width: 150px; height: 150px; right: -20px; top: -46px; border: 27px solid var(--lime); opacity: .85; }
.news-blue .news-visual::before { border-color: var(--blue); }
.news-light .news-visual::before { border-color: white; opacity: .72; }
.news-visual::after { width: 70px; height: 70px; left: 19%; bottom: -42px; border: 2px solid rgba(255,255,255,.38); }
.news-visual span { position: absolute; z-index: 2; left: 20px; bottom: 15px; font-size: 11px; font-weight: 900; opacity: .44; }
.news-visual i { position: absolute; width: 52%; height: 1px; right: 0; bottom: 26%; background: rgba(255,255,255,.23); transform: rotate(-22deg); }
.news-card h3 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.9px; }
.news-card > p { margin: 14px 0 26px; color: rgba(255,255,255,.58); font-size: 13px; }
.news-card > a { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; font-weight: 850; }
.news-card > a:hover { color: var(--lime); }

.partners { padding: 62px 0; background: white; }
.partners-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.partners-heading p { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; }
.partners-heading span { color: #74767b; font-size: 12px; }
.partner-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.partner-slot { min-height: 104px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px dashed #c8c8c8; border-radius: 14px; color: #424448; }
.partner-slot > span { max-width: 58px; color: #9b9da0; font-size: 8px; font-weight: 800; letter-spacing: .7px; line-height: 1.35; text-transform: uppercase; }
.partner-slot strong { text-align: right; font-size: 14px; line-height: 1.25; }
.partner-slot em { color: #d04d36; font-family: Georgia, serif; font-weight: 400; }

.site-footer { padding: 100px 0 30px; background: #111214; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; }
.footer-cta h2 { font-size: clamp(42px, 5vw, 68px); }
.footer-cta .button { margin-top: 32px; }
.footer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 24px; align-content: start; padding-top: 35px; }
.footer-details > div:first-child { grid-column: 1 / -1; }
.footer-label { display: block; margin-bottom: 14px; color: rgba(255,255,255,.38); font-size: 9px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.footer-details p { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; }
.footer-details a { display: block; width: fit-content; margin: 8px 0; color: rgba(255,255,255,.75); font-size: 13px; }
.footer-details a:hover { color: var(--lime); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 88px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.1); }
.brand-footer { justify-self: start; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: 10px; }
.footer-bottom > a { justify-self: end; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero { padding-top: 145px; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 660px; width: 100%; margin-inline: auto; }
  .court { aspect-ratio: 1.7 / 1; }
  .shuttle { left: 51%; top: 38%; transform: translate(-50%, -50%) rotate(-23deg) scale(.84); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:first-child { grid-column: 1 / -1; min-height: 390px; }
  .footer-grid { grid-template-columns: 1fr; gap: 55px; }
  .footer-details { grid-template-columns: repeat(3, 1fr); }
  .footer-details > div:first-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .container, .nav-shell { width: min(calc(100% - 28px), var(--container)); }
  .nav-shell { min-height: 76px; }
  .menu-toggle { display: block; position: relative; z-index: 22; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; padding: 110px 28px 35px; flex-direction: column; align-items: flex-start; gap: 3px; background: var(--navy); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav > a { width: 100%; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 25px; }
  .main-nav .nav-cta { margin-top: 20px; padding: 13px 18px; border: 1px solid var(--lime); font-size: 15px; color: var(--lime); }
  .hero { padding: 126px 0 64px; }
  .hero-grid { gap: 48px; }
  .hero h1, .section-heading h2, .footer-cta h2 { letter-spacing: -2.4px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-proof { display: none; }
  .court-card { padding: 12px; border-radius: 20px; transform: rotate(1deg); }
  .court { aspect-ratio: 1.22 / 1; }
  .court-card::after { right: -8px; bottom: -9px; }
  .court-topline, .court-caption { padding-inline: 2px; }
  .shuttle { top: 35%; transform: translate(-50%, -50%) rotate(-23deg) scale(.72); }
  .paths-grid { grid-template-columns: 1fr; margin-top: 60px; }
  .path-card { min-height: 380px; padding: 31px 27px; }
  .path-logo { width: 116px; height: 116px; margin-bottom: 30px; }
  .foundation-card { background-position: center, 64% center; }
  .foundation-card h2, .foundation-card > p:not(.path-label) { max-width: 68%; }
  .foundation-card .path-logo { width: 100px; height: 100px; }
  .section { padding: 82px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .filter-shell { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 38px; padding: 16px 12px; }
  .filters { width: 100%; padding-bottom: 2px; }
  .filter-button { background: rgba(31,32,35,.045); }
  .offer-grid, .news-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: 330px; }
  .news-card, .news-card:first-child { grid-column: auto; min-height: 420px; }
  .partners-heading { align-items: flex-start; flex-direction: column; }
  .partner-strip { grid-template-columns: 1fr; }
  .site-footer { padding-top: 80px; }
  .footer-details { grid-template-columns: 1fr 1fr; }
  .footer-details > div:first-child { grid-column: 1 / -1; }
  .footer-cta .button { justify-content: space-between; overflow: hidden; font-size: 12px; }
  .footer-bottom { grid-template-columns: 1fr auto; row-gap: 20px; }
  .footer-bottom p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 43px; }
  .hero-lead { font-size: 15px; }
  .court-topline span:last-child { display: none; }
  .court-caption { align-items: flex-start; flex-direction: column; gap: 9px; }
  .live-pill { align-self: flex-end; }
  .path-card h2 { font-size: 39px; }
  .foundation-card { background-position: center, 61% center; }
  .foundation-card h2, .foundation-card > p:not(.path-label) { max-width: 74%; }
  .section-heading h2, .footer-cta h2 { font-size: 42px; }
  .footer-details { grid-template-columns: 1fr; }
  .footer-details > div:first-child { grid-column: auto; }
}

/* WordPress */
.admin-bar .site-header { top: 32px; }
.site-header { z-index: 999; }
body:not(.home) .site-header { position: fixed; background: rgba(28,29,31,.97); box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.offer-card[hidden] { display: none; }
.wp-site-blocks { padding: 0; }
.content-page { min-height: 72vh; padding: 150px 0 90px; background: var(--cream); }
.content-page .eyebrow { color: var(--muted); }
.content-page h1 { margin: 0 0 30px; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -3px; }
.content-card { padding: clamp(25px, 5vw, 60px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.content-card > *:first-child { margin-top: 0; }
.content-card img { max-width: 100%; height: auto; border-radius: 14px; }
.content-card a { color: #c95532; text-decoration: underline; text-underline-offset: 3px; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-list article { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.post-list h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.15; }
.post-list p { color: var(--muted); }
.pagination { margin-top: 35px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .post-list { grid-template-columns: 1fr; }
}
