/* ============================================================
   Caramello — Confeitaria Artesanal
   Paleta e tipografia fiéis ao site original
   ============================================================ */
:root {
  --background: #fff8dd;   /* creme */
  --primary:    #5c3a21;   /* marrom */
  --secondary:  #d4a373;   /* caramelo */
  --accent:     #f7a8b8;   /* rosa */
  --darkpink:   #e07a8a;   /* rosa escuro (hover) */
  --white:      #ffffff;

  --font-body:  'Fredoka', sans-serif;
  --font-brand: 'Playfair Display', serif;

  --radius: 1.5rem;
  --shadow-soft: 0 10px 30px rgba(92, 58, 33, 0.12);
  --shadow-sweet: 0 10px 40px -10px rgba(247, 168, 184, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--background);
  color: var(--primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--white); }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 4rem; }
}

/* ---------- Botões ---------- */
.sweet-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  font-weight: 700;
  letter-spacing: .025em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.sweet-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-sweet); }

.btn-cta {
  background: var(--accent);
  color: var(--primary);
  padding: .85rem 1.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}
.btn-cta:hover { background: var(--darkpink); color: var(--white); }

.btn-ghost {
  background: rgba(255, 255, 255, .35);
  color: var(--primary);
  padding: .85rem 1.75rem;
  border: 2px solid var(--primary);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--primary); color: var(--white); }

.btn-soft {
  background: rgba(255, 255, 255, .6);
  color: var(--primary);
  padding: .7rem 1.5rem;
  font-size: .95rem;
  border: 1px solid rgba(212, 163, 115, .35);
}
.btn-soft:hover { background: var(--secondary); color: var(--white); }

/* ---------- Blobs decorativos ---------- */
.blob {
  position: absolute;
  width: 20rem; height: 20rem;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.blob-accent { background: rgba(247, 168, 184, .14); }
.blob-secondary { background: rgba(212, 163, 115, .12); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(92, 58, 33, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 4px 20px rgba(92, 58, 33, .18);
  transition: padding .3s ease;
}
.site-header.shrink { padding-block: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.brand-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
}
.footer-logo { width: 64px; height: 64px; }

.nav-desktop { display: none; gap: 1.75rem; }
.nav-desktop a {
  color: var(--background);
  text-decoration: none;
  font-weight: 500;
  opacity: .9;
  transition: color .2s, opacity .2s;
}
.nav-desktop a:hover { color: var(--accent); opacity: 1; }

.nav-cta { display: none; font-size: .9rem; padding: .6rem 1.25rem; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--background);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  background: rgba(92, 58, 33, .96);
  transition: max-height .35s ease, padding .35s ease;
}
.nav-mobile.open { max-height: 420px; padding: .75rem 1.5rem 1.5rem; }
.nav-mobile a {
  color: var(--background);
  text-decoration: none;
  font-weight: 500;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-mobile a.sweet-btn { margin-top: .75rem; border: none; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}
/* Camada para escurecer o fundo sem afetar o texto à frente */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(46, 26, 14, .55) 0%, rgba(46, 26, 14, .68) 55%, rgba(46, 26, 14, .82) 100%);
}
.hero-inner { position: relative; z-index: 10; max-width: 820px; }

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-brand);
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  color: var(--background);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-title .amp {
  color: var(--secondary);
  font-style: italic;
  font-weight: 400;
}
.hero-title b { color: var(--accent); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 248, 221, .92);
  max-width: 36rem;
  margin: 1.5rem auto 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.hero-actions .btn-ghost {
  border-color: rgba(255, 248, 221, .85);
  color: var(--background);
  background: rgba(255, 255, 255, .08);
}
.hero-actions .btn-ghost:hover {
  background: var(--background);
  color: var(--primary);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding: 5rem 0; overflow: hidden; }
.section-alt { background: linear-gradient(180deg, rgba(212,163,115,.07), transparent); }

.section-head {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  border-bottom: 2px solid rgba(92, 58, 33, .18);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  font-family: var(--font-brand);
  margin-bottom: .35rem;
}
.section-title {
  font-family: var(--font-brand);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
}
.section-lead {
  font-size: 1.05rem;
  color: rgba(92, 58, 33, .7);
  max-width: 26rem;
}
.section-lead.center { margin-inline: auto; text-align: center; }

.section-foot { text-align: center; margin-top: 2.5rem; position: relative; z-index: 10; }

/* ---------- Grid de cards (Especialidades) ---------- */
.grid-cards {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 560px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(212, 163, 115, .25);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }

.card-media { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card-media img { transform: scale(1.08); }

.card-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .75rem;
  border-radius: 9999px;
  z-index: 2;
}
.card-body { padding: 1.1rem 1.25rem 1.4rem; text-align: center; }
.card-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  transition: color .3s;
}
.card:hover .card-name { color: var(--darkpink); }
.card-btn {
  margin-top: 1rem;
  width: 100%;
  background: rgba(255, 255, 255, .6);
  color: var(--primary);
  padding: .55rem;
  font-size: .85rem;
  border: 1px solid rgba(212, 163, 115, .25);
}
.card-btn:hover { background: var(--secondary); color: var(--white); }

/* ---------- Grid Assinatura (signature list) ---------- */
.grid-signature {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-signature { grid-template-columns: repeat(2, 1fr); } }

.sig {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(212, 163, 115, .25);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s, transform .3s;
}
.sig:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
@media (min-width: 560px) { .sig { flex-direction: row; } }

.sig-media { position: relative; overflow: hidden; }
.sig-media img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform .7s ease; }
.sig:hover .sig-media img { transform: scale(1.05); }
@media (min-width: 560px) { .sig-media { width: 40%; flex-shrink: 0; } }

