/* Corvia Solutions site styles
   Brand colours
   Corporate: navy #01235d, mint #40ad98, ivory #fffef9
   Training:  deep teal #01525d, ivory #fffef9, navy #01235d
   Community: gold #c88929, deep teal #01525d, ivory #fffef9 */

:root {
  --navy: #01235d;
  --teal: #01525d;
  --ivory: #fffef9;
  --mint: #40ad98;
  --gold: #c88929;
  --ink-soft: #3c4a57;
  --line: #dce3e4;
  --white: #ffffff;
  --gutter: 80px;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(1, 35, 93, 0.16);
  --accent: var(--navy);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--ivory);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

body.training { --accent: var(--teal); }
body.community { --accent: var(--teal); }

h1, h2 { font-family: 'Montserrat', sans-serif; font-weight: 500; margin: 0; line-height: 1.14; letter-spacing: -0.01em; }
h3 { font-family: 'Montserrat', sans-serif; font-weight: 300; margin: 0; line-height: 1.25; }
h1 { font-size: clamp(32px, 4.6vw, 60px); }
h2 { font-size: clamp(24px, 2.6vw, 36px); }
h3 { font-size: clamp(19px, 1.7vw, 25px); }
/* light type blooms on dark, so subheaders there carry one step more weight to look the same */
.card-navy h3, .card-teal h3, .band h3, .hero h3, .site-foot h3 { font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 112px; }
.section-tight { padding-top: 56px; }
/* a section that follows a wave hero, close enough that the page does not look empty */
.section-wave { position: relative; z-index: 2; margin-top: -88px; padding-top: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--ink-soft); max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* top bar and menu */
.topbar { background: var(--accent); color: rgba(255, 254, 249, 0.8); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--ivory); }

