/* ══════════════════════════════════════════════════════
   BLINDS DUBAI — Theme Overrides & Missing Classes
   Loaded after app.bundle.min.css to fix class gaps
   and apply glass morphism / white-black-blur design
   ══════════════════════════════════════════════════════ */

/* ── Fixed accent: light gray (picker removed) ──────── */
:root {
  --accent:       #9AA0A6;
  --accent-2:     #6E7479;
  --accent-light: rgba(154,160,166,.12);
  --accent-glow:  rgba(154,160,166,.22);
  --sh-accent:    0 12px 40px rgba(154,160,166,.22);

  /* Neutral "primary" aliases. The booking page and the location-page
     renderer were ported from the curtains project, which uses --primary
     for its near-black UI colour. Map them onto this project's tones. */
  --primary:      #1c1b17;   /* = --dark */
  --primary-2:    #5c5a54;   /* = --mid  */
}

/* Theme color picker was removed — keep it hidden in case any cached
   page still ships the old markup. */
.theme-picker { display: none !important; }

/* ── Brand logo (REX/BLINDZ wordmark) ────────────────────────────
   The source PNG is 478x246 with a lot of vertical padding around the
   wordmark, so the rendered height is larger than a text logo would be.
   width:auto preserves the 1.94:1 ratio; the explicit width/height on the
   <img> keeps the layout from shifting while it loads. */
.nav-logo,
.ft-logo { gap: 0; }

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

/* The wordmark is near-black, which disappears on the #111 footer.
   brightness(0) flattens it to black, invert(1) then flips it to solid
   white — legible on the dark panel. This also whitens the red slash;
   swap in a dedicated light logo file here if you want it kept. */
.ft-logo img {
  height: 46px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* Mobile menu panel header */
.nm-header .nav-logo img { height: 36px; }

@media (max-width: 991px) {
  .nav-logo img { height: 36px; }
}
@media (max-width: 480px) {
  .nav-logo img { height: 32px; }
  .ft-logo img  { height: 40px; }
}

/* ── Theme color picker widget (legacy, unused) ──────── */
.theme-picker {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.theme-picker-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--black);
  color: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  z-index: 2;
}
.theme-picker-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.theme-picker-btn i {
  transition: color .25s ease;
  color: var(--accent);
}

.theme-picker-panel {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.96);
  transition: opacity .22s ease, visibility 0s .22s, transform .22s ease;
  min-width: 160px;
}
.theme-picker-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity .22s ease, transform .22s ease;
}
.theme-picker-label {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}
.theme-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  outline: none;
}
.theme-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.theme-swatch.active {
  border-color: var(--black);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
}
.theme-swatch-name {
  font-size: .68rem;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

.theme-picker-divider {
  height: 1px;
  background: rgba(0,0,0,.07);
  margin: 10px 0;
}
.theme-color-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.theme-color-input {
  width: 36px;
  height: 36px;
  padding: 2px;
  border: 2.5px solid rgba(0,0,0,.12);
  border-radius: 50%;
  cursor: pointer;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  flex-shrink: 0;
}
.theme-color-input:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.theme-color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.theme-color-input::-webkit-color-swatch         { border: none; border-radius: 50%; }
.theme-color-input::-moz-color-swatch            { border: none; border-radius: 50%; }
.theme-color-label {
  font-size: .72rem;
  color: #888;
  user-select: none;
}

@media (max-width: 575px) {
  .theme-picker { left: 16px; bottom: 18px; }
  .theme-picker-btn { width: 40px; height: 40px; font-size: 1rem; }
}

/* ── ANN BAR tweaks ────────────────────────────────── */
.ann-cta {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(200,169,106,.35);
  padding-bottom: 1px;
  transition: opacity .2s;
}
.ann-cta:hover { opacity: .75 !important; }

/* ── Glass NAV enhancements ─────────────────────────── */
.nav-main {
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: saturate(200%) blur(22px) !important;
  -webkit-backdrop-filter: saturate(200%) blur(22px) !important;
}
.nav-main.scrolled {
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 6px 36px rgba(0,0,0,.07), 0 1px 0 rgba(0,0,0,.03) !important;
}

/* Nav link hover pill effect */
.nav-main .nav-links > li > a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-family: var(--fh);
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-main .nav-links > li > a.nav-link:hover {
  background: var(--off);
  color: var(--black);
}
.nav-item-mega.is-open > a.nav-link {
  background: var(--off);
  color: var(--black);
}
.nav-item-mega.is-open .nav-caret i {
  transform: rotate(180deg);
}
.nav-caret i {
  transition: transform .25s ease;
  opacity: .5;
  font-size: .65rem;
}

/* ── MEGA WRAP glass panel ──────────────────────────── */
.mega-wrap {
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,.09) !important;
}

/* ── FOOTER GRID LAYOUT ─────────────────────────────── */
.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr 1.1fr;
  gap: 36px 44px;
  padding: 56px 0 44px;
}
.ft-brand-col,
.ft-col {
  /* columns inherit from grid parent */
}

@media (max-width: 1100px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 32px;
  }
  .ft-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .ft-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .ft-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER CONTACT STRIP ───────────────────────────── */
.ft-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 4px;
}
.ft-contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: rgba(255,255,255,.38);
  line-height: 1.5;
}
.ft-contact-item i {
  color: var(--accent);
  font-size: .75rem;
  flex-shrink: 0;
}
.ft-contact-item a {
  color: rgba(255,255,255,.48);
  text-decoration: none;
  transition: color .2s;
}
.ft-contact-item a:hover { color: rgba(255,255,255,.9); }

/* ── FOOTER SOCIAL fix (ensure .ft-soc styles apply) ── */
.ft-social a {
  /* Fallback if ft-soc class is present but FA icon size varies */
  flex-shrink: 0;
}

/* ── MOBILE NAV glass header ─────────────────────────── */
.nm-header {
  background: rgba(255,255,255,.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ── PRODUCT CARD glass hover effect ─────────────────── */
.prod-card {
  transition: box-shadow .2s ease, transform .2s ease !important;
}
.prod-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.11) !important;
  transform: translateY(-3px) !important;
}

/* ── WA FLOAT button pulse ───────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(37,211,102,.45);
  color: #fff;
}
@media (max-width: 575px) {
  .wa-float { width: 46px; height: 46px; font-size: 1.2rem; bottom: 18px; right: 16px; }
}

/* ── Prevent mega-backdrop from interfering on mobile ── */
@media (max-width: 991px) {
  #megaBackdrop.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .25s ease;
    pointer-events: auto;
  }
}
