/* ==========================================================
   Bella's Cake And Pastries — Design tokens
   Palette pulled from the brand mark: deep cocoa script,
   caramel-gold ring, buttery cream field. Added a berry
   accent (like glaze/jam) so it isn't just brown-on-cream.
   ========================================================== */
:root{
  --cream: #FBF3E3;
  --paper: #FFFDF8;
  --choc: #2A1B12;
  --choc-soft: #55392A;
  --gold: #C6963B;
  --gold-soft: #E8CE96;
  --butter: #F1C669;
  --berry: #A8324A;
  --berry-dark: #7C2438;
  --line: rgba(42,27,18,0.14);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 18px;
  --shadow-soft: 0 20px 45px -22px rgba(42,27,18,0.35);
  --shadow-card: 0 14px 30px -18px rgba(42,27,18,0.4);
}

*,*::before,*::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--choc);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

.wrap{ max-width: var(--container); margin: 0 auto; padding: 0 28px; }

:focus-visible{
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

h1,h2,h3,h4{ font-family: var(--font-display); margin:0; color: var(--choc); font-weight: 600; }

.eyebrow{
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--berry);
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom: 6px;
}
.eyebrow::before{
  content:'';
  width: 22px; height: 2px;
  background: var(--berry);
  display:inline-block;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--berry);
  color: var(--paper);
  box-shadow: 0 12px 24px -10px rgba(168,50,74,0.55);
}
.btn-primary:hover{ background: var(--berry-dark); box-shadow: 0 14px 28px -10px rgba(124,36,56,0.6); }
.btn-outline{
  background: transparent;
  border-color: var(--choc);
  color: var(--choc);
}
.btn-outline:hover{ background: var(--choc); color: var(--paper); }
.btn-ghost{
  background: rgba(42,27,18,0.06);
  color: var(--choc);
}
.btn-ghost:hover{ background: rgba(42,27,18,0.12); }
.btn-sm{ padding: 10px 18px; font-size: 0.86rem; }
.btn svg{ width:18px; height:18px; flex-shrink:0; }

/* ---------- Announcement bar ---------- */
.announce{
  background: var(--choc);
  color: var(--gold-soft);
  font-size: 0.84rem;
  letter-spacing: .02em;
  overflow: hidden;
  white-space: nowrap;
}
.announce-track{
  display: inline-block;
  padding: 9px 0;
  animation: marquee 26s linear infinite;
}
.announce-track span{ padding: 0 2.5rem; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index:60;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.site-header::before{
  content:'';
  position: absolute; inset:0; z-index:-1;
  background: rgba(251,243,227,0.92);
  backdrop-filter: blur(10px);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.brand-name{ font-family: var(--font-display); font-weight:700; font-size:1.15rem; line-height:1.1; }
.brand-name small{ display:block; font-family: var(--font-body); font-weight:500; font-size: 0.68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--choc-soft); margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-size: 0.92rem; font-weight: 600; color: var(--choc-soft);
  position: relative; padding: 4px 0;
}
.main-nav a:hover{ color: var(--berry); }
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:-3px; width:0; height:2px; background: var(--berry);
  transition: width .2s ease;
}
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:12px; position: relative; z-index: 65; }
.cart-btn{
  position: relative;
  width: 44px; height:44px; border-radius:50%;
  background: rgba(42,27,18,0.06);
  display:flex; align-items:center; justify-content:center;
  border:none;
}
.cart-btn:hover{ background: rgba(42,27,18,0.12); }
.cart-btn svg{ width:20px; height:20px; }
.cart-count{
  position:absolute; top:-4px; right:-4px;
  background: var(--berry); color:#fff;
  font-size: 0.68rem; font-weight:700;
  width: 19px; height:19px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.nav-toggle{ display:none; background:none; border:none; padding:6px; }
.nav-toggle svg{ width:26px; height:26px; }

.main-nav{ z-index: 62; }
.nav-overlay{
  display:none;
  position: fixed; inset:0; z-index: 59;
  background: rgba(42,27,18,0.45);
  opacity:0; pointer-events:none;
  transition: opacity .3s ease;
}
.nav-overlay.open{ opacity:1; pointer-events:auto; }

@media (max-width: 900px){
  .nav-overlay{ display:block; }
  .main-nav{
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--paper);
    flex-direction: column; align-items: flex-start;
    padding: 100px 30px 30px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    gap: 24px;
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 78px 0 60px;
  overflow: hidden;
}
.hero .wrap{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items:center;
}
.hero-title{
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 1.03;
  white-space: pre-line;
  letter-spacing: -0.01em;
}
.hero-title em{
  font-style: italic;
  color: var(--berry);
}
.hero-sub{
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--choc-soft);
  max-width: 46ch;
}
.hero-cta{ display:flex; gap:14px; margin-top: 34px; flex-wrap: wrap; }

