/* =========================
   styles.css
   ========================= */
:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --text: #0a2540;
  --muted: #5b6b7a;
  --primary: #064169;
  --primary-press: #082b44;
  --press-buton: #00699c;
  --ring: 0 0 0 4px rgba(14, 58, 89, .15);
  --radius-pill: 9999px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* evita scroll lateral */

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 720px) 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero__content {
  padding: clamp(24px, 5vw, 64px);
}

.hero__title {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 55ch;
  font-size: clamp(16px, 1.4vw, 18px);
}

/* Botões */
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  --pad-y: 14px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .04s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
  cursor: pointer;
}

.btn:focus {
  outline: none;
  box-shadow: var(--ring);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--press-buton);
}

.btn--primary:active {
  background: var(--primary-press);
  transform: translateY(1px);
}

/* Variante “ghost” */
.btn--ghost {
  background: var(--primary);
  color: #fff;
}

.btn--ghost:hover {
  background: var(--press-buton);
}

/* Coluna da imagem */
.hero__media {
  position: relative;
  height: 100%;
  min-height: 60vh;
  margin: 0;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 248, 251, 0) 0%, rgba(246, 248, 251, 0) 55%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

/* ===== CONTAINER ===== */
.wrap {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ===== ÜBER ===== */
.about {
  padding-block: clamp(48px, 8vw, 96px);
  background: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
  gap: clamp(24px, 5vw, 56px);
}

.about__content {
  padding-inline: clamp(8px, 1vw, 16px);
}

.about__title {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--primary);
}

.about__lead {
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 62ch;
}

.about__content p {
  margin: 0 0 16px;
  max-width: 62ch;
}

.about__label {
  margin: 18px 0 8px;
  font-weight: 600;
  color: var(--text);
}

/* Bullets */
.about__bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
}

.about__bullets ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  row-gap: 10px;
  list-style: disc;
  color: var(--text);
}

/* Imagem */
.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  aspect-ratio: 4/3;
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}

/* ===== Lösungen ===== */
.solutions {
  background: var(--bg);
  padding-block: clamp(56px, 8vw, 100px);
}

.solutions__grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(560px, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

.solutions__intro {
  padding: clamp(20px, 3.6vw, 36px);
  border-radius: 0 var(--radius) var(--radius) 0;
  height: 100%;
}

.solutions__title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.solutions__lead {
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 46ch;
}

.solutions__intro p {
  margin: 0 0 18px;
  max-width: 58ch;
}

.solutions__cta {
  margin-top: 10px;
}

/* Tabela */
.solutions__tablecard {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: none;
  height: 100%;
  padding: clamp(8px, 1.2vw, 16px);
  overflow: hidden;
}

/* Tabela */
.solutions__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.solutions__table th:nth-child(1),
.solutions__table td:nth-child(1) {
  width: 27%;
}

.solutions__table th:nth-child(2),
.solutions__table td:nth-child(2) {
  width: 38%;
}

.solutions__table th:nth-child(3),
.solutions__table td:nth-child(3) {
  width: 35%;
}

.solutions__table th,
.solutions__table td {
  white-space: normal;
  word-break: break-word;
  padding: 18px 22px;
  vertical-align: top;
  border-bottom: 1px solid #e6edf3;
  color: var(--text);
}

.solutions__table thead th {
  text-align: left;
  font-weight: 700;
}

.solutions__table th:nth-child(n+2),
.solutions__table td:nth-child(n+2) {
  border-left: 1px solid #e6edf3;
}

.solutions__table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Warum Thermomatic? ===== */
.why {
  background: var(--primary);
  color: #fff;
  padding-block: clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.why__card {
  min-height: clamp(360px, 44vw, 520px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* Imagem à esquerda */
.why__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.why__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
}

.why__tint {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Painel da direita */
.why__panel {
  background: transparent;
  color: #fff;
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  align-content: center;
  gap: clamp(18px, 2.4vw, 28px);
}

.why__title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(28px, 3.8vw, 44px);
}

/* Lista com ícones */
.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
}

.why__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  column-gap: 14px;
}

.why__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* ===== Formulário HubSpot ===== */
.contact-form {
  background: var(--bg);
  padding-block: clamp(48px, 8vw, 96px);
}

.contact-form__title {
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.contact-form__lead {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 60ch;
}

#hubspotFormContainer {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.08);
  display: flex;
  justify-content: center;
}

/* Ajustes internos HubSpot */
.hs-form label {
  font-weight: 600 !important;
  color: var(--text) !important;
}

.hs-input,
input[type="text"],
input[type="email"],
textarea {
  border-radius: 10px !important;
  border: 1px solid #d3d8de !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
  width: 100% !important;
}

input[type="submit"],
.hs-button {
  background: var(--primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color .2s ease !important;
}

input[type="submit"]:hover,
.hs-button:hover {
  background: var(--primary-press) !important;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
}

.site-footer__inner {
  padding-block: clamp(36px, 8vw, 96px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

/* Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 6px;
}

.brand__mark {
  width: 180px;
  height: auto;
}

.brand__word {
  height: 28px;
  width: auto;
}

/* Linhas de texto */
.site-footer__line {
  margin: 0;
  font-weight: 300;
  font-size: clamp(16px, 1.7vw, 18px);
}

.site-footer__meta {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(14px, 1.5vw, 16px);
}

.site-footer__meta .sep {
  margin: 0 .4em;
  opacity: .9;
}

/* Email */
.site-footer__contact {
  margin: 0;
}

.site-footer__contact a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}

.site-footer__contact a:hover {
  border-bottom-color: #fff;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 980px) {

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 24px 20px 28px;
  }

  .hero__media {
    order: 2;
    height: 44vh;
    min-height: 320px;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 55%);
  }

  /* ABOUT */
  .wrap {
    padding-inline: 18px;
  }

  .about {
    background: transparent;
  }

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

  .about__media {
    order: 0;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 16/9;
    min-height: 240px;
  }

  .about__media img {
    object-position: center;
  }

  .solutions__intro {
    border-radius: var(--radius);
    height: auto;
  }

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

  .solutions__tablecard {
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 12px;
  }

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

  .why__panel {
    align-content: start;
    padding: 24px 20px 28px;
  }
}

@media (max-width: 720px) {
  .about__bullets {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .about__bullets ul {
    padding-left: 1.1rem;
    row-gap: 8px;
  }

  .about__bullets li {
    line-height: 1.6;
  }
}

@media (max-width: 540px) {
  .about {
    padding-block: 36px;
  }

  .about__content p {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .brand__mark {
    width: auto;
    height: 40px;
  }

  .brand__word {
    height: 24px;
  }
  .hero__media img{
    height: auto;
  }
  .solutions{
    padding-block: 0px ;
  }
  .btn--primary {
    text-align: center;
  }
  .solutions__tablecard{
      padding: 1px 12px;
  }
}