/* ============================================================
   ELITE MARCOM — Global design system
   Dark (default) + light themes · tokens · layout · components
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Dark palette (default) */
  --ink: #171d29;
  --ink-2: #131824;
  --panel: #202532;
  --panel-2: #252d3d;
  --panel-3: #293143;
  --text: #f5f2ed;
  --text-muted: #b0b4c0;
  --text-soft: #bcc2cf;
  --orange: #ed6c26;
  --orange-2: #f18042;
  --orange-soft: #ff9b68;
  --violet: #7467c7;
  --violet-2: #8f77d6;
  --violet-soft: #aa9cf3;

  --bg: linear-gradient(165deg, #1a2030 0%, #171d29 38%, #191d2c 70%, #1c1f30 100%);
  --surface: rgba(37, 45, 61, 0.55);
  --surface-strong: rgba(37, 45, 61, 0.82);
  --border: rgba(245, 242, 237, 0.10);
  --border-strong: rgba(245, 242, 237, 0.18);
  --shadow-1: 0 8px 30px rgba(8, 10, 18, 0.35);
  --shadow-2: 0 20px 60px rgba(8, 10, 18, 0.5);
  --glow-orange: rgba(237, 108, 38, 0.35);
  --glow-violet: rgba(116, 103, 199, 0.35);
  --scrim: rgba(10, 12, 20, 0.62);
  --header-bg: rgba(24, 29, 42, 0.55);
  --header-bg-scrolled: rgba(23, 28, 40, 0.85);
  --skeleton: rgba(245, 242, 237, 0.07);
  --grad-brand: linear-gradient(90deg, var(--orange) 0%, var(--orange-2) 35%, var(--violet-2) 100%);

  /* Typography */
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(2.5rem, 1.2rem + 5.6vw, 5.4rem);
  --fs-h1: clamp(2.2rem, 1.2rem + 4vw, 4.2rem);
  --fs-h2: clamp(1.7rem, 1rem + 2.6vw, 3rem);
  --fs-h3: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  --fs-body: clamp(0.96rem, 0.9rem + 0.2vw, 1.06rem);
  --fs-small: 0.87rem;
  --fs-eyebrow: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);

  /* Layout */
  --content-max: 1380px;
  --gutter: 72px;
  --section-gap: clamp(88px, 6vw + 48px, 150px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.2, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-1: 0.28s;
  --dur-2: 0.55s;
  --dur-3: 0.9s;

  color-scheme: dark;
  accent-color: var(--orange);
}

html[data-theme="light"] {
  --ink: #fffdfa;
  --ink-2: #f7f3ed;
  --panel: #f7f3ed;
  --panel-2: #f0ebe4;
  --panel-3: #e9e2d8;
  --text: #171d29;
  --text-muted: #565d6e;
  --text-soft: #4b5265;
  --bg: linear-gradient(168deg, #fffdfa 0%, #f9f5ef 40%, #f4eee6 78%, #f2ecf4 100%);
  --surface: rgba(255, 253, 250, 0.7);
  --surface-strong: rgba(255, 253, 250, 0.92);
  --border: rgba(23, 29, 41, 0.10);
  --border-strong: rgba(23, 29, 41, 0.2);
  --shadow-1: 0 8px 26px rgba(97, 84, 68, 0.12);
  --shadow-2: 0 22px 60px rgba(97, 84, 68, 0.18);
  --glow-orange: rgba(237, 108, 38, 0.2);
  --glow-violet: rgba(116, 103, 199, 0.18);
  --scrim: rgba(31, 27, 40, 0.42);
  --header-bg: rgba(255, 253, 250, 0.6);
  --header-bg-scrolled: rgba(255, 253, 250, 0.88);
  --skeleton: rgba(23, 29, 41, 0.07);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  background-image: var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html { overflow-x: clip; }

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
img { color: var(--text-muted); font-size: var(--fs-small); }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
p a, .prose li a { color: var(--orange-2); text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: rgba(237, 108, 38, 0.35); }

:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 300;
  padding: 10px 18px; border-radius: 10px;
  background: var(--orange); color: #fff; font-weight: 600;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 14px; outline-offset: 1px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* italic accent word in editorial headings */
.accent-i { font-style: italic; color: var(--orange-2); }
.accent-v { color: var(--violet-soft); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: calc(var(--section-gap) * 0.5); position: relative; }
.section--first { padding-top: clamp(140px, 16vh, 210px); }

.section-marker {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 28px;
}
.section-marker::before {
  content: ""; width: 44px; height: 2px; border-radius: 2px;
  background: var(--grad-brand); flex: none;
}

.eyebrow {
  font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--orange-2); margin-bottom: 20px; display: block;
}

.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--text-soft); max-width: 46ch; }

