/* =============================================================
   Tanaghom Gardenia — shared stylesheet
   Palette · Black #1A1A1A · Gold #F5D000 · Sage #A8B8A2 · White
   ============================================================= */

:root {
  --black: #1A1A1A;
  --soft-black: #242424;
  --gold: #F5D000;
  --gold-soft: #E8C400;
  --sage: #A8B8A2;
  --sage-deep: #8DA086;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --paper: #F2EFEA;
  --gray: #6B6B6B;
  --gray-light: #B8B8B8;
  --line: rgba(0, 0, 0, 0.08);
  --line-dark: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lift: 0 30px 60px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.012em;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; padding: 0; color: inherit; }
img { display: block; max-width: 100%; }

.ar { font-family: 'Noto Naskh Arabic', serif; }

/* Language toggle behaviour */
body[data-lang="en"] .ar { display: none !important; }
body[data-lang="ar"] .en { display: none !important; }

/* Honour reduced motion users */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body { cursor: auto !important; }
}

/* ============================  CUSTOM CURSOR  ============================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  transition: width 0.25s var(--ease), height 0.25s var(--ease);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  background: rgba(245, 208, 0, 0.08);
}
.cursor-ring.text {
  width: 14px; height: 14px;
  border-color: rgba(245, 208, 0, 0.7);
}
@media (max-width: 960px), (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
  body, button, a { cursor: auto; }
}

/* ============================  NAV  ============================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--black);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(245, 208, 0, 0.14);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  max-width: 1480px;
  margin: 0 auto;
  transition: padding 0.4s var(--ease);
}
.navbar.scrolled .nav-inner { padding: 12px 36px; }

.logo-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.logo-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.6s var(--ease);
}
.logo-circle img { width: 88%; height: 88%; object-fit: contain; }
.logo-mark:hover .logo-circle { transform: rotate(-12deg) scale(1.05); }
.logo-wordmark {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.logo-wordmark .accent { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a.current { color: var(--white); }
.nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: 0.18em;
}
.lang-toggle button {
  padding: 7px 13px;
  color: var(--gold);
  background: transparent;
  transition: background 0.3s, color 0.3s;
  font-weight: 600;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--black);
}
.hamburger {
  display: none;
  width: 30px; height: 22px;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.4s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(26,26,26,0.96);
    backdrop-filter: blur(14px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    transform: translateY(-120%);
    transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 32px; }
  .hamburger { display: flex; }
  .nav-inner { padding: 14px 22px; }
}

/* ============================  PAGE-TRANSITION OVERLAY  ============================ */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  background: var(--black);
  transition: transform 0.6s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-curtain.active {
  transform: scaleY(1);
  transform-origin: top;
}
.page-curtain.entering {
  transform: scaleY(1);
  transform-origin: top;
  animation: curtainLift 0.9s var(--ease) forwards;
}
@keyframes curtainLift {
  0%   { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.curtain-mark {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  opacity: 0.4;
}

/* ============================  REVEAL  ============================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }

/* ============================  TYPE / GENERIC  ============================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
}
.container-wide { max-width: 1480px; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: "";
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.section-title {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  color: var(--black);
  margin: 18px 0 0;
}
.section-title em { font-style: italic; font-weight: 400; }
.section-title .ar {
  display: block;
  margin-top: 14px;
  color: var(--gray);
  font-size: 0.62em;
  font-weight: 400;
}

/* ============================  BUTTONS  ============================ */
.cta, .cta-ghost, .pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              transform 0.4s var(--ease), border-color 0.4s var(--ease), gap 0.4s var(--ease);
  will-change: transform;
}
.cta {
  background: var(--gold);
  color: var(--black);
  border: 1.5px solid var(--gold);
}
.cta:hover { background: transparent; color: var(--gold); }
.cta:hover .arrow { transform: translateX(6px); }
.cta .arrow { transition: transform 0.4s var(--ease); }

.cta-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}
.cta-ghost:hover {
  background: var(--white);
  color: var(--black);
}

.pill-outline {
  padding: 10px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
}
.pill-outline:hover {
  background: var(--gold);
  color: var(--black);
  gap: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.text-link.on-dark { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.text-link.gold    { color: var(--gold); border-bottom-color: rgba(245,208,0,0.4); }
.text-link:hover { gap: 18px; }
.text-link.on-dark:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ============================  PAGE HEADER (sub-pages)  ============================ */
.page-head {
  background: var(--black);
  color: var(--white);
  padding: 200px 36px 100px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 38px,
    rgba(255,255,255,0.018) 38px,
    rgba(255,255,255,0.018) 39px
  );
  pointer-events: none;
}
.page-head .inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-head h1 {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.95;
  margin-top: 28px;
}
.page-head h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.page-head .ar {
  display: block;
  margin-top: 22px;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--sage);
}
.page-head .lede {
  margin-top: 38px;
  max-width: 560px;
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  line-height: 1.75;
}
.page-head .section-eyebrow { color: var(--gold); }
.page-head .section-eyebrow::before { background: var(--gold); }

.breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--gray-light);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* large staff watermark on page head */
.page-head .clef {
  position: absolute;
  right: -60px;
  bottom: -120px;
  font-family: Georgia, serif;
  font-size: 580px;
  line-height: 1;
  color: rgba(245, 208, 0, 0.06);
  pointer-events: none;
  user-select: none;
}

/* ============================  FOOTER  ============================ */
footer.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 110px 36px 36px;
  border-top: 1px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.footer-marquee {
  position: absolute;
  top: 0; left: 0; right: 0;
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(245,208,0,0.04);
}
.footer-marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 208, 0, 0.7);
}
.footer-marquee-track span::before { content: "♪"; margin-right: 18px; color: rgba(245, 208, 0, 0.4); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1280px;
  margin: 60px auto 0;
}
.footer-brand .logo-circle {
  width: 56px; height: 56px;
  margin-bottom: 20px;
}
.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-brand .ar { color: var(--sage); }
.footer-brand p {
  color: rgba(255,255,255,0.66);
  font-size: 14px;
  max-width: 280px;
  margin: 16px 0 0;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--gold); padding-left: 6px; }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.75; margin: 0; }

.socials { display: flex; gap: 14px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.78);
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s;
}
.socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--black); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }

.copyright {
  margin: 90px auto 0;
  max-width: 1280px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--gray);
  font-size: 12px;
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================  COMMON: gold accent letter  ============================ */
.dropcap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--gold);
  font-weight: 600;
}

/* RTL helpers */
[dir="rtl"] .dropcap::first-letter { float: right; margin: 6px 0 0 12px; }

/* ============================  EQUALIZER / WAVEFORM small  ============================ */
.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 18px;
}
.equalizer .eq-bar {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  animation: eqBounce 1.4s ease-in-out infinite;
}
.equalizer .eq-bar:nth-child(1){ animation-delay: 0s;    height: 50%; }
.equalizer .eq-bar:nth-child(2){ animation-delay: 0.2s;  height: 90%; }
.equalizer .eq-bar:nth-child(3){ animation-delay: 0.4s;  height: 100%;}
.equalizer .eq-bar:nth-child(4){ animation-delay: 0.6s;  height: 70%; }
.equalizer .eq-bar:nth-child(5){ animation-delay: 0.8s;  height: 50%; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* ============================  SHARED CARD  ============================ */
.shared-card {
  background: var(--off-white);
  padding: 32px;
  border-left: 3px solid var(--gold);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.shared-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

/* ============================  RESPONSIVE COMMON  ============================ */
@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .page-head { padding: 160px 22px 80px; }
}
