/* ==========================================================
   IM Global Solutions — Maritime Crew Documentation & Compliance
   Direção visual A: navy institucional + vermelho da marca
   ========================================================== */

:root {
  --navy:        #0F2B51;
  --navy-deep:   #0A1F3C;
  --navy-line:   #24406A;
  --orange:      #E4192B;
  --orange-dark: #B60F20;
  --orange-soft: #FDECEE;
  --mist:        #E9EEF5;
  --paper:       #FFFFFF;
  --ink:         #16233A;
  --body:        #445770;
  --muted:       #7A8CA3;
  --line:        #D6DEE9;
  --line-soft:   #E7ECF3;
  --alert:       #C8321E;
  --accent-navy: #FF5C00;
  --shadow:      0 1px 2px rgba(15,43,81,.06), 0 10px 30px rgba(15,43,81,.06);
  --wrap:        1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); text-decoration: underline; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.6vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 3.6vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 600; }

p { margin: 0 0 18px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}
.eyebrow.on-navy,
section.navy p.eyebrow,
section.navy .section-head p.eyebrow { color: var(--accent-navy); }

.lede { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; color: var(--body); max-width: 58ch; }

/* ---------- header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--body);
  font-size: 16.5px;
  text-decoration: none;
  padding: 8px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 17px 30px;
  min-height: 56px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--orange); color: #FFFFFF; }
.btn-primary:hover { background: var(--orange-dark); color: #FFFFFF; }

.btn-ghost { background: transparent; color: #FFFFFF; border-color: #6C88AE; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--mist); color: var(--navy); }

.btn-sm { font-size: 14px; padding: 13px 22px; min-height: 48px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- sections ---------- */

