/*
Theme Name: Edifice
Theme URI: https://sarhtrade.com
Description: منصة الصرح — authorized ARTIC agent. Arabic-first block theme.
Version: 0.1.2
Requires at least: 6.6
Requires PHP: 8.2
Text Domain: edifice
License: Proprietary
*/

/* ---------- Base ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.wp-site-blocks { padding: 0; }
/* Screen-edge gutter for the header bar and the edge buttons (social rail, WhatsApp, scroll arrow, hero caption).
   Was the 1320 grid line until 2026-11-21: on screens wider than ~1370px that pushed the nav and icons inwards (user).
   Content (.edifice-wrap) stays on the 1320 grid; only edge furniture uses this. */
:root { --edifice-edge: clamp(24px, 2.5vw, 48px); --edifice-grid: clamp(1320px, calc(100vw - 120px), 1560px); } /* content grid: grows with the screen from 1440 to 1680 wide (user 2026-11-24: 1680-wide windows had 196px side margins) */
.edifice-main { margin-block-start: 0 !important; }
.edifice-main > * { margin-block: 0 !important; }
.edifice-wrap { max-width: var(--edifice-grid); margin-inline: auto !important; padding-inline: 24px; box-sizing: border-box; }
.edifice-lead { color: var(--wp--preset--color--muted); max-width: 620px; margin: 0; }
h2.wp-block-heading { margin: 0; }
:where(a, button):focus-visible { outline: 2px solid var(--wp--preset--color--sage); outline-offset: 3px; }

/* ---------- Header: solid, sticky ---------- */
.edifice-site-header {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 50;
	background: var(--wp--preset--color--limestone); border-bottom: 1px solid var(--wp--preset--color--line);
}
.edifice-header { max-width: none; margin-inline: 0; padding: 12px var(--edifice-edge); /* full width, edge gutter (user 2026-11-21) */ box-sizing: border-box; gap: 24px; }
.edifice-header__brand { gap: 18px; }
.edifice-header__logo { margin: 0; flex-shrink: 0; }
.edifice-header__logo a { display: block; } /* no inline baseline gap under the logo */
.edifice-header__logo img { width: 76px; height: 80px; object-fit: contain; display: block; }
.edifice-header__name { margin: 0; font-size: clamp(20px, 1.4vw + 12px, 32px); font-weight: 600; line-height: 1.35; white-space: nowrap; }
.edifice-header__name a { color: var(--wp--preset--color--ink); text-decoration: none; }
.edifice-header__agent { gap: 16px; }
.edifice-header__agent p { margin: 0; font-size: 20px; font-weight: 700; white-space: nowrap; }
.edifice-header__agent figure { margin: 0; }
.edifice-header__agent img { height: 64px; width: auto; display: block; position: relative; top: 8px; }
/* Two agencies (user 2026-11-19, option أ), ARTIC first (user 2026-11-21: ARTIC always leads SIEFCO): ARTIC | SIEFCO, thin rule between */
.edifice-header__agent .edifice-header__artic { padding-inline-end: 16px; border-inline-end: 1px solid var(--wp--preset--color--line); }
.edifice-header__agent .edifice-header__siefco img { height: 36px; top: 0; }

/* Burger = core Navigation overlay */
.edifice-menu .wp-block-navigation__responsive-container-open { min-width: 44px; min-height: 44px; justify-content: center; }
.edifice-menu .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.edifice-menu .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; }
/* Open menu = Glaze-style (user 2026-11-18): full screen of white marble (tools/build_marble.py), five big light links centred,
   English small at the bottom; "back" = a lone arrow at the top, where the burger was (points right = back in RTL). */
.edifice-menu .wp-block-navigation__responsive-container.is-menu-open { background: #F3F1ED url("assets/img/marble.jpg") center / cover no-repeat !important; padding: 0 !important; }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-close { width: 100%; min-height: 100%; display: flex; flex-direction: column; }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-dialog { flex: 1; display: flex; flex-direction: column; padding: 0 24px; box-sizing: border-box; }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close { top: 30px; right: 24px; left: auto; } /* carousel.js then moves it exactly over the burger */
.edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close svg { display: none; }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close { display: flex; align-items: center; justify-content: center; }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close::before { content: ""; display: block; width: 34px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346594A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close:hover::before { transform: translateX(4px); }
.edifice-menu .is-menu-open .wp-block-navigation__responsive-container-content { flex: 1; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; padding: 96px 0 !important; }
.edifice-menu .is-menu-open .wp-block-navigation__container.wp-block-navigation__container { flex: 0 0 auto !important; max-width: 1100px; flex-direction: row !important; flex-wrap: wrap; justify-content: center !important; align-items: baseline !important; gap: clamp(20px, 4vh, 48px) clamp(40px, 7vw, 120px) !important; }
.edifice-menu .is-menu-open .wp-block-navigation-item__content { font-size: clamp(30px, 3.6vw, 56px); font-weight: 300; line-height: 1.3; color: var(--wp--preset--color--ink); padding: 6px 0 !important; transition: color .2s; }
.edifice-menu .is-menu-open .wp-block-navigation-item__content:hover,
.edifice-menu .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--sage); }
.edifice-menu .is-menu-open .edifice-menu__lang { position: fixed; bottom: 28px; right: max(24px, var(--edifice-edge)); } /* bottom corner, same edge as the back arrow (user 2026-11-18) */
.edifice-menu .is-menu-open .edifice-menu__lang .wp-block-navigation-item__content { font-size: 16px; font-weight: 500; letter-spacing: .08em; color: var(--wp--preset--color--muted); }
@media (max-width: 760px) {
	.edifice-menu .is-menu-open .wp-block-navigation__container.wp-block-navigation__container { flex-direction: column !important; align-items: center !important; gap: 8px !important; }
	.edifice-menu .is-menu-open .wp-block-navigation-item__content { font-size: 32px; }
	.edifice-menu .is-menu-open .edifice-menu__lang { bottom: 20px; right: 16px; }
}

