/* ═══════════════════════════════════════════
   TIKIZ BURGERS — css/style.css
   Premium, hand‑crafted, cinematic
   Palette: #FBEE09 | #FCFCFA | #000000
   Fonts: Black Ops One | Exo 2 | Cairo
   Gallery height: 100svh (GSAP pin generates scroll)
   Stacking: video (0) → labels (1) → canvas (2)
═══════════════════════════════════════════ */

/* ── 1. RESET & BASE ─────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow:  #FBEE09;
  --cream:   #FCFCFA;
  --black:   #000000;
  --brown-black: #191305;
  --header-h: 56px;
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: auto;
  font-size: 16px;
  background: var(--cream);
  color: var(--black);
}

body {
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--cream);
}

/* ── CUSTOM SCROLLBAR ──────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e6d500;
}

/* ── AMBIENT PARTICLES ─────────────────── */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── 2. HEADER ───────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(252, 252, 250, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.header__progress {
  position: absolute; bottom: -3px; left: 0; right: 0; height: 3px;
  background: rgba(0, 0, 0, 0.06); overflow: hidden;
}
.header__progress-fill {
  height: 100%; width: 0%; background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow), 0 0 20px rgba(251, 238, 9, 0.45);
  transition: none; transform-origin: left center; will-change: width;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 2.5rem); height: 56px;
}
.header__brand {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  letter-spacing: 0.12em; color: var(--black);
  text-shadow:
    1px 1px 0 rgba(251, 238, 9, 0.6),
    2px 2px 0 rgba(251, 238, 9, 0.3),
    3px 3px 0 rgba(25, 19, 5, 0.5),
    4px 4px 8px rgba(0,0,0,0.15);
}

