/*
Theme Name: Yalhem Gloss
Description: Car wash and detailing card theme for Yalhem Sites: dark full-bleed hero, package cards, booking by WhatsApp. Requires the Yalhem Sites plugin.
Version: 0.1.2
Requires at least: 6.6
Requires PHP: 8.2
Author: Yalhem
Text Domain: yalhem-gloss
*/

/* Design read: car wash / detailing card site for car owners, energetic and precise; light base with one dark
   hero, sharp corners, slanted edge, deep-green accent with a bright highlight on dark. Dials V6 M4 D5. */
:root {
	--ys-bg: #F4F5F2; --ys-surface: #fff; --ys-ink: #121412; --ys-muted: #5A5F58; --ys-line: #DDE0D9;
	--ys-accent: #4D7C0F; --ys-on-accent: #fff; --ys-accent-hover: #3F6212; --ys-soft: #E8F0DA; --ys-on-soft: #365314;
	--ys-r: 4px; --ys-btn-r: 4px; --ys-font: 'Changa', system-ui, sans-serif; --ys-display: 'Changa', system-ui, sans-serif;
	--glow: #A3E635;
}
.ys-main h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.25; }
.ys-main h1, .ys-brand { font-weight: 800; }

/* hero: the one dark band */
.ys-hero { position: relative; min-height: min(80vh, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0b0c0b;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 48px)); }
.ys-hero__bg { position: absolute; inset: 0; margin: 0; }
.ys-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.ys-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 8, .92) 8%, rgba(8, 9, 8, .25) 70%); pointer-events: none; }
.ys-hero__in { position: relative; z-index: 1; padding-block: 60px 96px; width: 100%; }
.ys-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.1; max-width: 14ch; color: #fff; }
.ys-hero h1 em { color: var(--glow); }
.ys-hero__in > p { font-size: 19px; color: #E7EAE4; max-width: 40ch; margin-top: 12px; }
.ys-hero .wp-block-buttons { margin-top: 26px; }
.ys-hero .ys-btn-book .wp-block-button__link { background: var(--glow); color: #121412; }
.ys-hero .ys-btn-book .wp-block-button__link:hover { background: #BEF264; }

/* strip */
.ys-strip__in { display: flex; flex-wrap: wrap; gap: 12px 36px; padding-block: 20px 26px; font-weight: 600; }

/* packages */
.ys-services { padding-block: 40px 70px; }
.ys-services__in > p { color: var(--ys-muted); margin-top: 6px; }
.ys-card { border-top: 4px solid var(--ys-accent); }
.ys-card .ys-price { font-size: 22px; }

/* why: three tiles, the middle one dark */
.ys-why { padding-bottom: 70px; }
.ys-why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.ys-why .ys-point { background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: var(--ys-r); padding: 22px; }
.ys-why .ys-point:nth-child(2) { background: var(--ys-ink); border-color: var(--ys-ink); color: #fff; }
.ys-why .ys-point:nth-child(2) p { color: #BFC4BC; }
.ys-why .ys-point:nth-child(2) .ys-icon { background: #262a25; color: var(--glow); }

/* gallery */
.ys-gallery { padding-bottom: 70px; }
.ys-gallery__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.ys-gallery__grid figure { margin: 0; }
.ys-gallery__grid img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--ys-r); display: block; }

/* visit */
.ys-visit { padding-bottom: 70px; }
.ys-visit__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; }
.ys-visit__text { display: grid; gap: 12px; align-content: start; }
.ys-visit .wp-block-buttons { margin-top: 8px; }

@media (max-width: 860px) {
	.ys-hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 24px)); }
	.ys-hero__in { padding-block: 40px 70px; }
	.ys-why__grid, .ys-gallery__grid, .ys-visit__in { grid-template-columns: 1fr; }
}
