/* ==========================================================================
   Samsung-Elite — Global design system
   Mobile-first. Uses CSS logical properties so one stylesheet serves
   Arabic (RTL) and English (LTR) without duplicated rules.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --c-primary: #1f4bff;
  --c-primary-600: #1536d1;
  --c-primary-700: #0f27a3;
  --c-primary-50: #eef2ff;
  --c-primary-100: #dfe6ff;
  --c-accent: #38bdf8;
  --c-accent-2: #7c9bff;
  --c-wa: #128c4a;
  --c-wa-600: #0d7a3f;
  --c-danger: #d93a3a;
  --c-warn: #c77800;
  --c-ok: #10915a;

  /* Light surfaces */
  --c-bg: #ffffff;
  --c-surface: #f4f6fb;
  --c-surface-2: #eaeef6;
  --c-ink: #0a0e19;
  --c-ink-2: #2f3850;
  --c-muted: #5f6982;
  --c-line: #e1e6f0;

  /* Dark surfaces */
  --d-bg: #070a12;
  --d-bg-2: #0b1020;
  --d-surface: rgba(255, 255, 255, 0.04);
  --d-surface-2: rgba(255, 255, 255, 0.07);
  --d-line: rgba(255, 255, 255, 0.09);
  --d-ink: #f1f4ff;
  --d-muted: #a3aec8;

  /* Gradients */
  --g-primary: linear-gradient(135deg, #3d6bff 0%, #1f4bff 45%, #0f27a3 100%);
  --g-metal: linear-gradient(160deg, #ffffff 0%, #e9edf5 38%, #cfd6e3 70%, #f6f8fc 100%);
  --g-dark: radial-gradient(1200px 600px at 80% -10%, rgba(31, 75, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(56, 189, 248, 0.16), transparent 60%), #070a12;

  /* Typography */
  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.3vw, 4.1rem);
  --lh-tight: 1.15;
  --lh: 1.75;

  /* Shape & depth */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;
  --sh-xs: 0 1px 2px rgba(10, 14, 25, 0.06);
  --sh-sm: 0 2px 8px rgba(10, 14, 25, 0.06), 0 1px 2px rgba(10, 14, 25, 0.04);
  --sh: 0 12px 32px -12px rgba(10, 14, 25, 0.18), 0 2px 6px rgba(10, 14, 25, 0.05);
  --sh-lg: 0 30px 60px -20px rgba(10, 14, 25, 0.28), 0 8px 18px -8px rgba(10, 14, 25, 0.12);
  --sh-blue: 0 18px 40px -14px rgba(31, 75, 255, 0.55);

  /* Layout */
  --container: 1360px;
  --gutter: 16px;
  --header-h: 68px;
  --topbar-h: 0px;
  --mobile-bar-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 160ms;
  --t: 320ms;
  --t-slow: 700ms;

  /* Direction multiplier: used for transforms that must mirror in RTL */
  --dir: 1;
}
[dir='rtl'] { --dir: -1; }

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir='ltr'] body { letter-spacing: -0.005em; }
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: 700; text-wrap: balance; }
[dir='ltr'] h1, [dir='ltr'] h2 { letter-spacing: -0.025em; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--c-primary); color: #fff; }
main:focus { outline: none; }

