/* ==========================================================================
   GW TRANSPORTES — FOLHA DE ESTILOS PRINCIPAL
   Organização: tokens > base > layout > componentes > páginas > utilitários
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* marca */
  --c-primary-50:  #eaf4ff;
  --c-primary-100: #cfe6ff;
  --c-primary-300: #6fb4ff;
  --c-primary-500: #1089ff;
  --c-primary-600: #0c72d6;
  --c-primary-700: #0a5aa8;
  --c-primary-900: #0b2d52;

  --c-accent-500: #ff5e15;
  --c-accent-600: #e34e0a;

  --c-green-500: #1fa055;
  --c-green-600: #16803f;

  --c-gray-50:  #f7f9fb;
  --c-gray-100: #eef2f6;
  --c-gray-200: #e2e8f0;
  --c-gray-300: #cbd5e1;
  --c-gray-400: #98a5b3;
  --c-gray-500: #6b7a8d;
  --c-gray-600: #4d5b6b;
  --c-gray-700: #34404d;
  --c-gray-800: #212b36;
  --c-gray-900: #10161f;

  --c-white: #ffffff;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Muli', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);

  --header-h: 84px;
  --header-h-scrolled: 68px;
  --container-max: 1220px;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. RESET / BASE ---------- */
* { box-sizing: border-box; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-gray-600);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--c-primary-700); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--c-gray-900);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .6em;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--c-primary-500); color: #fff; }

.container { max-width: var(--container-max); }

button { font-family: inherit; }

/* Skip link (acessibilidade) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--c-primary-600);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: #fff;
}

/* ---------- 3. HELPERS TIPOGRÁFICOS ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary-600);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-accent-500);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: .5rem;
}

.section-lead {
  color: var(--c-gray-500);
  max-width: 620px;
}

.section-head {
  margin-bottom: 2.75rem;
}
.section-head.text-center { margin-left: auto; margin-right: auto; }
.section-head.text-center .section-lead { margin-left: auto; margin-right: auto; }

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section--sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--tight { padding-top: 0; }

.bg-soft { background: var(--c-gray-50); }
.bg-dark { background: var(--c-gray-900); color: var(--c-gray-300); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-primary-grad {
  background: linear-gradient(135deg, var(--c-primary-700), var(--c-primary-500));
  color: #fff;
}
.bg-primary-grad h2 { color: #fff; }

/* ---------- 4. BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .9rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-primary-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 137, 255, .3);
}
.btn--primary:hover { background: var(--c-primary-600); color: #fff; box-shadow: 0 14px 30px rgba(16, 137, 255, .38); transform: translateY(-2px); }

.btn--accent {
  background: var(--c-accent-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 94, 21, .3);
}
.btn--accent:hover { background: var(--c-accent-600); color: #fff; transform: translateY(-2px); }

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

.btn--outline {
  background: transparent;
  border-color: var(--c-gray-300);
  color: var(--c-gray-700);
}
.btn--outline:hover { border-color: var(--c-primary-500); color: var(--c-primary-600); }

.btn--sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-gray-200);
  background: #fff;
  color: var(--c-gray-600);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--c-primary-500); color: var(--c-primary-600); }

/* ---------- ícones (sprite) ---------- */
.i {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.125em;
}

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 rgba(16, 24, 40, .06);
}

.topbar {
  display: none;
  background: var(--c-gray-900);
  color: var(--c-gray-300);
  font-size: .85rem;
}
@media (min-width: 992px) {
  .topbar { display: block; }
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
}
.topbar__info { display: flex; align-items: center; gap: 1.75rem; }
.topbar__item { display: flex; align-items: center; gap: .5rem; color: var(--c-gray-300); }
.topbar__item svg { color: var(--c-accent-500); flex: none; }
.topbar__item a { color: inherit; }
.topbar__item a:hover { color: #fff; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
  transition: padding .25s var(--ease);
}
.site-header.is-scrolled .navbar { padding: 10px 0; }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) {
  .brand img { height: 46px; }
}

