/* ---------- Design tokens ---------- */
:root {
  --purple: #4A1259;
  --purple-dark: #2E0A38;
  --purple-darker: #1C0620;
  --purple-tint: #F4E9F6;
  --purple-tint-2: #E6CCEA;
  --gold: #FFD600;
  --gold-dark: #E0B800;
  --cream: #FFFBF2;
  --ink: #2E0A38;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px rgba(46, 10, 56, 0.16);
  --font-display: 'Fredoka', 'Baloo 2', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

/* Prevent grid items with images/iframes from blowing out their track's min-content width on narrow viewports */
.hero-media, .about-media, .sides-photo, .location-map { min-width: 0; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.4em;
  color: var(--purple-darker);
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--purple);
  margin-bottom: 0.6em;
}
.eyebrow-light { color: var(--gold); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--purple); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--purple-dark); }

.btn-outline { border-color: var(--purple); color: var(--purple); background: transparent; }
.btn-outline:hover { background: var(--purple-tint); }

.btn-light { background: var(--gold); color: var(--purple-darker); }
.btn-light:hover { background: #ffe066; }

.btn-light-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-light-outline:hover { background: rgba(255,255,255,0.12); }

.btn-small { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(46,10,56,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 24px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--purple-darker);
  line-height: 1.1;
}
.logo-word em { display: block; font-style: normal; color: var(--purple); font-size: 0.85rem; }

.main-nav {
  display: flex;
  gap: 26px;
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { color: var(--purple-darker); opacity: 0.85; }
.main-nav a:hover { opacity: 1; color: var(--purple); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-darker);
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.45;
  padding: 4px;
}
.lang-btn.active { opacity: 1; color: var(--purple); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--purple-darker);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--purple-tint) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--purple);
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--purple-darker);
  opacity: 0.85;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.badge {
  background: var(--white);
  border: 2px solid var(--purple-tint-2);
  color: var(--purple-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  position: relative;
  justify-self: center;
}
.hero-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.hero-mascot {
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 120px;
  border-radius: 50%;
  box-shadow: 0 8px 14px rgba(46,10,56,0.35);
  border: 4px solid var(--white);
}

/* ---------- Menu ---------- */
.menu { padding: 96px 0; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.menu-card {
  background: var(--purple-tint);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: left;
  border: 2px solid transparent;
}
.menu-card.featured {
  background: var(--purple);
  color: var(--white);
}
.menu-card.featured h3,
.menu-card.featured .menu-build { color: var(--white); }
.menu-card.featured .menu-desc { color: rgba(255,255,255,0.85); }
.menu-card.featured .menu-tag { background: var(--gold); color: var(--purple-darker); }

.menu-tag {
  display: inline-block;
  background: var(--purple-tint-2);
  color: var(--purple-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.menu-card h3 {
  font-size: 1.5rem;
  color: var(--purple-darker);
}

.menu-build {
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}

.menu-desc {
  font-size: 0.92rem;
  color: var(--purple-darker);
  opacity: 0.8;
  margin-bottom: 0;
}

.sides-banner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--purple-darker);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-items: stretch;
}
.sides-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}
.sides-copy {
  padding: 40px;
  color: var(--white);
  align-self: center;
}
.sides-copy h3 { color: var(--white); font-size: 1.6rem; }
.sides-copy p { color: rgba(255,255,255,0.82); }
.menu-note {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 0;
}

/* ---------- Party (salgadinhos) ---------- */
.party {
  padding: 80px 0;
  background: var(--purple);
  color: var(--white);
}
.party-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.party h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.party-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.party-list li {
  font-weight: 600;
  padding-left: 22px;
  position: relative;
  opacity: 0.92;
}
.party-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.party-note { font-size: 0.9rem; opacity: 0.75; font-style: italic; margin-bottom: 0; }

.party-price {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.party-price-value {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.party-price-label {
  display: block;
  font-weight: 600;
  opacity: 0.85;
  margin: 6px 0 20px;
}

/* ---------- Cakes ---------- */
.cakes { padding: 96px 0; background: var(--cream); }
.cakes .section-head p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.cakes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cakes-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.cakes-item img { width: 100%; height: 240px; object-fit: cover; }
.cakes-item figcaption {
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--purple-darker);
}

/* ---------- About ---------- */
.about { padding: 96px 0; }

.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.about-stats {
  display: flex;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  flex-wrap: wrap;
}
.about-stats li { display: flex; flex-direction: column; }
.about-stats strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--purple);
}
.about-stats span {
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 16ch;
}

/* ---------- Loyalty ---------- */
.loyalty { padding: 88px 0; background: var(--purple-tint); }
.loyalty-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.loyalty h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.loyalty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  place-items: center;
}
.stamp {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px dashed var(--purple-tint-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stamp.filled {
  border-style: solid;
  border-color: var(--purple);
  background: var(--purple);
  position: relative;
}
.stamp.filled::after {
  content: "✓";
  color: var(--white);
  font-weight: 700;
}
.stamp.gift {
  border-color: var(--gold);
  background: var(--gold);
  font-size: 1.4rem;
}

/* ---------- Gallery ---------- */
.gallery { padding: 96px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.span-2 { grid-column: span 2; }

/* ---------- Location ---------- */
.location { padding: 96px 0; background: var(--purple-tint); }

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.location h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.info-block { margin-bottom: 28px; }
.info-block h3 {
  font-size: 1.1rem;
  color: var(--purple);
  margin-bottom: 8px;
}
.info-block a { font-weight: 600; color: var(--purple); }
.info-block a:hover { text-decoration: underline; }

.hours-table { border-collapse: collapse; margin-bottom: 12px; }
.hours-table td {
  padding: 6px 18px 6px 0;
  font-weight: 500;
}
.hours-table td:first-child { font-weight: 700; color: var(--purple-darker); }

.location-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 340px;
}
.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

/* ---------- Order ---------- */
.order {
  padding: 90px 0;
  background: var(--purple-darker);
  color: var(--white);
  text-align: center;
}
.order h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.order p { max-width: 50ch; margin: 0 auto 32px; color: rgba(255,255,255,0.85); }
.order-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--purple-darker);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { height: 44px; width: 44px; border-radius: 50%; margin-bottom: 14px; }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .logo-word { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-media { order: 1; justify-self: stretch; width: 100%; }
  .hero-photo { max-width: 100%; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-mascot { display: none; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .sides-banner { grid-template-columns: 1fr; }
  .sides-photo { min-height: 200px; }

  .party-inner { grid-template-columns: 1fr; text-align: center; }
  .party-list { grid-template-columns: 1fr; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }

  .cakes-grid { grid-template-columns: 1fr; }

  .about-inner { grid-template-columns: 1fr; }
  .about-stats { justify-content: center; text-align: center; }

  .loyalty-inner { grid-template-columns: 1fr; text-align: center; }
  .loyalty-card { max-width: 320px; margin: 0 auto; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.span-2 { grid-column: span 2; }

  .location-inner { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .menu-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-actions .btn-small { display: none; }
}
