/* ==========================================================
   Fershipping — Prestação de serviços marítimos e offshore
   ========================================================== */
:root {
  --azul: #0052a3;
  --azul-escuro: #003a78;
  --azul-noite: #021f45;
  --azul-claro: #2f8be6;
  --ciano: #59b7ff;
  --branco: #ffffff;
  --cinza: #f3f6fb;
  --texto: #1b2a3d;
  --texto-suave: #5a6b80;
  --whatsapp: #25d366;
  --raio: 14px;
  --sombra: 0 10px 30px rgba(2, 31, 69, .12);
  --max: 1200px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section--cinza { background: var(--cinza); }
.section--azul { background: var(--azul); color: var(--branco); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul-claro); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--azul .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--ciano); }
.titulo { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--texto-suave); max-width: 640px; }
.section--azul .lead { color: rgba(255,255,255,.85); }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primario { background: var(--azul); color: var(--branco); box-shadow: 0 8px 20px rgba(0,82,163,.3); }
.btn--primario:hover { background: var(--azul-escuro); }
.btn--branco { background: var(--branco); color: var(--azul); }
.btn--contorno { border-color: rgba(255,255,255,.7); color: var(--branco); }
.btn--contorno:hover { background: var(--branco); color: var(--azul); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled, .header--solido { background: var(--azul-escuro); box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--branco); }
.logo img { height: 46px; width: auto; }
.logo span { font-weight: 800; font-style: italic; font-size: 1.25rem; letter-spacing: .02em; }
.logo small { display: block; font-size: .66rem; font-weight: 400; font-style: normal; opacity: .8; letter-spacing: .04em; }

.nav ul { display: flex; align-items: center; gap: 6px; }
.nav a {
  display: block; padding: 10px 16px; color: rgba(255,255,255,.88); font-weight: 500; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { color: var(--branco); background: rgba(255,255,255,.1); }
.nav a.ativo { color: var(--branco); background: rgba(255,255,255,.16); }
.nav .btn { margin-left: 10px; padding: 10px 22px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-toggle span { width: 26px; height: 2px; background: var(--branco); transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  color: var(--branco); overflow: hidden;
  background: linear-gradient(100deg, var(--azul-noite) 0%, rgba(0,58,120,.92) 38%, rgba(0,82,163,.35) 100%),
              url("../img/hero-navio.jpg") right center / cover no-repeat, var(--azul);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: linear-gradient(to top, rgba(2,31,69,.6), transparent);
}
.hero .container { position: relative; z-index: 1; padding-top: var(--header-h); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin-bottom: 22px; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--ciano); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 560px; opacity: .9; margin-bottom: 34px; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); gap: 40px; margin-top: 60px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.2); width: fit-content;
}
.hero__stats strong { display: block; font-size: 1.6rem; }
.hero__stats span { font-size: .9rem; opacity: .75; }

/* ---------- Page hero (internas) ---------- */
.page-hero {
  position: relative; color: var(--branco); padding: calc(var(--header-h) + 80px) 0 80px;
  background: linear-gradient(90deg, var(--azul-noite) 10%, rgba(0,58,120,.75)),
              url("../img/mar.jpg") center / cover no-repeat, var(--azul);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 14px; }
.page-hero p { max-width: 620px; font-size: 1.12rem; opacity: .88; }
.breadcrumb { font-size: .9rem; opacity: .7; margin-top: 22px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Split (texto + imagem) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--inverso .split__media { order: -1; }
.split__media {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--azul);
  box-shadow: var(--sombra); aspect-ratio: 1 / .92;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.split__badge {
  position: absolute; left: 20px; bottom: 20px; background: var(--branco); color: var(--azul-escuro);
  padding: 14px 20px; border-radius: 12px; font-weight: 600; box-shadow: var(--sombra); font-size: .95rem;
}
.split__badge strong { display: block; font-size: 1.4rem; color: var(--azul); }
.split p + p { margin-top: 14px; }
.split .btn { margin-top: 28px; }

.checklist { display: grid; gap: 12px; margin-top: 22px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.cabecalho { margin-bottom: 56px; }

.card {
  background: var(--branco); border-radius: var(--raio); padding: 34px 28px; box-shadow: var(--sombra);
  border: 1px solid rgba(0,82,163,.07); transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--azul), var(--ciano));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(2,31,69,.16); }
