/* === Tokens === */
:root {
  --bg: #fbf6f1;
  --fg: #2a1a14;
  --card: #fff;
  --muted: #6b5b53;
  --border: #e8ddd2;
  --primary: #c1272d;
  --primary-fg: #fff8f0;
  --accent: #e57b3a;
  --earth: #6b3a1f;
  --whatsapp: #25D366;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--fg); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--font-display); line-height: 1.15; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 500; font-size: 15px; border: none; cursor: pointer; transition: opacity .2s; }
.btn:hover { opacity: .9; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); }

/* === Header === */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-desktop a:hover { color: var(--primary); }
.nav-cta { padding: 8px 16px; font-size: 14px; }

/* Mobile menu (CSS-only via checkbox) */
.menu-chk { display: none; }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; user-select: none; }
.nav-mobile { display: none; flex-direction: column; gap: 12px; padding: 16px; background: var(--card); border-bottom: 1px solid var(--border); }
.nav-mobile a { padding: 8px 0; border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.menu-chk:checked ~ .header .nav-mobile { display: flex; }

@media (max-width: 768px) {
  .nav-desktop, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .brand-name { display: none; }
}

/* === Hero === */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding-top: 64px; }
.hero-slides { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slide 25s infinite; }
.hero-img.s1 { animation-delay: 0s; }
.hero-img.s2 { animation-delay: 5s; }
.hero-img.s3 { animation-delay: 10s; }
.hero-img.s4 { animation-delay: 15s; }
.hero-img.s5 { animation-delay: 20s; }
@keyframes slide {
  0%, 16% { opacity: 1; }
  20%, 96% { opacity: 0; }
  100% { opacity: 1; }
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,25,20,.6), rgba(40,25,20,.85)); }
.hero-content { position: relative; z-index: 2; padding: 80px 16px; max-width: 720px; color: #fff; }
.hero-logo { width: 110px; height: 110px; border-radius: 18px; margin-bottom: 24px; border: 2px solid rgba(255,255,255,.25); }
.badge { display: inline-block; background: rgba(193,39,45,.85); color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 14px; margin-bottom: 24px; }
.hero-title { font-size: clamp(40px, 7vw, 72px); font-weight: 700; margin-bottom: 20px; }
.text-accent { color: var(--primary); }
.hero-text { font-size: 18px; opacity: .85; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* === Sections === */
.section { padding: 96px 0; }
.section-warm { background: linear-gradient(180deg, #f5ebe0 0%, var(--bg) 100%); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
.section-head p { margin-top: 24px; color: var(--muted); font-size: 18px; }
.text-gradient { background: linear-gradient(135deg, var(--earth), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* === Grids === */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* === Feature card === */
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(193,39,45,.1); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); }

/* === Product card com slideshow automático e LED glow === */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}
/* Efeito LED iluminado no hover */
.product-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-glow, #ff6b4a), var(--primary));
  background-size: 300% 300%;
  opacity: 0;
  z-index: -1;
  transition: opacity .4s ease;
  animation: led-rotate 3s linear infinite;
  filter: blur(8px);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(193,39,45,.35), 0 0 30px rgba(229,123,58,.25);
}
.product-card:hover::before { opacity: 1; }

@keyframes led-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.prod-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease, transform 6s ease;
}

/* Slideshow automático — 2 imagens (8s total, 4s cada) */
.auto-slide.imgs-2 .pi0 { animation: fade2-a 8s infinite; }
.auto-slide.imgs-2 .pi1 { animation: fade2-b 8s infinite; }
@keyframes fade2-a {
  0%, 45% { opacity: 1; transform: scale(1.05); }
  50%, 95% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}
@keyframes fade2-b {
  0%, 45% { opacity: 0; transform: scale(1); }
  50%, 95% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1); }
}

/* Slideshow automático — 4 imagens (16s total, 4s cada) */
.auto-slide.imgs-4 .pi0 { animation: fade4-a 16s infinite; }
.auto-slide.imgs-4 .pi1 { animation: fade4-b 16s infinite; }
.auto-slide.imgs-4 .pi2 { animation: fade4-c 16s infinite; }
.auto-slide.imgs-4 .pi3 { animation: fade4-d 16s infinite; }
@keyframes fade4-a { 0%, 22% { opacity: 1; } 27%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fade4-b { 0%, 22% { opacity: 0; } 27%, 47% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes fade4-c { 0%, 47% { opacity: 0; } 52%, 72% { opacity: 1; } 77%, 100% { opacity: 0; } }
@keyframes fade4-d { 0%, 72% { opacity: 0; } 77%, 97% { opacity: 1; } 100%, 100% { opacity: 0; } }

/* Ao hover, pausa e mostra primeira imagem */
.product-card:hover .prod-img { animation-play-state: paused; }

.product-price {
  position: absolute; top: 12px; right: 12px;
  background: var(--primary); color: #fff;
  font-weight: 700; padding: 6px 12px;
  border-radius: 8px; font-size: 14px;
  z-index: 3;
  box-shadow: 0 0 15px rgba(193,39,45,.5);
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; background: var(--card); }
.product-body h3 { font-size: 20px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 14px; }

/* === Google Maps === */
.map-wrap {
  margin: 48px auto 0;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrap iframe { display: block; }

/* === Contact === */
.contact-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); height: 100%; }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(193,39,45,.1); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 14px; }

/* === Form === */
.contact-form { margin: 48px auto 0; max-width: 600px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.contact-form h3 { font-size: 22px; margin-bottom: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-form input, .contact-form textarea { font-family: inherit; font-size: 15px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--fg); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }

/* === Footer === */
.footer { background: var(--fg); color: rgba(255,248,240,.85); padding: 48px 0 24px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-info { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; font-size: 14px; opacity: .75; }
.footer-bottom { margin-top: 32px; padding-top: 24px; text-align: center; font-size: 12px; opacity: .55; border-top: 1px solid rgba(255,255,255,.1); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; } }

/* === WhatsApp Float === */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 100; width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.whatsapp-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); opacity: .6; animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
