/*
Theme Name: Yalhem Build
Description: Contracting company portfolio for Yalhem Sites: dark site-photo hero, amber accents, projects gallery, quote form. Requires the Yalhem Sites plugin.
Version: 0.1.3
Requires at least: 6.6
Requires PHP: 8.2
Author: Yalhem
Text Domain: yalhem-build
*/

/* Design read: contracting company profile for property owners and developers, solid and dependable; slate + amber,
   hard edges, one dark hero, hazard-stripe accent line. Dials V5 M3 D5. */
:root {
	--ys-bg: #F3F4F6; --ys-surface: #fff; --ys-ink: #111827; --ys-muted: #4B5563; --ys-line: #E1E4E8;
	--ys-accent: #B45309; --ys-on-accent: #fff; --ys-accent-hover: #92400E; --ys-soft: #FDF0DD; --ys-on-soft: #92400E;
	--ys-r: 4px; --ys-btn-r: 4px; --ys-font: 'Rubik', system-ui, sans-serif; --ys-display: 'Rubik', system-ui, sans-serif;
	--amber: #F59E0B;
	--stripe: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111827 14px 28px);
}
.ys-main h1, .ys-main h2 { font-weight: 800; }
.ys-main h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; }
.ys-hdr { border-bottom: 0; box-shadow: 0 1px 0 var(--ys-line); }
.ys-hdr::after { content: ""; display: block; height: 5px; background: var(--stripe); }

/* hero: dark site photo */
.ys-hero { position: relative; min-height: min(78vh, 620px); display: flex; align-items: center; color: #fff; overflow: hidden; background: #0b0f17; }
.ys-hero__bg { position: absolute; inset: 0; margin: 0; }
.ys-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ys-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(11, 15, 23, .92) 10%, rgba(11, 15, 23, .35) 75%); pointer-events: none; }
.ys-hero__in { position: relative; z-index: 1; padding-block: 70px; width: 100%; }
.ys-hero h1 { font-size: clamp(40px, 5.6vw, 70px); line-height: 1.12; max-width: 15ch; color: #fff; }
.ys-hero h1 em { color: var(--amber); }
.ys-hero__in > p { font-size: 19px; color: #D9DEE6; max-width: 40ch; margin-top: 14px; }
.ys-hero .wp-block-buttons { margin-top: 28px; }
.ys-hero .ys-btn-quote .wp-block-button__link { background: var(--amber); color: #111827; }
.ys-hero .ys-btn-quote .wp-block-button__link:hover { background: #FBBF24; }

/* services */
.ys-services { padding-block: 70px; }
.ys-services__in > p { color: var(--ys-muted); margin-top: 8px; }
.ys-card { border-top: 4px solid var(--amber); }

/* projects */
.ys-projects-sec { padding-block: 70px; background: var(--ys-surface); border-block: 1px solid var(--ys-line); }
.ys-projects-sec .wp-block-buttons { margin-top: 28px; }
.ys-project__cat { color: var(--ys-accent); }

/* about */
.ys-about { padding-block: 70px; }
.ys-about__in { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.ys-about__text > p { color: var(--ys-muted); margin-top: 12px; }
.ys-points { display: grid; gap: 14px; margin-top: 24px; }
.ys-points .ys-point { background: var(--ys-surface); border: 1px solid var(--ys-line); border-inline-start: 4px solid var(--amber); padding: 16px; border-radius: var(--ys-r); }
.ys-about__img { margin: 0; position: relative; }
.ys-about__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--ys-r); }
.ys-about__img::after { content: ""; position: absolute; inset-block-end: -10px; inset-inline-start: 24px; width: 40%; height: 10px; background: var(--stripe); }

/* CTA */
.ys-cta { background: var(--ys-ink); color: #fff; }
.ys-cta__in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 50px; }
.ys-cta h2 { color: #fff; }
.ys-cta .ys-btn-white .wp-block-button__link { background: var(--amber); color: #111827; }

/* inner pages */
.ys-page-hero { background: var(--ys-ink); color: #fff; border: 0; }
.ys-page-hero h1 { color: #fff; }
.ys-page-hero__in > p { color: #C9D0DA; }
.ys-contact { padding-block: 56px 80px; }
.ys-contact__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.ys-contact h2 { font-size: 24px; margin-bottom: 14px; }
.ys-contact__info { display: grid; gap: 12px; }
.ys-contact__info .ys-map { min-height: 260px; margin-top: 8px; }


/* services: 4 across so four services don't leave one alone on a second row */
.ys-services .ys-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .ys-services .ys-grid { grid-template-columns: repeat(2, 1fr); } }

/* contact: columns may shrink; stack before the map/info column gets squeezed */
.ys-contact__in > * { min-width: 0; }
.ys-contact__info .wp-block-buttons { flex-wrap: wrap; }
@media (max-width: 1024px) { .ys-contact__in { grid-template-columns: 1fr !important; } }
@media (max-width: 860px) {
	.ys-about__in, .ys-contact__in { grid-template-columns: 1fr; gap: 30px; }
	.ys-hero::after { background: linear-gradient(to top, rgba(11, 15, 23, .92) 20%, rgba(11, 15, 23, .45) 80%); }
	.ys-services, .ys-projects-sec, .ys-about { padding-block: 48px; }
	.ys-cta__in { flex-direction: column; align-items: flex-start; }
}
