/* ==========================================================
   Major K-9 — custom design system (no framework)
   Palette: tactical navy + K9 orange + bone cream
   ========================================================== */
:root {
    --navy: #0e1a2b;
    --navy-2: #16263c;
    --navy-3: #1f3350;
    --orange: #f0722b;
    --orange-dark: #d55e1c;
    --cream: #faf6f0;
    --white: #ffffff;
    --ink: #1c2430;
    --muted: #5b6878;
    --line: #e4ddd2;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(14, 26, 43, .12);
    --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 16.5px; }
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); color: #d7dee8; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.kicker { font-family: var(--font-head); text-transform: uppercase; font-weight: 700; letter-spacing: .14em; color: var(--orange); font-size: .95rem; display: block; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section-dark .lead { color: #aab8c9; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 999; }

/* ---- Buttons ---- */
.btn { display: inline-block; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; padding: .8rem 1.7rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; font-size: 1.05rem; transition: all .18s ease; text-decoration: none !important; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-3); }
.btn-outline-light { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.15rem; }

/* ---- Top bar & header ---- */
.topbar { background: var(--navy); color: #b9c5d4; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: .4rem 0; gap: 1rem; }
.topbar-phone { color: var(--orange); font-weight: 600; }

.site-header { background: var(--white); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(14,26,43,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .65rem; text-decoration: none !important; }
.logo-mark { background: var(--navy); color: var(--orange); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; padding: .55rem .6rem; border-radius: 8px; letter-spacing: .03em; }
.logo-text { font-family: var(--font-head); font-size: 1.45rem; font-weight: 600; color: var(--navy); line-height: 1; letter-spacing: .04em; }
.logo-text strong { color: var(--orange); }
.logo-text small { display: block; font-family: var(--font-body); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 1.35rem; }
.main-nav > ul > li > a { font-weight: 600; color: var(--navy); font-size: .95rem; text-decoration: none !important; }
.main-nav > ul > li > a:hover { color: var(--orange-dark); }
.caret { font-size: .7rem; }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 230px; box-shadow: var(--shadow); border-radius: var(--radius); padding: .5rem 0; display: none; flex-direction: column; gap: 0; }
@media (min-width: 961px) {
    .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: flex; }
}
.dropdown li { list-style: none; }
.has-subdropdown { position: relative; }
.has-subdropdown > a { display: flex !important; justify-content: space-between; align-items: center; gap: .6rem; }
.subdropdown { list-style: none; background: var(--white); display: none; flex-direction: column; padding: .4rem 0; }
@media (min-width: 961px) {
    .subdropdown { position: absolute; top: 0; left: 100%; min-width: 200px; box-shadow: var(--shadow); border-radius: var(--radius); max-height: 320px; overflow-y: auto; }
    .has-subdropdown:hover > .subdropdown, .has-subdropdown:focus-within > .subdropdown { display: flex; }
}
.subdropdown a { font-size: .88rem; padding: .4rem 1.1rem; }
.dropdown a { display: block; padding: .5rem 1.1rem; color: var(--ink); font-size: .92rem; text-decoration: none !important; }
.dropdown a:hover { background: var(--cream); color: var(--orange-dark); }
.nav-portal { color: var(--muted) !important; }
.nav-cta { font-size: .95rem; padding: .6rem 1.2rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---- Hero ---- */
.hero { background: linear-gradient(115deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: "MK9"; position: absolute; right: -3rem; bottom: -5rem; font-family: var(--font-head); font-weight: 800; font-size: 22rem; color: rgba(255,255,255,.035); line-height: 1; pointer-events: none; }
.hero-inner { padding: clamp(4rem, 9vw, 7rem) 0; max-width: 720px; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 1.2rem; color: #b9c5d4; margin-bottom: 2rem; max-width: 58ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.6rem; font-size: .85rem; color: #8fa0b5; }
.hero-badges strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--orange); letter-spacing: .03em; }

/* ---- Cards & grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 3px 14px rgba(14,26,43,.06); border-top: 4px solid var(--orange); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.card-price { font-size: .85rem; color: var(--orange-dark); font-weight: 600; margin-top: .6rem; }

/* ---- Feature list (service pages) ---- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2rem; }
.feature { background: var(--white); padding: 1.5rem 1.6rem; border-radius: var(--radius); border-left: 4px solid var(--orange); }
.feature h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .93rem; }

/* ---- Price banner ---- */
.price-banner { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.4rem; }
.price-banner strong { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .03em; color: var(--orange); text-transform: uppercase; }

/* ---- FAQ ---- */
.faq { margin-top: 2rem; }
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: .8rem; box-shadow: 0 2px 8px rgba(14,26,43,.05); }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--orange); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--muted); }

/* ---- Reviews ---- */
.review-card { background: var(--white); border-radius: var(--radius); padding: 1.7rem; box-shadow: 0 3px 14px rgba(14,26,43,.06); }
.review-stars { color: var(--orange); letter-spacing: .15em; margin-bottom: .6rem; }
.review-card blockquote { font-size: .97rem; color: var(--ink); margin-bottom: 1rem; }
.review-card cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: .88rem; }
.review-card cite span { color: var(--muted); font-weight: 400; }

