/* ===================================================================
   CDT SERVIÇOS INTEGRADOS — styles.css
   Paleta: navy institucional + dourado, motivo hexagonal (do logo)
   Tipografia: Fraunces (display) + Inter (corpo/UI)
   =================================================================== */

:root {
  /* Cores de marca */
  --navy-950: #00131F;
  --navy-900: #001D36;
  --navy-700: #0F3A5F;
  --navy-600: #1B4A73;
  --gold-500: #B8924A;
  --gold-300: #D8BD86;
  --gold-100: #F1E4CC;

  --mist-100: #EEF2F6;
  --mist-200: #DDE4EB;
  --white: #FFFFFF;
  --ink-900: #16232E;
  --muted-500: #5B6B7A;
  --muted-300: #93A3B2;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  /* Sombra */
  --shadow-soft: 0 12px 32px rgba(0, 19, 31, 0.08);
  --shadow-strong: 0 20px 48px rgba(0, 19, 31, 0.28);

  /* Movimento */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 100%; height: 100%; fill: currentColor; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.45rem + 1.6vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; font-weight: 600; }

.lede { font-size: 1.08rem; color: var(--muted-500); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: .8em 1.2em; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ============ EYEBROW / UTILITY TEXT ============ */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-300); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-gold:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { border-color: var(--gold-300); color: var(--gold-300); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }

/* ============ HEX ICON (badge hexagonal — assinatura visual) ============ */
.hex-icon {
  --hex-size: 56px;
  width: var(--hex-size);
  height: var(--hex-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  color: var(--white);
  flex-shrink: 0;
  margin-bottom: 18px;
}
.hex-icon svg { width: 46%; height: 46%; }
.hex-icon--gold { background: var(--gold-500); color: var(--navy-950); }
.hex-icon--sm { --hex-size: 38px; margin-bottom: 0; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 29, 54, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,19,31,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { border-radius: 50%; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: .01em;
}
.brand-name em { color: var(--gold-300); font-style: normal; font-weight: 500; }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  position: relative;
  padding-block: 4px;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold-500);
  transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a:hover::after { width: 100%; }
.main-nav a.is-active { color: var(--white); }
.main-nav a.is-active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-950);
  z-index: 99;
  padding: 110px 32px 40px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .4s var(--ease), visibility 0s 0s;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--white);
  padding-block: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* ============ HEX FIELD (padrão de fundo decorativo) ============ */
.hex-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hex-field::before {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(30deg, var(--navy-700) 12%, transparent 12.5%, transparent 87%, var(--navy-700) 87.5%, var(--navy-700)),
    linear-gradient(150deg, var(--navy-700) 12%, transparent 12.5%, transparent 87%, var(--navy-700) 87.5%, var(--navy-700)),
    linear-gradient(30deg, var(--navy-700) 12%, transparent 12.5%, transparent 87%, var(--navy-700) 87.5%, var(--navy-700)),
    linear-gradient(150deg, var(--navy-700) 12%, transparent 12.5%, transparent 87%, var(--navy-700) 87.5%, var(--navy-700)),
    linear-gradient(60deg, rgba(184,146,74,.35) 25%, transparent 25.5%, transparent 75%, rgba(184,146,74,.35) 75%, rgba(184,146,74,.35)),
    linear-gradient(60deg, rgba(184,146,74,.35) 25%, transparent 25.5%, transparent 75%, rgba(184,146,74,.35) 75%, rgba(184,146,74,.35));
  background-size: 88px 154px;
  background-position: 0 0, 0 0, 44px 77px, 44px 77px, 0 0, 44px 77px;
  opacity: .14;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
}
.hex-field--hero::before { mask-image: radial-gradient(ellipse 60% 70% at 82% 20%, #000 0%, transparent 70%); }

/* Grandes hexágonos decorativos (outline), ecoam o emblema da marca */
.hero::after, .cta-section::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border: 1.5px solid rgba(216,189,134,.18);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  top: -120px; right: -60px;
  z-index: 0;
  pointer-events: none;
}
.cta-section::after { top: auto; bottom: -140px; left: -80px; right: auto; border-color: rgba(255,255,255,.08); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--navy-900);
  padding-block: 76px 96px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero-title em { color: var(--gold-300); font-style: italic; font-weight: 500; }
.hero-sub {
  color: rgba(255,255,255,.74);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-media { position: relative; }

/* ============ HEX FRAME (foto recortada em hexágono — assinatura) ============ */
.hex-frame {
  position: relative;
  aspect-ratio: 1.05 / 1;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(155deg, var(--navy-700), var(--navy-950));
  isolation: isolate;
}
.hex-frame::after {
  content: "CDT";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  letter-spacing: .1em;
  color: rgba(255,255,255,.28);
  z-index: 0;
}
.hex-frame img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hex-frame img.img-fallback { display: none; }
.hex-frame--lg { max-width: 560px; margin-inline: auto; }
.hex-frame--md { max-width: 480px; margin-inline: auto; }

/* ============ SECTIONS ============ */
.section { padding-block: 96px; position: relative; scroll-margin-top: 84px; }
.section--mist { background: var(--mist-100); }
.section--dark {
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}
.section--dark h2 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head--light .eyebrow { color: var(--gold-300); }
.section-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-900);
  max-width: 700px;
  margin: 48px auto 0;
}

