/*
Theme Name: Locution Child Theme
Theme URI: https://locution.co
Description: Locution's reusable authority-site starter for contractors — a child theme of Twenty Twenty-Five. All brand values (colors, fonts, spacing) live in theme.json; the component styles below are brand-agnostic and reference design tokens by name, so rebranding a new client is a hex-swap in theme.json, not an edit here. Demo brand: Pinetree Roofing (pine green + copper).
Author: Locution
Author URI: https://locution.co
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: locution
*/

/* =================================================================
   Locution component styles
   -----------------------------------------------------------------
   Every rule below references a design token (var(--wp--preset--...))
   rather than a hard-coded value, so the whole system re-skins from
   theme.json. Apply these classes via a block's
   Advanced -> Additional CSS class(es) field.
   ================================================================= */

/* --- Eyebrow: small uppercase kicker above a heading ------------- */
.eyebrow {
	display: block;
	margin: 0 0 0.5rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent);
}
.eyebrow.is-muted {
	color: var(--wp--preset--color--muted);
}

/* --- Cards: service cards, review cards -------------------------- */
.loc-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.loc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}
/* Image slot inside a card — sits flush to the card edge */
.loc-card-img img {
	display: block;
	width: 100%;
}

/* --- Trust strip: dot-separated inline items -------------------- */
.loc-trust {
	background: var(--wp--preset--color--accent-soft);
}
.loc-trust-item {
	position: relative;
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}
.loc-trust-item:not(:first-child)::before {
	content: "\00b7";
	margin: 0 0.85rem 0 0.35rem;
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}

/* --- Sticky site header ----------------------------------------- */
.loc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--wp--preset--color--line);
}

/* --- Dark (primary) sections ------------------------------------ */
/* Flips text to the light canvas color inside any navy/primary band */
.on-dark :where(h1, h2, h3, h4, p, li) {
	color: var(--wp--preset--color--canvas);
}
/* Eyebrow needs the lighter accent to read on a dark background */
.on-dark .eyebrow {
	color: var(--wp--preset--color--accent-light);
}

/* --- Light outline button (for use on dark sections) ------------ */
.wp-block-button.is-light .wp-block-button__link {
	background: transparent;
	border: 2px solid var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--canvas);
}
.wp-block-button.is-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--canvas);
	color: var(--wp--preset--color--primary);
}

/* --- Form card (white form wrapper inside a dark section) -------- */
.loc-form-card {
	background: var(--wp--preset--color--surface);
}
/* Keep form text/labels dark even inside an .on-dark section, or they
   render white-on-white and vanish. */
.on-dark .loc-form-card,
.on-dark .loc-form-card :where(h1, h2, h3, h4, p, li, label, legend) {
	color: var(--wp--preset--color--ink);
}

/* --- "Learn more ->" card link ---------------------------------- */
.loc-more a,
a.loc-more {
	color: var(--wp--preset--color--accent);
	font-weight: 700;
	text-decoration: none;
}
.loc-more a:hover,
a.loc-more:hover {
	text-decoration: underline;
}

/* --- Alternating rows: reverse image/text order on desktop ------ */
@media (min-width: 782px) {
	.loc-alt {
		flex-direction: row-reverse;
	}
}

/* --- Footer ----------------------------------------------------- */
.loc-footer {
	background: var(--wp--preset--color--canvas);
	border-top: 1px solid var(--wp--preset--color--line);
}
.loc-footer-head {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* --- Sticky-header anchor offset -------------------------------- */
:where([id]) {
	scroll-margin-top: 100px;
}
