/* ==========================================================================
   Al-Imdad — Landing page styles
   Extends the app's petrol-teal / sand system (see src/AlImdad.Web/wwwroot/css/app.css).
   Self-contained: this file imports the same palette via :root so the landing
   can be hosted independently from the .NET app.
   ========================================================================== */

:root {
  /* PIF-inspired luxury palette: deep emerald + champagne gold */
  --imd-teal-900: #003D2D;
  --imd-teal-800: #024A3F;
  --imd-teal-700: #035C44;
  --imd-teal-600: #1A7560;
  --imd-teal-100: #DCEAE3;
  --imd-sand-600: #B08D3E;
  --imd-sand-500: #C9A961;
  --imd-sand-100: #F2E8D0;

  --imd-ink: #0B1F18;
  --imd-muted: #5B6B65;
  --imd-line: #E6E3D9;
  --imd-paper: #FAF8F3;
  --imd-card: #ffffff;

  --bs-primary: var(--imd-teal-700);
  --bs-body-bg: var(--imd-paper);
  --bs-body-color: var(--imd-ink);
  --bs-body-font-family: "Tajawal", system-ui, sans-serif;
  --bs-border-color: var(--imd-line);
  --bs-link-color: var(--imd-teal-600);
  --bs-link-hover-color: var(--imd-teal-900);
}

* { font-feature-settings: "ss01"; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--bs-body-font-family);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(26,117,96,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(201,169,97,.07), transparent 55%),
    var(--imd-paper);
  color: var(--imd-ink);
}

.text-sand { color: var(--imd-sand-500) !important; }

/* ---- Nav --------------------------------------------------------------- */
.imd-nav {
  background: var(--imd-teal-900);
  border-bottom: 3px solid var(--imd-sand-500);
  padding-block: .65rem;
}
.imd-brand {
  font-weight: 700; letter-spacing: .3px; color: #fff !important;
  display: flex; align-items: center; gap: .55rem; text-decoration: none;
}
.imd-brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--imd-sand-500), var(--imd-sand-600));
  color: var(--imd-teal-900); font-weight: 800;
  display: grid; place-items: center; font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.imd-nav .nav-link { color: #D9E6DF !important; font-weight: 500; }
.imd-nav .nav-link:hover { color: #fff !important; }
.imd-nav .navbar-toggler { border-color: rgba(255,255,255,.2); }
.imd-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---- Hero -------------------------------------------------------------- */
.imd-hero-wrap { padding: 2.25rem 0 0; }
.imd-hero {
  background: linear-gradient(135deg, var(--imd-teal-900), var(--imd-teal-700) 70%);
  color: #F0F5F1; border-radius: 22px; overflow: hidden; position: relative;
}
.imd-hero::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: -10%;
  width: 55%;
  background: radial-gradient(closest-side, rgba(201,169,97,.22), transparent);
  pointer-events: none;
}
.imd-hero h1 { font-weight: 800; line-height: 1.2; }
.imd-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  color: var(--imd-sand-600); font-weight: 700;
}
.imd-eyebrow-light { color: var(--imd-sand-500); }

.imd-hero-card {
  background: rgba(255,255,255,.96);
  color: var(--imd-ink);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.55);
  position: relative; z-index: 1;
}
.hero-row { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .95rem; }
.hero-row span { color: var(--imd-muted); }
.imd-pill {
  display: inline-block; font-size: .75rem; padding: .2rem .55rem; border-radius: 999px;
  background: var(--imd-teal-100); color: var(--imd-teal-900); margin-inline-start: .25rem;
}
.imd-pill-best { background: var(--imd-sand-100); color: var(--imd-sand-600); }

/* ---- Stats ------------------------------------------------------------- */
.imd-stats {
  padding: 3rem 0 1rem;
}
.stat-num {
  font-size: 2.25rem; font-weight: 800; color: var(--imd-teal-900); line-height: 1;
}
.stat-label { color: var(--imd-muted); margin-top: .4rem; font-size: .95rem; }