/* ============ SPLIT LAYOUT (Quem somos / Transporte) ============ */
.split-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.split-layout--reverse { grid-template-columns: 1.08fr .92fr; }
.split-layout--reverse .split-media { order: 2; }
.split-layout--reverse .split-copy { order: 1; }

.pillar-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.pillar-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--mist-100);
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-900);
}
.pillar-chip .hex-icon { background: var(--navy-900); color: var(--white); }

.mission {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy-700);
  border-left: 3px solid var(--gold-500);
  padding-left: 20px;
  position: relative;
}
.mission-mark { color: var(--gold-500); font-size: 1.6rem; margin-right: 2px; }

/* ============ GRID DE CARDS ============ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.section--mist .card { background: var(--white); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted-500); font-size: .96rem; }
.card-spec {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-500) !important;
  margin-bottom: 10px !important;
}

/* ============ PROCESS (Como funciona) ============ */
.process {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.process li {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-300);
  margin-bottom: 16px;
}
.process h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.process p { color: rgba(255,255,255,.65); font-size: .92rem; }
.process li:not(:last-child)::after {
  content: "›";
  position: absolute;
  top: 50%; right: -19px;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold-500);
  z-index: 2;
}

/* ============ FEATURE LIST (Transporte) ============ */
.feature-list { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list strong { display: block; color: var(--navy-900); font-size: 1rem; margin-bottom: 3px; }
.feature-list span { color: var(--muted-500); font-size: .92rem; }

/* ============ COMPARE (Diferenciais) ============ */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-col {
  background: var(--mist-100);
  border-radius: var(--radius);
  padding: 38px 36px;
}
.compare-col h3 { color: var(--muted-500); margin-bottom: 24px; font-size: 1.15rem; }
.compare-col--highlight {
  background: var(--navy-900);
  box-shadow: var(--shadow-strong);
}
.compare-col--highlight h3 { color: var(--gold-300); }
.x-list li, .check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: .98rem;
  line-height: 1.45;
}
.x-list li { color: var(--muted-500); }
.x-list li::before {
  content: "–";
  position: absolute; left: 0; color: var(--muted-300);
  font-weight: 700;
}
.check-list li { color: rgba(255,255,255,.92); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; color: var(--gold-500);
  font-weight: 700;
}

/* ============ CTA / CONTATO ============ */
.cta-section { text-align: center; }
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.cta-logo { margin: 0 auto 28px; border-radius: 50%; }
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section > .wrap > p { color: rgba(255,255,255,.7); font-size: 1.06rem; margin-bottom: 44px; }

.contact-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  transition: transform .25s var(--ease);
}
.contact-item:hover { transform: translateY(-4px); color: var(--gold-300); }
.contact-item .hex-icon { margin-bottom: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.7); padding-top: 56px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand--footer .brand-name { color: var(--white); font-size: .98rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: .9rem; color: rgba(255,255,255,.65); }
.footer-nav a:hover { color: var(--gold-300); }
.footer-contact { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; }
.footer-contact a:hover { color: var(--gold-300); }
.footer-bottom { padding-block: 22px; }
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); text-align: center; }

/* ============ REVEAL ON SCROLL ============ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: 100%; max-width: 320px; margin-inline: auto; }
  .hex-frame--lg { max-width: 100%; }
  .split-layout, .split-layout--reverse { grid-template-columns: 1fr; }
  .split-layout--reverse .split-media { order: -1; }
  .split-media { max-width: 420px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process li:nth-child(2)::after { display: none; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 56px 64px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process li::after { display: none; }
  .contact-grid { gap: 32px; }
  .compare-col { padding: 30px 24px; }
  .header-actions .btn-sm { display: none; }
}
