/* Loja MABE Guilhermina — Landing Page Moderna */
:root {
  --primary: #009cff;
  --primary-dark: #007acc;
  --accent: #ffcc00;
  --accent-light: #b7e2fe;
  --fortaco: #fef431;
  --text: #1a1a1a;
  --text-muted: #7a7a7a;
  --white: #ffffff;
  --bg: #fafafa;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 100, 200, 0.25);
  transition: box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 80, 160, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo img {
  height: 64px;
  width: auto;
}

.nav { display: flex; gap: 8px; list-style: none; }

.nav a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--fortaco);
}

.header__cta {
  display: none;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--text) !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}

.header__cta:hover {
  background: var(--fortaco);
  color: var(--text) !important;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.menu-toggle svg { width: 28px; height: 28px; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 100, 180, 0.45) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 48px) 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--fortaco);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 36px;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}

.btn--whatsapp:hover {
  background: #1ebe57;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn img { width: 22px; height: 22px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section--alt { background: var(--bg); }

.section--blue { background: var(--accent-light); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Sobre ── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sobre-text p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
}

.sobre-text p:last-child { margin-bottom: 0; }

.sobre-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sobre-image img { width: 100%; }

.sobre-cards {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 64px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.sobre-cards__img {
  border-radius: var(--radius);
  overflow: hidden;
}

.sobre-cards__text p {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.75;
}

/* ── Loja Gallery ── */
.gallery-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: #000;
}

.gallery-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.gallery-carousel__slide {
  min-width: 100%;
  height: 100%;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  transition: background var(--transition);
  z-index: 2;
}

.gallery-carousel__btn:hover { background: var(--white); }
.gallery-carousel__btn--prev { left: 16px; }
.gallery-carousel__btn--next { right: 16px; }

.gallery-carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.gallery-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.gallery-carousel__dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.gallery-thumbs img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.03);
}

/* ── Produtos ── */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.produto-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.produto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.produto-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

.produto-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--transition);
}

.produto-card:hover .produto-card__img img { transform: scale(1.05); }

.produto-card__name {
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  text-transform: capitalize;
}

.marcas-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 56px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.marcas-strip__text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.7;
}

.marcas-strip__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.marcas-strip__logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter var(--transition);
}

.marcas-strip__logos img:hover { filter: grayscale(0%); }

/* ── Benefícios ── */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.beneficio-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.beneficio-card:hover { transform: translateY(-4px); }

.beneficio-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beneficio-card__icon img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.beneficio-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.beneficio-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── Contato ── */
.contato-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.contato-card {
  text-align: center;
  padding: 32px 20px;
}

.contato-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.contato-card__icon img { width: 48px; height: 48px; }

.contato-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.contato-card__info {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contato-card a { color: var(--primary); font-weight: 600; }

.contato-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.contato-whatsapp-link img {
  width: 32px;
  height: 32px;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ── Footer ── */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer__logo {
  margin: 0 auto 16px;
  height: 80px;
  width: auto;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.footer a {
  color: var(--fortaco);
  font-weight: 600;
}

.footer a:hover { color: var(--accent); }

/* ── WhatsApp Float ── */
.wa-float {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom, 20px));
  right: max(20px, env(safe-area-inset-right, 20px));
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.wa-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: wa-pulse 2s ease-out infinite;
  z-index: -1;
}

.wa-float__icon {
  width: 32px;
  height: 32px;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.wa-float:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

.wa-float.is-pressed .wa-float__ring {
  animation: wa-ripple 0.45s ease-out;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes wa-ripple {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox__close:hover { opacity: 1; }

/* ── Responsive ── */
@media (min-width: 769px) {
  .header__cta { display: inline-flex; }
}

@media (max-width: 992px) {
  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-cards { grid-template-columns: 1fr; text-align: center; }
  .sobre-cards__img { max-width: 280px; margin: 0 auto; }
  .beneficios-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contato-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 48px; }
  .marcas-strip { flex-direction: column; text-align: center; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .header__logo img { height: 48px; }

  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 16px;
    color: var(--text);
  }

  .nav a:hover {
    background: var(--accent-light);
    color: var(--primary);
  }

  .hero__content {
    padding: calc(var(--header-h) + 24px) 16px 48px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section { padding: 48px 0; }

  .section__header { margin-bottom: 36px; }

  .sobre-cards {
    padding: 24px 16px;
    margin-top: 40px;
  }

  .produtos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .produto-card__name { font-size: 12px; padding: 8px; }

  .gallery-carousel { aspect-ratio: 4 / 3; }

  .gallery-carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 8px; }

  .marcas-strip { padding: 24px 16px; gap: 24px; }

  .marcas-strip__logos {
    justify-content: center;
    gap: 16px;
  }

  .beneficio-card { padding: 32px 20px; }

  .map-container iframe { height: 280px; }

  .wa-float {
    width: 56px;
    height: 56px;
    bottom: max(16px, env(safe-area-inset-bottom, 16px));
    right: max(16px, env(safe-area-inset-right, 16px));
  }

  .wa-float__icon { width: 28px; height: 28px; }
}

@media (max-width: 380px) {
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }

  .hero__title { font-size: 1.85rem; }
}

/* Legal Modal */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.legal-modal.active {
  opacity: 1;
  visibility: visible;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.legal-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 85vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.legal-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}

.legal-modal__close:hover { color: #0f172a; }

.legal-modal__content {
  overflow-y: auto;
  padding: 32px 28px 28px;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-modal__content h2 {
  color: #0f172a;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}

.legal-modal__content h3 {
  color: #1e293b;
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-modal__content p { margin-bottom: 0.75rem; }

.legal-modal__content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.legal-modal__content a {
  color: #1d4ed8;
  text-decoration: underline;
}

.footer .legal-open {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--fortaco);
  font-weight: 600;
  text-decoration: underline;
}

.footer .legal-open:hover { color: var(--accent); }
