/*
 * CRAS component styles.
 * Tokens live in theme.json (--wp--preset--*); this file maps them onto
 * block markup and adds the components core blocks cannot express.
 */

:root {
	--cras-bg: var(--wp--preset--color--bg);
	--cras-surface: var(--wp--preset--color--surface);
	--cras-tint: var(--wp--preset--color--surface-tint);
	--cras-fg: var(--wp--preset--color--fg);
	--cras-muted: var(--wp--preset--color--muted);
	--cras-border: var(--wp--preset--color--border);
	--cras-accent: var(--wp--preset--color--accent);
	--cras-accent-strong: var(--wp--preset--color--accent-strong);
	--cras-blue: var(--wp--preset--color--brand-blue);
	--cras-blue-deep: var(--wp--preset--color--brand-blue-deep);
	--cras-orange: var(--wp--preset--color--brand-orange);
	--cras-orange-text: var(--wp--preset--color--orange-text);
	--cras-orange-light: #ff8854;
	--cras-danger: #c92f33;
	--cras-radius: var(--wp--custom--radius--md, 14px);
	--cras-radius-lg: var(--wp--custom--radius--lg, 24px);
	--cras-shadow-soft: var(--wp--preset--shadow--soft);
	--cras-shadow: var(--wp--preset--shadow--lifted);
	--cras-section: var(--wp--preset--spacing--80);
	--cras-ease: cubic-bezier(.4, 0, .2, 1);
	--cras-nav-h: 76px;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cras-nav-h) + 16px); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--cras-orange);
	outline-offset: 3px;
	border-radius: 6px;
}

.wp-site-blocks > * { margin-block: 0; }
.cras-main > *,
.cras-flow > .alignfull { margin-block: 0; }

.screen-reader-text {
	border: 0; clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap;
}

/* ---------- Shared pieces ---------- */

.cras-section { padding-block: var(--cras-section); }
.cras-section--flush-top { padding-top: 0; }

.cras-kicker,
.wp-block-post-terms.cras-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--cras-blue);
}
.cras-kicker::after {
	content: "";
	width: 34px;
	height: 3px;
	border-radius: 2px;
	background: var(--cras-orange);
}
.cras-kicker.is-light,
.has-brand-blue-deep-background-color .cras-kicker { color: var(--cras-orange-light); }
.cras-kicker a { color: inherit; text-decoration: none; }

.cras-lead { color: var(--cras-muted); max-width: 62ch; font-size: var(--wp--preset--font-size--large); }

.cras-head {
	max-width: 720px;
	margin-inline: auto !important;
	margin-bottom: var(--wp--preset--spacing--60) !important;
	text-align: center;
}
.cras-head > * + * { margin-top: 0.85rem; }
.cras-head .cras-lead { margin-inline: auto; }

/* Buttons: outline + light variants via block styles. */
.wp-element-button,
.wp-block-button__link {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 8px 20px rgb(15 100 29 / 0.24);
	transition: transform var(--wp--custom--motion--fast) ease, background-color var(--wp--custom--motion--fast) ease, color var(--wp--custom--motion--fast) ease, box-shadow var(--wp--custom--motion--fast) ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button__link:active { transform: translateY(1px); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-color: var(--cras-blue);
	color: var(--cras-blue);
	box-shadow: none;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--cras-blue); color: #fff; }

.wp-block-button.is-style-light > .wp-block-button__link {
	background: #fff;
	color: var(--cras-blue-deep);
	box-shadow: none;
}
.wp-block-button.is-style-light > .wp-block-button__link:hover { background: var(--cras-tint); }

/* Arrow link used by cards ("Saber más", "Leer más"). */
.cras-card__link,
.wp-block-read-more.cras-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--cras-accent-strong);
	text-decoration: none;
}
.cras-card__link::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform var(--wp--custom--motion--base) ease;
}
.cras-card__link:hover::after { transform: translateX(4px); }

