/* ===========================================================
   HOME v2 — redesign baseado no handoff "Home-Hero-v2"
   Componentes prefixados .hv2-* para isolar de styles.css.
   Tipografia: Archivo (display) + Inter (corpo) + IBM Plex Mono (labels).
   Paleta reaproveitada das variáveis globais (:root em styles.css).
   =========================================================== */

.hv2 {
  --hv2-line: #e3e7ee;
  --hv2-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --hv2-display: 'Archivo', 'Inter', sans-serif;
  font-family: 'Inter', sans-serif;
}

/* utilitários compartilhados */
.hv2-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hv2-bar { width: 40px; height: 3px; background: var(--accent); border-radius: 2px; }
.hv2-eyebrow {
  font-family: var(--hv2-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}
.hv2-eyebrow--light { color: var(--accent); }
.hv2-diamond { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }

.hv2 h2 {
  font-family: var(--hv2-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--primary-dark);
  margin: 0;
}
.hv2 h3 { font-family: var(--hv2-display); }

/* ===== HERO ===== */
.hv2-hero {
  position: relative;
  background: var(--primary-dark);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hv2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: stretch;
  min-height: 640px;
}
.hv2-hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 12vw, 150px) clamp(28px, 4.5vw, 64px) clamp(48px, 5vw, 72px);
  padding-left: max(24px, calc(50vw - 556px));
}
.hv2-hero-left .hv2-bar { margin-bottom: 26px; }
.hv2-hero h1 {
  font-family: var(--hv2-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.hv2-hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 34px;
  max-width: 46ch;
}
.hv2-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.hv2-hero-stats {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.hv2-stat__num {
  font-family: var(--hv2-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #fff;
  line-height: 1;
}
.hv2-stat__label { font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 6px; letter-spacing: 0.02em; }

/* foto do hero */
.hv2-hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  margin-left: clamp(-140px, -7vw, -70px); /* foto invade levemente a coluna do texto */
  background: #0d2142; /* fallback enquanto a foto não está disponível */
}
.hv2-hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hv2-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--primary-dark) 0%, rgba(15, 37, 72, 0.82) 18%, rgba(15, 37, 72, 0.42) 40%, rgba(15, 37, 72, 0.12) 60%, transparent 80%);
}
.hv2-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 37, 72, 0.18), transparent 30%, transparent 70%, rgba(15, 37, 72, 0.25));
}
.hv2-proof {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 330px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 12px 16px 12px 12px;
  box-shadow: 0 16px 40px rgba(8, 25, 51, 0.35);
  backdrop-filter: blur(4px);
}
.hv2-proof img { width: 62px; height: 62px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: #e3e7ee; }
.hv2-proof__label { font-family: var(--hv2-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.hv2-proof__title { font-family: var(--hv2-display); font-weight: 700; font-size: 0.9rem; color: var(--primary-dark); line-height: 1.25; }
.hv2-proof__sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }

/* ===== FAIXA DE CREDIBILIDADE ===== */
.hv2-creds { background: #fff; border-bottom: 1px solid var(--hv2-line); }
.hv2-creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hv2-cred { padding: 30px clamp(20px, 2.4vw, 34px); border-right: 1px solid #e8ecf1; }
.hv2-cred:last-child { border-right: none; }
.hv2-cred .hv2-diamond { margin-bottom: 16px; }
.hv2-cred h3 { font-weight: 700; font-size: 0.97rem; color: var(--primary-dark); margin: 0 0 6px; }
.hv2-cred p { font-size: 0.81rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.hv2-cred a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ===== SEÇÃO GENÉRICA ===== */
.hv2-section { padding: clamp(56px, 7vw, 96px) 0; }
.hv2-section--gray { background: var(--bg); }
.hv2-section--white { background: #fff; }
.hv2-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hv2-section-head h2 { max-width: 18ch; }
.hv2-section-head p { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); margin: 0; max-width: 36ch; }

/* ===== SETORES (cards com foto) ===== */
.hv2-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.hv2-card {
  background: #fff;
  border: 1px solid var(--hv2-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.hv2-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.hv2-card__media { position: relative; height: 188px; overflow: hidden; background: #0d2142; }
.hv2-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.hv2-card__media--top img { object-position: top; }
.hv2-card:hover .hv2-card__media img { transform: scale(1.05); }
.hv2-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--hv2-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(15, 37, 72, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
}
.hv2-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.hv2-card__body h3 { font-weight: 700; font-size: 1.25rem; color: var(--primary-dark); margin: 0 0 10px; }
.hv2-card__body > p { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }
.hv2-feature-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.hv2-feature-list li { display: flex; gap: 9px; font-size: 0.85rem; color: #3a4856; }
.hv2-feature-list li::before { content: '→'; color: var(--accent); font-weight: 700; }
.hv2-link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--hv2-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.hv2-link:hover { color: var(--accent-dark); }

/* ===== FAIXA FÁBRICA (foto full-bleed) ===== */
.hv2-band { position: relative; overflow: hidden; background: var(--primary-darker); isolation: isolate; }
.hv2-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv2-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--primary-darker) 0%, var(--primary-darker) 16%, rgba(8, 25, 51, 0.88) 42%, rgba(8, 25, 51, 0.55) 66%, rgba(8, 25, 51, 0.22) 100%);
}
.hv2-band__inner { position: relative; z-index: 2; padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.hv2-band__content { max-width: 540px; color: #fff; }
.hv2-band__content .hv2-bar { margin-bottom: 24px; }
.hv2-band__content h2 { color: #fff; margin: 0 0 18px; max-width: 20ch; }
.hv2-band__content p { font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.65; color: rgba(255, 255, 255, 0.78); margin: 0 0 30px; }

/* ===== CONTEÚDO TÉCNICO (cards com número grande) ===== */
.hv2-content-card { background: #fff; border: 1px solid var(--hv2-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.hv2-content-card__num { display: flex; align-items: baseline; gap: 14px; padding: 28px 28px 0; }
.hv2-content-card__num b { font-family: var(--hv2-display); font-weight: 900; font-size: 3.25rem; line-height: 1; color: var(--primary-dark); }
.hv2-content-card__num span { font-family: var(--hv2-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.hv2-content-card__body { padding: 18px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.hv2-content-card__body h3 { font-weight: 700; font-size: 1.25rem; color: var(--primary-dark); margin: 0 0 10px; }
.hv2-content-card__body > p { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); margin: 0 0 18px; }

/* ===== QUALIDADE / METROLOGIA (split com foto) ===== */
.hv2-split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.hv2-split__photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: clamp(320px, 42vw, 480px);
  background: #0d2142;
  box-shadow: 0 24px 60px -16px rgba(8, 25, 51, 0.35);
}
.hv2-split__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv2-split__text .hv2-bar { margin-bottom: 24px; }
.hv2-split__text h2 { margin: 0 0 18px; max-width: 18ch; }
.hv2-split__text > p { font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.65; color: var(--text-muted); margin: 0 0 30px; max-width: 46ch; }
.hv2-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 480px; }
.hv2-metric { border-top: 2px solid var(--accent); padding-top: 14px; }
.hv2-metric b { display: block; font-family: var(--hv2-display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.75rem); color: var(--primary-dark); line-height: 1; }
.hv2-metric span { display: block; font-size: 12px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; }

/* ===== CONTATO (navy: info + form) ===== */
.hv2-contact { background: var(--primary-dark); }
.hv2-contact .hv2-split { align-items: start; gap: clamp(36px, 5vw, 72px); }
.hv2-contact__info { color: #fff; }
.hv2-contact__info .hv2-bar { margin-bottom: 24px; }
.hv2-contact__info h2 { color: #fff; margin: 0 0 18px; }
.hv2-contact__info > p { font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.65; color: rgba(255, 255, 255, 0.74); margin: 0 0 36px; max-width: 42ch; }
.hv2-channels { display: flex; flex-direction: column; gap: 20px; }
.hv2-channel { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.hv2-channel__icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.05rem; }
.hv2-channel__icon--wa { background: rgba(37, 211, 102, 0.14); border: 1px solid rgba(37, 211, 102, 0.3); color: #25d366; }
.hv2-channel__icon--mail { background: rgba(232, 160, 32, 0.14); border: 1px solid rgba(232, 160, 32, 0.3); color: var(--accent); }
.hv2-channel__icon--addr { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.hv2-channel__k { display: block; font-family: var(--hv2-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); margin-bottom: 3px; }
.hv2-channel__v { display: block; font-family: var(--hv2-display); font-weight: 700; font-size: 1rem; color: #fff; }
.hv2-channel__v--addr { font-family: 'Inter', sans-serif; font-weight: 400; font-size: 0.9rem; color: rgba(255, 255, 255, 0.88); line-height: 1.45; }

.hv2-form { background: #fff; border-radius: 16px; padding: clamp(28px, 3vw, 40px); box-shadow: 0 24px 60px -12px rgba(8, 25, 51, 0.45); }
.hv2-form h3 { font-family: var(--hv2-display); font-weight: 800; font-size: 1.3rem; color: var(--primary-dark); margin: 0 0 6px; }
.hv2-form__hint { font-size: 0.84rem; color: var(--text-muted); margin: 0 0 26px; }
.hv2-form__hint span, .hv2-req { color: var(--accent-dark); }
.hv2-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hv2-field { display: flex; flex-direction: column; }
.hv2-field--full { grid-column: span 2; }
.hv2-field label { font-size: 0.78rem; font-weight: 600; color: #3a4856; margin-bottom: 7px; }
.hv2-field input, .hv2-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: #f7f9fb;
  outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.hv2-field textarea { resize: vertical; }
.hv2-field input:focus, .hv2-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 60, 110, 0.1); background: #fff; }
.hv2-form .btn { width: 100%; margin-top: 22px; }
.hv2-form__note { font-size: 0.72rem; color: #8a97a6; text-align: center; margin: 14px 0 0; }
.hv2-form .form-success { display: none; }

/* ===== RODAPÉ ===== */
.hv2-footer { position: relative; background: var(--primary-darker); overflow: hidden; isolation: isolate; color: rgba(255, 255, 255, 0.6); }
.hv2-footer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.08; z-index: -1; }
.hv2-footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--primary-darker) 0%, rgba(8, 25, 51, 0.92) 100%); }
.hv2-footer__inner { max-width: 1160px; margin: 0 auto; padding: clamp(48px, 6vw, 72px) 24px 0; }
.hv2-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hv2-footer__brand-name { font-family: var(--hv2-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.06em; color: #fff; margin-bottom: 18px; }
.hv2-footer__brand-name span { color: var(--accent); }
.hv2-footer__brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255, 255, 255, 0.6); margin: 0 0 22px; max-width: 38ch; }
.hv2-footer__iso { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: rgba(232, 160, 32, 0.12); border: 1px solid rgba(232, 160, 32, 0.3); border-radius: 8px; }
.hv2-footer__iso span { font-family: var(--hv2-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--accent); }
.hv2-footer h4 { font-family: var(--hv2-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin: 0 0 18px; font-weight: 600; }
.hv2-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hv2-footer__col a { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s var(--ease-out); }
.hv2-footer__col a:hover { color: var(--accent); }
.hv2-footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.hv2-footer__contact a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.hv2-footer__contact a:hover { color: var(--accent); }
.hv2-footer__dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.hv2-footer__dot--wa { background: #25d366; }
.hv2-footer__dot--mail { background: var(--accent); transform: rotate(45deg); border-radius: 0; }
.hv2-footer__dot--addr { border: 1.5px solid rgba(255, 255, 255, 0.6); }
.hv2-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; }
.hv2-footer__bottom span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.hv2-footer__legal { display: flex; gap: 18px; }
.hv2-footer__legal a { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.hv2-footer__legal a:hover { color: var(--accent); }

/* ===== RESPONSIVO ===== */
@media (max-width: 980px) {
  .hv2-creds-grid { grid-template-columns: repeat(2, 1fr); }
  .hv2-cred:nth-child(2) { border-right: none; }
  .hv2-cred:nth-child(1), .hv2-cred:nth-child(2) { border-bottom: 1px solid #e8ecf1; }
  .hv2-footer__grid { grid-template-columns: 1fr 1fr; }
  .hv2-footer__brand { grid-column: span 2; }
}
@media (max-width: 880px) {
  .hv2-hero-grid { grid-template-columns: 1fr; }
  .hv2-hero-photo { min-height: 320px; order: -1; margin-left: 0; }
  .hv2-split { grid-template-columns: 1fr; }
  .hv2-contact .hv2-split__photo { display: none; }
  .hv2-form-grid { grid-template-columns: 1fr; }
  .hv2-field--full { grid-column: span 1; }
}
@media (max-width: 560px) {
  .hv2-creds-grid { grid-template-columns: 1fr; }
  .hv2-cred { border-right: none; border-bottom: 1px solid #e8ecf1; }
  .hv2-cred:last-child { border-bottom: none; }
  .hv2-hero-stats { gap: 20px; flex-wrap: wrap; }
  .hv2-footer__grid { grid-template-columns: 1fr; }
  .hv2-footer__brand { grid-column: span 1; }
  .hv2-metrics { grid-template-columns: 1fr 1fr; }
}