/* ---- Story band ---- */
.story-band { background: var(--navy-2); }
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.story-grid .placeholder-img { background: linear-gradient(135deg, var(--navy-3), var(--navy)); border: 1px dashed rgba(255,255,255,.25); border-radius: var(--radius); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: #8fa0b5; font-size: .85rem; text-align: center; padding: 1rem; }

/* ---- Comparison table ---- */
.compare-wrap { overflow-x: auto; margin-top: 2.4rem; }
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 14px rgba(14,26,43,.06); min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .93rem; }
.compare thead th { background: var(--navy); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; }
.compare td:first-child { font-weight: 600; color: var(--navy); }
.compare .hl { background: #fff4ec; }

/* ---- Forms ---- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .88rem; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea { padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font-body); font-size: .95rem; background: var(--cream); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); background: #fff; }
.form-note { font-size: .82rem; color: var(--muted); }
.alert { padding: 1rem 1.3rem; border-radius: var(--radius); margin-bottom: 1.4rem; font-size: .95rem; }
.alert-success { background: #e8f6ec; color: #1d6b34; border: 1px solid #bfe4cb; }
.alert-error { background: #fbeaea; color: #93312e; border: 1px solid #efc7c5; }
.alert-info { background: #eaf1fb; color: #2a4d80; border: 1px solid #c9daf2; }

/* ---- Booking steps ---- */
.steps { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; text-align: center; padding: .6rem .4rem; border-radius: 8px; background: var(--white); color: var(--muted); font-size: .82rem; font-weight: 600; border: 1.5px solid var(--line); }
.step.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.step.done { background: #e8f6ec; color: #1d6b34; border-color: #bfe4cb; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .8rem; }
.slot { padding: .6rem; text-align: center; border: 1.5px solid var(--line); border-radius: 8px; background: var(--cream); cursor: pointer; font-size: .9rem; }
.slot input { display: none; }
.slot:has(input:checked) { background: var(--orange); color: #fff; border-color: var(--orange-dark); font-weight: 700; }

/* ---- CTA band & footer ---- */
.cta-band { background: linear-gradient(115deg, var(--orange-dark), var(--orange)); color: #fff; padding: 3.2rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #ffe4d1; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-3); }

.site-footer { background: var(--navy); color: #93a3b8; font-size: .9rem; padding-top: 3.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #b9c5d4; }
.site-footer a:hover { color: var(--orange); }
.footer-logo .logo-text { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; font-size: .8rem; }

.mobile-call-btn { display: none; position: fixed; bottom: 1.1rem; left: 1.1rem; right: 1.1rem; z-index: 90; background: var(--orange); color: #fff; text-align: center; padding: .95rem; border-radius: 12px; font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: .05em; box-shadow: 0 6px 20px rgba(0,0,0,.3); text-decoration: none !important; }

/* ---- Portal ---- */
.portal-shell { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; margin: 2.5rem 0; }
.portal-side { background: var(--white); border-radius: var(--radius); padding: 1.4rem; height: fit-content; box-shadow: 0 3px 14px rgba(14,26,43,.06); }
.portal-side a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none !important; }
.portal-side a.active, .portal-side a:hover { background: var(--cream); color: var(--orange-dark); }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 99px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.badge-pending { background: #fdf1e3; color: #a05c12; }
.badge-confirmed { background: #e8f6ec; color: #1d6b34; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .story-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 1rem 4%; max-height: calc(100vh - 120px); overflow-y: auto; }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
    .main-nav > ul > li > a { display: block; padding: .7rem 0; font-size: 1.05rem; }
    .dropdown { position: static; display: none; box-shadow: none; padding-left: 1rem; }
    .has-dropdown.open > .dropdown { display: flex; }
    .subdropdown { position: static; padding-left: 1rem; }
    .has-subdropdown.open > .subdropdown { display: flex; }
    .sub-caret { transform: rotate(90deg); }
    .nav-cta-wrap { margin-top: .6rem; }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .feature-list, .form-grid, .portal-shell { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .mobile-call-btn { display: block; }
    body { padding-bottom: 4.5rem; }
    .topbar-inner span:first-child { display: none; }
    .topbar-inner { justify-content: center; }
}

/* Real imagery + socials */
.logo-badge { height: 48px; width: 48px; object-fit: contain; border-radius: 8px; background: var(--navy); padding: 3px; }
.footer-logo .logo-badge { height: 44px; width: 44px; }
.story-grid .story-photo { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4/3; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.footer-social { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: 1rem; padding: 0; list-style: none; }
.footer-social a { color: var(--orange); font-size: .85rem; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
.trainer-card img { aspect-ratio: 1/1; object-fit: cover; object-position: top; }
.hero-inner-compact { padding: clamp(3rem, 6vw, 4.5rem) 0; }
