/* =====================================================================
   TTF - Towards The Future  |  site styles (one clean file)
   Dark premium theme. Logo colors (green, orange, yellow) as soft gradients.
   Works for Arabic (RTL) and English (LTR) with logical properties
   (margin-inline, inset-inline ...), so no mirrored rules are needed.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --green: #3F9A2E;
  --g-bright: #5DBB46;
  --orange: #C04F15;
  --o-bright: #EE7430;
  --yellow: #FFCE39;
  --red: #FF6B6B;

  --bg: #131815;
  --bg-2: #181E1A;
  --surface: #1B221D;
  --glass: rgba(29, 36, 31, .82);
  --card: rgba(255, 255, 255, .045);
  --text: #F2F0E9;
  --muted: rgba(242, 240, 233, .66);
  --line: rgba(255, 255, 255, .11);

  --green-soft: rgba(93, 187, 70, .13);
  --orange-soft: rgba(238, 116, 48, .15);
  --yellow-soft: rgba(255, 206, 57, .13);
  --red-soft: rgba(229, 72, 77, .14);

  --grad: linear-gradient(90deg, #5DBB46 0%, #EE7430 55%, #FFCE39 100%);
  --grad-btn: linear-gradient(90deg, #FFCE39 0%, #9CC63B 45%, #3F9A2E 100%);
  --grad-cta: linear-gradient(90deg, #EE7430 0%, #F59A2C 55%, #FFCE39 100%);
  --stripe: linear-gradient(90deg, #3F9A2E 0 33.33%, #EE7430 33.33% 66.66%, #FFCE39 66.66% 100%);

  --radius: 18px;
  --shadow: 0 18px 44px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, .6);

  --bar-h: 66px;    /* header row 1 */
  --menu-h: 50px;   /* header row 2 */
  --nav-h: calc(var(--bar-h) + var(--menu-h) + 3px);   /* the whole header */
  --hero-min: 250px;  /* inner pages banner height (it stays in its place on screen) */
  --wrap: 1320px;   /* ONE width for the header, every page and the footer */
  color-scheme: dark;
}
@media (max-width: 1024px) { :root { --bar-h: 64px; --nav-h: calc(var(--bar-h) + 2px); } }
@media (max-width: 680px)  { :root { --nav-h: 100px; --hero-min: 210px; } }

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(93, 187, 70, .08), transparent 62%),
    radial-gradient(800px 520px at 0% 12%, rgba(238, 116, 48, .06), transparent 60%),
    var(--bg);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--g-bright); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60;
  background: var(--green); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.grad-text, .brand-name, .head h2, .about-text h2, .promo h2, .foot-brand strong, .nf-code {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 3. Header: row 1 (logo · date · time) + row 2 (menu). Always on screen. ---------- */
.top {
  position: fixed; top: 0; inset-inline: 0; z-index: 30;
  background: rgba(19, 24, 21, .94);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.top::after { content: ""; display: block; height: 2px; background: var(--stripe); opacity: .9; }
main { padding-top: var(--nav-h); }

.top-bar { display: flex; align-items: center; gap: 18px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 19px; }
.brand-sub { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Date + time (Oman), updated every second by site.js */
.clock { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.clock-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
}
.clock-item svg { width: 17px; height: 17px; flex: none; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; stroke: var(--g-bright); }
.clock-item + .clock-item svg { stroke: var(--yellow); }
.clock-time { min-width: 6.6em; text-align: center; color: var(--yellow); font-weight: 600; }

/* Row 2: the menu */
.top-nav { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.nav-wrap { display: flex; align-items: center; gap: 16px; height: var(--menu-h); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav a, .dd-btn {
  position: relative; color: var(--text); text-decoration: none; font-weight: 500;
  font-size: 15.5px; padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
.nav > a::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .2s;
}
.nav a:hover, .nav a.is-here { color: var(--yellow); }
.nav > a:hover::after, .nav > a.is-here::after { transform: scaleX(1); }

.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: inherit;
  font-size: 15.5px; font-weight: 500;
}
.dd-btn:hover, .dd.open .dd-btn { color: var(--yellow); }
.dd-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.dd.open .dd-arrow { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 220px; z-index: 40;
  display: none; flex-direction: column; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.dd.open .dd-menu { display: flex; }
.dd-menu a { padding: 10px 12px; }
.dd-menu a:hover { background: rgba(255, 255, 255, .06); }
@media (hover: hover) and (min-width: 1025px) {
  .dd:hover .dd-menu, .dd:focus-within .dd-menu { display: flex; }
  .dd-menu::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.lang:hover { color: var(--yellow); background: rgba(255, 255, 255, .06); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; flex: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  padding: 12px 11px; flex-direction: column; justify-content: space-between;
}
.menu-btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Tablets and phones: the menu opens from the button */
@media (max-width: 1024px) {
  .menu-btn { display: flex; }
  .clock { margin-inline-start: auto; }
  .top-nav { border: 0; background: none; position: relative; }
  .nav-wrap {
    position: absolute; inset-inline: 10px; top: 6px; height: auto;
    display: none; flex-direction: column; align-items: stretch; gap: 8px;
    max-height: calc(100vh - var(--nav-h) - 20px); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px 16px;
    box-shadow: var(--shadow-lg); width: auto;
  }
  .nav-wrap.open { display: flex; }
  .nav { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .nav a, .dd-btn { font-size: 16px; padding: 12px; width: 100%; justify-content: space-between; }
  .nav > a::after { display: none; }
  .nav a.is-here { background: rgba(255, 206, 57, .08); }
  .dd-menu { position: static; box-shadow: none; border: 0; background: rgba(255, 255, 255, .04); margin: 2px 0 6px; }
  .nav-actions { justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 12px; }
}
/* The top bar never gets wider than the screen: a long name (English) shrinks to fit on tablets */
@media (max-width: 1024px) {
  .brand { flex: 1 1 0; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-name, .brand-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .clock, .menu-btn { flex: none; }
}
@media (max-width: 860px) {
  .top-bar { gap: 12px; }
  .brand-name { font-size: 16px; }
  .clock-item { padding: 4px 10px; font-size: 12.5px; gap: 6px; }
  .clock-item svg { width: 14px; height: 14px; }
}
/* Phones: date + time move to their own thin line under the logo; a long name wraps beside the menu button */
@media (max-width: 680px) {
  .top-bar { flex-wrap: wrap; row-gap: 0; height: auto; padding-block: 8px 6px; }
  .brand { order: 1; flex: 1 1 0; min-width: 0; }
  .brand-name, .brand-sub { white-space: normal; }
  .menu-btn { order: 2; }
  .clock { order: 3; width: 100%; justify-content: center; gap: 6px; margin: 8px 0 0; }
  .clock-item { padding: 4px 10px; font-size: 12.5px; gap: 6px; }
  .clock-item svg { width: 14px; height: 14px; }
}
@media (max-width: 400px) {
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 15px; line-height: 1.3; }
  .brand-sub { font-size: 12px; }
  .clock-item { padding: 3px 8px; font-size: 11.5px; }
}

/* ---------- 4. Buttons & small labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; border-radius: 12px; }
.btn-main { background: var(--grad-btn); color: #0B0E0C; border-color: rgba(255, 255, 255, .18); }
.btn-accent { background: var(--grad-cta); color: #1B1207; box-shadow: 0 12px 30px rgba(238, 116, 48, .28); }
.btn-main:hover, .btn-accent:hover { filter: brightness(1.08); }
.btn-light { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
.btn-yellow { background: var(--yellow); color: #1B1207; }
.btn-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
[dir="rtl"] .btn-ico { transform: scaleX(-1); }
.btn:hover .btn-ico { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn-ico { transform: scaleX(-1) translateX(3px); }

.tag {
  display: inline-block; font-size: 13px; font-weight: 600; text-decoration: none;
  color: #FFB27E; background: var(--orange-soft); border: 1px solid rgba(238, 116, 48, .3);
  padding: 3px 12px; border-radius: 999px;
}
.tag-lg { font-size: 16px; padding: 10px 22px; }
.tag-link { background: var(--grad-btn); color: #0B0E0C; border: 0; }
.tag-link:hover { filter: brightness(1.08); }
.kicker { color: var(--yellow); font-weight: 600; font-size: 14.5px; margin-bottom: 6px; letter-spacing: .01em; }

/* ---------- 5. HERO: the video in the background, the words on the calm side ---------- */
/* The video banner STAYS IN ITS PLACE under the menu, the same size all the time.
   The page scrolls UNDER it (never over it). */
.hero { --hero-full: clamp(300px, 42vh, 420px); }
.page-hero { --hero-full: var(--hero-min); }
.hero, .page-hero { position: relative; height: var(--hero-full); }
.hero-box {
  position: fixed; top: var(--nav-h); inset-inline: 0; z-index: 20;
  min-height: var(--hero-full); overflow: hidden; isolation: isolate;
  display: flex; align-items: center; background: var(--bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}
.hero-box > .wrap { width: 100%; }

.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-video {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% center;
  animation: heroFade 1.2s ease both;
}
[dir="ltr"] .hero-video { object-position: 70% center; }
/* Gradient only where the words are; the video stays bright on the other side */
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(7, 9, 8, .92) 0%, rgba(7, 9, 8, .78) 34%, rgba(7, 9, 8, .25) 62%, rgba(7, 9, 8, 0) 80%),
    linear-gradient(180deg, rgba(7, 9, 8, .55) 0%, rgba(7, 9, 8, 0) 22%, rgba(7, 9, 8, 0) 70%, var(--bg) 100%);
}
[dir="ltr"] .hero-shade {
  background:
    linear-gradient(to right, rgba(7, 9, 8, .92) 0%, rgba(7, 9, 8, .78) 34%, rgba(7, 9, 8, .25) 62%, rgba(7, 9, 8, 0) 80%),
    linear-gradient(180deg, rgba(7, 9, 8, .55) 0%, rgba(7, 9, 8, 0) 22%, rgba(7, 9, 8, 0) 70%, var(--bg) 100%);
}
.hero-in { position: relative; padding-block: 24px; }
.hero-content { max-width: 640px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--yellow);
  background: rgba(255, 206, 57, .10); border: 1px solid rgba(255, 206, 57, .32);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 206, 57, .18); }
.hero h1 {
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.22; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 14px; text-wrap: balance; color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.hero .lead {
  max-width: 540px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.85;
  color: rgba(242, 240, 233, .80); margin-bottom: 0;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }

/* Soft entrance: words rise one after the other */
.rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.r1 { animation-delay: .10s; } .r2 { animation-delay: .22s; } .r3 { animation-delay: .34s; } .r4 { animation-delay: .46s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }

/* Wide screens: the video sits on the side AWAY from the words and melts into
   the dark background, so the words never cover the logo in the video */
@media (min-width: 1025px) {
  .hero-media { inset-inline-start: 34%; }
  [dir="rtl"] .hero-media {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 34%);
            mask-image: linear-gradient(to left, transparent 0%, #000 34%);
  }
  [dir="ltr"] .hero-media {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
            mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  }
  .hero-video, [dir="ltr"] .hero-video { object-position: center; }
  .hero-shade, [dir="ltr"] .hero-shade {
    background:
      radial-gradient(60% 70% at 70% 45%, rgba(93, 187, 70, .08), transparent 70%),
      linear-gradient(180deg, rgba(7, 9, 8, .55) 0%, rgba(7, 9, 8, 0) 20%, rgba(7, 9, 8, 0) 72%, var(--bg) 100%);
  }
}

@media (max-width: 1024px) {
  .hero { --hero-full: clamp(300px, 40vh, 400px); }
  .hero-content { max-width: 580px; }
}
@media (max-width: 720px) {
  .hero { --hero-full: 290px; }
  .hero .hero-box { align-items: flex-end; }
  .hero .lead { font-size: 14.5px; line-height: 1.7; }
  .hero .pill { margin-bottom: 12px; }
  .hero-video, [dir="ltr"] .hero-video { object-position: center; }
  .hero-shade, [dir="ltr"] .hero-shade {
    background: linear-gradient(180deg, rgba(7, 9, 8, .45) 0%, rgba(7, 9, 8, .08) 16%, rgba(7, 9, 8, .12) 30%, rgba(7, 9, 8, .78) 52%, rgba(7, 9, 8, .92) 80%, var(--bg) 100%);
  }
  .hero-in { padding-block: 0 20px; }
  .hero h1 { font-size: clamp(24px, 7vw, 30px); margin-bottom: 10px; }
  .actions { gap: 10px; }
  .actions .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 18px; }
}
@media (max-width: 360px) { .actions .btn { flex-basis: 100%; } }

/* ---------- 6. Trust bar (sits on the bottom edge of the hero) ---------- */
.trust { position: relative; z-index: 2; margin-top: -58px; }
.trust-in {
  list-style: none; margin: 0; padding: 18px 22px; display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-lg);
}
.trust-in li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) { .trust-in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-in { padding: 14px; gap: 12px; } .trust-in li { font-size: 13.5px; gap: 8px; } }
@media (max-width: 340px) { .trust-in { grid-template-columns: 1fr; } }

/* ---------- 7. Icons ---------- */
.ico {
  flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 13px;
  background: var(--green-soft); stroke: var(--g-bright); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 40px; height: 40px; padding: 9px; border-radius: 12px; }
.trust-in li:nth-child(2) .ico, .card:nth-child(2) .ico, .value:nth-child(2) .ico { background: var(--orange-soft); stroke: var(--o-bright); }
.trust-in li:nth-child(3) .ico, .card:nth-child(3) .ico, .value:nth-child(3) .ico { background: var(--yellow-soft); stroke: var(--yellow); }
.trust-in li:nth-child(4) .ico, .card:nth-child(4) .ico, .value:nth-child(4) .ico { background: var(--red-soft); stroke: var(--red); }

/* ---------- 8. Sections ---------- */
.block { padding: 44px 0; scroll-margin-top: calc(var(--nav-h) + var(--hero-min) + 12px); }
@media (max-width: 720px) { .block { padding: 32px 0; } }
.head { max-width: 680px; margin-bottom: 22px; }
.head.center { text-align: center; margin-inline: auto; }
.head h1, .head h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 6px; }
.head p:last-child { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 14px; }

/* About */
.about { padding-top: 48px; }
.about-in { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .about-in { grid-template-columns: 1fr; gap: 26px; } }
.about-text h2 { font-size: clamp(22px, 2.6vw, 30px); }
.about-text > p { color: var(--muted); font-size: 16px; line-height: 1.85; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.about-photo::before {
  content: ""; position: absolute; inset-inline-end: -12px; bottom: -12px; width: 55%; height: 55%;
  border-radius: 22px; background: var(--stripe); z-index: -1; opacity: .9;
}
@media (max-width: 520px) { .about-photo::before { inset-inline-end: -7px; bottom: -7px; } }

/* Vision & values */
.vision-box {
  position: relative; max-width: 900px; margin: 0 auto 30px; text-align: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px 24px;
}
.vision-box::before { content: ""; position: absolute; top: 0; inset-inline: 36px; height: 4px; border-radius: 0 0 6px 6px; background: var(--stripe); }
.vision-text { font-size: clamp(18px, 2vw, 23px); font-weight: 600; line-height: 1.7; margin: 0; }
.values-head { margin-bottom: 14px; }
.values { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.value {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  background: var(--glass); border: 1px solid var(--line); border-bottom: 3px solid var(--g-bright);
  border-radius: 18px; padding: 16px 18px;
}
.value .ico { width: 40px; height: 40px; padding: 9px; grid-row: span 2; align-self: start; }
.value h3 { font-size: 17px; margin: 0; }
.value p { color: var(--muted); font-size: 14.5px; margin: 0; }
.value:nth-child(2) { border-bottom-color: var(--o-bright); }
.value:nth-child(3) { border-bottom-color: var(--yellow); }
.value:nth-child(4) { border-bottom-color: var(--red); }

/* Product cards */
.cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 206, 57, .35); box-shadow: var(--shadow); }
.card .ico { width: 42px; height: 42px; margin-bottom: 12px; }
.card h3 { font-size: 17.5px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; flex: 1; }
.card-custom { background: linear-gradient(160deg, rgba(93, 187, 70, .16), rgba(238, 116, 48, .12)), var(--glass); border-color: rgba(255, 206, 57, .35); }
.card-custom .ico { background: var(--yellow-soft); stroke: var(--yellow); }

/* Sectors band */
.band { position: relative; overflow: hidden; border-block: 1px solid var(--line); }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 320px at 85% 0%, rgba(93, 187, 70, .14), transparent 70%),
              radial-gradient(600px 320px at 5% 100%, rgba(238, 116, 48, .12), transparent 70%);
}
.band .wrap { position: relative; }
.sectors { list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sector { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.sector strong { display: block; font-size: 17px; }
.sector strong::before { content: ""; display: block; width: 26px; height: 4px; border-radius: 4px; margin-bottom: 8px; background: var(--yellow); }
.sector:nth-child(3n+2) strong::before { background: var(--o-bright); }
.sector:nth-child(3n+3) strong::before { background: var(--g-bright); }
.sector span { color: var(--muted); font-size: 14px; }

/* Steps & notes */
.steps { list-style: none; padding: 0; margin: 0 0 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
}
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; grid-row: span 2; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; }
.step:nth-child(2) .num { background: var(--orange); }
.step:nth-child(3) .num { background: var(--yellow); color: #17190F; }
.step:nth-child(4) .num { background: #C10006; }
.step h3 { font-size: 16.5px; margin: 4px 0; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }
.duo { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.note { border-radius: 18px; padding: 16px 18px; }
.note h3 { font-size: 17px; margin-bottom: 4px; }
.note p { font-size: 14.5px; margin: 0; }
.note-green { background: var(--green-soft); border: 1px solid rgba(93, 187, 70, .22); }
.note-green h3 { color: var(--g-bright); }
.note-orange { background: var(--orange-soft); border: 1px solid rgba(238, 116, 48, .25); }
.note-orange h3 { color: var(--o-bright); }

/* Celebrities Advisor + "Have a question?" side by side */
.end-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .end-grid { grid-template-columns: 1fr; } }
.promo, .cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  border-radius: 20px; padding: 24px; position: relative; overflow: hidden;
}
.promo { background: linear-gradient(135deg, rgba(93, 187, 70, .14), rgba(238, 116, 48, .10)); border: 1px solid var(--line); }
.promo::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--stripe); }
.promo h2, .cta h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 4px; }
.promo p, .cta p { font-size: 14.5px; margin: 0; }
.promo p:last-child { color: var(--muted); }
.promo .tag { background: var(--yellow); color: #1B1207; border: 0; }
.cta { background: var(--grad-cta); color: #1B1207; box-shadow: 0 20px 50px rgba(238, 116, 48, .22); }
.cta p { color: rgba(27, 18, 7, .82); }
.cta .btn-accent { background: #0B0E0C; color: var(--yellow); box-shadow: none; }

/* ---------- 9. Legal / contact / 404 ---------- */
.legal h1 { font-size: clamp(28px, 4vw, 40px); }
.legal-date { color: var(--muted); font-size: 14px; }
.legal-intro { font-size: 18px; padding: 18px 20px; background: var(--green-soft); border: 1px solid rgba(93, 187, 70, .2); border-radius: var(--radius); margin: 18px 0 28px; }
.legal h2 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-top: 34px; }
.legal-num { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--orange-soft); color: var(--o-bright); font-size: 15px; font-weight: 700; }
.legal ul { margin: 0 0 12px; padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--o-bright); }

