/* Katropa UI layer
   Front-end refinements that sit on top of the Elementor build.
   Loaded by wp-content/novamira-sandbox/katropa-ui.php
   ------------------------------------------------------------------ */

:root{
  --kp-topbar-h: 38px;
  --kp-header-h: 104px;
  --kp-ink: #27333B;
  --kp-ink-deep: #1F2A31;
}

/* ==================================================================
   1. TRANSPARENT HEADER
   The topbar and header are lifted out of the flow so the hero runs
   full-bleed behind them. On scroll the topbar slides away and the
   header picks up a solid, blurred background.
   ================================================================== */

body.kp-overlay-header .elementor > .e-con:first-child,
body.kp-overlay-header .elementor > header.e-con{
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
}

/* --- topbar ------------------------------------------------------ */
body.kp-overlay-header .elementor > .e-con:first-child{
  top: 0;
  z-index: 120;
  background: rgba(31,42,49,.45) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: transform .32s ease, opacity .22s ease;
}
body.kp-overlay-header .elementor > .e-con:first-child span{
  color: rgba(255,255,255,.88) !important;
}

/* --- header ------------------------------------------------------ */
body.kp-overlay-header .elementor > header.e-con{
  top: var(--kp-topbar-h);
  z-index: 110;
  background: transparent !important;
  box-shadow: none;
  border-bottom-color: transparent !important;
  transition: top .32s ease, background-color .32s ease,
              box-shadow .32s ease, border-color .32s ease;
}

/* nav + phone read as light while the header floats over the hero */
body.kp-overlay-header .elementor > header.e-con span,
body.kp-overlay-header .elementor > header.e-con a.e-paragraph-link-base{
  color: #FFFFFF !important;
}
body.kp-overlay-header .elementor > header.e-con a.e-paragraph-link-base{
  transition: color .2s ease, opacity .2s ease;
}
body.kp-overlay-header .elementor > header.e-con a.e-paragraph-link-base:hover{
  color: var(--kp-gold, #E8C473) !important;
}

/* logo shrinks slightly once the header is solid */
body.kp-overlay-header .elementor > header.e-con img{
  transition: max-height .3s ease, filter .3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.45));
}
body.kp-overlay-header.kp-scrolled .elementor > header.e-con img{
  filter: none;
}

/* the first section runs under the header, so it carries the clearance */
body.kp-overlay-header .elementor > header.e-con + .e-con{
  padding-top: calc(var(--kp-topbar-h) + var(--kp-header-h)) !important;
}

/* --- scrolled state ---------------------------------------------- */
body.kp-overlay-header.kp-scrolled .elementor > .e-con:first-child{
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
body.kp-overlay-header.kp-scrolled .elementor > header.e-con{
  top: 0;
  background: rgba(31,42,49,.95) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(10,16,20,.30);
  border-bottom-color: rgba(255,255,255,.10) !important;
}
body.kp-overlay-header.kp-scrolled .elementor > header.e-con img{
  max-height: 56px;
}

/* --- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  body.kp-overlay-header .elementor > .e-con:first-child,
  body.kp-overlay-header .elementor > header.e-con,
  body.kp-overlay-header .elementor > header.e-con img{
    transition: none !important;
  }
}

/* ==================================================================
   2. MOBILE STICKY ACTION BAR
   The bar is fixed to the bottom on phones, so the page needs room
   underneath it and the bar needs to clear the home indicator.
   ================================================================== */

@media (max-width: 767px){
  body.kp-overlay-header{
    padding-bottom: 76px;
  }
  body.kp-overlay-header .elementor > .e-con:last-child{
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }

  /* the nav row that wraps under the logo reads as a light divider */
  body.kp-overlay-header .elementor > header.e-con .e-con{
    border-color: rgba(255,255,255,.18) !important;
  }
}

/* ==================================================================
   3. LIVE "OPEN NOW" STATUS
   Injected into the topbar by ui.js, driven by Riyadh local time.
   ================================================================== */

.kp-status{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.kp-status__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 0 rgba(37,211,102,.65);
  animation: kp-pulse 2.4s ease-out infinite;
}
.kp-status--closed .kp-status__dot{
  background: #E0A33A;
  animation: none;
}
.kp-status--open{ color: #6FE39A !important; }
.kp-status--closed{ color: #E8C473 !important; }

@keyframes kp-pulse{
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce){
  .kp-status__dot{ animation: none; }
}

/* ==================================================================
   4. SMALL FIXES
   ================================================================== */

/* the map iframe flashes white while Google loads — sit it on a tint */
.elementor iframe[src*="maps"]{
  background: #E9EEF2;
}

/* visible keyboard focus on every call-to-action */
.elementor a:focus-visible,
.elementor button:focus-visible{
  outline: 2px solid #E8C473;
  outline-offset: 3px;
  border-radius: 999px;
}
