/*
Theme Name: New Compound Residences
Description: Real-estate compound theme for the new-compound network. Each site gets its own palette, fonts, hero layout, name, images and sections built from its own posts (units, payment plans, location, gallery).
Version: 1.0.8
Author: biz-sky
Text Domain: nc-compound
*/

:root {
	--c1: #2d4a5a;
	--c2: #15252e;
	--c3: #d39b4a;
	--on-c3: #15252e;
	--paper: #f5f6f6;
	--ink: #1c2326;
	--muted: #5c676c;
	--line: color-mix(in srgb, var(--c1) 14%, #e6e8e8);
	--tint: color-mix(in srgb, var(--c1) 8%, #fff);
	--radius: 4px;
	--font-head: "Outfit", sans-serif;
	--font-body: system-ui, sans-serif;
	--shadow: 0 18px 40px -22px color-mix(in srgb, var(--c2) 55%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
	background: #fff;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c1); text-decoration: none; }
a:hover { color: var(--c2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--c2); font-weight: 600; overflow-wrap: anywhere; }
.fam-classic h1, .fam-classic h2 { font-weight: 700; letter-spacing: -.01em; }
.fam-warm h1, .fam-warm h2, .fam-warm h3 { font-weight: 400; }
.is-rtl.fam-warm h1, .is-rtl.fam-warm h2, .is-rtl.fam-warm h3 { font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { width: auto; height: auto; margin: 0; clip: auto; clip-path: none; inset-inline-start: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 14px; color: var(--c2); }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.is-rtl .ic-arrow { transform: scaleX(-1); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.5em; border-radius: var(--radius);
	font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: .01em;
	border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6em 1.1em; font-size: 14px; }
.btn-accent { background: var(--c3); color: var(--on-c3); }
.btn-accent:hover { background: color-mix(in srgb, var(--c3) 85%, #000); color: var(--on-c3); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--c2); }
.btn-line { border-color: var(--c1); color: var(--c1); }
.btn-line:hover { background: var(--c1); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--c2); min-width: 0; flex-shrink: 0; max-width: 46%; }
.brand:hover { color: var(--c2); }
.brand-logo { max-height: 50px; width: auto; max-width: 120px; object-fit: contain; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--c1); color: #fff; font-family: var(--font-head); font-size: 24px; line-height: 1; flex-shrink: 0; border-radius: var(--radius); box-shadow: 4px 4px 0 var(--c3); }
.is-rtl .brand-mark { box-shadow: -4px 4px 0 var(--c3); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-family: var(--font-head); font-size: 20px; line-height: 1.15; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-rtl .brand-text small { letter-spacing: 0; font-size: 12.5px; }
.main-nav { margin-inline-start: auto; flex: 0 1 auto; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 6px 10px; line-height: 1.4; color: var(--ink); font-size: 14.5px; font-weight: 500; border-radius: var(--radius); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--c1); background: var(--tint); }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; padding: 6px; z-index: 5; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.head-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--c2); font-weight: 600; font-size: 14.5px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--c2); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Sections */
.section { padding-block: 88px; }
.section:nth-of-type(even) { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section h2, .cta h2 { font-size: clamp(28px, 3.4vw, 42px); }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--c1); font-weight: 600; margin-bottom: 14px; }
.is-rtl .kicker { letter-spacing: 0; font-size: 14.5px; }
.kicker .num { font-family: var(--font-head); color: var(--c3); font-size: 15px; letter-spacing: 0; display: inline-flex; align-items: center; gap: 12px; }
.kicker .num::after { content: ""; width: 36px; height: 1.5px; background: currentColor; }
.kicker-light { color: color-mix(in srgb, var(--c3) 70%, #fff); }
.lead { font-size: 17px; color: var(--muted); }

/* Hero — shared */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { color: inherit; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; margin-bottom: .25em; }
.is-rtl .hero h1 { line-height: 1.2; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--c3) 55%, #fff); margin-bottom: 18px; }
.is-rtl .eyebrow { letter-spacing: 0; font-size: 15px; }
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); opacity: .92; max-width: 560px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgba(255,255,255,.18); }
.facts li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: color-mix(in srgb, var(--c2) 78%, transparent); backdrop-filter: blur(6px); }
.facts .ic { width: 26px; height: 26px; color: var(--c3); }
.facts small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.is-rtl .facts small { letter-spacing: 0; font-size: 13px; }
.facts strong { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 600; line-height: 1.3; }

/* Hero — full bleed */
.hero-full .hero { min-height: min(86vh, 780px); display: flex; }
.hero-full .hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-full .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c2) 88%, transparent) 0%, color-mix(in srgb, var(--c2) 45%, transparent) 55%, transparent 100%), linear-gradient(0deg, color-mix(in srgb, var(--c2) 70%, transparent), transparent 45%); }
.is-rtl.hero-full .hero-media::after { background: linear-gradient(270deg, color-mix(in srgb, var(--c2) 88%, transparent) 0%, color-mix(in srgb, var(--c2) 45%, transparent) 55%, transparent 100%), linear-gradient(0deg, color-mix(in srgb, var(--c2) 70%, transparent), transparent 45%); }
.hero-full .hero-inner { display: flex; flex-direction: column; justify-content: flex-end; gap: 56px; padding-block: 120px 0; }
.hero-full .hero-copy { max-width: 720px; }