/* ── 3. BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Black Ops One', cursive; letter-spacing: 0.12em;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease-silk), box-shadow 0.25s var(--ease-silk), background 0.2s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--yellow); color: var(--black);
  padding: 0.75em 2.2em; font-size: clamp(0.85rem, 1.8vw, 1rem); border-radius: 3px;
  box-shadow: 0 4px 0 #b8a800, 0 6px 16px rgba(251, 238, 9, 0.35), 0 12px 32px rgba(0, 0, 0, 0.15);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 #b8a800, 0 10px 24px rgba(251, 238, 9, 0.5), 0 20px 40px rgba(0, 0, 0, 0.2);
}
.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #b8a800, 0 3px 8px rgba(251, 238, 9, 0.3), inset 0 2px 4px rgba(0,0,0,0.2);
}
.btn--ghost {
  background: transparent; color: var(--black);
  padding: 0.5em 1.4em; font-size: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.5); border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: rgba(251, 238, 9, 0.15); border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ── 4. HERO ─────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--header-h) + 2rem) 1.5rem 4rem; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(251, 238, 9, 0.12) 0%, transparent 70%), var(--cream);
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(251, 238, 9, 0.15) 0%, transparent 65%);
  animation: heroGlowPulse 5s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes heroGlowPulse {
  from { opacity: 0.5; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1.03); }
}
.hero__arabic {
  font-family: 'Cairo', sans-serif; font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.5rem); color: var(--yellow);
  direction: rtl; position: relative; z-index: 1;
  margin-bottom: 0.3em; line-height: 1.1;
  text-shadow:
    2px 2px 0 var(--brown-black),
    -1px -1px 0 var(--black), 1px -1px 0 var(--black),
    -1px 1px 0 var(--black), 1px 1px 0 var(--black),
    3px 3px 0 rgba(25, 19, 5, 0.5),
    0 4px 16px rgba(25, 19, 5, 0.35);
}
.hero__subtitle {
  font-family: 'Exo 2', sans-serif; font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem); letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--black); opacity: 0.8;
  position: relative; z-index: 1; margin-bottom: 2.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.08), 0 6px 12px rgba(0,0,0,0.05);
}
.hero__logo {
  width: clamp(140px, 30vw, 260px); height: auto;
  position: relative; z-index: 1; margin-bottom: 2.5rem;
  filter:
    drop-shadow(0 8px 24px rgba(0,0,0,0.25))
    drop-shadow(0 0 60px rgba(251,238,9,0.3))
    drop-shadow(0 20px 50px rgba(0,0,0,0.2));
  animation: logoBreathe 6s ease-in-out infinite alternate;
}
@keyframes logoBreathe {
  from { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25)) drop-shadow(0 0 40px rgba(251,238,9,0.2)) drop-shadow(0 20px 50px rgba(0,0,0,0.2)); }
  to   { filter: drop-shadow(0 12px 32px rgba(0,0,0,0.3)) drop-shadow(0 0 70px rgba(251,238,9,0.35)) drop-shadow(0 24px 60px rgba(0,0,0,0.25)); }
}
.hero__cta { position: relative; z-index: 1; }

/* ── 5. INSTAGRAM BAR ────────────────────── */
.insta-bar {
  display: flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.8rem 1rem; background: var(--yellow);
  border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none; color: var(--black);
  font-family: 'Exo 2', sans-serif; font-weight: 600;
  font-size: clamp(0.8rem, 2vw, 0.95rem); letter-spacing: 0.08em;
  transition: background 0.3s ease; position: relative; z-index: 10;
}
.insta-bar:hover { background: #ffe900; }
.insta-bar__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── 6. FLOATING GALLERY ─────────────────── */
.gallery {
  height: 100svh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: transparent !important;   /* video shows through */
  isolation: isolate;
}

/* ── Video Background ──────────────────── */
#gallery-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* ── Label Container ────────────────────── */
.label-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Watermarked labels */
.gallery__label {
  position: absolute;
  font-family: 'Black Ops One', cursive;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.1);           /* increased from 0.04 */
  pointer-events: none;
  z-index: auto;
  user-select: none;
  text-shadow:
    2px 2px 0px rgba(0,0,0,0.2),
    4px 4px 0px rgba(0,0,0,0.15),
    6px 6px 8px rgba(0,0,0,0.1),
    -1px -1px 0px rgba(255,255,255,0.15);
  will-change: opacity;
  opacity: 0;
}
.gallery__label--tl { top: 8vh; left: 3vw; }
.gallery__label--tr { top: 10vh; right: 3vw; text-align: right; }
.gallery__label--bl { bottom: 28vh; left: 3vw; }
.gallery__label--br { bottom: 26vh; right: 3vw; text-align: right; }

/* ── WebGL Canvas ───────────────────────── */
#gallery-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* BELT‑AND‑SUSPENDERS: always fill the parent, bypasses HiOS canvas style freeze */
  width: 100% !important;
  height: 100% !important;
}