/* Line icons rendered as masks so editors only pick a class. */
.cras-icon {
	--icon: none;
	flex: none;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 !important;
	border-radius: 16px;
	background: var(--cras-tint);
}
.cras-icon::before {
	content: "";
	width: 26px;
	height: 26px;
	background: var(--cras-accent-strong);
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}
.cras-icon.is-bare { width: 34px; height: 34px; background: none; }
.cras-icon.is-bare::before { width: 34px; height: 34px; background: var(--cras-orange); }

.cras-icon--sprout { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3'/%3E%3Cpath d='M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
.cras-icon--clipboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='8' height='4' x='8' y='2' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M12 11h4M12 16h4M8 11h.01M8 16h.01'/%3E%3C/svg%3E"); }
.cras-icon--target { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E"); }
.cras-icon--leaf { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E"); }
.cras-icon--users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M16 3.128a4 4 0 0 1 0 7.744'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3C/svg%3E"); }
.cras-icon--handshake { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.414 14.414C21 12.828 22 11.5 22 9.5a5.5 5.5 0 0 0-9.591-3.676.6.6 0 0 1-.818.001A5.5 5.5 0 0 0 2 9.5c0 2.3 1.5 4 3 5.5l5.535 5.362a2 2 0 0 0 2.879.052 2.12 2.12 0 0 0-.004-3 2.124 2.124 0 1 0 3-3 2.124 2.124 0 0 0 3.004 0 2 2 0 0 0 0-2.828l-1.881-1.882a2.41 2.41 0 0 0-3.409 0l-1.71 1.71a2 2 0 0 1-2.828 0 2 2 0 0 1 0-2.828l2.823-2.762'/%3E%3C/svg%3E"); }
.cras-icon--globe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20M2 12h20'/%3E%3C/svg%3E"); }
.cras-icon--layers { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z'/%3E%3Cpath d='M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12'/%3E%3Cpath d='M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17'/%3E%3C/svg%3E"); }
.cras-icon--heart-hand { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16'/%3E%3Cpath d='m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95'/%3E%3Cpath d='m2 15 6 6'/%3E%3Cpath d='m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91'/%3E%3C/svg%3E"); }
.cras-icon--eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.cras-icon--pin { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.cras-icon--mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3C/svg%3E"); }
.cras-icon--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E"); }
.cras-icon--clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */

.cras-nav {
	z-index: 50;
	background: rgb(255 255 255 / 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--cras-border);
	transition: box-shadow var(--wp--custom--motion--base) ease;
}
.cras-nav.is-scrolled { box-shadow: 0 6px 24px rgb(30 35 67 / 0.07); }
.cras-nav__inner { min-height: var(--cras-nav-h); gap: 24px; }
.cras-brand img { width: 58px; height: auto; }

.cras-menu .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px !important;
	border-radius: 999px;
	text-decoration: none;
	transition: background-color var(--wp--custom--motion--fast) ease, color var(--wp--custom--motion--fast) ease;
}
.cras-menu .wp-block-navigation__container { gap: 4px; }
.cras-menu .wp-block-navigation-item__content:hover { background: var(--cras-tint); }
.cras-menu .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--cras-accent-strong);
	background: var(--cras-tint);
}
.cras-menu .cras-menu__cta { margin-left: 8px; }
.cras-menu .cras-menu__cta .wp-block-navigation-item__content {
	padding-inline: 22px !important;
	background: var(--cras-accent-strong);
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 8px 20px rgb(15 100 29 / 0.24);
}
.cras-menu .cras-menu__cta .wp-block-navigation-item__content:hover,
.cras-menu .cras-menu__cta .wp-block-navigation-item__content[aria-current="page"] { background: #0b5017; }

.cras-menu .wp-block-navigation__responsive-container-open,
.cras-menu .wp-block-navigation__responsive-container-close {
	padding: 10px;
	border-radius: 10px;
}
.cras-menu .wp-block-navigation__responsive-container-open svg { width: 28px; height: 28px; }
.cras-menu .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px 6vw;
	background: var(--cras-surface);
}
.cras-menu .is-menu-open .wp-block-navigation__container { gap: 6px; width: 100%; }
.cras-menu .is-menu-open .wp-block-navigation-item,
.cras-menu .is-menu-open .wp-block-navigation-item__content { width: 100%; font-size: 1.15rem; border-radius: 12px; }
.cras-menu .is-menu-open .cras-menu__cta { margin: 12px 0 0; }
.cras-menu .is-menu-open .cras-menu__cta .wp-block-navigation-item__content { justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */

.cras-page-hero {
	padding-block: var(--wp--preset--spacing--70);
	text-align: center;
	background-image:
		radial-gradient(60rem 30rem at 110% -20%, rgb(39 42 165 / 0.55), transparent 60%),
		radial-gradient(40rem 24rem at -10% 120%, rgb(39 153 54 / 0.22), transparent 60%);
}
.cras-page-hero > * { margin-inline: auto !important; }
.cras-page-hero__title { margin: 0.5rem auto 0; max-width: 20ch; color: #fff; }
.cras-page-hero__lead,
.cras-page-hero__lead p { max-width: 58ch; margin: 1rem auto 0; color: rgb(255 255 255 / 0.78); font-size: var(--wp--preset--font-size--large); }
.cras-page-hero__meta { color: rgb(255 255 255 / 0.7); font-size: 0.9rem; margin-top: 0.75rem; }
.cras-crumb {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 1.1rem;
	font-size: 0.875rem;
	color: rgb(255 255 255 / 0.72);
}
.cras-crumb ol { display: contents; list-style: none; }
.cras-crumb li + li::before { content: "/"; margin-right: 10px; opacity: 0.6; }
.cras-crumb a { color: #fff; font-weight: 600; text-decoration: none; }
.cras-crumb a:hover { text-decoration: underline; }

/* ---------- Home hero ---------- */

.cras-hero { overflow: hidden; }
.cras-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding-block: clamp(56px, 8vw, 104px);
}
.cras-hero__grid > * { margin: 0 !important; }
.cras-hero h1 { margin: 18px 0 20px; max-width: 15ch; font-size: var(--wp--preset--font-size--huge); }
.cras-hero h1 em { font-style: normal; color: var(--cras-accent-strong); }
.cras-hero .cras-lead { margin-bottom: 32px; max-width: 50ch; }
.cras-hero__figure { position: relative; margin: 0; }
.cras-hero__figure img {
	width: 100%;
	height: clamp(320px, 38vw, 500px);
	object-fit: cover;
	border-radius: 28px 120px 28px 28px;
	box-shadow: var(--cras-shadow);
}
.cras-hero__figure figcaption {
	position: absolute;
	left: 22px;
	bottom: 22px;
	max-width: 260px;
	margin: 0;
	padding: 14px 18px;
	border-radius: 12px;
	background: rgb(255 255 255 / 0.95);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	box-shadow: var(--cras-shadow);
	text-align: left;
	color: var(--cras-muted);
	font-size: 0.8rem;
	line-height: 1.45;
}
.cras-hero__figure figcaption strong {
	display: block;
	margin-bottom: 2px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.95rem;
	color: var(--cras-fg);
}
.cras-hero__figure figcaption strong::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--cras-accent);
	vertical-align: middle;
}

/* ---------- Highlights carousel (scroll-snap, no autoplay) ---------- */

.cras-promo { padding-block: clamp(40px, 6vw, 72px); }
.cras-promo__track {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	border-radius: var(--cras-radius);
}
.cras-promo__track::-webkit-scrollbar { display: none; }
.cras-promo__slide {
	display: grid !important;
	grid-template-columns: 0.9fr 1.1fr;
	margin: 0 !important;
	scroll-snap-align: start;
	background: var(--cras-surface);
	border: 1px solid var(--cras-border);
	border-radius: var(--cras-radius);
	overflow: hidden;
}
.cras-promo__slide > figure { margin: 0; }
.cras-promo__slide img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.cras-promo__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: clamp(28px, 4vw, 56px);
}
.cras-promo__body > * { margin: 0 !important; }
.cras-promo__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cras-orange-text); }
.cras-promo__body h3 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.cras-promo__body p:not(.cras-promo__tag) { color: var(--cras-muted); max-width: 48ch; }
.cras-promo__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.cras-promo__dots { display: flex; gap: 8px; }
.cras-promo__dots button {
	width: 34px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: var(--cras-border);
	cursor: pointer;
	transition: background-color 0.2s ease, width 0.2s ease;
}
.cras-promo__dots button[aria-current="true"] { width: 48px; background: var(--cras-accent-strong); }
.cras-promo__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--cras-border);
	border-radius: 50%;
	background: var(--cras-surface);
	color: var(--cras-fg);
	cursor: pointer;
	transition: border-color var(--wp--custom--motion--fast) ease, color var(--wp--custom--motion--fast) ease;
}
.cras-promo__arrow:hover { border-color: var(--cras-accent-strong); color: var(--cras-accent-strong); }
.cras-promo__arrow svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Commitment band ---------- */

