/* ==========================================================================
   AD Consultoria e Despacho Aduaneiro — landing page adcomex.com.br
   Paleta extraida da logo: azul-marinho + dourado
   ========================================================================== */

:root {
  --navy-900: #0b1633;
  --navy-800: #12224d;
  --navy-700: #1b3068;
  --navy-600: #2b4590;
  --gold-600: #9b7f24;
  --gold-500: #b5952f;
  --gold-400: #d0b055;
  --gold-100: #f6efdb;
  --ink: #16203a;
  --muted: #5d6a85;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(11, 22, 51, .06);
  --shadow-md: 0 12px 32px rgba(11, 22, 51, .10);
  --shadow-lg: 0 24px 60px rgba(11, 22, 51, .18);
  --container: 1180px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

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

section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }

/* ---------- componentes ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold-500);
}
.eyebrow.on-dark { color: var(--gold-400); }
.eyebrow.on-dark::before { background: var(--gold-400); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: #fff; box-shadow: 0 8px 22px rgba(155, 127, 36, .32); }
.btn-gold:hover { box-shadow: 0 14px 30px rgba(155, 127, 36, .42); }

.btn-navy { background: var(--navy-800); color: #fff; box-shadow: 0 8px 22px rgba(18, 34, 77, .28); }
.btn-navy:hover { background: var(--navy-700); }

.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; }

.btn-sm { padding: 11px 20px; font-size: .9rem; }

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

#header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid transparent;
  transition: height .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#header.is-scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { height: 52px; width: auto; transition: height .25s ease; }
#header.is-scrolled .brand img { height: 44px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy-800);
  padding: 6px 0;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--navy-800);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 96px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/photos/porto-hero.jpg") center/cover no-repeat;
  transform: scale(1.04);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 22, 51, .94) 0%, rgba(11, 22, 51, .78) 42%, rgba(11, 22, 51, .38) 72%, rgba(11, 22, 51, .55) 100%);
  z-index: -1;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  max-width: 16em;
}
.hero h1 .accent {
  color: var(--gold-400);
  display: inline-block;
}
.hero-lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .86);
  max-width: 34em;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero-panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 18px;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel h3 {
  color: #fff;
  font-size: 1.15rem;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .96rem;
  color: rgba(255, 255, 255, .88);
}
.panel-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-list strong { display: block; color: #fff; font-size: 1rem; }
.panel-list .tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(208, 176, 85, .18);
  border: 1px solid rgba(208, 176, 85, .5);
  display: grid;
  place-items: center;
  color: var(--gold-400);
  margin-top: 2px;
}

/* ---------- faixa de destaques ---------- */

.strip {
  background: var(--navy-900);
  padding: 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .12);
}
.strip-item {
  background: var(--navy-900);
  padding: 34px 28px;
  color: #fff;
}
.strip-item h4 {
  color: var(--gold-400);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.strip-item p {
  margin: 0;
  font-size: .92rem;
  color: rgba(255, 255, 255, .72);
}

/* ---------- serviços ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-500), var(--navy-700));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7deee; }
.card:hover::before { transform: scaleY(1); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-100);
  color: var(--gold-600);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.18rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.card ul li {
  position: relative;
  padding-left: 20px;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------- split (imagem + texto) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media { position: relative; }
.split-media > img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.split-media .media-frame {
  position: absolute;
  inset: auto -18px -18px auto;
  width: 62%;
  height: 62%;
  border: 2px solid var(--gold-400);
  border-radius: 18px;
  z-index: -1;
}
.media-tag {
  position: absolute;
  left: -20px;
  bottom: 28px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold-500);
  max-width: 250px;
}
.media-tag strong { display: block; color: var(--navy-900); font-size: 1.02rem; }
.media-tag span { font-size: .88rem; color: var(--muted); }

.check-list { list-style: none; margin: 26px 0 0; padding: 0; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.check-list .tick {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--navy-800);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  margin-top: 3px;
}
.check-list h4 { font-size: 1.03rem; margin-bottom: 2px; }
.check-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- setores atendidos ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 22px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tile:hover { background: var(--navy-800); transform: translateY(-4px); }
.tile:hover h4, .tile:hover p { color: #fff; }
.tile:hover .tile-icon { background: rgba(208, 176, 85, .2); color: var(--gold-400); }
.tile-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--navy-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transition: background .2s ease, color .2s ease;
}
.tile h4 { font-size: 1.02rem; margin-bottom: 4px; transition: color .2s ease; }
.tile p { margin: 0; font-size: .9rem; color: var(--muted); transition: color .2s ease; }

/* ---------- portal do cliente ---------- */

.portal {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.portal::before {
  content: "";
  position: absolute;
  right: -140px; top: -140px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 176, 85, .22), transparent 65%);
}
.portal h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.portal p { color: rgba(255, 255, 255, .84); }
.portal-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.portal-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 30px 0 34px;
}
.portal-feature {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 18px;
}
.portal-feature strong { display: block; color: var(--gold-400); font-size: .97rem; margin-bottom: 4px; }
.portal-feature span { font-size: .89rem; color: rgba(255, 255, 255, .76); }
.portal-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .2);
}

/* ---------- contato ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: grid;
  place-items: center;
}
.contact-card h3 { font-size: 1.08rem; }
.contact-card p { color: var(--muted); font-size: .96rem; margin-bottom: .4em; }
.contact-card a.link { color: var(--navy-700); font-weight: 600; word-break: break-word; }
.contact-card a.link:hover { color: var(--gold-600); }

.cta-band {
  margin-top: 56px;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  border-radius: 18px;
  padding: 46px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .82); }
.cta-band .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

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

.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  padding: 64px 0 0;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 46px;
}
.footer img { height: 74px; width: auto; margin-bottom: 20px; }
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: rgba(255, 255, 255, .55);
}

/* ---------- botão flutuante ---------- */

.float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease, background .2s ease;
}
.float-cta:hover { transform: translateY(-3px) scale(1.05); background: var(--gold-600); }

/* ---------- animação de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */

@media (max-width: 1024px) {
  section { padding: 76px 0; }
  .hero-grid, .split, .portal-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-media { order: 0; }
  .cards, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .tiles, .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .split-media > img { height: 380px; }
  .media-tag { left: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { border-bottom: 0; margin-top: 14px; }
  .cards, .contact-grid, .tiles, .strip-grid, .portal-features { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--header-h) + 64px) 0 72px; }
  .hero-panel { padding: 24px; }
  .split-media > img { height: 300px; }
  .media-tag { position: static; margin-top: 16px; max-width: none; }
  .split-media .media-frame { display: none; }
  .cta-band { padding: 32px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
