/* The House of Coaching: Executive Catalyst house style (22 Oct 2026).
   Source: Steff's Stitch templates in docs/stitch_corporate_coaching_digital_redesign (DESIGN.md and the
   light and dark screens). Loaded after the engine's CSS (theme.stylesheet); colours and fonts come from
   the tokens in site.yaml, this file only adds what the tokens cannot say. It changes the look, never the
   structure: every page, section and menu stays as the engine renders it.
   Dark mode answers to both prefers-color-scheme and html[data-theme=dark] (the header theme menu). */

:root {
  --radius: 8px;
  --radius-lg: 16px;
  --wrap: 77.5rem;                                 /* 1240px, the template's container */
  --line: color-mix(in oklab, var(--ink) 10%, var(--paper));
  --shadow: 0 2px 8px -2px rgb(30 42 56 / 0.05), 0 8px 16px -4px rgb(30 42 56 / 0.04);
  --shadow-hover: 0 8px 24px -4px rgb(11 96 136 / 0.12), 0 4px 12px -2px rgb(30 42 56 / 0.04);
  --card-line: rgb(226 232 240 / 0.8);
  --btn-label: #fff;
  --btn-hover: #0B6088;                            /* deep cerulean */
  --field: #F8FAFC;
  --field-line: #CBD5E1;
  --glow: rgb(0 191 255 / 0.10);
  /* The four skill pillars (DESIGN.md "Four Pillar System"). */
  --p1: #0E7490; --p2: #0B6088; --p3: #0284C7; --p4: #D97706;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --line: #1E293B;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -10px rgb(0 0 0 / 0.5);
    --shadow-hover: 0 12px 32px -8px rgb(0 191 255 / 0.18), 0 2px 6px rgb(0 0 0 / 0.3);
    --card-line: #1E2A38;
    --btn-label: #0B111A;
    --btn-hover: #5CD3FF;
    --field: #0E1622;
    --field-line: #334155;
    --glow: rgb(0 191 255 / 0.14);
    --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--paper));
    --p1: #22D3EE; --p2: #5CD3FF; --p3: #38BDF8; --p4: #FBBF24;
  }
}
:root[data-theme=dark] {
  --line: #1E293B;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 30px -10px rgb(0 0 0 / 0.5);
  --shadow-hover: 0 12px 32px -8px rgb(0 191 255 / 0.18), 0 2px 6px rgb(0 0 0 / 0.3);
  --card-line: #1E2A38;
  --btn-label: #0B111A;
  --btn-hover: #5CD3FF;
  --field: #0E1622;
  --field-line: #334155;
  --glow: rgb(0 191 255 / 0.14);
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--paper));
  --p1: #22D3EE; --p2: #5CD3FF; --p3: #38BDF8; --p4: #FBBF24;
}

/* The template's outer margin: 40px on desktop, 20px on phones. */
.wrap { width: min(100% - 2.5rem, var(--wrap)); }
@media (min-width: 720px) { .wrap { width: min(100% - 5rem, var(--wrap)); } }