.nav-main { display: none; }
@media (min-width: 992px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: 2.1rem;
    list-style: none;
    margin: 0 auto 0 2.5rem;
    padding: 0;
  }
  .nav-main a {
    color: var(--c-gray-700);
    font-weight: 600;
    font-size: .98rem;
    position: relative;
    padding: 6px 0;
  }
  .nav-main a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--c-primary-500);
    transition: right .25s var(--ease);
    border-radius: 2px;
  }
  .nav-main a:hover, .nav-main a.is-active { color: var(--c-primary-600); }
  .nav-main a:hover::after, .nav-main a.is-active::after { right: 0; }
}

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-gray-200);
  background: #fff;
  cursor: pointer;
}
.btn-menu svg { width: 20px; height: 20px; color: var(--c-gray-800); }
@media (min-width: 992px) { .btn-menu { display: none; } }

/* ---------- menu mobile off-canvas ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1200;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, .55);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 86vw);
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
body.mobile-nav-open .mobile-nav { visibility: visible; pointer-events: auto; }
body.mobile-nav-open .mobile-nav__backdrop { opacity: 1; }
body.mobile-nav-open .mobile-nav__panel { transform: translateX(0); }
body.mobile-nav-open { overflow: hidden; }

.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.mobile-nav__head img { height: 32px; }

.mobile-nav__list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.mobile-nav__list a {
  display: flex;
  align-items: center;
  padding: .85rem .25rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--c-gray-800);
  border-bottom: 1px solid var(--c-gray-100);
}
.mobile-nav__list a.is-active { color: var(--c-primary-600); }

.mobile-nav__info { display: grid; gap: .9rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--c-gray-100); }
.mobile-nav__info a { display: flex; align-items: center; gap: .65rem; color: var(--c-gray-600); font-size: .93rem; }
.mobile-nav__info svg { color: var(--c-primary-500); flex: none; }

/* ==========================================================================
   6. HERO / CARROSSEL
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  height: min(88vh, 720px);
  min-height: 460px;
}
.hero__track {
  display: flex;
  height: 100%;
  transition: transform .7s var(--ease);
}
.hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero__slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 15, 30, .82) 5%, rgba(6, 15, 30, .45) 55%, rgba(6, 15, 30, .35) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: #fff;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem;
  color: var(--c-accent-500); margin-bottom: 1rem;
}
.hero__title {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: .7rem;
}
.hero__text { color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 520px; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__nav {
  position: absolute;
  bottom: 1.75rem;
  right: max(1.75rem, calc((100% - var(--container-max)) / 2 + 1.25rem));
  z-index: 3;
  display: flex;
  gap: .6rem;
}
.hero__arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.hero__arrow:hover { background: var(--c-primary-500); border-color: var(--c-primary-500); }
.hero__arrow svg { width: 18px; height: 18px; }

.hero__dots {
  position: absolute;
  left: max(1.75rem, calc((100% - var(--container-max)) / 2 + 1.25rem));
  bottom: 2.1rem;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .25s var(--ease);
}
.hero__dot.is-active { background: var(--c-accent-500); width: 26px; border-radius: 6px; }

/* hero simples (páginas internas) */
.page-hero {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) 0 clamp(3.5rem, 8vw, 5rem);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6, 15, 30, .88), rgba(10, 40, 80, .68));
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .6rem; }
.breadcrumb { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0; color: rgba(255,255,255,.75); font-size: .92rem; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .5rem; color: rgba(255,255,255,.5); }

/* ==========================================================================
   7. SOBRE (teaser da home)
   ========================================================================== */
.about-teaser { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .about-teaser { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.about-teaser__media { position: relative; }
.about-teaser__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.about-teaser__badge {
  position: absolute;
  bottom: -1.25rem; left: -1.25rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.about-teaser__badge svg { width: 34px; height: 34px; color: var(--c-primary-500); flex: none; }
.about-teaser__badge strong { display: block; font-family: var(--font-heading); font-size: 1.25rem; color: var(--c-gray-900); }
.about-teaser__badge span { font-size: .82rem; color: var(--c-gray-500); }

.readmore-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
}
.readmore-panel.is-open { max-height: 400px; opacity: 1; margin-top: 1rem; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  color: var(--c-primary-600);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
}
.link-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ==========================================================================
   8. VALORES / VISÃO / MISSÃO
   ========================================================================== */
.pillars { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

.pillar-card {
  background: #fff;
  border: 1px solid var(--c-gray-100);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar-card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c-primary-500), var(--c-primary-700));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.pillar-card__icon svg { width: 28px; height: 28px; }
.pillar-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.pillar-card p { color: var(--c-gray-500); font-size: .97rem; margin: 0; }

/* ==========================================================================
   9. ESTATÍSTICAS
   ========================================================================== */
.stats {
  background: linear-gradient(120deg, var(--c-gray-900), var(--c-primary-900));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(16,137,255,.28), transparent 55%);
}
.stats__grid {
  position: relative;
  display: grid;
  gap: 2rem;
  text-align: center;
}
@media (min-width: 700px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }
.stat h3 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: .35rem;
  font-variant-numeric: tabular-nums;
}
.stat span { color: rgba(255,255,255,.7); font-size: .95rem; letter-spacing: .02em; }

