/* ==========================================================================
   ABR eSiren — Client Space polish layer
   Loaded after the pages' own inline <style>. Additive overrides only.
   ========================================================================== */

/* ---- Logo: was dark blue on the dark navy bar (barely visible) ---------- */
.navbar .navbar-brand img,
.portal-navbar .navbar-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

/* ---- Ramzan countdown bar: compact, dismissible, never hides content ----- */
#ramazanFooter {
  z-index: 1030;                 /* below Bootstrap modals (1050+) */
}
body.modal-open #ramazanFooter {
  display: none !important;      /* never cover the login modal */
}
#ramazanFooterInner {
  position: relative;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 8px 48px 8px 16px;
}
.rfTitle {
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
}
.rfTimer {
  gap: 8px;
  flex-wrap: nowrap;
}
.rfBox {
  min-width: 72px;
  padding: 2px 8px;
  border-radius: 10px;
}
.rfVal {
  font-size: 24px;
  line-height: 1.05;
  text-shadow: 2px 3px 4px rgba(0, 0, 0, .55);
}
.rfLab {
  font-size: 9px;
}
#ramazanFooter .rfClose {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  line-height: 28px;
  font-size: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .18);
  color: #fff;
}
#ramazanFooter .rfClose:hover {
  background: rgba(0, 0, 0, .32);
}
/* keep the end of the page reachable while the bar is shown */
body:has(#ramazanFooter.rz-on) footer {
  padding-bottom: calc(70px + .5rem) !important;   /* site footer stays above the bar */
}

/* the site footer had an inline 100px bottom margin to clear the old tall bar */
body > footer,
body footer.bg-primary {
  margin-bottom: 0 !important;
}

/* ---- Promo popup ------------------------------------------------------- */
#ramazanPopupClose {
  top: 12px !important;          /* was pushed to the middle on phones */
  z-index: 2;
  font-size: 28px;
  line-height: 36px;
}
#ramazanPopup {
  display: flex;
  flex-direction: column;
}
#ramazanPopupInner {
  overflow-y: auto;              /* short phones: scroll instead of clipping */
  -webkit-overflow-scrolling: touch;
}

/* ---- Floating contact menu: sit just above the countdown bar ------------ */
.menu {
  bottom: -64px;                 /* button ~78px from the bottom (above the bar) */
  transition: bottom .3s ease;
}
body:not(:has(#ramazanFooter.rz-on)) .menu {
  bottom: -120px;                /* no bar: ~22px from the bottom edge */
}
body.modal-open .menu {
  display: none;
}

/* ---- Phones ------------------------------------------------------------ */
@media (max-width: 576px) {
  #ramazanFooterInner {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 6px 44px 7px 10px;
  }
  .rfTitle {
    font-size: 11.5px;
    line-height: 1.25;
    text-align: center;
  }
  .rfTitle br {
    display: none;
  }
  .rfTimer {
    justify-content: center;
    gap: 6px;
  }
  .rfBox {
    min-width: 0;
    flex: 1 1 0;
    max-width: 70px;
    padding: 1px 4px;
  }
  .rfVal {
    font-size: 19px;
  }
  .rfLab {
    font-size: 8px;
    letter-spacing: .6px;
  }
  body:has(#ramazanFooter.rz-on) footer {
    padding-bottom: calc(84px + .5rem) !important;
  }
  .menu {
    bottom: -46px;               /* clears the ~83px bar */
  }

  body:not(:has(#ramazanFooter.rz-on)) .menu {
    bottom: -120px;
  }

  #ramazanPopupInner {
    padding: 18px 16px 16px;
  }
  #ramazanTitle {
    margin: 14px 44px 12px 0;    /* keep clear of the close button */
  }
  .rtBox {
    min-width: calc(50% - 5px);
    padding: 8px 6px;
  }
  .rtVal {
    font-size: 44px;
  }
  #ramazanCtaBtn {
    width: 100%;
    padding: 10px 14px;
  }

  /* modal: full-width sheet feel */
  #loginModal .modal-dialog {
    margin: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu { transition: none; }
}

/* ==========================================================================
   LANDING PAGE DESIGN PASS  (body.cs-landing — index.php only)
   ========================================================================== */
