/* ============================================
   WimC — "What's in my Crêpe"
   Design tokens
   ============================================ */
:root{
  --purple-deep:   #4A1F66;
  --purple:        #622789;
  --purple-light:  #8A4FB5;
  --purple-pale:   #EFE2F2;
  --cream:         #EFE2AB;
  --cream-light:   #FAF6E3;
  --white:         #FFFFFF;
  --ink:           #2B1430;

  --font-script:   'Caveat', cursive;
  --font-display:  'Baloo 2', sans-serif;
  --font-body:     'Nunito', sans-serif;

  --container: 1240px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.22,1,.36,1);
}

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

html{scroll-behavior:smooth;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

body{
  font-family:var(--font-body);
  background:var(--cream-light);
  color:var(--ink);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

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

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  line-height:1.05;
  color:var(--purple-deep);
}

.eyebrow{
  font-family:var(--font-body);
  font-weight:800;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--purple);
}

.script{
  font-family:var(--font-script);
  font-weight:700;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:16px 32px;
  border-radius:999px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:16px;
  letter-spacing:.01em;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space:nowrap;
}
.btn-primary{
  background:var(--purple);
  color:var(--white);
  box-shadow:0 8px 24px -8px rgba(98,39,137,.55);
}
.btn-primary:hover{
  background:var(--purple-deep);
  transform:translateY(-3px);
  box-shadow:0 14px 30px -8px rgba(98,39,137,.6);
}
.btn-outline{
  background:transparent;
  color:var(--purple);
  border:2px solid var(--purple);
}
.btn-outline:hover{
  background:var(--purple);
  color:var(--white);
  transform:translateY(-3px);
}
.btn-cream{
  background:var(--cream);
  color:var(--purple-deep);
}
.btn-cream:hover{
  background:var(--white);
  transform:translateY(-3px);
}

/* ---------- Navbar ---------- */
.nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  padding:18px 0;
  transition:background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled{
  background:rgba(250,246,227,.88);
  backdrop-filter:blur(14px);
  padding:10px 0;
  box-shadow:0 4px 24px rgba(74,31,102,.08);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-script);
  font-size:32px;
  color:var(--purple-deep);
}
.nav-logo img{height:42px; width:auto; transition:transform .4s var(--ease);}
.nav-logo:hover img{transform:rotate(-8deg) scale(1.08);}

