/*
Theme Name: Four Curious Minds
Description: Block theme for Four Curious Minds. Colors and type come from the train logo: forest green and sky blue, with amber for buttons.
Version: 1.0.0
Requires at least: 6.6
Text Domain: four-curious-minds
WPVibe: yes
Update URI: false
*/

/* Pill buttons stay at least 44px tall for tap targets */
.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Eyebrow label above section titles */
.is-style-fcm-eyebrow {
	font-family: var(--wp--preset--font-family--nunito-sans);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--green-dark);
}

/* Product and content cards */
.is-style-fcm-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	transition: box-shadow 0.2s ease;
}
.is-style-fcm-card:hover {
	box-shadow: 0 6px 18px rgba(35, 35, 31, 0.08);
}

/* Product type badges */
.fcm-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
}
.fcm-badge--physical { background: var(--wp--preset--color--amber-light); color: #8A5215; }
.fcm-badge--digital { background: var(--wp--preset--color--sky-light); color: #2F6585; }

/* Choking hazard warning block on kit product pages */
.fcm-safety-warning {
	border: 2px solid var(--wp--preset--color--ink);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 0.875rem;
	background: var(--wp--preset--color--white);
}

/* Header */
p:has(> .fcm-logo) { margin: 0; line-height: 0; }
.fcm-logo img { height: 56px; width: auto; display: block; }
.fcm-header .wp-block-navigation a { text-decoration: none; }
.fcm-header .wp-block-navigation a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Footer logo badge */
.fcm-footer .has-cream-background-color { display: inline-flex; width: auto; }

/* Footer links */
.fcm-footer a:not(.wp-element-button) { color: #E8E4D6; text-decoration: none; }
.fcm-footer a:not(.wp-element-button):hover { color: #FFFFFF; text-decoration: underline; }

/* Track motif: dashed rail, like the logo's train track */
.fcm-track { height: 2px; background-image: linear-gradient(to right, var(--wp--preset--color--ink-soft) 0 10px, transparent 10px 18px); background-size: 18px 2px; opacity: .35; border: 0; margin: 0; }

/* Hero art panel */
.fcm-hero-art img { width: 100%; height: auto; }

/* Shop-by-type cards */
.is-style-fcm-card h3 a { text-decoration: none; color: inherit; }

/* ===== Shop (WooCommerce) ===== */
.woocommerce ul.products li.product,
.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template > li {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 12px 12px 18px;
	transition: box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover,
.wp-block-woocommerce-product-template > li:hover { box-shadow: 0 6px 18px rgba(35,35,31,.08); }
.woocommerce ul.products li.product img,
.wc-block-components-product-image img { border-radius: 10px; aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-components-product-name { font-family: var(--wp--preset--font-family--baloo-2); font-weight: 700; color: var(--wp--preset--color--ink); font-size: 1.0625rem; line-height: 1.25; text-decoration: none; }
.woocommerce ul.products li.product .price,
.wc-block-components-product-price { color: var(--wp--preset--color--green-dark); font-weight: 700; }
.woocommerce span.onsale,
.wc-block-components-product-sale-badge { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); border-radius: 999px; font-weight: 700; }
.woocommerce-message, .woocommerce-info, .wc-block-components-notice-banner { border-radius: 12px; }
.term-description, .wc-block-term-description { max-width: 720px; font-size: 1.0625rem; }

/* ===== MailPoet signup forms ===== */
.mailpoet_form { padding: 0 !important; background: transparent !important; }
.mailpoet_form .mailpoet_paragraph { margin-bottom: 10px !important; }
.mailpoet_form input.mailpoet_text {
	width: 100% !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 999px !important;
	padding: 12px 18px !important;
	font-family: var(--wp--preset--font-family--nunito-sans) !important;
	font-size: 1rem !important;
	background: #fff !important;
	color: var(--wp--preset--color--ink) !important;
}
.mailpoet_form input.mailpoet_submit {
	background: var(--wp--preset--color--amber) !important;
	color: var(--wp--preset--color--ink) !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 12px 24px !important;
	min-height: 44px;
	font-weight: 700 !important;
	font-family: var(--wp--preset--font-family--nunito-sans) !important;
	cursor: pointer;
	width: auto !important;
}
.mailpoet_form input.mailpoet_submit:hover { background: var(--wp--preset--color--amber-dark) !important; color: #fff !important; }
.mailpoet_form .mailpoet_validate_success { color: var(--wp--preset--color--green-dark) !important; font-weight: 700; background: #DCEBD9; padding: 10px 14px; border-radius: 12px; }
.mailpoet_form .mailpoet_validate_error { color: #8A1C1C !important; }
.has-green-background-color .mailpoet_form .mailpoet_validate_success { background: #fff; }

/* ===== Playful homepage ===== */
.fcm-hero { position: relative; overflow: hidden; }
.fcm-hero::before, .fcm-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.fcm-hero::before { width: 220px; height: 220px; background: var(--wp--preset--color--amber-light); top: -70px; left: -60px; }
.fcm-hero::after { width: 140px; height: 140px; background: var(--wp--preset--color--green-light); bottom: 40px; right: 46%; }
.fcm-hero > * { position: relative; z-index: 1; }
.fcm-confetti { background-image: radial-gradient(circle, #E2933A 3px, transparent 4px), radial-gradient(circle, #2F6B3C 3px, transparent 4px), radial-gradient(circle, #8FC6E8 4px, transparent 5px); background-size: 120px 120px, 170px 170px, 210px 210px; background-position: 10px 20px, 80px 60px, 40px 110px; }

.fcm-chip { display: inline-block; font-weight: 700; font-size: 0.8125rem; padding: 6px 14px; border-radius: 999px; margin: 0 6px 6px 0; }
.fcm-chip--amber { background: #FBE8CF; color: #8A5215; }
.fcm-chip--green { background: #DCEBD9; color: #204A29; }
.fcm-chip--sky { background: #E4F3FA; color: #2F6585; }

.fcm-photo-blob img { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; border: 8px solid #fff; box-shadow: 0 18px 40px rgba(35,35,31,.15); aspect-ratio: 1 / 1; object-fit: cover; }
.fcm-sticker { display: inline-block; transform: rotate(-6deg); background: var(--wp--preset--color--amber); color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--baloo-2); font-weight: 700; padding: 10px 18px; border-radius: 16px; box-shadow: 0 6px 0 #A6641C; }

@media (max-width: 781px) {
	.fcm-skills { flex-wrap: wrap !important; row-gap: 24px; }
	.fcm-skills > .wp-block-column { flex-basis: 30% !important; flex-grow: 0; }
}
.fcm-wave { height: 28px; background: radial-gradient(circle at 14px -6px, transparent 18px, currentColor 19px) 0 0 / 28px 28px repeat-x; margin: 0 !important; }

.fcm-skill { text-align: center; }
.fcm-skill-icon { width: 76px; height: 76px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; line-height: 1; border: 3px dashed rgba(35,35,31,.18); }
.fcm-skill p { margin: 0; font-weight: 700; color: var(--wp--preset--color--ink); font-size: 0.9375rem; }

.fcm-tile { border-radius: 24px; overflow: hidden; transition: transform .2s ease; }
.fcm-tile:hover { transform: translateY(-4px) rotate(-0.5deg); }
.fcm-tile .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 18px; }
.fcm-tile h3 a { text-decoration: none; color: inherit; }

.fcm-step-num { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--baloo-2); font-weight: 700; font-size: 1.5rem; margin-bottom: 8px; }
.fcm-track-light { height: 0; border-top: 3px dashed rgba(255,255,255,.45); margin: 8px 0 24px !important; }

@media (max-width: 781px) {
	.fcm-logo img { height: 44px; }
	.fcm-hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.fcm-tile, .fcm-tile:hover { transition: none; transform: none; }
}
