/* =========================================================
   MASTERTEC — LANDING PAGE VÁLVULAS E CONEXÕES
   CSS organizado conforme o HTML atual
   ========================================================= */

/* =========================================================
   CAMADA 1 — VARIÁVEIS
   ========================================================= */

:root {
  --navy: #001a38;
  --navy-soft: #06264a;
  --navy-light: #0a2c52;
  --orange: #ff8426;
  --orange-light: #ff9b52;
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f6;
  --gray-200: #d5dce5;
  --gray-400: #8c98a8;
  --gray-600: #556274;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --container: 1344px;
  --shadow-hard: 8px 8px 0 var(--navy);
  --shadow-orange: 8px 8px 0 var(--orange);
}

/* =========================================================
   CAMADA 2 — RESET E BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background:
    linear-gradient(rgba(0, 18, 40, 0.88), rgba(0, 18, 40, 0.88)),
    url("imagem fundo/Fundo azul.png") center center / cover fixed no-repeat;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.04;
}

h1 {
  max-width: 948px;
  font-size: clamp(55px, 6.8vw, 98px);
  letter-spacing: -2px;
}

h2 {
  font-size: clamp(41px, 5vw, 70px);
  letter-spacing: -1px;
}

h3 {
  font-size: 28px;
}

/* =========================================================
   CAMADA 3 — LAYOUT GERAL
   ========================================================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 94px 0;
}

.section-top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: end;
  gap: 53px;
  margin-bottom: 58px;
}

.section-top > p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.section-top.light {
  color: var(--white);
}

.section-top.light > p {
  color: #c9d4e1;
}

.section-index {
  display: block;
  margin-bottom: 19px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-index.dark {
  color: var(--navy);
}

/* =========================================================
   CAMADA 4 — BOTÕES
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-orange {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.btn-orange:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

.btn-transparent {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
}

.btn-transparent:hover {
  color: var(--navy);
  background: var(--white);
}

.btn-black {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.btn-black:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.btn-full {
  width: 100%;
}

/* =========================================================
   CAMADA 5 — CABEÇALHO
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 30px;
}

.brand {
  width: 234px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.header-cta {
  flex: 0 0 auto;
  padding: 12px 17px;
  color: var(--white);
  background: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

/* =========================================================
   CAMADA 6 — HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 732px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 732px;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0, 16, 37, 0.97) 0%,
      rgba(0, 24, 53, 0.84) 42%,
      rgba(0, 27, 59, 0.42) 78%,
      rgba(0, 27, 59, 0.18) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 110px;
  padding-bottom: 91px;
}

.hero-content p {
  max-width: 732px;
  margin: 26px 0 34px;
  color: #e7edf5;
  font-size: 19px;
}

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

.hero-side-info {
  position: absolute;
  right: 24px;
  bottom: 34px;
  z-index: 2;
  display: flex;
  gap: 26px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
}

/* =========================================================
   CAMADA 7 — DESTAQUES
   ========================================================= */

.highlights {
  background: var(--orange);
  border-top: 4px solid var(--navy);
  border-bottom: 4px solid var(--navy);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.highlights-grid div {
  padding: 24px 22px;
  border-right: 2px solid var(--navy);
}

.highlights-grid div:last-child {
  border-right: 0;
}

.highlights-grid strong,
.highlights-grid span {
  display: block;
  color: var(--white);
}

.highlights-grid strong {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 19px;
  text-transform: uppercase;
}

.highlights-grid span {
  margin-top: 4px;
  font-size: 13px;
}

/* =========================================================
   CAMADA 8 — WHATSAPP FLUTUANTE
   ========================================================= */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: var(--whatsapp);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 0 0 4px rgba(37, 211, 102, 0.12);
  transition: 0.2s ease;
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.whatsapp-float:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-4px) scale(1.04);
}

/* =========================================================
   CAMADA 9 — LINHAS DE PRODUTOS
   ========================================================= */

.products {
  background: rgba(247, 249, 252, 0.98);
  backdrop-filter: blur(2px);
}

.material-line {
  margin-bottom: 38px;
  padding: 26px;
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-hard);
}

.material-line:last-child {
  margin-bottom: 0;
}

.material-line-header {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
}

.material-line-number {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: var(--white);
  background: var(--orange);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
}

.material-line-tag {
  display: block;
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.material-line-copy h3 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 50px);
}

.material-line-copy p {
  max-width: 900px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.7;
}