.cras-band { padding-block: var(--wp--preset--spacing--70); }
.cras-band__grid { gap: clamp(28px, 4vw, 56px) !important; }
.cras-band__item { gap: 18px !important; align-items: flex-start !important; }
.cras-band__item h3 { font-size: 1.19rem; margin: 0 0 6px; color: #fff; }
.cras-band__item p { margin: 0; color: rgb(255 255 255 / 0.74); font-size: 0.92rem; line-height: 1.55; }
.cras-band__item > .wp-block-group { margin: 0 !important; }

/* ---------- Cards (projects + news) ---------- */

.cras-cards { gap: clamp(20px, 2.6vw, 32px) !important; }
.cras-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	overflow: hidden;
	background: var(--cras-surface);
	border: 1px solid var(--cras-border);
	border-radius: var(--cras-radius);
	box-shadow: var(--cras-shadow-soft);
	transition: transform var(--wp--custom--motion--base) ease, box-shadow var(--wp--custom--motion--base) ease, border-color var(--wp--custom--motion--base) ease;
}
.cras-card:hover,
.cras-card:focus-within { transform: translateY(-6px); box-shadow: var(--cras-shadow); border-color: transparent; }
.cras-card__media { position: relative; margin: 0 !important; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cras-tint); }
.cras-card__media .wp-block-post-featured-image,
.cras-card__media figure { margin: 0; height: 100%; }
.cras-card__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.45s var(--cras-ease); }
.cras-card:hover .cras-card__media img { transform: scale(1.05); }
.cras-chip,
.wp-block-post-terms.cras-chip {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.94);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--cras-blue);
}
.cras-chip a { position: relative; z-index: 3; color: inherit; text-decoration: none; }
.cras-chip .wp-block-post-terms__separator { opacity: 0.5; }
.cras-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	margin: 0 !important;
	padding: 22px 24px 26px;
}
.cras-card__body > * { margin: 0 !important; }
.cras-card__meta { font-size: 0.8rem; color: var(--cras-muted); letter-spacing: 0.02em; }
.cras-card__title { font-size: 1.3rem; }
.cras-card__title a { color: inherit; text-decoration: none; }
/* Whole card is clickable through the title link. */
.cras-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cras-card__title a:focus-visible { outline: none; }
.cras-card:has(.cras-card__title a:focus-visible) { outline: 3px solid var(--cras-orange); outline-offset: 3px; }
.cras-card__excerpt,
.cras-card__excerpt p { color: var(--cras-muted); font-size: 0.94rem; flex: 1; margin: 0; }
.cras-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.cras-card .wp-block-read-more { position: relative; z-index: 2; }
.cras-card[hidden],
.wp-block-post[hidden] { display: none !important; }