.grad-line {
  height: 2px; border: 0; margin: 0;
  background: var(--grad-brand); border-radius: 2px; opacity: 0.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out),
              background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
  will-change: transform;
}
.btn svg { flex: none; }
@media (max-width: 380px) { .btn { white-space: normal; text-align: center; } }

.btn--primary {
  color: #fff;
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 60%, #f0894e 100%);
  box-shadow: 0 6px 24px var(--glow-orange);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--glow-orange); }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--orange-2); transform: translateY(-2px); }

.btn--violet {
  color: #fff;
  background: linear-gradient(100deg, var(--violet) 0%, var(--violet-2) 100%);
  box-shadow: 0 6px 24px var(--glow-violet);
}
.btn--violet:hover { transform: translateY(-2px); box-shadow: 0 10px 32px var(--glow-violet); }

.btn--small { padding: 10px 20px; font-size: var(--fs-small); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--orange-2);
}
.link-arrow::after { content: "→"; transition: transform var(--dur-1) var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 18px 0 auto; z-index: 120;
  display: flex; justify-content: center;
  padding-inline: max(14px, calc((100vw - var(--content-max) - 40px) / 2));
  pointer-events: none;
}
.site-header__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 20px;
  width: 100%; max-width: calc(var(--content-max) + 40px);
  padding: 10px 16px 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(8, 10, 18, 0.18);
  transition: background-color var(--dur-1) linear, box-shadow var(--dur-1) linear, border-color var(--dur-1) linear;
}
.site-header.is-scrolled .site-header__bar {
  background: var(--header-bg-scrolled);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.site-header__logo { flex: none; display: inline-flex; align-items: center; }
.site-header__logo img { height: 34px; width: auto; }

.site-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; padding: 9px 13px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-soft);
  white-space: nowrap;
  transition: color var(--dur-1) linear, background-color var(--dur-1) linear;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-strong); }