.hero-visual{ position: relative; }
.hero-collage{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}
.hero-collage .tile{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.hero-collage .tile img{ width:100%; height:100%; object-fit: cover; }
.hero-collage .tile.tall{ grid-row: span 2; aspect-ratio: 3/4.4; }
.hero-collage .tile.short{ aspect-ratio: 4/3.1; }
.hero-badge{
  position:absolute; bottom: -18px; left: 22px;
  background: var(--paper);
  border-radius: 100px;
  padding: 10px 18px 10px 10px;
  display:flex; align-items:center; gap:10px;
  box-shadow: var(--shadow-card);
  font-size: 0.82rem; font-weight: 600;
}
.hero-badge .dot{
  width: 34px; height:34px; border-radius:50%;
  background: var(--butter);
  display:flex; align-items:center; justify-content:center;
  font-size: 1.1rem;
}

/* icing swirl divider — the signature motif, echoing the logo */
.icing-divider{ width:100%; height: 34px; margin: 4px 0; }
.icing-divider svg{ width:100%; height:100%; }

/* ---------- Section shell ---------- */
section{ padding: 88px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 46px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-title{ font-size: clamp(1.9rem, 3vw, 2.5rem); }

/* ---------- About ---------- */
.about{ background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap{
  display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items:center;
}
.about-photo{
  border-radius: var(--radius);
  overflow:hidden; box-shadow: var(--shadow-card);
  aspect-ratio: 4/4.6;
}
.about-photo img{ width:100%; height:100%; object-fit:cover; }
.about-body p{ color: var(--choc-soft); font-size: 1.02rem; }
.about-bullets{ margin-top: 24px; display:flex; flex-direction:column; gap: 14px; }
.about-bullets li{ display:flex; align-items:flex-start; gap: 12px; font-weight: 500; }
.about-bullets svg{ width:20px; height:20px; flex-shrink:0; margin-top:2px; color: var(--berry); }

/* ---------- Menu / Products ---------- */
.menu-filters{
  display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn{
  padding: 9px 20px; border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 0.88rem; font-weight: 600; color: var(--choc-soft);
  transition: all .18s ease;
}
.filter-btn:hover{ border-color: var(--gold); }
.filter-btn.active{ background: var(--choc); border-color: var(--choc); color: var(--paper); }

.menu-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 980px){ .menu-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .menu-grid{ grid-template-columns: 1fr; } }

/* ticket-card: the signature product card, styled like a bakery order tag */
.ticket-card{
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  display:flex; flex-direction:column;
}
.ticket-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 40px -20px rgba(42,27,18,0.45); }
.ticket-media{
  position:relative;
  aspect-ratio: 4/3.3;
  overflow:hidden;
  /* torn-ticket edge at the bottom of the photo */
  -webkit-mask-image: radial-gradient(circle 7px at 24px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 56px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 88px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 120px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 152px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 184px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 216px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 248px 100%, transparent 98%, #000 100%),
                       linear-gradient(#000,#000);
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-size: 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 100% 100%;
  mask-image: radial-gradient(circle 7px at 24px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 56px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 88px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 120px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 152px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 184px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 216px 100%, transparent 98%, #000 100%),
                       radial-gradient(circle 7px at 248px 100%, transparent 98%, #000 100%),
                       linear-gradient(#000,#000);
  mask-repeat: repeat-x;
  mask-size: 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 32px 14px, 100% 100%;
}
.ticket-media img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.ticket-card:hover .ticket-media img{ transform: scale(1.06); }
.ticket-badge{
  position:absolute; top:14px; left:14px;
  background: var(--butter);
  color: var(--choc);
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
  letter-spacing: .02em;
}
.ticket-price{
  position:absolute; top:12px; right:12px;
  background: var(--berry);
  color:#fff;
  width: 62px; height:62px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column;
  font-weight:700; font-size: 0.72rem; text-align:center;
  box-shadow: 0 8px 18px -6px rgba(124,36,56,0.6);
  transform: rotate(6deg);
  border: 2px dashed rgba(255,255,255,0.6);
  line-height:1.1;
}
.ticket-body{ padding: 20px 22px 22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.ticket-cat{ font-family: var(--font-script); color: var(--gold); font-size: 1.05rem; }
.ticket-name{ font-family: var(--font-display); font-size: 1.28rem; font-weight:600; }
.ticket-desc{ color: var(--choc-soft); font-size: 0.9rem; flex:1; }
.ticket-actions{ display:flex; gap:10px; margin-top: 6px; }
.ticket-actions .btn{ flex:1; padding: 11px 14px; font-size: 0.85rem; }

.menu-empty{
  text-align:center; padding: 60px 20px; color: var(--choc-soft);
  font-family: var(--font-script); font-size: 1.4rem;
}

/* ---------- How it works ---------- */
.how{ background: var(--choc); color: var(--gold-soft); }
.how .section-head .eyebrow{ color: var(--butter); }
.how .section-head .eyebrow::before{ background: var(--butter); }
.how .section-title{ color: var(--paper); }
.how-grid{
  display:grid; grid-template-columns: repeat(4,1fr); gap: 26px;
}
@media (max-width: 900px){ .how-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .how-grid{ grid-template-columns: 1fr; } }
.how-step{
  background: rgba(255,253,248,0.05);
  border: 1px solid rgba(232,206,150,0.2);
  border-radius: 16px;
  padding: 26px 22px;
}
.how-num{
  font-family: var(--font-display);
  font-size: 2.1rem; color: var(--gold);
  margin-bottom: 14px;
}
.how-step h3{ color: var(--paper); font-size: 1.1rem; margin-bottom: 8px; }
.how-step p{ color: rgba(232,206,150,0.75); font-size: 0.92rem; margin:0; }

/* ---------- Contact / Order ---------- */
.contact .wrap{
  display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center;
}
.contact-card{
  background: var(--paper);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.contact-row{ display:flex; gap:16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child{ border-bottom:none; }
.contact-row svg{ width:22px; height:22px; color: var(--berry); flex-shrink:0; margin-top:2px; }
.contact-row h4{ font-size: 0.95rem; margin-bottom: 3px; }
.contact-row p{ margin:0; color: var(--choc-soft); font-size: 0.92rem; }
.contact-whatsapp-big{
  display:flex; align-items:center; gap:16px;
  background: var(--choc); color: var(--paper);
  border-radius: 16px; padding: 26px;
  margin-top: 4px;
}
.contact-whatsapp-big svg{ width:40px; height:40px; color:#25D366; flex-shrink:0; }
.contact-whatsapp-big .num{ font-family: var(--font-display); font-size: 1.25rem; }
.contact-whatsapp-big .lbl{ font-size: 0.82rem; color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer{ background: var(--choc); color: rgba(251,243,227,0.65); padding: 50px 0 28px; }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(232,206,150,0.15); }
.footer-brand{ display:flex; align-items:center; gap:12px; }
.footer-brand img{ width:44px; height:44px; border-radius:50%; border: 2px solid var(--gold); }
.footer-brand strong{ color: var(--paper); font-family: var(--font-display); font-size:1.05rem; }
.footer-links{ display:flex; gap: 34px; flex-wrap: wrap; }
.footer-links a{ font-size: 0.88rem; }
.footer-links a:hover{ color: var(--paper); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top: 22px; font-size: 0.8rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a{ opacity: .7; }
.footer-bottom a:hover{ opacity: 1; }

/* ---------- Floating WhatsApp widget ---------- */
.wa-float{
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  width: 62px; height:62px; border-radius:50%;
  background: #25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,0.6);
}
.wa-float svg{ width:30px; height:30px; }
.wa-float::before{
  content:''; position:absolute; inset:0; border-radius:50%;
  background: #25D366; opacity: .55;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse{
  0%{ transform: scale(1); opacity:.55; }
  100%{ transform: scale(1.9); opacity:0; }
}
.wa-tooltip{
  position: fixed; right: 92px; bottom: 36px; z-index: 70;
  background: var(--choc); color: var(--paper);
  padding: 9px 16px; border-radius: 10px; font-size: 0.82rem; font-weight:600;
  white-space: nowrap;
  opacity:0; transform: translateX(6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.wa-float:hover + .wa-tooltip, .wa-tooltip.show{ opacity:1; transform: translateX(0); }

/* ---------- Cart drawer ---------- */
.cart-overlay{
  position: fixed; inset:0; background: rgba(42,27,18,0.45);
  z-index: 80; opacity:0; pointer-events:none; transition: opacity .25s ease;
}
.cart-overlay.open{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position: fixed; top:0; right:0; bottom:0; z-index: 90;
  width: min(420px, 92vw);
  background: var(--paper);
  box-shadow: -20px 0 50px rgba(0,0,0,0.25);
  transform: translateX(100%);
  transition: transform .35s ease;
  display:flex; flex-direction:column;
}
.cart-drawer.open{ transform: translateX(0); }
.cart-head{ display:flex; align-items:center; justify-content:space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-head h3{ font-size: 1.3rem; }
.cart-close{ background:none; border:none; padding:6px; }
.cart-close svg{ width:22px; height:22px; }
.cart-items{ flex:1; overflow-y:auto; padding: 10px 24px; }
.cart-empty{ text-align:center; padding: 60px 10px; color: var(--choc-soft); }
.cart-empty svg{ width: 46px; height:46px; margin: 0 auto 14px; opacity:.4; }
.cart-item{ display:flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img{ width:64px; height:64px; border-radius:10px; object-fit:cover; flex-shrink:0; }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-info h4{ font-size: 0.95rem; margin:0 0 4px; font-family: var(--font-body); font-weight:700; }
.cart-item-info .price{ color: var(--berry); font-weight:700; font-size: 0.88rem; }
.qty-controls{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.qty-controls button{ width:26px; height:26px; border-radius:50%; border:1px solid var(--line); background: var(--cream); font-weight:700; }
.qty-controls span{ min-width: 18px; text-align:center; font-weight:600; font-size:0.9rem; }
.cart-remove{ background:none; border:none; color: var(--choc-soft); font-size: 0.78rem; text-decoration: underline; margin-top:8px; padding:0; }
.cart-foot{ padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.cart-subtotal{ display:flex; justify-content:space-between; font-weight:700; margin-bottom: 14px; font-size: 1.05rem; }
.cart-note{ width:100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 0.86rem; resize: vertical; min-height: 54px; margin-bottom: 14px; background: var(--cream); }
.cart-foot .btn{ width:100%; }

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; }
  .about .wrap{ grid-template-columns: 1fr; }
  .about-photo{ aspect-ratio: 16/9; }
  .contact .wrap{ grid-template-columns: 1fr; }
  section{ padding: 60px 0; }
}