.material-line-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.material-line-list li {
  position: relative;
  padding-left: 16px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.material-line-list li::before {
  content: "■";
  position: absolute;
  top: 2px;
  left: 0;
  color: var(--orange);
  font-size: 8px;
}

.material-carousel {
  overflow: hidden;
}

.material-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.material-product-card {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 2px solid var(--navy);
}

.material-product-card img {
  width: 100%;
  height: 330px;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.material-product-card figcaption {
  padding: 14px 14px 15px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* =========================================================
   CAMADA 10 — SEGMENTOS
   ========================================================= */

.industries {
  color: var(--white);
  background: rgba(0, 26, 56, 0.99);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #35506d;
  border-left: 1px solid #35506d;
}

.industry-card {
  min-height: 228px;
  padding: 29px;
  border-right: 1px solid #35506d;
  border-bottom: 1px solid #35506d;
}

.industry-card > span {
  color: var(--orange);
  font-family: "Oswald", Arial, sans-serif;
  font-size: 36px;
}

.industry-card h3 {
  margin: 20px 0 12px;
  font-size: 28px;
}

.industry-card p {
  margin-bottom: 0;
  color: #c9d4e1;
  font-size: 13px;
}

/* =========================================================
   CAMADA 11 — VENDA TÉCNICA E MAPA
   ========================================================= */

.technical {
  background: rgba(247, 249, 252, 0.98);
  backdrop-filter: blur(2px);
}

.technical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.technical-grid > iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 3px solid var(--navy) !important;
  box-shadow: 5px 5px 0 var(--orange);
  background: var(--white);
}

.technical-content p {
  margin: 24px 0;
  color: var(--gray-600);
  font-size: 17px;
}

.technical-content ul {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.technical-content li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 16px;
  font-weight: 700;
}

.technical-content li::before {
  content: "■";
  margin-right: 12px;
  color: var(--orange);
}

/* =========================================================
   CAMADA 12 — BANNER INDUSTRIAL
   ========================================================= */

.industrial-banner {
  position: relative;
  min-height: 564px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.industrial-banner > img,
.industrial-banner-overlay {
  position: absolute;
  inset: 0;
}

.industrial-banner > img {
  width: 100%;
  height: 100%;
  min-height: 564px;
  object-fit: cover;
  object-position: center;
}

.industrial-banner-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0, 20, 44, 0.95),
      rgba(0, 28, 62, 0.56)
    );
}

.industrial-banner-content {
  position: relative;
  z-index: 2;
  padding-top: 126px;
  padding-bottom: 108px;
}

.industrial-banner-content h2 {
  max-width: 850px;
}

/* =========================================================
   CAMADA 13 — CONTATO
   ========================================================= */

.contact {
  padding: 94px 0;
  color: var(--white);
  background: rgba(0, 26, 56, 0.99);
  border-top: 8px solid var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 62px;
}

.contact-copy p {
  max-width: 520px;
  margin-top: 24px;
  color: #c9d4e1;
  font-size: 17px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  margin-top: 38px;
  padding-left: 16px;
  border-left: 5px solid var(--orange);
}

.contact-direct strong {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 36px;
}

.contact-direct span {
  color: #c9d4e1;
}

.contact-form {
  padding: 35px;
  color: var(--navy);
  background: var(--white);
  box-shadow: var(--shadow-orange);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 17px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px;
  color: var(--navy);
  background: #f6f8fb;
  border: 1px solid #cbd4df;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--orange);
  border-color: var(--orange);
}

/* =========================================================
   CAMADA 14 — RODAPÉ
   ========================================================= */

.footer {
  padding: 62px 0 22px;
  color: var(--white);
  background: rgba(0, 26, 56, 0.99);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-brand img {
  width: 246px;
}

.footer h3 {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 19px;
}

.footer a,
.footer p {
  display: block;
  margin: 7px 0;
  color: #c9d4e1;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 55px;
  padding-top: 20px;
  color: #7f91a5;
  border-top: 1px solid #294562;
  font-size: 12px;
  text-align: center;
}

/* =========================================================
   CAMADA 15 — TABLETS
   ========================================================= */

@media (max-width: 1050px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 40px, var(--container));
  }

  .section {
    padding: 78px 0;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 660px;
  }

  .hero-image img {
    min-height: 660px;
  }

  .section-top,
  .technical-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .highlights-grid div:nth-child(2) {
    border-right: 0;
  }

  .material-line {
    padding: 22px;
  }

  .material-line-header {
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .material-line-number {
    width: 62px;
    height: 62px;
    font-size: 28px;
  }

  .technical-grid > iframe {
    height: 380px;
  }
}

/* =========================================================
   CAMADA 16 — CELULARES
   ========================================================= */

