/* Al Rebdi HVAC Services — v2 design system */
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/jakarta-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("/assets/fonts/plex-arabic-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --ink: #102a43;
  --muted: #52667d;
  --line: #dce6f0;
  --ice: #f2f7fb;
  --ice-2: #e6f1f8;
  --white: #fff;
  --accent: #1fa2d6;
  --accent-ink: #0a6f99;
  --accent-hover: #168fc0;
  --mint: #2bc4a8;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 18px 50px -20px rgba(11, 37, 69, .28);
  --shadow-sm: 0 6px 20px -10px rgba(11, 37, 69, .25);
  --nav-h: 76px;
  --container: 1200px;
  --font: "Jakarta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html[lang="ar"] { --font: "Plex Arabic", "Jakarta", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; color: var(--navy); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
html[dir="rtl"] .flip { transform: scaleX(-1); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-soft { background: var(--ice); }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 .95rem/1 var(--font); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn-sm { padding: 10px 16px; font-size: .85rem; }
.btn-lg { padding: 17px 26px; font-size: 1rem; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 162, 214, .9); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-glass:hover { background: rgba(255,255,255,.2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 650; text-decoration: none; transition: gap .2s; }
.link-arrow:hover { gap: 12px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .9rem; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-text { color: var(--muted); font-size: 1.05rem; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(11,37,69,.5); }
.nav-inner { height: 100%; width: min(100% - 32px, 1320px); margin-inline: auto; display: flex; align-items: center; gap: 20px; }
.nav-logo { text-decoration: none; color: var(--navy); flex: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 1.1rem; font-weight: 800; letter-spacing: .02em; }
.logo-text small { font-size: .7rem; font-weight: 600; color: var(--accent-ink); letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .logo-text small { letter-spacing: 0; font-size: .75rem; }
.nav-menu { margin-inline-start: auto; display: flex; align-items: center; }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 9px 13px; font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--muted); border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--navy); background: var(--ice); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--ice-2); }
.nav-cta-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; padding: 9px 12px; border-radius: 999px; font-size: .88rem; font-weight: 650; border: 1.5px solid var(--line); }
.lang:hover { border-color: var(--navy); }
.lang:lang(ar) span { font-family: "Plex Arabic", sans-serif; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 20.5px; } .burger span:nth-child(3) { top: 26px; }
.nav.open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Airflow lines (decor) ---------- */
.air-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .18; pointer-events: none; }
.air-lines path { stroke-dasharray: 6 14; animation: airflow 14s linear infinite; animation-delay: calc(var(--k) * -1.3s); }
.air-lines-light { stroke: #fff; opacity: .16; }
@keyframes airflow { to { stroke-dashoffset: -400; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 85% 0%, var(--ice-2), transparent 60%), linear-gradient(180deg, var(--ice), #fff); padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(43,196,168,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(43,196,168,0); } }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); font-weight: 800; margin: 22px 0 18px; line-height: 1.04; }
html[lang="ar"] .hero h1 { line-height: 1.3; }
.grad { background: linear-gradient(90deg, var(--accent), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 4vw, 40px); }
.trust li { display: flex; flex-direction: column; }
.trust b { font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.trust span { font-size: .85rem; color: var(--muted); }
.trust li + li { padding-inline-start: clamp(18px, 4vw, 40px); border-inline-start: 1px solid var(--line); }
.hero-visual { position: relative; }
.hero-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/4.4; transform: rotate(1.5deg); }
html[dir="rtl"] .hero-photo { transform: rotate(-1.5deg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.thermo { position: absolute; top: 10%; inset-inline-start: -32px; display: flex; align-items: center; gap: 14px; background: #fff; padding: 14px 20px 14px 14px; border-radius: var(--r); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
html[dir="rtl"] .thermo { padding: 14px 14px 14px 20px; }
.thermo small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.thermo b { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: .95rem; }
.thermo-dial { position: relative; width: 64px; height: 64px; }
.thermo-dial svg { width: 100%; height: 100%; transform: rotate(135deg); }
.thermo-dial circle { fill: none; stroke: var(--ice-2); stroke-width: 9; stroke-dasharray: 198 264; stroke-linecap: round; }
.thermo-dial .thermo-arc { stroke: var(--accent); stroke-dasharray: 120 264; transition: stroke-dasharray .8s var(--ease); }
.thermo-temp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.hero-chip { position: absolute; bottom: 8%; inset-inline-end: -18px; display: flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite reverse; }
.hero-chip .icon { color: var(--mint); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Service explorer ---------- */
.explorer { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.ex-tabs { display: grid; gap: 10px; }
.ex-tab { display: flex; gap: 16px; align-items: flex-start; text-align: start; padding: 18px 20px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: inherit; transition: border-color .25s, background .25s, box-shadow .25s; }
.ex-tab b { display: block; font-size: 1.05rem; color: var(--navy); margin-bottom: 2px; }
.ex-tab small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.ex-icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--ice); color: var(--accent-ink); flex: none; transition: background .25s, color .25s; }
.ex-tab:hover { border-color: #b8cde0; }
.ex-tab[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(180deg, #fff, var(--ice)); box-shadow: var(--shadow-sm); }
.ex-tab[aria-selected="true"] .ex-icon { background: var(--accent); color: #fff; }
.ex-panels { position: relative; }
.ex-panel { height: 100%; display: grid; grid-template-rows: 1fr auto; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); color: #fff; box-shadow: var(--shadow); animation: fadeUp .5s var(--ease); }
.js .ex-panel[data-hidden] { display: none; }
.ex-panel + .ex-panel { margin-top: 20px; }
.js .ex-panel + .ex-panel { margin-top: 0; }
.ex-media { min-height: 260px; position: relative; }
.ex-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex-media.plain { background: #fff; }
.ex-media.plain img { object-fit: contain; padding: 20px; }
.ex-body { padding: 26px 28px 30px; }
.ex-body h3 { color: #fff; font-size: 1.4rem; }
.ex-body .link-arrow { color: #7fd3f2; margin-top: 8px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.ticks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.ticks .icon { color: var(--mint); margin-top: 3px; }
.ticks-lg { grid-template-columns: 1fr; gap: 0; }
.ticks-lg li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.ticks-lg b { color: var(--navy); }

/* ---------- Gauges ---------- */
.gauges-wrap { padding: 0 0 clamp(20px, 3vw, 40px); }
.gauges { position: relative; background: linear-gradient(135deg, var(--navy), var(--navy-2)); border-radius: var(--r-lg); padding: clamp(36px, 5vw, 60px); color: #fff; overflow: hidden; }
.gauges::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 60px rgba(255,255,255,.02), 0 0 0 120px rgba(255,255,255,.02); pointer-events: none; }
.gauges-title { color: #fff; text-align: center; margin-bottom: 36px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.gauge-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.gauge { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge svg { width: min(140px, 100%); aspect-ratio: 1; }
.g-track, .g-fill { fill: none; stroke-width: 7; stroke-linecap: round; transform-origin: 60px 60px; transform: rotate(135deg); stroke-dasharray: 235.6 314.2; }
.g-track { stroke: rgba(255,255,255,.12); }
.g-fill { stroke: var(--accent); stroke-dasharray: 0 314.2; transition: stroke-dasharray 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.gauge.in .g-fill { stroke-dasharray: 235.6 314.2; }
.g-tick { stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.gauge-num { position: absolute; top: 0; width: min(140px, 100%); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.gauge-label { margin-top: 4px; font-size: .88rem; color: rgba(255,255,255,.75); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-visual { position: relative; }
.why-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/4.6; box-shadow: var(--shadow); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-round { position: absolute; bottom: -24px; inset-inline-end: -24px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); border: 6px solid #fff; }
.badge-round small { font-size: .8rem; font-weight: 600; opacity: .9; }
.badge-round b { font-size: 2rem; font-weight: 800; line-height: 1; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--ice); }
.why-list h3 { margin-bottom: 4px; }
.why-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.why-icon { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: #fff; color: var(--accent-ink); flex: none; box-shadow: var(--shadow-sm); }

/* ---------- Process flow ---------- */
.process-sec { background: var(--ice); }
.flow { position: relative; }
.flow-line { position: absolute; top: 19px; left: 10%; width: 80%; height: 20px; fill: none; }
.flow-line path { stroke: var(--line); stroke-width: 6; stroke-linecap: round; }
.flow-line .flow-dash { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2 18; animation: airflow 6s linear infinite; }
html[dir="rtl"] .flow-line .flow-dash { animation-direction: reverse; }
.flow-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; text-align: center; }
.flow-node { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--accent); color: var(--navy); font-weight: 800; box-shadow: 0 0 0 8px var(--ice); }
.flow-steps h3 { margin-bottom: 4px; }
.flow-steps p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.calc-grid > .calc:only-child { grid-column: 1 / -1; }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.calc-fields { padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label, .field .label { font-size: .85rem; font-weight: 650; color: var(--navy); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,162,214,.15); }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field [aria-invalid="true"] { border-color: #d14343; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); transition: .2s; }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.calc-result { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 28px; display: flex; flex-direction: column; }
.calc-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7fd3f2; margin: 0; }
html[lang="ar"] .calc-label { letter-spacing: 0; font-size: .9rem; }
.calc-btu { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; margin: 6px 0 0; line-height: 1.1; }
.calc-btu small { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.7); }
.calc-tons { color: rgba(255,255,255,.75); font-size: .92rem; }
.calc-result dl { margin: 6px 0 22px; display: grid; gap: 12px; }
.calc-result dl div { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); }
.calc-result dt { font-size: .78rem; color: rgba(255,255,255,.65); }
.calc-result dd { margin: 0; font-weight: 700; }
.calc-result .btn { align-self: flex-start; }
.calc-note { font-size: .78rem; color: rgba(255,255,255,.6); margin: 16px 0 0; }

/* ---------- Sectors ---------- */
.sector-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector-grid li { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r); border: 1.5px solid var(--line); font-weight: 650; color: var(--navy); transition: border-color .25s, transform .25s, box-shadow .25s; }
.sector-grid li:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.sector-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ice); color: var(--accent-ink); flex: none; }

/* ---------- Clients ---------- */
.clients-sec { background: var(--ice); }
.logo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-grid li { background: #fff; border-radius: var(--r); aspect-ratio: 16/10; display: grid; place-items: center; padding: 22px; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.logo-grid li:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.logo-grid img { max-height: 70px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent-ink); transition: transform .3s; }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 620px; }

/* ---------- CTA ---------- */
.cta-sec { padding-top: 0; }
.cta-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--accent-ink), var(--accent) 60%, #4cc3e8); color: #fff; }
.cta-text { position: relative; }
.cta-card h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-card p { margin: 0; color: rgba(255,255,255,.9); }
.cta-actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--ice), #fff); padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.page-hero-inner { position: relative; }
.page-hero-inner > * { max-width: 820px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.page-hero .lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.page-hero + .section { padding-top: clamp(28px, 4vw, 48px); }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--accent-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.prose p { color: var(--muted); font-size: 1.04rem; }
.prose-narrow > * { max-width: 760px; }
.prose-narrow h2 { font-size: 1.3rem; margin-top: 1.6em; }
.lead-strong { font-size: 1.3rem !important; color: var(--navy) !important; font-weight: 600; line-height: 1.55; }
.timeline { background: var(--ice); border-radius: var(--r-lg); padding: 30px; }
.timeline h2 { font-size: 1.3rem; }
.timeline ol { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 26px; padding-bottom: 20px; border-inline-start: 2px solid var(--line); margin-inline-start: 6px; }
.timeline li:last-child { padding-bottom: 0; border-color: transparent; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--ice-2); }
.timeline b { color: var(--navy); font-size: 1.1rem; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.value-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-cards li { padding: 28px; border-radius: var(--r-lg); border: 1.5px solid var(--line); }
.value-cards .why-icon { margin-bottom: 16px; background: var(--ice); box-shadow: none; }
.value-cards p { color: var(--muted); margin: 0; }
.message-sec { background: var(--ice); }
.message { margin: 0 auto; max-width: 780px; text-align: center; }
.message .kicker { justify-content: center; }
.message blockquote { margin: 0 0 26px; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; color: var(--navy); line-height: 1.5; }
.message blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--accent); margin-top: 16px; }
.message figcaption { display: grid; justify-items: center; gap: 2px; }
.signature { height: 46px; width: auto; margin-bottom: 6px; }
.message figcaption span { color: var(--muted); font-size: .92rem; }

/* ---------- Services page ---------- */
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card { padding: 26px; border-radius: var(--r-lg); border: 1.5px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; }
.svc-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.svc-icon { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--navy); color: #fff; margin-bottom: 18px; }
.svc-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split-rev > :first-child { order: 2; }
.split-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.plain { background: #fff; box-shadow: none; border: 1px solid var(--line); }
.split-media.plain img { object-fit: contain; padding: 24px; }
.anchor { display: block; position: relative; top: calc(-1 * var(--nav-h)); }

/* ---------- Forms & contact ---------- */
.form-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); background: #fff; }
.form h2 { font-size: 1.5rem; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-error { color: #b42318; font-weight: 600; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 16px 0 0; }
.form-note .icon { color: var(--mint); }
.contact-cards, .tips { display: grid; gap: 12px; }
.tips { background: var(--ice); border-radius: var(--r-lg); padding: 28px; }
.tips h2 { font-size: 1.25rem; margin: 0; }
.tips ol { margin: 0; padding-inline-start: 20px; color: var(--muted); display: grid; gap: 8px; }
.ccard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r); text-decoration: none; background: #fff; transition: border-color .2s; }
a.ccard:hover { border-color: var(--accent); }
.ccard-icon { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--ice-2); color: var(--accent-ink); flex: none; }
.ccard small { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
html[lang="ar"] .ccard small { letter-spacing: 0; font-size: .85rem; }
.ccard b { display: block; font-weight: 650; color: var(--navy); }
html[dir="rtl"] .ccard b[dir="ltr"] { text-align: right; }
.map { padding-bottom: clamp(64px, 8vw, 110px); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .93rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 56px 0 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-big { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 750; color: #fff; margin: 0 0 6px; }
.footer-phone { font-size: 1.2rem; font-weight: 700; color: #7fd3f2; text-decoration: none; }
.footer-top-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 36px; padding: 48px 0; }
.footer .nav-logo { color: #fff; }
.footer .logo-text small { color: #7fd3f2; }
.footer-brand p { margin-top: 16px; max-width: 320px; }
.footer-h { color: #fff; font-weight: 700; margin: 0 0 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact p { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .82rem; }
.footer-legal { display: flex; gap: 18px; }
.wa-float { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- 404 ---------- */
.notfound { position: relative; overflow: hidden; min-height: 70vh; display: grid; place-items: center; text-align: center; background: linear-gradient(180deg, var(--ice), #fff); padding: 60px 0; }
.notfound .container { position: relative; }
.nf-code { display: flex; align-items: center; justify-content: center; font-size: clamp(6rem, 18vw, 10rem); font-weight: 800; line-height: 1; color: var(--navy); margin: 0 0 10px; }
.nf-snow { width: .8em; height: .8em; color: var(--accent); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound p { color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav-links a { padding: 9px 9px; font-size: .86rem; }
  .nav-cta { display: none; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav-menu { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 14px; background: #fff; padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(11,37,69,.4); max-height: calc(100svh - var(--nav-h)); overflow: auto; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
  .nav.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; }
  .nav-links a { font-size: 1.05rem; padding: 14px 12px; border-radius: 12px; }
  .nav-cta-mobile { display: inline-flex; }
  .hero-grid, .explorer, .why-grid, .calc-grid, .faq-grid, .about-grid, .split, .form-layout { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .thermo { inset-inline-start: -8px; }
  .hero-chip { inset-inline-end: -6px; }
  .gauge-list { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .flow-line { display: none; }
  .flow-steps { grid-template-columns: 1fr; text-align: start; gap: 0; }
  .flow-steps li { display: grid; grid-template-columns: 58px 1fr; column-gap: 16px; padding-bottom: 22px; }
  .flow-node { margin: 0; grid-row: span 2; }
  .sector-grid, .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .value-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .badge-round { inset-inline-end: 12px; }
}
@media (max-width: 600px) {
  .lang span { display: none; }
  .calc { grid-template-columns: 1fr; }
  .calc-fields, .form-fields, .ticks { grid-template-columns: 1fr; }
  .gauge-list { grid-template-columns: repeat(2, 1fr); }
  .sector-grid, .svc-cards { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-grid li { padding: 14px; }
  .trust b { font-size: 1.35rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .thermo { padding: 10px 14px 10px 10px; top: 4%; }
  .thermo-dial { width: 52px; height: 52px; }
  .badge-round { width: 110px; height: 110px; bottom: -16px; }
  .badge-round b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .g-fill { stroke-dasharray: 235.6 314.2; }
}
@media print {
  .nav, .wa-float, .footer-top, .cta-sec, .map { display: none; }
}