/* Filter tabs generated by theme.js above a project grid. */
.cras-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto clamp(28px, 4vw, 44px);
	padding: 0;
	list-style: none;
}
.cras-filter button {
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--cras-border);
	border-radius: 999px;
	background: var(--cras-surface);
	font: 600 0.9rem/1 var(--wp--preset--font-family--body);
	letter-spacing: 0.02em;
	color: var(--cras-muted);
	cursor: pointer;
	transition: all var(--wp--custom--motion--fast) ease;
}
.cras-filter button:hover { border-color: var(--cras-accent-strong); color: var(--cras-accent-strong); }
.cras-filter button[aria-pressed="true"] { background: var(--cras-accent-strong); border-color: var(--cras-accent-strong); color: #fff; }

.cras-pagination { margin-top: var(--wp--preset--spacing--60); gap: 8px; font-weight: 700; }
.cras-pagination a,
.cras-pagination .current {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 999px;
	text-decoration: none;
}
.cras-pagination .current { background: var(--cras-accent-strong); color: #fff; }
.cras-pagination a:hover { background: var(--cras-tint); }

/* ---------- Principles ---------- */

.cras-bases { background: var(--cras-surface); }
.cras-bases__grid { gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px) !important; }
.cras-base { gap: 18px !important; align-items: flex-start !important; margin: 0 !important; }
.cras-base > .wp-block-group { margin: 0 !important; }
.cras-base h3 { font-size: 1.19rem; margin: 0 0 6px; }
.cras-base p { margin: 0; color: var(--cras-muted); font-size: 0.94rem; line-height: 1.55; }

/* ---------- Media + text teaser ---------- */

.cras-about { gap: clamp(36px, 5vw, 80px) !important; align-items: center !important; }
.cras-about img { width: 100%; border-radius: var(--cras-radius-lg); box-shadow: var(--cras-shadow); aspect-ratio: 5 / 4; object-fit: cover; }
.cras-about figure { margin: 0; }
.cras-about h2 { margin: 16px 0 14px; }
.cras-checks { list-style: none; margin: 24px 0 32px; padding: 0; border-top: 1px solid var(--cras-border); }
.cras-checks li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 14px 4px;
	border-bottom: 1px solid var(--cras-border);
	font-weight: 600;
}
.cras-checks li::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--cras-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f641d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Gallery mosaic (bento instead of staggered offsets) ---------- */

