/* ==========================================================================
   Future Vision Co. — styles
   Layout uses CSS logical properties, so Arabic (RTL) mirrors automatically.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --navy-900: #0e0f11;
  --navy-800: #17191c;
  --text: #17191c;
  --muted: #5f6670;
  --border: #e4e7eb;
  --border-strong: #cfd4da;
  --cyan: #1988da;
  --cyan-dark: #1470b5;
  --cyan-bright: #4aa3e8;
  --cyan-soft: #e8f2fc;
  --danger: #d92d20;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow: 0 8px 30px rgba(14, 15, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.35);

  --font-en: "Manrope", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Manrope", system-ui, "Segoe UI", Tahoma, sans-serif;

  --header-h: 80px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-ar);
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan-dark);
}

.container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--navy-800);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Icons ---------- */
.icon {
  display: inline-flex;
  flex: none;
  width: 20px;
  height: 20px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon svg {
  width: 100%;
  height: 100%;
}

[dir="rtl"] .icon-dir {
  transform: scaleX(-1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 6px 18px rgba(25, 136, 218, 0.3);
}

.btn-primary:hover {
  background: var(--cyan-dark);
}

.btn-dark {
  background: var(--navy-800);
  color: #fff;
}

.btn-dark:hover {
  background: #26292e;
}

.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--navy-800);
}

.btn-outline:hover {
  border-color: var(--navy-800);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--navy-800);
}

.btn-ghost.is-hidden {
  visibility: hidden;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Logo sits in the centre of the header, nav on one side, actions on the other */
.site-header .brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
}

/* Header wordmark image: "future vision" with the logo as the o */
.site-header .wordmark-img {
  display: block;
  width: auto;
  height: 32px;
}

@media (max-width: 479px) {
  .site-header .wordmark-img { height: 24px; }
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-800);
  white-space: nowrap;
}

.brand-text small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

html[lang="ar"] .brand-text small {
  font-size: 11.5px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--bg-soft);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  min-width: 250px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.dropdown a:hover {
  background: var(--bg-soft);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.lang-toggle {
  display: inline-flex;
  direction: ltr;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
}

.lang-toggle a,
.lang-toggle span {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.lang-toggle [aria-current] {
  background: var(--navy-800);
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--navy-800);
}

@media (max-width: 1179px) {
  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 16px 20px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 12px;
    font-size: 15px;
  }

  .nav-link .icon {
    display: none;
  }

  .dropdown,
  .has-dropdown:hover .dropdown {
    display: block;
    position: static;
    min-width: 0;
    padding: 0;
    padding-inline-start: 14px;
    border: 0;
    box-shadow: none;
  }

  .dropdown a {
    font-weight: 500;
    color: var(--muted);
  }

  .nav-cta {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 559px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 479px) {
  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 14px;
  }
}

/* ---------- Hero ---------- */
/* Blue band behind the top of a floating white card (like a press sheet on the bed) */
.hero {
  position: relative;
  background: var(--bg-soft);
  padding-top: 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background: #1988da;
}

.hero > .container {
  position: relative;
  padding-bottom: 48px;
}

.hero-card {
  position: relative;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 30px 70px -30px rgba(14, 15, 17, 0.35);
  padding: 48px;
  outline: none;
  display: grid;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  min-height: 420px;
}

.hero-media {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}

.hero-media img,
.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* Video grows when hovered (like Ömür) */
.hero-media {
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease, border-radius 0.6s ease;
  will-change: transform;
}

@media (hover: hover) and (min-width: 1024px) {
  .hero-media:hover {
    z-index: 2;
    transform: scale(1.1);
    border-radius: 8px;
    box-shadow: 0 30px 60px -20px rgba(14, 15, 17, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media { transition: none; }
  .hero-media:hover { transform: none; }
}

.hero-video {
  cursor: zoom-in;
}

.hero-expand {
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 15, 17, 0.72);
  color: #fff;
  cursor: pointer;
}

.hero-expand:hover {
  background: #1988da;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #000;
  animation: video-modal-in 0.35s ease both;
}

.video-modal[hidden] {
  display: none;
}

@keyframes video-modal-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

.video-modal-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.video-modal-close:hover {
  background: #1988da;
}

@media (prefers-reduced-motion: reduce) {
  .video-modal { animation: none; }
}

.hero-sound {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 15, 17, 0.72);
  color: #fff;
  cursor: pointer;
}

.hero-sound:hover {
  background: #1988da;
}

@media (max-width: 1023px) {
  .hero { padding-top: 24px; }
  .hero > .container { padding-bottom: 32px; }
  .hero::before { height: 320px; }
  .hero-card { padding: 20px; }
  .hero-slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
  }
  .hero-media img,
  .hero-media video {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  padding-inline-end: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.pill-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

html[lang="ar"] .pill-badge {
  font-size: 12px;
  letter-spacing: 0;
}

h1 {
  margin-block: 20px 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 .accent {
  color: var(--cyan);
}

html[lang="ar"] h1 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.lead {
  max-width: 54ch;
  font-size: 17px;
  color: var(--muted);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Label scroll ---------- */
.ls {
  padding-top: 96px;
  background: #fff;
}

.ls-head {
  margin-bottom: 0;
}

.ls-wrap {
  position: relative;
  height: 420vh;
}

.ls-pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.ls-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
}

.ls-stage svg {
  width: min(100%, 520px);
  max-height: 100%;
  height: auto;
  overflow: hidden;
}

.ls-stage g[id^="ls-sc"] {
  transition: opacity 0.45s ease;
}

.ls-panel {
  position: relative;
  max-width: 540px;
}

.ls-counter {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
}

.ls-num {
  font-size: 60px;
  line-height: 1;
  color: var(--text);
}

.ls-of {
  font-size: 20px;
  color: var(--border-strong);
}

.ls-bars {
  display: flex;
  gap: 8px;
  margin: 18px 0 32px;
}

.ls-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--border);
}

/* Filled with transform: scaleX (set by js/label-scroll.js), so it never triggers layout. */
.ls-bar i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
}

[dir="rtl"] .ls-bar i {
  transform-origin: right center;
}

.ls-texts {
  display: grid;
}

