/* ============================================================
   AURORA SPA — Header / Navigation
   ============================================================ */

/* ============================================================
   ANNOUNCEMENT BAR — sits above the header, retracts on scroll
   ============================================================ */
:root { --announce-h: 42px; }

/* Announcement + header move as a single fixed block. Sliding them
   independently meant one could lead the other and open a gap. */
.top-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  transition: transform .55s var(--ease);
  will-change: transform;
}
body.announce-hidden .top-bar { transform: translateY(calc(var(--announce-h) * -1)); }
body.announce-off  { --announce-h: 0px; }
body.announce-off .announce { display: none; }

.announce {
  position: relative;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-inline: clamp(2.6rem, 6vw, 4rem);
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 45%, var(--gold-deep));
  background-size: 220% auto;
  animation: shimmer 7s linear infinite;
  color: #12160f;
  overflow: hidden;
}
/* Nothing to animate here — the parent .top-bar carries the whole block up */
body.announce-hidden .announce { pointer-events: none; }

.announce-track {
  position: relative;
  flex: 1;
  height: 100%;
  max-width: 900px;
}
.announce-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease);
}
.announce-item.on { opacity: 1; transform: none; }
html[lang="ar"] .announce-item {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  font-size: .82rem;
}
.announce-item svg { width: 15px; height: 15px; flex-shrink: 0; }

.announce-close {
  position: absolute;
  inset-inline-end: clamp(.5rem, 2vw, 1rem);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #12160f;
  opacity: .65;
  font-size: 1.1rem;
  line-height: 1;
  transition: opacity var(--t-fast) var(--ease-soft), background var(--t-fast) var(--ease-soft);
}
.announce-close:hover { opacity: 1; background: rgba(0,0,0,.12); }

@media (max-width: 560px) {
  :root { --announce-h: 38px; }
  .announce { padding-inline: 2.2rem 2.4rem; }
  .announce-item { font-size: .64rem; letter-spacing: .05em; gap: .4rem; }
  html[lang="ar"] .announce-item { font-size: .72rem; }
}
@media (max-width: 400px) {
  /* The message has to survive a 320px phone — drop the icon before the words */
  .announce-item svg { display: none; }
  .announce-item { font-size: .6rem; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: relative;   /* .top-bar above is the fixed one */
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .45s var(--ease-soft),
              backdrop-filter .45s var(--ease-soft),
              border-color .45s var(--ease-soft),
              height .45s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

/* Transparent over hero, frosted once scrolled */
.site-header.scrolled {
  height: calc(var(--header-h) - 12px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* The header never retracts — it stays pinned for the whole page */

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ---------- Logo ---------- */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img {
  height: clamp(26px, 3.4vw, 36px);
  width: auto;
  filter: var(--logo-filter);
  transition: filter var(--t-med) var(--ease-soft), transform var(--t-fast) var(--ease);
}
.brand:hover img { transform: scale(1.04); }

/* On transparent hero the logo sits on a dark photo → force light */
.site-header:not(.scrolled).over-hero .brand img { filter: invert(1) brightness(2); }
.site-header:not(.scrolled).over-hero .nav-link,
.site-header:not(.scrolled).over-hero .icon-btn,
.site-header:not(.scrolled).over-hero .burger span { color: #fff; }
.site-header:not(.scrolled).over-hero .burger span { background: #fff; }
.site-header:not(.scrolled).over-hero .icon-btn { border-color: rgba(255,255,255,.28); }

/* ---------- Desktop nav ---------- */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }

.nav-link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-block: .4rem;
  color: var(--text);
  transition: color var(--t-fast) var(--ease-soft);
  white-space: nowrap;
}
html[lang="ar"] .nav-link { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 1rem; }

/* Underline sweeps in from the leading edge */
.nav-link::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .45s var(--ease);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: inline-start; }

.nav-link.active { color: var(--gold); }
.nav-link.active::after { transform: scaleX(1); }

/* ---------- Right side actions ---------- */
.header-actions { display: flex; align-items: center; gap: .55rem; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  overflow: hidden;
  transition: background var(--t-fast) var(--ease-soft),
              color var(--t-fast) var(--ease-soft),
              border-color var(--t-fast) var(--ease-soft),
              transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--gold); color: #12160f; border-color: var(--gold); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }

/* The theme switch lives in the floating stack at the bottom of the page —
   see .theme-fab in base.css */

/* Language toggle — pill showing the language currently being read */
.lang-btn {
  width: auto;
  padding-inline: .95rem;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
}
.lang-btn .lang-current { display: inline-block; transition: transform .4s var(--ease); }
.lang-btn:hover .lang-current { transform: translateY(-1px); }

.header-cta { margin-inline-start: .35rem; }

/* ---------- Burger ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .4s var(--ease), opacity .25s var(--ease-soft), width .4s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU — full-screen, staggered items
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--bg);
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path .8s var(--ease);
  pointer-events: none;
}
html[dir="rtl"] .mobile-menu { clip-path: circle(0% at 42px 42px); }
.mobile-menu.open { clip-path: circle(150% at calc(100% - 42px) 42px); pointer-events: auto; }
html[dir="rtl"] .mobile-menu.open { clip-path: circle(150% at 42px 42px); }

.mobile-menu .orb { z-index: 0; }

.m-nav { display: flex; flex-direction: column; gap: .3rem; position: relative; z-index: 1; }

.m-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1.25;
  color: var(--text);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color var(--t-fast) var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
html[lang="ar"] .m-link { font-weight: 700; }
.mobile-menu.open .m-link { opacity: 1; transform: none; }
.m-link:hover, .m-link.active { color: var(--gold); }
.m-link .num {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--gold);
  opacity: .8;
}

.m-foot {
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease) .45s, transform .6s var(--ease) .45s;
  position: relative;
  z-index: 1;
}
.mobile-menu.open .m-foot { opacity: 1; transform: none; }

.m-contact { display: flex; flex-direction: column; gap: .4rem; font-size: var(--fs-sm); color: var(--text-soft); }
.m-contact a:hover { color: var(--gold); }
.m-social { display: flex; gap: .6rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-cta { display: none; }
}
@media (min-width: 1101px) {
  .mobile-menu { display: none; }
}
@media (max-width: 420px) {
  .header-actions { gap: .35rem; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-btn { padding-inline: .7rem; }
}