.site-header__side { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.site-header__cities {
  font-size: 0.78rem; letter-spacing: 0.08em; color: var(--text-muted); white-space: nowrap;
}
.site-header__cta { padding: 10px 20px; font-size: 0.88rem; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  transition: border-color var(--dur-1) linear, transform var(--dur-1) var(--ease-out);
}
.icon-btn:hover { border-color: var(--orange-2); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Responsive header collapse — compact before wrapping */
@media (max-width: 1240px) {
  .site-header__cities { display: none; }
}
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header__bar { max-width: 720px; }
}
@media (max-width: 560px) {
  .site-header { inset: 10px 0 auto; }
  .site-header__cta { display: none; }
  .site-header__logo img { height: 28px; }
}

/* ---------- Expanded menu panel ---------- */
.menu-scrim {
  position: fixed; inset: 0; z-index: 190;
  background: var(--scrim); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
  width: min(440px, 100vw);
  display: flex; flex-direction: column;
  padding: 30px 38px 34px;
  background: var(--surface-strong);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  transform: translateX(102%);
  transition: transform var(--dur-2) var(--ease-out);
  visibility: hidden;
  overflow-y: auto;
}
body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
body.menu-open .menu-panel { transform: translateX(0); visibility: visible; }
.menu-panel[data-animating] { visibility: visible; }

.menu-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.menu-panel__title { font-size: var(--fs-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-muted); }
.menu-panel nav { flex: 1; }
.menu-panel ol { list-style: none; margin: 0; padding: 0; }
.menu-panel ol a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 11px 0; font-size: clamp(1.4rem, 4vh, 1.85rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--text); border-bottom: 1px solid var(--border);
  transition: color var(--dur-1) linear, padding-left var(--dur-1) var(--ease-out);
}
.menu-panel ol a:hover, .menu-panel ol a[aria-current="page"] { color: var(--orange-2); padding-left: 8px; }
.menu-panel ol a .num {
  font-size: 0.8rem; font-weight: 500; color: var(--violet-soft); letter-spacing: 0.1em;
}
.menu-panel__foot { margin-top: 28px; }
.menu-panel__tag { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.menu-panel__mail { font-weight: 600; color: var(--orange-2); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(116, 103, 199, 0.06));
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: auto 0 0;
  height: 2px; background: var(--grad-brand); opacity: 0.85;
}
.site-footer__grid {
  display: grid; gap: 44px;
  grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(150px, 1fr)) minmax(200px, 1fr);
  padding-block: 64px 48px;
}
.site-footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.site-footer__brand p { color: var(--text-muted); max-width: 34ch; }
.site-footer h3 {
  font-size: var(--fs-eyebrow); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-soft); transition: color var(--dur-1) linear; }
.site-footer ul a:hover { color: var(--orange-2); }
.site-footer__meta {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  padding-block: 22px; border-top: 1px solid var(--border);
  font-size: var(--fs-small); color: var(--text-muted);
}
@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; padding-block: 52px 36px; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor [role="button"] { cursor: none; }
  .cursor-dot, .cursor-ring {
    display: block; position: fixed; top: 0; left: 0; z-index: 400;
    pointer-events: none; border-radius: 50%;
    will-change: transform;
  }
  .cursor-dot {
    width: 8px; height: 8px; margin: -4px 0 0 -4px;
    background: var(--orange-2);
  }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1.5px solid var(--violet-soft); opacity: 0.65;
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
                margin 0.25s var(--ease-out), opacity 0.25s linear, border-color 0.25s linear;
  }
  .cursor-ring.is-active {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-color: var(--orange-2); opacity: 0.9;
  }
  .cursor-ring.is-drag {
    width: 64px; height: 64px; margin: -32px 0 0 -32px;
    border-style: dashed; border-color: var(--orange-2);
  }
}

/* ---------- Reveal system ---------- */
.reveal { opacity: 0; will-change: transform, opacity; }
.reveal.is-visible {
  opacity: 1;
  transform: none !important;
  filter: none !important;
  transition: opacity var(--dur-3) var(--ease-soft), transform var(--dur-3) var(--ease-soft), filter var(--dur-3) var(--ease-soft);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal[data-reveal="fade-up"] { transform: translateY(38px); }
.reveal[data-reveal="fade-in"] { transform: none; }
.reveal[data-reveal="slide-left"] { transform: translateX(-46px); }
.reveal[data-reveal="slide-right"] { transform: translateX(46px); }
.reveal[data-reveal="zoom"] { transform: scale(0.92); }
.reveal[data-reveal="zoom-up"] { transform: translateY(30px) scale(0.95); }
.reveal[data-reveal="mask-title"] { transform: translateY(100%); }
.reveal[data-reveal="blur-in"] { transform: none; filter: blur(16px); }
.reveal[data-reveal="rise"] { transform: translateY(64px); }
.mask-clip { overflow: hidden; display: block; }
html.reveals-off .reveal { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; position: relative;
  border-block: 1px solid var(--border);
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 0; width: max-content;
  animation: marquee-scroll var(--marquee-dur, 36s) linear infinite;
}
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 26px;
  padding-inline: 26px;
  font-size: clamp(1.1rem, 1rem + 1.4vw, 1.9rem);
  font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  color: var(--text-soft);
}
.marquee__item::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-brand); flex: none; opacity: 0.9;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Cards & media ---------- */
.media-frame {
  position: relative; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}
