/* ============================================================
   FRIGO PEROLLA — style.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

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

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

ul { list-style: none; }

/* ---------- CSS Variables ---------- */
:root {
  --red: #890000;
  --red-dark: #770000;
  --white: #ffffff;
  --dark: #111111;
  --gray: #f5f5f5;
  --text-gray: #555;
  --header-h: 96px;
  --transition: 0.25s ease;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.header__logo img {
  height: 80px;
  width: auto;
}

/* Nav */
.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #222;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* CTA Button */
.btn-cta {
  background: var(--red);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.btn-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background var(--transition);
}

.hamburger:hover { background: var(--gray); }

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(255,255,255,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 24px;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav__list {
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.nav-mobile .nav__link {
  font-size: 1.1rem;
}

/* ============================================================
   HERO — INDEX
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/slide.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgb(36 3 3 / 90%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 40px 24px;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* ============================================================
   HERO — INNER PAGES (quem-somos, contato)
   ============================================================ */
.hero--inner {
  min-height: 360px;
  align-items: flex-end;
  padding-bottom: 60px;
}

.hero--inner .hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

/* ============================================================
   SECTION: SOLUÇÕES
   ============================================================ */
.solutions {
  padding: 88px 24px;
  background: var(--white);
}

.solutions__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  text-align: center;
  color: #111;
  margin-bottom: 56px;
  line-height: 1.3;
}

.section-title span { color: var(--red); }

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 40px 24px 36px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(204,0,0,.12);
  transform: translateY(-4px);
  border-color: rgba(204,0,0,.25);
}

.card__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.card__title {
  font-size: 0.90rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION: SOBRE (quem-somos)
   ============================================================ */
.about {
  padding: 88px 24px;
  background: var(--white);
}

.about__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about__text {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about__text:last-of-type { margin-bottom: 0; }

/* ============================================================
   SECTION: DIFERENCIAIS (quem-somos)
   ============================================================ */
.differentials {
  padding: 72px 24px 88px;
  background: var(--gray);
}

.differentials__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.differentials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.diff-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: box-shadow var(--transition), transform var(--transition);
}

.diff-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-4px);
}

.diff-card__icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.diff-card__icon svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

.diff-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.diff-card__text {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ============================================================
   SECTION: CONTATO (página contato.html)
   ============================================================ */
.contact-info-page {
  padding: 88px 24px;
  background: var(--white);
}

.contact-info-page__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.contact-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.contact-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(204,0,0,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--red);
}

.contact-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.contact-card__value {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

/* Card WhatsApp destacado */
.contact-card--wpp {
  border-color: rgba(37,211,102,.3);
  background: #f6fff9;
}

.contact-card--wpp:hover {
  box-shadow: 0 8px 32px rgba(37,211,102,.15);
}

.contact-wpp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  margin-top: 6px;
  transition: background var(--transition), transform var(--transition);
}

.contact-wpp-btn:hover {
  background: #1ebd5a;
  transform: translateY(-1px);
}

.contact-wpp-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  flex-shrink: 0;
}

.info-item__value a {
  color: #333;
  transition: color var(--transition);
}

.info-item__value a:hover { color: var(--red); }

.hours-list { margin-top: 4px; }
.hours-list li { font-size: 0.88rem; color: var(--text-gray); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--red);
  color: var(--white);
}

.footer__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Footer col brand */
.footer-brand__logo {
  height: 52px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-brand__cnpj {
  font-size: 0.78rem;
  opacity: 0.75;
}

/* Footer col whatsapp */
.footer-col__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 14px;
}

.footer-wpp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 12px 18px;
  transition: background var(--transition);
}

.footer-wpp:hover { background: rgba(255,255,255,.22); }

.footer-wpp svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
  flex-shrink: 0;
}

.footer-wpp__number {
  font-size: 1rem;
  font-weight: 700;
}

/* Footer social */
.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: rgba(255,255,255,.30);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* Footer sub */
.footer__sub {
  background: rgba(0,0,0,.25);
  text-align: center;
  padding: 16px 24px;
  font-size: 0.78rem;
  opacity: 0.8;
}

.footer__sub a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.footer__sub a:hover { opacity: 0.7; }

/* ============================================================
   MODAL — ONDE ENTREGAMOS
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}

.modal__close:hover { color: #222; background: var(--gray); }

.modal__icon {
  width: 64px;
  height: 64px;
  background: rgba(204,0,0,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal__icon svg {
  width: 32px;
  height: 32px;
  fill: var(--red);
}

.modal__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.modal__text {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 28px;
}

.modal__btn {
  background: var(--red);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.modal__btn:hover { background: var(--red-dark); }

/* ============================================================
   TOAST (form success)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #1a7a3c;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  animation: toastIn 0.3s ease;
}

.toast.show { display: flex; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.toast svg { width: 20px; height: 20px; fill: var(--white); flex-shrink: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Header: hide desktop nav, show hamburger */
  .nav--desktop { display: none; }
  .header__cta { display: none; }
  .hamburger { display: flex; }

  /* Logo mobile: um pouco menor para não sobrecarregar o header */
  .header__logo img { height: 60px; }

  /* Hero: tamanho reduzido e bg mobile */
  .hero { min-height: 380px; }

  .hero__bg {
    background-image: url('../images/slide-m.png');
    background-position: center top;
  }

  /* Hero inner: slightly shorter */
  .hero--inner { min-height: 260px; padding-bottom: 40px; }

  /* Solutions: 2 columns */
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* About */
  .about { padding: 56px 24px; }

  /* Differentials: 1 column */
  .differentials__grid { grid-template-columns: 1fr; }

  /* Contact cards: single column */
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer: single column */
  .footer__main {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-social { justify-content: center; }

  .footer-wpp { justify-content: center; width: 100%; }

  /* Modal */
  .modal { padding: 40px 24px; }

  /* Toast */
  .toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .card { padding: 32px 20px; }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