.sig-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.sig-diff {
  font-weight: 700;
  color: var(--secondary);
  font-family: var(--font-brand);
  font-size: 1rem;
  margin-bottom: .5rem;
}
.sig-title {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.sig-time {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(247, 168, 184, .2);
  padding: .3rem .8rem;
  border-radius: 9999px;
}

/* ---------- Nossa Essência ---------- */
.essence {
  text-align: center;
  background-image: url('assets/essencia-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 2.5rem;
  margin: 4rem 1rem;
  padding: 5.5rem 0;
}
/* Camada para escurecer o fundo sem afetar o texto à frente */
.essence::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at center, rgba(46, 26, 14, .55) 0%, rgba(46, 26, 14, .80) 100%);
}
.essence-inner {
  position: relative; z-index: 10;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.essence .kicker { color: var(--accent); }
.essence .section-title { color: var(--background); text-shadow: 0 2px 16px rgba(0, 0, 0, .4); }
.essence-badge {
  width: 150px; height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--background);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
  background: var(--white);
}
.essence-badge img { width: 100%; height: 100%; object-fit: cover; }
.essence-text {
  font-size: 1.15rem;
  color: rgba(255, 248, 221, .92);
  margin: 1rem 0 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}

/* ---------- Instagram ---------- */
.instagram { text-align: center; }
.insta-inner { position: relative; z-index: 10; max-width: 640px; margin-inline: auto; }
.insta-btn { margin-top: 1.75rem; }
.insta-btn svg { width: 20px; height: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary);
  color: var(--background);
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
  padding: 4rem 0 2rem;
  margin-top: 3rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-about {
  margin-top: 1rem;
  font-size: .9rem;
  color: rgba(255, 248, 221, .8);
  max-width: 22rem;
}
.footer-col h4 {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.footer-col a, .footer-muted {
  display: block;
  color: rgba(255, 248, 221, .85);
  text-decoration: none;
  font-size: .9rem;
  padding: .3rem 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 221, .12);
  font-size: .8rem;
  color: rgba(255, 248, 221, .55);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

.footer-credit {
  text-align: center;
  margin-top: 1rem;
  font-size: .78rem;
  color: rgba(255, 248, 221, .45);
}
.footer-credit a {
  color: rgba(255, 248, 221, .7);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.footer-credit a:hover { color: var(--accent); }

/* nav link ativo */
.nav-desktop a.active { color: var(--accent); opacity: 1; }

/* ============================================================
   COMO ENCOMENDAR — passos
   ============================================================ */
.steps {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--white);
  border: 1px solid rgba(212, 163, 115, .25);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.step h3 {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: .4rem;
}
.step p { color: rgba(92, 58, 33, .8); font-size: .95rem; }
.step a { color: var(--darkpink); font-weight: 600; }

.delivery-note {
  position: relative; z-index: 10;
  margin-top: 2rem;
  background: rgba(247, 168, 184, .14);
  border: 1px dashed rgba(224, 122, 138, .5);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: .98rem;
  color: var(--primary);
}

/* ============================================================
   PÁGINA CARDÁPIO
   ============================================================ */
.menu-hero {
  text-align: center;
  padding: 9rem 0 1rem;
  background: linear-gradient(180deg, rgba(212,163,115,.12), transparent);
}
.menu-hero-title { font-size: clamp(2rem, 5vw, 3.25rem); }
.menu-hero-sub {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: rgba(92, 58, 33, .8);
  font-size: 1.05rem;
}
.menu-section { padding-top: 2.5rem; }

.menu-cat { margin-bottom: 3.5rem; }
.menu-cat-title {
  font-family: var(--font-brand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  padding-bottom: .75rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid rgba(247, 168, 184, .4);
}
.menu-cat-title::before { content: "🧁 "; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(212, 163, 115, .28);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.menu-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }

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

.menu-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .85rem;
}
.menu-name {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.menu-price {
  flex-shrink: 0;
  font-weight: 700;
  font-size: .92rem;
  color: var(--white);
  background: var(--secondary);
  padding: .25rem .7rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.menu-specs { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1rem; }
.menu-specs > div { display: flex; flex-direction: column; gap: .1rem; }
.menu-specs dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--secondary);
}
.menu-specs dd {
  font-size: .92rem;
  color: rgba(92, 58, 33, .85);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.menu-alergenicos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin-bottom: 1.25rem;
  font-size: .78rem;
}
.alg-label { font-weight: 600; color: rgba(92, 58, 33, .6); }
.alg {
  background: rgba(247, 168, 184, .18);
  color: var(--primary);
  padding: .15rem .55rem;
  border-radius: 9999px;
  font-size: .72rem;
}

.menu-btn {
  margin-top: auto;
  width: 100%;
  background: var(--accent);
  color: var(--primary);
  padding: .65rem;
  font-size: .9rem;
}
.menu-btn:hover { background: var(--darkpink); color: var(--white); }

.alerg-legend {
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(212, 163, 115, .3);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-top: 1rem;
}
.alerg-legend h3 { font-family: var(--font-brand); color: var(--primary); margin-bottom: .5rem; }
.alerg-legend p { color: rgba(92, 58, 33, .85); font-size: .95rem; }

/* ============================================================
   INSTAGRAM — feed / placeholders
   ============================================================ */
.insta-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 2rem 0 .5rem;
}
@media (min-width: 600px) { .insta-feed { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }
.insta-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-decoration: none;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(247,168,184,.25), rgba(212,163,115,.22));
  border: 1px solid rgba(212, 163, 115, .25);
  transition: transform .3s, box-shadow .3s;
}
.insta-tile:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-sweet); }
.insta-cupcake { font-size: 1.6rem; }
.insta-soon {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
