/*
Theme Name: Spartacus Taekwon-Do
Theme URI: https://spartacustkd.gr/
Author: Α.Ο. Ευόσμου Σπάρτακος
Description: Custom, dependency-light theme based on the approved Spartacus Taekwon-Do mockup.
Version: 1.1.3
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: spartacus-tkd
*/

:root {
  --black: #0b0c0e;
  --ink: #131518;
  --white: #f5f5f2;
  --paper: #ececea;
  --muted: #a6a8aa;
  --line: rgba(255,255,255,.16);
  --red: #e12731;
  --red-dark: #b91822;
  --shell: min(1280px, calc(100% - 48px));
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.shell { width: var(--shell); 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: 16px; top: -60px; z-index: 1000; background: white; color: black; padding: 12px 16px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto 0; height: 104px; padding: 0 max(24px, calc((100vw - 1280px)/2)); display: flex; align-items: center; justify-content: space-between; background: linear-gradient(to bottom, rgba(7,8,9,.92), rgba(7,8,9,.55), transparent); transition: height .25s, background .25s; }
.site-header.is-scrolled { height: 82px; background: rgba(8,9,11,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { position: relative; display: block; width: 210px; aspect-ratio: 986 / 431; overflow: hidden; flex: 0 0 auto; mix-blend-mode: screen; transition: width .25s; }
/* Display the authentic, unchanged PNG; clip only its empty outer canvas. */
.brand-logo { position: absolute; display: block; width: 139.24949%; max-width: none; height: auto; left: -20.08114%; top: -77.26218%; }
.site-header.is-scrolled .brand { width: 180px; }
.main-nav { display: flex; align-items: center; gap: clamp(10px, 1.25vw, 20px); }
.main-nav a { font: 700 clamp(.68rem, .75vw, .82rem)/1 var(--body); text-transform: uppercase; letter-spacing: .065em; color: #d7d7d7; padding: 12px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.is-active { color: white; border-color: var(--red); }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); color: white; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: currentColor; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { z-index: -3; background: var(--hero-image, url('assets/spartacus-tkd-14-plus.webp')) 58% center / cover no-repeat; transform: scale(1.015); animation: settle 1.4s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-shade { z-index: -2; background: linear-gradient(90deg, rgba(5,6,7,.98) 0%, rgba(5,6,7,.9) 31%, rgba(5,6,7,.28) 63%, rgba(5,6,7,.1) 100%), linear-gradient(0deg, rgba(5,6,7,.9) 0%, transparent 40%); }
.hero-rail { position: absolute; right: 0; top: 104px; bottom: 0; width: 56px; border-left: 1px solid rgba(255,255,255,.28); display: flex; align-items: center; justify-content: space-between; padding: 18px 0; writing-mode: vertical-rl; font: 700 .68rem/1 var(--body); letter-spacing: .16em; color: rgba(255,255,255,.7); }
.hero-content { padding-block: 210px 120px; }
.eyebrow { margin: 0 0 24px; color: #ff6c73; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1, .path-section h2, .statement h2, .site-footer h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: -.025em; }
.hero h1 { max-width: 960px; margin: 0; font-size: clamp(4.2rem, 9vw, 9.2rem); line-height: .82; font-weight: 800; }
.hero h1 em { display: inline-block; margin-left: clamp(0px, 6vw, 96px); color: var(--red); font-style: normal; font-weight: 800; }
.hero-lead { max-width: 580px; margin: 38px 0 0; font-size: clamp(1rem, 1.35vw, 1.2rem); color: #dedede; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 0 24px; font-weight: 800; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid transparent; transition: transform .2s, background .2s, color .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #f3343e; }
.button-light { background: var(--white); color: var(--black); }
.text-link { font-size: .9rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.55); padding: 10px 0; }
.hero-index { position: absolute; right: 92px; bottom: 54px; display: grid; text-align: right; }
.hero-index strong { font: 800 4.6rem/.8 var(--display); color: var(--red); }
.hero-index span { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

.facts { background: var(--red); color: white; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts article { min-height: 160px; padding: 30px 40px; display: flex; align-items: center; gap: 24px; border-left: 1px solid rgba(255,255,255,.25); }
.facts article:last-child { border-right: 1px solid rgba(255,255,255,.25); }
.facts strong { font: 800 4.4rem/1 var(--display); }
.facts span { max-width: 220px; font-size: .84rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; }

.path-section { padding-block: 140px; }
.section-heading { display: grid; grid-template-columns: 1fr 3fr; align-items: start; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 76px; }
.section-heading .eyebrow { margin-top: 12px; }
.path-section h2 { margin: 0; font-size: clamp(3.4rem, 7vw, 7rem); line-height: .9; text-align: right; }
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.path-card { min-height: 330px; padding: 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.path-card:last-child { border-right: 1px solid var(--line); }
.path-card > span { color: var(--red); font: 800 2.2rem/1 var(--display); }
.path-card h3 { margin: auto 0 14px; font: 700 2rem/.95 var(--display); text-transform: uppercase; }
.path-card p { margin: 0; color: #b8b9ba; font-size: .92rem; }
.path-card-accent { background: var(--red); }
.path-card-accent > span, .path-card-accent p { color: white; }
.section-action { display: flex; justify-content: flex-end; padding-top: 32px; }

.age-groups { background: var(--paper); color: var(--ink); padding-block: 130px; }
.section-heading-light { border-top-color: rgba(10,12,14,.2); }
.section-heading-light h2 { color: var(--ink); }
.age-stage { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 620px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.13); }
.age-media { position: relative; min-width: 0; background: #111; overflow: hidden; }
.age-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s ease, transform .6s ease; }
.age-media.is-changing img { opacity: .35; transform: scale(1.02); }
.age-media p { position: absolute; left: 18px; bottom: 14px; margin: 0; padding: 6px 9px; background: rgba(0,0,0,.7); color: #ddd; font-size: .68rem; letter-spacing: .03em; }
.age-content { padding: 52px 46px; display: flex; flex-direction: column; align-items: flex-start; }
.age-tabs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #d7d7d4; margin-bottom: auto; }
.age-tab { min-height: 56px; border: 0; border-right: 1px solid #d7d7d4; background: transparent; color: #777; font: 800 1rem/1 var(--display); cursor: pointer; transition: background .2s, color .2s; }
.age-tab:last-child { border-right: 0; }
.age-tab.is-active, .age-tab:hover, .age-tab:focus-visible { background: var(--red); color: white; }
.age-kicker { margin: 52px 0 12px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.age-content h3 { margin: 0 0 18px; font: 800 clamp(2.8rem, 4.4vw, 5rem)/.86 var(--display); text-transform: uppercase; }
.age-content > p:not(.age-kicker) { color: #555; margin: 0 0 26px; }
.age-content [role="tabpanel"] > p:not(.age-kicker) { color: #555; margin: 0 0 26px; }
.age-content small { display: block; margin-top: 26px; color: #777; font-size: .72rem; line-height: 1.5; }

.coach { background: #111316; padding-block: 140px; overflow: hidden; }
.coach-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9vw; align-items: center; }
.coach-number { position: relative; aspect-ratio: 1; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.coach-number::before, .coach-number::after { content: ""; position: absolute; background: var(--red); }
.coach-number::before { width: 1px; height: 130%; }
.coach-number::after { height: 1px; width: 130%; }
.coach-number span { position: relative; z-index: 1; font: 900 clamp(12rem, 25vw, 25rem)/.68 var(--display); color: white; text-shadow: 18px 18px 0 var(--red); }
.coach-number strong { position: relative; z-index: 2; margin-top: 28px; font: 800 2rem/1 var(--display); letter-spacing: .35em; }
.coach-copy h2 { margin: 0; font: 800 clamp(4rem, 8vw, 8rem)/.78 var(--display); text-transform: uppercase; }
.coach-lead { max-width: 650px; margin: 34px 0; color: #e1e1e1; font-size: 1.18rem; }
.coach-facts { border-top: 1px solid var(--line); }
.coach-facts p { display: grid; grid-template-columns: 44px 1fr; gap: 18px; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); color: #b9babb; font-size: .92rem; }
.coach-facts span { color: var(--red); font-weight: 800; }
.source-link { display: inline-block; margin-top: 26px; color: white; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--red); padding-bottom: 4px; }

.statement { position: relative; min-height: 760px; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.statement-image { position: absolute; z-index: -2; inset: 0; background: var(--statement-image, url('assets/spartacus-tkd-11-14.webp')) center / cover no-repeat; }
.statement::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,6,7,.98) 0%, rgba(5,6,7,.76) 44%, rgba(5,6,7,.1) 82%); }
.statement-copy { padding-block: 110px; }
.statement-copy > * { max-width: 650px; }
.statement h2 { margin: 0; font-size: clamp(4rem, 8vw, 8rem); line-height: .84; }
.statement p:not(.eyebrow) { max-width: 560px; margin: 30px 0 36px; font-size: 1.08rem; color: #d9d9d9; }

.principles { padding-block: 54px 130px; }
.principle-word { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); color: #f0f0ef; font: 700 clamp(2.8rem, 7vw, 7rem)/.95 var(--display); text-transform: uppercase; transition: padding-left .25s, color .25s; }
.principle-word::before { content: ""; display: inline-block; width: 0; height: .12em; margin-right: 0; vertical-align: .25em; background: var(--red); transition: width .25s, margin-right .25s; }
.principle-word:hover { padding-left: 10px; color: white; }
.principle-word:hover::before { width: .6em; margin-right: .2em; }

/* Editorial pages */
.page-hero { position: relative; min-height: 900px; padding-top: 82px; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.page-hero-media { position: absolute; z-index: -2; inset: 0; background: var(--page-hero-image, url('assets/spartacus-tkd-07-10.webp')) center / cover no-repeat; }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5,6,7,.98), rgba(5,6,7,.8) 46%, rgba(5,6,7,.16)), linear-gradient(0deg, rgba(5,6,7,.92), transparent 48%); }
.page-hero-copy { padding-block: 150px 100px; }
.page-hero h1, .belt-hero h1 { max-width: 1120px; margin: 0; font: 800 clamp(4.6rem, 9vw, 9rem)/.82 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.page-hero h1 em, .belt-hero h1 em { color: var(--red); font-style: normal; }
.page-hero-copy > p:last-child { max-width: 660px; margin: 38px 0 0; color: #ddd; font-size: 1.08rem; }

.why-intro { padding-block: 130px; }
.why-intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 9vw; }
.why-intro h2, .evidence h2, .belt-source h2 { margin: 0; font: 800 clamp(3.5rem, 6vw, 6.5rem)/.88 var(--display); text-transform: uppercase; }
.why-intro-grid > div { color: #b9babb; font-size: 1.04rem; }
.why-intro-grid p:first-child { margin-top: 0; }

.benefits { background: var(--paper); color: var(--ink); padding-block: 130px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #c8c8c4; border-left: 1px solid #c8c8c4; }
.benefit-card { min-height: 330px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid #c8c8c4; border-bottom: 1px solid #c8c8c4; }
.benefit-card span { color: var(--red); font: 800 2.1rem/1 var(--display); }
.benefit-card h3 { margin: auto 0 12px; font: 800 2.1rem/1 var(--display); text-transform: uppercase; }
.benefit-card p { margin: 0; color: #5c5d5f; font-size: .9rem; }

.tenets { padding-block: 140px; }
.tenets > .shell > h2 { max-width: 950px; margin: 0 0 80px; font: 800 clamp(4rem, 8vw, 8rem)/.85 var(--display); text-transform: uppercase; }
.tenet-list article { display: grid; grid-template-columns: 80px minmax(260px, .8fr) 1.2fr; gap: 28px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.tenet-list article:last-child { border-bottom: 1px solid var(--line); }
.tenet-list b { color: var(--red); font: 800 1.6rem/1 var(--display); }
.tenet-list h3 { margin: 0; font: 800 clamp(2.4rem, 4vw, 4rem)/1 var(--display); text-transform: uppercase; }
.tenet-list p { margin: 0; color: #b7b8b9; }

.evidence { padding-block: 130px; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; border-top: 1px solid var(--line); }
.evidence-copy { color: #b9babb; }
.evidence-links { display: grid; margin-top: 30px; }
.evidence-links a { padding: 14px 0; color: white; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--line); }
.evidence-links a:last-child { border-bottom: 1px solid var(--line); }
.next-step { min-height: 600px; padding-block: 110px; display: grid; align-items: center; background: var(--red); }
.next-step h2 { margin: 0 0 40px; font: 800 clamp(4.5rem, 9vw, 9rem)/.82 var(--display); text-transform: uppercase; }
.next-step .eyebrow { color: white; }

/* Belts */
.belt-hero { position: relative; min-height: 870px; padding-block: 230px 110px; overflow: hidden; }
.belt-hero .shell { position: relative; z-index: 2; }
.belt-hero h1 { max-width: 1000px; }
.belt-hero .shell > p:last-child { max-width: 650px; margin: 38px 0 0; color: #b9babb; }
.belt-ribbons { position: absolute; inset: auto 0 0; height: 180px; display: grid; grid-template-columns: repeat(6, 1fr); transform: skewY(-3deg) translateY(50px); transform-origin: left; }
.belt-ribbons i { display: block; border-right: 1px solid rgba(255,255,255,.28); }
.belt-ribbons .white { background: #eee; }.belt-ribbons .yellow { background: #f2c400; }.belt-ribbons .green { background: #1f7d43; }.belt-ribbons .blue { background: #2465b7; }.belt-ribbons .red { background: #d91f2b; }.belt-ribbons .black { background: #020203; }

.belt-explorer { padding-block: 130px; }
.belt-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: start; }
.belt-scale { border-top: 1px solid var(--line); }
.belt-step { width: 100%; display: grid; grid-template-columns: 110px 80px 1fr; gap: 20px; align-items: center; min-height: 72px; padding: 0 18px 0 0; background: transparent; color: #aaa; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; transition: background .2s, color .2s, padding .2s; }
.belt-step:hover, .belt-step:focus-visible, .belt-step.is-active { background: rgba(255,255,255,.06); color: white; padding-left: 10px; }
.belt-step b { font-size: .76rem; letter-spacing: .08em; }
.belt-step em { font-style: normal; font-weight: 700; }
.belt-swatch { display: block; height: 24px; border: 1px solid rgba(255,255,255,.25); }
.belt-white { background: #eee; }.belt-white-yellow { background: linear-gradient(90deg,#eee 0 78%,#f2c400 78%); }.belt-yellow { background:#f2c400; }.belt-yellow-green { background:linear-gradient(90deg,#f2c400 0 78%,#1f7d43 78%); }.belt-green { background:#1f7d43; }.belt-green-blue { background:linear-gradient(90deg,#1f7d43 0 78%,#2465b7 78%); }.belt-blue { background:#2465b7; }.belt-blue-red { background:linear-gradient(90deg,#2465b7 0 78%,#d91f2b 78%); }.belt-red { background:#d91f2b; }.belt-red-black { background:linear-gradient(90deg,#d91f2b 0 78%,#050506 78%); }.belt-black { background:#050506; }
.belt-detail { position: sticky; top: 120px; min-height: 540px; padding: 42px; background: var(--paper); color: var(--ink); overflow: hidden; }
.detail-count { position: absolute; right: -8px; top: -44px; color: rgba(10,12,14,.06); font: 900 17rem/1 var(--display); }
.belt-detail .eyebrow { position: relative; margin-top: 160px; }
.belt-detail h3 { position: relative; margin: 0; font: 800 4rem/.88 var(--display); text-transform: uppercase; }
.belt-detail > p:not(.eyebrow) { position: relative; color: #555; }
.detail-focus { position: relative; display: grid; gap: 6px; margin-top: 34px; padding-top: 18px; border-top: 2px solid var(--red); }
.detail-focus span { color: #777; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.belt-detail small { position: relative; display: block; margin-top: 50px; color: #777; }

.promotion { background: var(--paper); color: var(--ink); padding-block: 130px; }
.promotion-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #c8c8c4; border-left: 1px solid #c8c8c4; }
.promotion-steps article { min-height: 300px; padding: 28px; display: flex; flex-direction: column; border-right: 1px solid #c8c8c4; border-bottom: 1px solid #c8c8c4; }
.promotion-steps span { color: var(--red); font: 800 2rem/1 var(--display); }
.promotion-steps h3 { margin: auto 0 14px; font: 800 2rem/1 var(--display); text-transform: uppercase; }
.promotion-steps p { margin: 0; color: #5c5d5f; font-size: .9rem; }
.promotion-steps .promotion-final { background: var(--red); color: white; }
.promotion-steps .promotion-final span, .promotion-steps .promotion-final p { color: white; }

.black-belt { padding-block: 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; }
.black-mark { aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 1px solid var(--line); box-shadow: inset 0 0 0 24px #08090b, inset 0 0 0 26px var(--red); }
.black-mark strong { font: 900 13rem/.8 var(--display); }.black-mark span { font: 800 1.2rem/1 var(--display); letter-spacing: .45em; }
.black-copy h2 { margin: 0; font: 800 clamp(4rem, 7vw, 7rem)/.86 var(--display); text-transform: uppercase; }
.black-copy p { color: #b9babb; }
.black-copy strong { color: white; }
.belt-source { background: #15171a; padding-block: 110px; }
.belt-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; }
.belt-source-grid > div:last-child { color: #b9babb; }
.belt-source a { display: block; padding: 14px 0; color: white; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-top: 1px solid var(--line); }
.belt-source a:last-child { border-bottom: 1px solid var(--line); }

.site-footer { position: relative; overflow: hidden; background: var(--red); color: white; }
.site-footer::before { content: ""; position: absolute; width: 620px; height: 620px; right: -250px; top: -340px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.035), 0 0 0 180px rgba(255,255,255,.025); pointer-events: none; }
.footer-shell { position: relative; padding-block: 92px 34px; }
.footer-intro { display: grid; grid-template-columns: 1.4fr .6fr; gap: 72px; align-items: end; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.35); }
.site-footer .eyebrow { color: white; margin-bottom: 18px; }
.site-footer h2 { margin: 0; font-size: clamp(4rem, 7vw, 7rem); line-height: .82; }
.footer-lead { max-width: 450px; margin: 0 0 4px; color: rgba(255,255,255,.88); font-size: 1.03rem; }
.footer-main { display: grid; grid-template-columns: minmax(310px,.82fr) minmax(460px,1.18fr); gap: 28px; margin-top: 32px; }
.footer-contact-list { display: grid; gap: 12px; }
.footer-contact-card { min-height: 104px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid rgba(255,255,255,.35); background: rgba(115,0,8,.12); transition: transform .2s, background .2s, color .2s, border-color .2s; }
.footer-contact-card:hover, .footer-contact-card:focus-visible { transform: translateX(6px); background: white; color: var(--red-dark); border-color: white; }
.footer-contact-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.footer-contact-card small { font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; opacity: .75; }
.footer-contact-card strong { overflow-wrap: anywhere; font-size: 1rem; }
.footer-contact-card i { font-style: normal; font-size: 1.35rem; }
.footer-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; }
.footer-contact-card:hover .footer-icon, .footer-contact-card:focus-visible .footer-icon { border-color: rgba(185,24,34,.35); }
.footer-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-map { position: relative; min-height: 336px; overflow: hidden; border: 1px solid rgba(255,255,255,.38); background: #161719; }
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.08); }
.footer-map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.footer-map-link { position: absolute; z-index: 2; right: 14px; bottom: 14px; display: inline-flex; gap: 18px; align-items: center; padding: 13px 16px; background: var(--black); color: white; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: background .2s, transform .2s; }
.footer-map-link:hover, .footer-map-link:focus-visible { background: var(--red); transform: translateY(-2px); }
.footer-bottom { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; margin-top: 30px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.35); }
.footer-signature { display: grid; margin: 0; line-height: 1.25; }
.footer-signature strong { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.footer-signature span, .footer-legal { color: rgba(255,255,255,.7); font-size: .72rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 14px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: .74rem; font-weight: 800; text-transform: uppercase; transition: background .2s, color .2s, transform .2s; }
.footer-social a:hover, .footer-social a:focus-visible { background: white; color: var(--red-dark); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-social a:first-child svg { fill: currentColor; stroke: none; }
.footer-social .is-filled { fill: currentColor; stroke: none; }
.footer-legal { margin: 0; white-space: nowrap; }

/* Dynamic WordPress sections */
.schedule-section { padding-block: 140px; }
.schedule-section h2, .news-section h2 { margin: 0; font: 800 clamp(3.4rem, 7vw, 7rem)/.9 var(--display); text-align: right; text-transform: uppercase; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.schedule-card { min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.schedule-card p { margin: 0; color: var(--red); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.schedule-card strong { margin-top: auto; font: 800 clamp(2.5rem, 4vw, 4.5rem)/1 var(--display); }
.schedule-card h3 { margin: 8px 0 0; font: 700 1.5rem/1 var(--display); text-transform: uppercase; }
.schedule-card small { margin-top: 14px; color: var(--muted); }
.schedule-note { color: var(--muted); font-size: .78rem; }
.empty-state { padding: 42px; border: 1px solid var(--line); }
.empty-state p { max-width: 700px; margin: 0 0 26px; color: #c5c6c7; }

.news-section { padding-block: 130px; background: var(--paper); color: var(--ink); }
.news-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { min-width: 0; }
.news-image { aspect-ratio: 3 / 2; display: grid; place-items: center; overflow: hidden; background: #15171a; color: var(--red); font: 800 2rem/1 var(--display); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-image img { transform: scale(1.025); }
.news-card > p { margin: 18px 0 8px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.news-card h2, .news-card h3 { margin: 0; font: 800 2rem/1 var(--display); text-transform: uppercase; }
.news-card > div, .news-card > p + p { color: #5b5c5e; }
.news-section .empty-state { grid-column: 1 / -1; border-color: #c8c8c4; }
.news-section .empty-state p { color: #5b5c5e; }

.editor-note { margin-top: 28px; padding: 12px 14px; background: #fff4c7; color: #302700; border-left: 4px solid #dba617; font-size: .78rem; }
.site-footer > .editor-note { margin-bottom: 0; }
.content-page { min-height: 70vh; padding-block: 190px 100px; }
.content-header { max-width: 1000px; margin-bottom: 70px; }
.content-header h1, .error-page h1 { margin: 0; font: 800 clamp(4rem, 8vw, 8rem)/.86 var(--display); text-transform: uppercase; }
.single-entry { max-width: 980px; margin-inline: auto; }
.single-hero { margin-bottom: 54px; }
.single-hero img { display: block; width: 100%; height: auto; }
.entry-content { max-width: 820px; padding-block: 70px; font-size: 1.05rem; }
.entry-content a { color: #ff6c73; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; }
.pagination { margin-top: 50px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { padding: 10px 14px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--red); }

body.admin-bar .site-header { top: 32px; }

@media (max-width: 1120px) {
  .site-header { height: 82px; padding-inline: 16px; background: rgba(8,9,11,.94); }
  .brand, .site-header.is-scrolled .brand { width: 166px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 82px 0 auto 0; display: none; max-height: calc(100vh - 82px); overflow-y: auto; padding: 16px 20px 26px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8,9,11,.98); border-bottom: 1px solid var(--line); }
  body.admin-bar .main-nav { top: 114px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes settle { to { transform: scale(1); } }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 760px); }
  .site-header { height: 82px; padding-inline: 16px; background: rgba(8,9,11,.9); }
  .brand, .site-header.is-scrolled .brand { width: 166px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 82px 0 auto 0; display: none; padding: 26px 20px 32px; flex-direction: column; align-items: stretch; gap: 0; background: rgba(8,9,11,.98); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .hero-rail, .hero-index { display: none; }
  .hero-image { background-position: 56% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,6,7,.97) 0%, rgba(5,6,7,.76) 70%, rgba(5,6,7,.25) 100%), linear-gradient(0deg, rgba(5,6,7,.85), transparent 50%); }
  .hero-content { padding-block: 170px 70px; }
  .hero h1 { font-size: clamp(4rem, 17vw, 7rem); }
  .hero h1 em { margin-left: 0; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts article { min-height: 110px; border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
  .facts strong { font-size: 3.4rem; }
  .path-section { padding-block: 90px; }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 44px; }
  .path-section h2 { text-align: left; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .path-card:nth-child(2) { border-right: 1px solid var(--line); }
  .path-card { min-height: 290px; border-bottom: 1px solid var(--line); }
  .statement { min-height: 650px; }
  .statement-image { background-position: 42% center; }
  .statement::after { background: linear-gradient(90deg, rgba(5,6,7,.96), rgba(5,6,7,.62) 80%, rgba(5,6,7,.25)); }
  .footer-intro, .footer-main { grid-template-columns: 1fr; }
  .footer-intro { gap: 30px; }
  .footer-map { min-height: 420px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .footer-legal { grid-column: 1 / -1; }
  .age-stage { grid-template-columns: 1fr; }
  .age-media { min-height: 430px; }
  .age-content { min-height: 520px; }
  .coach-grid, .why-intro-grid, .evidence, .black-belt, .belt-source-grid { grid-template-columns: 1fr; }
  .coach-number { max-width: 620px; width: 88%; margin-inline: auto; }
  .benefit-grid, .promotion-steps { grid-template-columns: 1fr 1fr; }
  .tenet-list article { grid-template-columns: 60px 1fr; }
  .tenet-list p { grid-column: 2; }
  .belt-layout { grid-template-columns: 1fr; }
  .belt-detail { position: relative; top: auto; min-height: 480px; }
  .page-hero { min-height: 760px; }
  .schedule-grid, .news-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .schedule-section h2, .news-section h2 { text-align: left; }
}

@media (max-width: 560px) {
  .hero-content { padding-top: 150px; }
  .hero h1 { font-size: clamp(3.65rem, 18vw, 5.4rem); line-height: .85; }
  .hero-lead { max-width: 92%; margin-top: 28px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .text-link { text-align: center; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card, .path-card:nth-child(2) { min-height: 250px; border-right: 1px solid var(--line); }
  .section-heading { margin-bottom: 34px; }
  .path-section h2 { font-size: 3.5rem; }
  .statement-copy { padding-block: 80px; }
  .statement h2 { font-size: 4.2rem; }
  .principle-word { font-size: 2.8rem; }
  .footer-shell { padding-block: 72px 28px; }
  .site-footer h2 { font-size: 4.2rem; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-map { min-height: 330px; }
  .footer-bottom { grid-template-columns: 1fr; align-items: start; }
  .footer-social { flex-wrap: wrap; }
  .footer-legal { grid-column: auto; }
  .age-groups, .coach, .benefits, .tenets, .promotion, .belt-explorer { padding-block: 90px; }
  .age-media { min-height: 300px; }
  .age-content { padding: 34px 24px; min-height: 540px; }
  .age-tabs { grid-template-columns: 1fr 1fr; }
  .age-tab:nth-child(2) { border-right: 0; }
  .age-tab:nth-child(-n+2) { border-bottom: 1px solid #d7d7d4; }
  .coach-number span { font-size: 11rem; }
  .coach-number strong { margin-top: 16px; }
  .benefit-grid, .promotion-steps { grid-template-columns: 1fr; }
  .benefit-card, .promotion-steps article { min-height: 250px; }
  .tenet-list article { grid-template-columns: 42px 1fr; gap: 14px; }
  .tenet-list h3 { font-size: 2.5rem; }
  .page-hero h1, .belt-hero h1 { font-size: 4.1rem; }
  .page-hero-copy { padding-block: 140px 70px; }
  .why-intro, .evidence, .black-belt { padding-block: 90px; }
  .belt-hero { min-height: 760px; padding-block: 190px 100px; }
  .belt-ribbons { height: 120px; }
  .belt-step { grid-template-columns: 80px 66px 1fr; gap: 12px; }
  .belt-detail { padding: 30px 24px; }
  .detail-count { font-size: 13rem; }
  .belt-detail h3 { font-size: 3.4rem; }
  .black-mark strong { font-size: 9rem; }
  .schedule-grid, .news-grid, .archive-grid { grid-template-columns: 1fr; }
  .schedule-section, .news-section { padding-block: 90px; }
  .empty-state { padding: 28px 22px; }
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .main-nav { top: 128px; }
}

@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; }
}


/* Keep the age-groups heading consistent with the site's display typography. */
.age-groups .section-heading h2 {
  margin: 0;
  font: 800 clamp(3.4rem, 7vw, 7rem)/.9 var(--display);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

@media (max-width: 900px) {
  .age-groups .section-heading h2 { text-align: left; }
}
