/* =========================================================================
   CroCantê Salgados — estilos
   ========================================================================= */

:root {
  --orange-light: #F7B733;
  --orange: #F2960C;
  --orange-dark: #D97706;
  --brown: #2B1810;
  --brown-soft: #4A2E1D;
  --cream: #FFF8EE;
  --white: #FFFFFF;
  --line: #F0E2CE;
  --success: #25D366;
  --success-dark: #1EBE5B;
  --shadow: 0 10px 30px rgba(43, 24, 16, 0.12);
  --radius: 16px;
  --font-head: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-head); margin: 0 0 .4em; line-height: 1.15; }

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(242, 150, 12, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(242, 150, 12, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--brown);
  border: 2px solid var(--brown);
}
.btn-ghost:hover { background: var(--brown); color: var(--white); }

.btn-whatsapp {
  width: 100%;
  background: var(--success);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--success-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

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

.main-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
}
.main-nav a { position: relative; padding: 4px 0; }
.main-nav a:hover { color: var(--orange-dark); }

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

.cart-btn {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brown);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--orange);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brown); margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 80% 20%, #FFE9C7 0%, var(--cream) 55%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 30px;
  padding: 60px 20px 40px;
}
.eyebrow {
  display: inline-block;
  background: rgba(242, 150, 12, 0.12);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  color: var(--brown);
}
.hero-text h1 span { color: var(--orange); }
.hero-text p {
  font-size: 1.05rem;
  color: var(--brown-soft);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { display: flex; justify-content: center; }
.hero-logo {
  width: min(420px, 85%);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(43, 24, 16, 0.18));
}

/* ---------- Info strip ---------- */
.info-strip { background: var(--brown); color: var(--white); padding: 16px 0; }
.info-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  font-weight: 600;
  font-size: .92rem;
}
.info-pill { display: flex; align-items: center; gap: 8px; white-space: nowrap; }

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

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--brown-soft); }

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.stepper .qty-val { min-width: 16px; text-align: center; font-weight: 700; }

.add-btn {
  border: none;
  background: var(--brown);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.add-btn:hover { background: var(--orange-dark); }

/* ---------- Combos (monte-seu-combo) ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tier-card {
  position: relative;
  background: linear-gradient(160deg, var(--white), #FFF3E0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.combo-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.cup-photo {
  margin: -26px -22px 14px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.cup-photo img { width: 100%; height: 100%; object-fit: cover; }

.tier-card h3 { font-size: 1.25rem; margin-bottom: .1em; }
.tier-qty { color: var(--brown-soft); font-size: .85rem; font-weight: 600; margin: 0; }
.tier-hint { color: var(--brown-soft); font-size: .85rem; margin: -6px 0 0; }
.combo-price { display: flex; align-items: baseline; gap: 10px; }
.combo-price .now { font-size: 1.5rem; font-weight: 800; color: var(--orange-dark); }
.combo-price .old { text-decoration: line-through; color: #B79E86; font-size: .95rem; }

.flavor-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--brown-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

.flavor-list { display: flex; flex-direction: column; gap: 4px; }
.flavor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.flavor-row:last-child { border-bottom: none; }
.flavor-name { font-size: .9rem; font-weight: 600; }
.stepper.small { padding: 2px 8px; gap: 8px; }
.stepper.small .qty-btn { width: 24px; height: 24px; }
.stepper .qty-btn:disabled { opacity: .35; cursor: not-allowed; }

.tier-remaining { font-size: .85rem; font-weight: 600; color: var(--brown-soft); display: flex; justify-content: space-between; align-items: center; }
.tier-remaining strong { color: var(--orange-dark); }
.tier-remaining.complete strong { color: var(--success-dark); }
.tier-reset {
  background: none;
  border: none;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.tier-add { width: 100%; text-align: center; }
.tier-add:disabled { background: #D8C7B5; cursor: not-allowed; }
.tier-add:disabled:hover { background: #D8C7B5; }

/* ---------- Events ---------- */
.events-inner {
  background: var(--brown);
  color: var(--white);
  border-radius: 24px;
  padding: 48px;
  display: grid;
  place-items: center;
  text-align: center;
}
.events-text { max-width: 640px; }
.events-text h2 { color: var(--white); }
.events-text p { color: #E7D6C4; margin-bottom: 20px; }
.events-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  text-align: left;
  color: #F3E7D8;
}
.events-list li { display: flex; align-items: center; gap: 12px; }
.events-list li .icon-svg { color: var(--orange-light); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #180D07; color: #EADFD2; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: #B7A491; font-size: .9rem; margin-bottom: 14px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange-light); }

.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col p, .footer-col a { display: block; color: #B7A491; font-size: .92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--orange-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: .82rem;
  color: #8A7767;
  text-align: center;
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 11, 6, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--cream);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -10px 0 30px rgba(0,0,0,.2);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.cart-close { background: none; border: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--brown-soft); }

.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { color: var(--brown-soft); text-align: center; margin-top: 40px; }

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line-info { flex: 1; }
.cart-line-name { font-weight: 700; font-size: .95rem; }
.cart-line-meta { font-size: .8rem; color: var(--brown-soft); }
.cart-line-actions { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}
.cart-line-remove {
  background: none;
  border: none;
  color: #C4482B;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
}
.cart-line-price { font-weight: 700; color: var(--orange-dark); white-space: nowrap; }

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 18px 22px 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}
.cart-field-label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 8px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .9rem; }
.radio-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font-body);
  resize: vertical;
}

/* ---------- Floating cart button (mobile) ---------- */
.fab-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--orange);
  color: var(--white);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(242,150,12,.4);
  cursor: pointer;
  z-index: 55;
}
.fab-cart span {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brown);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 120;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { order: -1; }
  .hero-logo { width: min(300px, 65%); }

  .footer-inner { grid-template-columns: 1fr; }
  .events-inner { padding: 36px 24px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .25s ease;
    z-index: 59;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .fab-cart { display: flex; }
  .cart-btn { display: none; }

  .info-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
  }
  .info-pill {
    white-space: normal;
    align-items: flex-start;
    font-size: .82rem;
    line-height: 1.25;
  }
}

@media (max-width: 480px) {
  .header-inner { height: 64px; }
  .brand-logo { height: 34px; }
  .events-list { text-align: left; }
}
