/* ==========================================================
   Caseiros da Jú - Estilos do site público
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  --cream: #FBF3E7;
  --cream-dark: #F3E1C6;
  --white: #FFFFFF;
  --brown: #3E2A1B;
  --brown-light: #6B4A34;
  --orange: #C85A2E;
  --orange-dark: #A8481F;
  --orange-light: #F3E1C6;
  --olive: #6E7A3D;
  --olive-dark: #566130;
  --text: #3E2A1B;
  --muted: #8A7864;
  --danger: #B5482B;
  --success: #4C7A3D;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(62, 42, 27, 0.08);
  --shadow-md: 0 8px 30px rgba(62, 42, 27, 0.12);
  --shadow-lg: 0 20px 50px rgba(62, 42, 27, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

.accent-font {
  font-family: 'Caveat', cursive;
}

h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--brown); font-weight: 700; }

.section { padding: 90px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-tag {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  color: var(--orange);
  margin-bottom: -6px;
  font-weight: 700;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

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

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

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1eb958; }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------------- Header ---------------- */

.topbar {
  background: var(--brown);
  color: var(--cream);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--cream); }
.topbar-item { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  background: rgba(251, 243, 231, 0.96);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 78px; width: auto; }

.main-nav ul {
  display: flex;
  gap: 30px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brown);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

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

.cart-btn {
  position: relative;
  background: var(--orange);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.cart-btn:hover { background: var(--orange-dark); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--olive);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--brown);
  cursor: pointer;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive-dark);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--orange); }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--brown-light);
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--orange); }
.hero-stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------------- Como funciona ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------------- Cardápio ---------------- */

.menu-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.menu-tab {
  background: var(--white);
  border: 2px solid transparent;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--brown-light);
  box-shadow: var(--shadow-sm);
  transition: all .15s ease;
}
.menu-tab:hover { border-color: var(--orange); color: var(--orange); }
.menu-tab.active {
  background: var(--orange);
  color: #fff;
}

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

.menu-category-title {
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.menu-category-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--cream-dark);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-price-tag {
  position: absolute;
  bottom: 12px; right: 12px;
  background: var(--brown);
  color: #fff;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.product-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.product-body p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 18px;
  flex: 1;
}
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--cream-dark);
  border-radius: 50px;
  overflow: hidden;
}
.qty-control button {
  background: none;
  border: none;
  width: 32px; height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--orange-dark);
  font-weight: 700;
}
.qty-control span {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.add-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease;
}
.add-btn:hover { background: var(--orange-dark); }

.empty-menu {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ---------------- Sobre ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-content p { color: var(--brown-light); margin-bottom: 16px; }
.about-badges { display: flex; gap: 24px; margin-top: 30px; flex-wrap: wrap; }
.about-badge { display: flex; align-items: center; gap: 12px; }
.about-badge .icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.about-badge strong { display: block; font-size: 0.95rem; }
.about-badge span { font-size: 0.8rem; color: var(--muted); }

/* ---------------- Depoimentos ---------------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--orange); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { color: var(--brown-light); font-style: italic; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.9rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* ---------------- CTA ---------------- */

.cta-band {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.9); margin: 0; }
.cta-band .btn-outline { border-color: #fff; color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--orange-dark); }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 68px; margin-bottom: 16px; }
.footer-brand p { color: #D8C7B4; font-size: 0.9rem; }
.footer-col h4 { color: var(--cream); font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #D8C7B4; font-size: 0.9rem; transition: color .15s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #C9B8A5;
}
.footer-bottom a { color: #E8B95E; }

/* ---------------- Floating WhatsApp ---------------- */

.float-whatsapp {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 600;
  background: #25D366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  font-size: 1.6rem;
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), var(--shadow-lg); }
}

/* ---------------- Cart drawer ---------------- */

.overlay {
  position: fixed; inset: 0;
  background: rgba(62,42,27,0.5);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.overlay.active { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: var(--cream);
  z-index: 800;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.cart-drawer.active { transform: translateX(0); }

.cart-header {
  padding: 22px 24px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.cart-header h3 { margin: 0; font-size: 1.2rem; }
.cart-close {
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--brown);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-item {
  display: flex;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.cart-item img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { margin: 0 0 4px; font-size: 0.95rem; }
.cart-item-info .price { color: var(--orange-dark); font-weight: 700; font-size: 0.9rem; }
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.cart-remove {
  background: none; border: none; color: var(--danger); cursor: pointer; font-size: 0.8rem;
  text-decoration: underline;
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
}
.cart-empty .icon { font-size: 3rem; margin-bottom: 14px; }

.cart-footer {
  padding: 20px 24px 26px;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--brown-light);
}
.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown);
  margin: 12px 0 18px;
}

/* ---------------- Checkout modal ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.active { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--cream);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--brown);
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--brown);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color .15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-option {
  border: 2px solid var(--cream-dark);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.86rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--brown-light);
}
.radio-option input { display: none; }
.radio-option.checked { border-color: var(--orange); background: var(--orange-light); color: var(--orange-dark); }

/* ---------------- Alerts / flash ---------------- */

.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 500;
}
.alert-success { background: #E5F1E1; color: var(--success); }
.alert-error { background: #F8E1DA; color: var(--danger); }

/* ---------------- Confirmação de pedido ---------------- */

.confirm-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.confirm-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: #E5F1E1;
  color: var(--success);
  font-size: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.confirm-order-number {
  display: inline-block;
  background: var(--cream);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 12px 0 24px;
}
.confirm-summary {
  text-align: left;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0;
}
.confirm-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--cream-dark);
  font-size: 0.92rem;
}
.confirm-summary-item:last-child { border-bottom: none; }
.confirm-actions { display: flex; gap: 14px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--cream); box-shadow: var(--shadow-md); padding: 16px 24px; transform: translateY(-140%); transition: transform .25s ease; z-index: 400; }
  .main-nav.active { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.1rem; }
  .steps { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; text-align: center; }
}