/* Accessible focus ring everywhere */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Utilities ---------- */
/* Single-column layouts must never be widened by min-content (e.g. nowrap buttons) */
.hero__inner, .xp__inner, .codes__head, .team__inner, .areas__layout, .faq__inner, .req__layout { grid-template-columns: minmax(0, 1fr); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; inset-inline-start: 16px; top: -100px; z-index: 1000;
  background: var(--c-ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon--lg { width: 1.6em; height: 1.6em; }
[dir='ltr'] .dir-icon { transform: scaleX(-1); }
[dir='rtl'] .flip-rtl { transform: scaleX(-1); }
.text-center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }

/* ---------- 4. Sections & typography ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--alt { background: var(--c-surface); }
.section--dark { background: var(--g-dark); color: var(--d-ink); isolation: isolate; overflow: hidden; }
.section--dark .lead, .section--dark p { color: var(--d-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 14px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--c-primary-600);
  background: var(--c-primary-50); border: 1px solid var(--c-primary-100);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary); box-shadow: 0 0 0 4px rgba(31, 75, 255, 0.18);
}
.section--dark .eyebrow { color: #cfe0ff; background: rgba(61, 107, 255, 0.14); border-color: rgba(125, 155, 255, 0.28); }
.section--dark .eyebrow::before { background: var(--c-accent); box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }
.section-head h2 { font-size: var(--fs-h2); margin-block: 18px 16px; }
.section-head .lead { font-size: var(--fs-lg); color: var(--c-muted); line-height: 1.7; }
.section-head--split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head--split > div { max-width: 720px; }

.gradient-text {
  background: linear-gradient(100deg, #1f4bff 0%, #38bdf8 60%, #1f4bff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--dark .gradient-text { background-image: linear-gradient(100deg, #9fc3ff 0%, #38bdf8 45%, #ffffff 100%); }

.prose { font-size: var(--fs-md); color: var(--c-ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--c-primary-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--c-ink); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-base); line-height: 1.2; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--primary { --btn-bg: var(--c-primary); background-image: var(--g-primary); box-shadow: var(--sh-blue); }
.btn--primary:hover { box-shadow: 0 22px 48px -14px rgba(31, 75, 255, 0.7); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--dark { --btn-bg: #000; }
.btn--dark:hover { --btn-bg: #1a1f2e; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-ink); }
.btn--outline:hover { --btn-bg: var(--c-ink); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-ink); box-shadow: var(--sh); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.14); }
.btn--wa { --btn-bg: var(--c-wa); }
.btn--wa:hover { --btn-bg: var(--c-wa-600); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 14px 30px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn > span { overflow: hidden; text-overflow: ellipsis; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--c-ink); transition: background-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--c-surface-2); }
.icon-btn .icon { width: 22px; height: 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--c-primary-600); }
.link-arrow .icon { transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(calc(4px * var(--dir))) scaleX(var(--dir)); }
[dir='rtl'] .link-arrow .icon { transform: scaleX(-1); }

/* ---------- 6. Chips, badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-xs);
  font-size: var(--fs-sm); font-weight: 500; border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink-2);
}
.chip--code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; direction: ltr; letter-spacing: 0.02em; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px;
  font-size: var(--fs-xs); font-weight: 600; background: #0b6b55; color: #fff;
}
.badge--blue { background: var(--c-primary); }
.badge--dark { background: var(--c-ink); }

/* ---------- 7. Top bar ---------- */
.topbar { display: none; background: #05070d; color: #c4cce0; font-size: var(--fs-sm); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__note { display: flex; align-items: center; gap: 8px; }
.topbar__note .icon { color: var(--c-accent); width: 16px; height: 16px; }
.topbar__sep { opacity: 0.35; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 6px; color: #fff; transition: color var(--t-fast); }
.topbar__links a:hover { color: var(--c-accent); }
.topbar__links .icon { width: 16px; height: 16px; }

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 24px -18px rgba(10, 14, 25, 0.35); background: rgba(255, 255, 255, 0.9); }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 12px rgba(31, 75, 255, 0.35)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; direction: ltr; unicode-bidi: isolate; }
.brand__dash { color: var(--c-primary); }
.brand__tag { display: none; font-size: 0.7rem; color: var(--c-muted); margin-top: 3px; font-weight: 400; }

.header__actions { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.header__cta { display: none; }
.lang-switch { display: none; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--c-muted); padding-inline: 6px; }
.lang-switch a { padding: 6px 4px; transition: color var(--t-fast); }
.lang-switch a:hover { color: var(--c-ink); }
.lang-switch a[aria-current] { color: var(--c-ink); font-weight: 700; }

/* Navigation — mobile drawer is the default (mobile-first) */
.nav {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 200;
  width: min(420px, 92vw); display: flex; flex-direction: column;
  background: #fff; box-shadow: var(--sh-lg);
  visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  overflow-y: auto; overscroll-behavior: contain;
}
[dir='ltr'] .nav { transform: translateX(105%); }
[dir='rtl'] .nav { transform: translateX(-105%); }
.nav.is-open { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
/* Closed drawer is removed from layout so it can never create horizontal overflow */
@media (max-width: 1359.98px) {
  .nav:not(.is-open):not(.is-animating) { display: none; }
}
.nav__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.nav__list { padding: 8px 8px 0; }
.nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--c-line); }
.nav__link { flex: 1; display: block; padding: 15px 12px; font-weight: 500; font-size: 1.02rem; }
.nav__link[aria-current='page'] { color: var(--c-primary); font-weight: 700; }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-muted); }
.nav__toggle .icon { transition: transform var(--t) var(--ease); }
.nav__toggle[aria-expanded='true'] .icon { transform: rotate(180deg); }
.nav__menu { display: none; width: 100%; padding: 0 8px 12px; }
.nav__menu ul { list-style: none; padding: 0; }
.nav__item.is-open .nav__menu { display: block; }
.nav__menu-head { display: none; }
.nav__menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--r-xs); color: var(--c-ink-2); font-size: var(--fs-sm); }
.nav__menu a:hover { background: var(--c-surface); color: var(--c-primary-600); }
.nav__menu a .icon { width: 16px; height: 16px; opacity: 0.4; }
.nav__menu a.is-overview { font-weight: 600; color: var(--c-ink); }
.nav__drawer-cta { display: grid; gap: 10px; padding: 20px 16px 28px; margin-top: auto; }
.nav__drawer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav__drawer-lang { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: var(--c-muted); font-weight: 500; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(5, 8, 16, 0.5);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity var(--t);
}
.nav-backdrop.is-visible { opacity: 1; }
body.nav-open { overflow: hidden; }
/* backdrop-filter makes the header a containing block for fixed children:
   drop it while the drawer is open so the drawer is sized to the viewport. */
