/* Aspen Polystyrene Industry — site styles */
:root {
  --ink: #0d1b2a;
  --ink-2: #1b2b3d;
  --ink-soft: #44546a;
  --muted: #5b6878;
  --line: #dfe4ea;
  --paper: #ffffff;
  --paper-2: #f4f6f4;
  --green: #1f7f43;
  --green-dark: #17633a;
  --green-tint: #e7f2eb;
  --navy-glow: #12305a;
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #e9eef4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: #7fd29b; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section--dark .lead { color: #b8c4d2; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.head-row h2 { margin: 0; }
.head-row .lead { margin: 12px 0 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .98rem/1 var(--font-body); text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
/* Fixed rather than sticky, so slimming it on scroll (site.js adds .is-scrolled) never moves the page below. */
.site-header {
  --header-h: 76px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s, background .25s;
}
body { padding-top: 76px; }
.site-header.is-scrolled { --header-h: 62px; background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(13,27,42,.08); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); transition: height .25s ease; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 34px; height: 46px; object-fit: contain; transition: transform .25s ease; transform-origin: left center; }
.site-header.is-scrolled .brand img { transform: scale(.85); }
.brand-text { font: 800 1.05rem/1.05 var(--font-head); letter-spacing: .02em; }
.brand-text small { display: block; font: 500 .68rem/1.3 var(--font-body); letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 9px 13px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
/* The عربي switch on English pages: Inter has no Arabic, so use a system Arabic face sized to match the menu. */
.nav a[lang="ar"] { font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-size: 1.12em; font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 12px 20px; color: #fff; }
.nav .btn:hover { background: var(--green-dark); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    box-shadow: 0 20px 40px rgba(13,27,42,.12);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 10px 0 0; padding: 16px; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--ink);
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; animation: hero-zoom 24s ease-out both; }
/* A slow push-in on the home photo; transform only, so it costs nothing to paint. */
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.15) 0%, rgba(13,27,42,.35) 45%, rgba(13,27,42,.92) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 72px; }
.hero h1 { max-width: 18ch; margin-bottom: 22px; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d5dee8; max-width: 56ch; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 64px; border-top: 1px solid rgba(255,255,255,.18);
}
.stat { padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.stat b { display: block; font: 800 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--font-head); color: #fff; }
.stat span { font-size: .92rem; color: #a9b7c7; }
/* Stat numbers stay hidden until site.js starts counting them up (no flash of the final value);
   if the script never runs they appear on their own after 2.5 s. */
@media (prefers-reduced-motion: no-preference) {
  .js .stat b { opacity: 0; animation: stat-show 0s 2.5s forwards; }
  .js .stat b.is-counting { opacity: 1; animation: none; }
}
@keyframes stat-show { to { opacity: 1; } }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); margin-top: 22px; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 20ch; }
.page-hero p { color: #c3cfdc; max-width: 62ch; font-size: 1.12rem; margin: 0; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,27,42,.95) 30%, rgba(13,27,42,.55)); }
.crumbs { font-size: .88rem; color: #9fb0c3; margin-bottom: 18px; }
.crumbs a { color: #cfe0d4; text-decoration: underline; text-decoration-color: rgba(207,224,212,.45); text-underline-offset: 3px; }
.crumbs a:hover { color: #fff; }

/* About */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split > * { min-width: 0; }
.split--flip > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.badge {
  position: absolute; left: -18px; bottom: 28px; background: var(--green); color: #fff;
  padding: 18px 22px; border-radius: var(--radius-sm); box-shadow: var(--shadow); max-width: 220px;
}
.badge b { display: block; font: 800 2rem/1 var(--font-head); }
.badge span { font-size: .88rem; color: #fff; }
.facts { display: grid; gap: 22px; margin-top: 30px; }
.fact { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.fact__icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-tint); color: var(--green);
  display: grid; place-items: center;
}
.fact__icon svg { width: 22px; height: 22px; }
.fact h3 { font-size: 1.06rem; margin-bottom: 4px; }
.fact p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
  .badge { left: 16px; }
}

/* Product grid */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd7df; color: inherit; }
.card__media { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }

.cnc {
  margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.cnc__media img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cnc__body { padding: clamp(28px, 4vw, 48px); }
.cnc__body h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
@media (max-width: 760px) { .cnc { grid-template-columns: 1fr; } }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.card__body .link-arrow { margin-top: 6px; }

/* EPS advantages */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.adv__item { background: var(--ink); padding: 28px 24px; }
.section--tint .adv { background: var(--line); }
.section--tint .adv__item { background: #fff; }
.adv__item svg { width: 28px; height: 28px; color: #7fd29b; margin-bottom: 16px; }
.section--tint .adv__item svg { color: var(--green); }
.adv__item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.adv__item p { margin: 0; font-size: .93rem; color: #aebccc; }
.section--tint .adv__item p { color: var(--ink-soft); }
@media (max-width: 960px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adv { grid-template-columns: 1fr; } }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-2); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover img { transform: scale(1.05); }
.project figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(13,27,42,.9));
  color: #fff; font: 700 1.05rem/1.25 var(--font-head);
}
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, 1fr); } }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logos--wide { grid-template-columns: repeat(4, 1fr); }
.logo-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  height: 120px; display: grid; place-items: center; padding: 18px 22px; margin: 0;
}
.logo-tile img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile figcaption { display: none; }
.logos--named .logo-tile { height: auto; grid-template-rows: 90px auto; gap: 10px; }
.logos--named .logo-tile figcaption { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); text-align: center; }
@media (max-width: 860px) { .logos, .logos--wide { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logos, .logos--wide { grid-template-columns: repeat(2, 1fr); } }

/* Certificates */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cert {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: inherit; transition: box-shadow .25s, border-color .25s;
}
.cert:hover { box-shadow: var(--shadow); border-color: #cfd7df; color: inherit; }
.cert img { width: 140px; height: 110px; object-fit: contain; }
.cert h3 { margin-bottom: 6px; }
.cert p { margin: 0 0 10px; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .certs { grid-template-columns: 1fr; } .cert { grid-template-columns: 96px 1fr; } .cert img { width: 96px; height: 80px; } }

/* CTA band */
.cta {
  background: radial-gradient(120% 140% at 85% 0%, #1f4a7a 0%, var(--ink) 60%); color: #fff;
  border-radius: 20px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #c3cfdc; margin: 0; max-width: 56ch; }
.cta .hero__actions { justify-content: flex-end; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } .cta .hero__actions { justify-content: flex-start; } }

/* Product detail */
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-soft); }
.prose h3 { margin-top: 1.6em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7f43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--cols { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
@media (max-width: 560px) { .ticks--cols { grid-template-columns: 1fr; } }

.feature-img { border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .78rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfa; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note { font-size: .9rem; color: var(--muted); margin-top: 12px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.spec:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd7df; }
.spec__media img { transition: transform .5s; }
.spec:hover .spec__media img { transform: scale(1.04); }
.spec__media { background: var(--ink); aspect-ratio: 4 / 3; }
.spec__media img { width: 100%; height: 100%; object-fit: cover; }
.spec__media--light { background: #fff; border-bottom: 1px solid var(--line); }
.spec__media--light img { object-fit: contain; padding: 8px; }
.spec__body { padding: 18px 20px 20px; }
.spec__body h3 { font-size: 1.08rem; margin-bottom: 10px; }
.spec dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: .92rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }

.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.app { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.app h3 { display: flex; align-items: center; gap: 12px; }
.app h3 svg { width: 24px; height: 24px; color: var(--green); flex-shrink: 0; }
.app p { color: var(--ink-soft); }
.app ul { margin: 0; padding-left: 18px; color: var(--ink-soft); columns: 2; column-gap: 24px; }
.app li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } .app ul { columns: 1; } }

.sticky-aside { position: sticky; top: 100px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper-2); }
.aside-card h3 { margin-bottom: 8px; }
.aside-card p { color: var(--ink-soft); font-size: .95rem; }

/* Quote form */
.quote { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.contact-list b { display: block; font-family: var(--font-head); }
.contact-list span, .contact-list a { color: var(--ink-soft); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field .req { color: var(--green); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,127,67,.14); }
.field [aria-invalid="true"] { border-color: #c2412d; }
.field .help { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: .86rem; color: #b3341f; margin-top: 6px; min-height: 0; }
.field .err:empty { display: none; }
.field .other-input { margin-top: 10px; }
.form-error { background: #fdf0ee; border: 1px solid #f2c9c1; color: #8f2a19; padding: 12px 14px; border-radius: 10px; margin-top: 18px; }
.form-error:empty { display: none; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions .btn { min-width: 200px; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.skeleton { display: grid; gap: 16px; }
.skeleton div { height: 50px; border-radius: 10px; background: linear-gradient(90deg, #eef1f4, #f7f8fa, #eef1f4); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.thanks { text-align: center; padding: 30px 10px; }
.thanks__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; }
.thanks__icon svg { width: 30px; height: 30px; }

/* Footer */
.site-footer { background: #0a1520; color: #9fb0c3; padding: 72px 0 28px; font-size: .95rem; }
.site-footer a { color: #cdd7e2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-brand img { width: 120px; height: auto; margin-bottom: 18px; }
.feature-img { background: #fff; border: 1px solid var(--line); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 52px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.08); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 48px; }

/* Service area */
.areas { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 16px; font-weight: 500; color: #e9eef4; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; font: 700 1.05rem/1.35 var(--font-head); padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; line-height: 1; padding-top: 4px; color: var(--green); transition: transform .28s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: 0 0 20px; }

.section--dark a:not(.btn) { color: #7fd29b; }
.section--dark a:not(.btn):hover { color: #fff; }

/* Box model pages and the buyer's guide */
.feature-img--product img { object-fit: contain; padding: 18px; }
/* On phones the product photo comes before its specifications. */
@media (max-width: 860px) { .split > .feature-img--product { order: -1; } }
.spec__body h3 a { color: inherit; text-decoration: none; }
.spec__body h3 a:hover { color: var(--green); }
.spec__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.spec-table th { width: 44%; text-transform: none; letter-spacing: 0; font-size: .9rem; }
tr.is-current td { background: var(--green-tint); }
tbody tr.is-current:hover td { background: var(--green-tint); }
tr.is-current small { font-weight: 500; color: var(--green-dark); }
.prose .hero__actions { margin-top: 28px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.toc a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .92rem; text-decoration: none; color: var(--ink); background: #fff; }
.toc a:hover { border-color: var(--green); color: var(--green); }
.guide { padding-top: 56px; scroll-margin-top: 80px; }
.guide h2 { margin-bottom: .4em; }

/* Blog */
.post-meta { font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
.article { max-width: 780px; }
.article .post-meta { margin-bottom: 18px; }
.article__img { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article .prose { max-width: none; }
.article .prose h2 { margin-top: 1.8em; margin-bottom: .5em; }
.article .prose .table-wrap { margin: 20px 0 8px; }
.article .prose td { color: var(--ink-soft); }
.compare td:first-child { white-space: normal; width: 28%; }
/* On phones each comparison row becomes a small card: property, then EPS and XPS lines. */
@media (max-width: 640px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare td { display: block; padding: 3px 0; border: 0; width: auto; }
  .compare td:first-child { color: var(--ink); margin-bottom: 4px; }
  .compare td:nth-child(2)::before { content: "EPS: "; font-weight: 700; color: var(--green-dark); }
  .compare td:nth-child(3)::before { content: "XPS: "; font-weight: 700; color: var(--ink); }
  .compare tbody tr:hover td { background: none; }
}

/* Arabic (right-to-left) pages */
/* Same pairing as the UAE federal government sites: Alexandria headings, Noto Kufi Arabic text. */
html[lang="ar"] {
  --font-head: "Alexandria", "Noto Kufi Arabic", Arial, sans-serif;
  --font-body: "Noto Kufi Arabic", Arial, "Segoe UI", Tahoma, sans-serif;
}
/* The English logo text keeps the site's Latin font on Arabic pages. */
html[lang="ar"] .brand-text { font-family: "Archivo", Arial, sans-serif; text-align: left; }
html[lang="ar"] .brand-text small { font-family: "Inter", Arial, sans-serif; }
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
/* Alexandria runs wider than Archivo; a smaller phone minimum keeps the home heading to two lines. */
html[lang="ar"] h1 { font-size: clamp(2rem, 5.2vw, 4.2rem); }
html[lang="ar"] .eyebrow, html[lang="ar"] th, html[lang="ar"] .footer-grid h3 { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .eyebrow { font-size: .9rem; }
/* isolate-override keeps phone numbers and codes in left-to-right order even when written in Arabic-Indic digits */
.ltr { direction: ltr; unicode-bidi: isolate-override; display: inline-block; }
.en-note { font-weight: 400; opacity: .7; font-size: .8em; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .menu-btn { margin-left: 0; margin-right: auto; }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }
[dir="rtl"] .stat { padding: 26px 0 0 24px; }
[dir="rtl"] .stat + .stat { padding-left: 24px; padding-right: 24px; border-left: 0; border-right: 1px solid rgba(255,255,255,.18); }
[dir="rtl"] .badge { left: auto; right: -18px; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .app ul { padding-left: 0; padding-right: 18px; }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] .page-hero::after { background: linear-gradient(270deg, rgba(13,27,42,.95) 30%, rgba(13,27,42,.55)); }
[dir="rtl"] .faq summary { padding: 18px 0 18px 32px; }
[dir="rtl"] .faq summary::after { right: auto; left: 0; }
[dir="rtl"] .brand img { transform-origin: right center; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="url"] { direction: ltr; text-align: right; }
@media (max-width: 960px) {
  [dir="rtl"] .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 860px) {
  [dir="rtl"] .badge { right: 16px; }
}
@media (max-width: 760px) {
  [dir="rtl"] .stat:nth-child(3) { padding-right: 0; border-right: 0; }
}

.table-wrap td:first-child { white-space: nowrap; }