.ls-txt {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(24px);
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.ls-txt.is-on {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.ls-txt h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

html[lang="ar"] .ls-txt h3 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.ls-txt p {
  margin: 18px 0 24px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.ls-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.ls-steps li {
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.ls-steps li.is-on {
  background: var(--cyan);
  color: #fff;
}

/* Each chip is a button that jumps to its step (js/label-scroll.js). */
.ls-chip {
  display: block;
  padding: 6px 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ls-steps li:not(.is-on) .ls-chip:hover,
.ls-steps li:not(.is-on) .ls-chip:focus-visible {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.ls-chip:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

/* Scroll hint: one under each "Learn more" button, shown (via .is-hinting on #ls-wrap) while the section is pinned.
   ".ls-txt .ls-hint" outranks the ".ls-txt p" text rule. */
.ls-txt .ls-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ls-wrap.is-hinting .ls-txt .ls-hint {
  opacity: 1;
}

.ls-hint-mouse {
  position: relative;
  flex: none;
  width: 28px;
  height: 42px;
  border: 2px solid var(--cyan);
  border-radius: 14px;
}

.ls-hint-mouse::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: ls-hint-dot 1.6s ease-in-out infinite;
}

@keyframes ls-hint-dot {
  0% { opacity: 0; transform: translateY(-2px); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(15px); }
}

@media (prefers-reduced-motion: reduce) {
  .ls-wrap { height: 300vh; }
  .ls-txt { transform: none; transition: none; }
  .ls-stage g[id^="ls-sc"] { transition: none; }
  .ls-txt .ls-hint { transition: none; }
  .ls-hint-mouse::after { animation: none; }
}

@media (max-width: 899px) {
  .ls { padding-top: 64px; }
  .ls-wrap { height: 360vh; }
  .ls-pin {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 38% 62%;
    gap: 0;
    align-items: stretch;
  }
  .ls-stage svg { width: auto; height: 100%; max-width: 80%; }
  .ls-panel { align-self: start; padding-top: 8px; }
  .ls-num { font-size: 38px; }
  .ls-bars { margin: 10px 0 16px; }
  .ls-txt h3 { font-size: 1.6rem; }
  .ls-txt p { font-size: 15px; line-height: 1.65; margin: 10px 0 14px; }
  .ls-steps { margin-bottom: 16px; }
}

/* ---------- By the numbers (label roll) ---------- */
.nr {
  padding-block: 96px;
  background: #fff;
}

.nr-track {
  --web-h: 300px;
  display: flex;
  align-items: center;
}

.nr-roll {
  position: relative;
  z-index: 2;
  flex: none;
  margin-inline-end: -4px;
}

.nr-roll svg {
  display: block;
  width: auto;
  height: calc(var(--web-h) * 400 / 344); /* the roll body is as tall as the web */
  aspect-ratio: 240 / 400;
}

[dir="rtl"] .nr-roll svg {
  transform: scaleX(-1);
}

.nr-web {
  position: relative;
  flex: 1;
  min-width: 0;
  height: var(--web-h);
}

/* Liner: a continuous light strip along both edges with a row of very faint perforation dots */
.nr-strip {
  --perf: radial-gradient(circle, rgba(40, 60, 82, 0.13) 0 1.2px, transparent 1.7px);
  height: 100%;
  padding: 24px 12px;
  border-block: 1px solid #dbe3ec;
  background-color: #edf2f7;
  background-image: var(--perf), var(--perf);
  background-size: 14px 12px;
  background-position: left 0 top 6px, left 0 bottom 6px;
  background-repeat: repeat-x;
  box-shadow: 0 12px 28px rgba(14, 15, 17, 0.08);
}

.nr-labels {
  display: flex;
  gap: 8px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Die-cut label: white, rounded corners, thin gap to the next one */
.nr-label {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 20px 18px;
  border-radius: 14px;
  background: #fff;
  container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(23, 25, 28, 0.07), 0 2px 6px rgba(23, 25, 28, 0.06);
}

/* The caption shows as soon as the label is off the roll. The value waits faintly
   for its turn, then counts up (numbers) while fading to full colour. */
.nr-value {
  opacity: 0.25;
  transition: opacity 0.9s ease;
}

.nr-label.is-on .nr-value {
  opacity: 1;
}

.nr-value {
  position: relative;
  font-family: var(--font-en);
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.nr-value-text {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-size: min(1.85rem, 19cqi); /* the word always fits its label */
  line-height: 1.15;
  letter-spacing: -0.01em;
}

html[lang="ar"] .nr-value-text {
  font-family: var(--font-ar);
  font-weight: 700;
  letter-spacing: 0;
}

.nr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nr-cap {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: break-word;
}

/* Leading edge of the web as it comes off the roll */
.nr-front {
  position: absolute;
  top: -3px;
  bottom: -3px;
  inset-inline-start: -3px;
  width: 3px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(14, 15, 17, 0.22);
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .nr-value {
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 1023px) {
  .nr-track { --web-h: 250px; }
  .nr-strip { padding-inline: 10px; }
  .nr-labels { gap: 6px; }
  .nr-label { gap: 8px; padding: 14px 12px; border-radius: 12px; }
  .nr-value { font-size: 2rem; }
  .nr-value-text { font-size: 1.1rem; font-size: min(1.1rem, 19cqi); }
  html[lang="ar"] .nr-value-text { font-size: 1.15rem; } /* two words, so it can wrap */
  .nr-cap { font-size: 12.5px; hyphens: auto; } /* narrow labels in the horizontal layout */
}

/* Under 768px: roll on top, web runs downward, labels stacked */
@media (max-width: 767px) {
  .nr { padding-block: 64px; }
  .nr-track {
    flex-direction: column;
    align-items: stretch;
  }
  .nr-roll { margin: 0 0 -4px; }
  .nr-roll svg {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 240;
  }
  .nr-web {
    width: 86%; /* the roll body spans 344 of the 400-unit width */
    height: auto;
    margin-inline: auto;
  }
  .nr-strip {
    padding: 12px 24px;
    border-block: 0;
    border-inline: 1px solid #dbe3ec;
    background-size: 12px 14px;
    background-position: left 6px top 0, right 6px top 0;
    background-repeat: repeat-y;
  }
  .nr-labels { flex-direction: column; gap: 8px; }
  .nr-label {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 16px 18px;
  }
  .nr-value { flex: 0 0 3.4ch; font-size: 2.4rem; }
  .nr-value-text,
  html[lang="ar"] .nr-value-text { flex: 0 1 auto; min-width: 0; font-size: 1.3rem; }
  .nr-cap { font-size: 14px; hyphens: manual; }
  .nr-front {
    top: -3px;
    bottom: auto;
    inset-inline: -3px;
    width: auto;
    height: 3px;
  }
}

/* ---------- Client strip ---------- */
.clients {
  border-top: 1px solid var(--border);
  background: #fff;
}

.clients-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 22px;
}

.clients-label {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .clients-label {
  font-size: 13.5px;
  letter-spacing: 0;
}

.clients-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  direction: ltr; /* logos only, so the loop runs the same way in AR and EN */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-list {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: clients-scroll 40s linear infinite;
}

.clients-marquee:hover .clients-list,
.clients-marquee.is-offscreen .clients-list {
  animation-play-state: paused;
}

.client-logo {
  flex: none;
  padding-inline: 32px;
}

.client-logo img {
  display: block;
  height: calc(44px * var(--logo-scale, 1));
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.client-logo:hover img {
  filter: none;
  opacity: 1;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-list {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .client-logo[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 899px) {
  .clients-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .client-logo { padding-inline: 22px; }
  .client-logo img { height: calc(36px * var(--logo-scale, 1)); }
}

/* ---------- Sections ---------- */
.section {
  padding-block: 96px;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  margin-bottom: 40px;
}

.section-head-center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.section-head-center p:last-child {
  margin-top: 12px;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

html[lang="ar"] .eyebrow {
  font-size: 14px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

html[lang="ar"] h2 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

h3 {
  line-height: 1.3;
}

@media (max-width: 767px) {
  .section {
    padding-block: 64px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 32px, 1240px);
  }
}

/* ---------- Segmented control (tabs) ---------- */
.segmented {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.segmented button[aria-selected="true"] {
  background: var(--navy-800);
  color: #fff;
}

.segmented-center {
  display: flex;
  width: fit-content;
  margin: 0 auto 36px;
  background: #fff;
}

@media (max-width: 479px) {
  .segmented-center {
    flex-direction: column;
    width: 100%;
  }
}

/* ---------- Product explorer ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.card-body h3 {
  font-size: 17px;
  font-weight: 800;
}

.card-body > p {
  font-size: 14px;
  color: var(--muted);
}

.prop-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-soft);
}

[data-prop="waterproof"] { color: #1988da; }
[data-prop="freezer"] { color: #1988da; }
[data-prop="chemical"] { color: #d97706; }
[data-prop="food"] { color: #059669; }

.link-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.link-btn:hover {
  color: var(--navy-800);
}

.card-details {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.detail-label {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .detail-label {
  font-size: 12.5px;
  letter-spacing: 0;
}

.prop-list {
  display: grid;
  gap: 6px;
}

.prop-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.prop-list li span:last-child {
  color: var(--text);
}

.detail-note {
  font-size: 12.5px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cyan-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: #0f4f86;
}

.card-body .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend li span:last-child {
  color: var(--muted);
}

@media (max-width: 959px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ---------- Quote wizard (quote.html) ---------- */
.phone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.phone-list a:hover {
  color: var(--cyan-bright);
}

.wizard {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  color: var(--muted);
}

.step-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
}

.step-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.step-text small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[lang="ar"] .step-text small {
  font-size: 11.5px;
  letter-spacing: 0;
}

.step-text strong {
  font-size: 13px;
  font-weight: 700;
}

.stepper li.is-active {
  color: var(--text);
}

.stepper li.is-active .step-num {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

.stepper li.is-done .step-num {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.progress {
  height: 3px;
  background: var(--border);
}

.progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--cyan);
  transition: width 0.25s;
}

.wizard-form {
  padding: 24px 28px;
}

.step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.step legend {
  padding: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.hint {
  margin-block: 4px 18px;
  font-size: 14px;
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.option:hover {
  border-color: var(--border-strong);
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--navy-800);
  color: #fff;
}

.option strong {
  font-size: 15px;
  font-weight: 800;
}

.option small {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.option-check {
  display: none;
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
}

.option-check .icon {
  width: 12px;
  height: 12px;
}

.option.is-checked {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.option.is-checked .option-check {
  display: inline-flex;
}

.option:focus-within {
  border-color: var(--cyan-dark);
}

.option-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}

.option-wide .option-icon {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field label em {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background-color: #fff;
  font-size: 15px;
}

.field textarea {
  resize: vertical;
}

.field input[dir="ltr"] {
  text-align: start;
}

.field select {
  appearance: none;
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 12px center;
}

[dir="rtl"] .field select {
  background-position: left 12px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25, 136, 218, 0.2);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field-error {
  font-size: 12.5px;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

.upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--bg-soft);
  cursor: pointer;
}

.upload:hover,
.upload:focus-within {
  border-color: var(--cyan);
}

.upload > .icon {
  color: var(--cyan-dark);
}

.upload-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.upload-text strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.upload-text small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

.wizard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.step-count {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 56px 28px;
  text-align: center;
}

.success:focus {
  outline: none;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.success-icon .icon {
  width: 28px;
  height: 28px;
}

.success h3 {
  font-size: 20px;
  font-weight: 800;
}

.success p {
  color: var(--muted);
}

.success .btn {
  margin-top: 8px;
}

@media (max-width: 639px) {
  .stepper li {
    flex-direction: column;
    gap: 6px;
    padding: 12px 4px;
    text-align: center;
  }

  .step-text small {
    display: none;
  }

  .step-text strong {
    font-size: 11px;
  }

  .wizard-form {
    padding: 20px 16px;
  }
}

@media (max-width: 519px) {
  .option-grid,
  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-foot {
    flex-wrap: wrap;
  }

  .step-count {
    order: -1;
    width: 100%;
  }
}

/* ---------- Quote page (quote.html) ---------- */
.qp-intro {
  padding-block: 64px 28px;
  background: var(--bg-soft);
}

.qp-intro h1 {
  margin-block: 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.qp-lead {
  max-width: 60ch;
  font-size: 17px;
  color: var(--muted);
}

.qp-h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.qp-prep {
  padding-block: 12px 36px;
  background: var(--bg-soft);
}

.qp-prep-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.qp-prep-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.qp-prep-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.qp-wizard {
  padding-block: 0 80px;
  background: linear-gradient(var(--bg-soft) 50%, #fff 50%);
}

.qp-wizard .wizard {
  max-width: 880px;
  margin-inline: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.field-label {
  font-size: 13px;
  font-weight: 700;
}

.field-label em {
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

.field-help {
  font-size: 12.5px;
  color: var(--muted);
}

/* Step 2: material, finish and effects; the empty preview box sits beside them for a later task. */
.spec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.spec-options {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-group[hidden] {
  display: none;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.chip:hover span {
  border-color: var(--cyan);
}

.chip input:checked + span {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

/* Effects allow several choices, so they get a tick box. */
.chip input[type="checkbox"] + span::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-inline-end: 8px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: #fff no-repeat center / 12px;
}

.chip input[type="checkbox"]:checked + span::before {
  border-color: var(--cyan);
  background-color: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.field.is-invalid .chip span {
  border-color: var(--danger);
}

.qp-note {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 600;
}

.qp-summary {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--bg-soft);
}

.qp-summary h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}

.qp-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.qp-summary dl div {
  min-width: 0;
}

.qp-summary dt {
  font-size: 12px;
  color: var(--muted);
}

.qp-summary dd {
  font-size: 14px;
  font-weight: 600;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.qp-next {
  padding-block: 24px 32px;
}

.qp-next-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.qp-next-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.qp-next-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
}

.qp-next-list strong {
  font-size: 16px;
}

.qp-next-list span:last-child {
  font-size: 14px;
  color: var(--muted);
}

.qp-contact {
  padding-block: 32px 72px;
}

.qp-contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: var(--navy-800);
  color: #fff;
}

.qp-contact-text {
  flex: 1 1 260px;
  min-width: 0;
}

.qp-contact-card .muted {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.qp-contact-list {
  display: grid;
  gap: 10px;
}

.qp-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.qp-contact-list .icon {
  flex: none;
  color: var(--cyan-bright);
}

.qp-contact-list a:hover {
  color: var(--cyan-bright);
}

/* ---------- FAQ page (faq.html) ---------- */
/* Desktop: title + sticky contact card at the start, grouped questions at the end. Mobile: one column. */
.faq-page {
  --liner: #eef1f4;
  --liner-edge: #e0e5ea;
  padding-block: 56px 88px;
}

.faq-layout {
  display: grid;
  gap: 40px;
}

.faq-aside h1 {
  margin-block: 0 10px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.faq-sub {
  max-width: 36ch;
  font-size: 17px;
  color: var(--muted);
}

.faq-contact {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--cyan);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.faq-contact-title {
  margin-bottom: 14px;
  font-size: 17px;
}

.faq-contact-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.faq-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.faq-contact-list .icon {
  color: var(--cyan);
}

.faq-contact-list a:hover {
  color: var(--cyan-dark);
}

.faq-contact-btn {
  width: 100%;
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    align-items: start;
    gap: 56px;
  }

  .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* Groups */
.faq-groups {
  display: grid;
  gap: 36px;
}

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dark);
}

html[lang="ar"] .faq-group-title {
  font-size: 15px;
  letter-spacing: 0;
}

.faq-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.faq-list {
  display: grid;
  gap: 18px;
}

/* A question card is a label on its liner */
.faq-item {
  position: relative;
}

/* The liner, offset 3px behind the label */
.faq-item::before {
  content: "";
  position: absolute;
  inset-block: 3px -3px;
  inset-inline: 3px -3px;
  border: 1px solid var(--liner-edge);
  border-radius: 12px;
  background: var(--liner);
}

.faq-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover,
.faq-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 15, 17, 0.08);
}

/* Die-cut line, 6px in from the edge */
.faq-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1.5px dashed #d3d8de;
  border-radius: 7px;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.faq-item.is-open .faq-card::before {
  border-color: var(--cyan);
}

/* Peel: the top-end corner curls back to show the liner. Open: curl first, then the answer expands.
   Close: the answer collapses first, then the corner settles back. */
.faq-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block-start: -1px;
  inset-inline-end: -1px;
  width: 30px;
  height: 30px;
  border-start-end-radius: 12px;
  border-end-start-radius: 14px;
  background: linear-gradient(225deg, var(--liner) 0 50%, #d9e0e8 50%, #f8fafc 100%);
  box-shadow: -3px 3px 6px rgba(14, 15, 17, 0.14);
  transform: scale(0);
  transform-origin: top right;
  pointer-events: none;
  transition: transform 0.25s ease-in 0.32s;
}

html[dir="rtl"] .faq-card::after {
  background: linear-gradient(135deg, var(--liner) 0 50%, #d9e0e8 50%, #f8fafc 100%);
  box-shadow: 3px 3px 6px rgba(14, 15, 17, 0.14);
  transform-origin: top left;
}

.faq-item.is-open .faq-card::after {
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.faq-h {
  font-size: inherit;
}

.faq-q {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-block: 20px;
  padding-inline: 58px 40px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
}

.faq-q:hover {
  color: var(--cyan-dark);
}

.faq-q:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 3px;
}

.faq-q-text {
  flex: 1;
  min-width: 0;
}

/* Blue tab with the group icon, on the start edge */
.faq-tab {
  position: absolute;
  inset-inline-start: -1px;
  inset-block-start: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 40px;
  border-start-end-radius: 8px;
  border-end-end-radius: 8px;
  background: var(--cyan);
  color: #fff;
  transform: translateY(-50%);
}

.faq-tab svg {
  width: 18px;
  height: 18px;
}

.faq-chevron {
  display: inline-flex;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--cyan-dark);
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

/* Answer: smooth height via grid rows. Closed styles apply only once the page script is running. */
.faq-panel {
  display: grid;
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-ready .faq-panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.32s ease, visibility 0s linear 0.32s;
}

.faq-ready .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.36s ease 0.4s, visibility 0s linear 0s;
}

.faq-answer {
  padding-block: 0 22px;
  padding-inline: 58px 28px;
  color: var(--muted);
  line-height: 1.7;
}

/* Visual answers */
.faq-visual {
  margin-top: 14px;
}

.faq-chips,
.faq-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cyan-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.faq-badge svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.faq-timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 18px;
}

.faq-tl-start {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.faq-tl-start svg {
  width: 15px;
  height: 15px;
}

.faq-tl {
  position: relative;
  display: flex;
  flex: 1 1 240px;
  padding-top: 8px;
}

/* The line runs from the "approved" chip through the four day dots */
.faq-tl::before {
  content: "";
  position: absolute;
  inset-block-start: 13px;
  inset-inline: -18px 12.5%;
  height: 2px;
  background: var(--cyan);
}

.faq-tl li {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.faq-tl li::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: #fff;
}

.faq-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.faq-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 14px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.faq-type svg {
  width: 28px;
  height: 28px;
  color: var(--cyan);
}

.faq-type:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.faq-type:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

@media (max-width: 479px) {
  .faq-page {
    padding-block: 36px 64px;
  }

  .faq-q {
    padding-block: 16px;
    padding-inline: 50px 38px;
    font-size: 15.5px;
  }

  .faq-answer {
    padding-inline: 20px;
  }

  /* The day dots wrap under the "approved" chip here, so the line starts at the first dot */
  .faq-tl::before {
    inset-inline-start: 12.5%;
  }

  .faq-types {
    gap: 8px;
  }
}

/* Reduced motion: no peel, no transitions; answers open and close instantly. */
@media (prefers-reduced-motion: reduce) {
  .faq-card,
  .faq-card::before,
  .faq-chevron,
  .faq-type,
  .faq-ready .faq-panel,
  .faq-ready .faq-item.is-open .faq-panel {
    transition: none;
  }

  .faq-card::after {
    display: none;
  }
}

/* ---------- Label size calculator (label-calculator.html) ---------- */
.calc-section {
  padding-block: 0 80px;
  background: linear-gradient(var(--bg-soft) 120px, #fff 120px);
}

/* Mobile: form, diagram, result. Desktop: form and result at the start, diagram beside them. */
.calc-layout {
  display: grid;
  grid-template-areas: "form" "diagram" "result";
  gap: 20px;
}

.calc-form { grid-area: form; }
.calc-diagram { grid-area: diagram; }
.calc-result { grid-area: result; }

@media (min-width: 960px) {
  .calc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "form diagram" "result diagram";
    align-items: start;
  }

  .calc-diagram {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.calc-card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.calc-modes {
  display: flex;
  width: 100%;
  margin-bottom: 14px;
}

.calc-modes button {
  flex: 1;
  white-space: normal;
}

.calc-modes button[aria-pressed="true"] {
  background: var(--navy-800);
  color: #fff;
}

.calc-modes button:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

.calc-iml {
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.calc-iml a {
  font-weight: 700;
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* How to measure a label: three numbered steps above the width and height fields */
.calc-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: calc-step;
}

.calc-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  counter-increment: calc-step;
}

.calc-steps li::before {
  content: counter(calc-step);
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cyan-soft);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan-dark);
}

[data-calc-panel="measure"] .calc-cta {
  margin-top: 16px;
}

/* Diagram, in the label-scroll style: soft greys, blue label, dark arrows */
/* The drawing and its measurements read left to right in both languages ("120 mm", not "mm 120"). */
.calc-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  direction: ltr;
  font-family: var(--font-en);
}

.calc-scene {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.calc-scene.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.calc-bottle {
  fill: #f4f7fa;
  stroke: #b8c4cf;
  stroke-width: 1.5;
}

.calc-cap {
  fill: var(--cyan);
}

.calc-band {
  fill: rgba(25, 136, 218, 0.16);
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.calc-tube {
  fill: none;
  stroke: #9fb0c2;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.calc-strip {
  fill: rgba(25, 136, 218, 0.1);
  stroke: var(--cyan);
  stroke-width: 1.5;
}

.calc-fold {
  stroke: var(--cyan);
  stroke-width: 1;
  opacity: 0.5;
}

.calc-dim line {
  stroke: #5f6670;
  stroke-width: 1.2;
}

.calc-dim .calc-tick {
  stroke: #9aa3ad;
}

/* The dimension being typed is highlighted (shrink calculator: largest diameter, height) */
.calc-dim.is-focus line,
.calc-dim.is-focus .calc-tick {
  stroke: var(--cyan);
  stroke-width: 2;
}

.calc-dim.is-focus text {
  fill: var(--cyan-dark);
}

.calc-dim text,
.calc-caption {
  font-size: 12px;
  font-weight: 700;
  fill: var(--text);
}

.calc-caption {
  font-family: var(--font-ar);
  font-weight: 600;
  fill: var(--muted);
}

html[lang="en"] .calc-caption {
  font-family: var(--font-en);
}

/* Before valid numbers: the label is drawn as a dashed outline */
.calc-layout.is-empty .calc-band,
.calc-layout.is-empty .calc-strip {
  fill: none;
  stroke: #c9d2db;
  stroke-dasharray: 4 4;
}

/* Result */
.calc-result-title {
  margin-bottom: 12px;
  font-size: 17px;
}

.calc-empty {
  color: var(--muted);
}

.calc-output {
  display: grid;
  gap: 8px;
}

.calc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  color: var(--muted);
}

.calc-row strong {
  color: var(--text);
}

.calc-big {
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.calc-note {
  margin-block: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.calc-cta {
  width: 100%;
  white-space: normal;
}

.calc-cta[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* quote.html step 2: link to the calculator */
.qp-calc-link {
  margin-top: -6px;
  font-size: 13.5px;
}

.qp-calc-link a {
  font-weight: 700;
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 479px) {
  .calc-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calc-scene,
  .calc-scene.is-on {
    transition: none;
  }
}

/* ---------- Home: Our services (index.html #products) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.svc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.svc-card:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 3px;
}

.svc-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.svc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-media img {
  transform: scale(1.04);
}

.svc-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.svc-card-body h3 {
  font-size: 1.25rem;
}

.svc-card-body p {
  flex: 1;
  color: var(--muted);
  line-height: 1.65;
}

.svc-card-btn {
  align-self: flex-start;
}

/* The arrow nudges 4px towards the reading direction ("translate" runs before the RTL flip in .icon-dir). */
.svc-card-btn .icon {
  transition: translate 0.2s ease;
}

.svc-card:hover .svc-card-btn .icon,
.svc-card-btn:focus-visible .icon {
  translate: 4px 0;
}

[dir="rtl"] .svc-card:hover .svc-card-btn .icon,
[dir="rtl"] .svc-card-btn:focus-visible .icon {
  translate: -4px 0;
}

@media (max-width: 899px) {
  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }
}

/* ---------- Service pages (adhesive-labels.html, shrink-sleeves.html, iml-labels.html) ---------- */
.svc-hero {
  padding-block: 56px 48px;
  background: var(--bg-soft);
}

.svc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.svc-hero h1 {
  margin-block: 8px 14px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.svc-lead {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
}

.svc-hero-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.svc-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shrink sleeve photo (16:9) in the home showcase, card and hero: keep the bottles and their wordmark centred. */
.svc-show .svc-img-shrink,
.svc-card-media .svc-img-shrink,
.svc-hero-media .svc-img-shrink {
  object-position: 30% 50%;
}

.svc-facts-band {
  border-block: 1px solid var(--border);
  background: #fff;
}

.svc-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-block: 22px;
}

.svc-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.svc-fact-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.svc-fact-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.svc-facts strong {
  display: block;
  font-size: 15.5px;
  line-height: 1.4;
}

.svc-section {
  padding-block: 56px 0;
}

.svc-h2 {
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

/* Material / finish selector (js/material-preview.js): chips (a tablist) above one full-width panel */
.svc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.svc-chip {
  min-height: 44px;
  padding: 8px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.svc-chip:hover {
  border-color: var(--cyan);
}

.svc-chip[aria-selected="true"] {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.svc-chip:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

/* Details at the start, the preview on the other side (the grid mirrors itself in RTL). */
.svc-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 20px;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}

.svc-panel-name {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 800;
}

.svc-panel-desc {
  max-width: 52ch;
  margin-top: 8px;
  color: var(--muted);
}

/* Key properties: short qualitative tags as outlined pills (no figures). */
.svc-panel-props {
  margin-top: 24px;
}

.svc-props {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-prop {
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.svc-panel-best {
  margin-top: 22px;
}

.svc-panel-label {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 13px;
  font-weight: 600;
}

/* The closing "and many other uses" reads as a continuation of the list, not another tag. */
.svc-tags .svc-tag:last-child:not(:first-child) {
  padding-inline: 4px;
  background: none;
  color: var(--muted);
}

.svc-panel-cta {
  margin-top: 28px;
}

.material-preview.svc-preview {
  width: 100%;
  max-width: 380px;
  height: 340px;
  margin-inline: auto;
  border: 0;
  background: var(--bg-soft);
}

/* Crossfade: the new preview layer fades in over the old one, which fades out. */
.svc-preview .mp-stage {
  position: relative;
}

.mp-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

.mp-layer.is-in,
.mp-layer.is-out {
  opacity: 0;
}

/* Home closing band: follows "How we work" directly, so no gap above it */
.svc-cta.home-cta {
  margin-top: 0;
}

/* Gallery page: the grid sits right under the intro */
.gallery-section {
  padding-block: 48px 0;
}

.svc-note {
  max-width: 60ch;
}

.svc-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.svc-industries li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.svc-industries .icon {
  color: var(--cyan);
}

/* The closing "and many other uses": no pill, so it reads as the end of the list. */
.svc-industries .svc-ind-more {
  padding-inline: 4px;
  border-color: transparent;
  background: none;
  font-weight: 600;
  color: var(--muted);
}

.svc-faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.svc-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.svc-faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
}

.svc-faq-item summary:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

.svc-faq-item p {
  padding: 0 20px 18px;
  line-height: 1.7;
  color: var(--muted);
}

.svc-more,
.svc-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svc-more {
  margin-top: 16px;
}

.svc-cta {
  margin-top: 72px;
  padding-block: 56px;
  background: var(--navy-800);
  color: #fff;
}

.svc-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.svc-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.svc-cta .svc-actions {
  margin-top: 0;
}

.svc-cta .svc-cta-link {
  color: #fff;
}

@media (max-width: 899px) {
  .svc-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .svc-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Chips scroll sideways in one row; then the preview, then the details. */
  .svc-chips {
    flex-wrap: nowrap;
    margin-inline: -24px;
    padding: 2px 24px 6px;
    overflow-x: auto;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
  }

  .svc-chips::-webkit-scrollbar {
    display: none;
  }

  .svc-chip {
    flex: none;
  }

  .svc-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-panel .svc-preview {
    order: -1;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card-media img,
  .svc-card-btn .icon,
  .svc-chip,
  .mp-layer {
    transition: none;
  }
}

/* Material / effect preview (js/material-preview.js). Fixed size, so the form never jumps. */
.material-preview {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 260px;
  height: 300px;
  padding: 12px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.mp-stage {
  flex: 1;
  min-height: 0;
}

.mp-stage svg {
  display: block;
  width: 100%;
  height: 100%;
}

[dir="rtl"] .mp-stage svg {
  transform: scaleX(-1);
}

.mp-caption {
  flex: none;
  height: 6em; /* four lines */
  margin-top: 8px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}

.material-preview.is-empty .mp-caption {
  color: var(--muted);
}

.mp-apply {
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: mp-apply 1.1s cubic-bezier(0.22, 0.8, 0.24, 1) 0.15s both;
}

.mp-shine {
  animation: mp-sweep 1s ease-in-out both;
}

.mp-film {
  animation: mp-film 0.9s ease 1.2s both;
}

.mp-edge {
  animation: mp-out 1s ease 1.3s both;
}

.mp-drop {
  animation: mp-drop 0.8s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}

.mp-shrink {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: mp-shrink 1.1s cubic-bezier(0.22, 0.8, 0.24, 1) 1s both;
}

.mp-glow {
  animation: mp-glow 1.4s ease 0.9s both;
}

.mp-steam {
  animation: mp-steam 1.2s ease-out both;
}

.mp-in {
  animation: mp-in 0.6s ease 0.3s both;
}

.mp-raise {
  animation: mp-raise 0.6s ease 0.3s both;
}

/* Paper: a small tear spreads in from the label's edge after it is applied (transform + opacity only) */
.mp-tear {
  transform-box: fill-box;
  transform-origin: 100% 50%;
  animation: mp-tear 0.6s cubic-bezier(0.3, 0.7, 0.2, 1) 1.35s both;
}

.mp-fibres {
  animation: mp-fade 0.4s ease 1.8s both;
}

@keyframes mp-tear {
  0% { opacity: 0; transform: scaleX(0); }
  25% { opacity: 1; }
  100% { opacity: 1; transform: scaleX(1); }
}

@keyframes mp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mp-apply {
  0% { opacity: 0; transform: translate(42px, -6px) rotate(10deg); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}

@keyframes mp-sweep {
  0% { opacity: 0; transform: translateX(0); }
  20%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--dx, 130px)); }
}

@keyframes mp-film {
  from { fill-opacity: 0.85; }
  to { fill-opacity: 0.12; }
}

@keyframes mp-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes mp-drop {
  from { transform: translateY(-150px); }
  to { transform: none; }
}

@keyframes mp-shrink {
  from { transform: scale(1.28, 1.03); }
  to { transform: none; }
}

@keyframes mp-glow {
  0% { opacity: 0; }
  40% { opacity: 0.85; }
  100% { opacity: 0; }
}

@keyframes mp-steam {
  0% { opacity: 0; transform: none; }
  30% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-34px); }
}

@keyframes mp-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes mp-raise {
  to { transform: translateY(-1.5px); }
}

/* Reduced motion: jump straight to the last frame. */
@media (prefers-reduced-motion: reduce) {
  .mp-stage * {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
}

@media (max-width: 639px) {
  .material-preview {
    width: 100%;
    height: 290px;
  }
}

@media (max-width: 899px) {
  .qp-prep-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qp-next-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .qp-intro {
    padding-block: 40px 20px;
  }

  .qp-wizard {
    padding-bottom: 56px;
  }

  .spec-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .qp-summary dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .qp-contact-card {
    padding: 22px 20px;
  }
}

@media (max-width: 519px) {
  /* Label type options become compact rows on phones. */
  .qp-wizard .option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding-inline-end: 40px;
  }

  .qp-wizard .option-icon {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .qp-prep-list li {
    padding: 12px;
    font-size: 13.5px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 64px;
  background: var(--navy-900);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
}

.footer-wordmark {
  display: inline-flex;
}

.footer-wordmark img {
  width: 206px;
  height: auto;
}

.footer-brand p {
  max-width: 42ch;
  margin-top: 14px;
  line-height: 1.75;
}

.site-footer h4 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

html[lang="ar"] .site-footer h4 {
  font-size: 15px;
  letter-spacing: 0;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.site-footer a:hover {
  color: #fff;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-list .icon {
  margin-top: 4px;
  color: var(--cyan-bright);
}

.contact-list li > div {
  flex: 1;
  min-width: 0;
}

.footer-address address {
  font-style: normal;
  line-height: 1.6;
  color: #fff;
}

.footer-address a {
  display: inline-block;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 404 page (404.html) ---------- */
.nf-page {
  padding-block: 96px 120px;
  text-align: center;
}

.nf-code {
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
}

.nf-page h1 {
  margin-block: 12px 32px;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hours-title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: #fff;
}

.hours {
  display: grid;
  gap: 4px;
}

.hours div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
}

.hours dt,
.hours dd {
  margin: 0;
}

.hours dd {
  font-weight: 600;
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  color: #fff;
  transition: background-color 0.15s, border-color 0.15s;
}

.social a:hover {
  border-color: var(--cyan);
  background: var(--cyan);
}

@media (max-width: 959px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- Floating WhatsApp button (only rendered when WHATSAPP_NUMBER is set) ---------- */
.wa-float {
  position: fixed;
  inset-block-end: max(20px, env(safe-area-inset-bottom));
  inset-inline-end: 20px;
  z-index: 40; /* below the header (50), so the open mobile menu stays on top */
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 15, 17, 0.22);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float:focus-visible {
  outline: 3px solid var(--cyan-dark);
  outline-offset: 3px;
}

.wa-float.is-tucked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

@media (max-width: 519px) {
  .wa-float {
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    inset-inline-end: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }

  .wa-float:hover,
  .wa-float.is-tucked {
    transform: none;
  }
}

@media print {
  .wa-float {
    display: none;
  }
}

/* ---------- Header: the secondary CTA ("Get a quote" beside "Order now") ---------- */
/* Shown beside the primary button on wide screens; below that it lives in the menu (.nav-cta). */
@media (max-width: 1179px) {
  .header-cta-secondary {
    display: none;
  }
}

/* ---------- Order page (order.html) ---------- */
/* One centred column: the price is shown only in the review step, not beside the wizard. */
.op-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.op .qp-wizard .wizard,
.op-layout .wizard {
  max-width: none;
  margin-inline: 0;
}

.op-layout .wizard {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}

.op-stepper {
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
}

.op-shrink-note {
  margin-top: 16px;
  font-size: 14px;
}

.op-shrink-note a {
  color: var(--cyan-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Step 2: size fields beside a to-scale drawing */
/* Step 2: five shape tiles (native radios, so arrow keys move between them) */
.op-shapes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.op-shape {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.op-shape input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.op-shape-ico {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #8a96a3;
  stroke-width: 2;
}

.op-shape:hover {
  border-color: var(--cyan);
}

.op-shape:has(input:checked) {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.op-shape:has(input:checked) .op-shape-ico {
  fill: rgba(25, 136, 218, 0.12);
  stroke: var(--cyan);
}

.op-shape:has(input:focus-visible) {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

/* Size: the two fields and the popular sizes, with the live drawing beside them */
.op-size {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.op-size-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
}

/* Custom size: no drawing (the shape is unknown), the fields take the full width */
.op-size:has(> .op-size-preview[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

/* Popular sizes: a compact row of chips that fill both fields */
.op-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-preset {
  position: relative;
  cursor: pointer;
}

.op-preset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.op-preset span {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-en);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background-color 0.15s;
}

.op-preset:hover span {
  border-color: var(--cyan);
}

.op-preset input:checked + span {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.op-preset input:focus-visible + span {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

.op-size-preview {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.op-size-preview svg {
  direction: ltr;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 264 / 180;
}

.op-size-preview figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 599px) {
  .op-shapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Step 4: quantity stepper */
.op-qty-field {
  max-width: 340px;
}

.op-qty {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.field .op-qty input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-family: var(--font-en);
  font-weight: 700;
}

.op-qty-btn {
  flex: none;
  width: 48px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: #fff;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-800);
}

.op-qty-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan-dark);
}

.op-qty-note:empty {
  display: none;
}

.op-qty-note {
  color: var(--cyan-dark);
  font-weight: 600;
}

/* Step 6: price breakdown, payment and confirmation */
/* The only place the price is shown: a clear summary in the review step */
.op-breakdown {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1.5px solid var(--cyan);
  border-radius: var(--r-lg);
  background: var(--cyan-soft);
}

.op-breakdown h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 800;
}

.op-breakdown dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
}

.op-breakdown dt {
  font-size: 13.5px;
  color: var(--muted);
}

.op-breakdown dd {
  flex: none;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  unicode-bidi: isolate;
}

.op-breakdown .op-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(25, 136, 218, 0.3);
}

.op-breakdown .op-total dt {
  font-weight: 700;
  color: var(--text);
}

.op-breakdown .op-total dd {
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan-dark);
}

[data-group="payment_method"] {
  margin-top: 20px;
}

.op-pay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.op-pay-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.op-pay-option input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--cyan);
}

.op-pay-option:has(input:checked) {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.op-pay-option:focus-within {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

.op-pay-option.is-disabled {
  background: var(--bg-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.op-soon {
  margin-inline-start: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.field.is-invalid .op-pay-option:not(.is-disabled) {
  border-color: var(--danger);
}

.op-terms {
  margin-top: 16px;
}

.op-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.op-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

@media (max-width: 959px) {
  .op-size {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Mobile: the drawing above the fields */
  .op-size-preview {
    order: -1;
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 519px) {
  .op-pay {
    grid-template-columns: minmax(0, 1fr);
  }

  .op-qty-field {
    max-width: none;
  }
}

/* Six steps don't fit with their names on narrow screens; the step heading names each one. */
@media (max-width: 899px) {
  .op-stepper .step-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-shape,
  .op-preset span,
  .op-pay-option,
  .op-qty-btn {
    transition: none;
  }
}

/* ---------- Home services: sticky scroll showcase ----------
   Desktop: the image frame stays in view, centred under the header, while the three services scroll past;
   js/main.js marks the service at the viewport centre .is-active, which picks the image and dims the other
   texts. Under 960px: no frame, each service is a card with its own image on top. */
/* The columns stretch to the same height (grid default), so the sticky frame has the whole list to travel along. */
.svc-show {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(56px, 7vw, 112px);
  margin-top: clamp(24px, 4vw, 56px);
}

/* A viewport-tall sticky box that centres the frame and counter in the space under the header. */
.svc-show-sticky {
  position: sticky;
  top: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - var(--header-h));
}

/* Exactly 4:3, as wide as the column but never taller than the space left for it. */
.svc-show-plate {
  width: min(100%, calc((100vh - var(--header-h) - 160px) * 4 / 3));
}

.svc-show-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: #e9edf1;
  box-shadow:
    0 1px 2px rgba(14, 15, 17, 0.06),
    0 24px 48px -28px rgba(14, 15, 17, 0.35);
}

/* Neutral hairline over the image edge, so it doesn't blur into the background. */
.svc-show-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 17, 0.08);
  pointer-events: none;
}

/* Crossfade: all images stacked exactly on the frame; only opacity changes, so sizes never jump. */
.svc-show-img {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.svc-show-img.is-active {
  opacity: 1;
}

.svc-show-img img,
.svc-show-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-show-media picture {
  display: block;
  height: 100%;
}

.svc-show-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.svc-show-count {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.svc-show-count span {
  color: var(--text);
}

.svc-show-bars {
  display: flex;
  flex: 0 0 132px;
  gap: 6px;
}

.svc-show-bars i {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--border-strong);
}

.svc-show-bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}

[dir="rtl"] .svc-show-bars i::after {
  transform-origin: right center;
}

.svc-show-bars i.is-on::after {
  transform: none;
}

/* Each service is a tall block, so only one sits at the viewport centre at a time. The space after the
   last one keeps the frame pinned (and centred) until that service has reached the centre too. */
.svc-show-list {
  padding-bottom: 14vh;
}

.svc-show-item {
  display: flex;
  align-items: center;
  min-height: 80vh;
}

.svc-show-media {
  display: none;
}

.svc-show-text {
  width: 100%;
  transition: opacity 0.45s ease;
}

.svc-show-item:not(.is-active) .svc-show-text {
  opacity: 0.28;
}

.svc-show-text h3 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[lang="ar"] .svc-show-text h3 {
  line-height: 1.25;
  letter-spacing: 0;
}

.svc-show-desc {
  max-width: 42ch;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* Spec sheet: label and value rows between hairlines, like the spec block on a print job sheet. */
.svc-spec {
  max-width: 34rem;
  margin: 30px 0 0;
  border-top: 1px solid var(--border);
}

.svc-spec-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

.svc-spec dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.svc-spec dd {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}

.svc-show-text .svc-row-actions {
  margin-top: 32px;
}

/* Under 960px: no sticky frame; each service is a card, image flush at the top, text below. */
@media (max-width: 959px) {
  .svc-show {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .svc-show-aside {
    display: none;
  }

  .svc-show-list {
    display: grid;
    gap: 24px;
    padding-bottom: 0;
  }

  .svc-show-item {
    display: block;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow:
      0 1px 2px rgba(14, 15, 17, 0.04),
      0 12px 32px -20px rgba(14, 15, 17, 0.18);
  }

  .svc-show-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #e9edf1;
  }

  .svc-show-text {
    padding: 24px;
  }

  .svc-show-item:not(.is-active) .svc-show-text {
    opacity: 1;
  }

  .svc-show-text h3 {
    font-size: clamp(1.9rem, 7vw, 2.4rem);
  }

  .svc-show-desc {
    margin-top: 14px;
    font-size: 16px;
  }

  .svc-spec {
    margin-top: 22px;
  }

  .svc-spec-row {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 12px;
    padding-block: 12px;
  }

  .svc-show-text .svc-row-actions {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-show-img,
  .svc-show-bars i::after,
  .svc-show-text {
    transition: none;
  }
}

.svc-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.svc-row-link {
  font-weight: 700;
  color: var(--cyan-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.svc-row-link:hover {
  color: var(--cyan);
}

/* ---------- Home: how we work, a production line from artwork to delivery ----------
   Four steps on one track. Each step's connector is a grey rail (::before) with the blue line (::after)
   drawn over it. Finished state is the default (no JS, reduced motion, after playing). With JS and motion,
   the list starts unlit; .has-revealed (shared reveal, js/main.js) then draws each connector in turn and
   lights each step as the line reaches it. Only transform and opacity animate. */
.how {
  background-color: #f3f6f9;
  /* A faint dot grid, like the registration grid of a print sheet */
  background-image: radial-gradient(rgba(25, 136, 218, 0.14) 1px, transparent 1.3px);
  background-position: center;
  background-size: 22px 22px;
}

.how-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Strokes stay exactly 2px at any icon size (the <use> copies take these styles). */
.how-sprite path,
.how-sprite rect,
.how-sprite circle {
  vector-effect: non-scaling-stroke;
}

.how-steps {
  --how-icon: 68px;
  --how-gap: 32px;
  --how-seg: 0.53s;              /* one connector; three of them make the ~1.6s line */
  --how-line-off: scaleX(0);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--how-gap);
}

.how-step {
  position: relative;
}

.how-step:not(:last-child)::before,
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--how-icon) / 2 - 1px);
  inset-inline-start: calc(var(--how-icon) + 12px);
  width: calc(100% + var(--how-gap) - var(--how-icon) - 24px);
  height: 2px;
  border-radius: 1px;
}

.how-step:not(:last-child)::before {
  background: var(--border-strong);
}

.how-step:not(:last-child)::after {
  background: var(--cyan);
  transform-origin: left center;
}

[dir="rtl"] .how-step:not(:last-child)::after {
  transform-origin: right center;
}

/* Icon plate: grey drawing underneath, blue drawing and a blue ring on top (faded in when lit). */
.how-icon {
  position: relative;
  display: block;
  width: var(--how-icon);
  height: var(--how-icon);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(14, 15, 17, 0.05),
    0 10px 24px -14px rgba(14, 15, 17, 0.25);
}

.how-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(25, 136, 218, 0.45);
}

.how-ico {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  --ico-fill: #fff;
}

.how-ico-off {
  --ico-a: #aab4be;
  --ico-b: #cfd6dd;
}

.how-ico-on {
  --ico-a: var(--cyan);
  --ico-b: #9aa5b0;
}

/* Inline-block, so it sits on the start side of its column even though its own direction is LTR. */
.how-index {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #8a929c;
}

.how-step h3 {
  margin-top: 6px;
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.how-step p {
  max-width: 30ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* End of the track: lead time and the order button */
.how-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  margin-top: 64px;
}

.how-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.how-badge::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* The one-shot timeline: unlit until .has-revealed, then connector i draws during
   [i × seg, (i + 1) × seg] and step i lights at i × seg, so each lights as the line arrives. */
@media (prefers-reduced-motion: no-preference) {
  html.js .how-steps .how-step::after {
    transition: transform var(--how-seg) linear calc(var(--i) * var(--how-seg));
  }

  html.js .how-steps .how-icon {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * var(--how-seg));
  }

  html.js .how-steps .how-ico-on,
  html.js .how-steps .how-icon::after {
    transition: opacity 0.45s ease calc(var(--i) * var(--how-seg));
  }

  html.js .how-steps:not(.has-revealed) .how-step::after {
    transform: var(--how-line-off);
  }

  html.js .how-steps:not(.has-revealed) .how-icon {
    transform: scale(0.96);
  }

  html.js .how-steps:not(.has-revealed) .how-ico-on,
  html.js .how-steps:not(.has-revealed) .how-icon::after {
    opacity: 0;
  }
}

/* Under 768px: a vertical track on the start side; steps stacked, the line drawing downwards. */
@media (max-width: 767px) {
  .how-steps {
    --how-icon: 56px;
    --how-gap: 36px;
    --how-line-off: scaleY(0);
    grid-template-columns: minmax(0, 1fr);
  }

  .how-step {
    display: grid;
    grid-template-columns: var(--how-icon) minmax(0, 1fr);
    column-gap: 20px;
    align-content: start;
  }

  .how-icon {
    grid-row: 1 / span 3;
    border-radius: 16px;
  }

  .how-ico {
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
  }

  .how-index {
    justify-self: start;
    margin-top: 2px;
  }

  .how-step:not(:last-child)::before,
  .how-step:not(:last-child)::after {
    top: calc(var(--how-icon) + 10px);
    bottom: calc(10px - var(--how-gap));
    inset-inline-start: calc(var(--how-icon) / 2 - 1px);
    width: 2px;
    height: auto;
  }

  [dir] .how-step:not(:last-child)::after {
    transform-origin: center top;
  }

  .how-end {
    margin-top: 44px;
  }
}

/* ---------- Home: short FAQ (cards and accordion from the FAQ page) ---------- */
.home-faq {
  --liner: #eef1f4;
  --liner-edge: #e0e5ea;
}

.home-faq-inner {
  max-width: 820px;
}

.home-faq-more {
  margin-top: 12px;
  text-align: center;
}

/* ---------- Scroll reveal (initReveal() in js/main.js, every page) ----------
   data-reveal fades in and rises 16px; data-reveal="image" fades in and settles from scale 1.04.
   Only opacity and transform animate. Hidden only under html.js (set in <head>) and only when
   motion is allowed; main.js sets will-change only while an element is animating. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  }

  html.js [data-reveal="image"] {
    transform: scale(1.04);
  }

  html.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  /* A trigger only: the block plays its own animation from .has-revealed (e.g. .how-steps). */
  html.js [data-reveal="timeline"] {
    opacity: 1;
    transform: none;
  }
}

/* Printing: show everything that has not been scrolled to yet. */
@media print {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   IML page: facts (4), benefit cards, timeline, single material card, containers
   ========================================================================== */
.svc-facts.svc-facts-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.iml-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.iml-card,
.ind-card {
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 15, 17, 0.04);
}

.iml-card {
  padding: 26px 24px 28px;
  border-radius: var(--r-md);
}

.iml-card-ico,
.ind-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.iml-ico,
.ind-ico {
  width: 30px;
  height: 30px;
}

.iml-card h3 {
  margin-top: 18px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

.iml-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.iml-how {
  margin-top: 12px;
}

/* One material, shown as a card with a white film swatch (no selector) */
.iml-mat {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  max-width: 980px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.iml-mat-swatch {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cyan-soft), #d3e6f7);
  overflow: hidden;
}

.iml-mat-sheet {
  width: 56%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: linear-gradient(120deg, #fff 0%, #fff 40%, #eef2f6 50%, #fff 60%, #fff 100%);
  box-shadow:
    0 0 0 1px rgba(14, 15, 17, 0.06),
    0 18px 36px -18px rgba(14, 15, 17, 0.35);
  transform: rotate(-6deg);
}

[dir="rtl"] .iml-mat-sheet {
  transform: rotate(6deg);
}

.iml-mat-text h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 800;
}

.iml-mat-for {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-dark);
}

.iml-mat-desc {
  max-width: 56ch;
  margin-top: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.iml-mat .svc-props {
  margin-top: 18px;
}

/* ==========================================================================
   Industries page: one card per sector, two columns
   ========================================================================== */
.ind-section {
  padding-block: 24px 0;
}

.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.ind-card {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 28px;
  border-radius: var(--r-lg);
}

.ind-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ind-card-ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.ind-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: #8a929c;
}

.ind-card h2 {
  margin-top: 20px;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}

.ind-desc {
  margin-top: 10px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.ind-label {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.ind-products {
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.6;
}

.ind-fits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.ind-fit {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--cyan-soft);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan-dark);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ind-fit:hover {
  background: var(--cyan);
  color: #fff;
}

.ind-fit:focus-visible {
  outline: 2px solid var(--cyan-dark);
  outline-offset: 2px;
}

/* Cards lift a little on hover (pointer devices, motion allowed). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .iml-card,
  .ind-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .iml-card:hover,
  .ind-card:hover {
    border-color: rgba(25, 136, 218, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
  }
}

@media (max-width: 1099px) {
  .svc-facts.svc-facts-4,
  .iml-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .iml-mat {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }

  .iml-mat-swatch {
    aspect-ratio: 16 / 9;
  }

  .iml-mat-sheet {
    width: 32%;
  }

  .ind-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ind-card {
    padding: 24px 22px;
  }
}

@media (max-width: 599px) {
  .svc-facts.svc-facts-4,
  .iml-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Customer accounts (front end; js/auth.js + js/account.js)
   ========================================================================== */

/* Header account link: icon in the header bar on desktop, a full row in the mobile menu */
.header-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--navy-800);
  transition: border-color 0.15s;
}

.header-account:hover {
  border-color: var(--navy-800);
}

.nav-account {
  justify-content: flex-start;
  color: var(--navy-800);
}

@media (max-width: 1179px) {
  .header-account {
    display: none;
  }
}

/* Google sign-in button: Google branding guidelines, light theme */
.gsi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: "Roboto", var(--font-en);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.25px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

html[lang="ar"] .gsi-btn {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.gsi-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.gsi-btn:active {
  background: #eeeeee;
}

.gsi-btn:disabled {
  border-color: rgba(31, 31, 31, 0.12);
  color: rgba(31, 31, 31, 0.38);
  box-shadow: none;
  cursor: progress;
}

.gsi-btn:disabled .gsi-btn-icon {
  opacity: 0.38;
}

.gsi-btn-icon {
  display: inline-flex;
  flex: none;
  width: 20px;
  height: 20px;
}

/* Small text-style button / link */
.auth-link {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.auth-link:hover {
  color: var(--navy-800);
}

.auth-link:disabled {
  opacity: 0.6;
  cursor: progress;
}

.auth-preview-note {
  margin-block: 0 14px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: #fff7e6;
  color: #7a5200;
  font-size: 13px;
  font-weight: 600;
}

/* Order page: signup offer card in the details step */
.auth-offer {
  padding: 18px 20px;
  border: 1.5px dashed var(--cyan);
  border-radius: var(--r-md);
  background: var(--cyan-soft);
}

.auth-offer.is-applied {
  border-style: solid;
}

.auth-offer-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-offer-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 800;
}

.auth-offer-title {
  flex: 1;
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
}

.auth-offer-toggle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(25, 136, 218, 0.35);
  border-radius: 50%;
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
}

.auth-offer-toggle .icon {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.auth-offer.is-collapsed .auth-offer-toggle .icon {
  transform: none;
}

.auth-offer-body {
  margin-top: 12px;
  padding-inline-start: 46px;
}

.auth-offer-text {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.auth-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-email-btn {
  height: 40px;
}

.auth-offer .form-error {
  margin: 0 0 8px;
}

.auth-offer-signed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(25, 136, 218, 0.35);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auth-chip .icon {
  flex: none;
  color: var(--cyan-dark);
}

@media (max-width: 559px) {
  .auth-offer {
    padding: 16px;
  }

  .auth-offer-body {
    padding-inline-start: 0;
  }

  .auth-offer-actions > * {
    width: 100%;
  }
}

/* Review step: first-order discount line */
.op-breakdown .op-discount dt,
.op-breakdown .op-discount dd {
  color: #127a3e;
  font-weight: 700;
}

/* Sign-up dialog */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 15, 17, 0.55);
}

.auth-modal-dialog {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: auth-modal-in 0.2s ease-out;
}

.auth-modal-dialog:focus {
  outline: none;
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy-800);
  cursor: pointer;
}

.auth-modal-close:hover {
  background: var(--border);
}

.auth-modal-title {
  margin: 0 0 16px;
  padding-inline-end: 40px;
  font-size: 22px;
  font-weight: 800;
}

.auth-modal-title:focus {
  outline: none;
}

html.auth-modal-open {
  overflow: hidden;
}

@keyframes auth-modal-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-modal-dialog {
    animation: none;
  }

  .auth-offer-toggle .icon {
    transition: none;
  }
}

.auth-done {
  text-align: center;
}

.auth-done .auth-modal-title {
  margin-top: 14px;
  padding-inline-end: 0;
}

.auth-done p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Forms shared by the dialog and login.html */
.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form .form-error:empty {
  display: none;
}

.auth-form .btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.pw-wrap {
  position: relative;
}

.field .pw-wrap input {
  padding-inline-end: 46px;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}

.pw-toggle:hover {
  color: var(--navy-800);
}

.pw-ico {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pw-toggle .pw-ico-hide,
.pw-toggle[aria-pressed="true"] .pw-ico-show {
  display: none;
}

.pw-toggle[aria-pressed="true"] .pw-ico-hide {
  display: block;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row .auth-link {
  font-size: 13px;
}

.auth-msg {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #127a3e;
}

.auth-msg:empty {
  display: none;
}

.auth-switch {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* login.html and account.html */
.auth-page {
  background: var(--bg-soft);
}

.auth-section {
  padding-block: 56px 80px;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.auth-container .auth-card {
  max-width: 440px;
}

.auth-container .gsi-btn {
  width: 100%;
}

.auth-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
}

.auth-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.acc-container {
  max-width: 880px;
}

.acc-head {
  margin-bottom: 22px;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.acc-card-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
}

.acc-profile {
  display: grid;
  gap: 12px;
  margin: 0;
}

.acc-profile dt {
  font-size: 12.5px;
  color: var(--muted);
}

.acc-profile dd {
  margin: 2px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Values are dir="auto" (a Latin name or email stays LTR); keep them on the start side in Arabic */
html[dir="rtl"] .acc-profile dd {
  text-align: right;
}

.acc-profile dd.is-empty {
  font-weight: 500;
  color: var(--muted);
}

.acc-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px 8px 6px;
  text-align: center;
}

.acc-empty p {
  margin: 0;
  font-weight: 700;
}

.acc-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.acc-signout {
  margin-top: 22px;
}

/* Account page: editable profile, order list and order detail (js/account.js) */
.acc-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.acc-note:empty {
  display: none;
}

.acc-warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: #fff7e6;
  color: #8a4b00;
  font-size: 13.5px;
  font-weight: 600;
}

.acc-form {
  margin-top: 14px;
}

.acc-orders {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.acc-order {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.acc-order-head,
.acc-order-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}

.acc-order-meta {
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.acc-order-foot {
  font-weight: 700;
}

.acc-status {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-size: 12.5px;
  font-weight: 700;
}

.acc-status-delivered {
  background: #e7f6ec;
  color: #127a3e;
}

.acc-status-cancelled {
  background: var(--bg-soft);
  color: var(--muted);
}

.acc-back {
  margin-bottom: 12px;
}

.acc-detail .acc-card-title:focus {
  outline: none;
}

.acc-detail-list {
  padding-block: 12px;
  border-top: 1px solid var(--border);
}

.acc-sub {
  margin: 12px 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.acc-history {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-inline-start: 20px;
  font-size: 13.5px;
}

.auth-offer-reason {
  margin: 10px 0 0;
}

@media (max-width: 767px) {
  .acc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-section {
    padding-block: 36px 56px;
  }
}

/* ==========================================================================
   Legal pages (privacy.html, terms.html, refund.html)
   ========================================================================== */
.legal-page {
  padding-block: 56px 88px;
  background: var(--bg-soft);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "todo todo" "head head" "toc body";
  gap: 24px 40px;
  max-width: 1080px;
}

.legal-todo {
  grid-area: todo;
  margin: 0;
  padding: 12px 16px;
  border: 1px dashed #c98a00;
  border-radius: var(--r-sm);
  background: #fff7e6;
  color: #7a5200;
  font-weight: 700;
}

.legal-head { grid-area: head; }

.legal-head h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
}

.legal-updated {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.legal-intro {
  max-width: 70ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.legal-toc {
  grid-area: toc;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.legal-toc h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.legal-toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-inline-start: 18px;
  font-size: 14px;
}

.legal-toc a {
  display: inline-block;
  padding-block: 3px;
  color: var(--text);
  text-decoration: none;
}

.legal-toc a:hover { color: var(--cyan-dark); text-decoration: underline; }

.legal-body {
  grid-area: body;
  min-width: 0;
  padding: 8px 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}

.legal-section {
  padding-block: 24px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-section:last-child { border-bottom: 0; }

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
}

.legal-section p,
.legal-section li {
  max-width: 72ch;
  line-height: 1.8;
}

.legal-section p { margin: 0 0 10px; }

.legal-section ul {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding-inline-start: 22px;
}

.legal-section a { color: var(--cyan-dark); font-weight: 600; }

.legal-contact {
  list-style: none;
  padding: 0 !important;
}

.legal-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.legal-contact strong { min-width: 120px; }

.legal-contact address { font-style: normal; }

.legal-contact .phone-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }

@media (max-width: 899px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "todo" "head" "toc" "body";
  }
  .legal-toc { position: static; }
  .legal-body { padding: 4px 18px 16px; }
}

/* ==========================================================================
   Contact page (contact.html)
   ========================================================================== */
.contact-section {
  padding-block: 8px 88px;
  background: var(--bg-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-info { display: grid; gap: 16px; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--muted);
}

.contact-card a { color: var(--text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--cyan-dark); }
.contact-card .phone-list { display: grid; gap: 2px; }
.contact-card .hours { margin: 0; font-size: 14px; }
.contact-card .hours dd { color: var(--text); }
.contact-card .hours dt { color: var(--muted); }

.contact-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.contact-social a {
  border-color: var(--border-strong);
  color: var(--navy-800);
}

.contact-social a:hover { border-color: var(--cyan); color: var(--cyan-dark); }

.contact-map {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}

.contact-map-art svg { display: block; width: 100%; height: 160px; }

.contact-map-body { display: grid; gap: 10px; padding: 18px 20px 20px; }

.contact-map-body h2 { margin: 0; font-size: 18px; font-weight: 800; }

.contact-map-body address { font-style: normal; color: var(--muted); }

.contact-map-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

.contact-form-card {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form-card > h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }

.contact-form-lead { margin: 0 0 18px; color: var(--muted); }

.contact-form { display: grid; gap: 18px; }

.contact-form .btn { justify-self: start; }

@media (max-width: 959px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 559px) {
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-form-card { padding: 22px 18px; }
}

/* Consent checkbox (src/components/Consent.astro) */
.consent-field .op-check a { color: var(--cyan-dark); text-decoration: underline; text-underline-offset: 2px; }
.consent-field.is-invalid .op-check input { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Footer legal links */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}

.footer-legal a,
.footer-legal-btn {
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer-legal a:hover,
.footer-legal-btn:hover { color: #fff; text-decoration: underline; }

/* Cookie banner (src/components/CookieBanner.astro), off unless enabled in js/config.js */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  padding-block: 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(14, 15, 17, 0.1);
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}

.cookie-text { flex: 1 1 420px; }

.cookie-title { margin: 0 0 4px; font-size: 16px; font-weight: 800; }

.cookie-text p { margin: 0; font-size: 14px; color: var(--muted); }

.cookie-text a { color: var(--cyan-dark); font-weight: 600; }

.cookie-panel { display: grid; gap: 10px; margin-top: 12px; }

.cookie-panel .op-check { font-weight: 500; }

.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 559px) {
  .cookie-actions .btn { flex: 1 1 auto; }
}
.legal-section ul:not(.legal-contact) { list-style: disc; }
.legal-toc ol { list-style: decimal; }
.legal-toc li::marker, .legal-section li::marker { color: var(--cyan); }

/* Contact page: keep the email address on one line */
.contact-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.contact-card > div { min-width: 0; }
.contact-card a[data-email] { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 400px) { .contact-card a[data-email] { font-size: 14px; } }

/* Industries page: closing line before the CTA */
.ind-more {
  margin: 28px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
}

/* Quote form: shape picker (self-adhesive, IML) */
.qp-shape-size { margin-bottom: 14px; }

/* Order page: discount code (review step) */
.op-coupon {
  margin-top: 18px;
}

.op-coupon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.op-coupon-row input {
  flex: 1 1 180px;
  min-width: 0;
  text-transform: uppercase;
}

.op-coupon [data-coupon-status]:empty {
  display: none;
}

/* Notice banner from Admin → Settings (js/main.js, pages that load js/remote-config.js) */
.site-banner {
  padding: 10px 16px;
  background: var(--cyan-soft);
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.site-banner.is-warning {
  background: #fff4d6;
  color: #5a4300;
}