.card:hover::before { transform: scaleX(1); }
.card__icone {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0,82,163,.08); color: var(--azul); margin-bottom: 22px;
}
.card__icone svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--texto-suave); font-size: .98rem; }
.card__num { position: absolute; top: 22px; right: 24px; font-size: 2.6rem; font-weight: 800; color: rgba(0,82,163,.07); }

.card--azul { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--branco); box-shadow: none; }
.card--azul p { color: rgba(255,255,255,.78); }
.card--azul .card__icone { background: rgba(255,255,255,.12); color: var(--branco); }
.card--azul:hover { background: rgba(255,255,255,.1); box-shadow: none; }

/* Missão / Visão */
.mv { padding: 40px 34px; }
.mv h3 { font-size: 1.6rem; }

/* Valores */
.valores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.valor {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 12px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); font-weight: 600; font-size: 1.08rem;
  transition: background .25s;
}
.valor:hover { background: rgba(255,255,255,.14); }
.valor span { width: 40px; height: 40px; border-radius: 10px; background: var(--branco); color: var(--azul); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }

/* Parceiros */
.parceiros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.parceiro {
  background: var(--branco); border-radius: var(--raio); padding: 30px; display: grid; place-items: center;
  min-height: 150px; box-shadow: var(--sombra); transition: transform .3s;
}
.parceiro:hover { transform: translateY(-4px); }
.parceiro img { max-height: 90px; width: auto; object-fit: contain; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 26px; padding: 64px 56px; color: var(--branco);
  background: linear-gradient(110deg, var(--azul-escuro), rgba(0,82,163,.85)), url("../img/mar.jpg") center / cover;
  display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center;
}
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.cta p { opacity: .88; max-width: 560px; }
.cta__acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Serviços (página) ---------- */
.servico {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 36px; border-radius: var(--raio);
  background: var(--branco); box-shadow: var(--sombra); align-items: start;
}
.servico .card__icone { width: 90px; height: 90px; border-radius: 20px; margin: 0; background: var(--azul); color: var(--branco); }
.servico .card__icone svg { width: 44px; height: 44px; }
.servico h3 { font-size: 1.5rem; margin-bottom: 10px; }
.servico p { color: var(--texto-suave); }
.servico ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.servico li { font-size: .85rem; padding: 6px 14px; border-radius: 999px; background: var(--cinza); color: var(--azul-escuro); font-weight: 500; }

