/* ==========================================================================
   Public website theme — "Logisco" inspired
   Dark navy bands (topbar / navbar / hero / stats / footer) combined with
   light content sections and an orange accent.

   Loaded ONLY by app/views/layouts/site.php (after app.css), and scoped to
   body.site-public, so the admin panel and portals are untouched.

   Logical properties (inset-inline-*, margin-inline-*) are used throughout
   so the design works in both RTL and LTR.
   ========================================================================== */

:root {
  /* Dark bands — neutral charcoal (replaces the old petrol/navy tones).
     #171717 (deepest) → #212121 (dominant) → #2b2b2b (mid) → #333333 (highlight) */
  --navy-900: #171717;
  --navy-800: #212121;
  --navy-700: #2b2b2b;
  --navy-600: #333333;
  /* Accent — reference's punchy button orange #ffd103 */
  --orange: #ffd103;
  --orange-600: #e0b400;
  --orange-300: #ffe566; --orange-ink: #8a6d00;
  /* Text — teal-shifted neutrals so nothing reads blue next to the bands */
  --ink: #0a2a33;
  --ink-soft: #54686d;
  --line: rgba(10, 42, 51, .09);
}

body.site-public {
  --accent: var(--orange);
  --band-bg: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  --band-solid: var(--navy-800);
  --content-bg: #f8fbfb;      /* reference's tinted white (49.9% of the image) */
  --content-bg-2: #eef7f7;    /* muted sections, keeps the same cool cast */
  --card-bg: #ffffff;         /* cards stay pure white against the tint */
  --content-ink: var(--ink);
  --content-ink-soft: var(--ink-soft);
  --card-line: var(--line);
  --chev-a: rgba(255, 209, 3, .85);
  --chev-b: rgba(13, 148, 152, .75);
}

html[data-theme="dark"] body.site-public {
  --content-bg: #121212;
  --content-bg-2: #1a1a1a;
  --card-bg: #262626;
  --content-ink: #e6f2f4;
  --content-ink-soft: #8fa9b0;
  --card-line: rgba(255, 255, 255, .08);
  /* app.css sets `html[data-theme="dark"] body` (0,1,2) which outranks a bare
     `body.site-public` (0,1,1) — restate background/colour here so the
       public site keeps its own dark palette. */
  background: var(--content-bg);
  color: var(--content-ink);
}

body.site-public {
  background: var(--content-bg);
  color: var(--content-ink);
  font-size: .95rem;
}

body.site-public a { text-decoration: none; }
body.site-public a:hover { text-decoration: none; }

/* --------------------------------------------------------------------------
   Top utility bar
   -------------------------------------------------------------------------- */
