/* ═══════════════════════════════════════════════════════════
   SUKKLY — css/style.css
   Palette: #FBF6EE | #E8DCC8 | #3D2B1F | #E8623D
   Fonts: Cairo (Arabic) | Cormorant Garamond (English display) | Inter (body)
   RTL-first with logical properties. Stillness is premium.
═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream-base:   #FBF6EE;
  --beige-deep:   #E8DCC8;
  --cocoa:        #3D2B1F;
  --accent-coral: #E8623D;
  --ink-soft:     #6B5D4F;
  --ease-silk:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: 'Cairo', 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--cream-base);
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-coral); border-radius: 2px; opacity: 0.5; }

.lang-toggle {
  position: fixed;
  top: 1.2rem;
  inset-inline-end: 1.2rem;
  z-index: 9999;
  background: var(--cocoa);
  color: var(--cream-base);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.25s var(--ease-silk), transform 0.2s var(--ease-silk);
  will-change: transform;
}
.lang-toggle:hover { background: var(--accent-coral); transform: scale(1.08); }

.opener {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: var(--cocoa);
  will-change: transform; pointer-events: all;
}
.opener__logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.opener__logo { width: clamp(140px, 26vw, 260px); height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5)); opacity: 0; will-change: transform, opacity; }
.opener__tagline {
  font-family: 'Cairo', 'Cormorant Garamond', serif;
  font-weight: 300; font-size: clamp(10px, 1.4vw, 13px);
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(232, 98, 61, 0.85);
  opacity: 0; will-change: opacity, transform;
}
.opener__progress { position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: rgba(232, 98, 61, 0.15); }
#openerProgressFill { width: 100%; height: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent-coral); will-change: transform; }
.opener--exiting { pointer-events: none; }

.hero { position: relative; height: 100svh; display: flex; align-items: center; justify-content: center; background: var(--cocoa); overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.88); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(61, 43, 31, 0.7) 0%, rgba(61, 43, 31, 0.12) 42%, transparent 68%); z-index: 1; }
.hero__center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.hero__logo { width: clamp(180px, 35vw, 380px); height: auto; opacity: 0; filter: drop-shadow(0 6px 40px rgba(0,0,0,0.6)); will-change: transform, opacity; }
.hero__tagline { position: absolute; bottom: clamp(28px, 4.5vh, 48px); inset-inline: 0; text-align: center; z-index: 2; font-family: 'Cairo', 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(10px, 1.4vw, 13px); letter-spacing: 0.34em; text-transform: uppercase; color: rgba(251, 246, 238, 0.7); opacity: 0; will-change: opacity; }

.ingredients { height: 300vh; background: var(--cocoa); position: relative; }
.ingredients__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ing-panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; opacity: 0; will-change: opacity, transform; background: var(--cocoa); }
.ing-panel:first-child { opacity: 1; }
.ing-panel__image-wrap { position: relative; height: 100svh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--cocoa); }
.ing-panel__img { width: 88%; height: 88%; object-fit: contain; filter: saturate(0.9) brightness(0.96); display: block; will-change: transform; animation: kenBurns 20s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: scale(1.0); } to { transform: scale(1.055); } }
.ing-panel__text { padding: clamp(3rem, 8vw, 7rem); display: flex; flex-direction: column; justify-content: center; gap: 0; }
.ing-panel__index { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: clamp(0.75rem, 1.2vw, 1rem); letter-spacing: 0.18em; color: rgba(232, 98, 61, 0.55); display: block; margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.ing-panel__name { font-family: 'Cairo', 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(3.5rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.03em; color: var(--cream-base); margin-bottom: clamp(1rem, 2.5vh, 1.6rem); }
.ing-panel__origin { font-family: 'Inter', sans-serif; font-weight: 300; font-size: clamp(0.65rem, 1vw, 0.78rem); letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent-coral); margin-bottom: clamp(1.8rem, 4vh, 2.8rem); opacity: 0.8; }
.ing-panel__note { font-family: 'Cairo', 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.65; color: rgba(251, 246, 238, 0.42); max-width: 360px; }
.ing-progress { position: absolute; inset-inline-end: clamp(1.2rem, 2.5vw, 2rem); top: 50%; transform: translateY(-50%); width: 1px; height: clamp(60px, 12vh, 100px); background: rgba(232, 98, 61, 0.18); z-index: 10; }
.ing-progress__fill { width: 100%; height: 0%; background: var(--accent-coral); transform-origin: top center; will-change: height; }

@media (max-width: 767px) {
  .ingredients { height: 350vh; }
  .ing-panel { grid-template-columns: 1fr; grid-template-rows: 55svh 1fr; }
  .ing-panel__image-wrap { height: 55svh; }
  .ing-panel__text { padding: clamp(2rem, 6vw, 3rem); background: var(--cocoa); }
  .ing-panel__name { font-size: clamp(2.5rem, 12vw, 4.5rem); }
  .ing-progress { display: none; }
}

.philosophy { height: 300vh; background: var(--beige-deep); position: relative; }
.philosophy__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: flex-start; padding: clamp(5rem, 12vh, 9rem) clamp(2rem, 12vw, 10rem); overflow: hidden; }
.philosophy__sticky::after { content: ''; position: absolute; inset-inline-start: clamp(2rem, 12vw, 10rem); top: clamp(5rem, 12vh, 9rem); bottom: clamp(5rem, 12vh, 9rem); width: 1px; background: rgba(232, 98, 61, 0.3); pointer-events: none; }
.philosophy__inner { display: flex; flex-direction: column; gap: 0; max-width: 520px; padding-inline-start: clamp(2rem, 4vw, 3.5rem); position: relative; z-index: 1; }
.philosophy__label { font-family: 'Cairo', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(232, 98, 61, 0.65); margin-bottom: 2.5rem; display: block; }
.philosophy__quotes-wrap { position: relative; height: clamp(8rem, 18vh, 13rem); }
.philosophy__quote { position: absolute; top: 0; inset-inline-start: 0; opacity: 0; transform: translateY(20px); will-change: transform, opacity; }
.philosophy__quote p { font-family: 'Cairo', 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--cocoa); line-height: 1.2; letter-spacing: -0.02em; }
.phil-accent { color: var(--accent-coral); }

@media (max-width: 767px) {
  .philosophy__sticky { padding-inline: clamp(1.5rem, 6vw, 3rem); }
  .philosophy__inner { padding-inline-start: 1.5rem; }
  .philosophy__sticky::after { inset-inline-start: clamp(1.5rem, 6vw, 3rem); }
}

.location { padding: clamp(5rem, 14vh, 9rem) clamp(2rem, 8vw, 5rem); background: var(--cream-base); text-align: center; }
.location__heading { font-family: 'Cairo', 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--cocoa); margin-bottom: 3rem; letter-spacing: -0.02em; }
.location__branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; max-width: 1000px; margin: 0 auto 2rem; }
.location__map-wrap { overflow: hidden; border: 1px solid rgba(232, 98, 61, 0.3); margin-bottom: 1rem; }
.location__map { display: block; width: 100%; height: clamp(240px, 35vh, 360px); border: none; filter: grayscale(0.3) brightness(0.94) contrast(1.02); }
.location__address { font-family: 'Cairo', sans-serif; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.location__hours { font-family: 'Inter', sans-serif; font-size: 0.75rem; color: var(--accent-coral); opacity: 0.75; margin-top: 0.5rem; }

.footer { background: var(--cocoa); border-top: 1px solid rgba(232, 98, 61, 0.2); padding: clamp(2.5rem, 5vh, 3.5rem) clamp(2rem, 8vw, 5rem); }
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; max-width: 900px; margin: 0 auto; }
.footer__brand { display: flex; align-items: center; gap: 0.75rem; }
.footer__logo { width: 36px; height: 36px; object-fit: contain; opacity: 0.78; }
.footer__name { font-family: 'Cairo', 'Cormorant Garamond', serif; font-size: 0.9rem; color: rgba(251, 246, 238, 0.65); letter-spacing: 0.08em; }
.footer__contact { display: flex; gap: 2rem; justify-content: center; }
.footer__link { font-size: 0.68rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(251, 246, 238, 0.38); text-decoration: none; transition: color 0.3s var(--ease-silk); }
.footer__link:hover { color: var(--accent-coral); }
.footer__legal { text-align: end; font-size: 0.62rem; color: rgba(251, 246, 238, 0.2); line-height: 1.9; }
.footer__vypera { color: rgba(251, 246, 238, 0.25); text-decoration: none; transition: color 0.3s var(--ease-silk); }
.footer__vypera:hover { color: var(--accent-coral); }

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

#flavor-canvas { position: fixed; inset: 0; z-index: 50; pointer-events: none; width: 100vw; height: 100vh; }

.flavors { background: var(--cocoa); padding: clamp(5rem, 14vh, 9rem) clamp(2rem, 8vw, 7rem); position: relative; }
.flavors::before { content: ''; position: absolute; top: 0; inset-inline: clamp(2rem, 8vw, 7rem); height: 1px; background: rgba(232, 98, 61, 0.15); }
.flavors__header { margin-bottom: clamp(3.5rem, 9vh, 6rem); }
.flavors__label { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(232, 98, 61, 0.5); margin-bottom: 1rem; display: block; }
.flavors__heading { font-family: 'Cairo', 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); color: var(--cream-base); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.2rem; }
.flavors__sub { font-family: 'Cairo', 'Cormorant Garamond', serif; font-style: italic; font-weight: 300; font-size: clamp(0.95rem, 1.5vw, 1.15rem); color: rgba(251, 246, 238, 0.35); line-height: 1.7; }
.flavors__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 22vw, 280px), 1fr)); gap: clamp(2.5rem, 6vh, 4.5rem) clamp(2rem, 5vw, 4rem); }
.flavors__cat-name { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent-coral); opacity: 0.6; margin-bottom: 1.4rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(232, 98, 61, 0.15); }
.flavors__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.flavor-item { font-family: 'Cairo', 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(251, 246, 238, 0.48); padding: 0.55rem 0 0.55rem 1rem; cursor: pointer; border-inline-start: 1px solid transparent; user-select: none; transition: color 0.28s var(--ease-silk), border-color 0.28s var(--ease-silk), opacity 0.28s var(--ease-silk); position: relative; line-height: 1.3; }
.flavor-item:hover { color: rgba(251, 246, 238, 0.8); }
.flavor-item.is-selected { color: var(--cream-base); border-inline-start-color: var(--accent-coral); }
.flavors__note { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.68rem; color: rgba(251, 246, 238, 0.25); line-height: 1.6; margin-top: 0.9rem; letter-spacing: 0.04em; }

.wa-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 500; background: var(--cocoa); border-top: 1px solid rgba(232, 98, 61, 0.22); transform: translateY(100%); transition: transform 0.55s var(--ease-silk); will-change: transform; }
.wa-bar.is-visible { transform: translateY(0); }
.wa-bar__inner { max-width: 900px; margin: 0 auto; padding: 1rem clamp(1.5rem, 5vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.wa-bar__count { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(251, 246, 238, 0.4); white-space: nowrap; min-width: 6rem; }
.wa-bar__btn { display: flex; align-items: center; gap: 0.65rem; background: var(--accent-coral); color: var(--cream-base); border: none; cursor: pointer; padding: 0.75rem 1.6rem; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; transition: background 0.25s var(--ease-silk), transform 0.2s var(--ease-silk); will-change: transform; }
.wa-bar__btn:hover { background: #d45530; transform: translateY(-1px); }
.wa-bar__btn:active { transform: translateY(0); }
.wa-bar__icon { width: 16px; height: 16px; flex-shrink: 0; }
.wa-bar__label { white-space: nowrap; }
@media (max-width: 480px) { .wa-bar__inner { flex-direction: column; gap: 0.75rem; padding: 0.9rem 1.5rem; align-items: stretch; } .wa-bar__btn { justify-content: center; } .wa-bar__count { text-align: center; } }
body.wa-active { padding-bottom: 76px; }
@media (max-width: 480px) { body.wa-active { padding-bottom: 112px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ing-panel__img { animation: none; }
  .wa-bar { transition: none; }
  .flavor-item { transition: none; }
}