/* ---- Sections ---------------------------------------------------------- */
.imd-section { padding: 4rem 0; }
.imd-section-alt { background: #fff; border-block: 1px solid var(--imd-line); }
.imd-section-title { font-weight: 800; color: var(--imd-teal-900); }

/* ---- Cards ------------------------------------------------------------- */
.imd-card {
  background: var(--imd-card);
  border: 1px solid var(--imd-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,31,24,.04), 0 12px 28px -22px rgba(11,31,24,.45);
}
.imd-card-pad { padding: 1.5rem 1.6rem; }

.step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--imd-teal-100); color: var(--imd-teal-700);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .9rem;
}
.step-num {
  position: absolute; left: 1.2rem; top: 1.2rem;
  font-weight: 800; color: var(--imd-sand-500); font-size: 1.2rem;
}
.imd-card { position: relative; }

/* ---- Category cards ---------------------------------------------------- */
.imd-cat-card {
  background: #fff; border: 1px solid var(--imd-line); border-radius: 14px;
  padding: 1.25rem 1rem; text-align: center; height: 100%;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.imd-cat-card:hover {
  transform: translateY(-3px);
  border-color: var(--imd-teal-600);
  box-shadow: 0 16px 36px -22px rgba(11,31,24,.45);
}
.imd-cat-card i {
  font-size: 1.9rem; color: var(--imd-teal-700);
  background: var(--imd-teal-100); width: 56px; height: 56px;
  border-radius: 14px; display: grid; place-items: center; margin: 0 auto .75rem;
}
.imd-cat-card h6 { font-weight: 700; color: var(--imd-teal-900); margin-bottom: .25rem; }
.imd-cat-card small { color: var(--imd-muted); }

/* ---- Check list -------------------------------------------------------- */
.imd-check-list { list-style: none; padding: 0; margin: 0; }
.imd-check-list li {
  padding: .55rem 0; display: flex; gap: .6rem; align-items: flex-start; color: var(--imd-ink);
}
.imd-check-list li i { color: var(--imd-teal-600); font-size: 1.2rem; flex-shrink: 0; }

/* ---- Illustration blocks ---------------------------------------------- */
.imd-illu {
  background: #fff; border: 1px solid var(--imd-line); border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 16px 40px -24px rgba(11,31,24,.45);
}
.illu-row {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem .25rem; border-bottom: 1px dashed var(--imd-line); font-weight: 500;
}
.illu-row:last-child { border-bottom: 0; }
.illu-row i {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--imd-teal-100); color: var(--imd-teal-700);
  display: grid; place-items: center;
}
.illu-row.best i { background: var(--imd-sand-100); color: var(--imd-sand-600); }

