/*
Theme Name: Yalhem Bold
Description: Home maintenance card theme for Yalhem Sites: call-first hero, service cards, numbered steps, service areas, 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-bold
*/

/* Design read: home-maintenance card site for households who need help today; trust + speed, cobalt + white,
   squared shapes, one cobalt CTA band. Dials V5 M3 D5. */
:root {
	--ys-bg: #F6F8FB; --ys-surface: #fff; --ys-ink: #0F172A; --ys-muted: #556070; --ys-line: #DFE5EE;
	--ys-accent: #1D4ED8; --ys-on-accent: #fff; --ys-accent-hover: #1E40AF; --ys-soft: #E6EDFC; --ys-on-soft: #1E3A8A;
	--ys-r: 12px; --ys-btn-r: 10px; --ys-font: 'Almarai', system-ui, sans-serif; --ys-display: 'Almarai', system-ui, sans-serif;
}
body { font-size: 16px; }
.ys-main h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.3; }
.ys-main h1 { font-weight: 800; }

/* hero */
.ys-hero { padding-block: 36px 60px; }
.ys-hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.ys-hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.2; }
.ys-hero__text > p { font-size: 18px; color: var(--ys-muted); margin-top: 14px; max-width: 38ch; }
.ys-hero .wp-block-buttons { margin-top: 26px; }
.ys-hero .wp-block-button__link { padding: 16px 26px; font-size: 16px; }
.ys-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ys-badges .ys-fact { background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; }
.ys-hero__img { margin: 0; position: relative; }
.ys-hero__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ys-r); display: block; }
.ys-hero__img::after { content: ""; position: absolute; inset-block-end: -14px; inset-inline-start: -14px; width: 46%; height: 46%; background: var(--ys-accent); border-radius: var(--ys-r); z-index: -1; }

/* services */
.ys-services { padding-block: 64px; background: var(--ys-surface); border-block: 1px solid var(--ys-line); }
.ys-services__in > p { color: var(--ys-muted); margin-top: 8px; }
.ys-services .ys-bar { background: var(--ys-surface); }

/* steps: the step verb is the label, the number is decoration */
.ys-steps { padding-block: 70px; }
.ys-steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; counter-reset: step; }
.ys-howto { counter-increment: step; background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: var(--ys-r); padding: 22px; position: relative; display: grid; gap: 6px; }
.ys-howto::after { content: counter(step, arabic-indic); position: absolute; top: 14px; inset-inline-end: 18px; font: 800 40px/1 var(--ys-font); color: var(--ys-soft); }
.ys-howto .ys-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--ys-r); background: var(--ys-soft); color: var(--ys-accent); font-size: 24px; }
.ys-howto h3 { font: 800 18px/1.4 var(--ys-font); margin-top: 8px; }
.ys-howto p { color: var(--ys-muted); font-size: 15px; }

/* areas */
.ys-areas { padding-bottom: 70px; }
.ys-areas__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.ys-areas__text > p { color: var(--ys-muted); margin-top: 8px; }
.ys-area-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.ys-area-list li { background: var(--ys-soft); color: var(--ys-on-soft); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; }
.ys-areas__img { margin: 0; }
.ys-areas__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--ys-r); display: block; }

/* CTA band: the one cobalt band */
.ys-cta { background: var(--ys-accent); color: #fff; }
.ys-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding-block: 44px; }
.ys-cta h2 { color: #fff; flex: 1 1 320px; }
.ys-cta .ys-fact { font: 800 24px/1 var(--ys-font); }
.ys-cta .ys-fact .ys-icon { color: #fff; }
.ys-cta .ys-info { direction: ltr; }
.ys-cta .ys-btn-white .wp-block-button__link { color: var(--ys-accent); }

@media (max-width: 860px) {
	.ys-hero__in, .ys-areas__in { grid-template-columns: 1fr; gap: 30px; }
	.ys-hero__img { width: 92%; margin-inline: auto; }
	.ys-steps__list { grid-template-columns: 1fr; }
	.ys-services, .ys-steps { padding-block: 48px; }
	.ys-cta__in { flex-direction: column; align-items: flex-start; }
}
