/* ─────────────────────────────────────────
   Radiadores Camargo — Catálogo Premium
   Design mobile-first, dark luxury
───────────────────────────────────────── */

:root {
  --bg: #080b0a;
  --surface: #111614;
  --surface-2: #171e1a;
  --line: #1e2620;
  --line-bright: #253029;
  --text: #eef2ee;
  --text-soft: #849484;
  --brand: #00c060;
  --brand-dim: rgba(0, 192, 96, 0.08);
  --brand-glow: rgba(0, 192, 96, 0.22);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: #0c100e;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

.app {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 1rem 0.875rem 3.5rem;
}

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-bright);
  background: linear-gradient(160deg, #0d1f15 0%, #090d0b 55%);
  padding: 2.2rem 1.5rem 2.5rem;
  box-shadow: var(--shadow-deep);
  margin-bottom: 2rem;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  top: -200px;
  right: -160px;
  background: radial-gradient(circle, rgba(0, 192, 96, 0.18) 0%, transparent 68%);
  animation: orbPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, rgba(0, 192, 96, 0.10) 0%, transparent 70%);
  animation: orbPulse 9s ease-in-out 1.5s infinite;
  pointer-events: none;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1);    opacity: 0.65; }
  50%       { transform: scale(1.12); opacity: 1;    }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.hero-logo-wrap {
  display: inline-flex;
}

.hero-logo {
  width: clamp(90px, 28vw, 148px);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 192, 96, 0.28);
  background: rgba(255, 255, 255, 0.025);
  padding: 0.55rem;
  filter: drop-shadow(0 0 22px rgba(0, 192, 96, 0.38));
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.9;
}

.hero-title {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: clamp(2rem, 9vw, 3.6rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  background: linear-gradient(140deg, #e8ffe8 0%, #8adfb0 55%, #00c060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(0.85rem, 3.2vw, 0.97rem);
  color: var(--text-soft);
  max-width: 38ch;
  line-height: 1.65;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 192, 96, 0.28);
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: #9efcd4;
  background: var(--brand-dim);
  letter-spacing: 0.01em;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

/* ─────────── CATÁLOGO ─────────── */
.catalog {
  margin-bottom: 2rem;
}

.section-head {
  margin-bottom: 1.1rem;
  padding: 0 0.1rem;
}

.section-title {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-subtitle {
  margin-top: 0.3rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

/* ─────────── GRID ─────────── */
.product-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

/* ─────────── CARD ─────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 280ms ease,
    box-shadow 280ms ease;
  opacity: 0;
  transform: translateY(22px);
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(0, 192, 96, 0.38);
  box-shadow: var(--shadow-card), 0 0 24px rgba(0, 192, 96, 0.1);
}

/* Foto quadrada, imagem inteira sem corte */
.product-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0e1210;
  flex-shrink: 0;
  cursor: zoom-in;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  transition: transform 400ms ease;
  display: block;
}

.product-card:hover .product-photo {
  transform: scale(1.05);
}

/* Corpo do card */
.product-body {
  padding: 0.65rem 0.7rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  justify-content: space-between;
}

.product-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.38;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.74rem;
  color: var(--text-soft);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5ae8a0;
}

/* Botão pequeno e sutil */
.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(0, 192, 96, 0.38);
  border-radius: 999px;
  padding: 0.3rem 0.68rem;
  font-size: 0.67rem;
  font-weight: 600;
  color: #8ef7c4;
  background: rgba(0, 192, 96, 0.06);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
  align-self: flex-start;
  white-space: nowrap;
}

.quick-action:hover,
.quick-action:focus-visible {
  background: rgba(0, 192, 96, 0.16);
  border-color: rgba(0, 192, 96, 0.7);
  color: #d6fff0;
  outline: none;
}

.quick-action-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ─────────── CONTATO ─────────── */
.contact {
  margin-top: 0.5rem;
}

.contact-card {
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, #0d1f15 0%, #0a0d0b 65%);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.contact-title {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--text);
}

.contact-line {
  margin-top: 0.6rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.contact-link {
  color: #7ee8af;
  text-decoration: none;
  border-bottom: 1px dashed rgba(126, 232, 175, 0.38);
  transition: color 150ms ease, border-color 150ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #d0fff0;
  border-bottom-color: rgba(208, 255, 240, 0.7);
  outline: none;
}

/* Botão do mapa — CTA final, mais destaque */
.quick-action-map {
  margin-top: 1.1rem;
  border-radius: var(--radius-md);
  padding: 0.8rem 1.2rem;
  font-size: 0.88rem;
  background: linear-gradient(135deg, #007c3a 0%, #00a651 100%);
  border: none;
  color: #eafff3;
  width: 100%;
  min-height: 48px;
  animation: softPulse 3.2s ease-in-out infinite;
}

.quick-action-map:hover,
.quick-action-map:focus-visible {
  background: linear-gradient(135deg, #009044 0%, #00c060 100%);
  color: #fff;
  outline: none;
}

/* ─────────── ANIMAÇÕES ─────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(0, 192, 96, 0.32); }
  50%       { box-shadow: 0 0 0 9px rgba(0, 192, 96, 0);    }
}

/* ─────────── LIGHTBOX ─────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 6, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  padding: 1rem;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: min(94vw, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80dvh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(0, 192, 96, 0.28);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85);
  object-fit: contain;
  transform: scale(0.93);
  transition: transform 340ms cubic-bezier(0.34, 1.4, 0.64, 1);
  display: block;
  background: #0e1210;
}

.lightbox.is-open .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(238, 242, 238, 0.45);
  text-align: center;
  max-width: 50ch;
  line-height: 1.5;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 22, 20, 0.97);
  border: 1px solid rgba(0, 192, 96, 0.38);
  color: #8ef7c4;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  line-height: 1;
  flex-shrink: 0;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(0, 192, 96, 0.2);
  color: #d6fff0;
  outline: none;
}

/* ─────────── RESPONSIVO ─────────── */
@media (min-width: 640px) {
  .app {
    padding: 1.5rem 1.25rem 4rem;
  }

  .hero {
    padding: 2.5rem 2rem 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 960px) {
  .app {
    padding: 2rem 2rem 4rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
