/* =============================================================
   5S Soluções Logísticas – CSS Compartilhado
   ============================================================= */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fcf8fb; color: #1b1b1d; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
picture { display: block; }

/* TOKENS */
:root {
  --primary: #1D2C6F;
  --primary-container: #111A42;
  --secondary: #ab3600;
  --secondary-cta: #fd6b34;
  --surface: #fcf8fb;
  --surface-low: #f6f3f5;
  --on-surface: #1b1b1d;
  --on-surface-v: #46464f;
  --outline-v: #c6c5d0;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --container: 1280px;
  --gutter: 1.5rem;
  --section: 5rem;
  --shadow-card: 0px 4px 20px rgba(0,0,0,0.05);
  --shadow-nav: 0px 10px 30px rgba(43,52,103,0.12);
}

/* LAYOUT */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: var(--section) 0; }

/* SECTION TAG */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--secondary-cta); margin-bottom: .75rem;
}
.section-tag::before { content: ''; display: inline-block; width: 24px; height: 2px; background: var(--secondary-cta); }

/* TYPOGRAPHY */
.headline-xl { font-family: 'Manrope',sans-serif; font-size: clamp(36px,4vw,48px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.headline-lg { font-family: 'Manrope',sans-serif; font-size: clamp(24px,2.5vw,32px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.headline-md { font-family: 'Manrope',sans-serif; font-size: 24px; font-weight: 600; line-height: 1.3; }
.body-lg     { font-size: 18px; font-weight: 400; line-height: 1.6; }
.body-md     { font-size: 16px; font-weight: 400; line-height: 1.5; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 1.75rem; border-radius: var(--radius-full);
  font-family: 'Inter',sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all .22s ease; white-space: nowrap;
}
.btn-primary     { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-container); box-shadow: 0 4px 16px rgba(20,30,80,.3); transform: translateY(-1px); }
.btn-cta         { background: var(--secondary-cta); color: #fff; }
.btn-cta:hover   { background: var(--secondary); box-shadow: 0 4px 16px rgba(171,54,0,.35); transform: translateY(-1px); }
.btn-ghost       { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-ghost-white       { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ANIMATE */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .3s, box-shadow .3s, padding .3s;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.nav.scrolled {
  box-shadow: 0 8px 30px rgba(20, 30, 80, 0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 85px; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  transition: height 0.3s;
}
.nav.scrolled .nav-inner {
  height: 70px;
}
.nav-logo picture,
.nav-logo img { height: 66px; width: auto; display: block; transition: height 0.3s; }
.nav.scrolled .nav-logo img { height: 54px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--primary);
  letter-spacing: .02em; transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--secondary-cta); transition: width .2s;
}
.nav-links a:hover,
.nav-links a.active             { color: var(--secondary-cta); }
.nav-links a:hover::after,
.nav-links a.active::after      { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--primary); color: rgba(255,255,255,.62); padding: 4.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand { max-width: 340px; }
.footer-brand picture,
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.footer-desc { font-size: 14px; line-height: 1.75; margin-bottom: 1.25rem; }
.footer-legal-data { display: flex; flex-direction: column; gap: 2px; }
.footer-legal-data small { font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: 0.02em; }

.footer-col-title {
  font-family: 'Manrope',sans-serif; font-size: 13px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.25rem; padding-bottom: .75rem; position: relative;
}
.footer-col-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 24px; height: 2px; background: var(--secondary-cta); border-radius: 1px;
}

/* Links com seta → */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s, padding-left .2s;
  display: flex; align-items: center; gap: .5rem;
}
.footer-links a::before {
  content: '→'; font-size: 12px; color: var(--secondary-cta); opacity: .6;
  transition: opacity .2s, transform .2s;
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { opacity: 1; transform: translateX(2px); }

/* Contato — cards com ícone em caixa */
.footer-contact-cards { display: flex; flex-direction: column; gap: 1.15rem; }
.footer-contact-card {
  display: flex; flex-direction: row; align-items: center; gap: .85rem;
  text-decoration: none; color: inherit; transition: opacity .2s;
}
.footer-contact-card:hover { opacity: .85; }
.footer-contact-card--static { cursor: default; }
.footer-contact-card--static:hover { opacity: 1; }
.fcc-icon {
  width: 46px; height: 46px; min-width: 46px; flex-shrink: 0;
  background: rgba(255,255,255,.1); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.fcc-info { display: flex; flex-direction: column; min-width: 0; }
.fcc-label {
  font-size: 12px; color: rgba(255,255,255,.45);
  letter-spacing: .04em; margin-bottom: 2px; line-height: 1;
}
.fcc-value {
  font-size: 15px; font-weight: 700; color: #fff;
  line-height: 1.3; word-break: break-word;
}

/* Barra inferior */
.footer-sub { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-bottom-right { display: flex; align-items: center; gap: 1rem; }
.footer-bottom-links { display: flex; gap: 1rem; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.3); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }
.footer-bottom-sep { width: 1px; height: 14px; background: rgba(255,255,255,.12); }
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.28);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color .2s;
}
.footer-admin-link:hover { color: rgba(255,255,255,.65); }

.footer-signature {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; opacity: 0.5; transition: opacity 0.25s ease;
}
.footer-signature:hover { opacity: 1; }
.footer-signature span { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: 0.3px; }
.footer-signature img { height: 18px; width: auto; display: block; }

/* ── PAGE HERO (compartilhado entre páginas internas) ──── */
.page-hero {
  background-color: var(--primary-container);
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(10,16,46,.92) 0%,
    rgba(14,21,58,.82) 45%,
    rgba(14,21,58,.60) 100%
  );
}
.page-hero .container { position: relative; z-index: 2; }
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.page-breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.page-breadcrumb a:hover { color: rgba(255,255,255,.9); }
.page-breadcrumb span[aria-current="page"] { color: rgba(255,255,255,.85); }
.page-hero-tag { color: var(--secondary-cta); margin-bottom: 1rem; }
.page-hero-tag::before { background: var(--secondary-cta); }
.page-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 780px;
}
.page-hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.68);
  max-width: 560px;
}

/* ── Botão Flutuante WhatsApp ─────────────────────────────── */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
}
.floating-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.4);
  color: #fff;
}
.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-brand .footer-desc { max-width: 480px; }
  .footer-legal-data { flex-direction: row; gap: 0.75rem; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  :root { --section: 3.5rem; }
  .page-hero { padding: 130px 0 60px; }
  .page-hero-title { font-size: clamp(28px, 7vw, 40px); }
  .page-hero-sub { font-size: 16px; }
  .footer { padding-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-bottom-right { flex-direction: column; gap: 0.75rem; }
  .footer-bottom-sep { display: none; }
  .fcc-icon { width: 40px; height: 40px; }
  .fcc-value { font-size: 14px; }
  .footer-links { gap: 1.1rem; }
  .footer-links a { font-size: 16px; padding: 4px 0; }
  .footer-links a::before { font-size: 22px; }
  .footer-brand img { height: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px);
    padding: 2rem var(--gutter); gap: 1.5rem;
    border-top: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-links.open a {
    font-size: 18px;
    padding: 0.5rem 0;
    display: block;
  }
  .nav-cta { display: none; }
}
