/* Triplan Engenharia — folha de estilo principal */
:root {
  --navy: #162d3d;
  --navy-2: #324158;
  --red: #e00404;
  --red-dark: #b80303;
  --blue: #2d56aa;
  --light: #f7f7f7;
  --gray: #545454;
  --gray-light: #999997;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(22, 45, 61, .12);
  --container: 1140px;
  --header-h: 84px;
  --font-title: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Heebo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 400; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--navy); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy-2); color: #dfe4ec; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; }

/* Título com traço vermelho, como no site original */
.title { position: relative; padding-bottom: 14px; margin-bottom: 36px; }
.title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 50px; height: 3px; background: var(--red);
}
.center .title::after, .title.center::after { left: 50%; transform: translateX(-50%); }

/* Botões */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 2px;
  font-family: var(--font-title); font-weight: 700; font-size: .95rem;
  background: var(--red); color: var(--white); border: 2px solid var(--red);
  cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); text-decoration: none; transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--navy { background: var(--navy-2); border-color: var(--navy-2); }
.btn--navy:hover { background: var(--navy); border-color: var(--navy); }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  font-family: var(--font-title); font-size: .8rem; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy-2); padding: 6px 0; position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--red); transition: width .25s;
}
.nav__list a:hover, .nav__list a.active { color: var(--red); text-decoration: none; }
.nav__list a:hover::after, .nav__list a.active::after { width: 100%; }
.nav__phone {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border: 1px solid var(--navy-2); border-radius: 30px; color: var(--navy-2);
  font-weight: 500; font-size: .95rem; white-space: nowrap;
}
.nav__phone:hover { background: var(--navy-2); color: var(--white); text-decoration: none; }
.nav__phone svg { width: 18px; height: 18px; fill: currentColor; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero da página inicial */
.hero {
  background: #e9eef3 url("../img/hero.jpg") right center / cover no-repeat;
  min-height: min(calc(100vh - var(--header-h)), 46vw, 680px);
  display: flex; align-items: center;
}
.hero h1 { color: var(--navy-2); margin-bottom: 30px; }
.hero h1 b { font-weight: 800; color: var(--navy); }

/* Faixa de título das páginas internas */
.page-banner { background: var(--navy-2); padding: 56px 0; text-align: center; }
.page-banner h1 { color: var(--white); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.page-banner h1 span { color: var(--red); }
.page-banner p { color: #cfd6e0; margin: 14px auto 0; max-width: 720px; }

/* Bloco "Sobre" da home */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.about__stats { display: flex; gap: 60px; margin: 30px 0; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-title); font-size: 3rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat span { font-size: .95rem; }
.about__art { position: relative; display: flex; justify-content: center; }
.about__art .mapa { width: 260px; opacity: .9; }
.about__art .capacete { position: absolute; width: 170px; bottom: -20px; right: 10%; }

/* Cards de serviço */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s; color: inherit;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(22, 45, 61, .18); text-decoration: none; }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #3a3a3a; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px 26px 28px; }
.card__body h3 { margin-bottom: .4em; }
.card__body p { margin: 0; font-size: .97rem; }

/* Clientes (carrossel infinito) */
.clients { overflow: hidden; position: relative; }
.clients::before, .clients::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none;
}
.clients::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.clients::after { right: 0; background: linear-gradient(-90deg, var(--white), transparent); }
.clients__track { display: flex; gap: 40px; width: max-content; animation: marquee 60s linear infinite; }
.clients:hover .clients__track { animation-play-state: paused; }
.clients__track img { width: 130px; height: 130px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.clients__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Artigos do blog */
.posts { display: grid; gap: 30px; }
.post-card {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--white);
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; color: inherit;
}
.post-card:hover { text-decoration: none; }
.post-card:hover h3 { color: var(--red); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.post-card__body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.post-card__body h3 { font-weight: 500; font-size: 1.5rem; transition: color .2s; }
.post-meta { font-size: .82rem; color: var(--gray-light); margin-bottom: 12px; }
.tag {
  display: inline-block; background: var(--blue); color: var(--white); font-size: .75rem;
  padding: 3px 10px; border-radius: 2px; margin-bottom: 12px; align-self: flex-start;
}

/* Artigo completo */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.article h2 { font-size: 1.5rem; margin-top: 1.6em; }
.article img { border-radius: var(--radius); margin: 28px 0; width: 100%; }
.article li { margin-bottom: .6em; }
.article__cta { background: var(--light); border-left: 4px solid var(--red); padding: 20px 24px; margin-top: 36px; }
.article__back { display: inline-block; margin-bottom: 24px; font-size: .9rem; }

/* Páginas Projetos e Laudos: blocos alternados */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 50px 0; border-bottom: 1px solid #eee; }
.feature:last-child { border-bottom: 0; }
.feature:nth-child(even) .feature__img { order: 2; }
.feature__img img { border-radius: var(--radius); margin: 0 auto; max-height: 360px; object-fit: contain; }
.feature ul { padding-left: 0; list-style: none; margin: 0 0 26px; }
.feature li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 10px;
  background: var(--red); border-radius: 1px;
}
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }

