/* ===================================================================
   Lafe Doces — Design tokens
=================================================================== */
:root {
  --lilac: #C6A5C5;
  --lilac-dark: #A97FA8;
  --lilac-light: #F1E4F0;
  --chocolate: #4A2C22;
  --chocolate-soft: #6B4438;
  --cream: #FBF2E9;
  --white: #FFFFFF;

  --font-script: 'Dancing Script', cursive;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  --header-height: 84px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --shadow-soft: 0 12px 30px rgba(74, 44, 34, 0.12);
  --shadow-lift: 0 18px 40px rgba(169, 127, 168, 0.28);
  --container: 1180px;
}

/* ===================================================================
   Reset
=================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--chocolate);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; color: var(--chocolate); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.section-head p { color: var(--chocolate-soft); font-size: 1.02rem; }

section { padding: 96px 0; }

/* ===================================================================
   Buttons
=================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-3px); }

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

.btn-outline {
  background: transparent;
  color: var(--chocolate);
  border: 1.5px solid var(--chocolate);
}
.btn-outline:hover { background: var(--chocolate); color: var(--white); }

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

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ===================================================================
   Reveal animation
=================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================================================================
   Header
=================================================================== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 44, 34, 0.08);
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(74, 44, 34, 0.08); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(169, 127, 168, 0.4);
}
.brand span {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--lilac-dark);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--chocolate-soft);
  position: relative;
  padding-block: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--lilac-dark);
  transition: width 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--chocolate); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 6px 0;
}
.menu-toggle span {
  height: 2px;
  background: var(--chocolate);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   Hero
=================================================================== */
.hero {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 96px;
  background: linear-gradient(180deg, var(--lilac-light) 0%, var(--white) 78%);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 20px;
}
.hero-copy h1 em {
  font-style: normal;
  font-family: var(--font-script);
  color: var(--lilac-dark);
  font-size: 1.15em;
}
.hero-copy p {
  font-size: 1.08rem;
  color: var(--chocolate-soft);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--chocolate-soft); }
.hero-badge .dot {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  max-width: 80%;
  background: var(--lilac);
  border-radius: 63% 37% 54% 46% / 45% 55% 45% 55%;
  opacity: 0.35;
  z-index: 0;
  animation: blob 12s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 63% 37% 54% 46% / 45% 55% 45% 55%; }
  50% { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
}
.hero-photo {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow-lift);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lift);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.floating-card .num { font-family: var(--font-heading); font-size: 1.3rem; color: var(--lilac-dark); }
.card-followers { bottom: 12%; left: -8%; }
.card-orders { bottom: -4%; right: -6%; }

/* ===================================================================
   Sobre
=================================================================== */
.about { background: var(--white); }
.about .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--chocolate-soft); margin-bottom: 18px; font-size: 1.02rem; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--cream);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--chocolate);
}

/* ===================================================================
   Cardápio
=================================================================== */
.menu { background: var(--cream); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }

.menu-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.menu-card:hover .menu-card-media img { transform: scale(1.06); }

.menu-card-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  background: linear-gradient(135deg, var(--lilac-light), var(--lilac));
}

.menu-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.menu-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.menu-card-body p { color: var(--chocolate-soft); font-size: 0.92rem; margin-bottom: 18px; flex: 1; }

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu-price { font-weight: 600; color: var(--lilac-dark); font-size: 0.95rem; }

.menu-note {
  text-align: center;
  margin-top: 48px;
  color: var(--chocolate-soft);
  font-size: 0.95rem;
}

/* ===================================================================
   Eventos
=================================================================== */
.events {
  background: var(--chocolate);
  color: var(--white);
  text-align: center;
}
.events .section-head h2,
.events .section-head p { color: var(--white); }
.events .section-head p { opacity: 0.8; }

.events-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}
.event-pill {
  padding: 12px 26px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  font-size: 0.92rem;
}

/* ===================================================================
   Instagram
=================================================================== */
.social {
  background: linear-gradient(135deg, var(--lilac) 0%, var(--lilac-dark) 100%);
  color: var(--white);
  text-align: center;
}
.social h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.social p { opacity: 0.92; max-width: 480px; margin: 0 auto 30px; }

/* ===================================================================
   Contato
=================================================================== */
.contact { background: var(--white); }
.contact .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 48px clamp(24px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info h2 { margin-bottom: 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.contact-info p { color: var(--chocolate-soft); margin-bottom: 28px; }

.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.contact-detail { display: flex; align-items: center; gap: 14px; font-size: 0.96rem; }
.contact-detail .icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.contact-detail .icon svg { width: 19px; height: 19px; color: var(--lilac-dark); }

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

/* ===================================================================
   Footer
=================================================================== */
.footer { background: var(--chocolate); color: rgba(255,255,255,0.85); padding: 56px 0 28px; }
.footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 50%; }
.footer-brand span { font-family: var(--font-script); font-size: 1.6rem; color: var(--white); }

.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 0.9rem; }
.footer-links a:hover { color: var(--lilac); }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}
.footer-social a:hover { background: var(--lilac); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.7;
}

/* ===================================================================
   Responsive
=================================================================== */
@media (min-width: 720px) {
  .about .container { grid-template-columns: 0.9fr 1.1fr; }
  .contact-card { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1fr 0.9fr; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .header-actions .btn-primary.desktop-only { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    padding: 28px 24px;
    gap: 22px;
    box-shadow: 0 16px 30px rgba(74,44,34,0.12);
  }

  .hero-visual { margin-top: 24px; }
  .card-followers { left: 0; }
  .card-orders { right: 0; }
}

@media (max-width: 520px) {
  section { padding: 72px 0; }
  .floating-card { padding: 10px 14px; font-size: 0.75rem; }
  .floating-card .num { font-size: 1.05rem; }
}