/* ==========================================================================
   10. SERVIÇOS
   ========================================================================== */
.services-grid { display: grid; gap: 1.6rem; }
@media (min-width: 620px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: #fff;
  border: 1px solid var(--c-gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 15px;
  background: var(--c-primary-50);
  color: var(--c-primary-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.35rem;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.service-card__icon svg { width: 27px; height: 27px; }
.service-card:hover .service-card__icon { background: var(--c-primary-500); color: #fff; }
.service-card h3 { font-size: 1.18rem; margin-bottom: .6rem; }
.service-card p { color: var(--c-gray-500); font-size: .95rem; margin: 0; }

.services-cta {
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--c-primary-700), var(--c-primary-500));
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #fff;
}
.services-cta h3 { color: #fff; margin-bottom: .35rem; }
.services-cta p { color: rgba(255,255,255,.85); margin: 0; }

/* ==========================================================================
   11. MAPA DO BRASIL
   ========================================================================== */
.map-section { overflow: hidden; }
.map-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) { .map-layout { grid-template-columns: .85fr 1.15fr; } }

.map-legend { display: grid; gap: 1.1rem; }
.map-legend__item { display: flex; gap: .9rem; align-items: flex-start; }
.map-legend__dot { width: 14px; height: 14px; border-radius: 50%; margin-top: .35rem; flex: none; }
.map-legend__dot--home { background: var(--c-primary-500); box-shadow: 0 0 0 5px var(--c-primary-50); }
.map-legend__dot--route { background: var(--c-green-500); box-shadow: 0 0 0 5px #e8f6ee; }
.map-legend h4 { margin-bottom: .25rem; font-size: 1.02rem; }
.map-legend p { margin: 0; color: var(--c-gray-500); font-size: .92rem; }

.map-wrap {
  position: relative;
  background: radial-gradient(circle at 30% 20%, var(--c-primary-50), transparent 60%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.br-map { width: 100%; height: auto; overflow: visible; }
.br-state {
  fill: #cfe3d6;
  stroke: #fff;
  stroke-width: 1.1;
  transition: fill .25s var(--ease);
}
.br-state:hover { fill: var(--c-green-500); }
.br-state--home {
  fill: var(--c-primary-500) !important;
  stroke: #fff;
}
.br-state--home:hover { fill: var(--c-primary-600) !important; }

.br-routes .br-route {
  fill: none;
  stroke: var(--c-primary-500);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 3 6;
  opacity: .8;
  animation: dash-flow 22s linear infinite;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -400; }
}

.br-marker { fill: var(--c-green-500); stroke: #fff; stroke-width: 1.4; }
.br-marker--home {
  fill: var(--c-primary-600);
  animation: map-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes map-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .br-routes .br-route { animation: none; }
  .br-marker--home { animation: none; }
}

/* ==========================================================================
   12. CTA CAMINHONEIRO / FAIXA COM IMAGEM
   ========================================================================== */
.banner-cta {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  text-align: center;
}
.banner-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,15,30,.86), rgba(10,45,90,.72)); }
.banner-cta__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.banner-cta h2 { color: #fff; }
.banner-cta p { color: rgba(255,255,255,.85); }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer { background: var(--c-gray-900); color: var(--c-gray-400); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.footer-brand img { height: 40px; margin-bottom: 1.1rem; }
.footer-brand p { font-size: .93rem; color: var(--c-gray-400); max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .02em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col a { color: var(--c-gray-400); font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; }
.footer-contact-item { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.footer-contact-item svg { color: var(--c-primary-400, var(--c-primary-500)); flex: none; margin-top: .2rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .85rem;
  color: var(--c-gray-500);
}
.footer-bottom a { color: var(--c-gray-400); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-credit strong { color: var(--c-gray-300); font-weight: 700; }

/* ==========================================================================
   14. COOKIE CONSENT
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 760px;
  margin: 0 auto;
  z-index: 2000;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .4s var(--ease);
  border: 1px solid var(--c-gray-100);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-primary-50); color: var(--c-primary-600);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.cookie-banner__icon svg { width: 24px; height: 24px; }
.cookie-banner__text h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.cookie-banner__text p { font-size: .89rem; color: var(--c-gray-500); margin-bottom: 0; }
.cookie-banner__text a { font-weight: 700; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

@media (max-width: 620px) {
  .cookie-banner { flex-direction: column; padding: 1.35rem; }
}

.cookie-fab {
  position: fixed;
  left: 1.1rem; bottom: 1.1rem;
  z-index: 1500;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--c-gray-900);
  color: #fff;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.cookie-fab svg { width: 24px; height: 24px; }
.cookie-fab:hover { background: var(--c-primary-600); transform: translateY(-3px); }
.cookie-fab.is-hidden { transform: scale(0); opacity: 0; pointer-events: none; }

/* modal de preferências */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 15, 25, .55);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-overlay.is-visible { opacity: 1; pointer-events: auto; }

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(24px) scale(.97);
  transition: transform .3s var(--ease);
}
.modal-overlay.is-visible .modal-card { transform: translateY(0) scale(1); }

.modal-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.modal-card__head h3 { margin-bottom: .3rem; }
.modal-card__head p { color: var(--c-gray-500); font-size: .92rem; }
.modal-close {
  border: none; background: var(--c-gray-100); color: var(--c-gray-600);
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--c-gray-200); }

.cookie-cats { display: grid; gap: 1rem; margin: 1.5rem 0; }
.cookie-cat {
  border: 1px solid var(--c-gray-100);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.cookie-cat__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-cat__row strong { font-family: var(--font-heading); font-size: .98rem; color: var(--c-gray-900); font-weight: 600; }
.cookie-cat p { margin: .5rem 0 0; font-size: .88rem; color: var(--c-gray-500); }
.cookie-cat--locked strong::after {
  content: 'sempre ativo';
  margin-left: .6rem;
  font-family: var(--font-body);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  color: var(--c-green-600);
  background: #e8f6ee;
  padding: .2rem .5rem;
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__track {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--c-gray-300); border-radius: 999px;
  transition: background .2s var(--ease);
}
.switch__track::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + .switch__track { background: var(--c-primary-500); }
.switch input:checked + .switch__track::before { transform: translateX(18px); }
.switch input:disabled + .switch__track { background: var(--c-green-500); cursor: not-allowed; opacity: .85; }

.modal-card__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ==========================================================================
   15. WHATSAPP FLUTUANTE
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  z-index: 1500;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.whatsapp-fab::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whats-pulse 2.6s ease-out infinite;
  z-index: -1;
}
@keyframes whats-pulse {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-fab::before { animation: none; } }

@media (max-width: 480px) {
  .whatsapp-fab { width: 52px; height: 52px; right: .85rem; bottom: .85rem; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
  .cookie-fab { width: 48px; height: 48px; left: .85rem; bottom: .85rem; }
}

/* ==========================================================================
   16. FORMULÁRIOS (contato / login)
   ========================================================================== */
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .87rem;
  color: var(--c-gray-700);
  margin-bottom: .5rem;
}
.field .input-wrap { position: relative; }
.field .input-wrap svg {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--c-gray-400);
  pointer-events: none;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .98rem;
  color: var(--c-gray-800);
  background: var(--c-gray-50);
  border: 1.5px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  padding: .85rem 1rem .85rem 2.75rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { padding-left: 1rem; min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-primary-500);
  background: #fff;
}
.field small.hint { display: block; margin-top: .4rem; font-size: .8rem; color: var(--c-gray-400); }
.field.has-error input, .field.has-error textarea { border-color: #e13c3c; }
.field .error-text { display: none; color: #e13c3c; font-size: .8rem; margin-top: .4rem; }
.field.has-error .error-text { display: block; }

.checkbox-row { display: flex; align-items: flex-start; gap: .65rem; font-size: .87rem; color: var(--c-gray-500); }
.checkbox-row input { margin-top: .3rem; }

.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: .82fr 1.18fr; } }

.contact-info-card {
  background: linear-gradient(150deg, var(--c-primary-700), var(--c-primary-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card > p { color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.contact-info-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; }
.contact-info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-list .ci-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.12);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-info-list .ci-icon svg { width: 20px; height: 20px; }
.contact-info-list strong { display: block; font-size: .95rem; margin-bottom: .15rem; }
.contact-info-list span, .contact-info-list a { color: rgba(255,255,255,.78); font-size: .92rem; }
.contact-info-list a:hover { color: #fff; }

.contact-form-card {
  background: #fff;
  border: 1px solid var(--c-gray-100);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-status {
  display: none;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.1rem;
  border-radius: var(--radius-md);
  background: #e8f6ee;
  color: var(--c-green-600);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; }

/* ---------- login ---------- */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3.5rem 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(16,137,255,.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,94,21,.08), transparent 45%),
    var(--c-gray-50);
}
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-gray-100);
  padding: clamp(2rem, 5vw, 3rem);
}
.auth-card__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--c-primary-50); color: var(--c-primary-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.auth-card__icon svg { width: 28px; height: 28px; }
.auth-card h1 { font-size: 1.55rem; margin-bottom: .4rem; }
.auth-card > p.lead-note { color: var(--c-gray-500); font-size: .95rem; margin-bottom: 1.75rem; }

.auth-notice {
  display: none;
  gap: .75rem;
  align-items: flex-start;
  background: #fff6ea;
  border: 1px solid #ffe1b3;
  color: #935b00;
  border-radius: var(--radius-md);
  padding: .95rem 1.1rem;
  font-size: .85rem;
  margin-top: 1.5rem;
}
.auth-notice.is-visible { display: flex; }
.auth-notice svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; }

.auth-foot { text-align: center; margin-top: 1.5rem; font-size: .9rem; color: var(--c-gray-500); }

/* ==========================================================================
   17. PÁGINAS LEGAIS
   ========================================================================== */
.legal-shell { display: grid; gap: 3rem; }
@media (min-width: 960px) { .legal-shell { grid-template-columns: 260px 1fr; } }

.legal-toc {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--c-gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: none;
}
@media (min-width: 960px) { .legal-toc { display: block; } }
.legal-toc h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-gray-500); margin-bottom: 1rem; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; display: grid; gap: .55rem; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex; gap: .6rem;
  font-size: .88rem; color: var(--c-gray-600);
}
.legal-toc a::before {
  content: counter(toc);
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid var(--c-gray-200);
  font-size: .7rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  color: var(--c-gray-500);
}
.legal-toc a:hover { color: var(--c-primary-600); }

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--c-gray-100);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal-content p, .legal-content li { color: var(--c-gray-600); font-size: .98rem; }
.legal-content ul, .legal-content ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.legal-content li { margin-bottom: .4rem; }
.legal-content strong { color: var(--c-gray-800); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; }
.legal-content th, .legal-content td { text-align: left; padding: .7rem .85rem; border: 1px solid var(--c-gray-200); }
.legal-content th { background: var(--c-gray-50); font-family: var(--font-heading); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

.legal-updated {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--c-gray-50);
  border-radius: var(--radius-pill);
  padding: .5rem 1rem;
  font-size: .84rem;
  color: var(--c-gray-500);
  margin-bottom: 2rem;
}
.legal-updated svg { width: 16px; height: 16px; color: var(--c-primary-500); }

.legal-callout {
  background: var(--c-primary-50);
  border-left: 4px solid var(--c-primary-500);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
  font-size: .93rem;
  color: var(--c-primary-900);
}

/* ==========================================================================
   18. LOADER
   ========================================================================== */
#loader {
  position: fixed; inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
#loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--c-gray-200);
  border-top-color: var(--c-primary-500);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   19. BACK TO TOP
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 5.6rem;
  z-index: 1400;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-gray-200);
  color: var(--c-gray-600);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: all .25s var(--ease);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }

/* ==========================================================================
   20. AJUSTES DE PÁGINA (fallbacks Bootstrap-free em áreas específicas)
   ========================================================================== */
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; } }

.team-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

.divider { height: 1px; background: var(--c-gray-100); border: none; margin: 3rem 0; }

.text-muted-soft { color: var(--c-gray-500); }