/* ── 7. BRANCHES ─────────────────────────── */
.branches {
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 8vw, 6rem);
  background: var(--cream); border-top: 1px solid rgba(0, 0, 0, 0.1); text-align: center;
}
.branches__heading {
  font-family: 'Black Ops One', cursive;
  font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: 0.12em; color: var(--black);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  text-shadow:
    1px 1px 0 rgba(251, 238, 9, 0.4), 2px 2px 0 rgba(251, 238, 9, 0.2),
    3px 3px 0 rgba(25, 19, 5, 0.3), 4px 4px 0 rgba(25, 19, 5, 0.15),
    5px 5px 0 rgba(25, 19, 5, 0.1), 6px 6px 14px rgba(0,0,0,0.1);
}
.branches__selector { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.branch-btn {
  font-family: 'Black Ops One', cursive; font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  letter-spacing: 0.1em; color: var(--black); background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.3); border-radius: 3px; padding: 0.6em 1.6em;
  cursor: pointer;
  transition: transform 0.22s var(--ease-silk), box-shadow 0.22s var(--ease-silk),
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.5) inset;
}
.branch-btn:hover {
  transform: translateY(-3px); background: rgba(251, 238, 9, 0.25);
  border-color: var(--black); color: var(--black);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1), 0 0 20px rgba(251,238,9,0.2);
}
.branch-btn.active {
  background: var(--black); color: var(--yellow); border-color: var(--black);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
  transform: translateY(0px);
}
.branch-btn.active:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 3px 10px rgba(251,238,9,0.3);
}
.branches__map-wrap {
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--yellow), 0 0 0 4px rgba(0,0,0,0.3),
              0 8px 32px rgba(0,0,0,0.15), 0 24px 64px rgba(0,0,0,0.1);
  margin-bottom: 1.75rem; transition: box-shadow 0.3s ease;
}
.branches__map-wrap:hover {
  box-shadow: 0 0 0 2px var(--yellow), 0 0 0 4px rgba(0,0,0,0.4),
              0 12px 44px rgba(0,0,0,0.2), 0 30px 70px rgba(0,0,0,0.15);
}
.branches__map {
  display: block; width: 100%; height: clamp(280px, 45vh, 480px); border: none;
  filter: saturate(0.7) brightness(0.95) contrast(1.05); transition: filter 0.4s ease;
}
.branches__map:hover { filter: saturate(0.85) brightness(1) contrast(1.02); }
.branches__maps-btn { margin-top: 0.25rem; }

/* ── 8. CLIMAX ───────────────────────────── */
.climax {
  position: relative; min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(4rem, 12vh, 8rem) 1.5rem; overflow: hidden;
  background: var(--cream); border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.climax__glow {
  position: absolute; width: clamp(300px, 70vw, 700px); height: clamp(300px, 70vw, 700px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 238, 9, 0.18) 0%, rgba(251, 238, 9, 0.07) 40%, transparent 70%);
  left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0;
  animation: climaxGlow 4s ease-in-out infinite alternate;
}
@keyframes climaxGlow {
  from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.08); }
}
.climax__phrase {
  font-family: 'Cairo', sans-serif; font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.5rem); color: var(--yellow);
  direction: rtl; position: relative; z-index: 1;
  margin-bottom: 0.4em; line-height: 1.2;
  text-shadow:
    2px 2px 0 var(--brown-black),
    -1px -1px 0 var(--black), 1px -1px 0 var(--black),
    -1px 1px 0 var(--black), 1px 1px 0 var(--black),
    3px 3px 0 rgba(25, 19, 5, 0.5),
    0 12px 40px rgba(25, 19, 5, 0.7),   /* deeper outer shadow */
    0 0 80px rgba(251, 238, 9, 0.12);    /* subtle yellow glow */
}
.climax__sub {
  font-family: 'Exo 2', sans-serif; font-weight: 500;
  font-size: clamp(0.85rem, 2.5vw, 1.3rem); letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--black); opacity: 0.5;
  position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 0 rgba(251,238,9,0.1);
}

/* ── Climax Social Buttons ─────────────── */
.climax__socials {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.5vw, 1.4rem);
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}
.climax__social-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s var(--ease-silk);
  will-change: transform;
  opacity: 0;
  animation: socialFadeIn 0.55s var(--ease-silk) forwards;
}
.climax__social-btn:nth-child(1) { animation-delay: 0.05s; }
.climax__social-btn:nth-child(2) { animation-delay: 0.15s; }
.climax__social-btn:nth-child(3) { animation-delay: 0.25s; }
.climax__social-btn:nth-child(4) { animation-delay: 0.35s; }
.climax__social-btn:nth-child(5) { animation-delay: 0.45s; }

