/*
Theme Name: Yalhem Lens
Description: Photography studio portfolio for Yalhem Sites: image mosaic hero, monochrome with one red accent, work gallery, booking/quote form. Requires the Yalhem Sites plugin.
Version: 0.1.5
Requires at least: 6.6
Requires PHP: 8.2
Author: Yalhem
Text Domain: yalhem-lens
*/

/* Design read: photography studio portfolio for brands and families, gallery-first, monochrome base with a single
   red "record" accent, rounded 14px, Almarai 800 display. Dials V7 M4 D4. */
:root {
	--ys-bg: #FAFAFA; --ys-surface: #fff; --ys-ink: #0A0A0A; --ys-muted: #5C5C5C; --ys-line: #E6E6E6;
	--ys-accent: #C8102E; --ys-on-accent: #fff; --ys-accent-hover: #A00D25; --ys-soft: #F4F4F4; --ys-on-soft: #0A0A0A;
	--ys-r: 14px; --ys-btn-r: 999px; --ys-font: 'Almarai', system-ui, sans-serif; --ys-display: 'Almarai', system-ui, sans-serif;
}
.ys-main h1, .ys-main h2 { font-weight: 800; }
.ys-main h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
.ys-brand { font-weight: 700; }
.ys-brand__icon { border-radius: 50%; background: var(--ys-ink); }

/* hero: text + three-image mosaic */
.ys-hero { padding-block: 34px 70px; }
.ys-hero__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ys-hero h1 { font-size: clamp(40px, 5.4vw, 70px); font-weight: 700; line-height: 1.15; }
.ys-hero h1 em::before { content: ""; display: inline-block; width: .32em; height: .32em; border-radius: 50%; background: var(--ys-accent); margin-inline-end: .12em; vertical-align: .55em; }
.ys-hero h1 em { color: var(--ys-ink); white-space: nowrap; }
.ys-hero__text > p { color: var(--ys-muted); font-size: 18px; margin-top: 14px; max-width: 34ch; }
.ys-hero .wp-block-buttons { margin-top: 26px; }
.ys-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(320px, 40vw, 520px); }
.ys-mosaic figure { margin: 0; min-height: 0; }
.ys-mosaic figure:first-child { grid-row: span 2; }
.ys-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ys-r); display: block; }

/* services */
.ys-services { padding-block: 64px; background: var(--ys-ink); color: #fff; }
.ys-services h2 { color: #fff; }
.ys-services__in > p { color: #BDBDBD; margin-top: 8px; }
.ys-services .ys-card { background: #161616; box-shadow: none; }
.ys-services .ys-card h3 { color: #fff; }
.ys-services .ys-card p { color: #A8A8A8; }
.ys-services .ys-quote-link { color: #fff; }

/* projects */
.ys-projects-sec { padding-block: 70px; }
.ys-projects-sec .wp-block-buttons { margin-top: 28px; }

/* about */
.ys-about { padding-bottom: 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; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.ys-points .ys-point { grid-template-columns: 1fr; row-gap: 8px; align-content: start; background: var(--ys-surface); border: 1px solid var(--ys-line); border-radius: var(--ys-r); padding: 18px; }
.ys-points .ys-point .ys-icon { grid-row: auto; align-self: start; }
.ys-about__img { margin: 0; }
.ys-about__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--ys-r); display: block; }

/* CTA */
.ys-cta__in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-block: 50px; border-top: 1px solid var(--ys-line); }
.ys-cta .ys-btn-white .wp-block-button__link { background: var(--ys-accent); color: #fff; }
.ys-cta .ys-btn-out .wp-block-button__link { color: var(--ys-ink); box-shadow: inset 0 0 0 1.5px var(--ys-ink); }

/* inner pages */
.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-hero__in, .ys-about__in, .ys-contact__in { grid-template-columns: 1fr; gap: 30px; }
	.ys-mosaic { height: 320px; }
	.ys-points { grid-template-columns: 1fr; }
	.ys-services, .ys-projects-sec { padding-block: 48px; }
	.ys-cta__in { flex-direction: column; align-items: flex-start; }
}