.media-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-soft);
}
.media-frame:hover img { transform: scale(1.045); }
.media-frame--sheen::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-soft);
  pointer-events: none;
}
.media-frame--sheen:hover::after { transform: translateX(120%); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-soft);
  max-width: 100%; text-align: center;
}
.chip--orange { color: var(--orange-2); border-color: rgba(237, 108, 38, 0.4); }
.chip--violet { color: var(--violet-soft); border-color: rgba(116, 103, 199, 0.45); }

/* stat block */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); }
.stat { min-width: 110px; }
.stat__num {
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.stat__label { color: var(--text-muted); font-size: var(--fs-small); margin-top: 4px; }

/* ---------- Process line ---------- */
.process { position: relative; }
.process__line {
  position: absolute; top: 27px; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
  transform-origin: left center; transform: scaleX(0);
  transition: transform 1.4s var(--ease-soft);
}
.process.is-visible .process__line, html.reveals-off .process__line { transform: scaleX(1); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process__step { padding-top: 56px; position: relative; }
.process__dot {
  position: absolute; top: 18px; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--orange-2);
  box-shadow: 0 0 0 5px var(--glow-orange);
}
.process__step:nth-child(3) .process__dot { border-color: var(--violet-2); box-shadow: 0 0 0 5px var(--glow-violet); }
.process__step:nth-child(4) .process__dot { border-color: var(--violet-soft); box-shadow: 0 0 0 5px var(--glow-violet); }
.process__num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em; color: var(--violet-soft); }
.process__step h3 { margin: 8px 0 10px; }
.process__step p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr 1fr; }
  .process__line { display: none; }
}
@media (max-width: 520px) { .process__grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .form-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-soft); }
.form-field .req { color: var(--orange-2); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: max(16px, 1em);
  color: var(--text);
  padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: border-color var(--dur-1) linear, box-shadow var(--dur-1) linear;
  width: 100%;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: none; border-color: var(--orange-2);
  box-shadow: 0 0 0 3px rgba(237, 108, 38, 0.22);
}
.form-field .field-error { color: #ff8f7a; font-size: var(--fs-small); display: none; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #e2604a; }
.form-field.has-error .field-error { display: block; }

.consent-row { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.consent-row a { color: var(--orange-2); text-decoration: underline; }

/* honeypot — visually removed, zero size */
.hp-field {
  position: absolute !important; width: 0 !important; height: 0 !important;
  overflow: hidden !important; opacity: 0 !important; pointer-events: none !important;
  margin: 0; padding: 0; border: 0;
}

.form-status { border-radius: 14px; padding: 16px 20px; font-size: 0.95rem; display: none; margin-top: 18px; }
.form-status.is-ok { display: block; background: rgba(78, 180, 120, 0.14); border: 1px solid rgba(78, 180, 120, 0.5); color: var(--text); }
.form-status.is-err { display: block; background: rgba(226, 96, 74, 0.13); border: 1px solid rgba(226, 96, 74, 0.5); color: var(--text); }

/* ---------- Dialogs & drawers ---------- */
.dialog-scrim {
  position: fixed; inset: 0; z-index: 240;
  background: var(--scrim); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: max(18px, 3vh) 18px;
}
.dialog-scrim.is-open { display: flex; }
.dialog {
  width: min(860px, 100%); max-height: min(88vh, 100%);
  overflow-y: auto; overscroll-behavior: contain;
  border-radius: 22px;
  background: var(--surface-strong);
  backdrop-filter: blur(30px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  padding: clamp(22px, 4vw, 44px);
  position: relative;
}
.dialog--narrow { width: min(560px, 100%); }
.dialog--wide { width: min(760px, 100%); }
.field-hint { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.dialog__close { position: absolute; top: 16px; right: 16px; z-index: 2; }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 240;
  background: var(--scrim);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 250;
  width: min(520px, 100vw);
  background: var(--surface-strong);
  backdrop-filter: blur(28px);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  transform: translateX(103%);
  transition: transform var(--dur-2) var(--ease-out);
  display: flex; flex-direction: column;
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 26px; border-bottom: 1px solid var(--border);
}
.drawer__head h2 { margin: 0; font-size: 1.25rem; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 24px 26px; }
.drawer__foot { padding: 18px 26px 24px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
body.scroll-locked { overflow: hidden; }

/* ---------- Toasts ---------- */
.toast-region {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 320; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px));
}
.toast {
  padding: 14px 20px; border-radius: 14px; font-size: 0.93rem;
  background: var(--surface-strong); backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-1);
  display: flex; gap: 10px; align-items: center;
  animation: toast-in 0.4s var(--ease-out);
}
.toast--ok { border-color: rgba(78, 180, 120, 0.55); }
.toast--err { border-color: rgba(226, 96, 74, 0.55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Catalog shared (giveaways + rental) ---------- */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 18px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(14px);
  margin-bottom: 26px;
}
.catalog-toolbar input[type="search"], .catalog-toolbar select {
  font: inherit; font-size: max(16px, 0.95em); color: var(--text);
  padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface);
  min-width: 0;
}
.catalog-toolbar input[type="search"] { flex: 1 1 220px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-soft);
  transition: all var(--dur-1) linear;
}
.filter-chip[aria-pressed="true"], .filter-chip.is-active {
  background: linear-gradient(100deg, var(--orange), var(--orange-2));
  color: #fff; border-color: transparent;
}