.cras-mosaic {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: clamp(140px, 15vw, 210px);
	gap: 14px !important;
}
.cras-mosaic .wp-block-image { margin: 0 !important; height: 100%; width: 100% !important; overflow: hidden; border-radius: 12px; }
.cras-mosaic .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 0.5s var(--cras-ease); }
.cras-mosaic .wp-block-image:hover img { transform: scale(1.04); }
.cras-mosaic .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- Mission quote ---------- */

.cras-quote { text-align: center; padding-block: var(--cras-section); }
.cras-quote .wp-block-quote {
	margin: 0 auto;
	padding: 0;
	border: 0;
}
.cras-quote .wp-block-quote p {
	max-width: 24ch;
	margin: 0 auto 22px;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: #fff;
}
.cras-quote .wp-block-quote::before {
	content: "“";
	display: block;
	height: 0.6em;
	font: 700 5rem/1 var(--wp--preset--font-family--display);
	color: var(--cras-orange);
}
.cras-quote cite {
	font-style: normal;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--cras-orange-light);
}

/* ---------- Newsletter ---------- */

.cras-newsletter {
	display: grid !important;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	padding: clamp(36px, 5vw, 64px) !important;
	border-radius: var(--cras-radius-lg);
	background: var(--cras-tint);
}
.cras-newsletter > * { margin: 0 !important; }
.cras-newsletter h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-bottom: 10px; }
.cras-newsletter p { color: var(--cras-muted); }

