/*
Theme Name: Confido
Theme URI: https://confidotc.co.za/
Description: Bespoke block theme for Confido Training Centre – health & safety, first aid and skills training. Pairs with the Confido Bookings plugin.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Author: Confido Training Centre
License: GPLv2 or later
Text Domain: confido
*/

/* ------------------------------------------------------------------ */
/* Base                                                                 */
/* ------------------------------------------------------------------ */
:root {
	--c-ink: var(--wp--preset--color--ink);
	--c-signal: var(--wp--preset--color--signal);
	--c-hivis: var(--wp--preset--color--hivis);
	--c-cream: var(--wp--preset--color--cream);
	--c-sand: var(--wp--preset--color--sand);
	--c-muted: var(--wp--preset--color--muted);
	--c-line: var(--wp--preset--color--line);
	--c-ease: cubic-bezier(.2, .7, .3, 1);
	--c-header-h: 76px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--c-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--c-hivis); color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-signal); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group { margin-top: 0; }

.c-eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--wp--preset--color--signal-deep); margin: 0;
}
.c-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.c-eyebrow--light { color: var(--c-hivis); }
.c-lead { font-size: var(--wp--preset--font-size--lg); line-height: 1.5; color: var(--c-muted); max-width: 40ch; }
.c-mark { position: relative; white-space: nowrap; color: var(--c-signal); }
.c-mark::after {
	content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .02em; height: .14em;
	background: var(--c-hivis); border-radius: 99px; z-index: -1; transform-origin: left;
	animation: c-draw 1s .5s var(--c-ease) both;
}
.c-dark .c-mark::after { opacity: .9; }
@keyframes c-draw { from { transform: scaleX(0); } }

/* Buttons */
.wp-block-button__link { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.wp-block-button__link:active { transform: scale(.97); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid currentColor; color: inherit; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.c-light .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }
.c-btn-arrow .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: .45em; transition: transform .2s; }
.c-btn-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.c-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--c-hivis); color: var(--c-ink); }

/* Reveal on scroll (enabled by assets/js/theme.js) */
.c-js .c-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--c-ease), transform .8s var(--c-ease); }
.c-js .c-reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ */
/* Header                                                               */
/* ------------------------------------------------------------------ */
.c-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--c-cream) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
	border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.admin-bar .c-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .c-header { top: 0; } }
.c-header.is-scrolled { border-bottom-color: var(--c-line); }
.c-header__inner { min-height: var(--c-header-h); }
.c-logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none !important; color: var(--c-ink) !important; }
.c-logo svg { width: 38px; height: 38px; flex-shrink: 0; transition: transform .4s var(--c-ease); }
.c-logo:hover svg { transform: rotate(-8deg) scale(1.05); }
.c-logo__word { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; }
.c-logo__word i { font-style: normal; color: var(--c-signal); }
.c-logo__sub { display: block; font-family: var(--wp--preset--font-family--body); font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); margin-top: 3px; }
.c-dark .c-logo { color: var(--c-cream) !important; }
.c-dark .c-logo__sub { color: rgba(246, 242, 235, .55); }

.c-header .wp-block-navigation a { text-decoration: none; position: relative; }
.c-header .wp-block-navigation .wp-block-navigation-item__content { padding: .5rem .2rem; }
.c-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .2rem; height: 2px; border-radius: 2px;
	background: var(--c-signal); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--c-ease);
}
.c-header .wp-block-navigation-item__content:hover::after,
.c-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.c-header .wp-block-button__link { padding: .75rem 1.25rem; }
.c-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--c-cream); padding: 6rem 1.5rem 2rem; }
.c-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-family: var(--wp--preset--font-family--display); font-size: 2rem; font-weight: 700; gap: .75rem; }
.c-header__phone { font-size: var(--wp--preset--font-size--sm); font-weight: 600; text-decoration: none !important; display: inline-flex; align-items: center; gap: .4rem; }
.c-header__phone svg { width: 16px; height: 16px; }
@media (max-width: 1080px) { .c-header__phone { display: none; } }
@media (max-width: 600px) { .c-header .c-header__cta { display: none; } }

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */
.c-section { padding-block: var(--wp--preset--spacing--60); position: relative; }
.c-section--tight { padding-block: var(--wp--preset--spacing--50); }
.c-dark { background: var(--c-ink); color: var(--c-cream); }
.c-dark .c-lead, .c-dark .c-muted-text { color: rgba(246, 242, 235, .72); }
.c-sand { background: var(--c-sand); }
.c-white { background: #fff; }
.c-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; margin-bottom: var(--wp--preset--spacing--50) !important; }
.c-section-head h2 { max-width: 16ch; margin: .75rem 0 0; }
.c-section-head > p { max-width: 42ch; margin: 0; color: var(--c-muted); }
.c-dark .c-section-head > p { color: rgba(246, 242, 235, .7); }