/* ---- Badges (status) — same as app ------------------------------------ */
.imd-badge {
  font-size: .76rem; font-weight: 700; padding: .28rem .6rem; border-radius: 8px;
  border: 1px solid transparent;
}
.imd-badge.open       { background: var(--imd-teal-100); color: var(--imd-teal-900); border-color:#B7D4C9; }
.imd-badge.awarded    { background: var(--imd-sand-100); color: var(--imd-sand-600); border-color:#E3CFA0; }
.imd-badge.inprogress { background:#e3effa; color:#1c5a90; border-color:#c6ddf2; }

/* ---- Buttons (sand override) ------------------------------------------ */
.btn-primary {
  --bs-btn-bg: var(--imd-teal-700); --bs-btn-border-color: var(--imd-teal-700);
  --bs-btn-hover-bg: var(--imd-teal-900); --bs-btn-hover-border-color: var(--imd-teal-900);
  --bs-btn-active-bg: var(--imd-teal-900);
  font-weight: 600;
}
.btn-sand {
  background: var(--imd-sand-500); border: 1px solid var(--imd-sand-600);
  color: var(--imd-teal-900); font-weight: 700;
}
.btn-sand:hover { background: var(--imd-sand-600); color: #fff; }
.btn-outline-primary {
  --bs-btn-color: var(--imd-teal-700); --bs-btn-border-color: var(--imd-teal-600);
  --bs-btn-hover-bg: var(--imd-teal-700); --bs-btn-hover-border-color: var(--imd-teal-700);
}
.btn-outline-light { font-weight: 600; }

/* ---- Forms ------------------------------------------------------------- */
.form-control, .form-select {
  border-radius: 11px; border-color: var(--imd-line); padding: .6rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--imd-teal-600);
  box-shadow: 0 0 0 .2rem rgba(26,117,96,.15);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--imd-teal-900); }

/* ---- FAQ accordion ----------------------------------------------------- */
.imd-accordion .accordion-item {
  border: 1px solid var(--imd-line); border-radius: 12px !important;
  margin-bottom: .75rem; overflow: hidden;
}
.imd-accordion .accordion-button {
  font-weight: 600; color: var(--imd-teal-900); background: #fff;
}
.imd-accordion .accordion-button:not(.collapsed) {
  background: var(--imd-teal-100); color: var(--imd-teal-900); box-shadow: none;
}
.imd-accordion .accordion-button:focus { box-shadow: none; border-color: var(--imd-teal-600); }

/* ---- Footer ------------------------------------------------------------ */
.imd-foot {
  background: var(--imd-teal-900); color: #D9E6DF;
  border-top: 3px solid var(--imd-sand-500);
}
.imd-foot a { color: #F2E8D0; text-decoration: none; }
.imd-foot a:hover { color: #fff; }
.imd-foot .imd-brand { color: #fff; }

/* ---- Hero carousel + photo overlay (luxury feel) ---------------------- */
.imd-hero-carousel { border-radius: 22px; overflow: hidden; }
.imd-hero-photo {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0,61,45,.94), rgba(2,74,63,.88) 65%, rgba(0,61,45,.92)),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?w=1800&q=80") center/cover no-repeat;
  min-height: 460px;
}
.imd-hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 90% 20%, rgba(201,169,97,.15), transparent 60%);
  pointer-events: none;
}
.imd-hero-slide-2 {
  background:
    linear-gradient(135deg, rgba(0,61,45,.93), rgba(2,74,63,.85) 65%, rgba(0,61,45,.92)),
    url("https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1800&q=80") center/cover no-repeat;
}
.imd-hero-slide-3 {
  background:
    linear-gradient(135deg, rgba(0,61,45,.95), rgba(2,74,63,.88) 65%, rgba(0,61,45,.94)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1800&q=80") center/cover no-repeat;
}

/* Carousel controls + indicators tuned to brand */
.imd-carousel-indicators { bottom: .5rem; margin-bottom: 0; }
.imd-carousel-indicators button {
  width: 28px !important; height: 4px !important; border-radius: 2px;
  background-color: rgba(255,255,255,.4) !important;
  border: 0;
}
.imd-carousel-indicators .active { background-color: var(--imd-sand-500) !important; }
.imd-carousel-ctrl {
  width: 7%; opacity: .65;
}
.imd-carousel-ctrl:hover { opacity: 1; }
.imd-carousel-ctrl .carousel-control-prev-icon,
.imd-carousel-ctrl .carousel-control-next-icon {
  background-color: rgba(0,61,45,.35);
  border-radius: 999px;
  width: 38px; height: 38px;
  background-size: 18px;
  background-position: center;
}
/* In RTL, swap prev/next visually so arrows point correctly */
[dir="rtl"] .carousel-control-prev-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M5.78 7.22a.75.75 0 0 1 0 1.06L3.06 11h11.19a.75.75 0 0 1 0 1.5H3.06l2.72 2.72a.75.75 0 1 1-1.06 1.06L.97 12.53a.75.75 0 0 1 0-1.06l3.75-4.25a.75.75 0 0 1 1.06 0z' transform='matrix(-1 0 0 1 16 -4)'/%3E%3C/svg%3E");
}
[dir="rtl"] .carousel-control-next-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M10.22 8.78a.75.75 0 0 1 0-1.06L12.94 5H1.75a.75.75 0 0 1 0-1.5h11.19l-2.72-2.72A.75.75 0 0 1 11.28-.28L15.03 3.47a.75.75 0 0 1 0 1.06l-3.75 4.25a.75.75 0 0 1-1.06 0z' transform='translate(0 4)'/%3E%3C/svg%3E");
}