.cs-landing {
  --cs-navy: #002352;
  --cs-navy-2: #0b3b6f;
  --cs-pink: #e91e63;
  --cs-amber: #fbbf24;
  --cs-green: #16a34a;
  --cs-ink: #0f172a;
  --cs-muted: #5b6475;
  --cs-radius: 16px;
  --cs-shadow: 0 10px 30px -12px rgba(2, 18, 46, .35);
  color: var(--cs-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.cs-landing section[id] {
  scroll-margin-top: 78px;              /* anchors no longer hide under the sticky nav */
}

/* ---- Navigation ------------------------------------------------------- */
.cs-landing > nav.navbar {
  background: rgba(0, 35, 82, .92) !important;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  filter: none !important;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .55);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cs-landing > nav.navbar .navbar-nav {
  font-family: montserrat, sans-serif !important;
  font-weight: 500 !important;
  gap: 2px;
}
.cs-landing > nav.navbar .nav-link {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, .78) !important;
  padding: 6px 12px !important;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.cs-landing > nav.navbar .nav-link:hover,
.cs-landing > nav.navbar .nav-link.cs-current {
  color: #fff !important;
  background: rgba(255, 255, 255, .10);
}
.cs-landing > nav.navbar .nav-link.text-danger { color: #ff8fa3 !important; }
.cs-landing > nav.navbar .nav-link.text-warning {
  color: var(--cs-navy) !important;
  background: var(--cs-amber);
  font-weight: 700;
  margin-left: 4px;
}
.cs-landing > nav.navbar .nav-link.text-warning:hover { filter: brightness(1.06); }
.cs-landing > nav.navbar .btn-outline-light {
  border-radius: 999px;
  padding: 5px 16px;
  font-weight: 600;
}
.cs-landing > nav.navbar .navbar-toggler {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, .25);
}
@media (max-width: 767.98px) {
  .cs-landing > nav.navbar .navbar-collapse {
    margin-top: 10px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
  }
  .cs-landing > nav.navbar .nav-link { padding: 9px 14px !important; }
  .cs-landing > nav.navbar .nav-link.text-warning { margin: 4px 0; text-align: center; }
  .cs-landing > nav.navbar .btn-outline-light { width: 100%; margin-top: 6px; }
}

/* ---- Hero ------------------------------------------------------------- */
.cs-landing .hero { filter: none; }
.cs-landing .hero h1 {
  font-weight: 800 !important;
  letter-spacing: -.5px;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  text-shadow: 0 3px 14px rgba(0, 0, 0, .28);
}
.cs-landing .hero .lead {
  font-size: 1.05rem;
  opacity: .95;
}
/* bullet list → check marks (JS strips the typed "•" glyphs) */
.cs-landing .hero ul.list-unstyled li {
  position: relative;
  padding: 3px 0 3px 27px;
  font-size: .93rem;
}
.cs-landing .hero ul.list-unstyled li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath fill=%22%2316a34a%22 d=%22M13.5 4.5 6.5 11.5 2.5 7.5l1.4-1.4 2.6 2.6 5.6-5.6z%22/%3E%3C/svg%3E") center / 11px no-repeat;
}
.cs-hero-cta { margin-top: 8px; }
.cs-btn-primary,
.cs-btn-ghost {
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}
.cs-btn-primary {
  color: var(--cs-navy) !important;
  background: linear-gradient(90deg, #fbbf24, #fde047) !important;
  border: 0 !important;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45);
}
.cs-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -8px rgba(0, 0, 0, .5); }
.cs-btn-ghost {
  color: #fff !important;
  background: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
}
.cs-btn-ghost:hover { background: rgba(255, 255, 255, .22) !important; transform: translateY(-2px); }
@media (max-width: 575.98px) {
  .cs-hero-cta .btn { flex: 1 1 auto; }
}

/* ---- Section headings ------------------------------------------------- */
.cs-landing section h2.h4.text-center {
  font-weight: 800;
  letter-spacing: -.3px;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: .6rem !important;
}
.cs-landing section h2.h4.text-center::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cs-pink), var(--cs-amber));
}
.cs-landing section h2.h4.text-center + p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cs-muted) !important;
  font-size: .98rem;
  line-height: 1.6;
}
.cs-landing #workshop h2.h4 + p { color: rgba(255, 255, 255, .85) !important; }

/* calmer section backgrounds (same hues, less glare) */
.cs-landing #product.bg-warning,
.cs-landing #faq.bg-warning {
  background: linear-gradient(180deg, #ffd23f 0%, #ffc414 100%) !important;
}
.cs-landing #workshop.bg-primary {
  background: linear-gradient(160deg, #0b3b6f 0%, #002352 100%) !important;
}
.cs-landing #qr-codes.bg-danger {
  background: linear-gradient(160deg, #c81e3a 0%, #9f1239 100%) !important;
}
.cs-landing #order-now {
  background: linear-gradient(180deg, #e8f6ee 0%, #d6efe0 100%) !important;
}

/* ---- Media ------------------------------------------------------------ */
.cs-landing .carousel-inner,
.cs-landing section img.img-fluid.rounded-3,
.cs-landing #demo video {
  border-radius: var(--cs-radius) !important;
}
.cs-landing .carousel-inner { overflow: hidden; }