.site-head { border-bottom: 1px solid var(--line); background: var(--ivory); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 116px; padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand strong { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 700; }
.brand img { height: 48px; width: auto; max-width: 100%; display: block; margin-bottom: 8px; }
.site-foot .brand img { height: 40px; }
.brand span { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 16px; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.menu-toggle { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; cursor: pointer; font-size: 16px; }
.btn-solid { background: var(--accent); color: var(--ivory); }
.btn-cal { background: var(--mint); border-color: var(--mint); color: var(--navy); min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn-cal:hover { background: #56bfaa; border-color: #56bfaa; color: var(--navy); }
.btn-cal svg { opacity: 0.85; }
/* the nav holds together on a smaller laptop before the menu button takes over */
@media (max-width: 1340px) {
  .nav { gap: 16px; font-size: 15px; }
  .btn-cal { min-height: 48px; padding: 12px 18px; font-size: 15px; }
  .btn-cal svg { width: 18px; height: 18px; }
}
.btn-ghost { border-color: currentColor; }
.btn-light { background: var(--ivory); color: var(--accent); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero with moving scene */
.hero { position: relative; overflow: hidden; color: var(--ivory); padding: 112px 0 220px; }
.hero.tall { padding-bottom: 260px; min-height: 780px; }
.hero h1 { font-size: clamp(28px, 3vw, 46px); line-height: 1.14; }
@media (min-width: 900px) { .hero.tall h1 { white-space: nowrap; } }
.community .has-shot .shot { background-position: center 72%; }
.hero .lead, .hero p { color: rgba(255, 254, 249, 0.92); }
.hero .eyebrow { color: rgba(255, 254, 249, 0.82); }
.scene { position: absolute; inset: 0; overflow: hidden; background: #123f80; }
.training .scene, .community .scene { background: #1e6a74; }
.scene .sun { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--mint); opacity: 0.42; filter: blur(22px); right: 12%; top: 14%; animation: float 9s ease-in-out infinite; }
.training .scene .sun { background: #9fd0cb; }
.community .scene .sun { background: #e3bd83; opacity: 0.36; }
.scene .shot { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene .veil { position: absolute; inset: 0; background: rgba(1, 35, 93, 0.42); }
.has-shot .veil { background: linear-gradient(100deg, rgba(1, 35, 93, 0.92) 0%, rgba(1, 35, 93, 0.78) 48%, rgba(1, 35, 93, 0.55) 100%); }
.has-shot .sun { display: none; }
.has-shot.art .shot { background-size: auto 80%; background-position: right -90px bottom 60px; background-repeat: no-repeat; opacity: 0.8; }
.has-shot.art .veil { background: linear-gradient(100deg, rgba(1, 35, 93, 0.94) 0%, rgba(1, 35, 93, 0.82) 38%, rgba(1, 35, 93, 0.12) 62%); }
.training .has-shot .veil, .community .has-shot .veil { background: linear-gradient(100deg, rgba(1, 82, 93, 0.93) 0%, rgba(1, 82, 93, 0.8) 48%, rgba(1, 82, 93, 0.58) 100%); }
.video-frame { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: #0c3b44; border: 10px solid var(--ivory); box-shadow: var(--shadow); }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound-toggle { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 254, 249, 0.6); background: rgba(1, 35, 93, 0.55); color: var(--ivory); font: 700 14px 'Montserrat', sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.sound-toggle:hover { background: rgba(1, 35, 93, 0.78); }
.ph.photo { padding: 0; background: none; }
.ph.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.ph-frame.photo img { border-radius: 14px; }
.training .scene .veil, .community .scene .veil { background: rgba(1, 82, 93, 0.4); }
.scene .zoom { position: absolute; inset: 0; animation: zoom 26s ease-in-out infinite alternate; }
.waves { position: absolute; left: 0; bottom: 0; width: 200%; }
.waves svg { width: 100%; height: auto; display: block; }
.w1 { animation: drift 64s linear infinite; }
.w2 { animation: drift 38s linear infinite; }
.w3 { animation: drift 52s linear infinite; }
.photo-note { position: absolute; right: 20px; top: 20px; background: rgba(255, 254, 249, 0.9); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; }
.hero-inner { position: relative; }

@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.9s ease-out both; }
.rise-2 { animation: rise 0.9s ease-out 0.2s both; }

@media (prefers-reduced-motion: reduce) {
  .w1, .w2, .w3, .scene .sun, .scene .zoom, .rise, .rise-2 { animation: none; }
}

/* cards */
.lift { transition: transform 0.35s ease, box-shadow 0.35s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card { color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card-navy { background: var(--navy); color: var(--ivory); border: none; }
.card-teal { background: var(--teal); color: var(--ivory); border: none; }
.card-navy p, .card-teal p { color: rgba(255, 254, 249, 0.86); }
.card-navy .muted, .card-teal .muted, .card-navy li, .card-teal li { color: rgba(255, 254, 249, 0.78); }
.overlap { position: relative; z-index: 2; margin-top: -160px; }
.pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #e4f1ec; color: #1c5a45; }
.pill-wait { background: #f3e6cf; color: var(--teal); }
.pill-line { background: transparent; border: 1px solid currentColor; font-weight: 500; }
.card-navy .pill-line, .card-teal .pill-line, .hero .pill-line { color: rgba(255, 254, 249, 0.92); border-color: rgba(255, 254, 249, 0.5); }
.price { font-size: 20px; font-weight: 700; white-space: nowrap; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
.muted { color: var(--ink-soft); font-size: 15px; }

/* placeholder photo blocks, swap for real images */
.ph { position: relative; background: #e3ecec; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink-soft); font-size: 15px; min-height: 240px; overflow: hidden; }
.ph-frame { border: 10px solid var(--ivory); box-shadow: var(--shadow); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.logos div { width: 196px; height: 120px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.logos img { max-height: 84px; object-fit: contain; }

/* tables and lists */
.table { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.thead, .trow { display: grid; grid-template-columns: 6fr 1fr 2fr 2fr 2fr; gap: 16px; align-items: center; padding: 18px 28px; }
.thead { background: #f3f6f6; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.trow { border-top: 1px solid #eef2f2; }
.trow .name { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 19px; }
.center { text-align: center; }
.right { text-align: right; }

.tabs { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tab { min-height: 50px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--teal); background: transparent; color: var(--teal); font: 700 16px 'Montserrat', sans-serif; cursor: pointer; transition: background .15s ease, color .15s ease; }
.tab:hover { background: #e4f1ec; }
.tab[aria-selected="true"] { background: var(--teal); color: var(--ivory); border-color: var(--teal); font-weight: 700; }
.count { margin-left: 8px; font-size: 13px; font-weight: 700; opacity: 0.75; }

/* forms */
form.lead-form { background: var(--ivory); color: var(--navy); border-radius: 22px; padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .check.full { grid-column: 1 / -1; }
label { font-size: 15px; font-weight: 700; }
input, select, textarea { min-height: 50px; padding: 12px 16px; border: 1px solid #c9d3e3; border-radius: 12px; background: var(--white); color: var(--navy); font: 16px 'Montserrat', sans-serif; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; border: 1px solid #c9d3e3; border-radius: 12px; background: var(--white); font-weight: 500; }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); }
fieldset { border: none; margin: 0; padding: 0; }
legend { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

/* footer */
.site-foot { margin-top: 112px; background: var(--accent); color: rgba(255, 254, 249, 0.85); }
.site-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.site-foot h4 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 254, 249, 0.7); }
.site-foot a { color: var(--ivory); }
.site-foot .col { display: flex; flex-direction: column; gap: 14px; }
.socials { display: flex; flex-wrap: nowrap; gap: 10px; }
.foot-social { display: flex; align-items: center; gap: 22px; padding-bottom: 26px; }
.foot-social h4 { white-space: nowrap; }
.socials a { border: 1px solid rgba(255, 254, 249, 0.35); border-radius: 999px; padding: 10px 16px; font-size: 15px; }
.site-foot .btn-light { color: var(--accent); }
.site-foot .btn-ghost { border-color: rgba(255, 254, 249, 0.5); color: var(--ivory); }
.site-foot .btn-mint { background: var(--mint); color: var(--navy); border-color: var(--mint); }
.site-foot .btn-mint:hover { background: #56bfaa; border-color: #56bfaa; }
.legal { border-top: 1px solid rgba(255, 254, 249, 0.2); padding: 22px 0 32px; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.icon-row { display: flex; align-items: center; gap: 10px; }

/* tablet */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the menu button takes over while there is still room to breathe */
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 88px; left: 0; right: 0; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .site-head .wrap { min-height: 96px; }
  .brand img { height: 36px; margin-bottom: 6px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--navy); background: transparent; font: 700 15px 'Montserrat', sans-serif; }
  .site-head.open .nav { display: flex; }
}

/* phone */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding-top: 72px; }
  .section-wave { margin-top: -16px; padding-top: 16px; }
  .g2, .g3, .g4, .g5, .g-1-2 { grid-template-columns: minmax(0, 1fr); }
  .price { white-space: normal; }
  .hero { padding: 72px 0 160px; }
  .overlap { margin-top: -110px; }
  .thead { display: none; }
  .trow { grid-template-columns: 1fr auto; row-gap: 8px; padding: 18px 20px; }
  .trow .sessions, .trow .hours { display: none; }
  form.lead-form { grid-template-columns: 1fr; padding: 24px; }
  .logos div { width: calc(50% - 10px); height: 100px; }
  .has-shot.art .shot { background-size: auto 46%; background-position: right -30px bottom 40px; opacity: 0.35; }
  .site-foot .cols { grid-template-columns: 1fr; padding: 48px 0 32px; }
  .foot-social { flex-direction: column; align-items: flex-start; gap: 14px; }
  .socials { flex-wrap: wrap; }
}

.inline-signup { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.inline-signup input { max-width: 320px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* course links inside the course menu */
.trow a.name { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.trow a.name:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* one type scale, so every page reads at the same sizes */
h3.h3-m { font-size: clamp(20px, 1.7vw, 24px); }
h3.h3-s { font-size: clamp(18px, 1.4vw, 21px); }
.fine { font-size: 15px; }
.price { font-size: 18px; }
.quote { font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: clamp(19px, 1.7vw, 21px); line-height: 1.45; }
.quote.lg { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.35; }
.quote-cite { font-size: 15px; }
.quote-mark { font-family: 'Montserrat', sans-serif; font-size: 60px; line-height: 0.7; color: #9fd0cb; font-weight: 700; }
.price-lg { font-size: clamp(24px, 2.2vw, 28px); }

/* the newsletter box that sits in every footer */
.foot-signup { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-signup input { min-height: 46px; flex: 1 1 180px; min-width: 0; border-color: rgba(255, 254, 249, 0.35); background: rgba(255, 254, 249, 0.08); color: var(--ivory); }
.foot-signup input::placeholder { color: rgba(255, 254, 249, 0.6); }
.foot-signup .btn { min-height: 46px; padding: 10px 20px; }

/* the video and the class photos side by side, with the text underneath */
.collage-row { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.collage-row .video-frame { max-width: none; margin: 0; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; }
.collage .ph { min-height: 0; height: 100%; border-radius: 18px; }

@media (max-width: 1100px) {
  .collage-row { grid-template-columns: 300px minmax(0, 1fr); gap: 18px; }
  .collage { gap: 12px; }
}
@media (max-width: 820px) {
  .collage-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .collage-row .video-frame { max-width: 320px; margin: 0 auto; }
  .collage { grid-template-rows: auto auto; }
  .collage .ph { min-height: 150px; }
}

/* the full width band that sells both arms together */
.band { background: var(--navy); color: var(--ivory); padding: 88px 0; margin-top: 96px; }
.band h2 { color: var(--ivory); max-width: 520px; }
.band p { color: rgba(255, 254, 249, 0.88); }
.band .eyebrow { color: var(--mint); }
.band .btn-light { background: var(--mint); color: var(--navy); }
.band .btn-ghost { border-color: rgba(255, 254, 249, 0.55); color: var(--ivory); }
.band-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.band-points li { position: relative; padding-left: 26px; color: rgba(255, 254, 249, 0.92); }
.band-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
@media (max-width: 820px) {
  .band { padding: 56px 0; margin-top: 64px; }
}

/* the numbers inside the band */
.band-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 48px; padding-top: 36px; border-top: 1px solid rgba(255, 254, 249, 0.22); }
.stat-n { font-family: 'Montserrat', sans-serif; font-size: clamp(42px, 4.4vw, 64px); line-height: 1; color: var(--mint); display: block; font-weight: 600; }
.band-stats h3 { color: var(--ivory); font-size: clamp(18px, 1.4vw, 20px); margin-top: 14px; }
.band-stats p { margin-top: 8px; font-size: 16px; color: rgba(255, 254, 249, 0.8); }
.stat-src { display: block; margin-top: 14px; font-size: 13px; line-height: 1.4; color: rgba(255, 254, 249, 0.55); }
@media (max-width: 820px) {
  .band-stats { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
}

/* the tab row repeated under the course list */
.tabs-bottom { margin-top: 48px; padding-bottom: 0; padding-top: 24px; border-bottom: none; border-top: 1px solid var(--line); }

/* the partners strip on the Learning page */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 22px; }
.partners .p-abbr { font-family: 'Montserrat', sans-serif; font-size: clamp(30px, 3vw, 42px); line-height: 1; color: var(--mint); display: block; font-weight: 600; }
.partners .logo-badge { margin-bottom: 4px; }
.partners .p-name { display: block; margin-top: 10px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; color: var(--ivory); }
.partners p { margin-top: 8px; font-size: 16px; color: rgba(255, 254, 249, 0.82); }
@media (max-width: 820px) {
  .partners { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}

/* the quick sell button */
.btn-big { min-height: 64px; padding: 16px 38px; font-size: 19px; }
@media (max-width: 820px) { .btn-big { min-height: 58px; padding: 14px 26px; font-size: 17px; width: 100%; } }

/* Course page: description band with the booking action beside it */
.lead-band { display: grid; grid-template-columns: 1.7fr 1fr; align-items: stretch; background: #f1f6f5; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 22px; overflow: hidden; }
.lead-band .lead-copy { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.lead-band .lead { max-width: none; margin: 12px 0 0; font-size: clamp(19px, 2.1vw, 24px); color: var(--navy); }
.lead-act { display: grid; gap: 14px; align-content: center; padding: 36px 40px; background: var(--white); border-left: 1px solid var(--line); }
.lead-act .btn { width: 100%; }
.lead-act .fine { margin: 0; color: var(--ink-soft); }
.price-xl { font-family: 'Montserrat', sans-serif; font-size: clamp(30px, 3vw, 40px); line-height: 1; color: var(--accent); font-weight: 600; }
@media (max-width: 860px) {
  .lead-band { grid-template-columns: 1fr; border-left-width: 5px; }
  .lead-band .lead-copy { padding: 28px 24px; }
  .lead-act { padding: 24px; border-left: none; border-top: 1px solid var(--line); }
}

/* Course page: booking block, intro above a centred form */
.book-wrap { max-width: 900px; margin: 0 auto; }
.book-wrap h2 { margin: 0; }

/* Course page: links back to a section of the course list */
.tabs-link-row { border-bottom: none; padding-bottom: 0; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
a.tab:hover { background: #e4f1ec; }
a.tab[aria-selected="true"]:hover { background: var(--teal); }

/* A partner logo shown as a white badge inside a dark card */
.logo-badge { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; flex: 0 0 auto; background: var(--white); border-radius: 14px; padding: 14px 20px; min-height: 84px; }
.card-head { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.card-head h2 { margin: 0; }
@media (max-width: 620px) { .card-head { flex-direction: column; gap: 18px; } }
.logo-badge img { max-height: 56px; max-width: 170px; width: auto; height: auto; display: block; }

/* Five star rating row */
.stars { display: flex; gap: 5px; color: var(--gold); margin-top: 4px; }

/* Offer modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(1, 35, 93, 0.72); }
.modal.open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 520px; background: var(--ivory); color: var(--navy); border-radius: 22px; padding: 40px; box-shadow: 0 30px 80px rgba(1, 35, 93, 0.35); max-height: 92vh; overflow: auto; }
.modal-box h2 { max-width: none; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: #eef3f2; }
.modal form.lead-form { grid-template-columns: minmax(0, 1fr); padding: 0; background: transparent; margin-top: 22px; gap: 16px; }
.modal .btn { width: 100%; }
@media (max-width: 560px) { .modal-box { padding: 30px 22px; } }

/* The secret shopper button, carried on every page */
.cta-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; justify-content: center; min-height: 68px; padding: 16px 34px; border: none; border-radius: 999px; background: var(--gold); color: var(--navy); font: 700 19px 'Montserrat', sans-serif; cursor: pointer; box-shadow: 0 16px 40px rgba(1, 35, 93, 0.3); transition: transform .15s ease, background .15s ease; }
.cta-float:hover { background: #d99a3c; transform: translateY(-2px); }
body.modal-up .cta-float { display: none; }
.site-foot .legal { padding-bottom: 120px; }
@media (max-width: 820px) {
  .cta-float { right: 16px; left: 16px; bottom: 16px; min-height: 60px; padding: 14px 20px; font-size: 16px; text-align: center; }
  .site-foot .legal { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .cta-float:hover { transform: none; } }

/* The word free, in gold. The smaller one is a deeper gold so it stays readable on ivory */
.hl-gold { color: var(--gold); }
.hl-gold-sm { color: #9c6410; font-weight: 700; }

[hidden] { display: none !important; }

/* Class calendar: every open date with its seats, on calendar.html, and the date picker on course pages */
.hero-short { padding-bottom: 180px; }
/* a landing page header: more room, and a title that holds one line */
.hero-tall { padding: 128px 0 200px; }
/* an advert lands here, so the words have to win over the picture */
.training .hero-tall .veil { background: linear-gradient(100deg, rgba(1, 82, 93, 0.97) 0%, rgba(1, 82, 93, 0.93) 44%, rgba(1, 82, 93, 0.78) 72%, rgba(1, 82, 93, 0.62) 100%); }
@media (max-width: 820px) { .hero-tall { padding: 80px 0 170px; } }
.hero-wide { max-width: 1120px; }
.hero-wide .lead { max-width: 760px; }
.h1-wide { font-size: clamp(30px, 4.4vw, 62px); letter-spacing: -0.015em; }
@media (min-width: 760px) { .h1-wide { white-space: nowrap; } }
.hero-wide .btn-row { margin-top: 6px; }
.calendar { display: flex; flex-direction: column; gap: 48px; }
.cal-month { margin-bottom: 36px; }
.cal-month h3 { font-size: 22px; font-weight: 500; margin-bottom: 16px; color: var(--teal); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cal-more { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.cal-more a { color: var(--teal); text-decoration: underline; }
.cal-list { display: flex; flex-direction: column; gap: 16px; }
.cal-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) 270px auto; gap: 28px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 28px 22px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.cal-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cal-day { background: var(--teal); color: var(--ivory); border-radius: 16px; text-align: center; padding: 14px 8px; line-height: 1.1; }
.cal-day .wd { display: block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.cal-day .dn { display: block; font-size: 40px; font-weight: 500; margin: 4px 0; }
.cal-day .mo { display: block; font-size: 14px; font-weight: 500; }
.cal-info .name { font-size: 20px; font-weight: 600; color: var(--navy); text-decoration: none; }
.cal-info .name:hover { color: var(--teal); }
.cal-info .meta { margin-top: 6px; font-size: 15px; color: var(--ink-soft); font-weight: 400; }
.cal-seats .dots { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cal-seats .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--teal); background: transparent; }
.cal-seats .dot.on { background: var(--teal); }
.cal-seats .left { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.cal-item.is-full { opacity: .78; }
.partner-note { display: flex; flex-direction: row; align-items: center; gap: 44px; background: #eef5f4; border-color: transparent; }
.partner-note .stack { max-width: 760px; }
.logo-badge-lg { min-height: 120px; padding: 20px 26px; }
.logo-badge-lg img { max-height: 88px; max-width: 210px; }
@media (max-width: 860px) { .partner-note { flex-direction: column; gap: 24px; } }
.cert-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-direction: row; }
.cert-row .btn-row { flex-shrink: 0; }
.cert-row .pill { align-self: flex-start; }
@media (max-width: 860px) { .cert-row { flex-direction: column; align-items: flex-start; gap: 18px; } .cert-row .btn-row { width: 100%; } .cert-row .btn { width: 100%; justify-content: center; } }
.cal-ask { flex-direction: row; justify-content: space-between; align-items: center; gap: 32px; background: #eef5f4; border-color: transparent; }
.cal-ask .btn-row { flex-shrink: 0; }
.cal-ask .btn-ghost { color: var(--teal); }
.session-hint { font-size: 14px; margin: 6px 0 0; }
@media (max-width: 1100px) {
  .cal-item { grid-template-columns: 96px minmax(0, 1fr); }
  .cal-seats, .cal-book { grid-column: 2; }
  .cal-ask { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .cal-item { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .cal-day .dn { font-size: 30px; }
  .cal-seats, .cal-book { grid-column: 1 / -1; }
  .cal-book .btn { width: 100%; justify-content: center; }
}