/* ---- Type: Plus Jakarta Sans, bold headlines with tight tracking ---- */
body { font-size: 1rem; line-height: 1.6; font-feature-settings: normal; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; max-width: 28ch; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
strong { font-weight: 700; }
blockquote { font-family: var(--sans); font-style: italic; font-size: 1.1rem; }

/* ---- Header: white glass bar, soft shadow instead of a rule ---- */
.site-header { background: color-mix(in oklab, var(--surface) 90%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); border-bottom: 0; box-shadow: 0 1px 8px rgb(30 42 56 / 0.05); }
.site-nav { border-top: 1px solid var(--line); }
.site-nav.has-groups .nav-link { font-weight: 600; font-size: 0.92rem; }
.tool-label { font-weight: 700; }
.nav-card { border-radius: var(--radius-lg); border-color: var(--card-line); box-shadow: var(--shadow-hover); }
:is(.lang-menu, .user-menu, .theme-menu) ul { border-radius: 12px; border-color: var(--card-line); }
/* The four skill pages in the Skills menu carry their pillar colour. */
.nav-group:first-child .nav-children > li:nth-child(1) .nav-sub-icon { color: var(--p1); }
.nav-group:first-child .nav-children > li:nth-child(2) .nav-sub-icon { color: var(--p2); }
.nav-group:first-child .nav-children > li:nth-child(3) .nav-sub-icon { color: var(--p3); }
.nav-group:first-child .nav-children > li:nth-child(4) .nav-sub-icon { color: var(--p4); }
@media (max-width: 980px) {
  .nav-mobile { background: var(--surface); }
}

/* ---- Hero and page heads: a soft cyan glow on the canvas ---- */
.hero, .page-head { background: radial-gradient(60rem 30rem at 85% -10%, var(--glow), transparent 70%); }
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.hero-grid { grid-template-columns: minmax(0, 46rem); }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem); line-height: 1.06; }
.hero-lead { color: var(--muted); font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); line-height: 1.65; }
.page-head { border-bottom: 1px solid var(--line); }
.lead { color: var(--muted); }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Sections: heading on top, content full width below (the template's rhythm) ----
   Plain bands sit on the cream canvas, alternating bands on white with hairlines. */
.band { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.band-alt + .band:not(.band-alt) { border-top: 0; }
@media (min-width: 1000px) {
  .band > .wrap:not(.contact-layout):not(.account) { display: block; }
  .band > .wrap > h2 { position: static; }
}
.band h2 { margin-bottom: 0.6em; }
.band h2::before { width: 2rem; height: 3px; margin-bottom: 1rem; }
.band .prose > .band-intro { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }
.prose:has(> .cards-centered) > .band-intro { text-align: left; }
/* Home: every section numbered like the template's labels (01 /, 02 / ...). */
.page-body[data-slug='home'] { counter-reset: band; }
.page-body[data-slug='home'] .band h2 { counter-increment: band; }
.page-body[data-slug='home'] .band h2::before { content: counter(band, decimal-leading-zero) ' /'; width: auto; height: auto; background: none; border-radius: 0; margin-bottom: 0.75rem; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.1em; color: var(--accent-ink); }

/* ---- Column items become cards: white panel, 16px corners, warm shadow, left aligned ---- */
.cards-centered { gap: 1.25rem; }
.cards-centered .card,
.cards-centered > .card:first-child,
.cards-centered > .card:nth-child(n) { padding: 1.6rem 1.5rem 1.5rem; border: 1px solid var(--card-line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); text-align: left; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.cards-centered .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cards-centered .card .icon { margin: 0 0 1.1rem; }
.cards-centered .card .buttons { justify-content: flex-start; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cards-centered .card, .cards-centered > .card:first-child, .cards-centered > .card:nth-child(n) { padding: 1.4rem 1.25rem; border-top: 1px solid var(--card-line); }
  .cards-4 { grid-template-columns: 1fr; }
}
/* Icons sit on a tinted tile, like the template's toolbox and pillar markers. */
.card .icon { box-sizing: content-box; width: 1.5rem; height: 1.5rem; padding: 0.7rem; border-radius: 12px; stroke-width: 1.75; color: var(--accent-ink); background: color-mix(in oklab, currentColor 11%, var(--surface)); }
.cards-list .card .icon { margin: 0; }
.card h3 { font-size: 1.15rem; color: var(--ink); }
.card h3 a:hover { color: var(--accent-ink); }
.card p { color: var(--muted); font-size: 0.95rem; }
/* The four skill pillars on the home page, in pillar colours. */
[id='21st-century-skills'] .card:nth-child(1) .icon { color: var(--p1); }
[id='21st-century-skills'] .card:nth-child(2) .icon { color: var(--p2); }
[id='21st-century-skills'] .card:nth-child(3) .icon { color: var(--p3); }
[id='21st-century-skills'] .card:nth-child(4) .icon { color: var(--p4); }
.cards-list .card { border-top-color: var(--line); }

/* ---- Page and article tiles ---- */
.prose > .articles { max-width: none; }
/* A page without sections keeps its tiles in the lead: the lead's text stays at the reading measure,
   the tiles take the full width (category pages: four columns instead of two). */
.lead:has(> .articles) { max-width: none; }
.lead:has(> .articles) > :not(.articles) { max-width: var(--measure); }
.lead > .articles { margin-top: 2rem; color: var(--ink); font-size: 1rem; }
.article-card, :root .article-card { --card: var(--surface); }
.article-card { border-radius: var(--radius-lg); border-color: var(--card-line); box-shadow: var(--shadow); }
.article-card:hover, .article-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in oklab, var(--accent) 45%, var(--card-line)); }

/* ---- Buttons: 8px corners; navy with white label in light, cyan with dark label in dark ---- */
.btn-primary { border-radius: var(--radius); color: var(--btn-label); padding: 0.85rem 1.5rem; font-size: 0.95rem; letter-spacing: 0.01em; box-shadow: 0 1px 2px rgb(30 42 56 / 0.08); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--btn-hover); color: var(--btn-label); }
.btn-secondary { color: var(--accent-ink); font-weight: 700; border-bottom: 0; padding: 0.2rem 0; }
.btn-secondary:hover { color: var(--ink); }
.hero-full .btn-primary:hover { background: #fff; color: #0B111A; }
.carousel-nav > button:hover, .chat-starter:hover, .chat-starter:focus-visible { color: var(--btn-label); }
.chat-open, .chat-form button { color: var(--btn-label); }
.chat-form button:hover { background: var(--btn-hover); color: var(--btn-label); }
.chat { border-radius: var(--radius-lg); }

/* ---- Callouts, FAQ, quotes ---- */
.callout { border-radius: var(--radius-lg); border-left: 0; border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--card-line)); background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
.toggle-ico .icon { color: var(--accent-ink); }

/* ---- Forms: soft fields, cyan focus halo; the contact form sits on a panel ---- */
:is(.contact-form, .member-form, .account-form, .booking-form) :is(input:not([type=checkbox]):not([type=radio]), textarea, select) { background: var(--field); border: 1px solid var(--field-line); border-radius: var(--radius); }
:is(.contact-form, .member-form, .account-form, .booking-form) :is(input:not([type=checkbox]):not([type=radio]), textarea, select):focus { background: var(--surface); border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.contact-form { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
/* The engine's filter chip (.chip, articles and agenda) also hits the contact form's chip labels and
   draws a second ring; on the form only the inner pill counts. */
.contact-form .chip { padding: 0; border: 0; background: none; font: inherit; }
.contact-form .chip input:checked + span { color: var(--btn-label); }
.chip[aria-pressed=true] { color: var(--btn-label); }
.check input { border-radius: 4px; }

/* ---- Page actions and footer: midnight slate, a shade below the canvas in dark ---- */
.action:hover { border-color: var(--accent); }
.site-footer { --f-bg: #111C2D; --f-fg: #F1F5F9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .site-footer { --f-bg: #070C14; border-top: 1px solid var(--line); } }
:root[data-theme=dark] .site-footer { --f-bg: #070C14; border-top: 1px solid var(--line); }
.footer-pill { border-radius: var(--radius); }

/* The small butterfly that replaces the wordmark on phones is the navy favicon: white in dark. */
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .logo-mark { filter: brightness(0) invert(1); } }
:root[data-theme=dark] .logo-mark { filter: brightness(0) invert(1); }