/* City list + step list inside hero cards */
.hero-city {
  display: flex; align-items: center; gap: .65rem;
  padding: .5rem 0; border-bottom: 1px dashed var(--imd-line);
  font-size: .95rem;
}
.hero-city:last-child { border-bottom: 0; }
.hero-city i { font-size: 1.05rem; }
.hero-city span { font-weight: 700; color: var(--imd-teal-900); }
.hero-city small { color: var(--imd-muted); margin-inline-start: auto; font-size: .8rem; }

.hero-step {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--imd-line);
}
.hero-step:last-child { border-bottom: 0; }
.hero-step .step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--imd-teal-100); color: var(--imd-teal-700);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
  flex-shrink: 0;
}
.hero-step.active .step-dot { background: var(--imd-sand-500); color: var(--imd-teal-900); }
.hero-step strong { display: block; color: var(--imd-teal-900); font-size: .95rem; line-height: 1.2; }
.hero-step small { color: var(--imd-muted); font-size: .78rem; }

/* ---- Brands marquee --------------------------------------------------- */
.imd-brands { padding: 3.5rem 0 4rem; background: #fff; border-block: 1px solid var(--imd-line); }
.imd-brands-heading {
  text-align: center; color: var(--imd-teal-900);
  font-weight: 500; margin-bottom: 1.75rem; font-size: 1.05rem;
}
.imd-brands-heading b { color: var(--imd-sand-600); font-weight: 700; }
.imd-brands-track-wrap {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.imd-brands-track {
  display: flex; gap: 1.25rem; width: max-content;
  animation: imdBrandsScroll 45s linear infinite;
}
.imd-brands-track-wrap:hover .imd-brands-track { animation-play-state: paused; }
.brand-card {
  flex: 0 0 auto;
  min-width: 180px; height: 80px;
  display: grid; place-items: center;
  background: var(--imd-paper);
  border: 1px solid var(--imd-line);
  border-radius: 14px;
  padding: 0 1.25rem;
  color: var(--imd-teal-900);
  font-weight: 600;
  font-size: 1rem;
  font-family: "Tajawal", sans-serif;
  letter-spacing: .2px;
  text-align: center;
  transition: border-color .2s, transform .15s, background .2s;
  direction: rtl;
}
.brand-card span {
  display: inline-block;
  background: linear-gradient(135deg, var(--imd-sand-600), var(--imd-sand-500));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 800;
  margin-inline-start: .35rem;
}
.brand-card:hover {
  border-color: var(--imd-sand-500);
  transform: translateY(-2px);
  background: #fff;
}
@keyframes imdBrandsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 576px) {
  .brand-card { min-width: 150px; height: 70px; font-size: .9rem; }
}

/* ---- Trust band (image + features) ------------------------------------ */
.imd-trustband { padding: 4rem 0; background: #fff; border-block: 1px solid var(--imd-line); }
.imd-photo-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,61,45,.55), 0 4px 12px rgba(0,61,45,.1);
  border: 1px solid var(--imd-line);
}
.imd-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.imd-photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,61,45,.25), transparent 45%);
  pointer-events: none;
}
.imd-photo-tag {
  position: absolute; inset-inline-end: 1rem; inset-block-end: 1rem;
  background: rgba(255,255,255,.95); color: var(--imd-teal-900);
  border: 1px solid var(--imd-line); border-radius: 12px;
  padding: .5rem .85rem; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 10px 25px -10px rgba(0,61,45,.45);
}
.imd-photo-tag i { color: var(--imd-sand-600); }

