/* =========================================================
   Isoterme Isolamentos Térmicos — Design System
   Paleta: azul industrial (confiança) + laranja (calor/CTA)
   ========================================================= */
:root {
  /* Paleta baseada na identidade visual real da Isoterme (logo vermelha/grafite) */
  --blue-900: #232323;   /* grafite escuro — headers, hero, footer */
  --blue-800: #2e2e2e;
  --blue-700: #474747;
  --blue-600: #c62328;   /* usado em bordas de foco — vermelho da marca */
  --blue-100: #fceceb;   /* tinta clara de vermelho para fundos sutis */
  --orange-600: #c62328; /* vermelho principal da marca — CTA / destaque */
  --orange-500: #e0393b; /* vermelho mais claro — hover */
  --orange-100: #fceceb;
  --gray-900: #232323;
  --gray-700: #4a4a4a;
  --gray-500: #767676;
  --gray-200: #e2e2e2;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --success: #1e8e5a;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(20,20,20,0.08);
  --shadow-md: 0 6px 20px rgba(20,20,20,0.12);
  --shadow-lg: 0 16px 40px rgba(20,20,20,0.18);
  --max-width: 1180px;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Compensa a altura do header fixo (topbar + nav) ao pular para uma âncora,
   assim a seção não fica escondida atrás do menu */
section[id] { scroll-margin-top: 110px; }
.hero-card[id] { scroll-margin-top: 110px; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  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 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--blue-900);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--orange-600); display: inline-block; }

.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--blue-900); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }

.text-center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--gray-700); max-width: 640px; }
.lede.center { margin: 0 auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange-600); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--orange-500); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--blue-700); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-100); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--blue-900);
  color: var(--white);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--blue-900); }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; color: var(--orange-600); text-transform: uppercase; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-footer {
  display: inline-flex; align-items: center;
  background: var(--white); border-radius: 8px;
  padding: 8px 12px; margin-bottom: 14px;
}
.brand-footer .brand-logo { height: 34px; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }
nav.main-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; }
nav.main-nav a { 
  display: inline-flex; 
  align-items: center; 
  font-weight: 600; 
  font-size: 0.95rem; 
  color: var(--gray-700); 
  padding: 6px 0; 
  border-bottom: 2px solid transparent; 
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--blue-800); border-color: var(--orange-600); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--blue-800); font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--blue-900); }

/* ---------- Dropdown "Serviços" ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown .caret { font-size: 0.65rem; transition: transform 0.15s ease; }
/* Especificidade maior que "nav.main-nav ul" (2 classes > 1 classe+2 tags) para garantir que o submenu
   comece SEMPRE escondido por padrão, e só apareça via :hover ou .js-open (regras abaixo). */
nav.main-nav .dropdown-menu {
  display: none;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  position: absolute;
  top: 100%;
  left: -14px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 230px;
  width: max-content;
  max-width: 260px;
  z-index: 200;
}
.dropdown-menu li { margin: 0; width: 100%; }
.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-bottom: none !important;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.dropdown-menu a:hover, .dropdown-menu a.active { background: var(--gray-100); color: var(--orange-600); }
@media (min-width: 721px) and (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .dropdown-menu { display: flex; }
  .nav-dropdown:hover .caret { transform: rotate(180deg); }
}
/* Telas grandes sem mouse real (tablet/notebook touchscreen): abre por toque via JS, não por :hover preso */
@media (min-width: 721px) {
  .nav-dropdown.js-open .dropdown-menu { display: flex; }
  .nav-dropdown.js-open .caret { transform: rotate(180deg); }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(198,35,40,0.25), transparent 45%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lede { color: rgba(255,255,255,0.86); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hero-trust-item .num { font-size: 1.6rem; font-weight: 800; color: var(--white); display: block; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--gray-900);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card p.small { color: var(--gray-500); font-size: 0.88rem; margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; color: var(--gray-700); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-600);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 0.78rem; color: var(--gray-500); margin-top: 10px; text-align: center; }
.form-success {
  display: none;
  background: #eafaf1; border: 1.5px solid var(--success);
  color: var(--success); padding: 16px; border-radius: 8px;
  font-weight: 600; text-align: center; margin-top: 12px;
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--orange-100); color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--gray-700); font-size: 0.94rem; }
.card-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-600); font-size: 0.9rem; }

.service-card { border-left: 4px solid var(--orange-600); }

/* ---------- Stats ---------- */
.stats-bar { background: var(--blue-800); color: var(--white); padding: 36px 0; }
.stats-bar .grid-4 { text-align: center; }
.stats-bar .stat-num { font-size: 2.2rem; font-weight: 800; color: var(--orange-500); }
.stats-bar .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.testimonial-stars { color: var(--orange-500); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-name { font-weight: 700; margin-top: 14px; }
.testimonial-role { font-size: 0.85rem; color: var(--gray-500); }

/* ---------- Gallery (Obras) ---------- */
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.gallery-item .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--gray-700); font-size: 0.9rem; text-align: center; padding: 16px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item .tag {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(35,35,35,0.85); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 5px 10px; border-radius: 20px;
}
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 9px 18px; border-radius: 20px; border: 1.5px solid var(--gray-200);
  background: var(--white); font-weight: 600; font-size: 0.85rem; cursor: pointer;
  color: var(--gray-700);
}
.filter-btn.active { background: var(--blue-900); color: var(--white); border-color: var(--blue-900); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--gray-200); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; color: var(--blue-900); }
.faq-q .plus { font-size: 1.4rem; color: var(--orange-600); transition: transform 0.2s ease; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; color: var(--gray-700); font-size: 0.94rem; }
.faq-item.open .faq-a { max-height: 900px; padding-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.92); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.78); padding: 56px 0 24px; }
footer.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
footer .grid-4 { gap: 32px; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; font-size: 0.9rem; }
footer a:hover { color: var(--orange-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white);
  padding: 14px 20px; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  font-weight: 700; font-size: 0.92rem;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Breadcrumb / page hero ---------- */
.page-hero { background: var(--blue-900); color: var(--white); padding: 46px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.badge {
  display: inline-block; background: var(--blue-100); color: var(--blue-700);
  font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  footer .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  nav.main-nav ul { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .topbar-links { display: none; }
  .hero { padding: 40px 0 56px; }
  .section { padding: 48px 0; }
}

/* Mobile nav drawer */
nav.main-nav.open ul {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); padding: 16px 24px; box-shadow: var(--shadow-md);
  max-height: 80vh; overflow-y: auto;
}
nav.main-nav.open .dropdown-menu {
  display: block; position: static; box-shadow: none;
  padding: 4px 0 4px 14px; min-width: auto; margin-top: 2px;
}
nav.main-nav.open .dropdown-menu a { padding: 8px 10px; font-size: 0.87rem; }
nav.main-nav.open .nav-dropdown .caret { display: none; }