.cras-news-form { display: flex; flex-wrap: wrap; gap: 10px; }
.cras-news-form input {
	flex: 1;
	min-width: 220px;
	min-height: 52px;
	padding: 14px 20px;
	border: 1px solid var(--cras-border);
	border-radius: 999px;
	background: var(--cras-surface);
	font: inherit;
	font-size: 0.94rem;
	color: var(--cras-fg);
}
.cras-news-form button {
	min-height: 52px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--cras-accent-strong);
	color: #fff;
	font: 700 0.97rem/1 var(--wp--preset--font-family--body);
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 20px rgb(15 100 29 / 0.24);
	transition: background-color var(--wp--custom--motion--fast) ease, transform var(--wp--custom--motion--fast) ease;
}
.cras-news-form button:hover { background: #0b5017; transform: translateY(-2px); }
.cras-form-note { width: 100%; min-height: 20px; margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--cras-accent-strong); }
.cras-form-note.is-error { color: var(--cras-danger); }

.cras-news-form--mini { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cras-news-form--mini input {
	min-width: 0;
	min-height: 46px;
	padding: 12px 16px;
	border-color: rgb(255 255 255 / 0.28);
	background: transparent;
	color: #fff;
	font-size: 0.875rem;
}
.cras-news-form--mini input::placeholder { color: rgb(255 255 255 / 0.6); }
.cras-news-form--mini button { min-height: 46px; padding: 12px 20px; background: var(--cras-orange-text); box-shadow: none; }
.cras-news-form--mini button:hover { background: #c24400; }
.cras-news-form--mini .cras-form-note { color: #ffc29e; }
.cras-news-form--mini .cras-form-note.is-error { color: #ffb3b5; }

/* ---------- CTA ---------- */

.cras-cta { text-align: center; }
.cras-cta h2 { max-width: 22ch; margin: 0 auto 14px; }
.cras-cta p { color: var(--cras-muted); margin-bottom: 30px; }
.cras-cta-band { text-align: center; padding-block: var(--wp--preset--spacing--70); }
.cras-cta-band h2 { max-width: 24ch; margin: 0 auto 26px; font-size: clamp(1.625rem, 3.2vw, 2.5rem); }

/* ---------- Mission / vision cards ---------- */

.cras-mv-grid { gap: clamp(20px, 3vw, 36px) !important; }
.cras-mv {
	height: 100%;
	padding: clamp(28px, 4vw, 44px);
	background: var(--cras-surface);
	border: 1px solid var(--cras-border);
	border-radius: var(--cras-radius);
	box-shadow: var(--cras-shadow-soft);
}
.cras-mv > * { margin: 0; }
.cras-mv .cras-icon { margin-bottom: 20px !important; }
.cras-mv h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 20px 0 12px; }
.cras-mv p { color: var(--cras-muted); line-height: 1.65; }

/* ---------- Single project / project rows ---------- */

.cras-project {
	gap: clamp(28px, 4vw, 64px) !important;
	align-items: center !important;
	padding-block: clamp(32px, 4vw, 48px);
	border-bottom: 1px solid var(--cras-border);
}
.cras-project:last-child { border-bottom: 0; }
.cras-project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cras-radius); box-shadow: var(--cras-shadow); }
.cras-project figure { margin: 0; }
.cras-project h2 { margin: 14px 0; }
.cras-project p { color: var(--cras-muted); line-height: 1.65; }

.cras-article { padding-block: var(--wp--preset--spacing--70); }
.cras-article__media img { border-radius: var(--cras-radius-lg); box-shadow: var(--cras-shadow); }
.cras-article .wp-block-post-content > p { font-size: 1.06rem; line-height: 1.75; }
.cras-article__nav { margin-top: var(--wp--preset--spacing--60) !important; padding-top: 24px; border-top: 1px solid var(--cras-border); font-weight: 700; }
.cras-article__nav a { text-decoration: none; }

/* ---------- Contact ---------- */

.cras-contact { gap: clamp(28px, 4vw, 56px) !important; align-items: flex-start !important; }
.cras-form-card {
	padding: clamp(26px, 4vw, 44px);
	background: var(--cras-surface);
	border: 1px solid var(--cras-border);
	border-radius: var(--cras-radius);
	box-shadow: var(--cras-shadow-soft);
}
.cras-field { margin-bottom: 20px; }
.cras-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.cras-field label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.02em; }
.cras-field input,
.cras-field textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--cras-border);
	border-radius: 12px;
	background: var(--cras-bg);
	font: inherit;
	font-size: 0.94rem;
	color: var(--cras-fg);
	transition: border-color var(--wp--custom--motion--fast) ease;
}
.cras-field input:focus-visible,
.cras-field textarea:focus-visible { outline: 2px solid var(--cras-accent-strong); outline-offset: 1px; border-color: transparent; border-radius: 12px; }
.cras-field textarea { min-height: 150px; resize: vertical; }
.cras-field .cras-error { display: none; margin-top: 6px; font-size: 0.8rem; font-weight: 600; color: var(--cras-danger); }
.cras-field.is-invalid .cras-error { display: block; }
.cras-field.is-invalid input,
.cras-field.is-invalid textarea { border-color: var(--cras-danger); }
.cras-form-card .cras-form-note { margin-top: 16px; font-size: 0.94rem; }