.imd-feature {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid var(--imd-line); border-radius: 12px; background: #fff;
  transition: border-color .2s, transform .15s;
}
.imd-feature:hover { border-color: var(--imd-teal-600); transform: translateY(-2px); }
.imd-feature i {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: var(--imd-teal-100); color: var(--imd-teal-700);
  display: grid; place-items: center; font-size: 1.15rem;
}
.imd-feature strong { display: block; color: var(--imd-teal-900); font-weight: 700; }
.imd-feature small { color: var(--imd-muted); }

/* ---- App stores — coming soon ----------------------------------------- */
.imd-appsoon { padding: 4rem 0; }
.imd-appsoon-card {
  background:
    linear-gradient(135deg, var(--imd-teal-900) 0%, var(--imd-teal-700) 70%);
  color: #F0F5F1;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  box-shadow: 0 25px 60px -25px rgba(0,61,45,.65);
  margin: 0;
}
.imd-appsoon-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(201,169,97,.22), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(201,169,97,.18), transparent 55%);
  pointer-events: none;
}
.imd-appsoon-card > * { position: relative; z-index: 1; }
.imd-section-title-light { font-weight: 800; color: #fff; }
.opacity-85 { opacity: .85; }

.imd-store-badge {
  display: inline-flex; align-items: center; gap: .75rem;
  background: #0a0a0a; color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px; padding: .65rem 1.1rem;
  text-decoration: none; min-width: 200px;
  transition: transform .15s, border-color .2s, background .2s;
  position: relative;
}
.imd-store-badge:hover {
  transform: translateY(-2px);
  background: #161616; border-color: var(--imd-sand-500); color: #fff;
}
.imd-store-badge i { font-size: 2rem; color: #fff; }
.imd-store-badge small { display: block; font-size: .7rem; opacity: .75; line-height: 1; }
.imd-store-badge strong { display: block; font-size: 1.1rem; font-weight: 700; line-height: 1.2; margin-top: .15rem; }
.imd-soon-pill {
  position: absolute; top: -8px; inset-inline-end: -8px;
  background: var(--imd-sand-500); color: var(--imd-teal-900);
  font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px;
  border: 2px solid var(--imd-teal-900);
}

.imd-phone-mock {
  display: inline-block; padding: 14px 14px 18px;
  background: linear-gradient(160deg, #1c2926, #0a1413);
  border-radius: 36px;
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,.7),
    inset 0 0 0 2px rgba(201,169,97,.25);
  position: relative;
}
.imd-phone-mock::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 6px; border-radius: 4px; background: #0a0a0a;
}
.imd-phone-screen {
  background: var(--imd-paper); border-radius: 26px;
  padding: 1.75rem 1rem 1.25rem; min-width: 260px; max-width: 280px;
  text-align: start;
}
.phone-row {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .7rem .15rem; border-bottom: 1px dashed var(--imd-line);
}
.phone-row:last-child { border-bottom: 0; }
.phone-row .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem; flex-shrink: 0; }
.phone-row .dot.teal { background: var(--imd-teal-600); }
.phone-row .dot.sand { background: var(--imd-sand-500); }
.phone-row .dot.green { background: #1f7a52; }
.phone-row strong { display: block; color: var(--imd-teal-900); font-size: .92rem; }
.phone-row small { color: var(--imd-muted); font-size: .78rem; }

/* ---- Floating WhatsApp FAB (icon-only, fixed visual right) ------------ */
.imd-wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  width: 56px;
  height: 56px;
  display: inline-grid; place-items: center;
  background: #25D366;
  color: #fff !important;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55), 0 4px 10px rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.imd-wa-fab:hover {
  background: #1ebe5b; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(37,211,102,.7), 0 6px 14px rgba(0,0,0,.22);
}
.imd-wa-icon { display: inline-grid; place-items: center; }
.imd-wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: imdWaPulse 2s infinite;
  pointer-events: none;
}
@keyframes imdWaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- Luxury full-bleed hero (Swiper) ----------------------------------
   Hero is pinned to the visible viewport (height minus sticky nav) so
   the whole slide — image, caption, pagination, scroll cue — fits
   without scroll. The image is shown fully via `contain`; the side
   bars left over when the viewport ratio differs from the image's
   3:2 are filled with a softly blurred copy of the same image
   (see .slide-bg::before below) so the letterbox visually disappears. */