@keyframes socialFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.climax__social-btn:hover {
  transform: translateY(-4px) scale(1.12);
}
.climax__social-btn:active {
  transform: translateY(0px) scale(0.95);
}
.climax__social-icon {
  width: clamp(32px, 8vw, 44px);
  height: clamp(32px, 8vw, 44px);
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.18));
  transition: filter 0.25s var(--ease-silk), transform 0.25s var(--ease-silk);
}
.climax__social-btn:hover .climax__social-icon {
  filter:
    drop-shadow(0 6px 14px rgba(0,0,0,0.3))
    drop-shadow(0 0 16px rgba(251,238,9,0.35));
}
.climax__social-label {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--black);
  color: var(--yellow);
  font-family: 'Black Ops One', cursive;
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: transform 0.25s var(--ease-silk);
}
.climax__social-btn:hover .climax__social-label {
  transform: scale(1.15);
}

/* ── 9. FOOTER ──────────────────────────── */
.footer {
  background: var(--black); border-top: 4px solid var(--yellow);
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.5rem, 8vw, 5rem);
}
.footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem;
  align-items: center; max-width: 960px; margin: 0 auto;
}
.footer__brand { display: flex; align-items: center; gap: 0.9rem; }
.footer__logo {
  width: 56px; height: 56px; object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); opacity: 0.95;
}
.footer__name {
  font-family: 'Black Ops One', cursive; font-size: 1rem;
  color: var(--yellow); letter-spacing: 0.06em;
}
.footer__tagline {
  font-family: 'Exo 2', sans-serif; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; color: rgba(252, 252, 250, 0.5); text-transform: uppercase;
}
.footer__links { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer__link {
  font-family: 'Exo 2', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: rgba(252, 252, 250, 0.6); text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer__link:hover { color: var(--yellow); text-shadow: 0 0 14px rgba(251, 238, 9, 0.4); }
.footer__legal {
  text-align: right; font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem; font-weight: 400; color: rgba(252, 252, 250, 0.35); line-height: 1.8;
}
.footer__vypera {
  color: rgba(252, 252, 250, 0.5); text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.footer__vypera:hover { color: var(--yellow); text-shadow: 0 0 10px rgba(251, 238, 9, 0.5), 0 0 25px rgba(251, 238, 9, 0.25); }

@media (max-width: 680px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.8rem; }
  .footer__brand { justify-content: center; }
  .footer__legal { text-align: center; }
}

/* ── 10. OPENING OVERLAY ─────────────────── */
.opener {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  will-change: transform;
}
.opener__backdrop {
  position: absolute;
  inset: 0;
  background: var(--black);
}
.opener__logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.opener__logo {
  width: clamp(120px, 25vw, 200px);
  height: auto;
  filter:
    drop-shadow(0 0 40px rgba(251, 238, 9, 0.5))
    drop-shadow(0 0 80px rgba(251, 238, 9, 0.3))
    drop-shadow(0 0 120px rgba(251, 238, 9, 0.15))
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  animation: openerLogoPulse 2s ease-in-out infinite alternate;
}
.opener__tagline {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}
@keyframes openerLogoPulse {
  from {
    filter:
      drop-shadow(0 0 30px rgba(251, 238, 9, 0.4))
      drop-shadow(0 0 60px rgba(251, 238, 9, 0.2))
      drop-shadow(0 0 100px rgba(251, 238, 9, 0.1))
      drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  }
  to {
    filter:
      drop-shadow(0 0 50px rgba(251, 238, 9, 0.6))
      drop-shadow(0 0 100px rgba(251, 238, 9, 0.35))
      drop-shadow(0 0 150px rgba(251, 238, 9, 0.2))
      drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  }
}
.opener__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(251, 238, 9, 0.08);
  z-index: 2;
}
#openerProgressFill {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--yellow);
  box-shadow:
    0 0 8px var(--yellow),
    0 0 20px rgba(251, 238, 9, 0.5),
    0 0 40px rgba(251, 238, 9, 0.2);
  will-change: transform;
}

/* ── Opener exit state ─────────────────── */
.opener--exiting {
  pointer-events: none;
}

/* ── 11. REDUCED MOTION ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__glow, .climax__glow, .hero__logo, .opener__logo { animation: none; }
  .gallery-item { opacity: 1 !important; transform: none !important; }
}
