/* Harshem theme — main styles. Uses logical properties so Arabic/Kurdish (RTL) mirror automatically. */

:root {
	--navy: #0f2a44;
	--navy-deep: #0a1e31;
	--ground: #f5f2ed;
	--white: #ffffff;
	--ink: #14202c;
	--body: #3a4755;
	--muted: #4a5866;
	--line: #e4ded4;
	--line-strong: #d6cfc3;
	--bronze: #7a5c38;
	--accent: #c8a97e;
	--font-display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, sans-serif;
	--gutter: clamp(20px, 5.5vw, 80px);
	--section: clamp(72px, 10vw, 140px);
	--header-h: 80px;
}

.lang-ar, .lang-ku {
	--font-display: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .82; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--navy); font-weight: 600; }
.skip-link:focus { top: 12px; }
.ltr-inline { unicode-bidi: isolate; }
.is-rtl .ltr-inline { text-align: end; }

.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); line-height: 1.5; }
.eyebrow-light { color: var(--accent); }
.is-rtl .eyebrow { letter-spacing: 0; text-transform: none; font-size: 16px; }
.label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #6a5234; }
.is-rtl .label { letter-spacing: 0; text-transform: none; font-size: 14px; }
.h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.01em; color: var(--navy); }
.h2-lead { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.18; }
.h2-big { font-size: clamp(36px, 4vw, 56px); line-height: 1.06; }
.is-rtl .h2 { letter-spacing: 0; line-height: 1.4; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: var(--navy); }
.body-text { font-size: 17px; line-height: 1.7; color: var(--body); }
.is-rtl .body-text { font-size: 18px; line-height: 1.9; }
.muted { color: var(--muted); font-size: 15px; }

.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-sm { display: flex; flex-direction: column; gap: 16px; }
.stack-md { display: flex; flex-direction: column; gap: 22px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-align: center; transition: opacity .15s; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: var(--white); font-weight: 400; }
.btn-dark { background: var(--navy); color: var(--white); min-height: 56px; padding: 0 36px; font-size: 16px; border: 0; }
.btn:hover { opacity: .88; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); border-bottom: 1px solid currentColor; padding-bottom: 6px; white-space: nowrap; }
.link-arrow-light { color: var(--white); border-color: rgba(255,255,255,.6); }
.is-rtl .icon-arrow { transform: scaleX(-1); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: "Bricolage Grotesque", sans-serif; font-size: 20px; letter-spacing: .32em; line-height: 1; }
.brand-slogan { font-size: 10px; letter-spacing: .06em; opacity: .75; line-height: 1.1; }
.lang-ar .brand-slogan, .lang-ku .brand-slogan { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 11px; letter-spacing: 0; text-align: end; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.main-nav { display: flex; gap: clamp(20px, 2.6vw, 36px); font-size: 15px; margin-inline: auto; }
.is-rtl .main-nav { font-size: 16px; }
.main-nav a { padding-block: 8px; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { border-bottom-color: var(--accent); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; gap: 4px; font-size: 13px; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid transparent; }
.lang-switch a[aria-current] { border-color: rgba(255,255,255,.35); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--white); cursor: pointer; margin-inline-start: auto; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: min(760px, calc(100vh - var(--header-h))); background: var(--navy); color: var(--white); }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 80px); padding-inline: var(--gutter) clamp(24px, 5vw, 72px); }
.hero-copy { display: flex; flex-direction: column; gap: 30px; max-width: 620px; }
.hero-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(42px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.is-rtl .hero-title { line-height: 1.25; letter-spacing: 0; }
.hero-lead { max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: rgba(255,255,255,.82); }
.is-rtl .hero-lead { line-height: 1.85; font-size: clamp(18px, 1.5vw, 20px); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-caption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.65); }
.rule { width: 40px; height: 1px; background: rgba(255,255,255,.4); flex-shrink: 0; }
.hero-media { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3.5vw, 56px); padding-inline-start: 0; }
.hero-frame { position: relative; display: block; width: 100%; isolation: isolate; --frame: 18px; }
.hero-frame::after { content: ""; position: absolute; inset-block: var(--frame) calc(var(--frame) * -1); inset-inline: var(--frame) calc(var(--frame) * -1); border: 1px solid var(--accent); z-index: -1; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1365 / 768; object-fit: cover; }