.nav-links{
  display:flex;
  align-items:center;
  gap:38px;
}
.nav-links a{
  font-family:var(--font-display);
  font-weight:600;
  font-size:15px;
  color:var(--purple-deep);
  position:relative;
  padding:4px 0;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:-4px;
  width:0; height:3px;
  background:var(--purple);
  border-radius:3px;
  transition:width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{width:100%;}
.nav-links a.active{color:var(--purple);}

.nav-cta{display:flex; align-items:center; gap:18px;}
.nav-burger{
  display:none;
  flex-direction:column;
  gap:5px;
  width:30px;
  z-index:1100;
}
.nav-burger span{
  height:3px; width:100%;
  background:var(--purple-deep);
  border-radius:3px;
  transition:transform .35s var(--ease), opacity .3s;
}

/* ---------- Mobile nav ---------- */
.mobile-panel{
  position:fixed; inset:0;
  background:var(--purple-deep);
  z-index:1050;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:30px;
  transform:translateY(-100%);
  transition:transform .5s var(--ease);
}
.mobile-panel.open{transform:translateY(0);}
.mobile-panel a{
  font-family:var(--font-display);
  font-size:28px;
  color:var(--cream-light);
  font-weight:700;
}

body.menu-open{overflow:hidden;}

/* ---------- Splash divider (signature motif) ---------- */
.splash-divider{
  display:block;
  width:100%;
  height:auto;
  margin:-1px 0;
}

/* ---------- Marquee strip ---------- */
.marquee{
  background:var(--purple);
  overflow:hidden;
  padding:16px 0;
  position:relative;
  z-index:5;
}
.marquee-track{
  display:flex;
  width:max-content;
  animation:marquee 28s linear infinite;
}
.marquee-track span{
  display:flex;
  align-items:center;
  gap:14px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  color:var(--cream);
  white-space:nowrap;
  padding:0 28px;
}
.marquee-track .dot{
  width:7px; height:7px;
  background:var(--cream);
  border-radius:50%;
  display:inline-block;
}
@keyframes marquee{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

/* ---------- Reveal-on-scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(36px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in{opacity:1; transform:translateY(0);}
.reveal-scale{opacity:0; transform:scale(.92); transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal-scale.in{opacity:1; transform:scale(1);}
.reveal-left{opacity:0; transform:translateX(-50px); transition:opacity .9s var(--ease), transform .9s var(--ease);}
.reveal-left.in{opacity:1; transform:translateX(0);}
.reveal-right{opacity:0; transform:translateX(50px); transition:opacity .9s var(--ease), transform .9s var(--ease);}
.reveal-right.in{opacity:1; transform:translateX(0);}

.stagger > *{transition-delay:calc(var(--i, 0) * 90ms);}

/* ---------- Footer ---------- */
.footer{
  background:var(--purple-deep);
  color:var(--cream-light);
  padding:90px 0 30px;
  position:relative;
  overflow:hidden;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:48px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(239,226,171,.18);
}
.footer-logo{display:flex; align-items:center; gap:10px; margin-bottom:16px;}
.footer-logo img{height:46px;}
.footer-col h4{
  font-family:var(--font-display);
  color:var(--cream);
  font-size:15px;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:18px;
}
.footer-col p, .footer-col li{
  font-size:15px;
  color:rgba(250,246,227,.75);
  line-height:1.9;
}
.footer-col a:hover{color:var(--cream);}
.footer-social{display:flex; gap:14px; margin-top:18px;}
.footer-social a{
  width:40px; height:40px;
  border-radius:50%;
  background:rgba(239,226,171,.12);
  display:flex; align-items:center; justify-content:center;
  transition:background .3s, transform .3s var(--ease);
}
.footer-social a:hover{background:var(--cream); color:var(--purple-deep); transform:translateY(-4px) rotate(8deg);}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px;
  font-size:13px;
  color:rgba(250,246,227,.5);
  flex-wrap:wrap; gap:10px;
}
.footer-legal{display:flex; gap:22px; flex-wrap:wrap;}
.footer-legal a{color:rgba(250,246,227,.5); transition:color .25s;}
.footer-legal a:hover{color:var(--cream);}
@media (max-width:768px){
  .footer-bottom{flex-direction:column; text-align:center;}
  .footer-legal{justify-content:center;}
}

/* ---------- Page header (non-home pages) ---------- */
.page-header{
  padding:170px 0 90px;
  background:var(--purple-deep);
  position:relative;
  overflow:hidden;
  text-align:center;
}
.page-header h1{color:var(--cream-light); font-size:clamp(40px,6vw,72px);}
.page-header p{color:rgba(250,246,227,.8); font-size:18px; margin-top:14px; max-width:540px; margin-inline:auto;}
.page-header .splash-bg{
  position:absolute;
  width:480px; opacity:.08;
  top:-80px; right:-100px;
  transform:rotate(15deg);
}

/* ---------- Utility ---------- */
.section{padding:110px 0;}
.text-center{text-align:center;}
.muted{color:rgba(43,20,48,.65);}

::selection{background:var(--purple); color:var(--cream-light);}

::-webkit-scrollbar{width:11px;}
::-webkit-scrollbar-track{background:var(--cream-light);}
::-webkit-scrollbar-thumb{background:var(--purple-light); border-radius:10px;}
::-webkit-scrollbar-thumb:hover{background:var(--purple);}

/* Cursor drip follower */
.drip-cursor{
  position:fixed;
  width:14px; height:14px;
  border-radius:50% 50% 50% 0;
  background:var(--purple);
  pointer-events:none;
  z-index:9999;
  opacity:0;
  transition:opacity .3s;
  mix-blend-mode:normal;
}

@media (max-width: 980px){
  .nav-links, .nav-cta .btn{display:none;}
  .nav-burger{display:flex;}
  .footer-grid{grid-template-columns:1fr 1fr; gap:36px;}
}
@media (max-width: 560px){
  .footer-grid{grid-template-columns:1fr;}
  .container{padding:0 20px;}
}

/* ---------- Floating WhatsApp + Call buttons ---------- */
.float-actions{
  position:fixed;
  right:22px; bottom:24px;
  display:flex; flex-direction:column; gap:14px;
  z-index:950;
}
.float-btn{
  width:56px; height:56px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px -8px rgba(0,0,0,.35);
  transition:transform .3s var(--ease), box-shadow .3s;
}
.float-btn:hover{transform:translateY(-4px) scale(1.06); box-shadow:0 18px 34px -8px rgba(0,0,0,.4);}
.float-btn svg{width:26px; height:26px;}
.float-btn.wa{background:#25D366;}
.float-btn.call{background:var(--purple);}
@media (max-width:560px){
  .float-actions{right:16px; bottom:86px;} /* sits above the mini cart bar on mobile */
  .float-btn{width:50px; height:50px;}
}

/* ---------- Mini cart bar (floating, site-wide) ---------- */
.mini-cart-bar{
  position:fixed;
  left:50%; bottom:24px;
  transform:translate(-50%, 120%);
  display:flex; align-items:center; gap:12px;
  background:var(--purple-deep);
  color:var(--cream-light);
  padding:14px 22px;
  border-radius:999px;
  box-shadow:0 18px 40px -12px rgba(74,31,102,.5);
  z-index:900;
  font-family:var(--font-display);
  transition:transform .4s var(--ease), opacity .4s var(--ease);
  opacity:0;
}
.mini-cart-bar.show{transform:translate(-50%, 0); opacity:1;}
.mini-cart-bar:hover{background:var(--purple);}
.mini-cart-count{
  background:var(--cream); color:var(--purple-deep);
  width:24px; height:24px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px;
}
.mini-cart-label{font-weight:700; font-size:14.5px;}
.mini-cart-total{font-weight:800; font-size:14.5px; color:var(--cream);}
@media (max-width:560px){
  .mini-cart-bar{left:16px; right:auto; bottom:16px;}
}

/* ---------- Add-to-cart control on menu items ---------- */
.menu-photo{position:relative;}
.menu-add{
  position:absolute;
  right:12px; bottom:12px;
  z-index:3;
}
.menu-add-btn{
  width:38px; height:38px; border-radius:50%;
  background:var(--white); color:var(--purple-deep);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; line-height:1;
  box-shadow:0 10px 22px -8px rgba(0,0,0,.4);
  transition:transform .25s var(--ease), background .25s;
}
.menu-add-btn:hover{background:var(--purple); color:var(--white); transform:scale(1.08);}
.menu-add-btn:active{transform:scale(.92);}
.menu-add-stepper{
  display:none;
  align-items:center; gap:2px;
  background:var(--white);
  border-radius:999px;
  padding:5px;
  box-shadow:0 10px 22px -8px rgba(0,0,0,.4);
}
.menu-add-stepper.show{display:flex;}
.menu-add-stepper button{
  width:26px; height:26px; border-radius:50%;
  background:var(--purple-pale); color:var(--purple-deep);
  font-weight:800; font-size:15px;
}
.menu-add-stepper button:hover{background:var(--purple); color:var(--white);}
.menu-add-stepper span{
  min-width:20px; text-align:center;
  font-family:var(--font-display); font-weight:800; font-size:13.5px;
  color:var(--purple-deep);
}

/* ---------- Product images link into the menu ---------- */
.carousel-link{display:block; width:100%; height:100%;}
.carousel-slide img{width:100%; height:100%; object-fit:contain;}

/* Menu item highlight when arrived at via #anchor from the home page */
.menu-item{scroll-margin-top:120px;}
.menu-item:target{
  box-shadow:0 0 0 3px var(--purple), 0 22px 44px -14px rgba(74,31,102,.3);
  animation:menuTargetPulse 1.6s var(--ease) 1;
}
@keyframes menuTargetPulse{
  0%{transform:scale(1);}
  35%{transform:scale(1.04);}
  100%{transform:scale(1);}
}