/* ---------- Hero ---------- */
.c-hero { overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7rem); margin-top: calc(var(--c-header-h) * -1); padding-top: calc(var(--c-header-h) + clamp(3rem, 7vw, 6rem)); }
.c-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.c-hero::after {
	content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 90, 54, .32), rgba(255, 90, 54, 0) 62%);
	animation: c-float 14s ease-in-out infinite alternate;
}
@keyframes c-float { to { transform: translate(-80px, 60px) scale(1.08); } }
.c-hero__grid { gap: clamp(2rem, 5vw, 4.5rem) !important; align-items: center !important; }
.c-hero h1 { color: var(--c-cream); margin: 1.25rem 0 1.5rem; font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: .98; letter-spacing: -.035em; }
.c-hero .c-lead { color: rgba(246, 242, 235, .75); max-width: 46ch; }
.c-pill {
	display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .5rem; border-radius: 999px; margin: 0;
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: var(--wp--preset--font-size--xs); font-weight: 500;
}
.c-pill b { background: var(--c-hivis); color: var(--c-ink); padding: .2rem .55rem; border-radius: 999px; font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; }
.c-hero__proof { display: flex; flex-wrap: wrap; gap: 1.75rem; margin-top: 2.5rem !important; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.12); }
.c-hero__proof p { margin: 0; font-size: var(--wp--preset--font-size--sm); color: rgba(246, 242, 235, .65); line-height: 1.35; }
.c-hero__proof strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.75rem; color: var(--c-cream); letter-spacing: -.02em; }
.c-hero__aside { position: relative; }
.c-hero__badge {
	position: absolute; z-index: 2; left: -28px; bottom: -28px; width: 118px; height: 118px; border-radius: 50%;
	background: var(--c-hivis); color: var(--c-ink); display: grid; place-items: center; text-align: center;
	font-family: var(--wp--preset--font-family--display); font-weight: 800; line-height: 1; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4);
	animation: c-spin-in 1s .6s var(--c-ease) both;
}
.c-hero__badge small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-family: var(--wp--preset--font-family--body); }
.c-hero__badge span { font-size: 1.85rem; letter-spacing: -.03em; display: block; margin: .2rem 0; }
@keyframes c-spin-in { from { opacity: 0; transform: rotate(-30deg) scale(.6); } }
@media (max-width: 781px) { .c-hero__badge { left: auto; right: 12px; bottom: auto; top: -48px; width: 96px; height: 96px; } .c-hero__badge span { font-size: 1.5rem; } }

/* ---------- Marquee ---------- */
.c-marquee { background: var(--c-hivis); color: var(--c-ink); overflow: hidden; padding-block: 1.1rem; border-block: 1px solid rgba(12,24,32,.1); }
.c-marquee__track { display: flex; width: max-content; animation: c-marquee 38s linear infinite; }
.c-marquee:hover .c-marquee__track { animation-play-state: paused; }
.c-marquee__track span { display: inline-flex; align-items: center; gap: 1.5rem; padding-right: 1.5rem; font-family: var(--wp--preset--font-family--display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.c-marquee__track span::after { content: ""; width: 14px; height: 14px; background: var(--c-ink); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
@keyframes c-marquee { to { transform: translateX(-50%); } }

/* ---------- Category bento ---------- */
.c-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.c-cat {
	position: relative; overflow: hidden; isolation: isolate; grid-column: span 2; min-height: 260px;
	display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
	padding: 1.75rem; border-radius: var(--wp--custom--radius--lg); background: #fff; color: var(--c-ink) !important; text-decoration: none !important;
	transition: transform .35s var(--c-ease), box-shadow .35s;
}
.c-cat:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(12,24,32,.45); }
.c-cat--lg { grid-column: span 3; min-height: 340px; }
.c-cat--signal { background: var(--c-signal); }
.c-cat--ink { background: var(--c-ink); color: var(--c-cream) !important; }
.c-cat--hivis { background: var(--c-hivis); }
.c-cat__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(12,24,32,.07); }
.c-cat--ink .c-cat__icon { background: rgba(255,255,255,.1); }
.c-cat__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-cat h3 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.c-cat p { margin: 0; font-size: var(--wp--preset--font-size--sm); opacity: .78; max-width: 36ch; }
.c-cat__meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.c-cat__arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-ink); color: var(--c-cream); transition: transform .3s var(--c-ease), background .3s; }
.c-cat--ink .c-cat__arrow { background: var(--c-signal); color: var(--c-ink); }
.c-cat:hover .c-cat__arrow { transform: rotate(-45deg); }
.c-cat__bg { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; z-index: -1; opacity: .12; }
.c-cat__bg svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: .7; }
@media (max-width: 1000px) { .c-bento { grid-template-columns: repeat(2, 1fr); } .c-cat, .c-cat--lg { grid-column: span 1; min-height: 240px; } .c-cat--lg:first-child { grid-column: span 2; } }
@media (max-width: 600px) { .c-bento { grid-template-columns: 1fr; } .c-cat--lg:first-child { grid-column: span 1; } }

