/* ===================================================================
   Web Weasel - Ciel Ouvert: design system additions (DESIGN.md)
   =================================================================== */

/*
 * Ciel Ouvert design system: typography, scroll reveal, lists.
 *
 * Part of the Web Weasel child theme. Loaded from inc/enqueue-assets.php.
 * Order matters: this file is printed after the previous module.
 */:focus-visible {
	outline: 3px solid var(--wp--preset--color--ww-sun) !important;
	outline-offset: 3px !important;
}

.ww-eyebrow {
	display: block;
	color: var(--wp--preset--color--ww-orange-600) !important;
	font-family: var(--wp--preset--font-family--nunito-sans);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 8px;
}

.ww-trajectory {
	display: block;
	width: 100%;
	margin-top: -60px !important;
	margin-bottom: -60px !important;
	position: relative;
	z-index: 1;
	pointer-events: none;
}

.ww-card-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ww-card {
	background: #fff;
	border-radius: 18px;
	padding: 22px 24px;
	display: flex;
	gap: 16px;
	align-items: center;
	box-shadow: 0 3px 0 rgba(25,78,79,0.1);
	transition: transform .15s ease;
}
.ww-card:hover {
	transform: translateY(-3px);
}
.ww-card-icon {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--wp--preset--color--ww-mint-100);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ww-card-icon svg {
	width: 24px;
	height: 24px;
	display: block;
}
.ww-card h3 {
	margin: 0 !important;
	font-size: 19px !important;
}

.ww-promo-card {
	background: var(--wp--preset--color--ww-teal-700) !important;
	position: relative;
	overflow: hidden;
	border-radius: 18px !important;
}
.ww-promo-card::before {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: var(--wp--preset--color--ww-sun);
	opacity: 0.5;
}
.ww-promo-badge {
	display: inline-block;
	background: var(--wp--preset--color--ww-sun);
	color: var(--wp--preset--color--main) !important;
	font-family: var(--wp--preset--font-family--nunito-sans);
	font-weight: 800;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 999px;
	padding: 7px 14px;
	position: relative;
	z-index: 1;
}
.ww-promo-card h2 {
	color: #fff !important;
	position: relative;
	z-index: 1;
}
.ww-promo-card p {
	color: #fff;
	position: relative;
	z-index: 1;
}
.ww-promo-card .ww-promo-mention {
	color: var(--wp--preset--color--ww-promo-mint) !important;
}

/* Scroll reveal (progressive enhancement: visible by default, the script adds
   ww-reveal-pending before observing, so no JavaScript means no impact) */
.ww-section.ww-reveal-pending {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.ww-section.ww-reveal-pending.is-visible {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.ww-section.ww-reveal-pending {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

.ww-about > * {
	position: relative;
	z-index: 1;
}

.ww-engagements-grid {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 1fr;
	align-items: stretch !important;
	gap: 24px;
	margin-top: 16px;
}
/* WordPress' default flow spacing adds margin-block-start to every child but
   the first (:where(.is-layout-flow) > * { margin-block-start: ... }). That is
   meant for stacked content, not a grid: it was pushing cards 2 and 4 down
   inside their row, on top of the grid's own gap. Zeroed here so the grid gap
   is the only spacing at play. */
.ww-engagements-grid.is-layout-flow > .ww-engagement-card {
	margin-block-start: 0 !important;
}
.ww-engagement-card {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	display: flex !important;
	gap: 20px;
	align-items: flex-start;
	height: 100%;
	box-sizing: border-box;
}
.ww-engagement-disc {
	flex: none;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ww-engagement-disc img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ww-tint-1 { background: var(--wp--preset--color--ww-tint-yellow); }
.ww-tint-2 { background: var(--wp--preset--color--ww-mint-100); }
.ww-tint-3 { background: var(--wp--preset--color--ww-tint-green); }
.ww-tint-4 { background: var(--wp--preset--color--ww-tint-blue); }
.ww-engagement-card h3 {
	margin: 0 0 8px !important;
}
.ww-engagement-card p {
	margin: 0 0 6px;
}
@media (max-width: 781px) {
	.ww-engagements-grid { grid-template-columns: 1fr; }
}

/* Archivo variable font: condensed width (wdth 80) on headings, as per the mockup */
h1, h2, h3,
.wp-block-heading {
	font-stretch: 80%;
}

/* The parent theme forces strong/b to semi-bold (600) everywhere, headings included,
   which breaks the intended 900/800 weight on H1-H6. Inherit the heading weight instead. */
.wp-block-heading strong,
.wp-block-heading b,
h1 strong, h1 b,
h2 strong, h2 b,
h3 strong, h3 b,
h4 strong, h4 b,
h5 strong, h5 b,
h6 strong, h6 b {
	font-weight: inherit;
}

.ww-step-card {
	background: var(--wp--preset--color--ww-teal-700) !important;
}
.ww-step-label {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-stretch: 88%;
	font-size: 14px;
	color: var(--wp--preset--color--ww-sun) !important;
	margin: 0 !important;
}
.ww-step-card p:not(.ww-step-label) {
	color: var(--wp--preset--color--ww-mint-300) !important;
	font-size: 14.5px;
	line-height: 1.65;
	margin: 0 !important;
}

.ww-pill-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}
.ww-pill {
	background: #fff;
	border-radius: 14px;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 !important;
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.ww-pill:hover {
	transform: translateX(4px);
	background: var(--wp--preset--color--ww-mint-300);
}

.ww-accent-teal500 {
	background: var(--wp--preset--color--ww-teal-500) !important;
	color: #fff;
}
.ww-accent-teal500 h2 {
	color: #fff !important;
}

.no-bullets {
	list-style: none !important;
	padding-left: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ww-section {
	padding-top: 48px !important;
	padding-bottom: 48px !important;
}
.ww-section.ww-flush-top {
	padding-top: 0 !important;
}
.ww-section.ww-flush-bottom {
	padding-bottom: 0 !important;
}
@media (max-width: 781px) {
	.ww-section {
		padding-top: 32px !important;
		padding-bottom: 32px !important;
	}
	.ww-section.ww-flush-top { padding-top: 0 !important; }
	.ww-section.ww-flush-bottom { padding-bottom: 0 !important; }
}

/* Slightly tighter lists */
.wp-block-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-block: 0.4em !important;
}
.wp-block-list.no-bullets {
	gap: 4px;
}
.wp-block-list li {
	line-height: 1.5;
	margin: 0 !important;
}