.site-topbar {
  background: var(--navy-900);
  color: #c9dade;
  font-size: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-topbar a { color: #c9dade; }
.site-topbar a:hover { color: var(--orange-300); }
.site-topbar .tb-phone { font-weight: 600; letter-spacing: .2px; }
.site-topbar .tb-social a {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.site-topbar .tb-social a:hover { background: var(--orange); color: #10192b; transform: translateY(-2px); }
.site-topbar .tb-quote {
  background: var(--orange); color: #10192b; font-weight: 700;
  padding: .38rem 1rem; border-radius: 4px; letter-spacing: .2px;
  transition: background .2s ease, transform .2s ease;
}
.site-topbar .tb-quote:hover { background: var(--orange-600); color: #10192b; transform: translateY(-1px); }
@media (max-width: 767.98px) { .site-topbar .tb-hide-sm { display: none; } }

/* --------------------------------------------------------------------------
   Homepage announcement — the copy is managed in the website CMS.
   -------------------------------------------------------------------------- */
body.site-public .site-announcement {
  position: relative;
  padding-block: 1.15rem;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(255, 209, 3, .18), transparent 58%),
    linear-gradient(180deg, rgba(255, 248, 214, .42), transparent);
}
body.site-public .site-announcement-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.05rem;
  padding: 1.05rem 1.3rem;
  border: 1px solid rgba(240, 220, 139, .95);
  border-radius: 20px;
  background:
    radial-gradient(90% 140% at 0% 0%, rgba(255, 255, 255, .9), transparent 60%),
    linear-gradient(130deg, #fffdf5 0%, #fff7da 55%, #fffdf5 100%);
  box-shadow:
    0 18px 40px -24px rgba(120, 95, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
}
body.site-public .site-announcement-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14%;
  bottom: 14%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange), #ffd700);
}
body.site-public .site-announcement-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -70px;
  top: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 3, .22), transparent 68%);
  pointer-events: none;
}
body.site-public .site-announcement-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(150deg, #ffd93b 0%, #ff9f1c 100%);
  color: #3a2c00;
  font-size: 1.25rem;
  box-shadow:
    0 8px 18px -6px rgba(224, 160, 0, .55),
    0 0 0 6px rgba(255, 209, 3, .14);
  flex: none;
}
body.site-public .site-announcement-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
body.site-public .site-announcement-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .35rem;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgba(255, 209, 3, .2);
  color: #7a5c00;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.6;
}
body.site-public .site-announcement-title {
  display: block;
  margin: 0 0 .2rem;
  color: #3f3000;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -.1px;
}
body.site-public .site-announcement-copy p {
  margin: 0;
  max-width: 72ch;
  color: #6b5c2c;
  font-size: .93rem;
  font-weight: 500;
  line-height: 1.85;
  white-space: pre-line;
}
html[data-theme="dark"] body.site-public .site-announcement {
  background: radial-gradient(120% 160% at 100% 0%, rgba(255, 209, 3, .1), transparent 58%);
}
html[data-theme="dark"] body.site-public .site-announcement-card {
  border-color: rgba(255, 209, 3, .22);
  background: linear-gradient(130deg, #2a2718 0%, #332c13 55%, #2a2718 100%);
  box-shadow:
    0 18px 40px -24px rgba(0, 0, 0, .8),
    inset 0 0 0 1px rgba(255, 255, 255, .03);
}
html[data-theme="dark"] body.site-public .site-announcement-eyebrow {
  background: rgba(255, 209, 3, .14);
  color: #ffe9a3;
}
html[data-theme="dark"] body.site-public .site-announcement-title { color: #fff0b3; }
html[data-theme="dark"] body.site-public .site-announcement-copy p { color: #d6c99b; }
@media (max-width: 575.98px) {
  body.site-public .site-announcement { padding-block: .7rem; }
  body.site-public .site-announcement-card { align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border-radius: 16px; }
  body.site-public .site-announcement-icon { width: 44px; height: 44px; border-radius: 13px; font-size: 1.05rem; }
  body.site-public .site-announcement-title { font-size: .95rem; }
  body.site-public .site-announcement-copy p { font-size: .87rem; line-height: 1.8; }
}

/* --------------------------------------------------------------------------
   Navbar — dark navy, orange active pill
   -------------------------------------------------------------------------- */
body.site-public .site-navbar {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: none;
  box-shadow: none;
}
body.site-public .site-navbar.scrolled { box-shadow: 0 10px 30px rgba(3, 12, 22, .45); }
body.site-public .navbar-brand { color: #fff; font-weight: 800; font-size: 1.32rem; letter-spacing: -.6px; }
body.site-public .navbar-brand:hover { color: #fff; }
body.site-public .brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #ffe066);
  color: #10192b; font-size: 1.15rem;
  box-shadow: 0 8px 20px rgba(255, 209, 3, .38);
}

/* --------------------------------------------------------------------------
   Brand logo — soft hexagon badge
   The uploaded company logo is a square tile. A rounded-corner hexagon mask
   (SVG data-URI stretched over the element box) turns it — and the icon
   fallbacks — into a badge that matches the site's geometry, without editing
   the uploaded file. drop-shadow() is used instead of box-shadow because the
   mask clips everything outside the hexagon. Browsers without mask support
   keep the plain rounded tile as a graceful fallback.
   -------------------------------------------------------------------------- */
body.site-public .site-navbar .brand-logo,
body.site-public .site-footer .brand-logo,
body.site-public .site-navbar .brand-mark,
body.site-public .site-footer-brand {
  --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M37 0L63 0Q75 0 80.37 10.73L94.63 39.27Q100 50 94.63 60.73L80.37 89.27Q75 100 63 100L37 100Q25 100 19.63 89.27L5.37 60.73Q0 50 5.37 39.27L19.63 10.73Q25 0 37 0Z' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--hex-mask);
          mask-image: var(--hex-mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  border-radius: 0;
  filter: drop-shadow(0 6px 12px rgba(4, 14, 26, .45))
          drop-shadow(0 0 10px rgba(255, 209, 3, .16));
}

/* --------------------------------------------------------------------------
   Wordmark — the site name as artwork (Settings ▸ شرکت ▸ وردمارک), sat next
   to the badge. Sized by height so the text keeps its proportions; the stored
   file was trimmed to the artwork, so a little optical padding is added here.
   -------------------------------------------------------------------------- */
body.site-public .site-navbar .brand-wordmark {
  display: inline-block; height: 42px; width: auto; max-width: 200px;
  object-fit: contain; object-position: center; vertical-align: middle;
}
body.site-public .site-footer .brand-wordmark {
  display: inline-block; height: 50px; width: auto; max-width: 240px;
  object-fit: contain; object-position: center; vertical-align: middle;
}
body.site-public .site-navbar .brand-wordmark { margin-inline-start: .35rem; }

/* --------------------------------------------------------------------------
   Brand text — the site name as typography (Settings ▸ شرکت ▸ نام شرکت),
   shown beside the badge in place of the wordmark artwork: a white-to-gold
   gradient title over a small muted claim line. The gradient lives inside
   @supports so browsers without background-clip:text keep solid white text.
   -------------------------------------------------------------------------- */
body.site-public .site-navbar .brand-text,
body.site-public .site-footer .brand-text {
  display: flex; flex-direction: column; justify-content: center;
  line-height: 1.14; margin-inline-start: .5rem;
}
body.site-public .site-navbar .brand-title,
body.site-public .site-footer .brand-title {
  font-size: 1.28rem; font-weight: 800; letter-spacing: -.5px;
  color: #fff; white-space: nowrap;
}
body.site-public .site-footer .brand-title { font-size: 1.4rem; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  body.site-public .site-navbar .brand-title,
  body.site-public .site-footer .brand-title {
    background: linear-gradient(115deg, #ffffff 0%, #ffe066 46%, var(--orange) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
}
body.site-public .site-navbar .brand-sub,
body.site-public .site-footer .brand-sub {
  font-size: .7rem; font-weight: 500; color: rgba(255, 255, 255, .55);
  margin-top: 3px; white-space: nowrap;
}
@media (max-width: 575.98px) {
  body.site-public .site-navbar .brand-sub { display: none; }
  body.site-public .site-navbar .brand-title { font-size: 1.1rem; }
  body.site-public .site-navbar .brand-text { margin-inline-start: .4rem; }
}
body.site-public .site-nav-link {
  color: #d5e2e5 !important; font-weight: 500;
  padding: .55rem .9rem !important; border-radius: 6px;
  position: relative;
}
body.site-public .site-nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, .07); }
body.site-public .site-nav-link.active {
  color: #10192b !important; background: var(--orange);
  box-shadow: 0 6px 16px rgba(255, 209, 3, .34);
}
body.site-public .dropdown-menu {
  border: 1px solid var(--card-line); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(4, 14, 26, .28);
  padding: .4rem;
}
body.site-public .dropdown-item { border-radius: 7px; padding: .48rem .8rem; }
body.site-public .dropdown-item:hover { background: rgba(255, 209, 3, .12); color: var(--orange-ink); }
body.site-public .navbar-toggler { border-color: rgba(255, 255, 255, .2); }
body.site-public .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 209, 3, .3); }
body.site-public .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 991.98px) {
  body.site-public .navbar-collapse { background: var(--navy-700); border-radius: 12px; padding: .8rem; margin-top: .6rem; }
}

/* Between 992px and 1200px the container is capped at 960px while the six
   menu items plus the theme/language/login/CTA controls need ~1024px — the
   bar overflowed to the left and put a horizontal scrollbar on every page.
   Tighten the link padding in that band only; flex-wrap is the safety net in
   case a longer translation still doesn't fit. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.site-public .site-nav-link { padding-inline: .5rem !important; }
  body.site-public .navbar-expand-lg .navbar-collapse { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
body.site-public .btn-brand {
  background: var(--orange); border-color: var(--orange); color: #10192b; font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 209, 3, .3);
}
body.site-public .btn-brand:hover,
body.site-public .btn-brand:focus { background: var(--orange-600); border-color: var(--orange-600); color: #10192b; }
body.site-public .btn-ghost { border-color: rgba(255, 255, 255, .22); color: #e5f0f2; }
body.site-public .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
html[data-theme="dark"] body.site-public .btn-ghost { border-color: var(--card-line); color: var(--content-ink); }
html[data-theme="dark"] body.site-public .btn-ghost:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* Round icon button (play / arrow) used next to the hero CTA */
.btn-round {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hero-chip-line, rgba(255, 255, 255, .28));
  color: var(--hero-ink, #fff);
  background: var(--hero-chip-bg, rgba(255, 255, 255, .08));
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-round:hover { background: var(--orange); border-color: var(--orange); color: #10192b; transform: scale(1.06); }

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
body.site-public .section { padding: 4.5rem 0; background: var(--content-bg); }
body.site-public .section-muted { background: var(--content-bg-2); }
body.site-public .section-title { color: var(--content-ink); font-weight: 800; letter-spacing: -.7px; }
body.site-public .section-muted,
body.site-public .service-card p,
body.site-public .step-card p,
body.site-public .faq-a,
body.site-public .cell-sub,
body.site-public .rate-row .rate-weight { color: var(--content-ink-soft); }

.eyebrow-orange {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 209, 3, .12); color: var(--orange-ink);
  font-size: .76rem; font-weight: 700; letter-spacing: .3px;
  padding: .34rem .85rem; border-radius: 999px; text-transform: uppercase;
}
html[data-theme="dark"] .eyebrow-orange { color: var(--orange-300); }

/* Decorative chevron cluster (mirrors the reference's arrow motif) */
.chevrons { display: inline-flex; flex-direction: column; gap: 4px; pointer-events: none; }
.chevrons span {
  width: 15px; height: 8px; display: block;
  border-inline-start: 3px solid var(--chev-a);
  border-block-end: 3px solid var(--chev-a);
  transform: rotate(-45deg);
}
.chevrons span:nth-child(2) { border-color: var(--chev-b); opacity: .85; }
.chevrons span:nth-child(3) { border-color: var(--chev-b); opacity: .55; }
.chevrons-h { flex-direction: row; }
.chevrons-h span { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero — webi.jpg full-bleed, copy centred over it
   -------------------------------------------------------------------------- */
/* The photo covers the band edge to edge: `cover` scales it to fill and
   `center top` keeps its horizon pinned to the top of the frame. A scrim sits
   above it — a pool of petrol centred where the copy sits, so the title stays
   readable, thinning towards the edges so the photo itself shows through.
   The scrim colour is a neutral charcoal (#212121), so the darkened centre
   reads as one surface with the rest of the dark bands.
   The `?v=` on the URL is a cache buster: bump it whenever webi.jpg is
   replaced, otherwise browsers keep showing the old file. */
body.site-public .hero {
  --hero-ink: #ffffff;
  --hero-ink-soft: #c0d2d6;
  --hero-chip-bg: rgba(255, 255, 255, .08);
  --hero-chip-line: rgba(255, 255, 255, .16);
  --hero-glow-a: rgba(255, 209, 3, .22);
  --hero-glow-b: rgba(18, 168, 148, .16);

  position: relative;
  padding: 5rem 0 6.5rem;
  background-color: #212121;
  background-image: url('../img/webi.jpg?v=3');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  color: var(--hero-ink);
  overflow: hidden;
}
body.site-public .hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 88% 18%, var(--hero-glow-a), transparent 62%),
    radial-gradient(700px 460px at 10% 85%, var(--hero-glow-b), transparent 60%),
    radial-gradient(860px 620px at 50% 42%,
      rgba(33, 33, 33, .84) 0%,
      rgba(33, 33, 33, .52) 58%,
      rgba(33, 33, 33, .30) 100%);
  pointer-events: none;
}
body.site-public .hero-blob { display: none; }
body.site-public .hero .container { position: relative; z-index: 2; }

/* Copy sits centred over the photo; its two flex rows centre to match. */
.hero-copy { max-width: 40rem; margin-inline: auto; text-align: center; }
.hero-copy > .d-flex { justify-content: center; }

body.site-public .hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* Orange sweep along the bottom edge of the hero */
.hero-sweep {
  position: absolute; inset-inline: 0; bottom: -1px; height: 90px;
  background: var(--content-bg); z-index: 1;
  clip-path: ellipse(78% 100% at 50% 100%);
}
.section-muted .hero-sweep,
.hero-sweep.on-muted { background: var(--content-bg-2); }

body.site-public .hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-line);
  color: var(--hero-ink); padding: .45rem 1rem; border-radius: 999px;
  font-size: .84rem; font-weight: 500;
}
body.site-public .hero h1 {
  color: var(--hero-ink);
  font-weight: 800; letter-spacing: -1.4px; line-height: 1.22;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
}
body.site-public .hero .lead { color: var(--hero-ink-soft); font-size: 1.06rem; max-width: 46ch; margin-inline: auto; }

