/* ============================================================
   HBO ENGENHARIA — Apresentação Institucional
   Identidade: Manual da Marca (azul #253f5a, preto, cinza, branco)
   Tipografia: Montserrat
   ============================================================ */

:root {
  --azul: #253f5a;          /* azul institucional oficial */
  --azul-escuro: #1a2d42;   /* variação mais profunda */
  --azul-medio: #2f4d6e;
  --azul-claro: #3e6a99;
  --ciano: #2f9fd8;         /* acento água */
  --ciano-claro: #e8f4fb;
  --preto: #000000;
  --cinza: #5d5e5d;         /* cinza oficial da marca */
  --cinza-claro: #f4f6f9;
  --branco: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(37, 63, 90, .12);
  --shadow-sm: 0 6px 20px rgba(37, 63, 90, .10);
  --font: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: #2b3644;
  background: var(--branco);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- TIPOGRAFIA GERAL ---------- */
.section { padding: 96px 0; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  font-weight: 700; color: var(--ciano);
}
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--ciano); }
.section-tag-light { color: #9fd0ef; }
.section-tag-light::before { background: #9fd0ef; }
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800; color: var(--azul);
  line-height: 1.2; margin: 14px 0 18px;
}
.section-title-light { color: var(--branco); }
.section-lead { font-size: 1.05rem; color: #5b6a7c; max-width: 720px; }
.section-lead-light { color: #c7d6e4; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-lead { margin: 0 auto; }
.section-head .section-tag::before, .section-head .section-tag::after {
  content: ''; width: 28px; height: 2px; background: var(--ciano); }
.section-head .section-tag::after { margin-left: 0; }
.section-head .section-tag { justify-content: center; }
.section-head .section-tag::before { display: none; }
.section-head .section-tag::after { display: inline-block; width: 28px; }

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-accent {
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-escuro));
  color: var(--branco); box-shadow: 0 10px 26px rgba(37,63,90,.35);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,63,90,.4); }
.btn-outline {
  background: transparent; color: var(--branco);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.btn-light {
  background: var(--branco); color: var(--azul); box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.btn-light:hover { transform: translateY(-3px); }
.btn-sm { padding: 11px 22px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--azul-escuro); color: #cfe1ef; font-size: .8rem;
  padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 14px; height: 14px; color: var(--ciano); }
@media (max-width: 720px) { .topbar-right { display: none; } .topbar-inner { justify-content: center; } }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(37,63,90,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--branco); border: 2px solid var(--azul);
  display: grid; place-items: center; overflow: hidden;
}
.brand-logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: 1.55rem; font-weight: 900; color: var(--azul); letter-spacing: .04em;
}
.brand-text em {
  font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .34em;
  color: var(--ciano); text-transform: uppercase;
}
.nav { display: flex; gap: 6px; }
.nav-link {
  padding: 9px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  color: #3a4759; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--azul); background: var(--ciano-claro); }
.nav-link.active { color: var(--azul); background: var(--ciano-claro); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--azul); border-radius: 3px; transition: .3s; }
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 80vw);
    background: var(--azul-escuro); flex-direction: column; padding: 90px 30px 30px;
    transform: translateX(100%); transition: transform .35s ease; z-index: 200;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { color: #dbe7f2; font-size: 1.05rem; padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link:hover, .nav-link.active { color: var(--branco); background: rgba(255,255,255,.08); }
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,32,50,.94) 0%, rgba(37,63,90,.82) 45%, rgba(37,63,90,.38) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 80px 0 130px; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #cfe6f7; padding: 8px 18px; border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 900; color: var(--branco);
  line-height: 1.12; margin: 24px 0 20px;
}
.hero-title em { font-style: normal; color: #7fc4ea; }
.hero-sub { font-size: 1.13rem; color: #d4e2ee; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; display: block; }

/* ---------- STATS ---------- */
.stats {
  background: var(--branco); padding: 10px 0 64px; margin-top: -2px; position: relative;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--branco); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px 30px; margin-top: -66px; position: relative; z-index: 5;
  border: 1px solid #eaeff5;
}
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--azul);
  line-height: 1;
}
.stat-plus { font-size: 1.6rem; font-weight: 800; color: var(--ciano); }
.stat-item p { margin-top: 8px; color: #66758a; font-size: .9rem; font-weight: 600; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; padding: 28px 18px; } }

/* ---------- SOBRE ---------- */
.about { background: var(--branco); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.about-card {
  position: absolute; left: -28px; bottom: 28px; background: var(--branco);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 24px; max-width: 300px; border-left: 4px solid var(--ciano);
}
.about-card strong { color: var(--azul); font-size: .98rem; display: block; margin-bottom: 4px; }
.about-card p { font-size: .86rem; color: #5b6a7c; }
.about-points { margin-top: 30px; display: grid; gap: 24px; }
.about-point { display: flex; gap: 18px; align-items: flex-start; }
.point-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: var(--ciano-claro); color: var(--azul-medio);
  display: grid; place-items: center;
}
.point-icon svg { width: 26px; height: 26px; }
.about-point h3 { color: var(--azul); font-size: 1.02rem; margin-bottom: 3px; }
.about-point p { font-size: .92rem; color: #5b6a7c; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { left: 16px; bottom: 16px; }
}

/* ---------- SERVIÇOS ---------- */
.services { background: var(--cinza-claro); }
.service-block { margin-bottom: 60px; }
.service-block:last-child { margin-bottom: 0; }
.service-block-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 28px;
}
.service-block-icon {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--azul-medio), var(--azul-escuro));
  color: var(--branco); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37,63,90,.3);
}
.service-block-icon svg { width: 30px; height: 30px; }
.service-block-head h3 { color: var(--azul); font-size: 1.35rem; font-weight: 800; }
.service-block-head p { color: #5b6a7c; font-size: .92rem; }
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: var(--branco); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); border: 1px solid #eaeff5;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--ciano), var(--azul-medio));
  opacity: 0; transition: opacity .25s;
}
.card:hover::before { opacity: 1; }
.card-num {
  position: absolute; top: 14px; right: 18px; font-weight: 900; font-size: 2.4rem;
  color: #eef2f7; line-height: 1;
}
.card-icon {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 18px;
  background: var(--ciano-claro); color: var(--azul-medio);
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.card-icon svg { width: 30px; height: 30px; }
.card:hover .card-icon { background: var(--azul); color: var(--branco); }
.card h4 { color: var(--azul); font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; line-height: 1.35; }
.card p { font-size: .88rem; color: #5b6a7c; }
.card-featured { background: linear-gradient(160deg, #ffffff 0%, #f2f8fc 100%); }
.card-featured .card-icon { background: var(--azul); color: var(--branco); }
@media (max-width: 1024px) { .cards-grid, .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid, .cards-grid-3 { grid-template-columns: 1fr; } }

/* ---------- FROTA ---------- */
.fleet { background: var(--branco); }
.fleet-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.fleet-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); min-height: 320px; cursor: pointer;
}
.fleet-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; position: absolute; inset: 0; }
.fleet-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,32,50,.85) 0%, rgba(16,32,50,.1) 45%, transparent 70%);
}
.fleet-item:hover img { transform: scale(1.06); }
.fleet-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 24px;
  color: var(--branco);
}
.fleet-item figcaption h4 { font-size: 1.08rem; font-weight: 800; margin-bottom: 4px; }
.fleet-item figcaption p { font-size: .85rem; color: #d9e6f2; }
.fleet-item-main { min-height: 420px; grid-row: span 2; }
@media (max-width: 940px) {
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .fleet-item-main { grid-row: auto; grid-column: span 2; min-height: 340px; }
}
@media (max-width: 600px) { .fleet-grid { grid-template-columns: 1fr; } .fleet-item-main { grid-column: auto; } }

/* ---------- POR QUE A HBO ---------- */
.why {
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(47,159,216,.18), transparent 60%),
    linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul) 60%, var(--azul-medio) 100%);
}
.why-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.why-list { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #8fd0f4; display: grid; place-items: center;
}
.why-icon svg { width: 23px; height: 23px; }
.why-item h4 { color: var(--branco); font-size: .98rem; margin-bottom: 3px; }
.why-item p { font-size: .85rem; color: #bfd2e2; }
.why-media { position: relative; }
.why-media img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.35); aspect-ratio: 4/4.6; object-fit: cover; width: 100%; }
.why-badge {
  position: absolute; right: -20px; bottom: 34px; background: var(--ciano);
  color: var(--branco); border-radius: var(--radius); padding: 20px 26px;
  box-shadow: 0 14px 34px rgba(0,0,0,.3); text-align: center;
}
.why-badge strong { font-size: 2rem; font-weight: 900; display: block; line-height: 1; }
.why-badge p { font-size: .8rem; margin-top: 4px; font-weight: 600; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .why-badge { right: 12px; }
}