.imd-hero-bleed {
  position: relative;
  width: 100%;
  height: calc(100vh - 76px);
  height: calc(100svh - 76px);
  max-height: 1080px;
  min-height: 480px;
  overflow: hidden;
  background: var(--imd-teal-900);
  margin: 0;
  padding: 0;
}
.imd-hero-bleed .swiper,
.imd-hero-bleed .swiper-wrapper,
.imd-hero-bleed .swiper-slide {
  width: 100%;
  height: 100%;
}
.imd-hero-bleed .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The inline `background-image` set on .slide-bg cascades to the two
   pseudos below via `inherit`. The source element itself paints
   nothing (background-size: 0 hides its own copy of the image);
   ::before renders the soft-blurred backdrop, ::after renders the
   sharp `contain`-fitted image on top. Source order (::before paints
   first, ::after paints after) keeps the sharp image on top — no
   need for negative z-index. */
.imd-hero-bleed .slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--imd-teal-900);
  background-size: 0;
  background-repeat: no-repeat;
}
.imd-hero-bleed .slide-bg::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: inherit;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(42px) brightness(.55) saturate(1.1);
}
.imd-hero-bleed .slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Slide entry — blurred backdrop blooms in, sharp image emerges with
   a focus pull (scale up + blur→0). Runs whenever a slide becomes
   active, so it replays each time the carousel loops back. */
.imd-hero-bleed .swiper-slide-active .slide-bg::before {
  animation: imdBlurBloom 2.8s cubic-bezier(.2, .65, .25, 1) both;
}
.imd-hero-bleed .swiper-slide-active .slide-bg::after {
  animation: imdImgFocus 3.2s .35s cubic-bezier(.2, .65, .25, 1) both;
}
@keyframes imdBlurBloom {
  0%   { opacity: 0; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes imdImgFocus {
  0%   { opacity: 0; transform: scale(.94); filter: blur(10px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1);   filter: blur(0); }
}

/* Localized scrim — dark only in the caption corner so the
   explainer's central content stays bright and readable. */
.imd-hero-bleed .slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(620px 420px at 95% 95%, rgba(0, 0, 0, .6), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .25));
  pointer-events: none;
}

/* Slide content — small caption pinned to the bottom-start corner */
.imd-hero-bleed .slide-content {
  position: absolute;
  z-index: 2;
  bottom: 88px;
  inset-inline-start: 5%;
  max-width: 460px;
  color: #F4F8F4;
  text-align: start;
}
.imd-hero-bleed .slide-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .7rem;
  font-weight: 700;
  color: var(--imd-sand-500);
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 169, 97, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(16px);
}
.imd-hero-bleed .slide-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.3px;
  margin: 0 0 1rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(20px);
}
.imd-hero-bleed .slide-title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(120deg, var(--imd-sand-500) 0%, #F2E8D0 50%, var(--imd-sand-500) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: imdShine 7s linear infinite;
}
@keyframes imdShine {
  to { background-position: 220% center; }
}
.imd-hero-bleed .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--imd-sand-500);
  text-decoration: none;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--imd-sand-500);
  transition: gap .25s ease, color .2s ease, border-color .2s ease;
  opacity: 0;
  transform: translateY(20px);
}
.imd-hero-bleed .slide-cta:hover {
  color: #F2E8D0;
  border-color: #F2E8D0;
  gap: .9rem;
}
.imd-hero-bleed .slide-cta i { font-size: 1.05rem; }