.catalog-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.catalog-grid.is-list { grid-template-columns: 1fr; }
.product-card {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) linear, box-shadow var(--dur-1) var(--ease-out);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.product-card__media { aspect-ratio: 4 / 3; background: var(--panel-2); position: relative; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 20px); }
.product-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__code { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-muted); }
.product-card__name { font-size: 1.02rem; font-weight: 700; margin: 0; line-height: 1.3; }
.product-card__meta { font-size: var(--fs-small); color: var(--text-muted); }
.availability { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 600; }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.availability--in { color: #63c98c; }
.availability--low { color: var(--orange-soft); }
.availability--out { color: #ee4b4b; }
.availability--incoming { color: var(--violet-soft); }
.product-card__actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 8px; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 34px; height: 36px; font-size: 1.1rem; color: var(--text-soft); }
.qty-control button:hover { color: var(--orange-2); }
.qty-control input {
  width: 48px; text-align: center; border: 0; background: transparent; color: var(--text);
  font: inherit; font-size: max(16px, 0.95em); -moz-appearance: textfield; appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.skeleton-card { border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.skeleton-card .sk-media { aspect-ratio: 4/3; }
.skeleton-card .sk-line { height: 14px; border-radius: 7px; margin: 12px 16px; }
.sk { background: var(--skeleton); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: sk-sweep 1.4s linear infinite;
}
@keyframes sk-sweep { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

.empty-state {
  text-align: center; padding: 60px 24px; border-radius: 18px;
  border: 1px dashed var(--border-strong); color: var(--text-muted);
}
.empty-state h3 { color: var(--text); }

.data-state { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.data-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.data-state--live::before { background: #63c98c; }
.data-state--cache::before { background: var(--orange-soft); }
.data-state--preview::before { background: var(--violet-soft); }
.data-state--connecting::before { background: var(--text-muted); animation: pulse-dot 1.2s ease-in-out infinite; }
@keyframes pulse-dot { 50% { opacity: 0.35; } }

/* market switcher */
.market-switch {
  display: inline-flex; border-radius: 999px; border: 1px solid var(--border-strong);
  overflow: hidden; background: var(--surface);
}
.market-switch button { padding: 10px 22px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
.market-switch button[aria-pressed="true"] {
  background: linear-gradient(100deg, var(--orange), var(--violet-2));
  color: #fff;
}
@media (max-width: 460px) {
  .market-switch { flex-direction: column; width: 100%; }
  .market-switch button { width: 100%; }
}

/* request list items */
.request-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.request-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: var(--panel-2); }
.request-item__body { flex: 1; min-width: 0; }
.request-item__name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.request-item__meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.request-item__row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.request-item__remove { color: var(--text-muted); font-size: 0.82rem; text-decoration: underline; }
.request-item__remove:hover { color: #ff8f7a; }

.request-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px;
  background: linear-gradient(100deg, var(--orange), var(--violet-2));
  color: #fff; font-weight: 700; box-shadow: 0 10px 32px var(--glow-orange);
  transition: transform var(--dur-1) var(--ease-out);
}
.request-fab:hover { transform: translateY(-3px); }
.request-fab[hidden] { display: none; }
.request-fab .count {
  background: rgba(255,255,255,0.25); border-radius: 999px; min-width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem;
}

/* ---------- Ambient decorations ---------- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1;
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  will-change: transform;
  animation: aurora-drift 26s var(--ease-soft) infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; background: var(--glow-violet); top: -12%; right: -8%; }
.aurora span:nth-child(2) { width: 34vw; height: 34vw; background: var(--glow-orange); bottom: -10%; left: -6%; animation-delay: -8s; animation-duration: 32s; }
.aurora span:nth-child(3) { width: 24vw; height: 24vw; background: rgba(143, 119, 214, 0.25); top: 38%; left: 30%; animation-delay: -16s; animation-duration: 38s; }
@keyframes aurora-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -3vw, 0) scale(1.15); }
}

.orbit-deco { position: absolute; pointer-events: none; opacity: 0.5; }
.orbit-deco circle { fill: none; stroke-width: 1; }
.orbit-deco .o1 { stroke: var(--orange-2); stroke-dasharray: 4 10; transform-origin: center; animation: spin 40s linear infinite; }
.orbit-deco .o2 { stroke: var(--violet-2); stroke-dasharray: 2 8; transform-origin: center; animation: spin 55s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-soft { animation: float-soft 7s ease-in-out infinite; }
@keyframes float-soft { 50% { transform: translateY(-12px); } }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 260;
  background: var(--grad-brand);
  transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Page hero shared ---------- */
.page-hero { position: relative; padding-top: clamp(150px, 18vh, 220px); padding-bottom: 30px; overflow-x: clip; }
.page-hero .lede { margin-top: 20px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track { animation: none; transform: none; flex-wrap: wrap; width: auto; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .aurora span, .orbit-deco .o1, .orbit-deco .o2, .float-soft { animation: none !important; }
  .process__line { transform: scaleX(1); }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: auto; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.grid-2--wide-left { grid-template-columns: 1.25fr 1fr; }
.grid-2--wide-right { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 860px) { .grid-2, .grid-2--wide-left, .grid-2--wide-right { grid-template-columns: 1fr; } }

/* theme-conditional logo variants */
.logo-light-only { display: none; }
html[data-theme="light"] .logo-light-only { display: block; }
html[data-theme="light"] .logo-dark-only { display: none; }

.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

@media (max-width: 1024px) { :root { --gutter: 30px; } }
@media (max-width: 640px) { :root { --gutter: 22px; } }

/* ---------- floating WhatsApp widget ---------- */
.wa-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 150;
  display: inline-flex; align-items: center;
  padding: 13px; border-radius: 999px;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) linear,
              padding var(--dur-1) var(--ease-out);
}
.wa-fab svg { width: 28px; height: 28px; flex: none; fill: currentColor; display: block; }
.wa-fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: 0.9rem;
  transition: max-width var(--dur-1) var(--ease-out), margin var(--dur-1) var(--ease-out);
}
.wa-fab:hover, .wa-fab:focus-visible {
  transform: translateY(-2px);
  padding-right: 20px;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
  color: #fff;
}
.wa-fab:hover .wa-fab__label, .wa-fab:focus-visible .wa-fab__label {
  max-width: 130px; margin-left: 10px;
}
@media (max-width: 640px) {
  .wa-fab { left: 14px; bottom: 14px; padding: 11px; }
  .wa-fab svg { width: 25px; height: 25px; }
}

/* ---------- Arabic edition (RTL) ---------- */
[dir="rtl"] { direction: rtl; }
[dir="rtl"] .site-nav ul, [dir="rtl"] .site-footer__grid, [dir="rtl"] .grid-2 { direction: rtl; }
[dir="rtl"] .eyebrow, [dir="rtl"] .lede, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] p, [dir="rtl"] li { text-align: right; }
[dir="rtl"] .hero__copy, [dir="rtl"] .page-hero { text-align: right; }
[dir="rtl"] .wa-fab { left: auto; right: 22px; }
.lang-switch {
  font-size: 0.82rem; font-weight: 600; color: var(--text-soft);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border-strong);
  white-space: nowrap;
}
.lang-switch:hover { color: var(--orange-2); border-color: var(--orange-2); }

/* ---------- announcement bar ---------- */
.em-announce {
  position: relative; z-index: 60; display: flex; gap: 14px; align-items: center;
  justify-content: center; flex-wrap: wrap; padding: 10px 46px 10px 20px;
  background: linear-gradient(100deg, var(--orange), var(--violet-2));
  color: #fff; font-size: 0.9rem; font-weight: 600; text-align: center;
}
.em-announce--quiet { background: var(--panel-3); color: var(--text); }
.em-announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.em-announce__close {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: inherit; font-size: 1.15rem; line-height: 1;
  cursor: pointer; opacity: 0.75; padding: 4px 8px;
}
.em-announce__close:hover { opacity: 1; }
@media (max-width: 640px) { .em-announce { font-size: 0.84rem; padding-block: 8px; } }


/* ============================================================
   Mobile refinement
   Measured on the running site at 390px and 360px: the layout never
   overflowed, but touch targets and type were tuned for a mouse. Nothing
   below changes the desktop design — it only applies on small, touch screens.
   ============================================================ */
@media (max-width: 640px) {
  /* 16px is the threshold below which iOS Safari zooms the page on focus,
     which then leaves the visitor scrolled sideways in a form */
  .form-field input, .form-field select, .form-field textarea,
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="date"], input[type="number"], input[type="search"], select, textarea {
    font-size: 16px;
    min-height: 48px;
  }
  textarea { min-height: 120px; }
  .form-field label { font-size: 0.92rem; }

  /* comfortable reading size: nothing in running text below 14px */
  main p, main li, main label, main td, main dd { font-size: max(0.9rem, 1em); }
  .form-field .field-note, .form-note, .muted small { font-size: 0.86rem; }

  /* every control reachable with a thumb */
  .btn, .btn--small { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .chip { min-height: 40px; display: inline-flex; align-items: center; }
  .carousel__btn { width: 46px; height: 46px; }
  .site-header__logo { min-height: 44px; display: inline-flex; align-items: center; }
  .menu-panel__mail, .menu-panel a { min-height: 44px; display: inline-flex; align-items: center; }

  /* checkbox and radio rows are a common mis-tap: enlarge the whole row */
  .consent, .form-field--check label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
  .consent input[type="checkbox"], input[type="checkbox"], input[type="radio"] {
    width: 22px; height: 22px; min-height: 22px; flex: none;
  }

  /* tables scroll rather than squeeze */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Fine-grained spacing for the narrowest handsets still in use */
@media (max-width: 380px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .btn, .btn--small { width: 100%; }
  .page-hero__actions, .form-actions { display: flex; flex-direction: column; gap: 10px; }
}