/* ---------- CTA ---------- */
.cta { background: var(--ciano); position: relative; overflow: hidden; }
.cta::before, .cta::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.cta::before { width: 340px; height: 340px; top: -170px; right: -60px; }
.cta::after { width: 260px; height: 260px; bottom: -130px; left: -40px; }
.cta-inner {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; padding: 58px 0; flex-wrap: wrap;
}
.cta h2 { color: var(--branco); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 6px; }
.cta p { color: #e6f6fe; font-size: 1rem; }

/* ---------- CONTATO ---------- */
.contact { background: var(--cinza-claro); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-list { margin-top: 34px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px;
  background: var(--branco); color: var(--azul-medio); box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-list small { display: block; color: #8494a7; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-list strong { color: var(--azul); font-size: 1rem; }
.contact-form {
  background: var(--branco); border-radius: var(--radius); padding: 38px;
  box-shadow: var(--shadow); border: 1px solid #eaeff5;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .82rem; font-weight: 700; color: var(--azul); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid #dfe7ef; border-radius: 10px;
  font-family: var(--font); font-size: .92rem; color: #2b3644; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--azul-medio); box-shadow: 0 0 0 4px rgba(37,63,90,.1);
  background: var(--branco);
}
.form-field textarea { resize: vertical; }
.form-note { margin-top: 12px; font-size: .88rem; font-weight: 600; text-align: center; }
.form-note.ok { color: #1b8a4b; }
.form-note.err { color: #c0392b; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--azul-escuro); color: #b9c9d9; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding: 70px 0 50px;
}
.brand-footer .brand-logo { border-color: rgba(255,255,255,.3); background: var(--branco); }
.brand-footer .brand-text strong { color: var(--branco); }
.brand-footer .brand-text em { color: #8fd0f4; }
.footer-brand > p { margin-top: 18px; font-size: .9rem; max-width: 320px; }
.footer-col h4 {
  color: var(--branco); font-size: .98rem; font-weight: 800; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #8fd0f4; padding-left: 5px; }
.footer-contact li { font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  font-size: .8rem; color: #8ba3ba; text-align: center;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: var(--branco);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .25s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.1); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

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