/* ============================================================
   Anilhas & Halteres Distribuidora — Folha de Estilos Principal
   ============================================================ */

:root {
  --red: #CC0000;
  --red-dark: #a80000;
  --dark: #1a1a1a;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --border: #e0e0e0;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --max-w: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-wpp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wpp:hover { background: #1da851; border-color: #1da851; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 48px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text strong {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.logo-text span {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover, .site-nav a.active { color: var(--red); background: rgba(204,0,0,0.05); }
.nav-wpp {
  background: #25D366 !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
}
.nav-wpp:hover { background: #1da851 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  width: 40px; height: 40px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ---- Mega-drop Produtos ---- */
.nav-item-drop { position: relative; }
.nav-item-drop:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  padding-top: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  border-radius: 0;
}
.nav-dropdown a:hover { background: var(--bg-light); }

/* ---- Hero ---- */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204,0,0,0.12) 0%, transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.stat-item strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--red); }
.stat-item span { font-size: 0.8rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  max-width: 420px;
  margin-left: auto;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-visual img:first-child {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

/* ---- Diferenciais ---- */
.diferenciais { background: var(--white); border-bottom: 1px solid var(--border); }
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.diferencial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.diferencial-icon {
  width: 48px; height: 48px;
  background: rgba(204,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.diferencial-card h3 { font-size: 1rem; margin: 0; }
.diferencial-card p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ---- Categorias ---- */
.categorias { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.red-line {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 16px auto 0;
  border-radius: 2px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.cat-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
}
.cat-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-count {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}
.cat-card-body { padding: 16px; }
.cat-card-body h3 { font-size: 0.95rem; margin-bottom: 4px; }
.cat-card-body p { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  transition: gap var(--transition);
}
.cat-link:hover { gap: 8px; }
.cat-card.featured {
  grid-column: span 2;
}
.cat-card.featured .cat-card-img {
  aspect-ratio: 2/1;
}

/* ---- Sobre snippet ---- */
.sobre-snippet { background: var(--white); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sobre-img {
  position: relative;
}
.sobre-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.sobre-img::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
}
.sobre-text .red-line { margin: 12px 0; }
.sobre-text h2 { margin-bottom: 8px; }
.sobre-text p { color: var(--muted); margin-bottom: 16px; }
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.cert-badge span { color: var(--red); font-size: 1.2rem; }

/* ---- CTA Atacado ---- */
.cta-atacado {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 { color: var(--white); margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,0.7); margin: 0; max-width: 480px; }
.cta-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.condition-tag {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 6px;
}
.condition-tag::before {
  content: '✓';
  color: #25D366;
  font-weight: 700;
}

/* ---- Footer ---- */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { }
.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--red); }
.footer-contact-item {
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 10px;
  align-items: flex-start;
}
.footer-contact-item .icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: var(--red); }

/* ============================================================
   Páginas Internas
   ============================================================ */

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb-list a { transition: color var(--transition); }
.breadcrumb-list a:hover { color: var(--red); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ---- Page Hero ---- */
.page-hero {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 600px; margin: 0; }

/* ---- Product Grid ---- */
.product-section { padding: 64px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-light);
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 14px; }
.product-body h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: 6px 10px;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.product-cta:hover { background: var(--red); color: var(--white); }

/* ---- Category Nav ---- */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.cat-nav-list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.cat-nav-list::-webkit-scrollbar { display: none; }
.cat-nav-list a {
  display: block;
  padding: 16px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  transition: all var(--transition);
}
.cat-nav-list a:hover, .cat-nav-list a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ---- Sobre Page ---- */
.sobre-hero-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
}
.timeline-year { font-size: 0.75rem; font-weight: 700; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.timeline-item h3 { font-size: 1rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.875rem; color: var(--muted); margin: 0; }

/* ---- Contato Page ---- */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.contact-icon {
  width: 44px; height: 44px;
  background: rgba(204,0,0,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.contact-info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-card p, .contact-info-card a { font-size: 0.925rem; color: var(--muted); }
.contact-info-card a:hover { color: var(--red); }
.contact-form {}
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--red); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.wpp-mega {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background var(--transition);
  margin-bottom: 24px;
}
.wpp-mega:hover { background: #1da851; }
.wpp-mega .wpp-icon { font-size: 1.8rem; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card.featured { grid-column: span 2; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 16px; }
  .nav-dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; padding: 0; width: 100%; }
  .hamburger { display: flex; }
  .header-inner { position: relative; }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { display: none; }
  .hero { padding: 64px 0 56px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card.featured { grid-column: span 2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre-img::after { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 20px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card.featured { grid-column: span 1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; width: 100%; }
  .btn { justify-content: center; }
  .diferenciais-grid { grid-template-columns: 1fr; }
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