/* Staggered reveal when slide becomes active */
.imd-hero-bleed .swiper-slide-active .slide-eyebrow { animation: imdReveal 1.4s 1.2s ease-out forwards; }
.imd-hero-bleed .swiper-slide-active .slide-title   { animation: imdReveal 1.5s 1.5s ease-out forwards; }
.imd-hero-bleed .swiper-slide-active .slide-cta     { animation: imdReveal 1.5s 1.9s ease-out forwards; }
@keyframes imdReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Pagination — sand accents */
.imd-hero-bleed .swiper-pagination {
  bottom: 32px !important;
}
.imd-hero-bleed .swiper-pagination-bullet {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  opacity: 1;
  margin: 0 5px !important;
  transition: background .3s, width .3s;
}
.imd-hero-bleed .swiper-pagination-bullet-active {
  background: var(--imd-sand-500);
  width: 52px;
}

/* Nav arrows — glassy circle */
.imd-hero-bleed .swiper-button-prev,
.imd-hero-bleed .swiper-button-next {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  transition: background .25s, border-color .25s, transform .25s, color .25s;
  top: 50%;
  margin-top: -27px;
}
.imd-hero-bleed .swiper-button-prev { left: 28px; right: auto; }
.imd-hero-bleed .swiper-button-next { right: 28px; left: auto; }
.imd-hero-bleed .swiper-button-prev:hover,
.imd-hero-bleed .swiper-button-next:hover {
  background: var(--imd-sand-500);
  border-color: var(--imd-sand-500);
  color: var(--imd-teal-900);
  transform: scale(1.08);
}
.imd-hero-bleed .swiper-button-prev::after,
.imd-hero-bleed .swiper-button-next::after {
  font-size: 18px;
  font-weight: 800;
}

/* Scroll cue */
.imd-hero-scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.75);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  animation: imdHeroCue 2.6s ease-in-out infinite;
}
.imd-hero-scroll-cue:hover { color: var(--imd-sand-500); }
.imd-hero-scroll-cue .cue-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--imd-sand-500));
}
.imd-hero-scroll-cue i { font-size: .9rem; color: var(--imd-sand-500); }
@keyframes imdHeroCue {
  0%, 100% { transform: translate(-50%, 0); opacity: .9; }
  50%      { transform: translate(-50%, 8px); opacity: .55; }
}

@media (max-width: 991.98px) {
  .imd-hero-bleed .swiper-button-prev,
  .imd-hero-bleed .swiper-button-next { display: none; }
}
@media (max-width: 576px) {
  .imd-hero-bleed { min-height: 480px; }
  .imd-hero-bleed .slide-content {
    bottom: 70px;
    inset-inline-start: 5%;
    inset-inline-end: 5%;
    max-width: none;
  }
  .imd-hero-scroll-cue { bottom: 56px; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .imd-hero-bleed .slide-title em,
  .imd-hero-scroll-cue,
  .imd-hero-bleed .swiper-slide-active .slide-bg::before,
  .imd-hero-bleed .swiper-slide-active .slide-bg::after,
  .imd-hero-bleed .swiper-slide-active .slide-eyebrow,
  .imd-hero-bleed .swiper-slide-active .slide-title,
  .imd-hero-bleed .swiper-slide-active .slide-cta {
    animation: none !important;
  }
  .imd-hero-bleed .slide-eyebrow,
  .imd-hero-bleed .slide-title,
  .imd-hero-bleed .slide-cta { opacity: 1; transform: none; }
}

/* ---- Responsive tweaks ------------------------------------------------- */
@media (max-width: 768px) {
  .imd-hero { border-radius: 16px; }
  .imd-section { padding: 3rem 0; }
  .stat-num { font-size: 1.75rem; }
  .imd-appsoon-card { padding: 1.75rem 1.25rem; border-radius: 18px; }
  .imd-store-badge { min-width: unset; flex: 1; }
}
