/*
Theme Name: Critical Chance
Theme URI: https://criticalchance.net
Author: Critical Chance OOD
Description: Dark, premium block theme for Critical Chance and Gympanzee wear. Edit everything in Appearance > Editor.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: All rights reserved
Text Domain: criticalchance
*/

/* ---------- Basics ---------- */
body { margin: 0; }
p { margin: 0; }
.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Side padding for full-width sections */
.cc-header, .cc-hero, .cc-section, .cc-footer, .cc-mf-list { padding-left: 32px !important; padding-right: 32px !important; }
.cc-main > * { margin-block-start: 0 !important; }

/* Small uppercase label above headings */
.cc-eyebrow { font-size: 13px !important; letter-spacing: 3px; text-transform: uppercase; color: var(--wp--preset--color--gold); font-weight: 600; }
.cc-muted { color: var(--wp--preset--color--muted); }
.cc-lead { font-size: 20px; color: var(--wp--preset--color--muted); max-width: 620px; }
.cc-small { font-size: 14px; color: #8B8E97; }

/* ---------- Header ---------- */
.cc-header { border-bottom: 1px solid #1F2128; padding-top: 18px; padding-bottom: 18px; }
.cc-header .cc-logo { margin: 0; }
.cc-header .cc-logo img { width: 251px; height: auto; display: block; }
.cc-header .wp-block-navigation { font-size: 15px; gap: 28px; }
.cc-header .wp-block-navigation a { color: #C9CBD1; }
.cc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }
.cc-header .wp-block-button__link { padding: 11px 20px; font-size: 15px; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--ground) !important; color: var(--wp--preset--color--text) !important; }

/* ---------- Sections ---------- */
.cc-section { padding-top: 100px !important; padding-bottom: 100px !important; }
.cc-alt { background: var(--wp--preset--color--surface); border-top: 1px solid #1F2128; border-bottom: 1px solid #1F2128; }
.cc-section-head { max-width: none !important; }
.cc-section-head > * { max-width: 720px; }
/* Narrow text blocks start on the same left edge as the full-width content */
.cc-section-head > *, .cc-hero h1, .cc-hero .cc-lead, .cc-hero .cc-small {
	margin-left: max(0px, calc((100% - 1136px) / 2)) !important;
	margin-right: auto !important;
}
.wp-block-column > .cc-card { height: 100%; box-sizing: border-box; }

/* Hero with faint emblem watermark */
.cc-hero { position: relative; overflow: hidden; padding-top: 140px !important; padding-bottom: 130px !important; }
.cc-hero > * { position: relative; z-index: 1; }
.cc-hero .cc-watermark { position: absolute !important; right: -140px; top: 50%; transform: translateY(-50%); width: 680px; max-width: none !important; margin: 0 !important; opacity: 0.05; pointer-events: none; z-index: 0; }
.cc-hero .cc-watermark img { width: 680px; height: 680px; }
.cc-hero h1 { max-width: 820px; }

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--text); border: 1px solid #3A3D46; padding: 15px 27px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold); background: transparent; }

/* Cards */
.cc-card { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 36px !important; }
.cc-card .cc-num { font-family: var(--wp--preset--font-family--questrial); font-size: 15px; color: var(--wp--preset--color--gold); }
.cc-card h3 { font-size: 30px; }

/* Service tags */
.cc-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-tags p { border: 1px solid #30333B; border-radius: 999px; padding: 10px 20px; font-size: 15px; margin: 0 !important; }

/* Steps */
.cc-step { border-top: 1px solid #30333B; padding-top: 24px !important; }
.cc-step.cc-first { border-top-color: var(--wp--preset--color--gold); }
.cc-step h3 { font-size: 26px; }

/* Gympanzee feature */
.cc-feature-img { background: var(--wp--preset--color--card); border: 1px solid var(--wp--preset--color--line); border-radius: 16px; padding: 24px !important; display: flex; justify-content: center; gap: 4px; }
.cc-feature-img figure { margin: 0 !important; }
.cc-feature-img img { height: 460px; width: auto; }

/* People */
.cc-person .cc-portrait img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid #30333B; }
.cc-person .cc-portrait { margin: 0 0 8px; }
.cc-role { font-size: 15px; color: var(--wp--preset--color--gold); }
.cc-badge { align-self: flex-start; display: inline-block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--ground); background: var(--wp--preset--color--gold); padding: 4px 10px; border-radius: 999px; font-weight: 600; }

/* Contact form (Contact Form 7) */
.cc-form .wpcf7 label { display: block; font-size: 14px; color: #C9CBD1; }
.cc-form .wpcf7 input[type="text"], .cc-form .wpcf7 input[type="email"], .cc-form .wpcf7 textarea {
	width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--ground); border: 1px solid #30333B; border-radius: 8px; padding: 12px 14px;
}
.cc-form .wpcf7 input:focus, .cc-form .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 1px; }
.cc-form .wpcf7 p { margin-bottom: 18px; }
.cc-form .wpcf7 input[type="submit"] { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ground); border: 0; border-radius: 999px; padding: 16px 28px; font: 600 16px var(--wp--preset--font-family--inter); cursor: pointer; }
.cc-form .wpcf7 input[type="submit"]:hover { background: #FFC94D; }

/* ---------- MYTHFORGED ---------- */
.cc-mf-title { font-size: clamp(48px, 7vw, 80px) !important; letter-spacing: 2px; line-height: 1 !important; }
.cc-chapter { background: var(--wp--preset--color--surface); border: 1px solid #1F2128; border-radius: 20px; padding: 40px !important; }
.cc-chapter .cc-shirts { display: flex; justify-content: center; gap: 8px; }
.cc-chapter .cc-shirts figure { margin: 0 !important; width: 48%; max-width: 260px; }
.cc-chapter .cc-shirts img { width: 100%; height: auto; }
.cc-chapter h2 { font-size: 44px; }
.cc-chapter .cc-tagline { font-family: var(--wp--preset--font-family--questrial); font-size: 22px; }
.cc-chapter .cc-story { font-size: 18px; color: var(--wp--preset--color--muted); }
.cc-chapter .cc-symbols { font-size: 14px; color: #8B8E97; border-top: 1px solid var(--wp--preset--color--line); padding-top: 16px; }
.cc-c-blue { color: #5B8BE0 !important; }
.cc-c-gold { color: #D4A24C !important; }
.cc-c-yellow { color: #F2A71B !important; }
.cc-c-teal { color: #3ED6B5 !important; }

/* ---------- Footer ---------- */
.cc-footer { border-top: 1px solid #1F2128; padding-top: 32px !important; padding-bottom: 32px !important; font-size: 14px; color: #8B8E97; }
.cc-footer .cc-tagmark { font-family: var(--wp--preset--font-family--questrial); letter-spacing: 2px; }

/* ---------- Phones ---------- */
@media (max-width: 781px) {
	.cc-section { padding-top: 70px !important; padding-bottom: 70px !important; }
	.cc-hero { padding-top: 90px !important; padding-bottom: 80px !important; }
	.cc-hero .cc-watermark { right: -260px; }
	.cc-feature-img img { height: 300px; }
	.cc-chapter { padding: 24px !important; }
	.cc-header .cc-logo img { width: 190px; }
}
