/* "Dojo" — modelled on Infinite Jiu Jitsu CT's site. Navy, bold capitalised Montserrat headings,
   Source Sans body, pill buttons, photos under a dark shade, light grey bands. */

:root {
  --navy: #0a2240;
  --ink: #0a213e;
  --night: #050f1d;
  --tint: #e8ecf0;
  --line: #c9d1da;
  --muted: #4a5a70;
  --white: #fff;
  --wrap: 1240px;
  --head: 'Montserrat', 'Arial Black', system-ui, sans-serif;
  --body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(32px, 4.2vw, 48px); }
h1.display { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 50; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 860px; }
.section { padding: 96px 0; }
.section.tint, .tint { background: var(--tint); }
.center { text-align: center; }
.section-intro { max-width: 760px; margin: 0 auto 56px; }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 34px; border-radius: 999px; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; border: 2px solid var(--navy); transition: background .15s, color .15s, transform .15s; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: #12345f; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button-row.center { justify-content: center; }
:focus-visible { outline: 3px solid #5b8ad6; outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 1px 0 rgba(10, 34, 64, .08); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; max-width: 1440px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { max-height: 56px; width: auto; }
.logo-text { font: 800 20px/1.1 var(--head); text-transform: uppercase; color: var(--navy); }
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav > ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a, .site-nav button { font: 400 15px/1 var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.site-nav a:hover, .site-nav button:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.has-menu { position: relative; }
.has-menu > button::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.has-menu > ul { display: none; position: absolute; top: 100%; left: -16px; min-width: 210px; list-style: none; margin: 0; padding: 10px 0; background: #fff; border-radius: 8px; box-shadow: 0 12px 32px rgba(10, 34, 64, .16); }
.has-menu:hover > ul, .has-menu:focus-within > ul, .has-menu.open > ul { display: block; }
.has-menu > ul a { display: block; padding: 9px 18px; }
.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.login-link { font: 600 14px/1 var(--body); color: var(--muted); text-decoration: none; }
.login-link:hover { color: var(--navy); text-decoration: underline; }
.nav-login, .nav-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

/* Photo bands: hero, call to action */
.photo-band { position: relative; color: #fff; overflow: hidden; background: var(--night); }
.photo-band.no-photo { background: radial-gradient(1200px 500px at 85% 20%, #173a66 0%, var(--navy) 45%, var(--night) 100%); }
.photo-band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 15, 29, .72) 0%, rgba(5, 15, 29, .45) 60%, rgba(5, 15, 29, .3) 100%); }
.photo-band.no-photo .photo-band-shade { background: none; }
.photo-band-body { position: relative; padding-top: 110px; padding-bottom: 110px; }
.photo-band h1, .photo-band h2 { color: #fff; max-width: 760px; }
.photo-band .lede { max-width: 640px; font-size: 16px; }
.eyebrow { font: 700 clamp(15px, 1.5vw, 18px)/1.3 var(--head); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 14px; }
.eyebrow.dark { color: var(--ink); }
.subhead { font: 700 14px/1.3 var(--head); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 16px; }
.page-hero .photo-band-body { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.home-hero .photo-band-body { min-height: 460px; }
.cta-band .photo-band-body { min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 56px; }
.highlight svg { width: 40px; height: 40px; fill: var(--navy); margin: 0 auto 18px; display: block; }
.highlight h3 { font-size: clamp(20px, 2vw, 28px); }
.highlight p { font-size: 15px; max-width: 380px; margin: 0 auto; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 1.1fr 60px 2fr; gap: 16px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--muted); }
.steps h3 { font-size: 20px; margin: 0; }
.steps p { margin: 0; font-size: 15px; max-width: 360px; }
.arrow { font-size: 26px; line-height: 1; color: var(--ink); }

/* Program cards */
.programs-split { grid-template-columns: 1fr 2.2fr; align-items: center; }
.program-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.program-card { position: relative; min-height: 216px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; overflow: hidden; background: var(--navy); }
.program-card.no-photo { background: linear-gradient(135deg, #173a66, var(--night)); }
.program-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.program-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 15, 29, .85) 0%, rgba(5, 15, 29, .35) 70%); }
.program-card:hover img { transform: scale(1.04); }
.program-card-body { position: relative; z-index: 1; padding: 22px 20px; }
.program-card h3 { color: #fff; font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 6px; }
.program-card-body > span { font-size: 14px; display: block; }

/* Contact block: form + map */
.contact-block { display: grid; grid-template-columns: 1fr 1fr; }
.contact-form-side { padding: 72px 8% 72px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
.contact-map-side { min-height: 520px; background: #dfe5ec; }
.contact-map-side iframe, .map-placeholder { width: 100%; height: 100%; min-height: 520px; border: 0; display: block; }

/* Forms: underlined fields, like the original */
.site-form { display: grid; gap: 18px; max-width: 620px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-form label { display: grid; gap: 6px; font-size: 14px; }
.site-form input, .site-form textarea, .site-form select { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 8px 2px; border-radius: 0; }
.site-form select { border: 1.5px solid var(--ink); border-radius: 6px; padding: 9px 10px; background: #fff; }
.site-form textarea { resize: vertical; }
.site-form input:focus, .site-form textarea:focus, .site-form select:focus { outline: none; border-color: #2f6fb8; }
.site-form .btn { justify-self: start; }
.form-note { background: #fff8e1; border: 1px solid #f0d68a; color: #6b5200; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.site-footer h3 { font-size: 18px; margin-bottom: 14px; }
.site-footer p, .site-footer dl { font-size: 14px; margin: 0 0 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.logo-footer img { max-height: 84px; }
.socials { display: flex; gap: 14px; }
.socials svg { width: 20px; height: 20px; fill: var(--ink); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; }
.hours dt, .hours dd { margin: 0; }
.footer-bottom { background: #f3f4f6; font-size: 12px; color: var(--muted); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }

/* Program page */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.split-hero-text { padding: 64px 48px 64px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); display: flex; flex-direction: column; justify-content: center; }
.split-hero-text h1 { font-size: clamp(34px, 4vw, 48px); }
.split-hero-photo { position: relative; background: var(--navy); }
.split-hero-photo.no-photo { background: radial-gradient(800px 400px at 70% 30%, #173a66, var(--night)); }
.split-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; gap: 56px; margin: 12px 0 28px; }
.facts dt { font-weight: 600; font-size: 14px; }
.facts dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.program-description { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.feature { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 15px; margin: 0; }
.schedule-split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 64px; align-items: start; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.plan { position: relative; border: 1.5px solid var(--ink); border-radius: 4px; padding: 26px 22px 22px; display: flex; flex-direction: column; }
.plan h3 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 6px; }
.plan-desc { font-size: 13px; color: var(--muted); }
.plan-price { margin: 4px 0 14px; }
.plan-price strong { font: 700 22px/1 var(--head); }
.plan-price span { font-size: 12px; color: var(--muted); }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; font-size: 13px; }
.ticks li { padding: 4px 0 4px 22px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.plan-wide { margin-top: 8px; }
.plan-badge { position: absolute; top: -12px; left: 18px; background: #8a8f96; color: #fff; font: 700 10px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 3px; }
.plan-label { font-size: 12px; margin: 0 0 4px; }

/* FAQs */
.faqs details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faqs summary { cursor: pointer; font: 700 17px/1.3 var(--head); text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faqs summary::after { content: '+'; font-size: 24px; line-height: 1; }
.faqs details[open] summary::after { content: '–'; }
.faqs details p { margin: 12px 0 0; }

/* Get started: photo left, forms right */
.get-started { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 76px); }
.get-started-photo { position: relative; color: #fff; background: var(--night); display: flex; align-items: flex-start; }
.get-started-photo.no-photo { background: radial-gradient(800px 500px at 30% 20%, #173a66, var(--night)); }
.get-started-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.get-started-photo-text { position: relative; padding: 80px 48px 48px max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
.get-started-photo-text > * { max-width: 560px; }
.get-started-photo h1 { color: #fff; }
.get-started-forms { padding: 64px max(32px, 6vw) 72px 64px; }
.get-started-forms h2 { font-size: clamp(26px, 2.6vw, 34px); }
.get-started-forms .questions { margin-top: 48px; }

/* Week grid — like the calendar on the site it replaces */
.wg { text-align: left; }
.wg-toolbar { display: flex; justify-content: flex-start; margin-bottom: 14px; }
.wg-toolbar select { font: 400 13px var(--body); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fff; color: var(--ink); }
.wg-grid { --hour: 58px; display: grid; grid-template-columns: 48px repeat(var(--wg-days), 1fr); position: relative; border: 1px solid #eadfd3; border-radius: 4px; background: #fff; }
.wg.compact .wg-grid { --hour: 48px; }
.wg-axis { position: relative; margin-top: 30px; height: calc(var(--wg-hours) * var(--hour)); }
.wg-axis span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 10px; color: #8a7a6a; white-space: nowrap; }
.wg-day { border-left: 1px solid #eadfd3; min-width: 0; }
.wg-day-name { height: 30px; display: flex; align-items: center; justify-content: center; background: #f4ede6; font-size: 12px; color: var(--ink); border-bottom: 1px solid #eadfd3; }
.wg-day-body { position: relative; height: calc(var(--wg-hours) * var(--hour)); }
.wg-line { position: absolute; left: 0; right: 0; border-top: 1px solid #f1e9e1; }
.wg-block { position: absolute; padding: 3px 6px; border-radius: 5px; background: #a9cde0; border-left: 3px solid #5c8fb0; overflow: hidden; font-size: 11px; line-height: 1.25; color: #26384d; box-shadow: 0 0 0 1px #fff; }
.wg-block strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-block span { opacity: .8; }
.wg-block[hidden], .wg-list [hidden] { display: none; }
.wg-list { display: none; list-style: none; margin: 0; padding: 0; }
.wg-list h4 { font-size: 15px; margin: 18px 0 8px; }
.wg-list p { margin: 0 0 6px; padding: 6px 10px; border-left: 3px solid #5c8fb0; background: #f6f8fa; font-size: 14px; }
.wg-list p span { font-weight: 600; margin-right: 6px; }
.wg-empty { color: var(--muted); }

/* Tablet and below */
@media (max-width: 1000px) {
  .menu-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; box-shadow: 0 12px 24px rgba(10, 34, 64, .12); }
  .menu-open .site-nav { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .site-nav > ul > li { border-bottom: 1px solid var(--tint); }
  .site-nav a, .site-nav button { display: block; width: 100%; text-align: left; padding: 14px 0; }
  .has-menu > ul { position: static; box-shadow: none; padding: 0 0 8px 16px; }
  .has-menu:hover > ul { display: none; }
  .has-menu.open > ul { display: block; }
  .nav-login { display: block; }
  .login-link { display: none; }
  .header-actions { margin-left: 0; }
  .split, .programs-split, .program-description, .schedule-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-block, .split-hero, .get-started { grid-template-columns: 1fr; }
  .contact-form-side, .split-hero-text, .get-started-photo-text, .get-started-forms { padding: 56px 24px; }
  .split-hero-photo { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .header-row { min-height: 64px; gap: 12px; }
  .site-nav { top: 64px; }
  .logo img { max-height: 44px; }
  .header-actions { display: none; }
  .nav-cta { display: block; padding: 16px 0 4px; border-bottom: 0 !important; }
  .site-nav .nav-cta a { display: inline-flex; width: 100%; color: #fff; text-decoration: none; padding: 12px 20px; }
  .logo-text { font-size: 18px; }
  .highlights, .program-cards, .features, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr 32px; }
  .steps li p { grid-column: 1 / -1; }
  .page-hero .photo-band-body, .home-hero .photo-band-body { min-height: 380px; padding-top: 72px; padding-bottom: 72px; }
  .contact-map-side, .contact-map-side iframe { min-height: 320px; }
  .facts { gap: 28px; flex-wrap: wrap; }
  .wg-grid, .wg-toolbar { display: none; }
  .wg-list { display: block; }
  .footer-brand { align-items: flex-start; }
  .footer-bottom .wrap { flex-direction: column; gap: 4px; }
}
