/* Consecution theme: layout, header, footer, sections and block styles.
   Colors and fonts come from theme.json (var(--wp--preset--...)). */

:root {
	--cj-navy: var(--wp--preset--color--navy);
	--cj-indigo: var(--wp--preset--color--indigo);
	--cj-red: var(--wp--preset--color--red);
	--cj-ink: var(--wp--preset--color--ink);
	--cj-muted: var(--wp--preset--color--muted);
	--cj-mist: var(--wp--preset--color--mist);
	--cj-line: var(--wp--preset--color--line);
	--cj-radius: 10px;
	--cj-shadow: 0 1px 2px rgba(18, 23, 42, .06), 0 8px 24px rgba(18, 23, 42, .07);
	/* Brand stripe: the logo's belt colours, blue → purple → brown → black, red tip. */
	--cj-stripe: linear-gradient(115deg, #225599 0 25%, #442288 25% 50%, #553311 50% 75%, #222 75% 92%, #bb2222 92% 100%);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--cj-indigo); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ---------- Header ---------- */
.cj-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
@media (max-width: 600px) { .admin-bar .cj-site-header { top: 0; } } /* the admin bar isn't fixed on phones */
.cj-header {
	/* Solid, not blurred: a backdrop blur traps the full-screen phone menu inside the header bar. */
	background: rgba(255, 255, 255, .98);
	border-bottom: 1px solid var(--cj-line);
	padding-block: .55rem;
}
.cj-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--cj-stripe); }
.cj-header { position: relative; }
.cj-brand { min-width: 0; }
.cj-logo { display: block; line-height: 0; }
.cj-logo img { display: block; width: auto; }
.cj-header .cj-logo img { height: 62px; }
.cj-footer .cj-logo img { height: 120px; margin-bottom: .5rem; }
@media (max-width: 600px) { .cj-header .cj-logo img { height: 40px; } }
.cj-brand .wp-block-site-title { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; text-transform: uppercase; font-size: 1.25rem; line-height: 1; letter-spacing: .02em; }
.cj-brand .wp-block-site-title a { color: var(--cj-navy); text-decoration: none; }
.cj-nav { font-family: var(--wp--preset--font-family--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: .98rem; }
.cj-nav a { text-decoration: none; color: var(--cj-ink); }
.cj-nav a:hover, .cj-nav .current-menu-item > a { color: var(--cj-red); }
.cj-trial-btn.wp-element-button { padding: .6rem 1.1rem; white-space: nowrap; }
/* Header call button: quiet navy outline, number on wide screens, "Call" on small ones. */
.cj-call.wp-element-button {
	display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
	padding: .55rem 1rem; font-size: .95rem;
	background: transparent; color: var(--cj-navy); border: 2px solid var(--cj-navy);
}
.cj-call.wp-element-button:hover { background: var(--cj-navy); color: #fff; }
.cj-call svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.cj-call__num { display: none; }
@media (min-width: 1180px) {
	.cj-call__label { display: none; }
	.cj-call__num { display: inline; }
}
/* In the navy "Come see us" band: solid white, always shows the number. */
.cj-cta__actions { gap: .75rem; margin-top: 1.5rem; }
.cj-cta__actions .wp-block-buttons { margin: 0; }
.cj-section--navy .cj-call.wp-element-button { background: #fff; color: var(--cj-navy); border-color: #fff; padding: .8rem 1.4rem; font-size: 1rem; }
.cj-section--navy .cj-call.wp-element-button:hover { background: transparent; color: #fff; }
.cj-section--navy .cj-call__label { display: none; }
.cj-section--navy .cj-call__num { display: inline; }
/* Menu button on phones and tablets, full links from 1024px up. */
@media (min-width: 600px) and (max-width: 1023px) {
	.cj-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.cj-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.cj-nav .wp-block-navigation__responsive-container-open { color: var(--cj-navy); }
.cj-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.cj-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.cj-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* Full-screen phone menu: navy, big stacked links, belt stripe on top. */
.cj-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 1.5rem 2rem; background-image: var(--cj-stripe); background-size: 100% 6px; background-repeat: no-repeat; }
.cj-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; gap: .25rem; }
.cj-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.cj-nav .is-menu-open .wp-block-navigation__container { align-items: stretch !important; width: 100%; gap: 0 !important; }
.cj-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.cj-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: .7rem 0; font-size: 1.75rem; letter-spacing: .06em; color: #fff; }
.cj-nav .is-menu-open .wp-block-navigation-item__content:hover,
.cj-nav .is-menu-open .current-menu-item > a,
.cj-nav .is-menu-open [aria-current="page"] { color: #ff8b97; }
@media (max-width: 600px) {
	.cj-brand .wp-block-site-title { font-size: 1.05rem; }
	.cj-brand .wp-block-site-logo img { width: 44px !important; }
	.cj-header__right { gap: .75rem !important; }
	.cj-trial-btn.wp-element-button { padding: .5rem .8rem; font-size: .9rem; }
	.cj-call.wp-element-button { padding: .45rem .8rem; font-size: .9rem; }
}

/* ---------- Announcement ---------- */
.cj-notice { background: var(--cj-red); color: #fff; text-align: center; padding: .5rem 1rem; font-weight: 600; font-size: .95rem; }
.cj-notice a { color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
.cj-main > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.cj-section { padding-block: var(--wp--preset--spacing--60); }
.cj-section--mist { background: var(--cj-mist); }
.cj-section--navy { background: var(--cj-navy); color: #fff; }
.cj-section--navy :where(h1, h2, h3) { color: #fff; }
.cj-section--navy a:not(.wp-element-button) { color: #fff; }
.cj-section + .cj-section { margin-top: 0 !important; }
.wp-block-post-content > .cj-section { margin-block: 0; }

.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .9rem;
	color: var(--cj-red); margin-bottom: .4rem !important;
}
.cj-section--navy .is-style-eyebrow, .cj-hero .is-style-eyebrow { color: #ff8b97; }
.cj-lead { font-size: 1.2rem; color: var(--cj-muted); max-width: 62ch; }
.cj-section--navy .cj-lead, .cj-hero .cj-lead { color: rgba(255, 255, 255, .85); }
.has-text-align-center.cj-lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.cj-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--cj-navy); color: #fff;
	padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6.5rem);
}
.cj-hero::before {
	/* angled brand bands across the right edge */
	content: ""; position: absolute; z-index: -1; inset: -20% -6% -20% 70%;
	background: var(--cj-stripe); transform: skewX(-14deg); opacity: .95;
}
.cj-hero.has-photo::before { inset: -20% -10% -20% 72%; opacity: .9; }
.cj-hero h1 { color: #fff; max-width: 14ch; }
.cj-hero h1 em { font-style: normal; color: #ff8b97; }
.cj-hero .wp-block-cover__image-background { opacity: .35; }
@media (max-width: 781px) { .cj-hero::before { inset: auto -20% -12% 35%; height: 30%; } }

.wp-block-button.is-style-outline > .wp-element-button { background: transparent; border: 2px solid currentColor; color: var(--cj-navy); }
.wp-block-button.is-style-outline > .wp-element-button:hover { background: var(--cj-navy); color: #fff; border-color: var(--cj-navy); }
.cj-hero .is-style-outline > .wp-element-button, .cj-section--navy .is-style-outline > .wp-element-button { color: #fff; }
.cj-hero .is-style-outline > .wp-element-button:hover, .cj-section--navy .is-style-outline > .wp-element-button:hover { background: #fff; color: var(--cj-navy); border-color: #fff; }

/* Hero text sits left, inside the wide column. */
.cj-hero > .alignwide > :where(:not(.alignwide):not(.alignfull)) { margin-left: 0 !important; }
.cj-hero .wp-block-buttons { margin-top: 1.75rem; }

/* Trust strip under hero */
.cj-proof { margin-top: 1.5rem !important; }
.cj-proof { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; padding: 0; margin: 0; font-weight: 600; color: rgba(255, 255, 255, .9); }
.cj-proof li::before { content: "✓"; color: #ff8b97; margin-right: .45rem; }

/* ---------- Cards ---------- */
.is-style-card, .cj-card {
	background: #fff; border: 1px solid var(--cj-line); border-radius: var(--cj-radius);
	box-shadow: var(--cj-shadow); padding: clamp(1.25rem, 3vw, 2rem); height: 100%;
}
.cj-card--program { position: relative; overflow: hidden; padding-top: 2.4rem; }
.cj-card--program::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--cj-stripe); }
.cj-card--program h3 { margin-top: 0; }
.wp-block-columns.cj-cards { gap: 1.5rem; }
.wp-block-columns.cj-cards > .wp-block-column { display: flex; }
.wp-block-columns.cj-cards > .wp-block-column > * { flex: 1; }

/* Image with brand stripe edge */
.is-style-stripe { position: relative; }
.is-style-stripe img { border-radius: var(--cj-radius); display: block; }
.is-style-stripe::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: -8px; height: 8px; border-radius: 0 0 6px 6px; background: var(--cj-stripe); }

/* Photos inside program cards: same shape, cropped to fill */
.cj-card-photo { margin: 0 0 1rem; }
.cj-card-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.is-style-stripe img { width: 100%; object-fit: cover; }
.cj-coach .is-style-stripe { max-width: 440px; }
.cj-coach .is-style-stripe img { aspect-ratio: 1 / 1; object-position: 50% 12%; }

/* Check list */
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--cj-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 75% no-repeat;
}

/* Numbered steps */
.is-style-steps { counter-reset: cjstep; }
.is-style-steps > .wp-block-column { counter-increment: cjstep; position: relative; padding-top: 3.4rem; }
.is-style-steps > .wp-block-column::before {
	content: counter(cjstep); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--cj-navy); color: #fff;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.2rem;
}
.is-style-steps h3 { margin-top: 0; }

/* Coach block */
.cj-coach .wp-block-media-text__media img { border-radius: var(--cj-radius); }
.cj-belt { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; padding: .3rem .8rem; border-radius: 99px; background: var(--cj-ink); color: #fff; }
.cj-belt::before { content: ""; width: 1.4rem; height: .5rem; border-radius: 2px; background: #000; box-shadow: inset -.4rem 0 0 var(--cj-red); outline: 1px solid rgba(255,255,255,.4); }

/* CTA band */
.cj-cta { position: relative; overflow: hidden; isolation: isolate; }
.cj-cta::after { content: ""; position: absolute; z-index: -1; right: -6%; top: -30%; bottom: -30%; width: 24%; background: var(--cj-stripe); transform: skewX(-14deg); opacity: .9; }
@media (max-width: 781px) { .cj-cta::after { width: 18%; right: -10%; } }

/* FAQ */
.cj-faq .wp-block-details { border-bottom: 1px solid var(--cj-line); padding-block: 1rem; }
.cj-faq .wp-block-details summary { font-weight: 600; font-size: 1.1rem; cursor: pointer; color: var(--cj-navy); }
.cj-faq .wp-block-details[open] summary { color: var(--cj-red); }

/* Placeholder photo (until real photos arrive) */
.cj-photo-slot {
	aspect-ratio: 4 / 3; border-radius: var(--cj-radius); display: grid; place-items: center; text-align: center;
	background: repeating-linear-gradient(135deg, var(--cj-mist) 0 14px, #e8eaf1 14px 28px);
	color: var(--cj-muted); font-weight: 600; padding: 1rem; border: 2px dashed var(--cj-line);
}

/* ---------- Footer ---------- */
.cj-footer { position: relative; }
.cj-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--cj-stripe); }
.cj-footer a { color: #fff; text-decoration: none; }
.cj-footer a:hover { color: #ff8b97; }
.cj-footer .wp-block-site-title a { color: #fff; }
.cj-footer__h { font-size: 1.05rem !important; letter-spacing: .1em; color: #fff !important; margin-bottom: .75rem; }
.cj-footer .cj-tagline { color: rgba(255, 255, 255, .8); max-width: 36ch; }
.cj-footer__links { list-style: none; padding: 0; margin: 0; }
.cj-footer__links li { margin-bottom: .45rem; }
.cj-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.25rem; margin-top: 2.5rem !important; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.cj-footer__bottom p { margin: 0; }
.cj-footer .cj-contact-list { color: #fff; }
.cj-footer .cj-contact-list .cj-icon { color: #ff8b97; }
.cj-footer .cj-cl__label { color: rgba(255, 255, 255, .6); }

/* Page title on normal pages */
.cj-main > .wp-block-post-title { margin-bottom: var(--wp--preset--spacing--40); }
