/* =============================================
   Doce Lima — Cake Boutique & Cafetaria
   ============================================= */

:root {
  --pink: #ef4d94;
  --pink-dark: #cf2f78;
  --pink-light: #ffe3f0;
  --pink-soft: #fff0f7;

  --green: #8bc540;
  --green-dark: #6a9e2c;
  --green-light: #eef8dd;

  --cream: #fffaf3;
  --cream-2: #fff3e4;

  --brown: #34211a;
  --brown-soft: #7a6459;

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

  --shadow-soft: 0 20px 50px -20px rgba(52, 33, 26, 0.25);
  --shadow-card: 0 12px 30px -12px rgba(52, 33, 26, 0.18);

  --ff-heading: "Fredoka", system-ui, sans-serif;
  --ff-body: "Outfit", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Typography helpers ---------- */
h1, h2, h3 {
  font-family: var(--ff-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--brown);
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 6px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-heading);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink-dark);
  margin-bottom: 12px;
}

.center { text-align: center; }
.center.eyebrow { justify-content: center; width: 100%; }

.section-sub {
  color: var(--brown-soft);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(239, 77, 148, 0.55);
}
.btn-pink:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(239, 77, 148, 0.6); }

.btn-outline {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--cream);
  transform: translateY(-3px);
}

/* ================= HEADER ================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  padding: 10px 0;
  background: rgba(255, 250, 243, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 6px 24px -12px rgba(52, 33, 26, 0.25);
}

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

.logo {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.6rem;
  display: inline-flex;
  line-height: 1;
}
.logo-pink { color: var(--pink); }
.logo-green { color: var(--green-dark); margin-left: 2px; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a { position: relative; padding: 4px 0; color: var(--brown); }
.nav a:not(.nav-insta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--pink);
  transition: width 0.25s ease;
}
.nav a:not(.nav-insta):hover::after { width: 100%; }

.nav-insta {
  display: inline-flex;
  color: var(--pink-dark);
}

.header-cta { padding: 11px 22px; font-size: 0.92rem; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--pink-soft);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--brown);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(78vw, 320px);
  background: var(--cream);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,0.3);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--ff-heading);
  font-size: 1.15rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(52,33,26,0.08);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(52,33,26,0.35) 0%, rgba(52,33,26,0.55) 55%, rgba(52,33,26,0.85) 100%),
    linear-gradient(100deg, rgba(239,77,148,0.35), rgba(139,197,64,0.15));
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  z-index: -1;
}
.blob-pink {
  width: 340px; height: 340px;
  background: radial-gradient(circle at 30% 30%, var(--pink), transparent 70%);
  top: -80px; right: -80px;
}
.blob-green {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 30% 30%, var(--green), transparent 70%);
  bottom: -60px; left: -60px;
}

.hero-content {
  padding-top: 90px;
  color: #fff;
  max-width: 760px;
}

.hero .eyebrow {
  color: var(--green-light);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  display: flex;
  gap: 0.15em;
  margin: 10px 0 4px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.hero-title-pink { color: #ff8bc0; }
.hero-title-green { color: #c3e88a; }

.hero-tagline {
  font-family: var(--ff-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: #fff;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: #fff;
  color: var(--brown);
}

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.hero-hours .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #7ee081;
  box-shadow: 0 0 0 4px rgba(126,224,129,0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(126,224,129,0.25); }
  50% { box-shadow: 0 0 0 8px rgba(126,224,129,0.1); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ================= MARQUEE ================= */
.marquee {
  background: var(--brown);
  color: var(--cream);
  overflow: hidden;
  padding: 16px 0;
  transform: rotate(-1deg) scale(1.02);
  margin: -14px 0;
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 500;
}
.marquee-track span:nth-child(odd) { color: var(--pink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= SECTIONS ================= */
.section { padding: 110px 0; position: relative; }

/* ---- Sobre ---- */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre-media {
  position: relative;
  height: 480px;
}
.sobre-media .img-a {
  position: absolute;
  width: 78%;
  top: 0; left: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  height: 72%;
  object-fit: cover;
  border: 6px solid var(--cream);
}
.sobre-media .img-b {
  position: absolute;
  width: 56%;
  bottom: 0; right: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  height: 55%;
  object-fit: cover;
  border: 6px solid var(--cream);
}
.sobre-badge {
  position: absolute;
  bottom: 8%;
  left: 0;
  background: var(--pink);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  max-width: 190px;
  font-family: var(--ff-heading);
}
.sobre-badge strong { display: block; font-size: 1.5rem; }
.sobre-badge span { font-size: 0.8rem; opacity: 0.9; font-family: var(--ff-body); }

.sobre-text p { color: var(--brown-soft); margin-bottom: 16px; max-width: 520px; }

.sobre-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.sobre-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sobre-stats strong {
  font-family: var(--ff-heading);
  color: var(--pink-dark);
  font-size: 1.3rem;
}
.sobre-stats span { font-size: 0.85rem; color: var(--brown-soft); }

/* ---- Menu ---- */
.menu-section { background: var(--pink-soft); }

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

.menu-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -16px rgba(52,33,26,0.28);
}
.menu-card-img { height: 210px; overflow: hidden; }
.menu-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-img img { transform: scale(1.08); }

.menu-card-body { padding: 22px 24px 26px; }
.menu-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.menu-card-body p { color: var(--brown-soft); font-size: 0.95rem; }

/* ---- Galeria ---- */
.gallery-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 160px;
  grid-auto-flow: dense;
  gap: 16px;
}
.g-item { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.g-item:hover img { transform: scale(1.1); }

.g-item:nth-child(-n+3) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(n+4) { grid-column: span 2; grid-row: span 1; }

.gallery-cta { text-align: center; margin-top: 44px; }

/* ---- Localização ---- */
.loc-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}

.loc-card {
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.loc-row { display: flex; align-items: flex-start; gap: 14px; }
.loc-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  box-shadow: var(--shadow-card);
}
.loc-row strong { display: block; font-family: var(--ff-heading); font-size: 1.02rem; }
.loc-row span, .loc-row a { color: var(--brown-soft); font-size: 0.95rem; }
.loc-row a:hover { color: var(--pink-dark); }

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

/* ================= FOOTER ================= */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 64px 0 32px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo .logo-green { color: var(--green); }
.footer-tagline { color: rgba(255,250,243,0.7); font-size: 0.95rem; }
.footer-social a {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(255,250,243,0.3);
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-3px); }
.footer-copy { color: rgba(255,250,243,0.45); font-size: 0.82rem; margin-top: 18px; }

.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ================= 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); }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }

  .sobre-grid, .loc-grid { grid-template-columns: 1fr; }
  .sobre-media { height: 380px; margin-bottom: 40px; }

  .menu-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; }
  .g-item:nth-child(n) { grid-column: span 2; grid-row: span 1; }
  .g-item:nth-child(1), .g-item:nth-child(5) { grid-row: span 2; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item:nth-child(n) { grid-column: span 1 !important; grid-row: span 1 !important; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .loc-map { min-height: 300px; }
  .loc-map iframe { min-height: 300px; }
}