body.nav-open .site-header { z-index: 210; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- 9. Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; font-size: var(--fs-sm); color: var(--c-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .icon { width: 15px; height: 15px; }
.breadcrumbs [aria-current] { color: var(--c-ink); font-weight: 500; }
.section--dark .breadcrumbs, .hero-dark .breadcrumbs { color: var(--d-muted); }
.section--dark .breadcrumbs [aria-current], .hero-dark .breadcrumbs [aria-current] { color: #fff; }

/* ---------- 10. Cards (shared) ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px); box-shadow: var(--sh-xs);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--c-primary-100); }
.card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px;
  color: var(--c-primary); background: linear-gradient(145deg, var(--c-primary-50), #fff);
  border: 1px solid var(--c-primary-100); box-shadow: inset 0 1px 0 #fff, var(--sh-xs);
}
.card__icon .icon { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.card p { color: var(--c-muted); }
.glass {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.section--dark .card { background: var(--d-surface); border-color: var(--d-line); color: var(--d-ink); }
.section--dark .card p { color: var(--d-muted); }
.section--dark .card:hover { border-color: rgba(125, 155, 255, 0.35); background: var(--d-surface-2); }
.section--dark .card__icon { background: rgba(61, 107, 255, 0.14); border-color: rgba(125, 155, 255, 0.25); color: #9fc3ff; box-shadow: none; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ---------- 11. Accordion (FAQ) — works without JS via <details> ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r);
  transition: border-color var(--t), box-shadow var(--t);
}
.accordion details[open] { border-color: var(--c-primary-100); box-shadow: var(--sh); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--fs-md);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { width: 22px; height: 22px; flex-shrink: 0; padding: 3px; border-radius: 50%; background: var(--c-surface); color: var(--c-primary); transition: transform var(--t) var(--ease), background-color var(--t); }
.accordion details[open] summary .icon { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.accordion .accordion__body { padding: 0 22px 22px; color: var(--c-ink-2); }
.accordion .accordion__body p + p { margin-top: 0.8em; }
.accordion .accordion__body a { color: var(--c-primary-600); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 12. Forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink-2); }
.field .req { color: var(--c-danger); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6982' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left 16px center;
}
[dir='ltr'] .select { background-position: right 16px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #c9d1e2; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(31, 75, 255, 0.14); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--c-danger); }
.field__error { display: none; font-size: var(--fs-xs); color: var(--c-danger); }
.field.has-error .field__error { display: block; }
.field__hint { font-size: var(--fs-xs); color: var(--c-muted); }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill);
  border: 1.5px solid var(--c-line); background: #fff; font-weight: 500; font-size: var(--fs-sm);
  transition: all var(--t-fast);
}
.choice span .icon { width: 20px; height: 20px; color: var(--c-muted); }
.choice input:checked + span { border-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary-700); }
.choice input:checked + span .icon { color: var(--c-primary); }
.choice input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* ---------- 13. CTA band (reusable) ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px);
  background: var(--g-dark); color: #fff;
  display: grid; gap: 28px; align-items: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; z-index: -1;
  background: radial-gradient(circle, rgba(61, 107, 255, 0.55), transparent 65%); filter: blur(10px);
}
.cta-band h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); margin-bottom: 12px; }
.cta-band p { color: var(--d-muted); font-size: var(--fs-md); max-width: 620px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); font-weight: 700; color: #fff; margin-top: 10px; }
.cta-band__phone .icon { color: var(--c-accent); }

/* ---------- 14. Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #05070d; color: #c4cce0; padding-top: clamp(56px, 7vw, 96px); }
.footer__glow { position: absolute; inset: -200px auto auto 50%; width: 900px; height: 400px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(31, 75, 255, 0.22), transparent 70%); pointer-events: none; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { display: block; color: #8590ab; }
.footer__top { position: relative; display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
.footer__about { margin-block: 20px; color: #9aa6c2; max-width: 420px; font-size: var(--fs-sm); }
.footer__contact { display: grid; gap: 12px; font-size: var(--fs-sm); }
.footer__contact li, .footer__contact a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__contact a:hover strong { color: var(--c-accent); }
.footer__contact .icon { width: 18px; height: 18px; color: var(--c-accent); }
.footer__contact strong { color: #fff; font-weight: 600; transition: color var(--t-fast); }
.footer__title { font-size: var(--fs-base); color: #fff; margin-bottom: 18px; font-weight: 600; }
.footer__links { display: grid; gap: 11px; font-size: var(--fs-sm); }
.footer__links a { color: #9aa6c2; transition: color var(--t-fast), padding var(--t-fast); }
.footer__links a:hover { color: #fff; padding-inline-start: 4px; }
.footer__cta {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__cta p { color: #fff; font-weight: 600; }
.footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__bottom { padding-block: 28px 32px; padding-inline-start: 0; margin-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: var(--fs-xs); }
.footer__disclaimer { color: #7c87a3; max-width: 980px; line-height: 1.8; margin-bottom: 18px; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: #8590ab; }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; }
.footer__legal a:hover { color: #fff; }
.footer__top-btn { margin-inline-start: auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; transition: background-color var(--t-fast); }
.footer__top-btn:hover { background: rgba(255, 255, 255, 0.1); }
.footer__top-btn .icon { transform: rotate(180deg); }

/* ---------- 15. Floating CTA + mobile bar ---------- */
.floating-cta { position: fixed; z-index: 90; inset-inline-end: 20px; bottom: 24px; display: none; flex-direction: column; gap: 12px; }
.floating-cta__btn {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform var(--t) var(--ease);
}
.floating-cta__btn:hover { transform: scale(1.08); }
.floating-cta__btn .icon { width: 28px; height: 28px; }
.floating-cta__btn--wa { background: var(--c-wa); }
.floating-cta__btn--wa::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-wa);
  animation: ping 2.4s var(--ease) infinite;
}
.floating-cta__btn--call { background: var(--c-ink); }
.floating-cta__tip {
  position: absolute; inset-inline-end: calc(100% + 12px); white-space: nowrap;
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-ink); color: #fff; font-size: var(--fs-sm); font-weight: 500;
  opacity: 0; transform: translateX(calc(6px * var(--dir))); pointer-events: none; transition: opacity var(--t-fast), transform var(--t-fast);
}
.floating-cta__btn:hover .floating-cta__tip, .floating-cta__btn:focus-visible .floating-cta__tip { opacity: 1; transform: none; }

