/* ===================================================================
   Grupo HTE — grupohte.com.br
   Identidade: gradiente azul-marinho → roxo → vermelho (logomarca)
   =================================================================== */

:root {
  --navy: #1d2f6f;
  --blue: #27418f;
  --purple: #8b2e83;
  --red: #e3273a;
  --ink: #1f2433;
  --muted: #5b6474;
  --line: #e6e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --dark: #10163a;
  --wa: #25d366;
  --wa-dark: #17a94a;
  --grad: linear-gradient(100deg, #27418f 0%, #8b2e83 55%, #e3273a 100%);
  --shadow-sm: 0 1px 3px rgba(16, 22, 58, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 22, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 22, 58, 0.16);
  --radius: 18px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: "Montserrat", "Inter", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--ink);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

/* ---------- Utilitários ---------- */

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.section-head p { color: var(--muted); font-size: 1.06rem; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.btn svg { flex-shrink: 0; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--line);
}

.btn-ghost:hover { border-color: var(--blue); transform: translateY(-2px); }

.link-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
}

.link-wa:hover { text-decoration: underline; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 46px; width: auto; }

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

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.main-nav .btn { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.hero {
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(680px 380px at 88% -10%, rgba(227, 39, 58, 0.09), transparent 65%),
    radial-gradient(720px 420px at -10% 26%, rgba(39, 65, 143, 0.10), transparent 65%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

/* Faixa de números */

.stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.stat strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { font-size: 0.9rem; color: var(--muted); font-weight: 500; }

/* ---------- Sobre ---------- */

.about { background: var(--bg-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.04rem; }

.about-text p strong { color: var(--ink); }

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  margin-bottom: 18px;
}

.feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

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

/* Faixa com foto de operação */

.quote-strip {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
  box-shadow: var(--shadow-md);
}

.quote-strip img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 35%;
}

.quote-strip figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  background: linear-gradient(180deg, rgba(16, 22, 58, 0) 30%, rgba(16, 22, 58, 0.82) 100%);
}

.quote-strip figcaption p {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  max-width: 560px;
  line-height: 1.35;
}

/* ---------- Marcas ---------- */

.brand-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}

.brand-block + .brand-block { border-top: 1px solid var(--line); }

.brand-name {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.brand-block p { color: var(--muted); margin-bottom: 16px; }

.brand-block .brand-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: #fff;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }

.chip {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(39, 65, 143, 0.08);
  border: 1px solid rgba(39, 65, 143, 0.16);
  padding: 7px 14px;
  border-radius: 999px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 20px 0 40px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card img {
  height: 150px;
  width: auto;
  margin: 0 auto 18px;
  object-fit: contain;
}

.product-card h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }

.product-card p { font-size: 0.9rem; color: var(--muted); }

.cert-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cert-banner img { width: 100%; }

/* ---------- Serviços ---------- */

.services { background: var(--bg-soft); }

.structure-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}

.structure-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.structure-photos img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 24px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

.checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.1V12a10 10 0 1 1-5.9-9.1'/%3E%3Cpath d='M22 4 12 14l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.1V12a10 10 0 1 1-5.9-9.1'/%3E%3Cpath d='M22 4 12 14l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-card img { width: 100%; height: 210px; object-fit: cover; }

.service-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }

.service-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

.service-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; flex: 1; }

/* ---------- Segmentos ---------- */

.segment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.segment-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.segment-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.segment-card img { height: 110px; width: auto; object-fit: contain; }

/* ---------- Contato ---------- */

.contact { background: var(--bg-soft); }

.contact-panel {
  background: linear-gradient(120deg, #1d2f6f 0%, #55287d 55%, #a3243c 100%);
  border-radius: 26px;
  padding: clamp(36px, 6vw, 64px);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.contact-panel h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-panel > div > p { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; max-width: 460px; }

.contact-panel .btn-wa { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); }

.contact-cards { display: grid; gap: 14px; }

.contact-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px 22px;
  backdrop-filter: blur(4px);
}

.contact-card h4 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-card p, .contact-card a { color: #fff; font-weight: 600; text-decoration: none; }

.contact-card a:hover { text-decoration: underline; }

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

.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.75); padding: 64px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-grid img { height: 44px; width: auto; margin-bottom: 18px; }

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-grid p { font-size: 0.93rem; max-width: 320px; }

.footer-grid ul { list-style: none; display: grid; gap: 10px; }

.footer-grid a { color: rgba(255, 255, 255, 0.75); text-decoration: none; font-size: 0.93rem; }

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s ease, background 0.18s ease;
}

.wa-float:hover { transform: scale(1.08); background: var(--wa-dark); }

/* ---------- Animações ---------- */

.reveal { opacity: 0; transform: translateY(20px); }

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .brand-block,
  .structure-grid,
  .contact-panel { grid-template-columns: 1fr; gap: 36px; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .feature-grid, .product-grid, .service-grid { grid-template-columns: 1fr 1fr; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .brand-block .brand-media { order: -1; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

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

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

  .main-nav .btn { margin-top: 16px; justify-content: center; }

  .nav-toggle { display: flex; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .feature-grid, .product-grid, .service-grid, .structure-photos { grid-template-columns: 1fr; }

  .segment-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .checklist { grid-template-columns: 1fr; }

  .quote-strip img { height: 300px; }

  .hero-ctas .btn { width: 100%; justify-content: center; }
}
