/* ============================================================
   Atlas Mooj — Premium industrial design system (v19)
   Theme: midnight steel navy + molten gold, glass header,
   soft glow, elegant motion. Brand colors from the logo.
   ============================================================ */
@import url("../fonts/vazirmatn.css");

:root {
  --blue-950: #061627;
  --blue-900: #0a2140;
  --blue-800: #0e2e58;
  --blue-700: #12407c;
  --blue-600: #1a56a0;
  --blue-500: #2468bd;
  --blue-300: #7fa8d9;
  --cyan: #37b6e0;
  --yellow: #ffd400;
  --yellow-dark: #e6b800;
  --gold-grad: linear-gradient(135deg, #ffd400 0%, #ffb01f 55%, #ff8a3d 100%);
  --steel-grad: linear-gradient(120deg, #12407c 0%, #1a56a0 55%, #2a7cc9 100%);
  --ink: #16202e;
  --muted: #55677e;
  --line: #dbe3ec;
  --bg: #f3f6fb;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(7, 26, 51, 0.09);
  --shadow-lg: 0 18px 50px rgba(7, 26, 51, 0.16);
  --shadow-gold: 0 10px 28px rgba(230, 160, 20, 0.35);
  --font-fa: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --header-h: 68px;
}

/* ---------- Dark theme ---------- */
html.preload-dark body { background: #081120; }
body.dark {
  --ink: #e6edf6;
  --muted: #9fb2c8;
  --line: #23374f;
  --bg: #081120;
  --card: #101f35;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 10px 28px rgba(230, 160, 20, 0.22);
}
body.dark { background: var(--bg); }
body.dark .site-header { background: rgba(8, 17, 32, 0.85); }
body.dark .main-nav a { color: var(--ink); }
body.dark .main-nav a:hover { background: #16293f; color: var(--yellow); }
body.dark .main-nav .mobile-extra { border-top-color: var(--line); }
body.dark .brand { color: #fff; }
body.dark .brand-text small { color: var(--muted); }
body.dark .nav-toggle span { background: #fff; }
body.dark .section.alt { background: #0c1930; }
body.dark .section-head h2 { color: #fff; }
body.dark .card, body.dark .service-row, body.dark .form-card,
body.dark .contact-item, body.dark .pillar, body.dark .process-step,
body.dark .ai-group, body.dark .ai-mini, body.dark .ai-item {
  background: var(--card); border-color: var(--line);
}
body.dark .card-body h3, body.dark .service-row h3, body.dark .form-card h3,
body.dark .contact-item b, body.dark .pillar b, body.dark .img-card,
body.dark .ai-group h3, body.dark .ai-mini h3, body.dark .ai-item b { color: #fff; }
body.dark .field input, body.dark .field textarea { background: #0e1c30; color: var(--ink); border-color: var(--line); }
body.dark .field label { color: var(--ink); }
body.dark .form-card p { color: var(--muted); }
body.dark .tag { background: #16293f; border-color: var(--line); color: #cfdcec; }
body.dark .btn-outline { border-color: #3d5a80; color: #cfdcec; }
body.dark .btn-outline:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }
body.dark .alert-ok { background: #12331f; border-color: #1f5c33; color: #7fd79a; }
body.dark .page-hero { background: linear-gradient(120deg, #050e1b, #0e2e58); }
body.dark .quote-band { background: linear-gradient(120deg, #0e2e58, #12407c); }
body.dark .split h2 { color: #fff; }
body.dark .site-footer { background: #040c18; }
body.dark .footer-bottom { border-top-color: rgba(255,255,255,0.08); }
body.dark .ai-results th { background: #0e1c30; color: #fff; }
body.dark .ai-results td { background: var(--card); }
body.dark .ai-results tr:nth-child(even) td { background: #0c1930; }
body.dark .theme-toggle { color: var(--yellow); }
body.dark .back-top { background: var(--gold-grad); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-en);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.rtl { font-family: var(--font-fa); }

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }

.container { width: min(1180px, 92%); margin-inline: auto; }

::selection { background: rgba(255, 212, 0, 0.35); }

/* ============================================================
   Header — sticky glass bar, responsive drawer menu
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 28px rgba(7, 26, 51, 0.12); }
body.dark .site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5); }

.header-inner { display: flex; align-items: center; gap: 16px; padding: 10px 0; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--blue-900); flex: none; }
.brand img { border-radius: 10px; box-shadow: 0 4px 14px rgba(7, 26, 51, 0.25); transition: transform .25s; }
.brand:hover img { transform: scale(1.05) rotate(-2deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.06rem; letter-spacing: 0.05em; }
.brand-text small { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; }

/* Desktop nav */
.main-nav { display: flex; align-items: center; margin-inline-start: auto; min-width: 0; }
.main-nav .nav-scroll {
  display: flex; flex-wrap: nowrap; gap: 2px;
  overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none;
}
.main-nav .nav-scroll::-webkit-scrollbar { display: none; }
.main-nav a {
  color: var(--ink); font-size: 0.86rem; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; position: relative;
  transition: color .18s, background .18s; white-space: nowrap;
}
.main-nav a:hover { background: rgba(18, 64, 124, 0.07); color: var(--blue-700); }
body.dark .main-nav a:hover { background: #16293f; }
.main-nav a.current { color: var(--blue-700); }
body.dark .main-nav a.current { color: var(--yellow); }
.main-nav a.current::after {
  content: ""; position: absolute; inset-inline: 8px; bottom: 2px; height: 3px;
  background: var(--gold-grad); border-radius: 2px;
}
.mobile-extra { display: none; }

/* "More" dropdown in nav */
@media (min-width: 1201px) {
  /* allow the dropdown panel to extend below the nav bar without clipping */
  .main-nav .nav-scroll { overflow: visible; }
}
.nav-more {
  position: relative; flex: none;
}
.nav-more:hover .nav-more-btn, .nav-more.open .nav-more-btn { background: rgba(18, 64, 124, 0.07); color: var(--blue-700); }
.nav-more-btn {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--ink); font-size: 0.86rem; font-weight: 600; font-family: inherit;
  background: none; border: 0; cursor: pointer;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transition: color .18s, background .18s;
}
.nav-more-btn svg { width: 15px; height: 15px; transition: transform .2s; }
.nav-more-btn:hover, .nav-more.open .nav-more-btn { background: rgba(18, 64, 124, 0.07); color: var(--blue-700); }
body.dark .nav-more-btn:hover, body.dark .nav-more.open .nav-more-btn { background: #16293f; }
.nav-more-btn.current { color: var(--blue-700); }
body.dark .nav-more-btn.current { color: var(--yellow); }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
.nav-drop {
  position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px;
  background: var(--card); border: 1px solid var(--line); border-radius: 0 0 12px 12px;
  border-top-width: 1px;
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.16);
  padding: 8px; display: flex; flex-direction: column; gap: 2px; z-index: 95;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  /* closing is delayed so moving the pointer onto the panel keeps it open */
  transition: opacity .15s ease .22s, transform .15s ease .22s, visibility 0s linear .22s; pointer-events: none;
}
.nav-more:hover .nav-drop, .nav-more:focus-within .nav-drop, .nav-more.open .nav-drop {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition-delay: 0s;
}
.nav-drop a {
  color: var(--ink); font-size: 0.88rem; font-weight: 600;
  padding: 9px 12px; border-radius: 8px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-drop a:hover { background: rgba(18, 64, 124, 0.07); color: var(--blue-700); }
body.dark .nav-drop { background: #0e2136; }
body.dark .nav-drop a:hover { background: #16293f; color: var(--yellow); }
.nav-drop a.current { color: var(--blue-700); background: rgba(18, 64, 124, 0.08); }
body.dark .nav-drop a.current { color: var(--yellow); background: #16293f; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.theme-toggle {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  width: 38px; height: 36px; display: grid; place-items: center;
  color: var(--blue-800); cursor: pointer; line-height: 1; transition: border-color .18s, transform .18s;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { border-color: var(--yellow); transform: translateY(-1px); }
body.dark .theme-toggle { background: #16293f; border-color: var(--line); }
.theme-toggle .ico-sun { display: none; }
body.dark .theme-toggle .ico-sun { display: block; }
body.dark .theme-toggle .ico-moon { display: none; }

.lang-switch { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; }
.lang-switch a { color: var(--muted); font-weight: 700; padding: 4px 7px; border-radius: 7px; transition: .15s; }
.lang-switch a:hover { color: var(--blue-700); background: rgba(18, 64, 124, 0.08); }
body.dark .lang-switch a:hover { color: var(--yellow); background: #16293f; }
.lang-switch a.active { color: var(--blue-800); background: rgba(18, 64, 124, 0.10); }
body.dark .lang-switch a.active { color: var(--yellow); background: #16293f; }
.lang-switch span { color: var(--line); font-weight: 700; }

/* Hamburger */
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px 6px; cursor: pointer;
  width: 40px; height: 40px; border-radius: 10px; transition: background .18s;
}
.nav-toggle:hover { background: rgba(18, 64, 124, 0.08); }
body.dark .nav-toggle:hover { background: #16293f; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--blue-900);
  margin: 5px 0; border-radius: 2px; transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Scroll progress line */
.scroll-progress {
  position: absolute; inset-inline: 0; bottom: -1px; height: 2.5px;
  background: var(--gold-grad); width: 0;
  transform-origin: left center; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.6);
}
body.rtl .scroll-progress { transform-origin: right center; }

/* Backdrop behind mobile drawer */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 55; background: rgba(4, 12, 24, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  inset-inline-start: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: inset-inline-start .5s ease;
  pointer-events: none;
}
.btn:hover::after { inset-inline-start: 130%; }
.btn-primary { background: var(--steel-grad); color: #fff; box-shadow: 0 8px 20px rgba(18, 64, 124, 0.35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(18, 64, 124, 0.45); }
.btn-accent { background: var(--gold-grad); color: var(--blue-950); box-shadow: var(--shadow-gold); }
.btn-accent:hover { color: var(--blue-950); transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; border-color: var(--blue-700); transform: translateY(-2px); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; border-radius: 10px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, var(--blue-950) 0%, var(--blue-800) 55%, var(--blue-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right, rgba(6, 22, 39, 0.96) 24%, rgba(6, 22, 39, 0.6) 60%, rgba(6, 22, 39, 0.25)),
    radial-gradient(640px 320px at 12% 8%, rgba(255, 212, 0, 0.14), transparent 65%),
    radial-gradient(720px 420px at 88% 90%, rgba(55, 182, 224, 0.18), transparent 65%);
}
.hero::after {
  /* engineering grid texture */
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 420px at 20% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(720px 420px at 20% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .hero-img {
  position: absolute; inset: 0; z-index: 1;
  background: url("/img/hero-rolling-line.jpg") center right / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 46%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 46%, #101010 100%);
  filter: saturate(1.15) contrast(1.06);
  opacity: 0.95;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.07) translateY(-1.2%); }
}
body.dark .hero .hero-img { opacity: 0.8; }
.hero-inner { position: relative; z-index: 3; padding: 92px 0 104px; max-width: 780px; }
body.rtl .hero::before {
  background:
    linear-gradient(to left, rgba(6, 22, 39, 0.96) 24%, rgba(6, 22, 39, 0.6) 60%, rgba(6, 22, 39, 0.25)),
    radial-gradient(640px 320px at 88% 8%, rgba(255, 212, 0, 0.14), transparent 65%),
    radial-gradient(720px 420px at 12% 90%, rgba(55, 182, 224, 0.18), transparent 65%);
}
body.rtl .hero .hero-img {
  background-position: center left;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 46%, #000 100%);
  mask-image: linear-gradient(to left, transparent 0%, #000 46%, #000 100%);
}
body.rtl .hero-inner { margin-inline-start: auto; }
body.rtl .hero h1, body.rtl .hero p.lead, body.rtl .hero .slogan, body.rtl .hero-cta {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}
.hero .slogan {
  display: inline-block; border: 1px dashed rgba(255, 212, 0, 0.55); color: var(--yellow);
  padding: 8px 16px; border-radius: 8px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 28px;
  background: rgba(6, 22, 39, 0.55);
  animation: slogan-glow 3.4s ease-in-out infinite;
}
@keyframes slogan-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 212, 0, 0); }
  50% { box-shadow: 0 0 24px rgba(255, 212, 0, 0.28); }
}
.hero .btn-ghost-light { background: rgba(6, 22, 39, 0.55); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--yellow); font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px;
}
.hero-kicker::before { content: ""; width: 34px; height: 3px; background: var(--gold-grad); border-radius: 2px; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.22; margin: 0 0 20px;
  font-weight: 800; letter-spacing: -0.01em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}
.hero p.lead { font-size: 1.08rem; color: #d6e2f0; margin: 0 0 26px; max-width: 680px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip {
  position: relative; z-index: 3; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.14);
  border-top: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
}
.hero-strip a {
  display: block; background: rgba(6, 22, 39, 0.55); padding: 16px 18px; text-align: center;
  font-weight: 700; font-size: 0.86rem; transition: background .25s, transform .25s;
  color: #fff; text-decoration: none; position: relative;
}
.hero-strip a:hover { background: rgba(18, 64, 124, 0.6); }
.hero-strip a span { display: block; color: var(--yellow); font-size: 1.35rem; }
.hero-strip a::after {
  content: "›"; position: absolute; top: 8px; inset-inline-end: 10px;
  color: rgba(255, 212, 0, 0.85); font-size: 1rem; opacity: 0; transform: scale(.6);
  transition: opacity .25s, transform .25s;
}
.hero-strip a:hover::after { opacity: 1; transform: scale(1.15); }
body.rtl .hero-strip a::after { content: "‹"; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 76px 0; position: relative; }
.section.alt { background: #fff; }
body.dark .section.alt { background: #0c1930; }
.section.dark {
  background:
    radial-gradient(720px 380px at 85% 0%, rgba(55, 182, 224, 0.14), transparent 60%),
    radial-gradient(640px 380px at 8% 100%, rgba(255, 212, 0, 0.10), transparent 60%),
    var(--blue-900);
  color: #fff;
}
.section.dark .section-lead { color: #b9c8da; }
.section-head { max-width: 780px; margin-bottom: 42px; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--blue-600); font-weight: 800; font-size: 0.76rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px;
}
.section-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(255, 200, 0, 0.55);
}
.section.dark .section-kicker { color: var(--yellow); }
.section-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin: 0 0 12px; color: var(--blue-900);
  letter-spacing: -0.01em; line-height: 1.3;
}
.section.dark .section-head h2 { color: #fff; }
.section-lead { color: var(--muted); margin: 0; font-size: 1.02rem; }
.section-head .rule { width: 56px; height: 4px; background: var(--gold-grad); border-radius: 2px; margin-top: 16px; box-shadow: 0 2px 10px rgba(255,200,0,.45); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  position: relative; transition: transform .25s ease, box-shadow .25s ease;
}
.card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease; z-index: 2;
}
body.rtl .card::before { transform-origin: right; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; object-position: center; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-img-wrap { overflow: hidden; }
.card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; color: var(--blue-900); }
.card-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card-code { font-weight: 800; color: var(--yellow-dark); font-size: 0.85rem; letter-spacing: 0.1em; }

.icon-card { padding: 26px 22px; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--steel-grad); color: #fff; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(18, 64, 124, 0.3);
  position: relative;
}
.icon-badge::after {
  content: ""; position: absolute; inset: -2px; border-radius: 16px; z-index: -1;
  background: var(--gold-grad); opacity: 0; transition: opacity .25s;
}
.card:hover .icon-badge::after { opacity: 0.75; }
.icon-badge svg { width: 26px; height: 26px; }
.section.dark .icon-badge { background: var(--gold-grad); color: var(--blue-950); box-shadow: var(--shadow-gold); }
.section.dark .icon-badge::after { display: none; }

/* ---------- Portrait image cards (img/cards) ---------- */
.img-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.img-card {
  display: block; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card);
  transition: transform .28s ease, box-shadow .28s ease;
}
.img-card img { width: 100%; aspect-ratio: 327/404; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.img-card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 0 rgba(255, 212, 0, 0); transition: box-shadow .28s ease;
  background: linear-gradient(to top, rgba(6, 22, 39, 0.28), transparent 38%);
  pointer-events: none;
}
.img-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.img-card:hover img { transform: scale(1.05); }
.img-card:hover::after { box-shadow: inset 0 0 0 3px rgba(255, 200, 0, 0.85); }
.img-card-label {
  position: absolute; z-index: 3; inset-inline: 10px; bottom: 10px;
  padding: 8px 12px; border-radius: 8px; text-align: center;
  font-weight: 700; font-size: 0.88rem; color: #fff;
  background: linear-gradient(to top, rgba(6, 22, 39, 0.88), rgba(6, 22, 39, 0.55));
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* service list rows */
.service-row {
  display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: stretch;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-row .svc-media { overflow: hidden; position: relative; }
.service-row .svc-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 70%, var(--card));
  pointer-events: none;
}
body.rtl .service-row .svc-media::after { background: linear-gradient(to left, transparent 70%, var(--card)); }
.service-row img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center; transition: transform .5s ease; }
.service-row:hover img { transform: scale(1.04); }
.service-row .svc-body { padding: 26px 30px 26px 8px; }
body.rtl .service-row .svc-body { padding: 26px 8px 26px 30px; }
.service-row h3 { margin: 6px 0 10px; color: var(--blue-900); font-size: 1.2rem; }
.service-row p { margin: 0; color: var(--muted); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.split .photo-stack { position: relative; }
.split .photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split .photo-stack .badge-float {
  position: absolute; bottom: -18px; inset-inline-start: -18px;
  background: var(--gold-grad); color: var(--blue-950); font-weight: 800;
  padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow-gold); font-size: 0.9rem;
}
.split h2 { color: var(--blue-900); font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0 0 14px; }
.split p { color: var(--muted); margin: 0 0 14px; }
.pillars { display: grid; gap: 12px; margin-top: 22px; }
.pillar {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateX(4px); border-color: rgba(255, 200, 0, 0.7); }
body.rtl .pillar:hover { transform: translateX(-4px); }
.pillar b { color: var(--blue-800); }
.pillar span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.process-step {
  position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 24px; overflow: hidden;
  transition: background .25s, transform .25s, border-color .25s;
}
.process-step::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold-grad); opacity: .75;
}
.process-step:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); border-color: rgba(255, 212, 0, 0.4); }
.process-step .num { font-size: 2rem; font-weight: 800; color: var(--yellow); opacity: 0.9; }
.process-step h3 { margin: 6px 0 8px; font-size: 1.02rem; }
.process-step p { margin: 0; color: #b9c8da; font-size: 0.9rem; }

/* ---------- Projects ---------- */
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.tag {
  background: var(--bg); border: 1px solid var(--line); color: var(--blue-800);
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Quote CTA ---------- */
.quote-band {
  background:
    radial-gradient(420px 240px at 92% 0%, rgba(55, 182, 224, 0.2), transparent 60%),
    linear-gradient(120deg, var(--blue-800), var(--blue-600));
  color: #fff; border-radius: 20px; padding: 40px 44px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.quote-band::before {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 260px; height: 260px;
  background: var(--yellow); opacity: 0.14; border-radius: 50%;
  animation: float-slow 9s ease-in-out infinite alternate;
}
@keyframes float-slow { from { transform: translateY(0); } to { transform: translateY(18px); } }
.quote-band h2 { margin: 0 0 10px; font-size: 1.5rem; }
.quote-band ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.quote-band li {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  padding: 5px 12px; border-radius: 999px; font-size: 0.8rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-list { display: grid; gap: 14px; align-content: start; }
.contact-item {
  display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.contact-item:hover { transform: translateY(-2px); border-color: rgba(255, 200, 0, 0.7); }
.contact-item .icon-badge { width: 44px; height: 44px; margin: 0; flex: none; border-radius: 12px; }
.contact-item .icon-badge svg { width: 22px; height: 22px; }
.contact-item b { display: block; color: var(--blue-900); font-size: 0.85rem; }
.contact-item span, .contact-item a { color: var(--muted); font-size: 0.95rem; }

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.form-card h3 { margin: 0 0 6px; color: var(--blue-900); }
.form-card .hint { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.85rem; color: var(--blue-900); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(36, 104, 189, 0.18); background: #fff;
}
.field input[type="file"] { padding: 8px 10px; font-size: 0.82rem; }
.field .fine { color: var(--muted); font-size: 0.76rem; margin: 5px 0 0; display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Keep LTR numbers readable in RTL layout (phone, WhatsApp) ---------- */
.num-ltr { direction: ltr; unicode-bidi: isolate; }
body.rtl a[href^="tel:"], body.rtl a[href*="wa.me"], body.rtl .num-ltr { direction: ltr; unicode-bidi: isolate; }
.alert-ok { background: #e8f7ec; border: 1px solid #bfe6c9; color: #1d7a3a;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { margin: 0; position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center; transition: transform 0.45s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(6, 22, 39, 0.94)); color: #fff;
  font-size: 0.78rem; font-weight: 700; padding: 30px 12px 10px;
  transform: translateY(4px); opacity: .92; transition: transform .3s, opacity .3s;
}
.gallery-item:hover figcaption { transform: none; opacity: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(560px 300px at 88% 12%, rgba(55, 182, 224, 0.16), transparent 60%),
    radial-gradient(480px 280px at 6% 100%, rgba(255, 212, 0, 0.12), transparent 60%),
    linear-gradient(120deg, var(--blue-950), var(--blue-700));
  color: #fff; padding: 58px 0 48px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(560px 260px at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(560px 260px at 80% 20%, #000, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
.page-hero p { margin: 0; color: #b9c8da; max-width: 740px; }
.crumbs { font-size: 0.8rem; color: #8fa6c0; margin-bottom: 14px; }
.crumbs a { color: #cfdcec; }
.crumbs a:hover { color: var(--yellow); }

/* ============================================================
   AI — home teaser + dedicated page
   ============================================================ */
.section.ai {
  background:
    radial-gradient(680px 360px at 12% 8%, rgba(55, 182, 224, 0.16), transparent 60%),
    radial-gradient(620px 380px at 88% 92%, rgba(255, 212, 0, 0.12), transparent 60%),
    linear-gradient(135deg, #071c33 0%, #0e2e58 60%, #10407c 100%);
  color: #fff; overflow: hidden;
}
.section.ai::before {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(720px 420px at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.section.ai .container { position: relative; z-index: 2; }
.section.ai .section-kicker { color: var(--yellow); }
.section.ai .section-head h2 { color: #fff; }
.section.ai .section-lead { color: #b9c8da; }
.ai-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-mini {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(4px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative; overflow: hidden;
}
.ai-mini::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
body.rtl .ai-mini::before { transform-origin: right; }
.ai-mini:hover { transform: translateY(-5px); border-color: rgba(255, 212, 0, 0.45); background: rgba(255,255,255,0.1); }
.ai-mini:hover::before { transform: scaleX(1); }
.ai-mini .icon-badge { background: var(--gold-grad); color: var(--blue-950); box-shadow: var(--shadow-gold); }
.ai-mini .icon-badge::after { display: none; }
.ai-mini h3 { margin: 0 0 10px; font-size: 1.05rem; color: #fff; }
.ai-mini ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.ai-mini li { color: #c3d2e4; font-size: 0.86rem; display: flex; gap: 8px; align-items: baseline; }
.ai-mini li::before { content: "◆"; color: var(--yellow); font-size: 0.6rem; flex: none; }

/* AI page */
.ai-intro {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
  font-size: 1.04rem; color: var(--ink);
}
body.rtl .ai-intro { border-left: 1px solid var(--line); border-right: 4px solid var(--yellow); }
body.dark .ai-intro { border-color: var(--line); border-inline-start: 4px solid var(--yellow); }

.ai-group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 26px;
  display: grid; grid-template-columns: 300px 1fr;
}
.ai-group .ai-group-media { position: relative; overflow: hidden; min-height: 220px; }
.ai-group .ai-group-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ai-group .ai-group-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 62%, var(--card)), linear-gradient(to top, rgba(6,22,39,.45), transparent 55%);
}
body.rtl .ai-group .ai-group-media::after { background: linear-gradient(to left, transparent 62%, var(--card)), linear-gradient(to top, rgba(6,22,39,.45), transparent 55%); }
.ai-group .ai-group-body { padding: 26px 30px; }
.ai-group h3 { margin: 0 0 16px; color: var(--blue-900); font-size: 1.22rem; display: flex; align-items: center; gap: 12px; }
.ai-group h3 .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; flex: none; }
.ai-group h3 .icon-badge svg { width: 22px; height: 22px; }
.ai-item { border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 10px; background: var(--bg); transition: border-color .2s, transform .2s; }
.ai-item:hover { border-color: rgba(255, 200, 0, 0.75); transform: translateX(3px); }
body.rtl .ai-item:hover { transform: translateX(-3px); }
.ai-item b { display: block; color: var(--blue-800); font-size: 0.95rem; margin-bottom: 3px; }
.ai-item span { color: var(--muted); font-size: 0.9rem; display: block; }
.ai-item b::before { content: "◆"; color: var(--yellow-dark); margin-inline-end: 8px; font-size: 0.62rem; }

.ai-results { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ai-results th {
  background: var(--blue-900); color: #fff; text-align: start; padding: 14px 20px;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.ai-results th:first-child { width: 34%; }
.ai-results td { padding: 14px 20px; background: var(--card); border-top: 1px solid var(--line); font-size: 0.94rem; }
.ai-results tr:nth-child(even) td { background: #f7fafd; }
.ai-results td:first-child { font-weight: 800; color: var(--blue-800); }
.ai-results td:first-child::before { content: "◆"; color: var(--yellow-dark); margin-inline-end: 9px; font-size: 0.62rem; }
.ai-results td:last-child { color: var(--muted); }

.ai-why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ai-why-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.ai-why-item:hover { transform: translateY(-3px); border-color: rgba(255, 200, 0, 0.7); }
.ai-why-item .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: var(--blue-950); font-weight: 900; font-size: 0.8rem; margin-top: 2px;
}
.ai-why-item span { color: var(--ink); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #b9c8da; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.2fr; gap: 40px; padding: 56px 0 34px; }
.footer-brand strong { display: block; color: #fff; margin: 12px 0 8px; font-size: 1.05rem; }
.footer-brand p { margin: 0; font-size: 0.88rem; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 0.95rem; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.88rem; }
.footer-links a { color: #b9c8da; transition: color .15s, padding-inline-start .15s; }
.footer-links a:hover { color: var(--yellow); padding-inline-start: 6px; }
.footer-contact a { color: #b9c8da; }
.footer-contact a:hover { color: var(--yellow); }
.footer-contact span { color: #7f93ab; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 0.82rem; gap: 12px; flex-wrap: wrap; }
.admin-link { color: #7f93ab; font-size: 0.78rem; }
.admin-link:hover { color: var(--yellow); }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--gold-grad); color: var(--blue-950);
  display: grid; place-items: center;
  box-shadow: var(--shadow-gold);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { filter: brightness(1.06); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Anchor offset under sticky header ---------- */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- Floating quick-contact bar (the "one-tap roadmap") ---------- */
.quick-bar {
  position: fixed; inset-inline-start: 16px; top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); transform: none;
  z-index: 88; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.qb-btn {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 26px rgba(7, 26, 51, 0.38);
  transition: transform .2s, filter .2s;
}
.qb-btn:hover { transform: translateY(-3px); filter: brightness(1.09); }
.qb-btn svg { width: 22px; height: 22px; }
.qb-call { background: linear-gradient(135deg, #14406f, #0a2a52); }
.qb-wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.qb-rfq {
  width: auto; height: 48px; padding: 0 18px; border-radius: 26px;
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.86rem; color: #2a1e00;
  background: var(--gold-grad);
  box-shadow: 0 10px 26px rgba(255, 200, 0, 0.28);
}
body.dark .qb-call { background: linear-gradient(135deg, #1c4d8f, #12365f); }
body.dark .qb-rfq { color: #1c1400; }

/* ---------- Quick-path (roadmap) cards ---------- */
a.qp-card { color: inherit; text-decoration: none; }
a.qp-card:hover h3 { color: var(--blue-700); }
body.dark a.qp-card:hover h3 { color: var(--yellow); }
.qp-card .arrow {
  position: absolute; inset-inline-end: 16px; bottom: 12px;
  color: var(--yellow); font-weight: 800; font-size: 1.1rem;
  transition: transform .2s;
}
.qp-card .card-body { position: relative; padding-bottom: 26px; }
a.qp-card:hover .arrow { transform: translateX(-4px); }
body.rtl a.qp-card:hover .arrow { transform: translateX(4px); }
.qp-hot { border-color: rgba(255, 200, 0, 0.5); }

/* ---------- "More details" link on service rows ---------- */
.link-more {
  font-weight: 700; font-size: 0.86rem; color: var(--blue-700);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px dashed rgba(18, 64, 124, 0.45); padding-bottom: 2px;
}
.link-more:hover { color: var(--blue-900); }
body.dark .link-more { color: var(--yellow); border-bottom-color: rgba(255, 200, 0, 0.5); }
body.dark .link-more:hover { color: #ffd84d; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1160px) {
  .main-nav a { padding: 8px 7px; font-size: 0.8rem; }
  .header-inner { gap: 10px; }
  .brand-text strong { font-size: 1rem; }
}
@media (max-width: 1020px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .quote-band { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row .svc-media::after { display: none; }
  .service-row img { min-height: 210px; aspect-ratio: 16/9; height: auto; }
  .service-row .svc-body, body.rtl .service-row .svc-body { padding: 22px 24px; }
  .hero-strip { grid-template-columns: repeat(3, 1fr); }
  .img-cards { grid-template-columns: repeat(3, 1fr); }
  .ai-mini-grid { grid-template-columns: 1fr; }
  .ai-group { grid-template-columns: 1fr; }
  .ai-group .ai-group-media { min-height: 200px; }
  .ai-group .ai-group-media::after { background: linear-gradient(to top, var(--card) 0%, transparent 60%); }
  .ai-why-grid { grid-template-columns: 1fr; }
}

/* ----- Header drawer (tablet & mobile) ----- */
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .desktop-lang { display: none; }
  .quote-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; inset-inline: 0;
    display: flex; flex-direction: column; align-items: stretch;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(7, 26, 51, 0.18);
    max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px 5% calc(14px + env(safe-area-inset-bottom));
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav .nav-scroll { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .main-nav a {
    padding: 12px 12px; font-size: 0.95rem; border-radius: 10px;
    border-bottom: 1px solid transparent;
  }
  .main-nav a + a { border-top: 0; }
  .main-nav a.current { background: rgba(18, 64, 124, 0.08); }
  body.dark .main-nav a.current { background: #16293f; }
  .main-nav a.current::after { inset-inline: 12px; bottom: 6px; }
  .nav-more { display: block; }
  .nav-more-btn { width: 100%; justify-content: space-between; padding: 12px 12px; font-size: 0.95rem; border-radius: 10px; }
  .nav-more.open .nav-more-btn { background: rgba(18, 64, 124, 0.08); }
  body.dark .nav-more.open .nav-more-btn { background: #16293f; }
  .nav-drop {
    position: static; min-width: 0; padding: 0 0 0 10px;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    display: none;
  }
  .nav-more:hover .nav-drop, .nav-more:focus-within .nav-drop { display: none; }
  .nav-more.open .nav-drop { display: flex; }
  .nav-drop a { font-size: 0.9rem; color: var(--muted); padding: 10px 12px; }
  .mobile-extra {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 12px; padding: 14px 4px 4px; border-top: 1px solid var(--line);
  }
  .mobile-extra .lang-switch { font-size: 0.95rem; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 0.98rem; }
  .brand-text small { font-size: 0.6rem; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .quick-bar {
    inset-inline-start: 10px; inset-inline-end: auto;
    top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none;
    gap: 9px;
  }
  .quick-bar .qb-btn { width: 44px; height: 44px; }
  .quick-bar .qb-btn svg { width: 20px; height: 20px; }
  .qb-rfq { width: 44px; padding: 0; justify-content: center; }
  .qb-rfq span { display: none; }
  .hero-inner { padding: 58px 0 66px; }
  .quote-band { padding: 28px 24px; }
  .section { padding: 58px 0; }
  .ai-group .ai-group-body { padding: 20px 20px; }
  .ai-results th, .ai-results td { padding: 11px 14px; font-size: 0.88rem; }
  .ai-results th:first-child { width: 38%; }
  .back-top { inset-inline-end: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
  .img-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero .hero-img {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%), none;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 55%, transparent 100%);
    opacity: 0.45;
  }
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(6,22,39,.9), rgba(6,22,39,.72) 55%, rgba(6,22,39,.92)),
      radial-gradient(520px 300px at 50% 0%, rgba(255,212,0,.12), transparent 60%);
  }
  .hero-strip a { padding: 12px 10px; font-size: 0.78rem; }
  .hero-strip a span { font-size: 1.1rem; }
  .header-inner { min-height: 60px; padding: 8px 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 0.95rem; }
  .theme-toggle { width: 36px; height: 34px; }
  .badge-float { position: static !important; display: inline-block; margin-top: 12px; box-shadow: var(--shadow) !important; }
  .split { gap: 26px; }
}
@media (max-width: 380px) {
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .main-nav a { font-size: 0.9rem; }
}