@media (max-width: 700px) {
  body {
    background:
      linear-gradient(rgba(0, 18, 40, 0.91), rgba(0, 18, 40, 0.91)),
      url("imagem fundo/Fundo azul.png") center top / cover scroll no-repeat;
    font-size: 12px;
  }

  .container {
    width: min(100% - 18px, var(--container));
  }

  .section {
    padding: 38px 0;
  }

  p {
    font-size: 120%;
  }

  h1 {
    font-size: clamp(30px, 10vw, 43px);
  }

  h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .header-inner {
    min-height: 52px;
  }

  .brand {
    width: 145px;
  }

  .brand img {
    max-height: 38px;
  }

  .hero {
    min-height: 590px;
  }

  .hero-image {
    overflow: hidden;
  }

  .hero-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 112%;
    height: 112%;
    min-height: 0;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%) scale(0.92);
  }

  .hero-content {
    min-height: 590px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .hero-content p {
    max-width: 92%;
    margin: 13px 0 17px;
  }

  .hero-actions {
    gap: 7px;
  }

  .hero-actions .btn {
    min-height: 37px;
    padding: 0 11px;
    font-size: 9px;
  }

  .hero-side-info {
    display: none;
  }

  .section-index {
    margin-bottom: 9px;
    font-size: 8px;
  }

  .section-top {
    gap: 9px;
    margin-bottom: 23px;
  }

  .section-top > p {
    font-size: 11px;
  }

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

  .highlights-grid div {
    padding: 11px 9px;
    border-bottom: 2px solid var(--navy);
  }

  .highlights-grid strong {
    font-size: 13px;
  }

  .highlights-grid span {
    font-size: 9px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
    border-width: 2px;
  }

  .whatsapp-float img {
    width: 30px;
    height: 30px;
  }

  .products,
  .technical {
    backdrop-filter: none;
  }

  .material-line {
    margin-bottom: 18px;
    padding: 14px;
    box-shadow: 4px 4px 0 var(--navy);
  }

  .material-line-header {
    grid-template-columns: 54px 1fr;
    gap: 12px;
    margin-bottom: 14px;
  }

  .material-line-number {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .material-line-tag {
    margin-bottom: 5px;
    font-size: 7px;
    letter-spacing: 1px;
  }

  .material-line-copy h3 {
    margin-bottom: 7px;
    font-size: 22px;
  }

  .material-line-copy p {
    margin-bottom: 9px;
    font-size: 10px;
    line-height: 1.45;
  }

  .material-line-list {
    display: grid;
    gap: 5px;
  }

  .material-line-list li {
    padding-left: 12px;
    font-size: 9px;
  }

  .material-line-list li::before {
    font-size: 6px;
  }

  .material-carousel-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .material-product-card {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }

  .material-product-card img {
    height: 330px;
    padding: 10px;
  }

  .material-product-card figcaption {
    padding: 10px 10px 11px;
    font-size: 9px;
  }

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

  .industry-card {
    min-height: 130px;
    padding: 14px;
  }

  .industry-card > span {
    font-size: 20px;
  }

  .industry-card h3 {
    margin: 8px 0 5px;
    font-size: 18px;
  }

  .industry-card p {
    font-size: 9px;
  }

  .technical-grid {
    gap: 31px;
  }

  .technical-grid > iframe {
    height: 300px !important;
  }

  .technical-content {
    padding: 5px;
  }

  .technical-content p {
    margin: 10px 0;
    font-size: 10px;
  }

  .technical-content ul {
    margin-bottom: 13px;
  }

  .technical-content li {
    padding: 6px 0;
    font-size: 9px;
  }

  .technical-content .btn {
    min-height: 36px;
    padding: 0 10px;
    font-size: 8px;
  }

  .industrial-banner {
    min-height: 300px;
  }

  .industrial-banner > img {
    min-height: 300px;
  }

  .industrial-banner-content {
    padding-top: 55px;
    padding-bottom: 45px;
  }

  .contact {
    padding: 40px 0;
  }

  .contact-grid {
    gap: 22px;
  }

  .contact-copy p {
    margin-top: 10px;
    font-size: 10px;
  }

  .contact-direct {
    margin-top: 16px;
  }

  .contact-direct strong {
    font-size: 22px;
  }

  .contact-direct span {
    font-size: 9px;
  }

  .contact-form {
    padding: 15px;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  label {
    margin-bottom: 8px;
    font-size: 8px;
  }

  input,
  select,
  textarea {
    margin-top: 4px;
    padding: 8px;
    font-size: 10px;
  }

  textarea {
    min-height: 70px;
  }

  .contact-form .btn {
    min-height: 38px;
    font-size: 9px;
  }

  .footer {
    padding-top: 30px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-brand img {
    width: 150px;
  }

  .footer h3 {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .footer a,
  .footer p {
    margin: 3px 0;
    font-size: 9px;
  }

  .footer-bottom {
    margin-top: 22px;
    font-size: 8px;
  }
}

/* =========================================================
   CAMADA 17 — TELAS MUITO PEQUENAS
   ========================================================= */

@media (max-width: 420px) {
  .hero,
  .hero-content {
    min-height: 540px;
  }

  .hero-image img {
    width: 116%;
    height: 116%;
    transform: translate(-50%, -50%) scale(0.9);
  }

  .material-product-card {
    flex-basis: 88%;
  }

  .technical-grid > iframe {
    height: 250px !important;
    border-width: 2px !important;
    box-shadow: 4px 4px 0 var(--orange);
  }

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