/* ==========================================================================
   static-v2 — design-elevation layer (loads after main.css)
   Concept: "industrial-warm atacarejo" — same content, confident craft.
   ========================================================================== */

/* ---- design tokens ---------------------------------------------------- */
:root {
  --ink: #1f1200;              /* espresso (brand black) */
  --cream: #fff8f0;            /* brand cream */
  --orange: #f29223;           /* brand orange (accents only) */
  --orange-deep: #b4520a;      /* AA-safe orange for text/lines */
  --green: #04724d;
  --line: #ecdfcc;             /* hairline on cream */
  --shadow-sm: 0 2px 10px rgba(31, 18, 0, 0.06);
  --shadow-md: 0 18px 40px rgba(31, 18, 0, 0.1);
  /* brand radius scale (matches the live site's squared language):
     6px = buttons/chips · 8px = small panels · 12px = cards · 50% = icons/arrows */
  --radius: 12px;
  --radius-sm: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- selection & focus -------------------------------------------------- */
::selection { background: var(--orange); color: var(--ink); }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- type scale (fluid) ------------------------------------------------ */
html { font-size: clamp(16px, 0.9vw + 13px, 19px); }
.section .section-header h2,
.page-header h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-weight: 800;
}
.section .section-header h2 { margin-bottom: 0.35em; }
h1 { letter-spacing: -0.02em; }

/* ---- section rhythm ---------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 4rem + 4vw, 6.75rem); }
.section-banner.section { padding-block: 0; }

/* ---- buttons ------------------------------------------------------------ */
.btn.btn-primary,
.btn.btn-secondary {
  border-radius: 6px; /* brand buttons are squared, not pills */
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}
.btn.btn-primary:hover,
.btn.btn-secondary:hover { opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn.btn-primary::after { display: none; } /* remove old sweep overlay */

/* ---- hero (banner) ---------------------------------------------------------- */
.section-banner .swiper-slide::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20, 10, 0, 0.72) 0%, rgba(20, 10, 0, 0.32) 45%, rgba(20, 10, 0, 0) 75%);
  pointer-events: none;
}
/* (bottom fade overlay removed per client feedback — the banner now meets the marquee with a clean edge) */
.section-banner .carousel-caption .actual-content { position: relative; z-index: 2; }
.section-banner .carousel-caption .actual-content h2 {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 0.98;
  max-width: 15ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.section-banner .carousel-caption .actual-content p {
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.25rem);
  font-weight: 500;
  max-width: 34ch;
}
/* side render: natural height, absolutely positioned, anchored flush to the banner base */
.section.section-banner .swiper-slide .extra-image {
  position: absolute;
  z-index: 1;
  right: clamp(8px, 2vw, 36px);
  bottom: 0;
  width: min(680px, 46vw);
  height: auto;
  pointer-events: none;
}
.section.section-banner .swiper-slide .extra-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* taller cinematic slide (desktop overrides the 700px default) */
.section.section-banner .swiper-slide { height: clamp(760px, 92vh, 960px); }
/* slow cinematic zoom on the active slide */
@media (prefers-reduced-motion: no-preference) {
  .section-banner .swiper-slide .bg { transform-origin: 50% 45%; }
  .section-banner .swiper-slide-active .bg { animation: hero-zoom 9s var(--ease-out) 0.3s both; }
  @keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }
}
/* arrows: quiet circles, revealed on hover */
.section-banner .swiper-button-prev,
.section-banner .swiper-button-next {
  width: 48px; height: 48px;
  border-radius: 50%;
  margin-top: -24px;
  background: rgba(31, 18, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.25s ease;
}
.section-banner:hover .swiper-button-prev,
.section-banner:hover .swiper-button-next,
.section-banner:focus-within .swiper-button-prev,
.section-banner:focus-within .swiper-button-next { opacity: 1; }
.section-banner .swiper-button-prev:hover,
.section-banner .swiper-button-next:hover { background: var(--orange-deep); }
.section-banner .swiper-button-prev::after,
.section-banner .swiper-button-next::after { font-size: 17px; font-weight: 800; }
/* pagination: brand pills (full reset — kills the orange-ring bullets from main.css) */
.section-banner .swiper-pagination {
  display: flex; justify-content: center; gap: 9px;
}
.section-banner .swiper-pagination-bullet {
  width: 14px; height: 14px;       /* circle — same height as the active pill */
  margin: 0 !important;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.55);
  opacity: 1;
  transition: width 0.3s var(--ease-out), border-radius 0.3s var(--ease-out), background 0.3s ease;
}
.section-banner .swiper-pagination-bullet-active {
  width: 35px; height: 14px;       /* pill, same height as the circles */
  border: 0;
  border-radius: 999px;
  background: var(--orange);
}
.section.section-banner .swiper-pagination-holder {
  position: absolute; left: 0; right: 0; bottom: 18px;
  height: 0;           /* lifted out of flow: kills the cream seam below the photo */
  z-index: 6;
}
.section-banner .swiper-pagination-holder > svg { display: none; } /* decorative wave dropped for clarity */
@media (max-width: 992px) {
  .section.section-banner .swiper-slide { height: 660px; }
  .section.section-banner .swiper-slide .extra-image {
    width: min(240px, 50vw);
    height: auto;
    right: 10px; bottom: 0;
    opacity: 0.9;
  }
  .section-banner .swiper-slide::before { background: linear-gradient(180deg, rgba(20, 10, 0, 0.55) 0%, rgba(20, 10, 0, 0.25) 60%, rgba(20, 10, 0, 0) 100%); }
  .section-banner .swiper-button-prev,
  .section-banner .swiper-button-next { width: 40px; height: 40px; margin-top: -20px; opacity: 1; }
}