.cras-info-card {
	position: sticky;
	top: calc(var(--cras-nav-h) + 24px);
	padding: clamp(26px, 4vw, 44px) !important;
	border-radius: var(--cras-radius);
}
.cras-info-card h3 { margin: 0 0 8px; font-size: 1.375rem; }
.cras-info-card > p { margin: 0 0 26px; color: rgb(255 255 255 / 0.74); font-size: 0.92rem; }
.cras-info-line {
	gap: 16px !important;
	align-items: flex-start !important;
	margin: 0 !important;
	padding: 16px 0;
	border-top: 1px solid rgb(255 255 255 / 0.14);
}
.cras-info-line .cras-icon { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / 0.1); }
.cras-info-line .cras-icon::before { width: 20px; height: 20px; background: var(--cras-orange); }
.cras-info-line p { margin: 0; color: rgb(255 255 255 / 0.74); font-size: 0.92rem; line-height: 1.5; }
.cras-info-line p strong { display: block; margin-bottom: 2px; color: #fff; font-size: 0.94rem; letter-spacing: 0.02em; }
.cras-info-line a { color: inherit; }

/* ---------- Footer ---------- */

.cras-footer { color: rgb(255 255 255 / 0.82); font-size: 0.92rem; }
.cras-footer__grid { gap: clamp(28px, 4vw, 48px) !important; padding-block: clamp(48px, 6vw, 80px); margin: 0 auto !important; }
.cras-footer p { line-height: 1.65; }
.cras-footer__brand { gap: 12px !important; align-items: center !important; }
.cras-footer__brand img { width: 52px; height: auto; background: #fff; border-radius: 12px; padding: 4px; }
.cras-footer__name { margin: 0; font: 700 1.25rem/1 var(--wp--preset--font-family--display); color: #fff; }
.cras-footer__title { margin: 0 0 18px; font-size: 0.94rem !important; letter-spacing: 0.02em; color: #fff; }
.cras-footer a { color: rgb(255 255 255 / 0.82); text-decoration: none; transition: color var(--wp--custom--motion--fast) ease; }
.cras-footer a:hover { color: #fff; text-decoration: underline; }
.cras-footer__links .wp-block-navigation__container { gap: 10px; }
.cras-footer__links .wp-block-navigation-item__content { padding: 2px 0; }
.cras-contact-list { list-style: none; margin: 0; padding: 0; }
.cras-contact-list li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 30px;
}
.cras-contact-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	background: var(--cras-orange);
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}
.cras-contact-list .is-address { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.cras-contact-list .is-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7'/%3E%3C/svg%3E"); }
.cras-contact-list .is-phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384'/%3E%3C/svg%3E"); }

.cras-socials { gap: 10px !important; margin-top: 22px !important; }
.cras-socials .wp-social-link {
	width: 44px;
	height: 44px;
	background: transparent !important;
	border: 1px solid rgb(255 255 255 / 0.28);
	color: #fff !important;
	transition: background-color var(--wp--custom--motion--fast) ease, border-color var(--wp--custom--motion--fast) ease;
}
.cras-socials .wp-social-link a { width: 100%; height: 100%; display: grid; place-items: center; padding: 0; }
.cras-socials .wp-social-link svg { width: 18px; height: 18px; }
.cras-socials .wp-social-link:hover { background: var(--cras-orange-text) !important; border-color: var(--cras-orange-text); }

.cras-footer__bar { padding-block: 22px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.82rem; color: rgb(255 255 255 / 0.66); }
.cras-footer__bar p { margin: 0; }

/* ---------- Search ---------- */

.cras-search { max-width: 520px; margin-inline: auto !important; }
.cras-search .wp-block-search__input { min-height: 48px; padding-inline: 18px; border: 1px solid var(--cras-border); border-radius: 999px; }
.cras-search .wp-block-search__button { margin-left: 8px; }
.cras-page-hero .cras-search { margin-top: 1.25rem !important; }

/* ---------- Back to top + reveal ---------- */

.cras-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 50%;
	background: var(--cras-accent-strong);
	color: #fff;
	box-shadow: var(--cras-shadow);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.cras-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.cras-to-top svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.js-reveal .cras-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .cras-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
	.cras-mosaic { grid-template-columns: repeat(3, 1fr); }
	.cras-mosaic .wp-block-image:nth-child(n+5) { display: none; }
	.cras-footer__grid { flex-wrap: wrap !important; }
	.cras-footer__grid > .wp-block-column { flex-basis: calc(50% - 24px) !important; }
}

@media (max-width: 781px) {
	:root { --cras-nav-h: 68px; }
	.cras-brand img { width: 48px; }
	.cras-hero__grid,
	.cras-newsletter,
	.cras-promo__slide { grid-template-columns: 1fr; }
	.cras-hero__figure img { height: 300px; border-radius: 22px 60px 22px 22px; }
	.cras-promo__slide img { min-height: 0; max-height: 240px; }
	.cras-mosaic { grid-template-columns: repeat(2, 1fr); }
	.cras-mosaic .wp-block-image:nth-child(n+4) { display: none; }
	.cras-mosaic .wp-block-image:first-child { grid-column: span 2; grid-row: span 1; }
	.cras-field-row { grid-template-columns: 1fr; }
	.cras-info-card { position: static; }
	.cras-footer__grid > .wp-block-column { flex-basis: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .cras-reveal { opacity: 1; transform: none; }
}

/* ---------- Editor ---------- */

.editor-styles-wrapper .cras-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .cras-promo__track { overflow-x: auto; }

/* Switch to the mobile overlay before desktop links stop fitting. */
@media (max-width: 960px) {
 .cras-menu .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
 .cras-menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
}

.cras-band__item, .cras-base, .cras-info-line { display: flex; }
.cras-info-card { background: var(--cras-blue-deep); color: #fff; }
.cras-contact > .wp-block-column { min-width: 0; }
.cras-form-card { box-sizing: border-box; }
.cras-field input, .cras-field textarea { box-sizing: border-box; }
.cras-promo__body > .wp-block-group { margin: 0; }
.cras-hero__grid { max-width: 1180px; margin-inline: auto; }
.cras-band__item > .wp-block-group, .cras-base > .wp-block-group { flex: 1; }
.cras-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1020px) {
 .cras-bases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
 .cras-bases__grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Source wrap geometry also applies inside default-layout pattern groups. */
.cras-flow .alignwide { width: min(1180px, 92%); margin-inline: auto !important; max-width: 1180px; }