/* Hero — split panel */
.hero-split .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--c2); min-height: 640px; }
.hero-split .hero-media { grid-column: 2; grid-row: 1; position: relative; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.is-rtl.hero-split .hero-media { clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%); }
.hero-split .hero-media img { position: absolute; inset: 0; }
.hero-split .hero-inner { grid-column: 1; grid-row: 1; max-width: none; padding: 90px 0 60px; padding-inline-start: max(20px, calc((100vw - 1220px) / 2 + 20px)); padding-inline-end: 24px; display: flex; flex-direction: column; justify-content: center; gap: 44px; }
.hero-split .hero h1 { font-size: clamp(38px, 5vw, 72px); }
.hero-split .facts { grid-template-columns: 1fr; background: transparent; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero-split .facts li { background: transparent; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); backdrop-filter: none; }

/* Hero — framed image */
.hero-frame .hero { color: var(--c2); background: var(--paper); padding-top: 70px; display: flex; flex-direction: column; }
.hero-frame .hero-inner { order: -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-bottom: 44px; }
.hero-frame .hero h1 { color: var(--c2); }
.hero-frame .eyebrow { color: var(--c1); }
.hero-frame .hero-sub { color: var(--muted); opacity: 1; }
.hero-frame .btn-ghost { border-color: var(--c2); color: var(--c2); }
.hero-frame .btn-ghost:hover { background: var(--c2); color: #fff; }
.hero-frame .hero-media { position: relative; width: calc(100% - 40px); max-width: 1180px; margin-inline: auto; aspect-ratio: 21 / 8; }
.hero-frame .hero-media::before { content: ""; position: absolute; inset: 26px -18px -18px 26px; background: var(--c3); z-index: -1; }
.is-rtl.hero-frame .hero-media::before { inset: 26px 26px -18px -18px; }
.hero-frame .hero-media img { position: absolute; inset: 0; }
.hero-frame .facts { background: var(--line); grid-template-columns: 1fr; }
.hero-frame .facts li { background: #fff; backdrop-filter: none; padding: 14px 18px; }
.hero-frame .facts .ic { color: var(--c1); }
.hero-frame .hero + * { margin-top: 30px; }

/* Overview */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.overview-img { margin: 0; position: relative; }
.overview-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.overview-img::after { content: ""; position: absolute; width: 38%; height: 46%; inset-inline-end: -16px; bottom: -16px; border: 2px solid var(--c3); z-index: -1; }
.overview { position: relative; z-index: 0; }

/* Units */
.units-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.unit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.unit:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.unit-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.unit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.unit:hover .unit-img img { transform: scale(1.04); }
.unit-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.unit h3 { font-size: 20px; margin-bottom: 8px; }
.unit h3 a { color: var(--c2); }
.unit h3 a:hover { color: var(--c1); }
.unit p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--c1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; background: var(--tint); color: var(--c1); border-radius: 2px; line-height: 1.3; }
.chip .ic { width: 14px; height: 14px; }
.units-rows { display: grid; gap: 22px; }
.units-rows .unit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.units-rows .unit:nth-child(even) .unit-img { order: 2; }
.units-rows .unit-img { aspect-ratio: auto; min-height: 250px; }
.units-rows .unit-body { padding: 30px 36px; justify-content: center; }
.units-rows .unit h3 { font-size: 24px; }

/* Payment plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px 26px 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c1); color: var(--ink); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.plan:hover { box-shadow: var(--shadow); border-top-color: var(--c3); color: var(--ink); }
.plan-ic { width: 46px; height: 46px; display: grid; place-items: center; background: var(--c2); color: var(--c3); border-radius: 50%; }
.plan-ic .ic { width: 22px; height: 22px; }
.plan p { font-size: 16.5px; font-weight: 500; margin: 0; line-height: 1.6; color: var(--c2); }
.plan-src { margin-top: auto; font-size: 13px; color: var(--muted); }

/* Location */
.loc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.loc-grid.no-map { grid-template-columns: 1fr; max-width: 860px; }
.loc-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.loc-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border-inline-start: 3px solid var(--c3); box-shadow: 0 1px 0 var(--line); }
.loc-list .ic { color: var(--c1); margin-top: 4px; }
.loc-map { display: block; border: 8px solid #fff; box-shadow: var(--shadow); }
.loc-map img { width: 100%; max-height: 520px; object-fit: contain; background: #fff; }

/* Gallery mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 10px; }
.mosaic a { display: block; overflow: hidden; background: var(--tint); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic.count-8 a:nth-child(8), .mosaic.count-7 a:nth-child(n+6), .mosaic.count-6 a:nth-child(n+4) { grid-column: span 2; }
.mosaic.count-1 { grid-template-columns: 1fr; grid-auto-rows: 460px; }
.mosaic.count-1 a:first-child { grid-column: auto; grid-row: auto; }
.mosaic.count-2 { grid-template-columns: 2fr 1fr; grid-auto-rows: 400px; }
.mosaic.count-2 a:first-child { grid-column: auto; grid-row: auto; }
.mosaic.count-3 { grid-template-columns: 2fr 1fr; }
.mosaic.count-3 a:first-child { grid-column: auto; grid-row: span 2; }
.mosaic.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.mosaic.count-4 a:first-child { grid-column: auto; grid-row: span 2; }
.mosaic.count-4 a:nth-child(4) { grid-column: span 2; }

/* Resale strip */
.resale { background: var(--tint); border-block: 1px solid var(--line); }
.resale-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; flex-wrap: wrap; }
.resale-row span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--c2); }
.resale-row .ic { color: var(--c1); width: 22px; height: 22px; }

