:root {
  --primary: #1a1a2e;
  --accent: #e63946;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.15);
  --radius: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
img { display: block; max-width: 100%; }

/* ── HEADER ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--primary);
  padding: 0 1.5rem;
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -.5px; }
.logo span { color: var(--accent); }

.nav { display: flex; gap: .15rem; list-style: none; }
.nav a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .85rem; padding: .4rem .6rem; border-radius: 4px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--white); background: rgba(255,255,255,.1); }

/* ── DROPDOWN ── */
.nav .has-dropdown { position: relative; }
.nav .has-dropdown > a::after { content: ' ▾'; font-size: .7rem; opacity: .75; }
.nav .dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--primary); min-width: 180px; list-style: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  padding: .4rem 0; z-index: 300; border-top: 2px solid var(--accent);
}
.nav .dropdown a { display: block; padding: .55rem 1.1rem; white-space: nowrap; font-size: .84rem; }
.nav .has-dropdown:hover .dropdown { display: block; }


.btn-header {
  background: var(--accent); color: var(--white); border: none;
  padding: .5rem 1.1rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background .2s, transform .1s;
}
.btn-header:hover { background: #c62833; transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }

@media (max-width: 800px) {
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--primary); flex-direction: column;
    padding: 1rem 1.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08);
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: .75rem .5rem; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 1rem; }

  .nav .has-dropdown > a::after { content: none; }
  .nav .dropdown {
    display: block; position: static;
    box-shadow: none; border-radius: 0; border-top: none; padding: 0; background: transparent;
  }
  .nav .dropdown a { padding: .65rem .5rem .65rem 1.5rem; font-size: .95rem; }
  .menu-toggle { display: block; }
  .btn-header { display: none; }
}

/* ── HERO (index) ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  padding: 8rem 1.5rem 5rem; text-align: center; color: var(--white);
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 1rem; max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  font-size: 1.1rem; color: rgba(255,255,255,.8);
  max-width: 560px; margin: 0 auto 2rem;
}

/* ── HERO (product pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  padding: 7rem 1.5rem 3rem; color: var(--white); text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; margin-bottom: .75rem; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: .85rem 1.5rem; font-size: .85rem; color: var(--text-light); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── BUTTONS ── */
.btn-cta {
  display: inline-block; background: var(--accent); color: var(--white); border: none;
  padding: .9rem 2.25rem; border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(230,57,70,.45);
}
.btn-cta:hover { background: #c62833; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(230,57,70,.55); }

.btn-orcamento {
  display: inline-block; background: var(--accent); color: var(--white); border: 2px solid var(--accent);
  padding: .5rem 1.1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s; align-self: flex-start;
}
.btn-orcamento:hover { background: #c62833; transform: translateY(-1px); }

.btn-ver-mais {
  display: inline-block; background: transparent; color: var(--accent);
  border: 2px solid var(--accent); padding: .45rem 1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s; align-self: flex-start;
}
.btn-ver-mais:hover { background: var(--accent); color: var(--white); }

.btn-cta-white {
  display: inline-block; background: var(--white); color: var(--accent); border: none;
  padding: .9rem 2.25rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(0,0,0,.3); }

/* ── SECTIONS ── */
.section { padding: 4.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section--full { padding: 4.5rem 1.5rem; }
.section-title { text-align: center; font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: .5rem; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; font-size: 1rem; }

/* ── DIFERENCIAIS ── */
.diferenciais-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
@media (min-width: 700px) { .diferenciais-grid { grid-template-columns: repeat(4, 1fr); } }

.diferencial-card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.25rem;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.diferencial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.diferencial-icon { width: 48px; height: 48px; margin: 0 auto 1rem; color: var(--accent); }
.diferencial-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.diferencial-card p { font-size: .875rem; color: var(--text-light); }

/* ── PRODUTOS GRID ── */
.produtos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
@media (min-width: 700px) { .produtos-grid { grid-template-columns: repeat(3, 1fr); } }

.produto-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.produto-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.produto-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1rem; flex-shrink: 0; }
.produto-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: .35rem; }
.produto-card p { font-size: .875rem; color: var(--text-light); flex: 1; margin-bottom: 1.1rem; }

/* ── DEPOIMENTOS ── */
.depoimento-section {
  background: var(--primary); padding: 4rem 1.5rem; color: var(--white);
}
.depoimento-section h2 { text-align: center; font-size: clamp(1.3rem,3vw,1.75rem); margin-bottom: 2.5rem; }
.dep-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.dep-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
}
.dep-stars { color: #fbbf24; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: .9rem; }
.dep-quote { font-size: 1rem; font-style: italic; color: rgba(255,255,255,.88); line-height: 1.7; margin-bottom: 1rem; flex: 1; }
.dep-autor { color: var(--accent); font-weight: 700; font-size: .85rem; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--accent), #c62833);
  padding: 4rem 1.5rem; text-align: center; color: var(--white);
}
.cta-section h2 { font-size: clamp(1.25rem, 3vw, 1.85rem); font-weight: 800; margin-bottom: .75rem; }
.cta-section p { font-size: 1rem; margin-bottom: 1.75rem; opacity: .9; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto 2rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: .4rem; }
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.55); margin-bottom: 1rem; }
.footer-about { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.6; }

.footer-col h4 {
  color: var(--white); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: .85rem;
}
.footer-col p, .footer-col a {
  font-size: .875rem; color: rgba(255,255,255,.65);
  display: block; margin-bottom: .4rem; text-decoration: none;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem;
  text-align: center; font-size: .8rem; color: rgba(255,255,255,.35);
  max-width: 1200px; margin: 0 auto;
}

/* ── BADGE ── */
.badge {
  display: inline-block; background: rgba(230,57,70,.12); color: var(--accent);
  font-size: .75rem; font-weight: 700; padding: .2rem .65rem; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem;
}

/* ── GALERIA ── */
.btn-galeria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem 1.3rem;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
  align-self: flex-start;
}
.btn-galeria:hover {
  background: var(--accent);
  color: #fff;
}
.modal-galeria {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-galeria.aberto {
  display: flex;
}
.modal-galeria-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
}
.modal-galeria img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.modal-galeria-fechar {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.modal-galeria-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.modal-galeria-nav button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-galeria-nav button:hover {
  background: rgba(255,255,255,0.3);
}
.modal-galeria-contador {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}
.modal-galeria-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-galeria-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}
.modal-galeria-thumbs img.ativa {
  opacity: 1;
  border-color: #e63946;
}
.modal-galeria-vazio {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  text-align: center;
  padding: 40px 0;
}
@media (max-width: 600px) {
  .modal-galeria-nav button {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}
