/* ==========================================================================
   Massas Luíza — estilos
   ========================================================================== */

:root {
  /* Cores extraídas da logo */
  --orange: #e8671e;
  --orange-dark: #c9531a;
  --red: #c24a12;
  --yellow: #ecc80f;
  --yellow-light: #f7df6a;
  --cream: #fff7ea;
  --brown: #2b1a10;
  --brown-soft: #4a3020;
  --green-whats: #25d366;
  --text: #3a2a20;
  --muted: #7a6656;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(120, 50, 10, 0.15);
  --font-title: "Baloo 2", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--brown);
}
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

/* Botões ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(194, 74, 18, 0.3);
}
.btn:hover { transform: translateY(-2px); background: #a63f0f; }
.btn--small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.btn--ghost { background: transparent; border-color: var(--white); color: var(--white); box-shadow: none; }
.btn--ghost:hover { background: var(--white); color: var(--red); }
.btn--yellow { background: var(--yellow); color: var(--brown); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.btn--yellow:hover { background: var(--yellow-light); }
.btn--whats { background: var(--green-whats); box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3); }
.btn--whats:hover { background: #1eb457; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(232, 103, 30, 0.12);
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--light { background: rgba(255, 255, 255, 0.2); color: var(--white); }

/* Cabeçalho ----------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.8rem 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.header.is-scrolled {
  background: rgba(255, 247, 234, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.4rem 0;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo img { height: 60px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)); transition: height 0.3s; }
.header.is-scrolled .header__logo img { height: 50px; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.header.is-scrolled .nav a:not(.btn) { color: var(--brown); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.header__toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--white); transition: 0.3s; }
.header.is-scrolled .header__toggle span { background: var(--brown); }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 140px 0 120px;
  background: radial-gradient(circle at 75% 40%, var(--yellow) 0%, var(--orange) 45%, var(--red) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__rays {
  position: absolute;
  inset: -50%;
  background: repeating-conic-gradient(from 0deg at 70% 50%, rgba(255, 255, 255, 0.07) 0deg 8deg, transparent 8deg 16deg);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: 1.1rem; max-width: 520px; opacity: 0.95; }
.hero .tag { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__image img {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  border-radius: 28px;
  border: 6px solid var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  50% { transform: rotate(3deg) translateY(-14px); }
}

.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }
.hero__wave path { fill: var(--cream); }

/* Números ------------------------------------------------------------------- */
.stats { margin-top: -30px; position: relative; z-index: 2; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.8rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-title);
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
}
.stat span { font-size: 0.9rem; color: var(--muted); }

/* Seções -------------------------------------------------------------------- */
.section { padding: 100px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p { color: var(--muted); }

/* Sobre */
.sobre__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.sobre__image img { border-radius: 28px; box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 420px; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.checks li { position: relative; padding-left: 2rem; font-weight: 500; }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 1.4rem; height: 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
}

/* Produtos */
.produtos { background: var(--white); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter {
  padding: 0.55rem 1.3rem;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: transparent;
  color: var(--orange-dark);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
  transition: 0.2s;
}
.filter:hover,
.filter.is-active { background: var(--orange); color: var(--white); }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.product {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product.is-hidden { display: none; }
.product__img { aspect-ratio: 4 / 3; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product:hover .product__img img { transform: scale(1.08); }
.product__body { padding: 1.4rem; }
.product__body h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.product__body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.product__cat { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); }

/* Private label */
.private {
  background: linear-gradient(135deg, var(--red), var(--orange));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.private::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  right: -150px; top: -150px;
  border-radius: 50%;
  background: rgba(255, 194, 14, 0.25);
}
.private__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.private h2 { color: var(--white); }
.private__image img { border-radius: 28px; border: 6px solid var(--white); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); max-width: 400px; margin-left: auto; transform: rotate(2deg); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--brown);
  font: 800 1.2rem var(--font-title);
}
.steps strong { display: block; font-family: var(--font-title); font-size: 1.15rem; }
.steps span { font-size: 0.9rem; opacity: 0.9; }

/* Onde estamos */
.states { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.state {
  padding: 1.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.state span {
  display: block;
  font: 800 2.4rem var(--font-title);
  color: var(--orange);
  line-height: 1.1;
}
.state:hover { transform: translateY(-6px); background: var(--orange); color: var(--white); }
.state:hover span { color: var(--yellow); }

/* Galeria */
.galeria { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.gallery__item {
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  background: var(--cream);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery__item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(20, 10, 5, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 85vh; width: auto; border-radius: 12px; }
.lightbox__close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
}

/* Contato */
.contato__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list__icon {
  flex: none;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.3rem;
}
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact-list a { font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--red); }

.form {
  padding: 2.2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.form__row { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { font-weight: 500; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form input,
.form select,
.form textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #f0e2d0;
  border-radius: 12px;
  background: var(--cream);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--orange); }
.form .is-invalid { border-color: var(--red); }
.form textarea { resize: vertical; }
.form__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.form__feedback { min-height: 1.4em; font-size: 0.9rem; font-weight: 500; margin: 0 0 0.8rem; }
.form__feedback.is-error { color: var(--red); }
.form__feedback.is-ok { color: #1c8a45; }

/* Rodapé -------------------------------------------------------------------- */
.footer { background: var(--brown); color: #e9d9c8; padding-top: 4rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.footer__brand img { height: 80px; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.9rem; opacity: 0.8; }
.footer__nav,
.footer__contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer__nav a:hover,
.footer__contact a:hover { color: var(--yellow); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 16px 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.9rem;
}
.footer__bottom p { margin: 0; opacity: 0.8; }

.credits {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid #2f6b3c;
  border-radius: 999px;
  background: #1f4a2a;
  color: #f1f1f1;
  font-size: 0.72rem;
}
.credits:hover { background: #275c34; }
.credits strong { color: var(--white); }
.credits__heart { color: #e5484d; }

/* WhatsApp flutuante -------------------------------------------------------- */
.whats-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 200;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-whats);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
  animation: pulse 2.5s infinite;
}
.whats-float:hover { transform: scale(1.1); }
.whats-float svg { width: 32px; height: 32px; fill: var(--white); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animação de entrada ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsivo ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero__inner,
  .sobre__inner,
  .private__inner,
  .contato__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { text-align: center; padding-top: 120px; }
  .hero p { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__image img,
  .private__image img,
  .sobre__image img { margin: 0 auto; max-width: 340px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .states { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .header__toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: 2rem;
    background: var(--cream);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn),
  .header.is-scrolled .nav a:not(.btn) { color: var(--brown); font-size: 1.15rem; }
  .header__toggle { position: relative; z-index: 2; }
  .header__toggle[aria-expanded="true"] span { background: var(--brown); }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .header__logo img { height: 46px; }
  .products { grid-template-columns: 1fr; }
  .states { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .checks,
  .steps,
  .form__grid { grid-template-columns: 1fr; }
  .form { padding: 1.5rem; }
  .form__actions .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand img { margin-inline: auto; }
}
