/* =========================================================================
   HEADER TOP BARS — announcement ticker + contact/info bar
   New section added above the site's existing white nav bar, to match
   the supplied header mockup. Scoped custom properties, kept separate
   from css/design-system.css's brand tokens (reused where it makes sense)
   so this can be lifted out cleanly later if the header is redesigned again.
   ========================================================================= */

:root {
  --headerTop-announce-bg: #4E1048;     /* deep maroon/plum, sampled from the mockup */
  --headerTop-announce-bg-2: #3A0C36;
  --headerTop-announce-text: #F3E9EF;
  --headerTop-gold: var(--brand-accent, #F0891A);
  --headerTop-gold-dark: var(--brand-accent-dark, #D97400);
  --headerTop-info-bg: #FFFFFF;
  --headerTop-info-border: var(--brand-border, #E8E2D8);
  --headerTop-info-text: var(--brand-text, #1C1C1C);
  --headerTop-info-muted: var(--brand-muted, #6B7280);
}

/* -------------------------------------------------------------------------
   Make the existing nav bar sit BELOW these two new bars instead of being
   covered by them. The theme's `.header.-type-3` is `position: fixed;
   top: 0` from page load (not just once scrolled), which visually hides
   whatever is behind it. Changing it to `position: sticky` keeps the
   exact same end state once the user scrolls — it still pins to the top
   of the viewport at that point, so every page's existing spacing lower
   down (built around the header's 88px height) is untouched — but before
   scrolling it now sits in normal flow, right after the ticker and info
   bars, instead of floating fixed on top of them from the first frame.
   The existing headerSticky()/-is-sticky toggle in js/main.js still runs
   unchanged; it only adds a background/shadow class, independent of
   fixed vs sticky positioning.
------------------------------------------------------------------------- */

.header.-type-3.js-header {
  position: sticky;
}

/* Note: this used to also need an override for `main { overflow: hidden; }`
   (css/main.css) — any non-visible overflow on an ancestor blocks
   `position: sticky` from tracking the real page scroll, and <main> used
   to wrap the header. That's fixed at the markup level instead now:
   <main> opens after the header/mobile-menu block (see header.php/
   footer.php), so the header sticks relative to <body> like a normal
   page element, and the site's original overflow:hidden on <main> is
   left untouched for the real content it now wraps. */

/* -------------------------------------------------------------------------
   Announcement ticker bar
------------------------------------------------------------------------- */

.headerTop__announce {
  background: linear-gradient(135deg, var(--headerTop-announce-bg) 0%, var(--headerTop-announce-bg-2) 100%);
  position: relative;
  z-index: 20;
}

.headerTop__announce-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.headerTop__announcePill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--headerTop-gold) 0%, var(--headerTop-gold-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 7px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(217, 116, 0, 0.35);
}

.headerTop__announcePill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.headerTop__ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.headerTop__tickerTrack {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: headerTop-scroll 26s linear infinite;
}

.headerTop__ticker.js-paused .headerTop__tickerTrack {
  animation-play-state: paused;
}

@keyframes headerTop-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.headerTop__tickerItem {
  color: var(--headerTop-announce-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.headerTop__tickerItem svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.headerTop__tickerSep {
  color: rgba(255, 255, 255, 0.35);
}

.headerTop__tickerControls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.headerTop__tickerControls button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--headerTop-announce-text);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.headerTop__tickerControls button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.headerTop__tickerControls svg {
  width: 12px;
  height: 12px;
}

/* -------------------------------------------------------------------------
   Contact / info bar
------------------------------------------------------------------------- */

.headerTop__info {
  background: var(--headerTop-info-bg);
  border-bottom: 1px solid var(--headerTop-info-border);
}

.headerTop__info-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.headerTop__contactList {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  min-width: 0;
}

.headerTop__contactItem {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--headerTop-info-text);
  white-space: nowrap;
}

a.headerTop__contactItem:hover {
  color: var(--headerTop-gold-dark);
}

.headerTop__contactItem svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--headerTop-gold-dark);
}

.headerTop__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.headerTop__social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--headerTop-info-muted);
  white-space: nowrap;
}

.headerTop__social a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.2s ease;
}

.headerTop__social a:hover {
  transform: translateY(-2px);
}

.headerTop__social svg {
  width: 12px;
  height: 12px;
}

