* { box-sizing: border-box; }
body { margin: 0; }
a { color: #D62828; text-decoration: none; }
a:hover { color: #F5F5F5; }
input::placeholder, textarea::placeholder { color: #7a7a7a; }
input, select, textarea { font-family: 'Inter', sans-serif; }

body {
  background: #070707;
  color: #F5F5F5;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.text-red { color: #D62828; }
.text-white-strong { color: #F5F5F5; font-weight: 600; }

.h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}
.h3 {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0;
}
.p-desc { color: #B8B8B8; font-size: 16px; margin: 0; }
.p-body { color: #B8B8B8; font-size: 15px; margin: 0; line-height: 1.6; }
.p-small { font-size: 14px; margin: 0; color: #B8B8B8; }
.p-lead { font-size: 17px; color: #B8B8B8; max-width: 640px; line-height: 1.6; margin: 0; }
.p-lead-center { color: #B8B8B8; font-size: 17px; max-width: 560px; margin: 0; }

.section { padding: clamp(60px, 10vw, 120px) clamp(20px, 6vw, 56px); display: flex; flex-direction: column; gap: 44px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }

/* image-slot placeholder (base — section-specific rules below override size/position) */
.image-slot {
  position: relative;
  width: 100%; height: 100%;
  background: #161616;
  border: 1px dashed #333333;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.image-slot:has(img) { border: none; background: none; }
.image-slot::before {
  content: attr(data-placeholder);
  color: #5a5a5a;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 16px;
  max-width: 90%;
}
.image-slot:has(img)::before { content: none; }
.image-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: #D62828; color: #F5F5F5; padding: 18px 32px; }
.btn-primary:hover { background: #8F1118; color: #F5F5F5; }
.btn-outline { background: transparent; border: 1px solid #B8B8B8; color: #F5F5F5; padding: 18px 32px; }
.btn-outline:hover { border-color: #F5F5F5; color: #F5F5F5; }
.btn-block { width: 100%; }

/* Loading screen */
.loading-screen {
  position: fixed; inset: 0; background: #070707; z-index: 999;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px;
  opacity: 1; pointer-events: auto; transition: opacity 0.9s ease;
}
.loading-screen.booted { opacity: 0; pointer-events: none; }
.loading-bar { width: 64px; height: 2px; background: #D62828; }
.loading-text {
  font-family: 'Anton', sans-serif; color: #F5F5F5; font-size: 15px;
  letter-spacing: 0.14em; text-align: center; padding: 0 24px;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: transparent; backdrop-filter: none; transition: background 0.4s ease;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 56px); gap: 12px;
}
.site-header.scrolled { background: rgba(7, 7, 7, 0.92); backdrop-filter: blur(6px); }

.logo-box { width: clamp(170px, 34vw, 320px); height: clamp(60px, 13vw, 110px); flex: none; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; display: block; }

.header-actions { display: flex; align-items: center; gap: clamp(8px, 2vw, 14px); flex: none; }
.header-actions .btn {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: clamp(10px, 2vw, 12px) clamp(12px, 3vw, 22px);
  font-size: clamp(11px, 2.4vw, 13px);
}

.icon-btn {
  background: none; border: 1px solid #333333; flex: none;
  width: clamp(38px, 9vw, 44px); height: clamp(38px, 9vw, 44px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: #F5F5F5; font-size: 20px;
}
.icon-btn svg { max-width: 70%; height: auto; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; background: #070707; z-index: 300;
  display: none; flex-direction: column; padding: 28px clamp(20px, 6vw, 56px);
}
.mobile-menu.open { display: flex; }
.mobile-menu-top { display: flex; justify-content: flex-end; }
.mobile-nav {
  display: flex; flex-direction: column; gap: 26px; margin-top: 60px;
  font-family: 'Anton', sans-serif; font-size: 32px; text-transform: uppercase;
}
.menu-link { color: #F5F5F5; }
.mobile-menu .btn-primary { margin-top: auto; }

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { object-position: center 75%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,7,7,0.35) 0%, rgba(7,7,7,0.55) 45%, rgba(7,7,7,0.96) 100%);
  z-index: 1; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2; padding: 160px clamp(20px, 6vw, 56px) 64px;
  display: flex; flex-direction: column; gap: 28px; max-width: 1000px;
}
.hero-title {
  font-family: 'Anton', sans-serif; font-size: clamp(40px, 7.5vw, 88px);
  line-height: 1.05; text-transform: uppercase; margin: 0; letter-spacing: 0.01em;
}
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: #B8B8B8; max-width: 560px; margin: 0; line-height: 1.5; }
.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.hero-info {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  border-top: 1px solid #333333; padding-top: 20px;
}
.dot { width: 6px; height: 6px; background: #D62828; border-radius: 50%; }
.hero-info-text { font-size: 14px; color: #B8B8B8; }
.hero-scroll-line-wrap { position: relative; z-index: 2; display: flex; justify-content: center; padding-bottom: 22px; }
.hero-scroll-line { width: 1px; height: 34px; background: linear-gradient(180deg, #D62828, transparent); }

/* Empresa */
.empresa { max-width: 1200px; margin: 0 auto; gap: 56px; }
.empresa-text { display: flex; flex-direction: column; gap: 22px; }
.pilares-row { display: flex; gap: clamp(20px, 5vw, 60px); flex-wrap: wrap; border-top: 1px solid #333333; padding-top: 36px; }
.pilar-item { font-family: 'Anton', sans-serif; font-size: clamp(22px, 3.2vw, 34px); color: #F5F5F5; letter-spacing: 0.02em; }

/* Categorias (produtos) */
.categorias-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 2px; background: #333333;
}
.categoria-card { background: #0e0e0e; display: flex; flex-direction: column; position: relative; min-height: 440px; }
.categoria-img-wrap { height: 60%; position: relative; }
.categoria-num {
  position: absolute; top: 16px; left: 16px;
  font-family: 'Anton', sans-serif; font-size: 14px; color: #D62828; z-index: 1;
}
.categoria-body { padding: 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.categoria-title { font-family: 'Anton', sans-serif; font-size: 26px; text-transform: uppercase; margin: 0; }
.categoria-link { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #D62828; }

/* Telhas */
.telhas-section { background: #101010; }
.telhas-layout { display: flex; gap: 2px; flex-wrap: wrap; background: #333333; }
.telhas-list { flex: 1; min-width: min(240px, 100%); display: flex; flex-direction: column; background: #101010; }
.telha-btn {
  text-align: left; background: transparent; border: none; border-left: 3px solid transparent;
  color: #F5F5F5; padding: 22px 24px; cursor: pointer; font-family: 'Inter', sans-serif; width: 100%;
}
.telha-btn:hover { background: #1a1a1a; }
.telha-btn.active { background: #1a1a1a; border-left-color: #D62828; }
.telha-btn-name { font-family: 'Anton', sans-serif; font-size: 18px; text-transform: uppercase; }
.telha-detail { flex: 2.2; min-width: min(320px, 100%); background: #0e0e0e; display: flex; flex-direction: column; }
.telha-detail-img { aspect-ratio: 16 / 9; position: relative; }
.telha-detail-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; }

/* Estruturas (perfis) */
.perfis-grid { display: flex; gap: 2px; flex-wrap: wrap; background: #333333; }
.perfil-card { flex: 1; min-width: min(260px, 100%); background: #0e0e0e; display: flex; flex-direction: column; }
.perfil-img-wrap { aspect-ratio: 3 / 4; position: relative; }
.perfil-num {
  position: absolute; top: 16px; left: 16px;
  font-family: 'Anton', sans-serif; font-size: 14px; color: #D62828; z-index: 1;
}
.perfil-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.perfil-title { font-family: 'Anton', sans-serif; font-size: 22px; text-transform: uppercase; margin: 0; }
.perfil-rule { width: 28px; height: 2px; background: #D62828; }
.perfil-link { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #D62828; }

/* Ferragens */
.ferragens {
  background: #101010; flex-direction: row; gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap; align-items: center;
}
.ferragens-img { flex: 1.1; min-width: min(320px, 100%); aspect-ratio: 4 / 3; position: relative; }
.ferragens-text { flex: 1; min-width: min(320px, 100%); display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-family: 'Anton', sans-serif; font-size: 20px; color: #D62828; letter-spacing: 0.03em; }

/* Pré-moldados */
.premoldados { background: linear-gradient(180deg, #070707, #150606); }
.premoldados-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 2px; background: #333333; }
.premoldado-card { background: #0e0e0e; display: flex; flex-direction: column; }
.premoldado-img-wrap { aspect-ratio: 1 / 1; position: relative; }
.premoldado-body { padding: 22px; }
.premoldado-title { font-family: 'Anton', sans-serif; font-size: 20px; text-transform: uppercase; margin: 0; }
.premoldados .btn-primary { align-self: flex-start; }

/* Diferenciais */
.diferenciais-list { display: flex; flex-direction: column; }
.diferencial-item { display: flex; gap: 28px; align-items: flex-start; padding: 26px 0; border-top: 1px solid #333333; flex-wrap: wrap; }
.diferencial-num { font-family: 'Anton', sans-serif; font-size: clamp(36px, 5vw, 54px); color: #D62828; min-width: 90px; }
.diferencial-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: min(220px, 100%); }
.diferencial-title { font-family: 'Anton', sans-serif; font-size: 22px; text-transform: uppercase; margin: 0; }
.diferencial-desc { color: #B8B8B8; font-size: 15px; margin: 0; }

/* Entregas */
.entregas { background: #101010; align-items: center; text-align: center; }
.entregas-text { display: flex; flex-direction: column; gap: 18px; align-items: center; max-width: 700px; margin: 0 auto; }

/* Orçamento form */
.orcamento-form {
  background: #101010; border: 1px solid #333333; padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 22px; max-width: 900px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.field {
  background: #070707; border: 1px solid #333333; color: #F5F5F5;
  padding: 16px; font-size: 15px; width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field:focus { border-color: #D62828; outline: none; box-shadow: 0 0 0 3px rgba(214,40,40,0.15); }
textarea.field { resize: vertical; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field[aria-invalid="true"] { border-color: #D62828; }
.field-error {
  color: #FF6B6B; font-size: 13px; line-height: 1.4; min-height: 0;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.field-error:empty { display: none; }
.field-error:not(:empty) { opacity: 1; transform: translateY(0); }
.form-checks { display: flex; flex-direction: column; gap: 10px; }
.form-checks-label { font-size: 13px; color: #B8B8B8; text-transform: uppercase; letter-spacing: 0.05em; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-item {
  display: flex; align-items: center; gap: 8px; background: #070707; border: 1px solid #333333;
  padding: 10px 14px; font-size: 13px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.checkbox-item:has(input:checked) { border-color: #D62828; background: #1a0f0f; }
.orcamento-form .btn-primary {
  align-self: flex-start; font-family: inherit; transition: background 0.25s ease, transform 0.15s ease;
}
.orcamento-form .btn-primary:active { transform: scale(0.98); }
.orcamento-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  font-size: 14px; color: #6BCB77; min-height: 0; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.form-status:empty { display: none; }
.form-status:not(:empty) { opacity: 1; transform: translateY(0); }
.form-status.is-error { color: #FF6B6B; }

/* Encerramento */
.encerramento {
  text-align: center; align-items: center; background: #101010;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 56px); gap: 28px;
}
.contact-name { font-size: 15px; color: #F5F5F5; font-weight: 600; }
.logo-footer { margin-top: 20px; }
.closing-tag { font-family: 'Anton', sans-serif; font-size: 13px; letter-spacing: 0.12em; color: #B8B8B8; }

/* Footer */
.site-footer {
  padding: 48px clamp(20px, 6vw, 56px); border-top: 1px solid #333333;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
  font-size: 13px; color: #B8B8B8;
}
.footer-col { display: flex; flex-direction: column; gap: 6px; min-width: 160px; }
.footer-col:first-child { min-width: min(220px, 100%); }
.footer-nav a, .footer-col a { color: #B8B8B8; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 400;
  background: #D62828; border-radius: 50px; display: flex; align-items: center; gap: 10px;
  padding: 16px; color: #F5F5F5; box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.whatsapp-fab::before {
  content: '';
  position: absolute; inset: 0; border-radius: 50px;
  background: #D62828;
  animation: fab-pulse 2.2s ease-out infinite;
  z-index: -1;
}
.whatsapp-fab:hover { background: #8F1118; }
.whatsapp-fab-text { font-size: 13px; font-weight: 700; white-space: nowrap; }

@keyframes fab-pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab::before { animation: none; display: none; }
}

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

@media (max-width: 900px) {
  .empresa, .ferragens { flex-direction: column; }
  .ferragens-img { width: 100%; aspect-ratio: 16 / 10; }

  .telha-detail { flex-basis: 100%; }
  .telhas-list { flex-basis: 100%; }
}

@media (max-width: 700px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { text-align: center; }

  .footer-col { min-width: 45%; }

  .whatsapp-fab-text { display: none; }
  .whatsapp-fab { padding: 14px; }
}

@media (max-width: 380px) {
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 10px; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .checkbox-row { gap: 8px; }
  .checkbox-item { flex: 1 1 auto; }

  .diferencial-item { gap: 16px; }
  .diferencial-num { min-width: 56px; font-size: 32px; }

  .footer-col { min-width: 100%; }
}
