/* GrowJitsu Gym theme styles. Colors and type come from theme.json presets. */
:root {
	--cc-orange: var(--wp--preset--color--primary);
	--cc-navy: var(--wp--preset--color--secondary);
	--cc-navy-mid: var(--wp--preset--color--secondary-mid);
	--cc-ink: var(--wp--preset--color--dark);
	--cc-light: var(--wp--preset--color--light);
	--cc-line: var(--wp--preset--color--line);
	--cc-muted: var(--wp--preset--color--muted);
	--cc-heading: var(--wp--preset--font-family--heading);
	--cc-section-y: clamp(52px, 7vw, 88px);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* Remove default gaps between full-width sections */
.cc-main > .wp-block-post-content > .alignfull,
.cc-main > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Shared bits ---------- */
.cc-section { padding-top: var(--cc-section-y) !important; padding-bottom: var(--cc-section-y) !important; }
.cc-eyebrow {
	font-family: var(--cc-heading);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 15px;
	color: var(--cc-orange) !important;
	margin-bottom: 0.5rem !important;
}
.cc-eyebrow + .wp-block-heading { margin-top: 0 !important; }
.cc-lead { font-size: 19px; color: var(--cc-muted); max-width: 720px; }
.cc-lead.has-text-align-center { margin-left: auto !important; margin-right: auto !important; }
.has-white-color .cc-lead,
.has-white-color p { color: #C9D3DC; }
.has-white-color .wp-block-heading { color: #fff; }
.cc-arr { font-size: 1.15em; line-height: 1; margin-left: 4px; }
.wp-block-heading { text-wrap: balance; }

/* Buttons: sharp corners, 3D offset shadow */
.wp-block-button__link { transition: transform .12s ease, box-shadow .12s ease; }
.wp-block-button__link:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--cc-navy) !important; }
.has-white-color .wp-block-button__link,
.cc-nav .wp-block-button__link { box-shadow: 5px 5px 0 #000; }
.has-white-color .wp-block-button__link:hover { box-shadow: 3px 3px 0 #000 !important; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--cc-navy);
	border: 2px solid var(--cc-navy);
	box-shadow: none;
	padding: 16px 30px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--cc-navy); color: #fff; transform: none; box-shadow: none !important; }
.has-white-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; box-shadow: none; }
.has-white-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--cc-navy); }
.wp-block-buttons { gap: 18px; margin-top: 1.75rem !important; }
:focus-visible { outline: 3px solid var(--cc-orange); outline-offset: 2px; }