.headerTop__social a.-facebook { background: #1877F2; }
.headerTop__social a.-instagram { background: linear-gradient(135deg, #FEDA75 0%, #FA7E1E 28%, #D62976 55%, #962FBF 78%, #4F5BD5 100%); }
.headerTop__social a.-whatsapp { background: #25D366; }

/* Language switcher — a small custom-styled dropdown that drives the
   site's existing (real) Google Translate widget, which stays in the
   DOM but visually hidden. See js-lang-* hooks in main.js. */
.headerTop__lang {
  position: relative;
}

.headerTop__langBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--headerTop-info-text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
}

.headerTop__langBtn svg {
  width: 15px;
  height: 15px;
  color: var(--headerTop-gold-dark);
}

.headerTop__langBtn .icon-chevron-down {
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.headerTop__lang.js-open .headerTop__langBtn .icon-chevron-down {
  transform: rotate(180deg);
}

.headerTop__langMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--headerTop-info-border);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  min-width: 190px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  /* The info bar sits right above the nav bar, and this panel opens
     downward — tall enough to reach into the nav bar's own space. The
     nav (.header.-type-3) has z-index: 1000 (css/main.css) for its own
     sticky behavior, so this needs to clear that or the "Enquire Now"
     button paints over the panel instead of under it. */
  z-index: 1100;
}

.headerTop__lang.js-open .headerTop__langMenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.headerTop__langMenu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 13.5px;
  color: var(--headerTop-info-text);
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.headerTop__langMenu button:hover {
  background: var(--brand-accent-light, #FDEEDC);
}

.headerTop__langMenu button .flag {
  font-size: 16px;
  line-height: 1;
}

.headerTop__langMenu button .check {
  margin-left: auto;
  color: var(--headerTop-gold-dark);
  opacity: 0;
}

.headerTop__langMenu button.is-current .check {
  opacity: 1;
}

/* -------------------------------------------------------------------------
   Main nav tweaks — active pill + search box (uses the theme's own
   .header__search component, just styled to sit next to Enquire Now)
------------------------------------------------------------------------- */

.header .desktopNav__item.-is-active {
  background: var(--headerTop-gold);
}

.header .desktopNav__item.-is-active > a {
  color: #fff;
}

.header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-primary);
  cursor: pointer;
  position: relative;
}

/* The expanded box floats over the page instead of pushing the nav row's
   own width. An earlier inline-expand version (input growing to 180px in
   place) kept overflowing the header at ~1200-1370px — right at that
   width the collapsed row alone already fills the available space, so
   there was no safe fixed expand-width that worked at every breakpoint.
   Floating it, like the language dropdown beside it, sidesteps that
   entirely: opening it never changes the row's own layout width. */
.header__search form {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid var(--brand-border, #E8E2D8);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  padding: 6px 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1100;
}

.header__search.js-open form {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header.-type-3 .header__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--brand-text);
  width: 100%;
  opacity: 1;
}

.header__searchDivider {
  width: 1px;
  height: 26px;
  background: var(--brand-border, #E8E2D8);
  margin: 0 18px;
}

/* -------------------------------------------------------------------------
   Responsive
------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .headerTop__announcePill span { display: none; }
  .headerTop__announcePill { padding: 7px 10px; }
  .header__searchDivider { margin: 0 10px; }
}

@media (max-width: 991px) {
  .headerTop__info { display: none; }
}

@media (max-width: 767px) {
  .headerTop__announce-inner { gap: 10px; padding-top: 6px; padding-bottom: 6px; }
  .headerTop__tickerItem { font-size: 12.5px; }
  .headerTop__tickerControls .js-ticker-prev,
  .headerTop__tickerControls .js-ticker-next { display: none; }
}

/* A compact language switcher inside the slide-out mobile menu, since the
   full info bar is hidden below 991px. */
.menuNav__lang {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  margin-top: 10px;
  border-top: 1px solid var(--brand-border, #E8E2D8);
}

.menuNav__lang button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--brand-border, #E8E2D8);
  background: #fff;
  color: var(--brand-text);
  cursor: pointer;
}

.menuNav__lang button.is-current {
  border-color: var(--headerTop-gold);
  background: var(--brand-accent-light, #FDEEDC);
  color: var(--headerTop-gold-dark);
}

/* -------------------------------------------------------------------------
   Reduced motion
------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .headerTop__tickerTrack {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------
   Google Translate — the widget itself is real (see header.php) and kept
   in the DOM, but its own default toolbar/banner is hidden since the
   custom dropdown above replaces it visually. Without this, a successful
   translation can inject a banner iframe at the very top of the page and
   push everything down a few pixels.
------------------------------------------------------------------------- */

.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}