.mobile-bar {
  position: fixed; z-index: 95; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 6px; padding: 6px;
  border-radius: 22px; background: rgba(8, 11, 20, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  transition: transform var(--t) var(--ease);
}
.mobile-bar.is-hidden { transform: translateY(140%); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 16px; color: #fff; font-size: 0.75rem; font-weight: 500; }
.mobile-bar a .icon { width: 22px; height: 22px; }
.mobile-bar a:first-child .icon { color: var(--c-accent); }
.mobile-bar a:last-child .icon { color: #4ade80; }
.mobile-bar__main { background: var(--g-primary); flex-direction: row !important; gap: 8px !important; font-size: 0.9rem !important; font-weight: 600 !important; }
body { padding-bottom: calc(var(--mobile-bar-h) + 16px + env(safe-area-inset-bottom)); }

/* ---------- 16. Search dialog ---------- */
.search-dialog { position: fixed; inset: 0; z-index: 300; display: grid; justify-items: center; align-items: start; padding: 12px; }
.search-dialog[hidden] { display: none; }
.search-dialog__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 16, 0.6); backdrop-filter: blur(6px); animation: fade-in var(--t) var(--ease); }
.search-dialog__panel {
  position: relative; width: min(760px, 100%); margin-top: min(10vh, 90px); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--sh-lg); overflow: hidden; animation: dialog-in 0.4s var(--ease);
}
.search-dialog__form { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--c-line); }
[dir='rtl'] .search-dialog__form { padding: 10px 18px 10px 12px; }
.search-dialog__form > .icon { color: var(--c-primary); width: 24px; height: 24px; }
.search-dialog__form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 14px 4px; font-size: 1.1rem; background: transparent; }
.search-dialog__form input::-webkit-search-cancel-button { display: none; }
.search-dialog__body { max-height: min(62vh, 560px); overflow-y: auto; padding: 14px; }
.search-dialog__hint { padding: 8px 8px 12px; font-size: var(--fs-sm); color: var(--c-muted); }
.search-dialog__results { display: grid; gap: 4px; }
.search-result a { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); transition: background-color var(--t-fast); }
.search-result a:hover, .search-result a[aria-selected='true'] { background: var(--c-surface); }
.search-result__icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--c-primary-50); color: var(--c-primary); }
.search-result__title { font-weight: 600; color: var(--c-ink); }
.search-result__desc { font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result mark { background: rgba(56, 189, 248, 0.25); color: inherit; border-radius: 3px; padding-inline: 1px; }
.search-dialog__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 8px; }
.search-dialog__chips button { padding: 7px 14px; border-radius: var(--r-pill); background: var(--c-surface); font-size: var(--fs-sm); transition: background-color var(--t-fast); }
.search-dialog__chips button:hover { background: var(--c-primary-50); color: var(--c-primary-700); }
.search-empty { padding: 24px 8px; text-align: center; color: var(--c-muted); }
.search-empty .btn-row { justify-content: center; margin-top: 14px; }
body.search-open { overflow: hidden; }