/* ---------- Steps ---------- */
.c-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.c-step { position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: var(--wp--custom--radius--lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.c-step::before {
	counter-increment: step; content: "0" counter(step);
	display: block; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 4.5rem; line-height: 1; letter-spacing: -.05em;
	-webkit-text-stroke: 1.5px var(--c-hivis); color: transparent; margin-bottom: 2.5rem;
}
.c-step h3 { font-size: var(--wp--preset--font-size--lg); margin: 0 0 .5rem; color: var(--c-cream); }
.c-step p { margin: 0; color: rgba(246, 242, 235, .7); font-size: var(--wp--preset--font-size--sm); }
.c-step:not(:last-child)::after { content: "→"; position: absolute; right: -.85rem; top: 3.2rem; z-index: 1; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; background: var(--c-signal); color: var(--c-ink); font-size: .9rem; }
@media (max-width: 781px) { .c-steps { grid-template-columns: 1fr; } .c-step:not(:last-child)::after { content: "↓"; right: auto; left: 1.75rem; top: auto; bottom: -.85rem; } }

/* ---------- About ---------- */
.c-about__media {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--wp--custom--radius--lg); overflow: hidden;
	background: var(--c-ink); color: var(--c-cream); display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem;
}
.c-about__media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,90,54,.55), transparent 55%), radial-gradient(circle at 90% 90%, rgba(221,242,71,.25), transparent 50%); }
.c-about__media svg.c-about__cross { position: absolute; top: 2rem; right: 2rem; width: 42%; height: auto; fill: var(--c-cream); opacity: .95; animation: c-beat 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes c-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.06); } 30% { transform: scale(1); } 45% { transform: scale(1.04); } }
.c-about__quote { position: relative; font-family: var(--wp--preset--font-family--display); font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.c-about__quote small { display: block; font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--sm); font-weight: 500; letter-spacing: 0; margin-top: 1rem; opacity: .7; }
.c-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin-top: 2.5rem !important; }
.c-value h4 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .35rem; font-size: var(--wp--preset--font-size--md); }
.c-value h4::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c-signal); transform: rotate(45deg); }
.c-value p { margin: 0; font-size: var(--wp--preset--font-size--sm); color: var(--c-muted); }
@media (max-width: 600px) { .c-values { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.c-stat { padding: 2rem 1.5rem 0 0; }
.c-stat + .c-stat { padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.14); }
.c-stat strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c-hivis); }
.c-stat span { display: block; margin-top: .75rem; font-size: var(--wp--preset--font-size--sm); color: rgba(246, 242, 235, .7); max-width: 22ch; }
@media (max-width: 781px) { .c-stats { grid-template-columns: 1fr 1fr; } .c-stat:nth-child(3) { padding-left: 0; border-left: 0; } .c-stat { padding-bottom: 1.5rem; } }

