:root {
  --ink: #191c20;
  --accent: #ab2726;
  --signal: #ffac82;
  --paper: #faf8f3;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
}
body[data-academy="kungfu"] {
  --ink: #192923;
  --accent: #315f4a;
  --signal: #e4c891;
  --display: 'Cinzel', Georgia, serif;
}
body[data-academy="bravefit"] .font-display { font-family: var(--display); letter-spacing: .005em; }
html { scroll-padding-top: 88px; }
:focus-visible { outline: 3px solid #2170ba; outline-offset: 3px; }
.academy-hero { background: var(--ink); color: white; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.hero-copy { align-self: center; padding: clamp(40px,5.4vw,88px) clamp(22px,4vw,68px) clamp(40px,5.4vw,88px) max(24px,calc((100vw - 1216px)/2)); }
.hero-location { color: var(--signal); font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.academy-hero h1 { font-family: var(--display); font-size: clamp(4.4rem,8vw,8rem); line-height: .91; letter-spacing: -.025em; margin: 20px 0; text-transform: uppercase; font-weight: 800; }
body[data-academy="kungfu"] .academy-hero h1 { font-size: clamp(3.25rem,5.7vw,6.6rem); text-transform: none; font-weight: 600; line-height: 1.06; }
.hero-intro { max-width: 45ch; color: #e4e6e3; line-height: 1.65; font-size: clamp(1rem,1.2vw,1.15rem); }
.hero-picture { position: relative; overflow: hidden; min-height: 100%; }
.hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.hero-links a { display: inline-flex; min-height: 46px; gap: 14px; align-items: center; font-size: .9rem; font-weight: 700; }
.hero-primary { background: var(--signal); color: var(--ink); border-radius: 4px; padding: 0 18px; }
.hero-primary:hover { background: white; }
.hero-secondary { color: white; text-decoration: underline; text-underline-offset: 5px; }
.section-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: clamp(14px,4vw,56px); padding: 3px 12px; background: var(--ink); color: #f7f6ef; border-top: 1px solid #ffffff30; }
.section-links a { padding: 12px 1px; font-size: .85rem; font-weight: 600; }
.section-links a:hover { color: var(--signal); }
#academy-programs { background: var(--paper); }
.program-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:12px; }
.program-heading h2 { font-family:var(--display); font-size:clamp(2.2rem,4.3vw,3.8rem); font-weight:700; line-height:1.05; letter-spacing:-.025em; }
.program-heading p { color:#515753; font-size:.94rem; }
.class-filters { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
.class-filters button { border:1px solid #c5c2bb; border-radius:24px; min-height:44px; padding:0 16px; font-size:.85rem; font-weight:600; }
.class-filters [aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:white; }
.program-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:14px; }
.program-card { background:white; padding:clamp(18px,2vw,28px); border:1px solid #ddd9cf; border-top:3px solid var(--accent); border-radius:3px; }
.program-card[hidden] { display:none; }
.program-card h3 { font-size:1.4rem; line-height:1.2; }
.program-card button { color:var(--accent); min-height:44px; font-size:.85rem; }
#academy-apply { background:var(--ink); }
#academy-apply input,#academy-apply select,#academy-apply textarea { font-size:1rem; }
#academy-plans h2,#academy-gallery h2,#academy-coaches h2 { line-height:1.15; }
@media(max-width:720px) {
  .academy-hero { grid-template-columns:1fr; }
  .hero-copy { padding:32px 20px 30px; }
  .academy-hero h1 { font-size:clamp(3.6rem,14vw,5.4rem); margin:14px 0; }
  .academy-hero h1 br { display:none; }
  .academy-hero h1 br::after { content:' '; }
  body[data-academy="kungfu"] .academy-hero h1 { font-size:clamp(2.4rem,9vw,3.4rem); }
  .hero-picture { min-height:0; height:clamp(170px,48vw,265px); }
  .hero-links { margin-top:20px; }
  .section-links { column-gap:16px; }
  .section-links a { font-size:.77rem; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
#brand-home-btn { min-width:0; flex-shrink:1; }
#brand-home-btn .leading-tight { min-width:0; }
@media(min-width:768px) and (max-width:1050px) {
  header [aria-label="Academy Switcher"] { display:none; }
  #mobile-menu-btn { display:block; }
  #mobile-menu:not(.hidden) { display:grid; }
}
@media (max-width: 360px) {
  .academy-hero { grid-template-columns: minmax(0, 1fr); }
  .academy-hero h1 { font-size: clamp(3rem, 14vw, 3.6rem); }
}

#whatsapp-send-btn:hover, #whatsapp-send-btn:focus-visible { background-color: #065f46; }
body[data-academy="kungfu"] .text-amber-700 { color: #854d0e; }

#notice-toggle { display:flex; align-items:center; gap:8px; padding:4px 12px 4px 5px; color:#fff; background:#711f23; border-color:#711f23; }
#notice-panel { width:min(350px, calc(100vw - 24px)); padding:0; border-radius:18px; overflow:hidden; }
.notice-icon { flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#fbdfb5; color:#711f23; }
.notice-banner { display:flex; align-items:center; gap:10px; padding:12px 14px; color:#fff; background:#711f23; font-size:13px; font-weight:700; }
.notice-close { margin-left:auto; width:36px; height:36px; border-radius:50%; font-size:23px; }
.notice-close:hover { background:#ffffff20; }
.notice-content { padding:18px; }
.notice-content h2 { font-size:22px; font-weight:750; line-height:1.2; }
.notice-content p { margin:10px 0 16px; color:#44403c; font-size:14px; line-height:1.55; }
.notice-cta { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:9px 12px; background:#711f23; color:white; border-radius:9px; font-size:14px; font-weight:700; }
.notice-cta:hover { background:#55171a; }

.hero-track { position:absolute; inset:0; display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.hero-track::-webkit-scrollbar { display:none; }
.hero-track:focus-visible { outline:3px solid #ffba94; outline-offset:-4px; }
.hero-slide { flex:0 0 100%; position:relative; scroll-snap-align:start; overflow:hidden; }
.hero-caption { position:absolute; left:14px; top:14px; color:#fff; background:#181c21e8; padding:5px 11px; border-radius:20px; font-size:12px; font-weight:700; }
.hero-carousel-controls { position:absolute; bottom:10px; right:12px; display:flex; align-items:center; background:#181c21ed; border:1px solid #ffffff50; border-radius:32px; color:white; }
.hero-carousel-controls > button { width:44px; height:44px; font-size:26px; border-radius:50%; }
.hero-dots { display:flex; align-items:center; }
.hero-dots button { display:grid; place-items:center; width:26px; height:44px; }
.hero-dots button::after { content:''; width:7px; height:7px; border-radius:10px; background:#c7c4c2; }
.hero-dots [aria-current="true"]::after { width:15px; background:#ffba94; }

.section-links { gap:8px; padding:12px max(12px, calc((100% - 1140px)/2)); }
.section-links > a, .section-links > button { flex:none; padding:9px 14px; border-radius:20px; background:#ffffff12; white-space:nowrap; }
.section-links > a:hover, .section-links > button:hover { background:#ffffff25; }
@media(max-width:720px) {
  .section-links { flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; scrollbar-width:thin; }
}
#notice-toggle, #ai-toggle-btn { transition: background-color 180ms, box-shadow 180ms, transform 180ms; }
#notice-toggle:active, #ai-toggle-btn:active { transform:scale(.97); }
.academy-room-loading { position:absolute; z-index:1; top:10px; left:10px; right:10px; padding:10px 14px; border-radius:10px; background:#111827; color:#fff; pointer-events:none; }
@media(prefers-reduced-motion:no-preference) {
  #notice-panel:popover-open, #ai-chat-panel:not(.hidden), #academy-apply:target form, #academy-apply:target #academy-form {
    animation: academy-enter 220ms cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes academy-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
}

.academy-enquiry { display: inline-flex; align-items: center; min-height: 44px; color: #146345; font-weight: 700; text-decoration: underline; }
#academy-form :is(input, select, textarea, button):focus-visible,
#f-receipt :is(a, button):focus-visible,
.academy-enquiry:focus-visible { outline: 2px solid #146345; outline-offset: 3px; }
@media (max-width: 640px) {
  #academy-form :is(input, select, textarea) { font-size: 16px; min-height: 44px; }
  #academy-form button { min-height: 44px; }
  #academy-form, #f-receipt { scroll-margin-bottom: 110px; }
}

#ai-chat-panel:not(.hidden), #ai-messages { background: #fff; opacity: 1; }
#ai-assist-root { z-index: 55; }
.program-card[data-category="Online"] { grid-column: 1 / -1; }
.academy-plan-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 8px 14px; border-radius: 8px; background: #8b2627; color: #fff; font-weight: 700; text-decoration: none; }
.academy-plan-cta:focus-visible { outline: 2px solid #146345; outline-offset: 3px; }
@media (max-width: 600px) {
  html { scroll-padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  #notice-toggle, #ai-toggle-btn { min-height: 44px; padding-inline: 8px; gap: 4px; }
  #ai-toggle-btn [data-lucide] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-fade-up { animation: none; }
}

.academy-guide { margin: 0; background: #faf8f3; color: #192923; font: 1rem/1.65 system-ui, sans-serif; }
.guide-shell { width: min(100% - 32px, 900px); margin-inline: auto; }
.guide-header, .guide-footer { background: #fff; border-block: 1px solid #ddd9cf; }
.guide-bar, .guide-bar nav, .guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.guide-bar { justify-content: space-between; padding-block: 10px; }
.guide-brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 750; }
.guide-brand img { width: 44px; height: 44px; object-fit: contain; }
.academy-guide a { color: #852424; text-underline-offset: 3px; }
.guide-bar a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-skip { position: absolute; left: 12px; top: 8px; background: #fff; padding: 8px; transform: translateY(-160%); }
.guide-skip:focus { transform: none; }
#guide-content { padding-block: clamp(24px, 6vw, 64px); }
#guide-content h1 { font: 700 clamp(2rem, 6vw, 3.6rem)/1.1 Georgia, serif; margin: 0 0 16px; }
#guide-content h2 { margin-top: 26px; }
.guide-photo { display: block; width: min(100%, 640px); height: auto; border-radius: 12px; }
.guide-actions .academy-plan-cta { color: #fff; }
.guide-footer { padding-block: 24px; }
.guide-footer p { margin: 4px 0; }

.hero-specialties { display: block; margin-top: 12px; font: 600 clamp(1rem, 2vw, 1.4rem)/1.3 system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.academy-guide-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 650; text-decoration: underline; }
.guide-details { margin-block: 28px; }
