/* =========================================================
   Sacolão ABC Campeão — estilos
   Cores retiradas da logo e das fachadas oficiais.
   ========================================================= */
:root {
  /* marca */
  --green-900: #0d3f1d;
  --green-800: #124f25;
  --green-700: #14652e;   /* verde do letreiro */
  --green-500: #2e8b3e;
  --lime: #7cbf3a;        /* "A" da fachada */
  --yellow: #ffc20e;      /* "B" / fundo da logo */
  --yellow-soft: #fff1c2;
  --orange: #f28c00;      /* laranja da logo */
  --orange-700: #c25e00;
  --red: #d9261c;         /* "C" da fachada */
  --whatsapp: #1e9e4a;

  /* neutros */
  --bg: #fffbf3;
  --surface: #ffffff;
  --line: #ebe4d3;
  --ink: #17241a;
  --muted: #4c574e;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(23 36 26 / .06), 0 8px 24px rgb(23 36 26 / .07);
  --header-h: 72px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - var(--gutter) * 2); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.ico--lg { width: 1.6em; height: 1.6em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: .875rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--orange); }
.eyebrow--light { color: var(--yellow); }
.eyebrow--light::before { background: var(--yellow); }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.2rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: .9rem 1.5rem; font-size: 1.0625rem; }

.btn--primary { background: var(--green-700); color: #fff; }
.btn--primary:hover { background: var(--green-800); }
.btn--orange { background: var(--orange); color: #1f1300; }
.btn--orange:hover { background: #ffa21f; }
.btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn--outline:hover { background: var(--green-700); color: #fff; }
.btn--text { background: none; color: var(--green-700); padding-inline: .5rem; text-decoration: underline; text-underline-offset: 3px; }
.btn--text:hover { color: var(--green-900); }
.btn--whatsapp { background: var(--yellow); color: #1b1400; }
.btn--whatsapp:hover { background: #ffd24a; }
.btn--dark { background: var(--green-900); color: #fff; }
.btn--dark:hover { background: #000; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 251 243 / .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgb(23 36 26 / .06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.05; color: var(--green-800); }
.brand-name strong { display: block; font-weight: 800; font-size: 1.2rem; color: var(--green-700); }

/* sem JavaScript: menu sempre visível, em linha */
html:not(.js) .header-inner { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: .5rem; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .main-nav { position: static; box-shadow: none; border: 0; padding: 0; background: none; width: 100%; }
html:not(.js) .main-nav ul { display: flex; flex-wrap: wrap; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: 0 1rem; border-radius: 999px;
  border: 2px solid var(--green-700); background: var(--surface); color: var(--green-700);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav {
  position: absolute; inset: var(--header-h) 0 auto 0;
  background: var(--surface); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgb(23 36 26 / .12);
  padding: .5rem var(--gutter) 1.25rem;
}
.main-nav[hidden] { display: none; }
.main-nav ul { display: grid; gap: .25rem; }
.main-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 .75rem;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 1.125rem; text-decoration: none; color: var(--ink);
}
.main-nav a:hover { background: var(--yellow-soft); }
.main-nav .nav-cta { background: var(--green-700); color: #fff; justify-content: center; margin-top: .5rem; }
.main-nav .nav-cta:hover { background: var(--green-800); }

@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .main-nav, .main-nav[hidden] { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .main-nav ul { display: flex; align-items: center; gap: .25rem; }
  .main-nav a { min-height: 44px; font-size: 1rem; padding: 0 .9rem; border-radius: 999px; }
  .main-nav .nav-cta { margin: 0 0 0 .5rem; padding: 0 1.2rem; }
}

/* ---------- Abertura ---------- */
.hero { padding: 1.75rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 8.5vw, 4.4rem); font-weight: 800; color: var(--green-900); }
.hero h1 .hl {
  color: var(--green-700);
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero-lead { font-size: 1.15rem; color: var(--muted); margin-top: 1.1rem; max-width: 46ch; }
.hero-actions { display: grid; gap: .75rem; margin-top: 1.75rem; }
.hero-paths { display: grid; gap: .35rem; margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }
.hero-paths span { display: flex; gap: .5rem; align-items: baseline; }
.hero-paths span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; transform: translateY(-1px); }
.hero-paths span + span::before { background: var(--orange); }
.hero-paths strong { color: var(--ink); }

.hero-media { margin: 0; position: relative; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: rgb(13 63 29 / .88); color: #fff; font-size: .8125rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 999px;
}

@media (min-width: 560px) {
  .hero-actions { grid-template-columns: repeat(2, max-content); }
}
@media (min-width: 960px) {
  .hero { padding: 3.5rem 0 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
  .hero-media img { aspect-ratio: 4 / 3; }
}

/* ---------- Seções ---------- */
.section { padding: 4rem 0; }
@media (min-width: 960px) { .section { padding: 6rem 0; } }
.section h2 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; color: var(--green-900); }
.section h2 + .lead, .section h2 + .section-sub { margin-top: 1rem; }

/* ---------- Sobre ---------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about .lead { margin-top: 1rem; }
.features { display: grid; gap: 1.25rem; margin-top: 2rem; }
.features li { display: flex; gap: 1rem; align-items: flex-start; }
.features h3 { font-size: 1.2rem; font-weight: 700; color: var(--green-900); letter-spacing: -0.01em; }
.features p { color: var(--muted); margin-top: .2rem; }
.feature-dot {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font: 800 1.25rem/1 var(--font-display); color: #fff;
}
.dot-green { background: var(--lime); color: #12320f; }
.dot-yellow { background: var(--yellow); color: #3a2b00; }
.dot-red { background: var(--red); }
.dot-orange { background: var(--green-700); }

.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.about-img--b { margin-top: 2.5rem; }

@media (min-width: 720px) { .features { gap: 1.5rem; } }
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
  .about-media { gap: 16px; }
}

/* ---------- Lojas ---------- */
.section-head { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.section-sub { color: var(--muted); font-size: 1.0625rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; border: 2px solid var(--line); background: var(--surface);
  font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer;
}
.chip span { font-size: .8rem; background: var(--bg); border-radius: 999px; padding: .1rem .5rem; color: var(--muted); }
.chip:hover { border-color: var(--green-500); }
.chip[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip[aria-pressed="true"] span { background: rgb(255 255 255 / .2); color: #fff; }

@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
}

.store-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.store-grid > .store { flex: 1 1 100%; }
@media (min-width: 700px) { .store-grid > .store { flex: 0 1 calc((100% - 1.25rem) / 2); } }
@media (min-width: 1120px) { .store-grid > .store { flex-basis: calc((100% - 2.5rem) / 3); } }

.store {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.store[hidden] { display: none; }
.store-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center 30%; background: #e9e4d6; }
.store-img--top { object-position: center 8%; }
.store-body { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem 1.25rem 1.1rem; flex: 1; }
.city-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px;
}
.city-tag--bh { background: #e6f2dc; color: #24561a; }
.city-tag--neves { background: var(--yellow-soft); color: #6b4300; }
.store-name { font-size: 1.6rem; font-weight: 800; color: var(--green-900); }
.store-name small { display: block; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-bottom: .2rem; }
.store address { color: var(--muted); line-height: 1.5; }
.store-actions { display: grid; gap: .5rem; margin-top: auto; padding-top: .5rem; }
.store-actions .btn { width: 100%; }
.store-actions .btn--text { min-height: 44px; }

.store-map { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #eef0ea; }
.store-map iframe { display: block; width: 100%; height: 260px; border: 0; }
.store-map .map-external { display: block; padding: .6rem .8rem; font-size: .9rem; font-weight: 600; color: var(--green-700); background: var(--surface); }

/* ---------- Delivery ---------- */
.delivery { background: var(--green-700); color: #fff; position: relative; overflow: hidden; }
.delivery::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 194 14 / .18), transparent 65%);
  pointer-events: none;
}
.delivery-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.delivery h2 { color: #fff; }
.delivery-kicker { display: block; color: var(--yellow); }
.delivery .lead { color: #e3f1e5; margin-top: 1rem; }
.steps { display: grid; gap: .9rem; margin: 2rem 0; counter-reset: step; }
.steps li { display: flex; gap: 1rem; align-items: center; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.step-n {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow); color: var(--green-900); font: 800 1.15rem var(--font-display);
}
.steps p { font-weight: 600; }
.delivery .btn--whatsapp { width: 100%; }
.delivery-note { margin-top: 1rem; font-size: .9375rem; color: #d3e8d6; max-width: 56ch; }
.delivery-note strong { color: #fff; }
.delivery-card {
  justify-self: center; width: 100%; max-width: 440px;
  background: var(--surface); color: var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgb(0 0 0 / .28);
}
.delivery-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 40%; }
.delivery-card__body { padding: 1.5rem; }
.delivery-card__label { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--whatsapp); }
.delivery-card__phone { display: inline-block; margin-top: .35rem; font: 800 clamp(1.75rem, 7vw, 2.2rem)/1.1 var(--font-display); color: var(--green-900); text-decoration: none; white-space: nowrap; }
.delivery-card__phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.delivery-facts { margin: 1.25rem 0 0; display: grid; gap: .9rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.delivery-facts dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.delivery-facts dd { margin: .15rem 0 0; font-weight: 600; }
.delivery-facts a { color: var(--green-700); }

@media (min-width: 560px) { .delivery .btn--whatsapp { width: auto; } }
@media (min-width: 960px) {
  .delivery-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}

/* ---------- Ofertas ---------- */
.offers { padding-bottom: 2rem; }
.offers-card {
  display: grid; gap: 1rem; align-items: center; justify-items: center; text-align: center;
  background: var(--yellow); border-radius: calc(var(--radius) + 8px);
  padding: 2rem 1.25rem 2.25rem; position: relative; overflow: hidden;
}
.offers-card::before {
  content: ""; position: absolute; inset: -30% auto auto -15%; width: 380px; height: 380px; border-radius: 50%;
  background: var(--orange); opacity: .25; pointer-events: none;
}
.offers-mascot { position: relative; width: 170px; height: auto; filter: drop-shadow(0 12px 18px rgb(80 40 0 / .25)); }
.offers-copy { position: relative; display: grid; justify-items: center; gap: 1rem; }
.offers .eyebrow { color: #5a3600; margin-bottom: 0; }
.offers .eyebrow::before { background: var(--green-700); }
.offers h2 { color: var(--green-900); }
.offers .lead { color: #3d2c00; margin: 0; }
.offers .btn { margin-top: .5rem; }

@media (min-width: 760px) {
  .offers-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 2.5rem 3.5rem; gap: 2.5rem; }
  .offers-copy { justify-items: start; }
  .offers-mascot { width: 220px; }
}

/* ---------- Instagram ---------- */
.insta { padding: 2rem 0 4rem; }
.insta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1.25rem 1.5rem;
}
.insta-text { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.1rem; color: var(--green-900); }
.insta-text .ico { color: var(--orange-700); }
.handle { font-weight: 500; opacity: .8; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--green-900); color: #d6e6d8; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { width: 88px; height: 88px; }
.footer-name { font: 800 1.35rem var(--font-display); color: #fff; margin-top: .9rem; }
.footer-tag { margin-top: .3rem; font-size: .95rem; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: .75rem; }
.footer-nav ul, .footer-links ul { display: grid; gap: .1rem; }
.site-footer a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem;
  border-top: 1px solid rgb(255 255 255 / .14); margin-top: 2.5rem; padding-top: 1rem; font-size: .9rem;
}
.credit a { display: inline; min-height: 0; padding: .7rem 0; font-weight: 700; color: var(--yellow); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }

/* ---------- Botão flutuante ---------- */
.float-delivery {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 52px; padding: 0 1.15rem 0 1rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px rgb(13 63 29 / .3);
  transition: opacity .2s, transform .2s;
}
.float-delivery:hover { background: #17863d; }
.float-delivery .ico { width: 1.5em; height: 1.5em; }
.float-delivery.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; }

/* reserva espaço no fim da página para o botão não cobrir o rodapé */
.site-footer { padding-bottom: calc(1.5rem + 72px); }
@media (min-width: 960px) { .site-footer { padding-bottom: 1.5rem; } }

/* ajustes finos */
.delivery-note strong { white-space: nowrap; }
@media (max-width: 559px) {
  .insta-inner .btn { width: 100%; }
  .handle { display: none; }
}