/* Background image helper: an Image block with .cc-bg fills its parent section */
.cc-hero, .cc-final, .cc-prog { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-image.cc-bg { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; width: 100% !important; height: 100%; z-index: -2; }
.wp-block-image.cc-bg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Header ---------- */
.cc-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .cc-site-header { top: 32px; }
.cc-topbar { padding: 8px 20px !important; font-size: 14px; font-weight: 600; }
.cc-topbar p { margin: 0; color: #fff !important; }
.cc-topbar a { color: #fff; text-decoration: underline; }
.cc-nav { padding-top: 14px !important; padding-bottom: 14px !important; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.cc-nav-row { gap: 24px; }
.cc-logo { margin: 0 !important; flex-shrink: 0; }
.cc-logo img { height: 40px !important; width: auto !important; display: block; }
.cc-menu { margin-left: auto; }
.cc-menu .wp-block-navigation-item__content { color: #fff !important; }
.cc-menu .wp-block-navigation-item__content:hover { color: var(--cc-orange); }
.cc-menu .wp-block-navigation__container { gap: 30px; }
.cc-nav-cta { margin-top: 0 !important; }
.cc-nav-cta .wp-block-button__link { padding: 11px 22px; font-size: 15px; box-shadow: 4px 4px 0 #000; }
.cc-menu .wp-block-navigation__responsive-container-open,
.cc-menu .wp-block-navigation__responsive-container-close { background: transparent !important; color: #fff !important; border: 0 !important; box-shadow: none !important; padding: 6px !important; }
.cc-menu .wp-block-navigation__responsive-container-open svg { fill: #fff; width: 30px; height: 30px; }
.cc-menu .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 20px; }
.cc-menu .is-menu-open .wp-block-navigation-item__content { font-size: 22px; }

/* ---------- Hero ---------- */
.cc-hero { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding-top: 110px !important; padding-bottom: 110px !important; }
.cc-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,38,51,.95) 0%, rgba(21,38,51,.8) 48%, rgba(21,38,51,.35) 100%); }
.cc-hero h1 { max-width: 820px; }
.cc-hero .cc-lead { font-size: 20px; color: #E3E9EF; max-width: 600px; }
.cc-hero:not(.cc-hero-short) > *:not(.cc-bg) { margin-left: max(0px, calc((100% - 1180px) / 2)) !important; margin-right: auto !important; }
.cc-hero-short { min-height: 0; padding-top: 90px !important; padding-bottom: 90px !important; }
.cc-hero-short::before { background: rgba(21,38,51,.86); }
.cc-hero-short > * { margin-left: auto !important; margin-right: auto !important; }
.cc-hero-short .cc-lead { margin-left: auto !important; max-width: 680px; }
.cc-trust { gap: 34px !important; margin-top: 2.5rem !important; }
.cc-trust p { margin: 0; font-size: 15px; font-weight: 600; color: #C9D3DC; line-height: 1.4; }
.cc-trust strong { color: #fff; font-family: var(--cc-heading); font-size: 22px; font-weight: 700; }

/* ---------- Cards (Why, Booked) ---------- */
.cc-cards { gap: 28px !important; margin-top: 3rem !important; }
.cc-card { background: #fff; padding: 34px 28px !important; border-top: 5px solid var(--cc-orange); box-shadow: 0 10px 30px rgba(21,38,51,.08); height: 100%; }
.cc-card h3 { font-size: 22px; margin: 0 0 10px !important; }
.cc-card p { color: var(--cc-muted); font-size: 16px; margin: 0; }
.cc-num { font-family: var(--cc-heading); font-weight: 800; color: var(--cc-orange) !important; font-size: 44px !important; line-height: 1; margin: 0 0 14px !important; }

/* ---------- Video ---------- */
.cc-video-frame { max-width: 920px !important; margin: 2.5rem auto 0 !important; border: 4px solid var(--cc-navy); box-shadow: 10px 10px 0 var(--cc-orange); background: #000; }
.cc-video-frame video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Split sections (Guide, Steps) ---------- */
.cc-guide, .cc-steps { padding: 0 !important; }
.cc-split { gap: 0 !important; margin: 0 !important; align-items: stretch !important; }
.cc-split .cc-photo { position: relative; min-height: 380px; }
.cc-split .cc-photo .cc-fill { position: absolute; inset: 0; margin: 0; height: 100%; }
.cc-split .cc-photo .cc-fill img { width: 100%; height: 100%; object-fit: cover; }
.cc-split .cc-copy { padding: clamp(52px, 7vw, 88px) clamp(20px, 5vw, 64px) !important; display: flex; flex-direction: column; justify-content: center; }
.cc-split .cc-copy > * { max-width: 560px; }
.cc-guide .cc-copy p { font-size: 18px; }
.cc-steps .cc-photo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--cc-orange); z-index: 2; }
.cc-steps h2 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 1.5rem !important; }
.cc-step { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.cc-step:last-of-type { border-bottom: 0; }
.cc-step h3 { font-size: clamp(22px, 2.6vw, 32px); margin: 14px 0 8px !important; }
.cc-step p { margin: 0; font-size: 16.5px; }
.cc-chip { display: inline-block; background: #fff; color: var(--cc-navy) !important; font-family: var(--cc-heading); font-weight: 600; font-size: 17px; text-transform: uppercase; padding: 5px 12px; letter-spacing: .5px; margin: 0 !important; }
.cc-chip strong { color: var(--cc-orange); }

/* ---------- Pillars ---------- */
.cc-pillars { gap: 22px !important; margin-top: 3rem !important; }
.cc-pillar { background: #fff; padding: 32px 26px !important; border: 1px solid var(--cc-line); height: 100%; transition: transform .2s, box-shadow .2s; }
.cc-pillar:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(21,38,51,.1); }
.cc-pillar::before { content: ""; display: block; width: 58px; height: 58px; margin-bottom: 20px; box-shadow: 4px 4px 0 var(--cc-navy);
	background: var(--cc-orange) var(--cc-icon) center / 28px no-repeat; }
.cc-pillar h3 { font-size: 24px; margin: 0 0 10px !important; }
.cc-pillar p { color: var(--cc-muted); font-size: 15.5px; margin: 0; }
.cc-ico-growth { --cc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M14 7h7v7'/%3E%3C/svg%3E"); }
.cc-ico-challenge { --cc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 4v16M18 4v16M3 8v8M21 8v8M6 12h12'/%3E%3C/svg%3E"); }
.cc-ico-community { --cc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Ccircle cx='17' cy='9' r='2.6'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M15 14.3c.6-.2 1.3-.3 2-.3 2.8 0 4 2 4 5'/%3E%3C/svg%3E"); }
.cc-ico-longevity { --cc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.4-9.3-9C1.2 8.6 3.3 5 6.8 5c2 0 3.5 1.1 4.2 2.4h2C13.7 6.1 15.2 5 17.2 5c3.5 0 5.6 3.6 4.1 7-2.3 4.6-9.3 9-9.3 9z'/%3E%3C/svg%3E"); }

/* ---------- Programs ---------- */
.cc-prog-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3rem !important; }
.cc-prog-grid > * { margin: 0 !important; }
.cc-prog { min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px !important; background: var(--cc-navy-mid); }
.cc-prog::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(21,38,51,.95) 0%, rgba(21,38,51,.35) 60%, rgba(21,38,51,.05) 100%); }
.cc-prog.cc-feature { grid-column: span 2; }
.cc-prog .cc-bg img { transition: transform .4s; }
.cc-prog:hover .cc-bg img { transform: scale(1.05); }
.cc-prog h3 { font-size: 26px; margin: 0 0 6px !important; }
.cc-prog p { font-size: 15px; color: #D5DDE4; margin: 0; }
.cc-prog .cc-tag { align-self: flex-start; background: var(--cc-orange); color: #fff !important; font-family: var(--cc-heading); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; padding: 4px 10px; margin-bottom: 10px; }
.cc-prog .cc-more { margin-top: 10px; }
.cc-prog .cc-more a { color: var(--cc-orange); font-family: var(--cc-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }

/* ---------- Coaches ---------- */
.cc-coach-cols { gap: 56px !important; align-items: center !important; }
.cc-coach-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cc-coach-grid > * { margin: 0 !important; }
.cc-coach { background: var(--cc-light); text-align: center; padding-bottom: 14px !important; }
.cc-coach .wp-block-image { margin: 0 0 12px; }
.cc-coach img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.cc-coach h4 { margin: 0 !important; }
.cc-role { margin: 2px 0 0 !important; font-size: 13px; font-weight: 700; color: var(--cc-orange); text-transform: uppercase; letter-spacing: 1px; }
.cc-creds { font-size: 14px; font-weight: 600; color: var(--cc-navy); }
.cc-link-arrow a { font-family: var(--cc-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; border-bottom: 2px solid currentColor; }

/* ---------- Stories + reviews ---------- */
.cc-stories { gap: 26px !important; margin-top: 3rem !important; }
.cc-vt .cc-vt-thumb { position: relative; margin: 0; aspect-ratio: 16/10; overflow: hidden; background: var(--cc-navy); }
.cc-vt .cc-vt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-vt .cc-vt-thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%;
	background: var(--cc-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 4l14 8-14 8z'/%3E%3C/svg%3E") 55% 50% / 26px no-repeat; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.cc-vt h4 { margin: 16px 0 4px !important; }
.cc-vt h4 .cc-arr { color: var(--cc-orange); }
.cc-vt p { margin: 0; font-size: 15px; color: var(--cc-muted); }
.cc-vt .cc-ph { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9A6B00; background: #FFF4D6; padding: 2px 8px; }
.cc-reviews { margin-top: 4rem !important; }
.cc-widget-note { text-align: center; color: var(--cc-muted); border: 2px dashed var(--cc-line); padding: 40px 20px; margin: 0; }
.cc-schedule .cc-widget-note { border-color: #3A5163; color: #8FA1B1; }
.cc-review-widget, .cc-schedule-widget, .cc-form-wrap { margin-top: 2rem; }
.cc-form-wrap iframe { width: 100%; border: 0; }

/* ---------- FAQ ---------- */
.cc-faq { margin-top: 2.5rem !important; }
.cc-faq .wp-block-details { margin-top: 0 !important; margin-bottom: 0 !important; }
.cc-faq summary { cursor: pointer; list-style: none; position: relative; padding-right: 40px; font-family: var(--cc-heading); font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--cc-navy); }
.cc-faq summary::-webkit-details-marker { display: none; }
.cc-faq summary::after { content: "+"; position: absolute; right: 4px; top: -6px; font-size: 30px; color: var(--cc-orange); font-weight: 600; }
.cc-faq details[open] summary::after { content: "\2013"; }
.cc-faq details p { color: var(--cc-muted); margin-top: 12px; }

/* ---------- Final CTA ---------- */
.cc-final { padding-top: 110px !important; padding-bottom: 110px !important; }
.cc-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,26,36,.86); }
.cc-final h2 { font-size: clamp(32px, 5vw, 58px); }

/* ---------- Location ---------- */
.cc-location { padding: 0 !important; }
.cc-loc { gap: 0 !important; margin: 0 !important; }
.cc-loc-info { background: var(--cc-light); padding: 64px clamp(20px, 5vw, 48px) !important; }
.cc-loc-info h3 { font-size: 30px; margin-top: 0; }
.cc-info { margin: 0 0 16px !important; }
.cc-info strong { font-family: var(--cc-heading); text-transform: uppercase; letter-spacing: 1px; color: var(--cc-orange); font-size: 14px; }
.cc-loc-map { min-height: 380px; }
.cc-map { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.cc-footer { color: #A9B7C3; padding-top: 56px !important; padding-bottom: 28px !important; font-size: 15px; }
.cc-footer p { color: #A9B7C3; }
.cc-footer a { color: #A9B7C3; text-decoration: none; }
.cc-footer a:hover { color: var(--cc-orange); }
.cc-footer h4 { font-size: 17px; letter-spacing: 1px; margin-top: 0; }
.cc-footer-cols { gap: 40px !important; }
.cc-footer-base { border-top: 1px solid #20313F; margin-top: 40px !important; padding-top: 20px !important; font-size: 13px; gap: 10px; }
.cc-footer-base p { margin: 0; }

/* ---------- Inner pages (Privacy, Terms, blog) ---------- */
.cc-page-hero { padding-top: 72px !important; padding-bottom: 56px !important; }
.cc-page-hero .wp-block-post-title, .cc-page-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0; }
.cc-page-body { padding-top: 56px; padding-bottom: 72px; }
.cc-page-body > * + * { margin-top: 1rem !important; }
.cc-page-body > h2 { margin-top: 2.5rem !important; }
.cc-page-body h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 2.5rem; }
.cc-page-body h3 { font-size: 20px; }
.cc-post-list { padding-top: 56px; padding-bottom: 72px; }
.cc-form-legal { font-size: 13px; color: var(--cc-muted); margin-top: 1.25rem !important; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
	.cc-hero { min-height: 0; padding-top: 72px !important; padding-bottom: 72px !important; }
	.cc-hero::before { background: rgba(21,38,51,.84); }
	.cc-hero:not(.cc-hero-short) > *:not(.cc-bg) { margin-left: auto !important; }
	.cc-prog-grid { grid-template-columns: 1fr 1fr; }
	.cc-prog.cc-feature { grid-column: span 2; }
	.cc-split .cc-photo { min-height: 300px; flex-basis: 100% !important; }
	.cc-steps .cc-split .cc-photo { order: -1; }
	.cc-steps .cc-photo::before { width: 100%; height: 6px; top: auto; }
	.cc-nav .cc-nav-cta { display: none !important; }
	.cc-logo img { height: 32px !important; }
}
@media (max-width: 781px) {
	.cc-prog-grid { grid-template-columns: 1fr; }
	.cc-prog.cc-feature { grid-column: auto; }
	.cc-prog { min-height: 280px; }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; text-align: center; }
	.cc-loc-map { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Get Started (opt-in) page ---------- */
.cc-form-cols { gap: 48px !important; align-items: flex-start !important; }
.cc-form-card { background: #fff; border-top: 6px solid var(--cc-orange); box-shadow: 0 10px 30px rgba(21,38,51,.08); padding: 32px 28px !important; }
.cc-form-title { font-size: clamp(24px, 3vw, 32px); margin-top: 0 !important; }
.cc-form-card .cc-form-wrap { margin-top: 1rem; }
.cc-form-card .cc-form-legal { font-size: 13px; line-height: 1.55; color: var(--cc-muted); border-top: 1px solid var(--cc-line); padding-top: 14px; margin-top: 18px !important; }
.cc-form-aside h3 { margin-top: 0 !important; }
.cc-form-aside { padding-top: 8px; }

/* Line the page title up with the 820px text column on inner pages */
.cc-page .cc-page-hero > * { max-width: 820px !important; margin-left: auto !important; margin-right: auto !important; }
