/* ==========================================================================
   Cantinho do Chico — variáveis de marca (Manual de Identidade Visual)
   ========================================================================== */
:root {
  --chocolate: #422213;
  --cacau: #6E4237;
  --caramelo: #D19454;
  --baunilha: #F8EFD1;
  --morango: #ED5C6F;
  --menta: #7BC7C6;

  --bg: #FFFDF8;
  --text: var(--chocolate);
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius: 20px;
  --shadow: 0 10px 30px rgba(66, 34, 19, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--chocolate);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--chocolate);
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

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

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--morango);
  color: #fff;
  box-shadow: 0 8px 20px rgba(237, 92, 111, .35);
}
.btn-primary:hover { background: #e14a63; }

.btn-whatsapp {
  background: var(--chocolate);
  color: var(--baunilha);
}
.btn-whatsapp:hover { background: var(--cacau); }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 239, 209, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(66,34,19,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 6px 24px;
}

.brand-logo { height: 84px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav ul a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--chocolate);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--morango);
  transition: width .2s ease;
}
.main-nav ul a:hover::after { width: 100%; }

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta {
  font-size: 0.85rem;
  padding: 10px 16px;
  gap: 6px;
  white-space: nowrap;
}
.nav-cta .icon { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--chocolate);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--baunilha) 0%, #fbf6e6 100%);
  padding: 70px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow, .section-eyebrow {
  font-family: var(--font-display);
  color: var(--morango);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--morango); }

.hero-text {
  font-size: 1.1rem;
  max-width: 520px;
  color: var(--cacau);
}

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

.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* Hero image gallery (bento collage) */
.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 18px;
  height: 460px;
}

.hero-tile {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-tile--big { grid-row: 1 / 3; }

.hero-badge {
  position: absolute;
  left: -30px;
  bottom: -26px;
  width: 130px;
  filter: drop-shadow(0 10px 18px rgba(66,34,19,0.25));
}

/* ==========================================================================
   Sections generic
   ========================================================================== */
.section { padding: 90px 0; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.section-lead {
  max-width: 620px;
  color: var(--cacau);
  font-size: 1.05rem;
}

/* ==========================================================================
   História / Timeline
   ========================================================================== */
.historia { background: #fff; }

.timeline {
  list-style: none;
  margin: 50px 0 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom, var(--menta) 0 10px, transparent 10px 20px
  );
}

.timeline-item {
  display: flex;
  gap: 26px;
  margin-bottom: 46px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-icon {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--baunilha);
  border: 3px solid var(--caramelo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  z-index: 1;
}

.timeline-svg {
  width: 38px;
  height: 38px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--cacau);
  max-width: 700px;
}

/* ==========================================================================
   Nosso Espaço
   ========================================================================== */
.espaco { background: #fff; }

.espaco-photo {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.espaco-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

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

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

.menu-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(66,34,19,0.16);
}

.menu-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.menu-photo img,
.menu-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.menu-card:hover .menu-photo img { transform: scale(1.06); }

.menu-card h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.menu-card p { color: var(--cacau); font-size: 0.95rem; margin: 0 20px 24px; }

.cardapio-cta {
  text-align: center;
  margin-top: 46px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Localização
   ========================================================================== */
.localizacao { background: #fff; }

.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.info-list {
  list-style: none;
  margin: 36px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--cacau);
}
.info-list .icon { color: var(--morango); margin-top: 3px; }
.info-list a:hover { color: var(--morango); }

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--chocolate);
  color: var(--baunilha);
  padding: 50px 0;
  text-align: center;
}
.footer-icon { width: 46px; margin: 0 auto 16px; opacity: 0.9; }
.footer-inner p { margin: 0 0 6px; font-family: var(--font-display); }
.footer-small { font-family: var(--font-body) !important; font-size: 0.85rem; opacity: 0.75; }
.footer-credit {
  font-family: var(--font-body) !important;
  font-size: 0.78rem;
  opacity: 0.55;
  margin-top: 18px !important;
}

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  z-index: 400;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; fill: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-map { min-height: 280px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-content { order: 1; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-gallery { order: 2; height: 360px; }
  .hero-badge { width: 100px; left: 50%; transform: translateX(-50%); bottom: -20px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--baunilha);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 24px;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
  }
  .main-nav ul a { display: block; padding: 12px 0; }

  .nav-ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-cta { justify-content: center; font-size: 0.95rem; padding: 13px 20px; }
  .nav-cta .icon { width: 20px; height: 20px; }

  .brand-logo { height: 58px; }

  .section { padding: 64px 0; }
  .hero { padding: 48px 0; }
  .hero-gallery { height: 300px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

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

  .timeline::before { left: 29px; }
  .timeline-icon { width: 60px; height: 60px; font-size: 1.5rem; }
  .timeline-svg { width: 30px; height: 30px; }
}