/* ---------- 17. Media placeholders ---------- */
/* Styled frame shown where a licensed photo/video will be added later */
.media-frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: radial-gradient(120% 80% at 50% 0%, #ffffff, #e8edf6);
  border: 1px solid var(--c-line);
}
.media-frame img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 18. Language suggestion toast (js/language.js) ---------- */
.lang-suggest {
  position: fixed; z-index: 120; inset-inline: 12px; bottom: calc(var(--mobile-bar-h) + 24px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; max-width: 520px; margin-inline: auto;
  padding: 12px 14px 12px 18px; border-radius: var(--r); background: var(--c-ink); color: #fff;
  box-shadow: var(--sh-lg); font-size: var(--fs-sm); animation: rise-in 0.5s var(--ease) both;
}
.lang-suggest a { font-weight: 700; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.lang-suggest button { margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.1); }
@media (min-width: 768px) { .lang-suggest { bottom: 24px; } }

/* ---------- 19. Inner page hero (all non-home pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--c-surface) 0%, #fff 100%);
}
.page-hero__bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(31, 75, 255, 0.12), transparent 70%),
    radial-gradient(400px 260px at 0% 100%, rgba(56, 189, 248, 0.12), transparent 70%);
}
.page-hero .breadcrumbs { margin-bottom: 26px; }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); margin-block: 16px 14px; max-width: 900px; }
.page-hero__lead { font-size: var(--fs-lg); color: var(--c-muted); max-width: 760px; line-height: 1.8; }
.page-hero--center { text-align: center; }
.page-hero--center .page-hero__lead { margin-inline: auto; }