/* Supporting copy inside the hero (was inline-styled in the markup) */
.hero-note { color: var(--hero-ink-soft); }
.hero-features { color: var(--hero-ink-soft); }
.hero-check { color: var(--orange); }
html[data-theme="dark"] .hero-check { color: var(--orange-300); }

/* Homepage partner promotions — distinct, image-led offer cards below the hero copy. */
.home-advertisements { width: min(100%, 58rem); max-width: none; margin: 0 auto 1.35rem; text-align: start; }
.home-advertisements-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.home-advertisements-kicker { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-size: .8rem; font-weight: 800; }
.home-advertisements--hero .home-advertisements-kicker { color: #fff; }
.home-advertisements--hero .home-advertisements-label { color: rgba(255,255,255,.72); }
.home-advertisements-kicker i { color: #ffd166; }
.home-advertisements-label { color: #758096; font-size: .7rem; }
.home-advertisements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.home-ad-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.48); border-radius: 1rem; background: #fff; box-shadow: 0 12px 30px rgba(8,14,29,.22); text-align: start; transition: transform .2s ease, box-shadow .2s ease; }
.home-ad-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(8,14,29,.3); }
.home-ad-link { display: flex; height: 100%; flex-direction: column; color: #172536; text-decoration: none; }
.home-ad-link:hover { color: #172536; }
.home-ad-art { position: relative; display: grid; height: 168px; place-items: center; overflow: hidden; isolation: isolate; }
.home-ad-card--0 .home-ad-art { background: linear-gradient(135deg,#ff6b6b,#ffb36b 58%,#ffe29a); }
.home-ad-card--1 .home-ad-art { background: linear-gradient(135deg,#42b883,#b8df72 58%,#f4df86); }
.home-ad-card--2 .home-ad-art { background: linear-gradient(135deg,#536dfe,#53c7d8 58%,#b6e5ff); }
.home-ad-art::before,.home-ad-art::after { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; content: ""; }
.home-ad-art::before { width: 138px; height: 138px; inset-inline-start: -34px; top: 30px; }
.home-ad-art::after { width: 92px; height: 92px; inset-inline-end: -18px; top: -38px; background: rgba(255,255,255,.12); }
.home-ad-art > i { color: #fff; font-size: 3rem; filter: drop-shadow(0 7px 9px rgba(24,32,58,.22)); transform: rotate(-8deg); }
.home-ad-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-ad-art > img + .home-ad-tag { z-index: 1; }
.home-ad-art-orbit { position: absolute; width: 14px; height: 14px; border: 3px solid rgba(255,255,255,.78); border-radius: 50%; }
.home-ad-art-orbit--one { inset-inline-end: 26%; bottom: 19px; }
.home-ad-art-orbit--two { inset-inline-start: 28%; top: 18px; width: 9px; height: 9px; }
.home-ad-tag { position: absolute; inset-inline-start: .55rem; top: .55rem; display: inline-flex; align-items: center; gap: .28rem; padding: .22rem .48rem; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(21,29,45,.22); color: #fff; font-size: .62rem; font-weight: 700; backdrop-filter: blur(8px); }
.home-ad-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .28rem; padding: .72rem .78rem .78rem; }
.home-ad-company { color: #67748a; font-size: .65rem; font-weight: 700; }
.home-ad-copy strong { color: #172536; font-size: .83rem; font-weight: 850; line-height: 1.4; }
.home-ad-description { color: #68748a; font-size: .68rem; line-height: 1.55; }
.home-ad-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .42rem; color: #a9430b; font-size: .68rem; font-weight: 800; }
.home-ad-link:hover .home-ad-cta { color: #e85f16; }
.home-ad-empty { display: flex; align-items: center; gap: .85rem; min-height: 92px; padding: .8rem 1rem; border: 1px dashed rgba(16,25,43,.24); border-radius: 1rem; background: #fff; color: var(--ink); box-shadow: 0 10px 28px rgba(8,14,29,.06); text-align: start; }
.home-ad-empty-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(238,138,60,.28); border-radius: .85rem; background: rgba(240,138,60,.1); color: #d96d20; font-size: 1.25rem; }
.home-ad-empty-copy { display: flex; flex: 1; flex-direction: column; gap: .2rem; }
.home-ad-empty-copy strong { font-size: .88rem; }
.home-ad-empty-copy span { color: #68748a; font-size: .74rem; }
.home-ad-empty-action { display: inline-flex; align-items: center; gap: .4rem; padding: .58rem .8rem; border-radius: .7rem; background: #f08a3c; color: #24180e; font-size: .75rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.home-ad-empty-action:hover { background: #ffab62; color: #24180e; }
html[data-theme="dark"] .home-ad-card { border-color: rgba(255,255,255,.16); background: #f8fafc; }
html[data-theme="dark"] .home-advertisements-kicker { color: #eef3fb; }
html[data-theme="dark"] .home-ad-empty { border-color: rgba(255,255,255,.28); background: #202a33; color: #eef3fb; }
html[data-theme="dark"] .home-ad-empty-copy span { color: #bbc7d4; }

@media (max-width: 767.98px) {
  .home-advertisements { margin-inline: -.5rem; }
  .home-advertisements-heading { padding-inline: .5rem; }
  .home-advertisements-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%); grid-template-columns: none; overflow-x: auto; padding: .15rem .5rem .65rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .home-ad-card { scroll-snap-align: start; }
  .home-ad-art { height: 138px; }
  .home-ad-empty { flex-wrap: wrap; }
  .home-ad-empty-copy { flex-basis: calc(100% - 64px); }
  .home-ad-empty-action { margin-inline-start: 3.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-ad-card { transition: none; }
}

/* Tracking card floating over the hero */
body.site-public .track-card {
  background: #fff; border-radius: 16px; padding: 1.4rem;
  box-shadow: 0 26px 54px rgba(3, 12, 22, .42);
  color: var(--ink);
}
body.site-public .track-card .text-muted,
body.site-public .track-card .small { color: #67748c !important; }
body.site-public .track-card .input-group-text { background: #fff; border-inline-end: 0; }
[dir="rtl"] body.site-public .track-card .input-group-text { border-inline-end: 1px solid #dee2e6; border-inline-start: 0; }
body.site-public .track-card .track-input {
  background-color: #fff;
  border-color: #d8dee8;
  color: #172536;
  font-weight: 600;
  letter-spacing: 1.3px;
}
body.site-public .track-card .track-input::placeholder { color: #758096; opacity: 1; }
html[data-theme="dark"] body.site-public .track-card .track-input:focus {
  background-color: #fff;
  border-color: var(--orange);
  color: #172536;
  box-shadow: 0 0 0 .2rem rgba(255, 139, 43, .2);
}

/* Live Code128 barcode beside the tracking form (card stays white in dark mode) */
body.site-public .track-barcode {
  background: #f7f9fd; border: 1px dashed #ccd6ea; border-radius: 12px;
  padding: .7rem .8rem .6rem; text-align: center;
}
body.site-public .track-barcode-head {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  font-size: .72rem; font-weight: 700; color: #7c88a0; margin-bottom: .45rem;
}
body.site-public .track-barcode-art { overflow: hidden; line-height: 0; }
body.site-public .track-barcode-art svg { display: block; width: 100%; height: auto; }
body.site-public .track-barcode-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .8rem; font-weight: 700; letter-spacing: 1.6px;
  color: var(--ink); margin-top: .45rem;
}
body.site-public .track-barcode-hint {
  font-size: .68rem; color: #93a0b6; margin-top: .15rem; line-height: 1.5;
}
/* the sample barcode is only a placeholder until a code is typed */
body.site-public .track-barcode.is-sample .track-barcode-art { opacity: .55; }
@media (max-width: 991.98px) {
  body.site-public .track-barcode { margin-top: .35rem; }
}

/* Trust strip under the hero (stands in for the partner-logo row) */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem 2.6rem;
  padding: 1.6rem 0; border-block-end: 1px solid var(--card-line);
}
.trust-strip .ts-item {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--content-ink-soft); font-weight: 700; font-size: .95rem;
  letter-spacing: -.2px; opacity: .85;
}
.trust-strip .ts-item i { color: var(--orange-ink); font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   Tiles, cards, stats
   -------------------------------------------------------------------------- */
body.site-public .card-soft {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: 16px; box-shadow: 0 10px 26px rgba(6, 40, 50, .06);
}
html[data-theme="dark"] body.site-public .card-soft { box-shadow: none; }

body.site-public .icon-tile {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 209, 3, .13); color: var(--orange-ink); font-size: 1.2rem;
}
html[data-theme="dark"] body.site-public .icon-tile { background: rgba(255, 209, 3, .18); color: var(--orange-300); }
body.site-public .icon-tile.green { background: rgba(18, 168, 148, .14); color: #0f8f7c; }
body.site-public .icon-tile.alt { background: rgba(13, 148, 152, .13); color: #0d7f96; }
body.site-public .icon-tile.amber { background: rgba(255, 209, 3, .13); color: var(--orange-ink); }
html[data-theme="dark"] body.site-public .icon-tile.green { color: #4ad6b8; }
html[data-theme="dark"] body.site-public .icon-tile.alt { color: #6fd0d8; }

body.site-public .stat-tile {
  background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 16px;
  padding: 1.2rem;
}
body.site-public .stat-value { color: var(--content-ink); font-weight: 800; letter-spacing: -1px; }
body.site-public .stat-label { color: var(--content-ink-soft); }

body.site-public .step-card { padding: 1.5rem 1.35rem; position: relative; overflow: hidden; }
body.site-public .step-card h6 { color: var(--content-ink); }
.step-no {
  position: absolute; inset-block-start: .6rem; inset-inline-end: .9rem;
  font-size: 2.9rem; font-weight: 800; line-height: 1;
  color: rgba(255, 209, 3, .13);
}
html[data-theme="dark"] .step-no { color: rgba(255, 209, 3, .22); }

body.site-public .service-card { padding: 1.4rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
body.site-public .service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10, 24, 44, .12); }
body.site-public .service-card h5 { color: var(--content-ink); }

/* Service card with a photo header + orange round icon (reference style) */
.svc-photo-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-line);
  box-shadow: 0 12px 30px rgba(6, 40, 50, .08); height: 100%;
  display: flex; flex-direction: column;
}
.svc-photo-card .sp-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-photo-card .sp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-photo-card .sp-icon {
  position: absolute; inset-block-end: -22px; inset-inline-start: 1.2rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange); color: #10192b; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px rgba(255, 209, 3, .42);
}
.svc-photo-card .sp-body { padding: 2rem 1.35rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.svc-photo-card .sp-kicker { color: var(--orange-ink); font-size: .74rem; font-weight: 700; letter-spacing: .4px; }
html[data-theme="dark"] .svc-photo-card .sp-kicker { color: var(--orange-300); }
.svc-photo-card h5 { color: var(--content-ink); font-weight: 800; letter-spacing: -.4px; }
.svc-photo-card p { color: var(--content-ink-soft); flex: 1; }
.svc-photo-card .sp-more {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  background: rgba(255, 209, 3, .12); color: var(--orange-ink);
  padding: .42rem .95rem; border-radius: 8px; font-weight: 700; font-size: .85rem;
}
/* کل کارت کلیک‌پذیر است؛ کلیک روی تصویر یا متن هم لینک «بیشتر» را باز می‌کند. */
.svc-photo-card .sp-more::after { content: ""; position: absolute; inset: 0; }
.svc-photo-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10, 24, 44, .12); }
.svc-photo-card { transition: transform .25s ease, box-shadow .25s ease; }
.svc-photo-card .sp-more:hover { background: var(--orange); color: #10192b; }
html[data-theme="dark"] .svc-photo-card .sp-more { color: var(--orange-300); }

body.site-public .zone-card { padding: 1.2rem; height: 100%; }
body.site-public .zone-name { color: var(--content-ink); font-weight: 700; }
body.site-public .rate-row { border-block-start-color: var(--card-line); }
body.site-public .rate-row .rate-fee { color: var(--orange-ink); font-weight: 700; }
html[data-theme="dark"] body.site-public .rate-row .rate-fee { color: var(--orange-300); }

body.site-public .review-card {
  background: var(--card-bg); border: 1px solid var(--card-line);
  border-radius: 16px; padding: 1.4rem;
}
body.site-public .rating-star { color: var(--orange-ink); }
body.site-public .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ffe066); color: #10192b;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  font-size: 1.15rem;
}

body.site-public .faq-item {
  background: var(--card-bg); border: 1px solid var(--card-line); border-radius: 14px;
}
body.site-public .faq-q { color: var(--content-ink); font-weight: 700; padding: 1rem 1.2rem; }
body.site-public .faq-a { padding: 0 1.2rem 1rem; }

/* --------------------------------------------------------------------------
   Dark stats band
   -------------------------------------------------------------------------- */
.stats-band {
  background: var(--band-bg); color: #fff; padding: 3.6rem 0;
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 300px at 82% 30%, rgba(255, 209, 3, .18), transparent 62%);
  pointer-events: none;
}
.stats-band .container { position: relative; z-index: 2; }
.stats-band .sb-item { text-align: center; padding: 1rem; }
.stats-band .sb-icon {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto .85rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--orange-300); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.stats-band .sb-value { font-size: 2.1rem; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.stats-band .sb-label { color: #a4bcc0; font-size: .88rem; }

/* --------------------------------------------------------------------------
   Split feature block (text + checklist + photo with badge)
   -------------------------------------------------------------------------- */
.feature-split .fs-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.2rem; }
.feature-split .fs-check {
  display: flex; align-items: center; gap: .5rem;
  color: var(--content-ink); font-size: .9rem;
}
.feature-split .fs-check i { color: var(--orange-ink); }
.feature-split .fs-note {
  display: inline-flex; align-items: center; gap: .7rem;
}
.feature-split .fs-note .fs-note-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--navy-800); color: var(--orange-300);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.feature-split .fs-note b { color: var(--content-ink); display: block; }
.feature-split .fs-note span { color: var(--content-ink-soft); font-size: .82rem; }
.btn-navy {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff; font-weight: 700;
}
.btn-navy:hover, .btn-navy:focus { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.feature-media { position: relative; }
.feature-media img { width: 100%; border-radius: 20px; display: block; box-shadow: 0 22px 46px rgba(10, 24, 44, .16); }
.feature-media .fm-badge {
  position: absolute; inset-block-end: -16px; inset-inline-start: -12px;
  background: var(--orange); color: #10192b; border-radius: 14px;
  padding: .8rem 1rem; text-align: center; box-shadow: 0 16px 34px rgba(255, 209, 3, .4);
}
.feature-media .fm-badge b { display: block; font-size: 1.7rem; line-height: 1; }
.feature-media .fm-badge span { font-size: .72rem; opacity: .92; }
.feature-media .fm-chip {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  border-radius: 999px; padding: .4rem .85rem; font-size: .8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .45rem;
}
.feature-media .fm-chip i { color: var(--orange-ink); }

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */
body.site-public .page-hero {
  background: var(--band-bg); color: #fff; padding: 4.2rem 0 4.6rem;
  position: relative; overflow: hidden;
}
body.site-public .page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 85% 25%, rgba(255, 209, 3, .2), transparent 62%);
  pointer-events: none;
}
body.site-public .page-hero .container { position: relative; z-index: 2; }
body.site-public .page-hero h1 { font-weight: 800; letter-spacing: -1.2px; }
body.site-public .page-hero .lead { color: #c0d2d6; }
.breadcrumb-soft { --bs-breadcrumb-divider-color: rgba(255,255,255,.35); }
.breadcrumb-soft .breadcrumb-item { color: #b5c9cc; }
.breadcrumb-soft .breadcrumb-item.active { color: #fff; }
.breadcrumb-soft .breadcrumb-item a { color: #b5c9cc; }
.breadcrumb-soft .breadcrumb-item a:hover { color: var(--orange-300); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--band-bg); color: #fff; border-radius: 22px;
  padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 15% 20%, rgba(255, 209, 3, .22), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-weight: 800; letter-spacing: -.8px; }
.cta-band p { color: #b5c9cc; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
body.site-public .site-footer {
  background: var(--navy-900); color: #b2c7ca; margin-top: 0;
  padding: 3.6rem 0 1.6rem;
}
body.site-public .site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
body.site-public .site-footer a { color: #b2c7ca; }
body.site-public .site-footer a:hover { color: var(--orange-300); }
body.site-public .site-footer hr { border-color: rgba(255, 255, 255, .1); }
body.site-public .site-footer .btn-outline-light:hover { background: var(--orange); border-color: var(--orange); color: #10192b; }
.site-footer-brand {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--orange), #ffe066); color: #10192b;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  margin-inline-end: .6rem;
}

/* --------------------------------------------------------------------------
   Hero slider — slides are managed in the admin CMS (محتوای صفحات → home)
   Each slide paints the whole band (background layer) while its badge/title/
   lead fade in the copy column; the buttons, features and track card below
   stay put, so nothing jumps between slides.
   -------------------------------------------------------------------------- */
body.site-public .hero .hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
body.site-public .hero .hero-slide {
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity .9s ease-in-out;
}
body.site-public .hero .hero-slide.is-active { opacity: 1; }

/* The slider owns the whole band. Without this the static hero photo in
   `.hero` sits behind every slide that does not cover it, so a floating
   illustration showed the picture underneath it as well — two images at once. */
body.site-public .hero.hero-slider { background-image: none; }

/* Stack order is now: slides (0) → scrim (1) → copy (2).
   The scrim keeps the text readable over any slide and hides the seam while
   two slides cross-fade. */
body.site-public .hero.hero-slider::before {
  z-index: 1;
  background:
    radial-gradient(760px 420px at 88% 18%, var(--hero-glow-a), transparent 62%),
    radial-gradient(700px 460px at 10% 85%, var(--hero-glow-b), transparent 60%),
    linear-gradient(180deg,
      rgba(33, 33, 33, .90) 0%,
      rgba(33, 33, 33, .74) 42%,
      rgba(33, 33, 33, .44) 72%,
      rgba(33, 33, 33, .18) 100%);
}

/* Texts stack on the same grid cell so the slide area keeps one height */
body.site-public .hero .hero-texts { display: grid; }
body.site-public .hero .hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
body.site-public .hero .hero-text.is-active { opacity: 1; visibility: visible; }

/* Slider dots */
body.site-public .hero .hero-dots {
  display: flex; justify-content: center; align-items: center; gap: .5rem;
}
body.site-public .hero .hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .32); cursor: pointer;
  transition: width .25s ease, background-color .25s ease;
}
body.site-public .hero .hero-dots button:hover { background: rgba(255, 255, 255, .6); }
body.site-public .hero .hero-dots button.is-active { width: 28px; background: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  body.site-public .hero .hero-slide,
  body.site-public .hero .hero-text,
  body.site-public .hero .hero-dots button { transition: none; }
}
