/*
Theme Name: Yalhem Studio
Description: Interior design studio portfolio for Yalhem Sites: editorial layout, large imagery, 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-studio
*/

/* Design read: interior design studio portfolio for homeowners, calm editorial language, stone base + terracotta
   accent, square-cut images, generous white space, Kufi display. Dials V7 M3 D3. */
:root {
	--ys-bg: #F5F4F1; --ys-surface: #fff; --ys-ink: #1C1C1A; --ys-muted: #67645E; --ys-line: #E2DFD8;
	--ys-accent: #9A4A2B; --ys-on-accent: #fff; --ys-accent-hover: #7E3B21; --ys-soft: #EFE3DB; --ys-on-soft: #7E3B21;
	--ys-r: 2px; --ys-btn-r: 2px; --ys-font: 'Readex Pro', system-ui, sans-serif; --ys-display: 'Noto Kufi Arabic', sans-serif;
	--ys-hdr-h: 74px;
}
.ys-main h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.35; }
.ys-brand { font-weight: 700; }

/* hero: text overlaps a large image */
.ys-hero { padding-block: 30px 80px; }
.ys-hero__in { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; }
.ys-hero__text { position: relative; z-index: 1; background: var(--ys-bg); padding: 40px 0 40px 44px; margin-inline-end: -120px; }
.ys-hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; line-height: 1.25; }
.ys-hero__text > p { color: var(--ys-muted); font-size: 18px; margin-top: 16px; max-width: 34ch; }
.ys-hero .wp-block-buttons { margin-top: 28px; }
.ys-hero__img { margin: 0; }
.ys-hero__img img { width: 100%; aspect-ratio: 5/4; object-fit: cover; display: block; }

/* services */
.ys-services { padding-block: 70px; background: var(--ys-surface); }
.ys-services__in > p { color: var(--ys-muted); margin-top: 8px; max-width: 60ch; }
.ys-card { box-shadow: none; border: 1px solid var(--ys-line); }

/* projects: first card spans two columns */
.ys-projects-sec { padding-block: 70px; }
.ys-projects-sec .wp-block-buttons { margin-top: 30px; }
.ys-project-grid { gap: 28px 22px; }
.ys-project:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.ys-project:first-child .ys-project__open { aspect-ratio: auto; flex: 1; min-height: 300px; }

/* about */
.ys-about { padding-block: 70px; background: var(--ys-surface); }
.ys-about__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.ys-about__text > p { color: var(--ys-muted); margin-top: 12px; max-width: 52ch; }
.ys-points { display: grid; gap: 18px; margin-top: 26px; }
.ys-about__img { margin: 0; }
.ys-about__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }

/* CTA band: the one dark band */
.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: 54px; }
.ys-cta h2 { color: #fff; }
.ys-cta .ys-btn-white .wp-block-button__link { color: var(--ys-ink); }

/* inner pages */
.ys-page-hero { background: var(--ys-surface); }
.ys-contact { padding-block: 56px 80px; }
.ys-contact__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.ys-contact h2 { font-size: 24px; margin-bottom: 16px; }
.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-hero__text { margin: 0; padding: 0; order: 0; }
	.ys-project:first-child { grid-column: span 2; grid-row: auto; }
	.ys-project:first-child .ys-project__open { aspect-ratio: 4/3; flex: none; min-height: 0; }
	.ys-services, .ys-projects-sec, .ys-about { padding-block: 48px; }
	.ys-cta__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .ys-project:first-child { grid-column: auto; } }