/* Página Sobre */
.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mvv__item { background: var(--white); padding: 34px 30px; border-top: 4px solid var(--red); box-shadow: var(--shadow); border-radius: var(--radius); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.member { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.member__avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--navy-2); color: var(--white); display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 700; font-size: 1.6rem;
}
.member__role { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); font-weight: 500; }
.member h3 { margin: 4px 0 10px; font-size: 1.15rem; }
.member p { font-size: .9rem; margin: 0; line-height: 1.6; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact__info p { display: flex; gap: 12px; align-items: flex-start; }
.contact__info svg { width: 22px; height: 22px; fill: var(--red); flex-shrink: 0; margin-top: 4px; }
.contact__map { margin-top: 24px; border: 0; width: 100%; height: 280px; border-radius: var(--radius); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .85rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd4da; border-radius: 3px;
  font: inherit; font-weight: 400; color: var(--navy); background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form__msg { grid-column: 1 / -1; padding: 12px 16px; border-radius: 3px; display: none; }
.form__msg.ok { display: block; background: #e7f6ec; color: #1c6b37; }
.form__msg.erro { display: block; background: #fdecec; color: #a01010; }

/* Portfólio */
.pdf-frame { width: 100%; height: 85vh; min-height: 600px; border: 0; box-shadow: var(--shadow); }

/* Faixa vermelha antes do rodapé */
.cta-bar { background: var(--red); color: var(--white); padding: 22px 0; }
.cta-bar .container { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; }
.cta-bar strong { color: var(--white); font-family: var(--font-title); font-size: 1.25rem; }

/* Rodapé */
.footer { background: var(--navy-2); color: #cfd6e0; padding: 50px 0 30px; font-size: .9rem; }
.footer a { color: var(--white); }
.footer__top { display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: center; }
.footer__logo img { width: 130px; }
.footer__contacts { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 14px; }
.footer__contacts a { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 500; }
.footer__contacts svg { width: 20px; height: 20px; fill: currentColor; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 22px;
}
.footer__crea { display: flex; align-items: center; gap: 10px; }
.footer__crea img { height: 22px; width: auto; }
.social { display: flex; gap: 16px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; transition: background .2s; }
.social a:hover { background: rgba(255, 255, 255, .12); }
.social svg { width: 18px; height: 18px; fill: var(--white); }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--white); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .clients__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* Responsivo */
@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--white);
    flex-direction: column; justify-content: flex-start; padding: 30px 20px; gap: 26px;
    transform: translateX(100%); transition: transform .3s; overflow-y: auto;
  }
  .menu-open .nav { transform: none; }
  .nav__list { flex-direction: column; align-items: center; gap: 18px; }
  .nav__list a { font-size: 1rem; }
  .cards, .mvv { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .about, .intro, .feature, .contact, .post-card { grid-template-columns: 1fr; gap: 30px; }
  .feature:nth-child(even) .feature__img { order: 0; }
  .about__art { display: none; }
  .footer__top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__contacts { justify-content: center; }
  .footer__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .header__logo img { height: 44px; }
  .hero { background-position: 70% center; min-height: 70vh; align-items: flex-start; padding-top: 60px; }
  .hero h1 { text-shadow: 0 0 20px rgba(255, 255, 255, .9); }
  .form { grid-template-columns: 1fr; }
  .post-card__body { padding: 24px; }
  .about__stats { gap: 30px; }
  .stat strong { font-size: 2.4rem; }
}