/* ---------- stats ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 52px; }
.stat { display: flex; flex-direction: column; gap: 10px; padding-inline: 32px; border-inline-start: 1px solid var(--line); }
.stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stat-value { font-family: "Bricolage Grotesque", sans-serif; font-weight: 300; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; color: var(--navy); text-align: start; }
.is-rtl .stat-value { text-align: end; align-self: flex-start; }
.stat-label { font-size: 15px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block-end: var(--section); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .h2 { color: var(--white); }
.section-top-rule { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.split-aside { grid-column: span 4; }
.split-main { grid-column: 5 / span 8; }
#services .split-main { grid-column: 6 / span 7; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }

/* about facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.fact { display: flex; flex-direction: column; gap: 8px; }
.fact-value { font-family: var(--font-display); font-size: 26px; color: var(--navy); }
.fact-sub { font-size: 14px; color: var(--muted); }

/* divisions */
.divisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.division { background: var(--white); display: flex; flex-direction: column; }
.division img { width: 100%; height: 300px; object-fit: cover; }
.division-body { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }

/* featured */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; gap: 20px; }
.card-media { position: relative; display: block; overflow: hidden; }
.card img { width: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.card-badge { position: absolute; inset-block-end: 16px; inset-inline-start: 16px; padding: 7px 12px; font-size: 13px; background: rgba(10,30,49,.78); color: var(--white); backdrop-filter: blur(4px); }
.card-1 { grid-column: span 7; } .card-1 img, .card-2 img { height: 440px; }
.card-2 { grid-column: span 5; }
.card-3 { grid-column: span 5; } .card-3 img, .card-4 img { height: 320px; }
.card-4 { grid-column: span 7; }
.card-meta { display: flex; justify-content: space-between; gap: 24px; }
.card-text { display: flex; flex-direction: column; gap: 6px; }
.card-title { font-family: var(--font-display); font-size: 26px; line-height: 1.2; }
.is-rtl .card-title { font-weight: 500; }
.card-sub { font-size: 15px; color: rgba(255,255,255,.72); }
.card-year { font-size: 15px; color: var(--accent); }
.card:hover { opacity: 1; }
.card:hover img { transform: scale(1.04); }
.card-title { transition: color .2s; }
.card:hover .card-title { color: var(--accent); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 16px; }
.tile { position: relative; display: block; overflow: hidden; background: #dcd5ca; }
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tile-caption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 40px 18px 14px; font-size: 14px; color: var(--white); background: linear-gradient(to top, rgba(10,30,49,.85), rgba(10,30,49,0)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.tile:hover { opacity: 1; }
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile-caption, .tile:focus-visible .tile-caption { opacity: 1; transform: none; }
@media (hover: none) { .tile-caption { opacity: 1; transform: none; } }

/* project list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 20px; font-size: 14px; background: transparent; color: var(--navy); border: 1px solid var(--navy); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.table-wrap { background: var(--white); border: 1px solid var(--line); }
.projects-table { width: 100%; border-collapse: collapse; text-align: start; }
.projects-table th { padding: 18px 20px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #6a5234; text-align: start; border-bottom: 1px solid var(--line); }
.is-rtl .projects-table th { letter-spacing: 0; font-size: 14px; }
.projects-table td { padding: 20px; border-bottom: 1px solid #eee9e1; font-size: 15px; color: var(--body); vertical-align: middle; }
.projects-table th:first-child, .projects-table td:first-child { padding-inline-start: 32px; }
.projects-table th:last-child, .projects-table td:last-child { padding-inline-end: 32px; }
.projects-table tr[hidden] { display: none; }
.projects-table:not(.is-expanded) tr.is-extra { display: none; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); align-self: center; }
.col-year { font-family: "Bricolage Grotesque", sans-serif; font-size: 20px !important; color: var(--navy) !important; width: 90px; }
.col-name { width: 44%; }
.p-name { display: block; font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.45; }
.p-cat { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #6a5234; }
.is-rtl .p-cat { letter-spacing: 0; font-size: 13px; }
.projects-table th.col-value { text-align: end !important; }
.projects-table td.col-value { text-align: end !important; white-space: nowrap; font-size: 16px !important; color: var(--navy) !important; font-variant-numeric: tabular-nums; }

/* services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-content: start; }
.service { display: flex; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line-strong); }
.service:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
.service-num { font-size: 14px; color: var(--bronze); padding-top: 4px; }
.service-title { font-family: var(--font-display); font-size: 22px; color: var(--navy); line-height: 1.25; }
.service-text { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* clients */
.clients { background: var(--white); border-block: 1px solid var(--line); padding-block: 64px; }
.clients-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; font-family: var(--font-display); font-size: 19px; line-height: 1.3; color: var(--navy); }

/* commitment */
.commit { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; }
.commit .stack-md { max-width: 820px; }
.commit .btn { flex-shrink: 0; }

/* contact */
.contact { background: var(--white); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); }
.contact-list { display: flex; flex-direction: column; gap: 28px; }
.contact-list li { display: flex; gap: 18px; }
.contact-list svg { flex-shrink: 0; color: var(--navy); margin-top: 2px; }
.contact-list > li > span { display: flex; flex-direction: column; gap: 4px; }
.contact-value { font-size: 17px; line-height: 1.5; }
.map { width: 100%; height: 260px; border: 0; background: #dcd5ca; }
.contact-form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.5vw, 48px); background: var(--ground); align-self: start; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid #c9c0b2; background: var(--white); border-radius: 0; font-weight: 400; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.notice { padding: 14px 18px; font-size: 15px; }
.notice-ok { background: #e3eee4; color: #1f4a28; }
.notice-err { background: #f6e3e0; color: #7a2418; }

/* footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding-block: 80px 44px; }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; color: var(--white); }
.footer-name { font-family: "Bricolage Grotesque", sans-serif; font-size: 24px; letter-spacing: .32em; text-align: start; }
.is-rtl .footer-name { align-self: flex-start; }
.footer-slogan { font-size: 13px; opacity: .75; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.55; }
.footer-title { font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.is-rtl .footer-title { letter-spacing: 0; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: rgba(255,255,255,.58); }

/* header on scroll */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(5,16,28,.28); }

/* hover polish */
.btn { transition: opacity .15s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.link-arrow .icon-arrow { transition: transform .2s; }
.link-arrow:hover .icon-arrow { transform: translateX(4px); }
.is-rtl .link-arrow:hover .icon-arrow { transform: scaleX(-1) translateX(4px); }
.division { transition: box-shadow .3s, transform .3s; }
.division:hover { box-shadow: 0 18px 40px rgba(15,42,68,.12); }
.projects-table tbody tr { transition: background-color .15s; }
.projects-table tbody tr:hover { background: #faf8f4; }

/* scroll reveal (only when JS is on and motion is allowed) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-media img { animation: fadein 1.2s ease both; }
.hero-frame::after { animation: framein 1.4s .4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes framein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }


/* floating buttons */
.float-actions { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.float-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 8px 24px rgba(5,16,28,.28); transition: transform .2s, opacity .3s, visibility .3s; }
.float-btn:hover { opacity: 1; transform: translateY(-2px); }
.whatsapp { width: 58px; height: 58px; background: #25d366; color: var(--white); }
.whatsapp svg { width: 30px; height: 30px; stroke-width: 1.6; }
.to-top { width: 44px; height: 44px; background: var(--navy); color: var(--white); border: 1px solid rgba(255,255,255,.2); opacity: 0; visibility: hidden; transform: translateY(8px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* gallery pop-up */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6,18,30,.97); color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(6,18,30,.6); }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: calc(100vw - 180px); }
.lb-img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; transition: opacity .25s; }
.lb-img.is-loading { opacity: .2; }
.lb-caption { font-size: 15px; color: rgba(255,255,255,.85); display: flex; gap: 14px; }
.lb-count { color: var(--accent); }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: var(--white); cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn[hidden] { display: none; }
.lb-close { top: 20px; inset-inline-end: 20px; }
.lb-prev { inset-inline-start: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 24px; top: 50%; transform: translateY(-50%); }
.lb-prev .icon-arrow { transform: scaleX(-1); }
.is-rtl .lb-prev .icon-arrow { transform: none; }
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
	.hero-copy > *, .hero-media img, .hero-frame::after { animation: none; }
	.card img, .btn, .division { transition: none; }
}

/* generic pages */
.prose { max-width: 820px; }
.entry { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }

/* ================================================= responsive ================================================= */
@media (max-width: 1100px) {
	.clients-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; }
	.footer-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 68px; }
	.menu-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 28px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.12); }
	.site-nav.is-open { display: flex; }
	.main-nav { flex-direction: column; gap: 0; margin: 0; font-size: 18px; }
	.main-nav a { padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.header-actions { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 16px; }
	.header-actions .btn { min-height: 52px; }
	.lang-switch { font-size: 15px; }

	.hero { grid-template-columns: 1fr; min-height: 0; }
	.hero-media { order: 2; padding: 0 calc(var(--gutter) + 10px) clamp(36px, 7vw, 56px) var(--gutter); }
	.hero-frame { --frame: 10px; }
	.is-rtl .hero-media { padding-inline: var(--gutter) calc(var(--gutter) + 10px); }
	.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 0; }
	.stat { padding: 28px 24px; border-inline-start: 0; border-bottom: 1px solid var(--line); }
	.stat:nth-child(odd) { padding-inline-start: 0; border-inline-end: 1px solid var(--line); }
	.stat:nth-last-child(-n+2) { border-bottom: 0; }
	.split-aside, .split-main, #services .split-main { grid-column: 1 / -1; }
	.featured { grid-template-columns: 1fr 1fr; }
	.card-1, .card-2, .card-3, .card-4 { grid-column: span 1; }
	.card-1 img, .card-2 img, .card-3 img, .card-4 img { height: 320px; }
	.commit { flex-direction: column; align-items: flex-start; gap: 36px; }
	.contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
	.brand-slogan { display: none; }
	.two-col, .facts, .divisions, .services, .form-row, .featured { grid-template-columns: 1fr; }
	.facts { gap: 20px; }
	.division img { height: 220px; }
	.card-1 img, .card-2 img, .card-3 img, .card-4 img { height: 240px; }
	.card-title { font-size: 22px; }
	.hero-buttons .btn { flex: 1 1 100%; }
	.service:nth-last-child(2) { border-bottom: 0; }
	.clients-list { grid-template-columns: 1fr 1fr; font-size: 17px; }
	.gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
	.tile-caption { font-size: 12px; padding: 28px 10px 8px; }
	.stat-label { font-size: 14px; }

	/* project table becomes stacked cards */
	.projects-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
	.projects-table, .projects-table tbody, .projects-table tr, .projects-table td { display: block; width: 100%; }
	.projects-table tr { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px 20px; border-bottom: 1px solid #eee9e1; }
	.projects-table tr[hidden] { display: none; }
	.projects-table:not(.is-expanded) tr.is-extra { display: none; }
	.show-all { width: 100%; }
	.projects-table td { padding: 0 !important; border: 0; font-size: 14px; }
	.projects-table .col-year { grid-row: span 4; width: auto; font-size: 18px !important; }
	.projects-table td[data-label]::before { content: attr(data-label) " · "; color: #6a5234; }
	.projects-table td.col-value { text-align: start !important; margin-top: 2px; }
	.col-name { margin-bottom: 6px; }

	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; }
	.float-actions { inset-block-end: 16px; inset-inline-end: 16px; }
	.whatsapp { width: 52px; height: 52px; }
	.lb-figure { max-width: 100vw; padding-inline: 12px; }
	.lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
	.lb-img { max-height: calc(100vh - 190px); }
	.btn-dark { width: 100%; }
	.contact-form .btn { align-self: stretch; }
}
.lang-ku .hero-title { font-size: clamp(38px, 3.9vw, 58px); }
