/*
 * Small presentation layer for Ceresia Auto Theme.
 * Global tokens and most block defaults live in theme.json.
 */

:where(body) {
	overflow-x: hidden;
}

:where(a) {
	text-underline-offset: 0.18em;
}

:where(.wp-element-button) {
	transition: filter 150ms ease, transform 150ms ease;
}

:where(.wp-element-button:hover, .wp-element-button:focus-visible) {
	filter: brightness(0.94);
}

:where(.wp-element-button:focus-visible, a:focus-visible, summary:focus-visible) {
	outline: 3px solid #c9a96e;
	outline-offset: 3px;
}

.site-header {
	border-bottom: 1px solid var(--wp--preset--color--muted);
	position: relative;
	z-index: 10;
}

.site-header__inner {
	gap: 0.75rem 1.25rem;
	min-height: 4.5rem;
	padding-bottom: 0.75rem;
	padding-top: 0.75rem;
}

.site-brand a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.site-navigation {
	order: 3;
	width: 100%;
}

.site-navigation__contact {
	font-weight: 800;
}

.site-footer {
	padding-bottom: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--60);
}

.site-footer a {
	color: inherit;
}

.site-footer__columns {
	gap: var(--wp--preset--spacing--50);
}

.site-footer__links {
	list-style: none;
	padding-left: 0;
}

.site-footer__links li + li {
	margin-top: 0.5rem;
}

.content-section,
.hero-section {
	padding-bottom: clamp(3rem, 7vw, 6rem);
	padding-top: clamp(3rem, 7vw, 6rem);
}

.section-heading {
	margin-bottom: var(--wp--preset--spacing--50);
	max-width: 48rem;
	text-align: center;
}

.eyebrow {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 0.65rem;
	text-transform: uppercase;
}

.hero-section {
	background-image:
		linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0) 55%),
		radial-gradient(circle at 90% 10%, rgba(201, 169, 110, 0.18), transparent 28rem);
}

.hero-section__columns {
	gap: clamp(2rem, 6vw, 6rem);
}

.hero-section h1 {
	max-width: 12ch;
}

.hero-section__actions {
	margin-top: var(--wp--preset--spacing--40);
}

.hero-section__panel {
	border-left: 5px solid var(--wp--preset--color--secondary);
	border-radius: 0.4rem;
	box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
	padding: clamp(1.5rem, 4vw, 2.25rem);
}

.check-list {
	list-style: none;
	padding-left: 0;
}

.check-list li {
	padding-left: 1.6rem;
	position: relative;
}

.check-list li + li {
	margin-top: 0.6rem;
}

.check-list li::before {
	color: var(--wp--preset--color--accent);
	content: "✓";
	font-weight: 800;
	left: 0;
	position: absolute;
}

.home-preview__columns {
	gap: clamp(1.5rem, 5vw, 4rem);
}

.home-preview__card,
.page-topic-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 0.45rem;
	padding: clamp(1.5rem, 4vw, 2.25rem);
}

.home-preview__card > :first-child,
.page-topic-card > :first-child {
	margin-top: 0;
}

.home-preview__card > :last-child,
.page-topic-card > :last-child {
	margin-bottom: 0;
}

.page-intro {
	padding-bottom: clamp(2.75rem, 6vw, 5rem);
	padding-top: clamp(2.75rem, 6vw, 5rem);
}

.page-intro__content {
	max-width: 52rem;
}

.page-intro__content h1 {
	max-width: 18ch;
}

.page-starter-content {
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
	padding-top: clamp(3rem, 7vw, 5.5rem);
}

.page-topic-grid {
	gap: var(--wp--preset--spacing--30);
}

.content-grid,
.vehicle-grid {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	grid-template-columns: minmax(0, 1fr);
}

.content-list {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.content-card,
.vehicle-card,
.step-card,
.trust-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 0.45rem;
	box-shadow: 0 0.35rem 1rem rgba(16, 42, 67, 0.05);
	padding: var(--wp--preset--spacing--40);
}

.content-card > :first-child,
.vehicle-card > :first-child,
.step-card > :first-child,
.trust-card > :first-child {
	margin-top: 0;
}

.content-card > :last-child,
.vehicle-card > :last-child,
.step-card > :last-child,
.trust-card > :last-child {
	margin-bottom: 0;
}

.content-card .wp-block-post-featured-image,
.vehicle-card .wp-block-post-featured-image {
	margin-left: calc(-1 * var(--wp--preset--spacing--40));
	margin-right: calc(-1 * var(--wp--preset--spacing--40));
	margin-top: calc(-1 * var(--wp--preset--spacing--40));
}

.content-card .wp-block-post-featured-image img,
.vehicle-card .wp-block-post-featured-image img {
	border-radius: 0.45rem 0.45rem 0 0;
}

.step-grid,
.trust-grid {
	gap: var(--wp--preset--spacing--30);
}

.step-card,
.trust-card {
	position: relative;
}

.step-card__number,
.trust-card__mark {
	align-items: center;
	background: var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--surface);
	display: flex;
	font-size: 0.9rem;
	font-weight: 800;
	height: 2.6rem;
	justify-content: center;
	line-height: 1;
	margin: 0 0 1.25rem;
	text-align: center;
	width: 2.6rem;
}

.trust-card__mark {
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	font-size: 0.72rem;
}

.notice-box {
	border: 1px solid #e4bd8c;
	border-left: 5px solid var(--wp--preset--color--notice);
	border-radius: 0.35rem;
	margin-bottom: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--40);
}

.price-notice {
	max-width: 62rem;
}

.request-car-section .wp-block-buttons {
	justify-content: flex-start;
}

.whatsapp-cta h2,
.whatsapp-cta p {
	margin-bottom: 0;
	margin-top: 0;
}

.faq-list {
	max-width: 52rem;
}

.faq-list details {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--muted);
	border-radius: 0.35rem;
	padding: 1rem 1.25rem;
}

.faq-list details + details {
	margin-top: 0.75rem;
}

.faq-list summary {
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	font-weight: 700;
}

.faq-list details p:last-child {
	margin-bottom: 0;
}

.post-meta {
	color: #60717b;
	margin-bottom: var(--wp--preset--spacing--40);
}

.post-navigation {
	border-top: 1px solid var(--wp--preset--color--muted);
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--40);
}

.not-found {
	min-height: 55vh;
}

@media (min-width: 600px) {
	.site-navigation {
		order: initial;
		width: auto;
	}

	.content-grid,
	.vehicle-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.content-grid,
	.vehicle-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.request-car-section .wp-block-buttons {
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(.wp-element-button) {
		transition: none;
	}
}
