/*
Theme Name: Aquira Murillo
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aquira-murillo
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === Midnight design system === */
:root {
	--am-gold: var(--wp--preset--color--primary);
	--am-cream: var(--wp--preset--color--text);
	--am-bg: var(--wp--preset--color--background);
	--am-panel: #172743;
	--am-rule: #3a4f78;
	--am-rule-40: color-mix(in srgb, var(--am-rule) 40%, transparent);
}

body {
	background-color: var(--am-bg);
	color: var(--am-cream);
}

/* imagery treatment */
.wp-block-image img,
.woocommerce ul.products li.product img {
	filter: contrast(1.05) saturate(0.9);
}

/* product prices in gold, titles in cream */
.woocommerce-Price-amount {
	color: var(--am-gold);
}
.wc-block-grid__product-price,
.woocommerce-page .price {
	color: var(--am-gold);
}
.wc-block-grid__product-title a,
.wp-block-post-title a {
	color: var(--am-cream);
	text-decoration: none;
}
.wc-block-grid__product-title a:hover,
.wp-block-post-title a:hover {
	color: var(--am-gold);
}

/* eyebrows (labels) — held in flex rows so they shrink-wrap */
.hero-eyebrow,
.section-eyebrow {
	color: var(--am-rule);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	font-weight: 500;
}

/* gold on a headline word */
h1 em,
h2 em,
h3 em {
	color: var(--am-gold);
	font-style: italic;
}

/* === sticky split hero === */
.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}
.split-left {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	align-self: start;
}
.split-left img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.split-right {
	padding: clamp(2.5rem, 6vw, 6rem);
	display: grid;
	gap: 1.5rem;
	place-content: center;
}
.hero-title {
	color: var(--am-cream);
}
.hero-intro {
	color: var(--am-cream);
	opacity: 0.85;
	max-width: 34rem;
}

/* === content bands === */
.band {
	padding-block: clamp(3rem, 7vw, 6rem);
}
.band-alt {
	background: var(--am-panel);
	border-block: 1px solid var(--am-rule-40);
}
.band p {
	color: var(--am-cream);
	opacity: 0.85;
}

/* cards (paint their own box — own the horizontal padding) */
.service-card,
.project-card {
	background: var(--am-panel);
	border: 1px solid var(--am-rule-40);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
	align-items: flex-start;
}
.service-card .price {
	color: var(--am-gold);
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.9rem;
	font-weight: 500;
	opacity: 1;
}
.service-card h3,
.project-card h2 {
	margin-top: 0;
}

/* === header / footer === */
.site-header {
	border-bottom: 1px solid var(--am-rule-40);
	position: relative;
	z-index: 20;
}
.site-header .wp-block-site-title a {
	color: var(--am-cream);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.4rem;
}
.site-header .wp-block-navigation a {
	color: var(--am-cream);
}
.site-header .wp-block-navigation a:hover {
	color: var(--am-gold);
}
.woocommerce-mini-cart__button {
	color: var(--am-cream) !important;
}
.site-footer {
	border-top: 1px solid var(--am-rule-40);
}
.footer-brand {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.3rem;
	color: var(--am-cream);
}
.site-footer p {
	color: var(--am-rule);
}

/* === buttons === */
.wp-element-button {
	cursor: pointer;
	transition: background-color 300ms ease;
}
.wp-element-button:hover {
	background: color-mix(in srgb, var(--am-gold) 88%, white);
}

/* === WooCommerce forms on navy === */
.woocommerce input,
.woocommerce textarea,
.select2-container .select2-selection {
	background: var(--am-bg);
	color: var(--am-cream);
	border-color: var(--am-rule);
}
.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--am-gold);
}

/* === responsive === */
@media (max-width: 782px) {
	.split {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.split-left {
		position: static;
		height: auto;
	}
	.split-left img {
		aspect-ratio: 4 / 5;
	}
	.split-right {
		padding: 2rem 1.5rem;
	}
}

/* === reduced motion === */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
}

/* === motion === */
.split-photo {
	animation: split-settle 6s ease-out both;
}
@keyframes split-settle {
	from { transform: scale(1.04); }
	to { transform: scale(1); }
}
.reveal {
	transition: opacity 600ms ease, transform 600ms ease;
}
.reveal--hidden {
	opacity: 0;
	transform: translateY(12px);
}
@media (prefers-reduced-motion: reduce) {
	.reveal--hidden {
		opacity: 1;
		transform: none;
	}
}