/* ---------- Inner pages: the same video banner with the page title (page_hero() in header.php) ---------- */
.page-hero { text-align: center; }
.page-hero .hero-box { justify-content: center; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media .hero-video { object-position: center; }
.page-hero .hero-box::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 50% 50%, rgba(19, 24, 21, .72), rgba(19, 24, 21, .9)),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.page-hero-in { position: relative; max-width: 900px; }
.page-hero .kicker { margin-bottom: 8px; }
.page-hero h1 {
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.25; margin: 0 0 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero-sub { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.8; }
.page-hero-date {
  display: inline-block; margin: 4px 0 0; padding: 5px 14px; border-radius: 999px; font-size: 13.5px;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.page-body { padding-top: 44px; }
@media (max-width: 600px) {

  .page-body { padding-top: 30px; }
}

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.contact-item { background: var(--glass); border: 1px solid var(--line); border-top: 3px solid var(--g-bright); border-radius: var(--radius); padding: 20px 22px; }
.contact-item:nth-child(2) { border-top-color: var(--o-bright); }
.contact-item:nth-child(3) { border-top-color: var(--yellow); }
.contact-item span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.contact-item a, .contact-item strong { font-size: 18px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-gov p { margin: 0; }

.nf { text-align: center; padding: 64px 0; }
.nf .wrap { display: flex; flex-direction: column; align-items: center; }
.nf-code { font-size: 72px; font-weight: 700; margin: 0; line-height: 1; }
.nf h1 { margin-top: 12px; }
.nf p { color: var(--muted); margin-bottom: 24px; }

/* ---------- 10. Footer: one simple line ---------- */
.foot { position: relative; z-index: 1; background: #0E120F; color: var(--muted); font-size: 14.5px; }
.foot::before { content: ""; display: block; height: 3px; background: var(--stripe); }
.foot-in { display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap; padding-block: 20px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-brand img { width: 32px; height: 32px; }
.foot-brand strong { font-size: 16px; }
.foot-rights { margin: 0; }
.foot-sep { margin-inline: 6px; color: var(--muted); }
.foot-brand + .foot-rights { padding-inline-start: 18px; border-inline-start: 1px solid var(--line); }
@media (max-width: 680px) { .foot-in { flex-direction: column; } .foot-brand + .foot-rights { padding: 0; border: 0; } }

/* ---------- 11. Less motion for people who ask for it ---------- */
/* ---------- Price with the Omani Rial symbol (built in view/shared/header.php: price_html) ---------- */
.price { white-space: nowrap; }
.omr { display: inline-block; width: 1.39em; height: .72em; vertical-align: baseline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-video { animation: none; }
  .btn, .card, .nav > a::after, .top { transition: none; }
}