/* CTA */
.cta { background: var(--c2); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset-block: 0; inset-inline-end: -10%; width: 50%; background: repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--c3) 16%, transparent) 22px 23px); }
.cta-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 70px; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { opacity: .85; margin: 0; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page head */
.page-head { position: relative; background: var(--c2); color: #fff; padding-block: 64px 54px; isolation: isolate; overflow: hidden; }
.page-head.has-img { padding-block: 110px 50px; }
.head-img { position: absolute; inset: 0; z-index: -1; }
.head-img img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-head::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 120px; height: 5px; background: var(--c3); }
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 48px); max-width: 900px; }
.page-head .chip { background: rgba(255,255,255,.14); color: #fff; }
.crumbs { font-size: 13.5px; opacity: .8; margin-bottom: 10px; }
.crumbs a { color: #fff; }
.head-search { max-width: 520px; margin-top: 18px; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.search-submit { padding: 12px 18px; border: 0; background: var(--c3); color: var(--on-c3); font: inherit; font-weight: 600; border-radius: var(--radius); cursor: pointer; }

/* Article layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding-block: 56px 80px; }
.entry-content { font-size: 16.5px; overflow-wrap: anywhere; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.2em; }
.entry-content h1 { font-size: 30px; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 21px; }
.entry-content h4 { font-size: 18px; }
.entry-content img { border-radius: var(--radius); margin-block: 10px; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: 6px 22px 12px 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 6px 0 12px 22px; max-width: 50%; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; vertical-align: top; }
.entry-content th { background: var(--tint); color: var(--c2); }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 22px; border-inline-start: 4px solid var(--c3); background: var(--paper); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); }
.gallery { display: grid; gap: 8px; margin: 22px 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.gallery-columns-1 .gallery-item img { aspect-ratio: auto; }
.wpcf7 input:not([type=submit]), .wpcf7 textarea, .wpcf7 select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; }
.wpcf7 input[type=submit] { padding: 12px 26px; border: 0; background: var(--c1); color: #fff; font: inherit; font-weight: 600; border-radius: var(--radius); cursor: pointer; }

/* Sidebar */
.side .sticky { position: sticky; top: 96px; display: grid; gap: 22px; }
.box { background: #fff; border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }
.box h3 { font-size: 20px; }
.box-cta { background: var(--c2); color: #fff; border: 0; display: grid; gap: 10px; }
.box-cta h3 { color: #fff; margin: 0; }
.box-cta p { opacity: .85; font-size: 14.5px; margin: 0 0 6px; }
.box-cta .kicker { margin-bottom: 0; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--ink); font-size: 14px; line-height: 1.45; font-weight: 500; }
.side-list a:hover { color: var(--c1); }
.side-list img { width: 64px; height: 50px; object-fit: cover; border-radius: 2px; }

.pagination { margin-top: 40px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); color: var(--c2); }
.pagination .current { background: var(--c1); color: #fff; border-color: var(--c1); }
.empty { font-size: 18px; }

/* Footer */
.site-footer { background: color-mix(in srgb, var(--c2) 92%, #000); color: rgba(255,255,255,.75); padding-top: 64px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--c3); }
.brand-light, .brand-light:hover { color: #fff; margin-bottom: 16px; }
.brand-light .brand-text small { color: rgba(255,255,255,.6); }
.brand-light .brand-logo { background: #fff; padding: 4px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .ic { color: var(--c3); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* Mobile bar & lightbox */
.mobile-bar { display: none; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; object-fit: contain; }
.lb-close { position: fixed; top: 14px; inset-inline-end: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #000; font-size: 28px; line-height: 1; cursor: pointer; }

/* Responsive */
@media (max-width: 1080px) {
	.head-phone { display: none; }
	.units-cards, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-split .hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
	.brand { max-width: none; flex-shrink: 1; }
	.header-actions { margin-inline-start: auto; }
	.nav-toggle { display: flex; }
	.main-nav { position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 20px 20px; display: none; max-height: calc(100vh - 74px); overflow-y: auto; margin: 0; }
	.nav-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.main-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0; padding-inline-start: 14px; }
}
@media (max-width: 900px) {
	.overview-grid, .loc-grid, .layout, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.hero-split .hero { grid-template-columns: 1fr; min-height: 0; }
	.hero-split .hero-media { grid-column: 1; grid-row: 1; clip-path: none; aspect-ratio: 16 / 10; }
	.is-rtl.hero-split .hero-media { clip-path: none; }
	.hero-split .hero-inner { grid-column: 1; grid-row: 2; padding: 40px 20px 44px; }
	.hero-frame .hero-inner { grid-template-columns: 1fr; gap: 26px; }
	.hero-frame .hero-media { aspect-ratio: 16 / 10; }
	.units-rows .unit { grid-template-columns: 1fr; }
	.units-rows .unit:nth-child(even) .unit-img { order: 0; }
	.units-rows .unit-img { min-height: 0; aspect-ratio: 16 / 10; }
	.units-rows .unit-body { padding: 22px; }
	.mosaic, .mosaic[class*="count-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
	.mosaic a, .mosaic[class*="count-"] a { grid-column: auto; grid-row: auto; }
	.mosaic a:first-child, .mosaic[class*="count-"] a:first-child { grid-column: span 2; grid-row: span 1; }
	.mosaic.count-2 a:last-child, .mosaic.count-4 a:last-child, .mosaic.count-6 a:last-child, .mosaic.count-8 a:last-child { grid-column: span 2; }
	.mosaic.count-1 a:first-child { grid-column: auto; }
	.mosaic.count-1 { grid-template-columns: 1fr; }
	.side .sticky { position: static; }
	.section { padding-block: 64px; }
}
@media (max-width: 600px) {
	.header-row { min-height: 64px; gap: 12px; }
	.main-nav { inset-block-start: 64px; max-height: calc(100vh - 64px); }
	.header-actions .btn span { display: none; }
	.header-actions .btn { padding: .6em .75em; }
	.brand-text strong { font-size: 17px; }
	.brand-mark { width: 38px; height: 38px; font-size: 20px; }
	.brand-logo { max-height: 40px; max-width: 80px; }
	.units-cards, .plans { grid-template-columns: 1fr; }
	.hero-full .hero { min-height: 0; }
	.hero-full .hero-inner { padding-top: 90px; gap: 36px; }
	.hero-btns .btn { flex: 1 1 auto; }
	.facts { grid-template-columns: 1fr; }
	.facts li { padding: 12px 18px; }
	.hero-frame .hero { padding-top: 40px; }
	.hero-frame .hero-media { width: calc(100% - 52px); margin-inline-start: 20px; margin-inline-end: 32px; }
	.mosaic[class*="count-"] { grid-auto-rows: 130px; }
	.mosaic.count-1 { grid-auto-rows: 240px; }
	.section { padding-block: 52px; }
	.cta-box { padding-block: 52px; }
	.cta-btns, .cta-btns .btn { width: 100%; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 10px 0; max-width: 100%; }
	.gallery, .gallery-columns-4, .gallery-columns-5, .gallery-columns-6, .gallery-columns-7, .gallery-columns-8, .gallery-columns-9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mobile-bar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--c2); box-shadow: 0 -6px 18px rgba(0,0,0,.15); }
	.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; color: #fff; font-weight: 600; font-size: 15px; }
	.mobile-bar .mb-wa { background: var(--c3); color: var(--on-c3); }
	body { padding-bottom: 52px; }
	.ht-ctc { bottom: 64px !important; }
}

/* Mixed-language titles keep the layout's alignment in the hero */
.is-ltr .hero [dir="auto"], .is-ltr .p-hero [dir="auto"] { text-align: left; }
.is-rtl .hero [dir="auto"] { text-align: right; }
.is-ltr .p-hero [dir="auto"], .is-rtl .p-hero [dir="auto"] { text-align: center; }
.center .head-search { margin: 18px auto 26px; }
/* Many posts keep body text inside h3–h6: render those in the reading font. */
.entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 { font-family: var(--font-body); font-weight: 500; font-size: 17px; line-height: 1.8; color: var(--ink); margin: .9em 0 .6em; letter-spacing: 0; }
.entry-content h1, .entry-content h2 { line-height: 1.35; }
.entry, .entry-content { min-width: 0; }
.entry-content .gallery-item, .entry-content figure { max-width: 100%; }
.entry-content [style*="width"] { max-width: 100%; }