/* ---------- Team ---------- */
.c-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.c-person { display: flex; gap: 1.1rem; align-items: center; padding: 1.25rem; border-radius: var(--wp--custom--radius--md); background: #fff; border: 1px solid var(--c-sand); transition: border-color .25s, transform .25s var(--c-ease); }
.c-person:hover { border-color: var(--c-ink); transform: translateY(-3px); }
.c-avatar { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; background: var(--c-sand); color: var(--c-ink); }
.c-person:nth-child(6n+1) .c-avatar { background: var(--c-signal); }
.c-person:nth-child(6n+2) .c-avatar { background: var(--c-hivis); }
.c-person:nth-child(6n+3) .c-avatar { background: var(--c-ink); color: var(--c-cream); }
.c-person:nth-child(6n+4) .c-avatar { background: #FFD9CC; }
.c-person:nth-child(6n+5) .c-avatar { background: #CFE3F5; }
.c-person:nth-child(6n+6) .c-avatar { background: #E5DBFF; }
.c-person h4 { margin: 0; font-size: var(--wp--preset--font-size--md); letter-spacing: -.01em; }
.c-person p { margin: .2rem 0 0; font-size: var(--wp--preset--font-size--xs); color: var(--c-muted); line-height: 1.45; }
@media (max-width: 1000px) { .c-team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .c-team { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.c-quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; }
.c-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2rem; border-radius: var(--wp--custom--radius--lg); background: #fff; margin: 0; }
.c-quote:first-child { background: var(--c-ink); color: var(--c-cream); }
.c-quote blockquote { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.c-quote blockquote::before { content: "“"; display: block; font-size: 4.5rem; line-height: .7; color: var(--c-signal); margin-bottom: .5rem; }
.c-quote figcaption { display: flex; align-items: center; gap: .75rem; font-size: var(--wp--preset--font-size--sm); }
.c-quote figcaption b { display: block; }
.c-quote figcaption span { opacity: .6; font-size: var(--wp--preset--font-size--xs); }
.c-stars { color: var(--c-signal); letter-spacing: .15em; font-size: .9rem; }
@media (max-width: 1000px) { .c-quotes { grid-template-columns: 1fr; } }

/* ---------- Accreditation strip ---------- */
.c-accred { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.c-accred span { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; border-radius: 999px; border: 1px solid var(--c-line); font-weight: 600; font-size: var(--wp--preset--font-size--sm); background: rgba(255,255,255,.5); }
.c-accred span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DDF247' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- CTA band ---------- */
.c-cta { background: var(--c-signal); color: var(--c-ink); overflow: hidden; isolation: isolate; }
.c-cta::before {
	content: ""; position: absolute; z-index: -1; right: -6%; top: 50%; transform: translateY(-50%); width: min(560px, 60vw); aspect-ratio: 1;
	background: var(--c-ink); opacity: .08;
	clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
	animation: c-rot 40s linear infinite;
}
@keyframes c-rot { to { transform: translateY(-50%) rotate(360deg); } }
.c-cta h2 { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.04em; max-width: 13ch; margin: 0; }
.c-cta .wp-block-button__link { background: var(--c-ink); color: var(--c-cream); }
.c-cta .wp-block-button__link:hover { background: var(--c-cream); color: var(--c-ink); }
.c-cta .is-style-outline .wp-block-button__link { background: transparent; color: var(--c-ink); }
.c-cta .is-style-outline .wp-block-button__link:hover { background: var(--c-ink); color: var(--c-cream); border-color: var(--c-ink); }

/* ---------- Contact ---------- */
.c-contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .75rem; }
.c-contact-list li a, .c-contact-list li > span {
	display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: var(--wp--custom--radius--md);
	background: #fff; border: 1px solid var(--c-sand); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--c-ease);
}
.c-contact-list li a:hover { border-color: var(--c-ink); transform: translateX(4px); }
.c-contact-list i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--c-cream); flex-shrink: 0; }
.c-contact-list i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-contact-list small { display: block; font-size: var(--wp--preset--font-size--xs); color: var(--c-muted); }
.c-contact-list b { font-weight: 600; }
.c-form-card { background: #fff; border-radius: var(--wp--custom--radius--lg); padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--c-sand); }

/* ---------- Page hero (inner pages) ---------- */
.c-page-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate; margin-top: calc(var(--c-header-h) * -1); padding-top: calc(var(--c-header-h) + clamp(3rem, 7vw, 5.5rem)); }
.c-page-hero::after { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -260px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 54, .3), transparent 62%); }
.c-page-hero h1 { color: var(--c-cream); margin: 1rem 0 1rem; font-size: clamp(2.6rem, 6vw, 4.75rem); max-width: 18ch; }
.c-page-hero p:not(.c-eyebrow) { color: rgba(246, 242, 235, .72); font-size: var(--wp--preset--font-size--lg); max-width: 52ch; margin: 0; }
.c-crumbs { font-size: var(--wp--preset--font-size--xs); color: rgba(246, 242, 235, .55); }
.c-crumbs a { color: inherit; text-decoration: none; }
.c-crumbs a:hover { color: var(--c-hivis); }

/* Pull the first dark section up underneath the sticky header. */
main .wp-block-group.c-hero,
main .wp-block-group.c-page-hero { margin-top: calc(var(--c-header-h) * -1) !important; }

/* When the dark hero sits under the sticky header, make header text light until scrolled. */
body.c-has-dark-hero .c-header:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.c-has-dark-hero .c-header:not(.is-scrolled) .c-logo,
body.c-has-dark-hero .c-header:not(.is-scrolled) .wp-block-navigation,
body.c-has-dark-hero .c-header:not(.is-scrolled) .c-header__phone { color: var(--c-cream) !important; }
body.c-has-dark-hero .c-header:not(.is-scrolled) .c-logo__sub { color: rgba(246, 242, 235, .55); }
body.c-has-dark-hero .c-header:not(.is-scrolled) .wp-block-navigation__responsive-container.is-menu-open { color: var(--c-ink); }

/* ---------- Single course ---------- */
.c-course-layout { gap: clamp(2rem, 5vw, 4rem) !important; }
.c-course-body > * + * { margin-top: 1.25rem; }
.c-course-body h2 { font-size: var(--wp--preset--font-size--xl); margin-top: 2.5rem; }
.c-course-body ul { padding-left: 0; list-style: none; display: grid; gap: .6rem; }
.c-course-body ul li { position: relative; padding-left: 2rem; }
.c-course-body ul li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--c-hivis) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230C1820' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.c-course-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem !important; }
.c-course-tags span { padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: var(--wp--preset--font-size--xs); font-weight: 500; color: rgba(246,242,235,.85); }

/* ---------- Blog ---------- */
.c-posts .wp-block-post { background: #fff; border-radius: var(--wp--custom--radius--lg); overflow: hidden; border: 1px solid var(--c-sand); display: flex; flex-direction: column; transition: transform .3s var(--c-ease), box-shadow .3s; }
.c-posts .wp-block-post:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(12,24,32,.35); }
.c-posts .wp-block-post-featured-image { margin: 0; aspect-ratio: 16/10; background: var(--c-sand); }
.c-posts .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.c-post-card__body { padding: 1.5rem; }
.c-posts .wp-block-post-title { font-size: var(--wp--preset--font-size--lg); margin: .5rem 0; }
.c-posts .wp-block-post-date { font-size: var(--wp--preset--font-size--xs); color: var(--c-muted); }
.c-posts .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--sm); color: var(--c-muted); }
.c-prose { font-size: 1.125rem; }
.c-prose > * + * { margin-top: 1.4em; }
.c-prose h2 { font-size: var(--wp--preset--font-size--xl); margin-top: 2em; }