.processo { counter-reset: passo; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.passo { position: relative; padding-top: 70px; }
.passo::before {
  counter-increment: passo; content: "0" counter(passo); position: absolute; top: 0; left: 0;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--branco); color: var(--azul); font-weight: 800;
}
.passo::after { content: ""; position: absolute; top: 27px; left: 66px; right: -12px; height: 1px; background: rgba(255,255,255,.3); }
.passo:last-child::after { display: none; }
.passo h3 { font-size: 1.2rem; margin-bottom: 8px; }
.passo p { opacity: .8; font-size: .96rem; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.info-box { background: var(--azul); color: var(--branco); border-radius: 22px; padding: 40px 34px; position: relative; overflow: hidden; }
.info-box::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 220px;
  background: url("../img/logo-branco.png") center / contain no-repeat; opacity: .07;
}
.info-box h2 { font-size: 1.8rem; margin-bottom: 10px; }
.info-box > p { opacity: .85; margin-bottom: 30px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-item .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item small { display: block; opacity: .7; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.info-item a:hover { text-decoration: underline; }
.info-box .btn { margin-top: 10px; width: 100%; }

.form { background: var(--branco); border-radius: 22px; padding: 40px; box-shadow: var(--sombra); }
.form h2 { font-size: 1.8rem; margin-bottom: 6px; }
.form > p { color: var(--texto-suave); margin-bottom: 28px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo--full { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .92rem; }
.campo label .req { color: #d63a3a; }
.campo input, .campo select, .campo textarea {
  font: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 10px; border: 1.5px solid #d7e0ec;
  background: #fbfcfe; color: var(--texto); transition: border-color .2s, box-shadow .2s; width: 100%;
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: none; border-color: var(--azul-claro); box-shadow: 0 0 0 4px rgba(47,139,230,.15); background: #fff;
}
.campo.erro input, .campo.erro select, .campo.erro textarea { border-color: #d63a3a; }
.campo .msg-erro { color: #d63a3a; font-size: .84rem; min-height: 1em; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--texto-suave); }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--azul); flex-shrink: 0; }
.form__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form__estado { margin-top: 18px; padding: 14px 18px; border-radius: 10px; display: none; font-weight: 500; }
.form__estado.ok { display: block; background: #e7f8ee; color: #137a3d; }
.form__estado.falha { display: block; background: #fdecec; color: #a32626; }

.mapa { margin-top: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); line-height: 0; }
.mapa iframe { width: 100%; height: 380px; border: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--branco); border-radius: 12px; box-shadow: var(--sombra); padding: 0 24px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--azul); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--texto-suave); }

/* ---------- Footer ---------- */
.footer { background: var(--azul-noite); color: rgba(255,255,255,.75); padding: 72px 0 0; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: var(--branco); font-size: 1.05rem; margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer a:hover { color: var(--branco); }
.footer .logo { margin-bottom: 18px; }
.footer__base {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .88rem;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200; width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.45); transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp);
  animation: pulso 2.2s infinite; z-index: -1;
}
.wa-float__tip {
  position: absolute; right: 76px; white-space: nowrap; background: var(--branco); color: var(--texto);
  padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; box-shadow: var(--sombra);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.wa-float:hover .wa-float__tip { opacity: 1; transform: none; }
@keyframes pulso { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }

.topo {
  position: fixed; right: 30px; bottom: 98px; z-index: 199; width: 46px; height: 46px; border-radius: 50%;
  background: var(--azul); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; box-shadow: var(--sombra);
}
.topo.visivel { opacity: 1; visibility: visible; }
.topo svg { width: 20px; height: 20px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float::before { animation: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .processo { grid-template-columns: repeat(2, 1fr); }
  .passo::after { display: none; }
  .split { gap: 40px; }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--azul-escuro);
    padding: 24px 20px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
  }
  .nav.aberto { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 16px 18px; font-size: 1.15rem; border-radius: 12px; }
  .nav .btn { margin: 14px 0 0; padding: 16px; }
  .header.menu-aberto { background: var(--azul-escuro); }

  .split, .contacto, .cta { grid-template-columns: 1fr; }
  .split--inverso .split__media { order: 0; }
  .split__media { aspect-ratio: 4 / 3.4; }
  .valores { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 44px 30px; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4, .parceiros, .processo, .valores, .form__grid { grid-template-columns: 1fr; }
  .hero { background-position: 70% center; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; margin-top: 40px; }
  .hero__stats strong { font-size: 1.2rem; }
  .hero__acoes .btn { width: 100%; }
  .servico { grid-template-columns: 1fr; padding: 28px 22px; gap: 18px; }
  .servico .card__icone { width: 64px; height: 64px; }
  .servico .card__icone svg { width: 32px; height: 32px; }
  .form, .info-box { padding: 30px 20px; }
  .form__acoes .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .cta__acoes .btn { width: 100%; }
  .logo img { height: 40px; }
  .logo span { font-size: 1.1rem; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .topo { right: 21px; bottom: 84px; }
  .wa-float__tip { display: none; }
  .mapa iframe { height: 300px; }
}
