/* ============================================
   GV Impressão 3D — estilos do site
   Paleta baseada na logo: preto, branco e azul
   ============================================ */

:root {
  --color-bg: #0b0d12;
  --color-bg-alt: #12151c;
  --color-surface: #1a1e27;
  --color-border: #262b36;
  --color-text: #f2f4f8;
  --color-text-muted: #a3aab8;
  --color-primary: #2f6fed;
  --color-primary-light: #5b8fff;
  --color-whatsapp: #25d366;
  --radius: 14px;
  --max-width: 1160px;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 46px;
  width: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand span b {
  color: var(--color-primary-light);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(47, 111, 237, 0.25), transparent 60%);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.hero h1 b {
  color: var(--color-primary-light);
}

.hero p {
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-whatsapp);
  color: #06210f;
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---------- Category sections ---------- */

.category {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.category-header h2 {
  font-size: 1.6rem;
}

.category-header p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.product-photo {
  aspect-ratio: 1 / 1;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  position: relative;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo.placeholder {
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
}

.product-photo.placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.5;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-info h3 {
  font-size: 1rem;
}

.product-info p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  flex: 1;
}

.product-price {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 600;
}

/* ---------- About ---------- */

.about {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-photo img {
  max-width: 320px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
}

.about h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

/* ---------- Contact ---------- */

.contact {
  padding: 64px 0 80px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.contact h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.contact p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ---------- Floating WhatsApp button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 200;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  color: #06210f;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: block;
  }

  .about .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    order: -1;
  }
}
