/* TPPS: shared styles, cloned from the Energy Basics site and recoloured to the
   TPPS Brand Guidelines (Nov. 2025): navy #002855, charcoal #333333, orange #f26a1b. */

/* Self hosted fonts (SIL OFL, licences in assets/fonts). No font CDNs. */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("../assets/fonts/noto-kufi-arabic-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --navy: #002855;        /* TPPS primary: headings, footer, dark surfaces */
  --primary: #00468a;     /* TPPS blue (logo backgrounds page): eyebrows, links, first accent bar */
  --accent: #f26a1b;      /* TPPS orange: energy accent, second accent bar */
  --green: #3c9d5d;       /* availability "in stock" and renewables (functional) */
  --sky: #f26a1b;         /* highlights on dark backgrounds: TPPS orange */
  --grey: #cacbcc;        /* TPPS custom grey */
  --ink: #333333;         /* TPPS charcoal: body text */
  --muted: #5d636b;
  --line: #dde1e5;
  --field: #c3c8ce;
  --page: #f6f7f8;
  --band: #ededed;        /* TPPS custom grey */
  --white: #ffffff;
  --error-bg: #fef3f2;
  --error-line: #fecdca;
  --error: #b42318;

  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 104px);

  /* Montserrat (self hosted) stands in for the TPPS typeface, which the guidelines leave as {fontname}. */
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font);
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--page);
}
html[lang="ar"] body { font-family: var(--font-ar); }
html[lang="ar"] { --font-head: var(--font-ar); }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.band { background: var(--band); }
.dark { background: var(--navy); color: #fff; }

/* Typography */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.dark .eyebrow, .hero .eyebrow { color: var(--sky); }
h1, h2, h3 { color: var(--navy); margin: 0; text-wrap: balance; }
.dark h1, .dark h2, .dark h3, .hero h1 { color: #fff; }
.h1 { font-family: var(--font-head); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.h2 { font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.01em; margin-top: 14px; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
html[lang="ar"] .h1, html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; max-width: 52ch; margin: 0; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Spacing that the removed accent bars used to give */
.h1 + .lead, .h2 + .lead { margin-top: 22px; }
.hero .h1 + .lead { margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 0;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0, 40, 85, .16); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #00376f; }
.btn-white { background: #fff; color: var(--navy); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.arrow { display: inline-block; transition: transform .15s; }
html[dir="rtl"] .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }
.hero .btn { margin-top: 34px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(0, 40, 85, .08);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: 0 8px 24px rgba(0, 40, 85, .08); }
.hdr-row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.logo img { height: 42px; width: auto; }
.nav { flex: 1; display: flex; justify-content: flex-end; gap: clamp(14px, 2vw, 26px); }
.nav a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; }
.langs button { background: none; border: 0; border-radius: 4px; padding: 6px 10px; min-height: 36px; font-size: 13px; font-weight: 700; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.quote-btn { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex: none; background: var(--grey); color: var(--navy); border: 0; border-radius: var(--radius); padding: 10px 16px; min-height: 44px; font-size: 14px; font-weight: 700; }
.quote-btn .count { min-width: 22px; height: 22px; border-radius: 11px; background: #eef1f4; color: var(--navy); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.burger { display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.burger span { width: 18px; height: 2px; background: var(--navy); border-radius: 1px; }
.mobile-menu { border-top: 1px solid rgba(0, 40, 85, .08); padding: 8px var(--gutter) 20px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { color: var(--navy); text-decoration: none; font-size: 17px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .langs { margin-top: 18px; width: max-content; }
.progress { position: absolute; inset-inline-start: 0; bottom: -1px; height: 2px; width: 0; background: var(--accent); }

@media (max-width: 960px) {
  .nav, .hdr-row > .langs { display: none; }
  .burger { display: flex; }
  .hdr-row { gap: 10px; }
  .hdr-row .spacer { flex: 1; }
  .logo { flex: 0 1 auto; min-width: 0; }
  .logo img { height: 32px; max-width: 100%; }
  .quote-btn { padding: 10px 12px; }
}
@media (min-width: 961px) {
  .mobile-menu { display: none !important; }
  .hdr-row .spacer { display: none; }
}

/* Hero: until photos arrive, a blueprint illustration on navy */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero.short { min-height: min(56vh, 520px); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img, .hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 40, 85, .94) 0%, rgba(0, 40, 85, .72) 45%, rgba(0, 40, 85, .2) 100%); }
html[dir="rtl"] .hero-shade { transform: scaleX(-1); }
/* Home hero photo: power lines at sunset (assets/images/hero-power-lines.jpg) */
.hero-home .hero-photo { object-position: 50% 78%; }
.hero-home .hero-shade { background: linear-gradient(90deg, rgba(0, 25, 55, .8) 0%, rgba(0, 25, 55, .5) 40%, rgba(0, 25, 55, 0) 70%); }
@media (max-width: 700px) { .hero-home .hero-shade { background: linear-gradient(180deg, rgba(0, 25, 55, .72) 0%, rgba(0, 25, 55, .45) 60%, rgba(0, 25, 55, .15) 100%); } }
html[dir="rtl"] .hero-home .hero-art { transform: scaleX(-1); }
/* Services and Products heroes: photo slideshow (one photo every 3 s, app.js). Not mirrored in Arabic. */
.hero-slides .hero-photo { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; object-position: 50% 50%; }
.hero-slides .hero-photo.is-active { opacity: 1; }
html[dir="rtl"] .hero-slides { transform: none; }
.hero-photo-wrap .hero-shade { background: linear-gradient(90deg, rgba(0, 25, 55, .9) 0%, rgba(0, 25, 55, .7) 45%, rgba(0, 25, 55, .25) 100%); }
@media (max-width: 700px) { .hero-photo-wrap .hero-shade { background: rgba(0, 25, 55, .72); } }
@media (prefers-reduced-motion: reduce) { .hero-slides .hero-photo { transition: none; } }

/* About hero: warm graded office photo on the end side, fading into navy behind the text. */
.hero-about .hero-art { inset-inline-start: auto; width: 60%; }
.hero-about .hero-photo { object-position: 50% 20%; }
.hero-about .hero-shade { background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 40%, rgba(0, 40, 85, .55) 52%, rgba(0, 40, 85, 0) 72%); }
.hero-consulting .hero-photo { object-position: 35% 50%; }
@media (max-width: 900px) {
  .hero-about .hero-art { width: 100%; }
  .hero-about .hero-photo { object-position: 30% 45%; }
  .hero-about .hero-shade { background: rgba(0, 25, 55, .62); }
}
.hero-inner { position: relative; width: 100%; padding-block: clamp(72px, 10vw, 128px); }
.hero h1 { max-width: 18ch; margin-top: 14px; }
.hero .accent { color: var(--sky); }
.hero .lead { color: #fff; }

/* Business lines */
.biz-lines { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.biz-line { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.biz-line:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 40, 85, .08); }
.circle { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--primary)) 14%, #fff); }
.circle svg, .icon { width: 26px; height: 26px; fill: none; stroke: var(--c, var(--primary)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.biz-name { font-size: 20px; font-weight: 700; color: var(--navy); }
.biz-desc { font-size: 15px; line-height: 1.6; color: var(--muted); }
.more { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: auto; }

/* Process flow */
.flow { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 32px 24px; }
.flow::before { content: ""; position: absolute; top: 10px; inset-inline: 10px; height: 2px; background: linear-gradient(90deg, var(--navy), var(--accent)); }
html[dir="rtl"] .flow::before { background: linear-gradient(270deg, var(--navy), var(--accent)); }
.flow li { position: relative; list-style: none; padding-top: 36px; }
.flow li::before { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.flow strong { display: block; font-size: 17px; color: var(--navy); }
.flow span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .flow::before { display: none; } }

/* Cards */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card .icon { width: 30px; height: 30px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; font-size: 15px; color: var(--muted); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }

/* Cards with a photo (services) */
.card-body { display: flex; flex-direction: column; gap: 10px; }
.card.has-photo { padding: 0; overflow: hidden; }
.card.has-photo .card-body { padding: 20px 24px 24px; }
.card-photo { flex: none; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }

/* Home: field services on TPPS navy (same as the footer), so it reads as its own section */
.band-blue { position: relative; background: var(--navy); color: #fff; }
.band-blue .eyebrow { color: #fff; }
.band-blue h2 { color: #fff; }
.band-blue .btn-sky { background: var(--accent); color: var(--navy); }
.band-blue .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.band-blue .card { border-color: transparent; box-shadow: 0 14px 30px rgba(0, 20, 45, .25); }

/* CTA band: TPPS orange, so it is clearly separate from the navy footer */
/* A dark section that ends a page gets the same gap above the navy footer as the CTA band. */
[data-page] > section.dark:last-child { margin-bottom: 24px; }
.cta-band { margin-bottom: 24px; background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 60%), var(--accent); color: var(--navy); }
.cta-band h2 { color: var(--navy); }
.cta-band .cta p { color: var(--navy); font-weight: 600; }

/* Consulting topic cards: lift and soft shadow on hover (as in the Energy Basics design) */
[data-render="consulting"] .card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
[data-render="consulting"] .card:hover { transform: translateY(-3px); border-color: var(--field); box-shadow: 0 16px 36px rgba(0, 40, 85, .1); }
@media (prefers-reduced-motion: reduce) {
  [data-render="consulting"] .card { transition: none; }
  [data-render="consulting"] .card:hover { transform: none; }
}

/* Services page: intro beside a two column grid of photo cards (as on the VoltGenics site) */
.svc-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px clamp(32px, 4vw, 56px); align-items: start; }
.svc-range-intro { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 16px; }
.svc-range-intro p { margin: 0; font-size: 16px; line-height: 1.6; max-width: 40ch; color: var(--muted); }
.svc-range-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .25s, transform .25s, border-color .25s; }
.svc-card:hover { box-shadow: 0 16px 36px rgba(0, 40, 85, .12); transform: translateY(-2px); border-color: transparent; }
.svc-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--band); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.svc-card:hover .svc-card-img img { transform: scale(1.04); }
.svc-card-body { flex: 1; display: flex; align-items: flex-end; gap: 16px; padding: 20px 22px 22px; }
.svc-card-text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.svc-card-text strong { font-size: 18px; line-height: 1.25; color: var(--navy); }
.svc-card-text span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.svc-card-go { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.svc-card-go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] .svc-card-go svg { transform: scaleX(-1); }
.svc-card:hover .svc-card-go { background: var(--navy); }
.svc-card-cta { background: var(--navy); border-color: var(--navy); justify-content: flex-end; min-height: 220px; }
.svc-card-cta .svc-card-text strong { color: #fff; font-size: 22px; }
.svc-card-cta .svc-card-text span { color: #dfe6ee; }
.svc-card-cta:hover .svc-card-go { background: #fff; }
.svc-card-cta:hover .svc-card-go svg { stroke: var(--navy); }
@media (max-width: 960px) { .svc-range { grid-template-columns: 1fr; } .svc-range-intro { position: static; } }
@media (max-width: 620px) { .svc-range-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svc-card, .svc-card-img img { transition: none; } .svc-card:hover, .svc-card:hover .svc-card-img img { transform: none; } }

/* Home: products preview */
.prod-preview { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.prod-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding-bottom: 18px; transition: box-shadow .2s, transform .2s; }
.prod-tile:hover { box-shadow: 0 14px 30px rgba(0, 40, 85, .1); transform: translateY(-2px); }
.prod-tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--band); margin-bottom: 8px; }
.prod-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-tile-cat { padding-inline: 18px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
html[lang="ar"] .prod-tile-cat { letter-spacing: 0; }
.prod-tile strong { padding-inline: 18px; font-size: 16px; line-height: 1.3; color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .prod-tile { transition: none; } .prod-tile:hover { transform: none; } }

/* Hidden anti spam checkbox in forms: invisible and takes no space (beats .form input width) */
.form input.hp-trap { position: absolute; width: 1px !important; height: 1px !important; padding: 0; border: 0; margin: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

/* Values */
.values { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.values li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; font-weight: 700; color: var(--navy); }

/* CTA band */
.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta p { margin: 10px 0 0; color: #c9d3de; }

/* Placeholder notes (draft only: remove before launch) */
.todo { display: inline-block; font-size: 12px; font-weight: 700; color: #7a4b00; background: #fff4dd; border: 1px dashed #e0a73a; border-radius: 4px; padding: 2px 8px; }
.ph-img { display: grid; place-items: center; text-align: center; padding: 16px; background: repeating-linear-gradient(135deg, var(--band) 0 12px, #f2f6f8 12px 24px); border: 1px dashed var(--field); border-radius: var(--radius-lg); color: var(--muted); font-size: 14px; min-height: 220px; }

/* Catalog */
.catalog { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; padding-block: 40px 72px; }
.filters { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 28px; }
.filter-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.filter-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: var(--radius); border: 0; background: none; text-align: start; font-size: 15px; color: var(--ink); width: 100%; }
.filter-opt[aria-pressed="true"] { background: var(--navy); color: #fff; }
.filter-opt:not([aria-pressed="true"]):hover { background: var(--band); }
.filters-toggle { display: none; flex: 1 1 100%; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 16px; min-height: 48px; font-weight: 700; color: var(--navy); }
.results { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.result-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.product-img { height: 180px; display: grid; place-items: center; background: var(--band); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img .icon { width: 56px; height: 56px; stroke-width: 1.3; }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.product-name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.product-spec { font-size: 14px; color: var(--muted); }
.avail { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.avail.order::before { background: var(--accent); }
.product .btn { margin-top: auto; min-height: 44px; padding: 10px 14px; font-size: 14px; }
.product .btn[aria-pressed="true"] { background: var(--green); color: #fff; }
.search { margin-top: 30px; width: min(100%, 440px); display: flex; align-items: center; gap: 10px; background: #fff; border-radius: var(--radius); padding: 0 16px; height: 52px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; font-size: 15px; color: var(--navy); min-width: 0; }
.search svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; }
.empty { border: 1px dashed var(--field); border-radius: 8px; padding: 32px; text-align: center; }
@media (max-width: 760px) {
  .filters-toggle { display: flex; }
  .filters { max-width: none; flex-basis: 100%; }
  .filters.closed { display: none; }
}

/* Forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); box-shadow: 0 10px 28px rgba(0, 40, 85, .06); }
.panel-orange { border: 2px solid var(--accent); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px 64px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea { height: 46px; border: 1px solid var(--field); border-radius: var(--radius); padding: 0 12px; font-size: 15px; background: #fff; color: var(--ink); width: 100%; }
.form textarea { height: auto; min-height: 120px; padding: 12px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.form .btn { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; }
.form-ok { display: flex; flex-direction: column; gap: 8px; }
.form-ok strong { font-family: var(--font-head); font-size: 26px; color: var(--navy); }
.form-err { background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.dark .panel { color: var(--ink); }
.dark .panel h2, .dark .panel h3 { color: var(--navy); }

/* Steps */
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.steps li { position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 24px; }
/* Arrow between consecutive steps, pointing to the next one (mirrored in Arabic, downwards when stacked) */
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -40px; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002855' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
}
html[dir="rtl"] .steps li:not(:last-child)::after { transform: scaleX(-1); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { top: auto; bottom: -40px; inset-inline-end: auto; inset-inline-start: 50%; margin: 0 0 0 -16px; transform: rotate(90deg); }
  html[dir="rtl"] .steps li:not(:last-child)::after { margin: 0 -16px 0 0; transform: rotate(90deg); }
}
.steps strong { display: block; font-size: 18px; color: #fff; }
.steps span { color: #c9d3de; font-size: 15px; }

/* About: team photo panel with caption */
.photo-panel { position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); display: flex; align-items: flex-end; padding: 28px; color: #fff; }
.photo-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.photo-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 20, 45, .45) 0%, rgba(0, 20, 45, .12) 28%, rgba(0, 20, 45, 0) 45%); }
.photo-panel strong { position: relative; z-index: 1; font-family: var(--font-head); font-size: 24px; line-height: 1.2; color: var(--primary); background: rgba(255, 255, 255, .94); padding: 10px 16px; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0, 20, 45, .2); }

/* About */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.facts div { background: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-family: var(--font-head); font-size: 24px; color: var(--navy); }
.facts span { font-size: 14px; color: var(--muted); }
.logos { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.logos .ph-img { min-height: 170px; font-size: 15px; }

/* Contact */
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.contact-list .label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.quick { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: border-color .15s; }
.quick a:hover { border-color: var(--primary); }
.quick strong { font-size: 17px; color: var(--navy); }
.quick span { font-size: 14px; color: var(--primary); }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; }

/* Footer */
.footer { background: var(--navy); color: #dbe4ea; }
.footer-top { padding-block: 64px 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.footer-top .logo img { height: 64px; }
.footer-tag { margin: 14px 0 0; font-size: 14px; color: #a9b8c4; max-width: 40ch; }
.footer-cols { width: 100%; max-width: 960px; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 24px; }
.footer-col { flex: 1 1 200px; max-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-col .title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.footer a, .footer .linkish { color: #dbe4ea; text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; }
.footer a:hover, .footer .linkish:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-block: 20px 28px; border-top: 1px solid rgba(141, 153, 166, .3); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 13px; color: var(--grey); }
.footer-bottom a, .footer-bottom .linkish { color: var(--grey); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; }

/* Quote drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 40, 85, .45); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(100%, 440px); background: #fff; z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 40, 85, .2); }
.drawer-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-head strong { font-size: 20px; color: var(--navy); }
.icon-btn { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--navy); min-width: 44px; min-height: 44px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 24px; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-item .name { flex: 1; font-size: 15px; font-weight: 600; color: var(--navy); }
.q-item input { width: 64px; height: 40px; border: 1px solid var(--field); border-radius: var(--radius); padding: 0 8px; }
.q-item button { background: none; border: 0; color: var(--error); font-size: 13px; min-height: 40px; }
.drawer .form { padding: 20px 24px; border-top: 1px solid var(--line); background: #f4f7f9; gap: 10px; }
.drawer .form .btn { align-self: stretch; }

/* Consent notice */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 50; max-width: 460px; background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 18px 48px rgba(0, 0, 0, .3); display: flex; flex-direction: column; gap: 12px; }
.consent h2 { color: #fff; font-size: 18px; }
.consent p { margin: 0; font-size: 14px; color: #c9d3de; }
.consent a { color: var(--sky); font-size: 14px; }
.consent .btn { align-self: flex-start; min-height: 44px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .biz-line { transition: none; }
}

/* Back to top */
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 20; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 20px; box-shadow: 0 8px 20px rgba(0, 40, 85, .25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
