/* ============================================================
   Insta Limp — Global Styles
   ============================================================ */

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

:root {
  --green-primary:  #2E7D32;
  --green-light:    #4CAF50;
  --green-dark:     #1B5E20;
  --green-pale:     #E8F5E9;
  --green-mint:     #69F0AE;
  --green-wa:       #25D366;
  --white:          #FFFFFF;
  --gray-text:      #424242;
  --gray-light:     #F5F5F5;
  --gray-mid:       #757575;
  --gray-border:    #E0E0E0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-text);
  line-height: 1.6;
  background: var(--white);
}

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

/* --- Typography --- */
h1 { font-size: 52px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
h2 { font-size: 34px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
p  { font-size: 16px; line-height: 1.6; }

/* --- Layout helpers --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 80px; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green-light);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--green-pale);
  height: 72px;
}

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

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 64px; width: auto; display: block; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--green-primary); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 17px; font-weight: 700; color: var(--green-dark); }
.logo-text span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-mid); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: 15px; font-weight: 500; color: var(--gray-text);
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--green-primary); }

/* Header CTA */
.btn-header-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-primary); color: var(--white);
  border-radius: 8px; padding: 10px 20px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s;
}
.btn-header-cta:hover { background: var(--green-dark); }

/* Hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--green-dark); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS (shared)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 10px; padding: 14px 28px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-whatsapp { background: var(--green-wa); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.45); padding: 12px 28px; }
.btn-primary { background: var(--green-primary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green-primary); border: 2px solid var(--green-primary); padding: 10px 20px; font-size: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--green-dark);
  min-height: 580px;
  display: flex;
}

.hero-content {
  display: flex; align-items: center;
  gap: 0; width: 100%;
}

.hero-left {
  display: flex; flex-direction: column; gap: 28px;
  padding: 72px 60px 72px 0; width: 55%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border-radius: 100px;
  padding: 6px 16px; width: fit-content;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-light); }
.hero-badge span { font-size: 13px; color: #C8E6C9; font-weight: 500; letter-spacing: 0.5px; }

.hero-title { color: var(--white); }
.hero-title .accent { color: var(--green-mint); }

.hero-desc { font-size: 18px; color: #C8E6C9; max-width: 480px; }

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

.hero-stats {
  display: flex; gap: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 26px; font-weight: 800; color: var(--green-mint); }
.hero-stat span { font-size: 13px; color: #A5D6A7; }

/* Hero right panel */
.hero-right {
  width: 45%; display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 100%);
}
.hero-card {
  display: flex; flex-direction: column; gap: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px; padding: 32px; width: 340px;
  position: relative; overflow: hidden; cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
  pointer-events: none;
  transition: left 0.65s ease;
}
.hero-card:hover::before { left: 160%; }
.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.32), 0 0 0 1px rgba(105,240,174,0.35), 0 0 32px rgba(105,240,174,0.12);
  border-color: rgba(105,240,174,0.5);
  background: rgba(255,255,255,0.15);
}
.hero-card-header { display: flex; align-items: center; gap: 12px; }
.hero-card-icon {
  width: 44px; height: 44px; background: var(--green-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.3s ease;
}
.hero-card:hover .hero-card-icon { transform: scale(1.12) rotate(-6deg); }
.hero-card-title { font-size: 15px; font-weight: 700; color: var(--white); }
.hero-card-subtitle { font-size: 12px; color: #A5D6A7; }
.hero-card-divider { height: 1px; background: rgba(255,255,255,0.12); }
.hero-card-list { display: flex; flex-direction: column; gap: 10px; }
.hero-card-item {
  display: flex; justify-content: space-between; align-items: center;
}
.hero-card-item span:first-child { font-size: 14px; color: #C8E6C9; }
.hero-card-check {
  font-size: 12px; background: rgba(105,240,174,0.15);
  color: var(--green-mint); border-radius: 20px; padding: 2px 10px;
}
.hero-card-btn {
  background: var(--green-wa); border-radius: 10px;
  padding: 12px 16px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--white);
  cursor: pointer; transition: opacity 0.2s;
}
.hero-card-btn:hover { opacity: 0.9; }

/* ============================================================
   DIFERENCIAIS
   ============================================================ */
.section-diferenciais {
  background: var(--gray-light);
  padding: 72px 0;
}

.section-header {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { color: var(--green-dark); }

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

.diferencial-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border-radius: 16px; padding: 32px;
  border: 1px solid var(--green-pale); border-top: 4px solid var(--green-primary);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
}
.diferencial-card:not(.featured):hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  border-top-color: var(--green-mint);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46,125,50,0.28);
}
.diferencial-card.featured {
  background: var(--green-primary); border-color: var(--green-primary);
  border-top-color: var(--green-mint);
}
.diferencial-card.featured:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(46,125,50,0.28); }
.diferencial-icon {
  width: 52px; height: 52px; background: var(--green-pale);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.diferencial-icon svg { transition: filter 0.3s; }
.diferencial-card.featured .diferencial-icon { background: rgba(255,255,255,0.15); }
.diferencial-card:not(.featured):hover .diferencial-icon { background: rgba(255,255,255,0.15); }
.diferencial-card:not(.featured):hover .diferencial-icon svg { filter: brightness(0) invert(1); }
.diferencial-card h3 { color: var(--green-dark); margin: 0; transition: color 0.3s; }
.diferencial-card.featured h3 { color: var(--white); }
.diferencial-card:not(.featured):hover h3 { color: var(--white); }
.diferencial-card p { font-size: 15px; color: #616161; margin: 0; transition: color 0.3s; }
.diferencial-card.featured p { color: #C8E6C9; }
.diferencial-card:not(.featured):hover p { color: #C8E6C9; }

/* ============================================================
   PRODUTOS DESTAQUE
   ============================================================ */
.section-produtos { padding: 72px 0; background: var(--white); }

.section-produtos-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
}
.section-produtos-header div { display: flex; flex-direction: column; gap: 8px; }
.section-produtos-header h2 { color: var(--green-dark); }

.produtos-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}

.produto-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--green-pale);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; cursor: pointer;
}
.produto-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(46,125,50,0.2); }
.produto-card:not(.featured):hover { border-color: var(--green-primary); }
.produto-card.featured { border-color: var(--green-primary); border-width: 2px; }