/* ---------- Footer ---------- */
.c-footer { background: var(--c-ink); color: var(--c-cream); padding-block: var(--wp--preset--spacing--60) 2rem; overflow: hidden; }
.c-footer a { color: rgba(246, 242, 235, .75); text-decoration: none; transition: color .2s; }
.c-footer a:hover { color: var(--c-hivis); }
.c-footer h4 { font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: .14em; color: rgba(246, 242, 235, .5); margin: 0 0 1.25rem; font-weight: 600; }
.c-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: var(--wp--preset--font-size--sm); }
.c-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem 2rem; }
.c-footer__about p { color: rgba(246, 242, 235, .65); font-size: var(--wp--preset--font-size--sm); max-width: 34ch; margin: 1.25rem 0 0; }
.c-footer__wordmark { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(4rem, 17vw, 15rem); letter-spacing: -.06em; line-height: .8; margin: 4rem 0 0; color: transparent; -webkit-text-stroke: 1px rgba(246, 242, 235, .18); user-select: none; white-space: nowrap; text-align: center; }
.c-footer__wordmark i { font-style: normal; -webkit-text-stroke: 0; color: var(--c-signal); }
.c-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--wp--preset--font-size--xs); color: rgba(246, 242, 235, .5); }
.c-footer__wa { display: inline-flex !important; align-items: center; gap: .5rem; margin-top: 1rem; padding: .7rem 1.1rem; border-radius: 999px; background: #25D366; color: var(--c-ink) !important; font-weight: 600; font-size: var(--wp--preset--font-size--sm); }
.c-footer__wa:hover { background: var(--c-hivis); }
.c-footer__wa svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .c-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .c-footer__grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.c-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(12,24,32,.45); transition: transform .3s var(--c-ease); }
.c-fab:hover { transform: scale(1.08) rotate(-6deg); }
.c-fab svg { width: 30px; height: 30px; fill: #fff; }
.c-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 404 */
.c-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.c-404 h1 { font-size: clamp(6rem, 22vw, 16rem); line-height: .85; letter-spacing: -.06em; color: var(--c-signal); margin: 0; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.c-js .c-reveal { opacity: 1; transform: none; }
	.c-marquee__track { animation: none; }
}

/* Small refinements */
.c-eyebrow.has-text-align-center { display: flex; justify-content: center; }
.c-quote figcaption .c-stars { opacity: 1; color: var(--c-signal); }
.c-footer li { color: rgba(246, 242, 235, .75); }
.c-crumbs, .c-crumbs p, .c-crumbs .wp-block-post-terms { font-size: var(--wp--preset--font-size--xs); margin: 0; }
