:root {
  --navy: #082d52;
  --navy-dark: #03172b;
  --navy-soft: #0d3a68;
  --orange: #ff6b00;
  --white: #ffffff;
  --text: #102033;
  --muted: #64748b;
  --light: #f5f7fa;
  --border: #dce3ec;
  --shadow: 0 18px 45px rgba(3, 23, 43, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background: rgba(3, 23, 43, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand img { width: 175px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav a {
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .92;
  position: relative;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  left: 0;
  bottom: -10px;
  background: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: .25s ease;
}

.btn-primary { background: var(--orange); color: var(--white); border: 1px solid var(--orange); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,107,0,.3); }
.btn-outline { border: 1px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: white; }
.btn-light { border: 1px solid rgba(255,255,255,.35); color: white; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: white; margin: 6px 0; }

.aduaneiro-hero {
  min-height: 590px;
  padding-top: 86px;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 86px 0 0 42%;
  background: url("assets/aduaneiro-hero.png") center/cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 86px 0 0 0;
  background:
    linear-gradient(90deg, rgba(3,23,43,1) 0%, rgba(3,23,43,.98) 26%, rgba(3,23,43,.82) 45%, rgba(3,23,43,.18) 100%),
    linear-gradient(180deg, rgba(3,23,43,.05), rgba(3,23,43,.24));
}

.hero-content {
  min-height: 504px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--orange);
  margin-right: 12px;
  vertical-align: middle;
}

h1, h2, h3 { margin: 0; line-height: 1.08; }

h1 {
  color: white;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 6vw, 74px);
  text-transform: uppercase;
  letter-spacing: -.03em;
}

.hero-content p:not(.eyebrow) {
  color: rgba(255,255,255,.86);
  font-size: 18px;
  line-height: 1.7;
  max-width: 510px;
  margin: 26px 0 32px;
}

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

.section { padding: 82px 0; }

.services {
  background:
    radial-gradient(circle at 50% 0%, rgba(8,45,82,.06), transparent 34%),
    var(--white);
  padding-top: 70px;
  padding-bottom: 70px;
}

.center-title {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.center-title .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.center-title h2,
.differential-content h2,
.cta h2 {
  color: var(--navy-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3.8vw, 44px);
}

.center-title p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
  margin: 18px auto 0;
  max-width: 690px;
  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: stretch;
}

.service-card {
  background: var(--white);
  min-height: 235px;
  padding: 26px 16px 24px;
  text-align: center;
  border: 1px solid #dfe5ec;
  box-shadow: 0 2px 0 rgba(3, 23, 43, .02);
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(3, 23, 43, .12);
  border-color: rgba(255,107,0,.45);
}

.icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(8,45,82,.28);
  border-radius: 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1;
  background: #fff;
}

.service-card h3 {
  color: var(--navy-dark);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .01em;
  text-transform: uppercase;
  min-height: 34px;
  margin-bottom: 16px;
  font-weight: 900;
}

.service-card h3::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--orange);
  margin: 12px auto 0;
}

.service-card p {
  color: #475569;
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 175px;
}

.dark-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
}

.differential-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 70px;
  align-items: center;
}

.image-panel {
  position: relative;
}

.image-panel img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-badge {
  position: absolute;
  left: 28px;
  bottom: -34px;
  width: min(360px, calc(100% - 56px));
  background: var(--navy);
  border-left: 5px solid var(--orange);
  padding: 24px;
  color: white;
  box-shadow: var(--shadow);
}

.image-badge span {
  display: block;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.image-badge strong {
  font-size: 18px;
  line-height: 1.3;
  text-transform: uppercase;
}

.differential-content h2 { color: white; }
.differential-content p {
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin: 22px 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
}

.check-list li {
  color: rgba(255,255,255,.86);
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list li::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  color: var(--orange);
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  font-weight: 900;
}

.process { background: var(--light); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  background: white;
  border: 1px solid var(--border);
  padding: 30px;
}

.step span {
  color: var(--orange);
  font-size: 34px;
  font-weight: 900;
  font-family: Georgia, 'Times New Roman', serif;
}

.step h3 {
  color: var(--navy);
  margin: 16px 0 12px;
  text-transform: uppercase;
  font-size: 17px;
}

.step p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.cta {
  background: linear-gradient(180deg, var(--light) 0 50%, var(--navy-dark) 50% 100%);
  padding: 0 0 30px;
}

.cta-box {
  background: white;
  border: 1px solid var(--border);
  min-height: 120px;
  display: grid;
  grid-template-columns: 80px 1fr 1.1fr auto;
  align-items: center;
  gap: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.cta-icon {
  width: 70px;
  height: 70px;
  background: var(--navy);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.contact-items {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  color: var(--muted);
}

.contact-items strong {
  display: block;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 4px;
}

.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .8fr;
  gap: 60px;
  padding-bottom: 42px;
}

.footer-logo { width: 190px; margin-bottom: 20px; }

.footer h4 {
  color: white;
  margin-top: 0;
  text-transform: uppercase;
  font-size: 13px;
}

.footer a { display: block; margin: 9px 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: center;
}

.footer-version {
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  background: var(--orange);
  color: white;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.hidden { display: none !important; }

.portal-login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 23, 43, .62);
  backdrop-filter: blur(8px);
}

.portal-login-panel {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid rgba(255,255,255,.18);
  background: white;
  box-shadow: var(--shadow);
  padding: 30px;
}

.portal-login-panel h2 {
  color: var(--navy-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  margin: 0 0 10px;
}

.portal-login-panel p:not(.eyebrow) {
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

.portal-login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: white;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.portal-login-form {
  display: grid;
  gap: 14px;
}

.portal-login-form label {
  display: grid;
  gap: 6px;
}

.portal-login-form span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-login-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
}

.portal-login-message {
  min-height: 18px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
}

.portal-login-link {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.portal-login-link:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .whatsapp-top { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card p { max-width: 260px; }
  .differential-grid, .steps, .cta-box, .footer-grid {
    grid-template-columns: 1fr;
  }
  .steps { gap: 14px; }
}

@media (max-width: 760px) {
  .header-inner { height: 76px; }
  .brand img { width: 150px; }
  .menu-toggle { display: block; margin-left: auto; }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--navy-dark);
    padding: 24px;
    gap: 20px;
  }

  .nav.open { display: flex; }

  .aduaneiro-hero { padding-top: 76px; min-height: 620px; }
  .hero-bg { inset: 76px 0 0 0; opacity: .48; }
  .hero-shade {
    inset: 76px 0 0 0;
    background: linear-gradient(90deg, rgba(3,23,43,.98), rgba(3,23,43,.82));
  }
  .hero-content { min-height: 544px; }

  .section { padding: 62px 0; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .image-panel img { height: 300px; }
  .image-badge { position: relative; left: auto; bottom: auto; margin: -55px auto 0; }
  .cta-box { text-align: center; }
  .cta-icon { margin: 0 auto; }
  .contact-items { justify-content: center; }
  .footer-bottom { flex-direction: column; }
}