.produto-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--green-pale) 0%, #C8E6C9 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.produto-card.featured .produto-card-img {
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
}
.produto-badge {
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.2); color: var(--white);
  border-radius: 20px; padding: 3px 12px; letter-spacing: 0.5px;
}

.produto-card-body { padding: 20px; background: var(--white); transition: background 0.3s; }
.produto-card-body h3 { font-size: 16px; color: var(--green-dark); margin-bottom: 8px; transition: color 0.3s; }
.produto-card-body p { font-size: 13px; color: var(--gray-mid); line-height: 1.5; margin-bottom: 10px; transition: color 0.3s; }
.produto-link { font-size: 12px; font-weight: 500; color: var(--green-light); transition: color 0.3s; }
.produto-card:not(.featured):hover .produto-card-body { background: var(--green-primary); }
.produto-card:not(.featured):hover .produto-card-body h3 { color: var(--white); }
.produto-card:not(.featured):hover .produto-card-body p { color: #C8E6C9; }
.produto-card:not(.featured):hover .produto-link { color: var(--green-mint); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.section-cta-final {
  background: var(--green-primary);
  padding: 60px 0;
  text-align: center;
}
.section-cta-final h2 { color: var(--white); margin-bottom: 12px; }
.section-cta-final p { font-size: 16px; color: #C8E6C9; max-width: 560px; margin: 0 auto 28px; }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-dark);
  padding: 40px 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark {
  width: 32px; height: 32px; background: var(--green-light);
  border-radius: 7px; display: flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 800;
  color: var(--white); flex-shrink: 0;
}
.footer-logo-name { font-size: 16px; font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 13px; color: #A5D6A7; line-height: 1.6; }

.footer-col h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--green-mint);
  margin-bottom: 12px;
}
.footer-col a, .footer-col p {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #C8E6C9; line-height: 1;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--white); }
.footer-col .hours { font-size: 13px; color: #A5D6A7; margin-bottom: 6px; }

.footer-copy {
  font-size: 12px; color: var(--green-light);
  margin-top: 8px; display: block;
}

/* ============================================================
   PAGE HERO (produtos.html)
   ============================================================ */
.page-hero {
  background: var(--green-dark);
  padding: 52px 0;
}
.page-hero h1 { font-size: 40px; color: var(--white); margin-bottom: 8px; }
.page-hero p { font-size: 17px; color: #C8E6C9; max-width: 520px; }

/* ============================================================
   PRODUTOS PAGE — full listing
   ============================================================ */
.section-produtos-full { padding: 72px 0; background: var(--white); }

.categoria-block { margin-bottom: 64px; }
.categoria-title {
  font-size: 22px; font-weight: 700; color: var(--green-dark);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--green-pale);
  display: flex; align-items: center; gap: 12px;
}
.categoria-icon {
  width: 36px; height: 36px; background: var(--green-pale);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

.produtos-list-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}

.produto-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--gray-light); border-radius: 10px;
  padding: 14px 16px; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.produto-item:hover {
  background: var(--green-pale);
  border-color: #C8E6C9;
  box-shadow: 0 2px 12px rgba(46,125,50,0.08);
}
.produto-item-icon {
  width: 32px; height: 32px; background: var(--green-pale);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.produto-item:hover .produto-item-icon { background: var(--white); }
.produto-item span { font-size: 14px; font-weight: 500; color: var(--gray-text); }

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* Badge dot pulse */
.hero-badge-dot { animation: pulseDot 1.8s ease-in-out infinite; }

/* Stats — initial hidden state; JS adds .visible when in viewport */
.hero-stat strong,
.hero-stat span { opacity: 0; }

.hero-stat.visible strong {
  animation: fadeSlideUp 0.55s ease forwards;
}
.hero-stat.visible span {
  animation: fadeSlideUp 0.55s ease 0.15s forwards;
}
.hero-stat:nth-child(1).visible strong { animation-delay: 0s; }
.hero-stat:nth-child(2).visible strong { animation-delay: 0.1s; }
.hero-stat:nth-child(3).visible strong { animation-delay: 0.25s; }
.hero-stat:nth-child(3).visible span   { animation-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
  h1 { font-size: 40px; }
  .hero-left { padding: 52px 40px 52px 0; }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .produtos-grid { grid-template-columns: repeat(3, 1fr); }
  .produtos-list-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .main-nav, .btn-header-cta { display: none; }
  .hamburger { display: flex; }

  .main-nav.open {
    display: flex; flex-direction: column; position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 32px 24px; gap: 24px; z-index: 99;
  }
  .main-nav.open a { font-size: 20px; }

  .hero { min-height: auto; }
  .hero-content { flex-direction: column; }
  .hero-left { width: 100%; padding: 48px 0; }
  .hero-right { width: 100%; padding: 0 0 48px; }
  .hero-card { width: 100%; max-width: 340px; }

  .diferenciais-grid { grid-template-columns: 1fr; }
  .section-produtos-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .produtos-grid { grid-template-columns: repeat(2, 1fr); }
  .produtos-list-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .produtos-grid { grid-template-columns: 1fr; }
  .produtos-list-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cta-btns { flex-direction: column; align-items: center; }
}