/* ---------- Carousels (CSS scroll-snap; dots from assets/carousel.js) ---------- */
.edifice-track.edifice-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.edifice-track::-webkit-scrollbar { display: none; }
.edifice-track.edifice-track > * { margin: 0; flex: 0 0 100%; scroll-snap-align: start; }
.edifice-track--3.edifice-track--3 > * { flex-basis: calc((100% - 32px) / 3); }
.edifice-track--3 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.edifice-dots { display: flex; justify-content: center; gap: 2px; margin-top: 20px; }
.edifice-dots button { width: 28px; height: 28px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.edifice-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #CFC6B6; transition: width .2s; }
.edifice-dots button[aria-current="true"]::before { width: 22px; background: var(--wp--preset--color--sage); }

.edifice-main picture { display: contents; } /* <picture> only swaps the file on phones; layout rules stay on the img */
/* Autoplay photos download one ahead (carousel.js adds .is-near); a lazy image that isn't displayed is not fetched. */
@media (scripting: enabled) { .edifice-track--auto > :not(:first-child):not(.is-near) img { display: none !important; } }

/* ---------- Hero ---------- */
/* Full-screen sections: exactly the screen left under the nav (and above the phone bar); variables set by carousel.js. */
/* ponytail: 420px floor only stops a squashed section on landscape phones. */
:root { --edifice-screen: max(420px, calc(100svh - var(--edifice-head, 105px) - var(--wp-admin--admin-bar--height, 0px))); }
.edifice-hero { position: relative; height: var(--edifice-screen); background: #2E3A35; overflow: hidden; margin: 0; }
.edifice-hero .edifice-track { gap: 0; height: 100%; }
.edifice-hero figure { position: relative; height: 100%; }
.edifice-hero figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edifice-hero figure::after { content: ""; position: absolute; inset: 0; background: rgba(23, 32, 29, .26); pointer-events: none; }
.edifice-hero figcaption { position: absolute; left: max(24px, var(--edifice-edge)); bottom: 40px; z-index: 1; margin: 0; color: #FFFFFF; font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
/* Motto: centred over every slide; clicks pass through to the carousel. */
.edifice-motto.edifice-motto { position: absolute; top: 50%; right: max(6vw, var(--edifice-edge)); transform: translateY(-50%); z-index: 1; margin: 0; padding: 0; max-width: min(27vw, 520px); text-align: start; pointer-events: none; color: #FFFFFF; font-size: clamp(24px, 2.6vw, 40px); font-weight: 600; line-height: 1.35; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.edifice-motto > span:not(.screen-reader-text) { display: block; } /* option ب, 2026-11-16: two lines, middle of the first third */
.edifice-hero .edifice-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 2; }
.edifice-hero .edifice-dots button::before { background: rgba(255, 255, 255, .55); }
.edifice-hero .edifice-dots button[aria-current="true"]::before { background: #FFFFFF; }

/* Rail (user 2026-11-18): no line; WhatsApp + Instagram + Facebook = one column of equal 44px circles, 12px apart, centred on the hero's height.
   WhatsApp is fixed (stays on scroll) and sits where the column's first slot is: hero top + half the hero − half the column (3×44 + 2×12 = 156 → 78). */
.edifice-rail.edifice-rail { position: absolute; left: max(22px, var(--edifice-edge)); top: calc(50% - 22px); /* column top (−78px) + one slot (44 + 12) */ z-index: 2; margin: 0; gap: 12px; align-items: center; }
.edifice-rail .wp-social-link a { width: 44px; height: 44px; border-radius: 50%; background: rgba(23, 32, 29, .45); backdrop-filter: blur(4px); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.edifice-rail.edifice-rail .wp-social-link { display: flex; } /* the inline link left a 47px line box; the slot must be exactly 44px */
.edifice-rail .wp-social-link svg { width: 24px; height: 24px; }

body:not(.home) .edifice-wa-fab { display: none; } /* home page only (user 2026-11-16) */
.edifice-wa-fab { position: fixed; left: max(22px, var(--edifice-edge)); top: calc(var(--edifice-head, 105px) + var(--wp-admin--admin-bar--height, 0px) + var(--edifice-screen) / 2 - 78px); z-index: 30; width: 44px; height: 44px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(23, 32, 29, .25); }
.edifice-scroll { position: fixed; right: max(22px, var(--edifice-edge)); bottom: 24px; z-index: 30; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; background: rgba(23, 32, 29, .45); backdrop-filter: blur(4px); transition: transform .3s, background-color .2s; }
.edifice-scroll svg { width: 30px; height: 30px; }
.edifice-scroll:hover { background: rgba(23, 32, 29, .7); }
.edifice-scroll--up { transform: rotate(180deg); }

/* Section pages (main.edifice-screens: home, about, products) — rules in docs/LAYOUT-RULES.md. Every section is one screen under the nav; min-height, so nothing is ever clipped. */
.edifice-screens > * { min-height: var(--edifice-screen) !important; box-sizing: border-box; }
.edifice-screens > :is(.edifice-intro, .edifice-contact, .edifice-mission, .edifice-agency, .edifice-agencies, .edifice-projects) { display: flex; flex-direction: column; justify-content: center; padding-block: 48px; }
.edifice-screens > :is(.edifice-intro, .edifice-contact, .edifice-mission, .edifice-agency, .edifice-agencies, .edifice-projects) > * { width: 100%; } /* flex would shrink the 1320px wrap to its text and centre it */
/* Text sections: the first line of text starts the same distance below the section top (user, 2026-11-16) */
:root { --edifice-sec-top: clamp(48px, 10svh, 96px); } /* --edifice-after-head below: same space under the headline in home intro, agencies, showroom (user 2026-11-21: content sat high, empty space below) */
:root { --edifice-after-head: var(--edifice-sec-top); }
.edifice-screens > :is(.edifice-intro, .edifice-contact, .edifice-mission, .edifice-agency, .edifice-agencies, .edifice-projects) { justify-content: flex-start; padding-top: var(--edifice-sec-top); }
/* Short content: centred on the screen, same space above and below (user 2026-11-24). Phones: see the 760px block. */
.edifice-screens > :is(.edifice-intro, .edifice-agencies) { justify-content: center; padding-block: 48px; }
.edifice-agency .wp-block-columns { align-items: flex-start !important; }
.edifice-agency .wp-block-column { align-self: flex-start !important; }
.edifice-screens .edifice-showroom__text, .edifice-screens .edifice-split__text { justify-content: flex-start; padding-top: var(--edifice-sec-top); }
/* Desktop home: scrolling lands on whole sections (snap), so each one fills the screen under the nav exactly. */
@media (min-width: 761px) {
	html:has(.edifice-screens) { scroll-snap-type: y mandatory; scroll-padding-top: calc(var(--edifice-head, 105px) + var(--wp-admin--admin-bar--height, 0px)); }
	.edifice-screens > * { scroll-snap-align: start; }
	body:has(.edifice-screens) .wp-site-blocks > footer { scroll-snap-align: end; }
}
.wp-site-blocks > footer { margin-block-start: 0; } /* the 24px block gap showed as a beige band above the footer */

/* ---------- Products band ---------- */
.edifice-products.edifice-products { text-align: center; padding: 96px 24px; margin: 0; }
.edifice-products .wp-block-cover__inner-container { display: flex; flex-direction: column; align-items: center; gap: 20px; color: var(--wp--preset--color--ink); }
.edifice-products h2 { margin: 0; }
.edifice-cats { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 14px; margin: 0; font-size: var(--wp--preset--font-size--large); font-weight: 500; }
.edifice-products__lead { margin: 0; max-width: 640px; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--ink); }
.edifice-cats { max-width: 980px; }
.edifice-cats a { color: var(--wp--preset--color--ink); text-decoration: none; padding: 8px 0; }
.edifice-cats small { font-size: .7em; font-weight: 600; color: var(--wp--preset--color--sage-dark); }
.edifice-cats span { color: var(--wp--preset--color--sage-dark); }
.edifice-all { margin: 12px 0 0; }
.edifice-all a { font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; color: var(--wp--preset--color--ink); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }
.edifice-cats a:hover, .edifice-all a:hover { color: var(--wp--preset--color--sage-dark); }

/* ---------- Showroom ---------- */
/* Full screen: text on the start (right) side, one autoplay photo filling the other half to the edge. */
.edifice-showroom.edifice-showroom { height: var(--edifice-screen); display: grid; grid-template-columns: 1fr 1fr; /* photo column 50% (2026-11-23: wider landscape frame) */ margin: 0; background: var(--wp--preset--color--limestone); } /* limestone since 2026-11-21: agencies (white) now sits between intro and showroom */
.edifice-showroom__text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 48px 56px; padding-inline-start: max(24px, calc((100% / .5 - var(--edifice-grid)) / 2 + 24px)); } /* this column is 50% of the page, so 100% / .5 = page width (grid line without the scrollbar) */
.edifice-showroom__text > * { margin: 0; }
.edifice-showroom__text > h2 { margin-bottom: calc(var(--edifice-after-head) - 14px); } /* 14px = the column gap */
.edifice-showroom__text .edifice-lead { font-size: var(--wp--preset--font-size--large); }
.edifice-showroom__text .edifice-points { margin-top: 6px; }
.edifice-showroom__visit { font-size: 15px; color: #55605B; }
.edifice-showroom__text .edifice-all { margin-top: 10px; }
/* Short lists with a small sage square (the logo's paver tile) as the marker. */
.edifice-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.edifice-points li { display: flex; align-items: baseline; gap: 12px; }
.edifice-points li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; background: var(--wp--preset--color--sage); position: relative; top: -2px; }

/* ---------- Who we are (limestone, between products and the white showroom) ---------- */
.edifice-intro { padding-block: 100px; margin: 0; }
.edifice-intro .edifice-wrap > * { margin: 0; }
.edifice-intro .edifice-lead { margin-top: var(--edifice-after-head); }
.edifice-intro .edifice-facts-row { margin-block: 48px 40px; }
.edifice-intro .edifice-all { text-align: center; }
.edifice-facts-row--3.edifice-facts-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edifice-steps { counter-reset: step; }
.edifice-steps li::before { counter-increment: step; content: counter(step); color: var(--wp--preset--color--sage); font-weight: 600; font-size: 28px; line-height: 1; margin-bottom: 8px; }
.edifice-showroom__media { position: relative; min-height: 0; margin: 0 !important; --sr-pad-y: calc(var(--edifice-sec-top) * .6); padding-block: var(--sr-pad-y); --sr-ps: clamp(0px, 2vw, 32px); --sr-pe: calc(max(22px, var(--edifice-edge)) + 60px); padding-inline: var(--sr-ps) var(--sr-pe); display: flex; justify-content: center; } /* 2026-11-22: end padding only clears the WhatsApp button (22px/edge + 44px + 16px); it used to follow the grid line, which squeezed the photo to a sliver on wide screens */ /* photo inset (user 2026-11-21): column = 45% of the page (100% / .45 = page width); outer edge clears the WhatsApp button (its 22px/grid-line spot + 44px + 16px gap) */
.edifice-showroom__media .edifice-track { border-radius: 4px; }
.edifice-showroom__frame { position: relative; width: 100%; margin: 0 !important; } /* photo + its dots (2026-11-23) */
.edifice-showroom__media .edifice-track { gap: 0; height: 100%; }
.edifice-showroom__media figure, .edifice-showroom__media img { height: 100%; }
.edifice-showroom__media img { width: 100%; object-fit: cover; display: block; }
.edifice-showroom__media .edifice-dots { position: absolute; z-index: 2; bottom: 16px; inset-inline: 0; margin: 0; } /* on the photo, centred */
@media (min-width: 761px) { .edifice-showroom__media { align-items: center; container-type: size; } .edifice-showroom__frame { width: min(100cqw, 100cqh * 4 / 3); aspect-ratio: 4 / 3; } } /* landscape frame (user 2026-11-23: portrait looked too tall); 4:3 = the storefront photo, so it fills the frame like the rest */
.edifice-showroom__media .edifice-dots button::before { background: rgba(255, 255, 255, .6); }
.edifice-showroom__media .edifice-dots button[aria-current="true"]::before { background: #FFFFFF; }

/* ---------- Location | Contact ---------- */
/* ponytail: section is width-constrained (.edifice-wrap); shadow + clip-path bleed the white to the viewport edges. */
.edifice-contact { padding-block: 100px; background: var(--wp--preset--color--limestone); box-shadow: 0 0 0 100vmax var(--wp--preset--color--limestone); clip-path: inset(0 -100vmax); }
.edifice-contact .wp-block-columns { gap: 48px 56px; margin: 0; }
.edifice-contact .wp-block-column > * + * { margin-top: 24px; }
.edifice-contact__reach { border-inline-start: 1px solid #D6CDBE; padding-inline-start: 56px; }
/* Map = crisp SVG (tools/build_map.py) centred on the showroom; the pin is live HTML at the centre (Glaze method). */
.edifice-map { position: relative; display: block; aspect-ratio: 1360 / 520; background: #F3F3F1; overflow: hidden; }
.edifice-map svg { width: 100%; height: 100%; display: block; font-family: var(--wp--preset--font-family--plex); }
.edifice-pin { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #D9692B; box-shadow: 0 0 0 5px rgba(173, 152, 121, .55); }
.edifice-pin::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #D9692B; animation: edifice-ping 2s ease-out infinite; }
/* Showroom name chip above the pin: says plainly what the dot is. */
.edifice-pin__label { position: absolute; left: 50%; bottom: calc(50% + 16px); transform: translateX(-50%); background: #FFFFFF; color: var(--wp--preset--color--muted); font-size: 12px; line-height: 1.5; padding: 6px 12px; text-align: center; white-space: nowrap; box-shadow: 0 2px 10px rgba(23, 32, 29, .14); }
.edifice-pin__label strong { display: block; color: var(--wp--preset--color--ink); font-size: 14px; font-weight: 600; }
.edifice-pin__label::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #FFFFFF; }
@keyframes edifice-ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }
.edifice-map__credit { position: absolute; left: 6px; bottom: 4px; font-size: 10px; line-height: 1; color: #8A8A8A; }
.edifice-visit { gap: 16px 32px; align-items: center; }
.edifice-visit .wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; }
.edifice-facts, .edifice-reach { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.edifice-facts { gap: 10px; font-size: 15px; color: var(--wp--preset--color--muted); }
.edifice-facts li { display: flex; align-items: center; gap: 12px; }
.edifice-facts strong { font-size: 16px; font-weight: 500; color: var(--wp--preset--color--ink); }
.edifice-ci { width: 44px; height: 44px; border-radius: 50%; background: #EEE8DE; color: var(--wp--preset--color--sage-dark); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.edifice-facts .edifice-ci { width: 36px; height: 36px; }
.edifice-ci--wa { background: #25D366; color: #FFFFFF; }
.edifice-reach { gap: 14px; }
.edifice-reach a { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--wp--preset--color--ink); min-height: 56px; }
.edifice-reach a:hover { color: var(--wp--preset--color--sage-dark); }
.edifice-reach small { display: block; font-size: 13px; color: #55605B; }
/* Each row = icon slot + text. The slot fits two icons (935 6600 = WhatsApp, then call), so every row's text starts on the same line. */
.edifice-reach li { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.edifice-reach__icons { display: flex; gap: 8px; flex: 0 0 96px; justify-content: flex-end; } /* lone icons sit right beside their text; the 935 row's WhatsApp takes the extra slot in front (user 2026-11-18) */
.edifice-reach li > a:not(.edifice-ci) { display: block; min-height: 0; }
.edifice-reach .edifice-ci { min-height: 0; }

/* ---------- Footer ---------- */
.edifice-footer { color: #C9C3B8; font-size: 14px; margin: 0; }
.edifice-footer__grid { max-width: var(--edifice-grid); margin: 0 auto; padding: 56px 24px 24px; box-sizing: border-box; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.edifice-footer__grid > * > * { margin: 0 0 10px; }
.edifice-footer__title { color: var(--wp--preset--color--limestone); font-weight: 700; }
.edifice-footer__brand { font-size: 18px; font-weight: 600; }
.edifice-footer a { color: #C9C3B8; text-decoration: none; line-height: 2; }
.edifice-footer a:hover { color: #FFFFFF; }
.edifice-footer__artic img { height: 30px; width: auto; display: block; }
.edifice-footer__social { gap: 10px; }
.edifice-footer__social .wp-social-link a { width: 44px; height: 44px; border: 1px solid #3F4945; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.edifice-footer__legal { max-width: var(--edifice-grid); margin: 0 auto; padding: 16px 24px 28px; box-sizing: border-box; border-top: 1px solid #2E3A35; font-size: 12px; text-align: center; }

/* ---------- Other pages ---------- */
.edifice-page { padding-block: 64px 100px; }

/* ---------- Products (2026-11-17, mockups/v6/products-sections.html): one-screen hero, then one equal-height section per category ---------- */
/* Hero: mosaic keeps its size (80% of the screen); the white strip below fills the screen and holds «تصفح الكتالوجات» beside the fixed section arrow. */
.edifice-prodhero { height: var(--edifice-screen); display: flex; flex-direction: column; background: #FFFFFF; }
.edifice-mosaic { height: calc(var(--edifice-screen) * .8); flex: none; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; padding: 8px 8px 0; box-sizing: border-box; }
.edifice-mosaic a { position: relative; overflow: hidden; color: #FFFFFF; text-decoration: none; background: #2E3A35; }
.edifice-mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.edifice-mosaic a:not(:first-child) { grid-column: span 2; } /* 5 tiles (2026-11-22): one 2×2 + four 2×1 = 12 cells */
.edifice-mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.edifice-mosaic a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23, 32, 29, .6), rgba(23, 32, 29, 0) 50%); }
.edifice-mosaic a:hover img { transform: scale(1.04); }
.edifice-mosaic span { position: absolute; z-index: 1; bottom: 18px; inset-inline-start: 20px; font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; line-height: 1.3; }
.edifice-mosaic a:first-child span { font-size: clamp(24px, 2.4vw, 36px); bottom: 26px; inset-inline-start: 28px; }
.edifice-mosaic small { display: block; font-size: 13px; font-weight: 500; color: var(--wp--preset--color--sand-light); text-align: right; }
.edifice-prodhero__cue { flex: 1; display: flex; align-items: flex-end; margin: 0; padding: 0 calc(max(22px, var(--edifice-edge)) + 56px) 24px 0; } /* arrow's edge + 44px arrow + 12px gap; scrolls away with the hero, the arrow stays */
.edifice-prodhero__cue a { height: 44px; display: inline-flex; align-items: center; color: var(--wp--preset--color--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
/* Sections: every category row is as tall as the tallest (grid 1fr rows); limestone / white alternate. */
.edifice-main:has(.edifice-mosaic) { display: grid; grid-template-rows: auto; grid-auto-rows: 1fr; }
.edifice-main:has(.edifice-mosaic) > * { margin: 0; }
body:has(.edifice-mosaic) { background: #FFFFFF; }
/* Each section = one screen under the header. The cover shrinks so cover + links fit (69px = 18px gap + 51px links row). */
/* Big-screen fix (2026-11-21): the side padding used to grow with screen width while the cover grew with screen height, so the text column
   fell to 172px at 1920 wide and 0px at 2560 (text ran over the cover). Now: text and cover sit on the grid lines (the cover's extra indent was removed 2026-11-24, user), the text column never drops under 340px, and the cover is capped by height (720px)
   and by the room left beside the text (cqi = this section's content width). */
.edifice-cat { container-type: inline-size; --pad: clamp(24px, 5vh, 56px); --gap: clamp(32px, 6vw, 96px); --cover-h: min(calc(var(--edifice-screen) - 2 * var(--pad) - 69px - 40px), 720px, calc((100cqi - 340px - var(--gap)) * 1.415)); box-sizing: border-box; min-height: var(--edifice-screen); display: grid; grid-template-columns: minmax(340px, 1fr) auto; align-items: start; align-content: center; gap: var(--gap); --side: max(24px, calc((100% - var(--edifice-grid)) / 2 + 24px)); padding: var(--pad) var(--side); scroll-margin-top: var(--edifice-head, 105px); } /* WP already adds the admin bar as html scroll-padding */
.edifice-cat:nth-of-type(odd) { background: var(--wp--preset--color--limestone); }
.edifice-cat h2 { margin: 0 0 18px; font-size: clamp(30px, 3vw, 46px); line-height: 1.2; }
.edifice-cat h2 span { display: block; margin-top: 6px; font-size: .42em; font-weight: 400; letter-spacing: .02em; color: var(--wp--preset--color--sand); text-align: right; }
/* Text column = the cover's height; the paragraph sits in its middle row, the name just above it */
.edifice-cat__text { min-height: var(--cover-h); display: grid; grid-template-rows: 1fr auto 1fr; }
.edifice-cat h2 { align-self: end; }
.edifice-cat__text p { margin: 0; max-width: 36rem; color: var(--wp--preset--color--muted); font-size: 18px; line-height: 1.95; }
.edifice-cat__file { display: grid; gap: 18px; width: min-content; } /* links take the cover's width */
/* Brands (2026-11-19): every cover has its brand logo above it; interlock + kerbstones show ARTIC and SIEFCO side by side */
.edifice-cat__files { display: flex; gap: clamp(20px, 2.5vw, 36px); align-items: start; }
.edifice-cat__brand { height: 28px; width: auto; margin-bottom: -6px; }
.edifice-cat--duo { --cover-h: min(calc((var(--edifice-screen) - 2 * var(--pad) - 69px - 40px) * .74), 533px, calc((100cqi - 340px - var(--gap) - 36px) * .7075)); } /* two covers + 36px between them share the room */
.edifice-cat__cover { display: block; transition: transform .35s ease, box-shadow .35s ease; box-shadow: 0 1px 2px rgba(23, 32, 29, .12), 0 18px 34px -12px rgba(23, 32, 29, .38); }
.edifice-cat__cover:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(23, 32, 29, .12), 0 26px 40px -12px rgba(23, 32, 29, .42); }
.edifice-cat__cover img { display: block; height: var(--cover-h); width: auto; aspect-ratio: 595 / 842; }
/* Open / download: text links with an arrow, thin rule above, sage underline slides in on hover (design C) */
.edifice-cat__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin: 0; padding-top: 6px; border-top: 1px solid var(--wp--preset--color--line); contain: inline-size; }
.edifice-cat__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--wp--preset--color--ink); background: linear-gradient(var(--wp--preset--color--sage), var(--wp--preset--color--sage)) no-repeat right bottom / 0 2px; transition: background-size .25s ease, color .25s ease; }
.edifice-cat__links a:hover { background-size: 100% 2px; color: var(--wp--preset--color--sage-dark); }
.edifice-cat__links a.edifice-cat__dl { color: var(--wp--preset--color--muted); font-weight: 400; }
.edifice-cat__links svg { flex: none; transition: transform .25s ease; }
.edifice-cat__links a:hover svg { transform: translate(-3px, -3px); }
.edifice-cat__links a.edifice-cat__dl:hover svg { transform: translateY(3px); }

/* About: full-screen split (same frame as the home showroom), mission + facts, ARTIC band, legal line */
.edifice-split.edifice-split { height: var(--edifice-screen); display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.edifice-split__text { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px 56px; padding-inline-start: max(24px, calc((200% - var(--edifice-grid)) / 2 + 24px)); } /* this column is half the page, so 200% = page width (grid line without the scrollbar) */
.edifice-split__text > * { margin: 0; }
.edifice-split__media { min-height: 0; margin: 0 !important; }
.edifice-split__media figure, .edifice-split__media img { height: 100%; margin: 0; }
.edifice-split__media img { width: 100%; object-fit: cover; object-position: center top; display: block; } /* crop from the bottom so the ARTIC sign stays whole (user 2026-11-19) */
.edifice-mission { background: var(--wp--preset--color--white); border-block: 1px solid var(--wp--preset--color--line); padding-block: 96px; margin: 0; }
.edifice-mission .edifice-lead { margin: 16px 0 48px; }
.edifice-mission .edifice-all { text-align: center; margin: 40px 0 0; } /* three steps + catalogue link, moved here from home (2026-11-18) */
.edifice-facts-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.edifice-facts-row li { border-top: 2px solid var(--wp--preset--color--sage); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; color: var(--wp--preset--color--muted); font-size: 15px; }
.edifice-facts-row strong { color: var(--wp--preset--color--ink); font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
.edifice-agency { padding-block: 96px; margin: 0; }
.edifice-agency .wp-block-columns { gap: 40px 64px; margin-block: 0; }
.edifice-agency .wp-block-column > * + * { margin-top: 20px; }
.edifice-agency__logo img { height: 56px; width: auto; display: block; }

/* Under 600px WordPress's admin bar scrolls away, so the sticky header must not leave room for it (logged-in only). */
@media (max-width: 600px) { .edifice-site-header { top: 0; } }

.edifice-hero__name { display: none; } /* phones only (below) */

/* ---------- Phones ---------- */
@media (max-width: 760px) {
	.edifice-rail.edifice-rail, .edifice-wa-fab { display: none; }
	/* Phone header (user 2026-11-21): burger + logo | ARTIC + SIEFCO; the company name moves onto the hero photo */
	.edifice-header__name { display: none; }
	.edifice-header__agent { gap: 10px; }
	.edifice-header__agent > p { display: none; }
	.edifice-header__agent .edifice-header__artic { padding-inline-end: 10px; }
	.edifice-header__agent img { height: 38px; top: 4px; }
	.edifice-header__agent .edifice-header__siefco img { height: 22px; }
	.edifice-hero__name { display: block; position: absolute; top: 20px; inset-inline: 16px; z-index: 1; margin: 0; text-align: center; color: #FFFFFF; font-size: 24px; font-weight: 600; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); pointer-events: none; }
	.edifice-scroll { right: 16px; bottom: 12px; }
	.edifice-header { padding: 8px 16px; }
	.edifice-header__brand { gap: 10px; }
	.edifice-header__logo img { width: 48px; height: 50px; }
	.edifice-header__name { font-size: 18px; }
	.edifice-track--3.edifice-track--3 > * { flex-basis: 82%; }
	.edifice-showroom.edifice-showroom, .edifice-split.edifice-split { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.edifice-showroom__text, .edifice-split__text { padding: 32px 16px 24px; }
	.edifice-map { aspect-ratio: 4 / 3; } /* taller on phones so the labels stay readable */
	.edifice-prodhero { height: auto; }
	.edifice-mosaic { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 42vw; gap: 6px; padding: 6px 6px 0; }
	.edifice-mosaic a:first-child, .edifice-mosaic a:nth-child(2), .edifice-mosaic a:last-child:nth-child(odd) { grid-column: 1 / -1; grid-row: span 1; } /* odd tile count: last tile full width, no orphan */
	.edifice-mosaic span, .edifice-mosaic a:first-child span { bottom: 12px; inset-inline-start: 14px; font-size: 17px; }
	.edifice-mosaic a:first-child span { font-size: 24px; }
	.edifice-prodhero__cue { padding: 12px 66px 12px 0; }
	.edifice-cat { grid-template-columns: 1fr; gap: 28px; padding: 48px 16px; min-height: 0; }
	.edifice-cat__text { height: auto; display: block; }
	.edifice-cat h2 { font-size: 30px; }
	.edifice-cat__text p { font-size: 17px; }
	.edifice-cat__files { justify-self: center; }
	.edifice-cat--duo .edifice-cat__cover img { width: min(160px, 40vw); }
	.edifice-cat__cover img { height: auto; width: min(260px, 70vw); }
	.edifice-facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.edifice-mission, .edifice-agency { padding-block: 56px; }
	.edifice-contact__reach { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid #D6CDBE; padding-top: 48px; }
	.edifice-showroom .edifice-wrap, .edifice-contact { padding-block: 64px; }
	.edifice-motto.edifice-motto { right: 24px; max-width: calc(100% - 48px); font-size: 24px; }
	.edifice-intro { padding-block: 64px; }
	.edifice-facts-row--3.edifice-facts-row--3 { gap: 12px; }
	.edifice-facts-row--3 li { font-size: 13px; padding-top: 12px; }
	.edifice-facts-row--3 strong { font-size: 17px; }
	/* Phones (user 2026-11-21, replaces the 2026-11-17 natural-height rule): every section fills at least one screen, short content is centred, scroll gently snaps to sections. */
	:root { --edifice-sec-top: 48px; --edifice-after-head: 32px; }
	html:has(.edifice-screens) { scroll-snap-type: y proximity; scroll-padding-top: var(--edifice-head, 67px); }
	.edifice-screens > * { scroll-snap-align: start; }
	.edifice-screens > :is(.edifice-intro, .edifice-contact, .edifice-mission, .edifice-agency, .edifice-agencies, .edifice-projects) { justify-content: center; padding-block: 48px; }
	.edifice-showroom.edifice-showroom { height: auto; grid-template-rows: auto auto; align-content: center; }
	.edifice-showroom__media { aspect-ratio: auto; padding: 0 16px 48px; }
	.edifice-showroom__media .edifice-track { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
	.edifice-track { scroll-behavior: auto; }
	.edifice-pin::after { animation: none; }
}

/* ---------- English (LTR, body.edifice-en, 2026-11-18) ----------
   Most layout uses logical properties and flips by itself; these are the physical left/right bits mirrored for LTR. */
.edifice-en .edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close { right: auto; left: 24px; }
.edifice-en .edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close::before { transform: scaleX(-1); } /* back arrow points left */
.edifice-en .edifice-menu .is-menu-open .wp-block-navigation__responsive-container-close:hover::before { transform: scaleX(-1) translateX(4px); }
.edifice-en .edifice-menu .is-menu-open .edifice-menu__lang { right: auto; left: max(24px, var(--edifice-edge)); }
.edifice-en .edifice-hero figcaption { left: auto; right: max(24px, var(--edifice-edge)); }
.edifice-en .edifice-motto.edifice-motto { right: auto; left: max(6vw, var(--edifice-edge)); }
.edifice-en .edifice-rail.edifice-rail, .edifice-en .edifice-wa-fab { left: auto; right: max(22px, var(--edifice-edge)); }
.edifice-en .edifice-scroll { right: auto; left: max(22px, var(--edifice-edge)); }
.edifice-en .edifice-prodhero__cue { padding: 0 0 24px calc(max(22px, var(--edifice-edge)) + 56px); }
.edifice-en .edifice-mosaic small, .edifice-en .edifice-cat h2 span { text-align: left; }
@media (max-width: 760px) {
	.edifice-en .edifice-menu .is-menu-open .edifice-menu__lang { right: auto; left: 16px; }
	.edifice-en .edifice-scroll { left: 16px; }
	.edifice-en .edifice-motto.edifice-motto { left: 24px; }
	.edifice-en .edifice-prodhero__cue { padding: 12px 0 12px 66px; }
	.edifice-en .edifice-agencies__head h2 { white-space: normal; } /* the English headline is long; nowrap made the page wider than the phone */
}

/* ---------- Agencies + Made in Saudi (home, 2026-11-21): one limestone section, ARTIC | SIEFCO in two columns, no cards or photos ---------- */
.edifice-agencies { background: var(--wp--preset--color--white); margin: 0; } /* white: between the limestone intro and the limestone showroom (2026-11-21) */
/* Headline row uses the same two columns as below: headline over ARTIC, Saudi Made logo centred over SIEFCO (user 2026-11-21; lead line removed: too crowded) */
.edifice-agencies__head { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 36px); } /* Saudi Made logo first = right in RTL, then the headline (user 2026-11-21) */
.edifice-agencies__head h2 { margin: 0; white-space: nowrap; } /* «وكيل معتمد لدى» is short; never break it on phones */
.edifice-agencies__saudi { height: 64px; width: auto; display: block; flex: 0 0 auto; }
.edifice-agencies__cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--edifice-after-head); }
.edifice-agencies__col { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px, 4svh, 40px); }
.edifice-agencies__col + .edifice-agencies__col { border-inline-start: 1px solid var(--wp--preset--color--line); padding-inline-start: clamp(32px, 4vw, 64px); }
.edifice-agencies__col:first-child { padding-inline-end: clamp(32px, 4vw, 64px); }
.edifice-agencies__col .edifice-facts-row { width: 100%; }
.edifice-agencies__col .edifice-facts-row bdi { align-self: flex-start; } /* LTR numbers sit under their label (start side), not stretched to the left edge */
.edifice-agencies__logo { width: auto; display: block; align-self: center; } /* logos and links centred in their column (user 2026-11-21) */
.edifice-agencies__logo--artic { height: 68px; }
.edifice-agencies__logo--siefco { height: 52px; margin-block: 8px; } /* SIEFCO's mark is denser; 52px + 8px each side = ARTIC's 68px row */
.edifice-agencies__link { margin-top: auto; align-self: center; color: var(--wp--preset--color--sage-dark); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.edifice-agencies__link:hover { text-decoration: underline; }
@media (max-width: 760px) {
	.edifice-agencies { padding-block: 64px; }
	.edifice-agencies__head { gap: 16px; }
	.edifice-agencies__saudi { height: 38px; }
	.edifice-agencies__head h2 { font-size: 28px; } /* logo (~116px) + gap + headline fit 327px at 375 wide */
	.edifice-agencies__cols { grid-template-columns: 1fr; gap: 48px; margin-top: 40px; }
	.edifice-agencies__col:first-child { padding-inline-end: 0; }
	.edifice-agencies__col + .edifice-agencies__col { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--wp--preset--color--line); padding-top: 48px; }
	.edifice-agencies__logo--artic { height: 56px; }
	.edifice-agencies__logo--siefco { height: 42px; margin-block: 7px; }
	.edifice-agencies .edifice-facts-row--3.edifice-facts-row--3 { grid-template-columns: 1fr; gap: 16px; }
	.edifice-agencies .edifice-facts-row--3 li { font-size: 15px; }
	.edifice-agencies .edifice-facts-row--3 strong { font-size: 19px; }
}

/* About › agencies: one headline, ARTIC | SIEFCO in two equal columns (2026-11-19) */
.edifice-agency h2 { margin: 0 0 40px; }
.edifice-agency__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.edifice-agency__col > * { margin: 0; }
.edifice-agency__col > * + * { margin-top: 20px; }
.edifice-agency__mark { height: 52px; width: auto; display: block; }
.edifice-agency__photo img { width: 100%; aspect-ratio: 16 / 9; max-height: 34svh; object-fit: cover; display: block; }
.edifice-agency__photo figcaption { font-size: 13px; color: #55605B; margin-top: 10px; }
@media (max-width: 760px) {
	.edifice-agency__pair { grid-template-columns: 1fr; gap: 48px; }
	.edifice-agency h2 { margin-bottom: 28px; }
}

/* Narrow desktops: two agency logos + brand must fit side by side (761–1100px) */
@media (min-width: 761px) and (max-width: 1100px) {
	.edifice-header { padding-inline: 16px; gap: 16px; }
	.edifice-header__brand { gap: 12px; }
	.edifice-header__logo img { width: 58px; height: 62px; }
	.edifice-header__name { font-size: 22px; }
	.edifice-header__agent { gap: 12px; }
	.edifice-header__agent p { font-size: 15px; }
	.edifice-header__agent img { height: 46px; top: 6px; }
	.edifice-header__agent .edifice-header__artic { padding-inline-end: 12px; }
	.edifice-header__agent .edifice-header__siefco img { height: 26px; top: 0; }
}

/* Showroom photo popup (assets/carousel.js, user 2026-11-21) */
.edifice-showroom__media figure { cursor: zoom-in; }
.edifice-lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; cursor: zoom-out; }
.edifice-lightbox[open] { display: grid; place-items: center; }
.edifice-lightbox::backdrop { background: rgba(23, 32, 29, .9); }
.edifice-lightbox img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.edifice-lightbox__close { position: fixed; top: 16px; inset-inline-end: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #FFFFFF; font-size: 28px; line-height: 1; cursor: pointer; }
.edifice-lightbox img { cursor: default; }
.edifice-lightbox__stage { position: relative; width: min(calc(88dvh * 1.11), calc(100vw - 180px), 1400px); height: 88dvh; display: flex; align-items: center; justify-content: center; } /* flex so the photo's max-height: 100% resolves; sized to the widest photo (storefront 1330×1200 = 1.11) so the arrows never move (user 2026-11-21); ponytail: update 1.11 if a wider photo is added */
.edifice-lightbox__nav { direction: ltr; position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #FFFFFF; font-size: 34px; line-height: 1; padding-bottom: 4px; cursor: pointer; }
.edifice-lightbox__nav:hover, .edifice-lightbox__close:hover { background: rgba(255, 255, 255, .28); }
.edifice-lightbox__nav--left { right: calc(100% + 16px); } /* beside the photo (user 2026-11-21) */
.edifice-lightbox__nav--right { left: calc(100% + 16px); }
@media (max-width: 760px) { .edifice-lightbox__nav { position: fixed; top: auto; bottom: 20px; transform: none; } .edifice-lightbox__nav--left { right: auto; left: 16px; } .edifice-lightbox__nav--right { left: auto; right: 16px; } .edifice-lightbox__stage { width: 100vw; height: 76dvh; } .edifice-lightbox img { border-radius: 0; } }

/* ---------- Our projects (home, white; user 2026-11-21 option B): one large photo + two stacked, name on the photo. Contact turned limestone to keep the alternation. ---------- */
.edifice-projects { margin: 0; background: var(--wp--preset--color--white); }
.edifice-projects h2 { margin: 0; }
.edifice-projects__grid { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; margin-top: 40px; margin-inline-end: 60px; /* clears the fixed WhatsApp button (44px + 16px gap), as in the showroom */ height: min(760px, calc(var(--edifice-screen) - var(--edifice-sec-top) - 160px)); min-height: 360px; } /* 2026-11-22: was capped at 520px, half-empty on tall screens */
.edifice-projects__grid figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; }
.edifice-projects__grid figure:first-child { grid-row: 1 / 3; }
.edifice-projects__grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edifice-projects__grid figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 22px 16px; color: #FFFFFF; font-size: 21px; font-weight: 600; background: linear-gradient(transparent, rgba(23, 32, 29, .65)); }
@media (max-width: 760px) {
	.edifice-projects__grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; min-height: 0; margin-top: 32px; }
	.edifice-projects__grid figure:first-child { grid-row: auto; }
	.edifice-projects__grid figure { aspect-ratio: 2 / 1; } /* three photos + headline fit one phone screen */
	.edifice-projects__grid figcaption { font-size: 18px; }
}

/* ---------- Large screens (2026-11-22, user screenshots): sections grow with the screen, so content grows too ---------- */
/* Wider grid + one step up in type; About photo inset like the showroom (whole storefront, no half-screen crop). */
@media (min-width: 1800px) and (min-height: 900px) {
	:root:root { --wp--preset--font-size--small: 15px; --wp--preset--font-size--medium: 19px; --wp--preset--font-size--large: clamp(18px, 1.3vw, 28px); --wp--preset--font-size--x-large: clamp(30px, 2.8vw, 56px); --wp--preset--font-size--xx-large: clamp(36px, 3.6vw, 72px); }
	.edifice-lead { max-width: 720px; }
	.edifice-showroom__visit { font-size: 17px; }
	.edifice-projects__grid figcaption { font-size: 24px; }
	.edifice-split__media { --sp-ps: clamp(0px, 2vw, 32px); padding-block: calc(var(--edifice-sec-top) * .6); padding-inline: var(--sp-ps) calc(max(22px, var(--edifice-edge)) + 60px); display: flex; align-items: center; justify-content: center; }
	.edifice-split__media figure { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
	.edifice-split__media img { width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 4px; } /* storefront shown whole, in its own shape */
}
@media (max-width: 760px) { .edifice-showroom__media { --sr-ps: 16px; --sr-pe: 16px; } } /* phone: dots centred under the full-width photo */

/* ---------- Social «قريبًا» tag (user 2026-11-23): accounts not live yet; carousel.js sets data-soon on click ---------- */
.wp-social-link a { position: relative; }
.wp-social-link a[data-soon]::after { content: attr(data-soon); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 4px; background: var(--wp--preset--color--sand-light); color: var(--wp--preset--color--ink); font-size: 14px; font-weight: 600; line-height: 1.4; pointer-events: none; }
.edifice-rail .wp-social-link a[data-soon]::after { bottom: auto; top: 50%; left: auto; right: auto; inset-inline-end: calc(100% + 10px); transform: translateY(-50%); } /* rail is vertical at the screen edge: tag sits beside the icon, towards the page */

/* ---------- About: company profile card at the foot of the About top section (user 2026-11-23: no separate section) ---------- */
.edifice-about-top .edifice-split__text { justify-content: flex-start; padding-top: var(--edifice-sec-top, 48px); }
.edifice-profile-card { margin-top: auto !important; display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--wp--preset--color--ink); padding-top: 20px; border-top: 1px solid var(--wp--preset--color--line); }
.edifice-profile-card img { width: 150px; height: auto; flex: none; border-radius: 3px; box-shadow: 0 6px 18px rgba(23, 32, 29, .15); }
.edifice-profile-card > span { display: flex; flex-direction: column; gap: 6px; }
.edifice-profile-card strong { font-size: 18px; }
.edifice-profile-card__dl { font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; border-bottom: 2px solid currentColor; padding-bottom: 4px; align-self: flex-start; }
.edifice-profile-card:hover { color: var(--wp--preset--color--sage-dark); }
@media (max-width: 760px) { .edifice-profile-card img { width: 110px; } }