/* ---- Feature cards ---------------------------------------------------- */
.cs-landing #features .card {
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow) !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cs-landing #features .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(2, 18, 46, .45) !important;
}
.cs-landing #features .card-body { padding: 22px; }
.cs-landing #features h3.h6 {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: .4rem;
}
.cs-landing .feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cs-navy-2), var(--cs-navy));
  box-shadow: 0 8px 18px -8px rgba(0, 35, 82, .7);
}
.cs-landing .feature-icon .fs-3 { font-size: 1.45rem !important; }

/* ---- Language pills (manual + PaySafe) -------------------------------- */
.cs-landing #manual .bg-danger.rounded-2 {
  background: #fff !important;
  border: 1px solid #e5e7eb;
  border-radius: 22px !important;
  box-shadow: var(--cs-shadow);
  padding: 6px 10px !important;
}
.cs-landing #manual .btn-check + .btn,
.cs-landing #qr-codes .btn-check + .btn {
  border-radius: 999px;
  color: #374151;
  border: 0;
  padding: 5px 14px !important;
  font-weight: 600;
  font-size: .9rem;
}
.cs-landing #manual .btn-check + .btn:hover,
.cs-landing #qr-codes .btn-check + .btn:hover { background: #f3f4f6; }
.cs-landing #manual .btn-check:checked + .btn,
.cs-landing #qr-codes .btn-check:checked + .btn {
  background: var(--cs-pink);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(233, 30, 99, .7);
}
.cs-landing #qr-codes > .container-fluid > .container.bg-light {
  border-radius: 22px !important;
  padding: 6px 10px !important;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5);
}

/* ---- Order form ------------------------------------------------------- */
.cs-landing #order_form_acc {
  filter: none !important;
  border-radius: 20px;
  box-shadow: 0 24px 50px -24px rgba(2, 18, 46, .45);
}
.cs-landing #order_form_acc .accordion-item {
  border: 0;
  border-radius: 20px !important;
  overflow: hidden;
}
.cs-landing #order_form_acc .accordion-button {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--cs-navy), var(--cs-navy-2));
  box-shadow: none;
  padding: 16px 22px;
}
.cs-landing #order_form_acc .accordion-button::after { filter: brightness(0) invert(1); }
.cs-landing #orderForm .form-label {
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
  margin: 12px 0 5px;
}
.cs-landing #orderForm .form-control {
  border: 1px solid #d5dbe4 !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  padding: 10px 12px;
  font-size: 15px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.cs-landing #orderForm .form-control:focus {
  background: #fff !important;
  border-color: var(--cs-green) !important;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .15) !important;
}
.cs-landing #order-pricing-summary { border-radius: 14px !important; }
.cs-landing #create_order_submit_btn,
.cs-landing #orderform_reset {
  border-radius: 999px !important;
  padding: 9px 18px !important;
  font-weight: 600;
}

/* ---- FAQ -------------------------------------------------------------- */
.cs-landing #faqAcc { filter: none !important; }
.cs-landing #faqAcc .accordion-item {
  border: 0;
  border-radius: 14px !important;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, .35);
}
.cs-landing #faqAcc .accordion-button {
  font-weight: 600;
  font-size: .97rem;
  padding: 16px 20px;
  color: var(--cs-ink);
}
.cs-landing #faqAcc .accordion-button:not(.collapsed) {
  color: var(--cs-navy);
  background: #eef4ff;
  box-shadow: inset 4px 0 0 var(--cs-pink);
}
.cs-landing #faqAcc .accordion-button:focus { box-shadow: 0 0 0 3px rgba(233, 30, 99, .18); }
.cs-landing #faqAcc .accordion-body {
  font-size: .93rem !important;
  line-height: 1.65;
  color: #374151;
  padding: 16px 20px 18px;
}

/* ---- Where to buy ----------------------------------------------------- */
.cs-landing #whereToBuy .rounded-4 { border-radius: 20px !important; }
.cs-landing #whereToBuy .btn.py-3 {
  border-radius: 14px;
  font-weight: 700;
  font-family: montserrat, sans-serif;
}
.cs-landing #whereToBuy iframe { border: 0 !important; border-radius: 14px !important; }

/* ---- Footer ----------------------------------------------------------- */
.cs-landing > footer {
  background: var(--cs-navy) !important;
  border-top: 0 !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}
.cs-landing > footer .container { opacity: .85; font-size: 13px !important; }

/* ---- Scroll reveal (JS adds .cs-reveal / .cs-in) ---------------------- */
.cs-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.cs-reveal.cs-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .cs-reveal { opacity: 1; transform: none; transition: none; }
  .cs-landing #features .card,
  .cs-btn-primary, .cs-btn-ghost { transition: none !important; }
}