section { padding: 84px 0; }
section.tight { padding: 60px 0; }
section.mist { background: var(--mist); }
section.navy { background: var(--navy); }
section.navy h2, section.navy h3 { color: #FFFFFF; }
section.navy p { color: #C9D6E8; }

.section-head { max-width: 62ch; margin-bottom: 46px; }
.section-head p { color: var(--body); font-size: 19px; }
section.navy .section-head p { color: #C9D6E8; }

/* ---------- hero ---------- */

.hero { background: var(--navy); padding: 88px 0 96px; }
.hero h1 { color: #FFFFFF; max-width: 17ch; }
.hero p { color: #C9D6E8; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.55; max-width: 54ch; margin: 26px 0 34px; }

.trust-strip {
  background: var(--paper);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--line);
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 16.5px;
  color: var(--body);
}
.trust-strip .sep { width: 1px; height: 18px; background: var(--line); }

/* ---------- grids ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card .ico { color: var(--orange); }
.card p { font-size: 16.5px; margin: 0; }
.card ul { margin: 4px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card ul li { position: relative; padding-left: 26px; font-size: 16px; color: var(--body); }
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.card .card-foot { margin-top: auto; padding-top: 14px; }

section.mist .card { border-color: var(--line); }

/* ---------- steps ---------- */

.steps { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step { padding: 26px 24px 26px 0; border-top: 3px solid var(--line); }
.step:first-child { border-top-color: var(--orange); }
.step .n {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 16px; margin: 0; }

section.navy .step { border-top-color: var(--navy-line); }
section.navy .step:first-child { border-top-color: var(--accent-navy); }
section.navy .step .n { color: var(--accent-navy); }
section.navy .step p { color: #B9C7DA; }

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 18px;
  font-size: 26px;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 24px; font-size: 17px; }

/* ---------- callout ---------- */

.callout {
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 3px 3px 0;
  padding: 22px 26px;
}
.callout p { font-size: 16.5px; color: var(--ink); margin: 0; }

.notice {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 26px;
}
.notice p { font-size: 16px; margin: 0; color: var(--body); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy-deep); padding: 76px 0; text-align: center; }
.cta-band h2 { color: #FFFFFF; margin-bottom: 16px; }
.cta-band p { color: #C9D6E8; margin: 0 auto 30px; font-size: 19px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy); color: #A9BCD6; padding: 56px 0 32px; font-size: 16px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 36px; }
.site-footer h4 {
  color: #FFFFFF;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer a { color: #A9BCD6; text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer .bar {
  border-top: 1px solid var(--navy-line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 14.5px;
  color: #7E97BA;
}

/* ---------- floating whatsapp ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #128C7E;
  color: #FFFFFF;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
  min-height: 56px;
  border-radius: 40px;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  text-decoration: none;
}
.wa-float:hover { background: #0E7267; color: #FFFFFF; text-decoration: none; }

/* ---------- utilities ---------- */

.stack { display: flex; flex-direction: column; gap: 18px; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 18px; }
  .site-header .wrap { position: relative; flex-wrap: nowrap; }
  .header-cta { display: none; }
  .brand img { height: 42px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .16em; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 68px; }
  .split { gap: 32px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .wa-float span { display: none; }
  .wa-float { padding: 16px; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- redes sociais ---------- */

.social {
  display: flex;
  gap: 12px;
  padding-bottom: 26px;
}
.social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy-line);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #A9BCD6;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.social a:hover {
  color: #FFFFFF;
  border-color: var(--accent-navy);
  background: rgba(255,255,255,.06);
  text-decoration: none;
}

/* ---------- tracker de processo ---------- */

.tracker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.tracker .tk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.tracker .tk-id {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
}
.tracker .tk-meta { font-size: 13.5px; color: var(--muted); }

.tk-steps { display: flex; flex-direction: column; gap: 0; }
.tk-step {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 0 14px;
  align-items: start;
  position: relative;
  padding-bottom: 20px;
}
.tk-step:last-child { padding-bottom: 0; }
.tk-step::before {
  content: "";
  position: absolute;
  left: 12px; top: 22px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.tk-step:last-child::before { display: none; }
.tk-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  color: var(--paper);
}
.tk-step.done .tk-dot { background: var(--navy); border-color: var(--navy); }
.tk-step.now .tk-dot { border-color: var(--orange); background: var(--orange); }
.tk-step.done::before { background: var(--navy); }
.tk-label {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
}
.tk-step.done .tk-label, .tk-step.now .tk-label { color: var(--navy); }
.tk-date {
  font-size: 13.5px;
  color: var(--muted);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- tabela de credenciais ---------- */

.cred-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
table.cred { width: 100%; border-collapse: collapse; min-width: 700px; font-size: 15px; }
table.cred th {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  background: var(--mist);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.cred td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--body);
  white-space: nowrap;
}
table.cred tr:last-child td { border-bottom: 0; }
table.cred td:first-child { color: var(--ink); font-weight: 600; }

.pill {
  display: inline-block;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}
.pill.ok   { background: #DFF0E8; color: #1D6B52; }
.pill.warn { background: #FBEBD2; color: #8A6212; }
.pill.bad  { background: #FBE0DC; color: #93382C; }
.pill.wait { background: var(--mist); color: var(--muted); }

.cred-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.cred-note {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- imagem de apoio ---------- */

.figure {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.figure img { width: 100%; height: auto; }
.figure figcaption {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}

/* ---------- retrato circular ---------- */

.avatar {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(15,43,81,.12);
}
.avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.avatar-block h3 { margin-top: 20px; }
.avatar-block .role {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 13.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.avatar-block .role-line {
  width: 40px; height: 2px;
  background: var(--orange);
  margin-top: 14px;
}

/* ---------- componentes de superfície clara dentro de seções navy ---------- */

section.navy .card p,
section.navy .card ul li,
section.navy .notice p,
section.navy .tracker,
section.navy .figure figcaption { color: var(--body); }

section.navy .card h3,
section.navy .card h4,
section.navy .notice strong { color: var(--navy); }

section.navy .card .card-foot .btn-outline { color: var(--navy); border-color: var(--line); }

/* ---------- lista de downloads ---------- */

.dl-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
}
.dl-item {
  display: grid;
  grid-template-columns: 20px 1fr auto auto;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px 20px;
  min-height: 68px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dl-item:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.dl-ico { color: var(--muted); flex: 0 0 auto; }
.dl-item:hover .dl-ico { color: var(--orange); }
.dl-name { font-size: 16px; line-height: 1.35; color: var(--ink); }
.dl-type {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 3px 7px;
}
.dl-arrow { color: var(--muted); }
.dl-item:hover .dl-arrow { color: var(--orange); }

section.mist .dl-item { background: var(--paper); }

@media (max-width: 620px) {
  .dl-list { grid-template-columns: 1fr; }
  .dl-item { padding: 16px; gap: 11px; }
  .dl-name { font-size: 15.5px; }
}

/* ---------- hero com imagem de fundo ---------- */

.hero.hero-img {
  position: relative;
  background-image:
    linear-gradient(100deg, rgba(15,43,81,.97) 0%, rgba(15,43,81,.93) 42%, rgba(15,43,81,.86) 100%),
    url("hero-offshore.jpg");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
}
.hero.hero-img .wrap { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .hero.hero-img {
    background-image:
      linear-gradient(180deg, rgba(15,43,81,.96) 0%, rgba(15,43,81,.90) 55%, rgba(15,43,81,.86) 100%),
      url("hero-offshore.jpg");
    background-position: center 28%;
  }
}

/* ---------- motto ---------- */

.motto {
  font-family: "Archivo", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.45;
  margin: 0;
}
.motto .a { color: #FFFFFF; }
.motto .b { color: #FFFFFF; }

.motto-band {
  text-align: center;
  padding: 0;
}
.motto-band .motto {
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.motto-band { margin-top: 54px; }
.motto-band .rule {
  width: 120px; height: 4px;
  background: var(--accent-navy);
  margin: 0 auto 26px;
}