/* ---- product cards -------------------------------------------------------- */
.card-product {
  background: #fff;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-product .imagem {
  height: auto; min-height: 0;
  aspect-ratio: 1 / 1;
  background: #f6efe3;
  border-radius: 0;
}
.card-product .imagem .more-info { top: auto; bottom: 10px; right: 10px; left: auto; }
.card-product .imagem .more-info .btn-more-info {
  background: rgba(31, 18, 0, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 12px;
  transition: background 0.2s, transform 0.2s;
}
.card-product .imagem .more-info .btn-more-info:hover,
.card-product .imagem .more-info .btn-more-info:focus { background: var(--orange-deep); }
.card-product .base { margin-top: 0; min-height: 0; flex: 1; display: flex; flex-direction: row; padding: 0.9rem 1rem 1rem; gap: 0.75rem; }
.card-product .base .info { background: transparent; border-radius: 0; width: auto; flex: 1 1 auto; padding: 0; }
.card-product .base .info h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.card-product .base .info h4 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.card-product .base .info h4 span { color: var(--orange-deep); font-size: 1rem; font-weight: 700; margin-right: 2px; }
.card-product .base .cart,
.single-product .cart {
  background: #faf4ea;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 58px;
  min-height: 112px; /* floor so the +/-/count stepper never clips on short titles */
  width: 58px;
}
.card-product .cart .not-added svg,
.single-product .cart .not-added svg { width: 22px; height: 28px; }
.card-product .cart .added button,
.single-product .cart .added button { background: transparent; color: var(--ink); text-decoration: none; }

/* ---- single product ------------------------------------------------------- */
.single-produto .holder { gap: clamp(1.5rem, 4vw, 3.5rem); }
.single-produto .holder > img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.single-produto .product-description { color: rgba(31, 18, 0, 0.82); font-size: 1.05rem; line-height: 1.65; }
.single-produto .product-price { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.single-produto .product-price strong { color: var(--orange-deep); font-size: 1.15rem; font-weight: 700; }

/* ---- depoimentos ----------------------------------------------------------- */
.section-depoimentos .swiper-slide { height: auto; }
.depoimento-item {
  height: 100%;
  background-color: var(--ink);
  background-image: url(../images/pattern.png);
  background-size: 200px 200px;
  animation: none;                       /* stop infinite background motion */
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.depoimento-item .depoimento-content { color: rgba(255, 248, 240, 0.88); flex: 1; }
.depoimento-item .depoimento-image { border-radius: var(--radius-sm); width: 54px; height: 54px; border: 2px solid rgba(242, 146, 35, 0.65); }
.depoimento-item .depoimento-title { font-size: 1.05rem; letter-spacing: 0.04em; }
.depoimento-item .depoimento-age { color: rgba(255, 248, 240, 0.6); font-weight: 500; }
.background-pattern { animation: none; } /* footer/map pattern: static by default */

/* ---- diferenciais ---------------------------------------------------------- */
.diferencial-item { border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.diferencial-item .diferencial-imagem { padding: 10px; background: #fdf3e4; border-radius: var(--radius-sm); }

/* ---- "Onde estamos?" (map) — modern location card -------------------------- */
.section-map {
  position: relative;
  color: var(--ink);
  background:
    radial-gradient(720px 420px at 94% -8%, rgba(242, 146, 35, 0.12), transparent 70%),
    linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
}
.section-map .row { align-items: center; row-gap: 2.5rem; }
.map-col .mapa-embed {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e9e2d4; /* shows while the iframe loads */
  box-shadow: 0 34px 80px -30px rgba(31, 18, 0, 0.38);
}
.section-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; display: block; }
/* floating store card over the map */
.store-card {
  position: absolute; left: 18px; bottom: 18px;
  z-index: 2;
  width: min(340px, calc(100% - 36px));
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(31, 18, 0, 0.08);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 24px 50px -22px rgba(31, 18, 0, 0.45);
}
.store-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.store-card__top strong { display: block; font-size: 1rem; line-height: 1.2; letter-spacing: 0.01em; }
.store-card__top span { display: block; margin-top: 2px; font-size: 0.82rem; color: rgba(31, 18, 0, 0.6); }
.store-card__rows { display: flex; flex-direction: column; gap: 4px; }
.store-card__row {
  display: block;
  margin: 0 -8px; padding: 7px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.store-card__row:hover { background: #fdf3e4; color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
  .store-card { position: relative; left: 0; bottom: 0; margin: -58px 12px 0; width: auto; z-index: 2; }
}
/* right column: headline + hours + actions */
.map-info { display: flex; flex-direction: column; }
.map-info h2 {
  text-transform: uppercase;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.hours-panel { display: grid; gap: 12px; margin-bottom: 1.75rem; }
.hours-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.hours-block__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem; font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 10px;
}
.hours-block p {
  display: flex; justify-content: space-between; gap: 16px;
  margin: 0; max-width: 320px;
  font-size: 0.95rem;
  color: rgba(31, 18, 0, 0.68);
}
.hours-block p + p { margin-top: 6px; }
.hours-block strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-actions .btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
}
.map-actions .btn svg { width: 17px; height: 17px; flex: none; }
.map-actions .btn-whatsapp {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.map-actions .btn-whatsapp svg { color: #25d366; }
.map-actions .btn-whatsapp:hover { border-color: #25d366; color: #128c4b; background: #f4fbf7; transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (max-width: 991px) {
  .map-col .mapa-embed { aspect-ratio: 16 / 10; }
  .map-info { padding-left: 0; padding-top: 1rem; }
}

/* ---- footer ------------------------------------------------------------------ */

/* ---- footer ------------------------------------------------------------------ */
footer { border-top: 4px solid var(--orange); }
footer h5 { color: #ffd28f; font-size: 0.95rem; letter-spacing: 0.06em; }
footer .links.menu li a:hover { color: #ffd28f; }

/* ---- FAB ----------------------------------------------------------------------- */
.whatsapp-btn, .cart-btn { border: 1px solid rgba(31, 18, 0, 0.08); box-shadow: var(--shadow-md); }

/* ---- marquee (signature strip) ------------------------------------------------ */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 1px solid rgba(242, 146, 35, 0.35);
  position: relative;
  z-index: 5;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.marquee i { font-style: normal; color: var(--orange); font-size: 1rem; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- scroll reveal ------------------------------------------------------------- */
/* Uses the CSS "translate" property so it never fights hover transforms (transform)
   or swiper states (scale/opacity). Without JS or under reduced motion nothing
   is hidden (no .will-reveal class is ever added). */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    opacity: 0;
    translate: 0 22px;
    will-change: opacity, translate;
  }
  .will-reveal.revealed {
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.7s ease, translate 0.7s var(--ease-out);
  }
}

/* ---- reduced motion: kill every leftover decoration ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}
