/* ============================================
   COMPONENTES REUTILIZÁVEIS — TECPRINTERS
   ============================================ */

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----------------------------------------
   Container
---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ----------------------------------------
   Botão verde (CTA principal)
---------------------------------------- */
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-green);
  color: #fff;
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  white-space: nowrap;
  height: 56px;
  padding-left: 24px;
  padding-right: 10px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-green:hover { opacity: 0.88; }

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/* ----------------------------------------
   Botão gradiente (header / secundário)
---------------------------------------- */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #93c5fd, #0047ff);
  color: #fff;
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  white-space: nowrap;
  height: 40px;
  padding-inline: 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-gradient:hover { opacity: 0.88; }

/* ----------------------------------------
   Link azul sublinhado
---------------------------------------- */
.link-primary {
  display: inline-block;
  font-family: var(--font);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.link-primary:hover { opacity: 0.75; }

/* ----------------------------------------
   Títulos de seção
---------------------------------------- */
.section-title {
  font-family: var(--font);
  font-weight: var(--weight-extrabold);
  font-size: clamp(36px, 4vw, var(--text-4xl));
  color: var(--color-text-dark);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  text-align: center;
}
.section-title .blue { color: var(--color-primary-600); }

.section-subtitle {
  font-family: var(--font);
  font-weight: var(--weight-medium);
  font-size: clamp(14px, 1.5vw, var(--text-lg));
  color: var(--color-text-body);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

/* ----------------------------------------
   Header / Navbar
---------------------------------------- */
.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1160px;
  z-index: 100;
}

.site-header.scrolled .header-inner {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 8px 7px 20px;
  gap: 8px;
  transition: box-shadow 0.2s;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
  overflow: hidden;
}

.nav-item {
  font-family: var(--font);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  color: var(--color-text-body);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-item:hover { background: var(--color-bg-section); color: var(--color-text-dark); }
.nav-item.active {
  background: var(--color-primary-bg-mid);
  color: var(--color-primary);
}

/* Hamburguer — mobile (oculto por padrão) */
.header-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.15s;
}
.header-menu-toggle:hover { background: var(--color-bg-section); }
.header-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.header-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-menu-toggle.open span:nth-child(2) { opacity: 0; }
.header-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------
   Menu mobile overlay (elemento separado do header)
---------------------------------------- */
.mobile-menu {
  display: none; /* só aparece via JS */
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 99;
  flex-direction: column;
  padding: 88px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav-item {
  display: block;
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: 22px;
  color: var(--color-text-dark);
  padding: 14px 16px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-item:hover    { background: var(--color-bg-section); }
.mobile-nav-item.active   { color: var(--color-primary); background: var(--color-primary-bg-mid); }

.mobile-cta {
  height: 52px;
  font-size: 14px;
  margin-top: 24px;
  text-align: center;
  justify-content: center;
}

/* ----------------------------------------
   Footer
---------------------------------------- */
.footer {
  background: var(--color-footer);
  padding-top: 80px;
}

.footer-grid {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px 40px;
  padding-bottom: 56px;
}

.footer-brand {}
.footer-brand-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(10);
}

.footer-desc {
  font-family: var(--font);
  font-size: 12px;
  color: var(--color-text-subtle);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-tagline {
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-style: italic;
  font-size: 12px;
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: 10px;
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.social-btn:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.footer-col-title {
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 24px;
}

.footer-base + .footer-base { margin-top: 20px; }
.footer-base-city {
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: 10.5px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.footer-base-address,
.footer-base-phone {
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.7;
}
.footer-base-address { color: var(--color-text-subtle); }
.footer-base-phone   { color: var(--color-text-light); }

.footer-links-list { display: flex; flex-direction: column; gap: 14px; }
.footer-link {
  font-family: var(--font);
  font-weight: var(--weight-medium);
  font-size: 12px;
  color: var(--color-text-light);
  transition: color 0.15s;
}
.footer-link:hover { color: #fff; }

.footer-partner-logos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-partner-logos img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) brightness(4);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--container-pad);
  max-width: var(--container-max);
  margin-inline: auto;
}
.footer-bottom p,
.footer-bottom em {
  font-family: var(--font);
  font-weight: var(--weight-bold);
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.footer-bottom em { font-style: italic; }

/* ============================================
   RESPONSIVIDADE GLOBAL
   ============================================ */

/* Tablet grande (1024px) */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

/* Tablet / Mobile (768px) */
@media (max-width: 768px) {
  .site-header { top: 10px; width: calc(100% - 24px); }

  /* Esconde nav e CTA desktop, exibe hamburguer */
  .header-nav         { display: none; }
  .btn-gradient       { display: none; }
  .header-menu-toggle { display: flex; margin-left: auto; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
