/* ============================================================
   20LEVAR — styles.css | Mobile-First Responsive
   ============================================================ */

:root {
  --orange: #FF6B35;
  --orange-d: #E05520;
  --orange-l: #FF8C5A;
  --orange-glow: rgba(255, 107, 53, .22);
  --dark: #0B0B0B;
  --dark2: #131313;
  --dark3: #1A1A1A;
  --dark4: #222;
  --border: rgba(255, 255, 255, .07);
  --border-o: rgba(255, 107, 53, .25);
  --white: #fff;
  --off: #F5F4F2;
  --text: rgba(232, 230, 225, 1);
  --text-m: rgba(232, 230, 225, .56);
  --text-d: rgba(232, 230, 225, .3);
  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Barlow', sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-sm: 0 2px 12px rgba(0, 0, 0, .2);
  --sh-md: 0 8px 32px rgba(0, 0, 0, .35);
  --sh-lg: 0 24px 64px rgba(0, 0, 0, .5);
  --sh-o: 0 8px 32px rgba(255, 107, 53, .35);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --hh: 64px;
  --mw: 1240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb);
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  /* overflow-x removido para identificar vazamentos de layout */
  opacity: 0;
  transition: opacity .5s ease;
  padding-top: var(--hh);
}

/* Impede scroll do fundo quando o menu mobile está ativo */
body.nav-open {
  overflow: hidden;
}

body.is-loaded { opacity: 1; }

/* Imagens responsivas garantidas */
img, video { 
  display: block; 
  max-width: 100%; 
  height: auto; 
}

a { color: inherit; text-decoration: none; transition: color .3s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--mw);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 40px);
}
section {
  padding-block: clamp(60px, 10vw, 140px);
  scroll-margin-top: var(--hh);
}

/* ── Typography ── */
.display-xl {
  font-family: var(--fd);
  font-size: clamp(38px, 11vw, 100px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  display: block;
}
.display-md {
  font-family: var(--fd);
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.line--accent { color: var(--orange); }
.section__header { margin-bottom: clamp(32px, 5vw, 56px); }

/* ── Scroll progress ── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-l));
  z-index: 10000;
  transition: width .1s linear;
}

/* ── Cursor glow (desktop only) ── */
.cursor-glow {
  position: fixed; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 1; will-change: transform;
}

/* ── Loader ── */
#page-loader {
  position: fixed; inset: 0; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.6s ease;
}
.loader-ring {
  width: 48px; height: 48px;
  border: 3px solid var(--border); border-top-color: var(--orange);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Sec tag ── */
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 107, 53, .08);
  border: 1px solid var(--border-o);
  border-radius: 100px;
  color: var(--orange);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}

/* ================================================================
   HEADER — Mobile first
   ================================================================ */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--hh); z-index: 999;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
#site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.98);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.header__logo img { height: 34px; width: auto; }

/* Mobile nav overlay */
#nav-menu {
  position: fixed; inset: 0;
  background: var(--dark);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s ease; /* Transição suavizada */
}
#nav-menu.is-open { transform: translateX(0); }
.nav__list { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.nav__link {
  font-size: 26px; font-weight: 700; padding: 10px 24px;
  border-radius: var(--r-sm); color: var(--text-m);
  transition: all 0.2s ease; display: block;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); background: rgba(255,255,255,.06); }

/* Desktop: is-active gets orange underline for better contrast */
@media (min-width: 1024px) {
  .nav__link.is-active {
    color: var(--orange);
    background: var(--orange-glow);
    border-bottom: 2px solid var(--orange);
  }
}

.header__right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 9px; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; border-radius: 4px; color: var(--text-m);
  transition: all 0.2s ease;
  min-height: 44px; /* Aumentado para melhor área de toque */
  min-width: 34px;
}
.lang-btn:hover, .lang-btn.is-active { color: var(--orange); background: var(--orange-glow); }

.btn--header-cta {
  display: none;
  padding: 10px 18px; background: var(--orange); color: var(--white);
  border-radius: var(--r-sm); font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.3s ease; white-space: nowrap;
}
.btn--header-cta:hover { background: var(--orange-d); }

.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
  width: 48px; height: 48px; /* Padronizado para UX mobile */
  flex-shrink: 0;
  position: relative; z-index: 1001;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s ease; transform-origin: center;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; /* Ajustado para UX mobile */
  border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  transition: all 0.3s var(--ease); cursor: pointer; 
  min-height: 48px; /* Mínimo recomendado pela Apple/Google */
}
.btn--primary { background: var(--orange); color: var(--white); box-shadow: var(--sh-o); }
.btn--primary:hover { background: var(--orange-d); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-o); color: var(--orange); background: var(--orange-glow); }

/* ================================================================
   HERO — Mobile first (stacked)
   ================================================================ */
.hero {
  display: flex; flex-direction: column;
  background: var(--dark);
  min-height: calc(100vh - var(--hh)); /* Trocado svh por vh para compatibilidade */
}
.hero__content {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 5vw, 40px) clamp(32px, 5vw, 60px);
}
.hero__visual {
  width: 100%; height: clamp(220px, 48vw, 380px);
  overflow: hidden; position: relative; flex-shrink: 0;
}
.hero__img-main { width: 100%; height: 100%; object-fit: cover; }

.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.hero__badge--orange { background: var(--orange-glow); border: 1px solid var(--border-o); color: var(--orange); }
.hero__badge--white { background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-m); }
.badge-dot {
  width: 6px; height: 6px; background: var(--orange); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero__heading { margin-bottom: 18px; }
.hero__sub {
  font-size: clamp(15px, 2.5vw, 19px);
  color: var(--text-m); max-width: 520px; margin-bottom: 28px; line-height: 1.65;
}
.hero__actions {
  display: flex; flex-direction: column; gap: 12px;
}
.hero__actions .btn { width: 100%; max-width: 420px; }

/* ── Stats Band ── */
.stats-band {
  background: var(--dark2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-block: clamp(32px, 5vw, 48px);
}
.stats-band__inner {
  display: grid; 
  grid-template-columns: 1fr; /* Mobile-first: 1 coluna */
  gap: clamp(16px, 3vw, 24px); text-align: center;
}
.stat__num {
  display: block; font-family: var(--fd);
  font-size: clamp(32px, 8vw, 64px);
  font-weight: 900; color: var(--orange); line-height: 1; margin-bottom: 6px;
}
.stat__label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-m);
}

/* ── Services ── */
.services__grid {
  display: grid; 
  grid-template-columns: 1fr; /* Mobile-first */
  gap: 16px;
}
.service-card {
  background: var(--dark2); border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 40px);
  border-radius: var(--r-lg); transition: all 0.4s var(--ease);
}
.service-card__icon { font-size: 30px; margin-bottom: 18px; }
.service-card__title {
  font-family: var(--fd); font-size: 20px; font-weight: 800;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.service-card__desc { color: var(--text-m); font-size: 14px; line-height: 1.65; }

/* ── Fleet ── */
.fleet-section { background: var(--dark3); }
.fleet__photos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fleet__photo-item { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.fleet__photo-item img {
  width: 100%; height: clamp(220px, 50vw, 320px);
  object-fit: cover; transition: transform 0.6s ease;
}
.fleet__photo-item:hover img { transform: scale(1.04); }
.fleet__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.fleet__badge-tag {
  padding: 4px 10px; background: var(--orange); color: var(--white);
  font-size: 10px; font-weight: 800; border-radius: 4px; text-transform: uppercase;
}
.fleet__badge-tag--dark { background: var(--dark); }
.fleet__photo-cap {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: var(--white);
}
.fleet__photo-cap strong { display: block; font-family: var(--fd); font-size: 17px; text-transform: uppercase; }
.fleet__photo-cap span { font-size: 12px; color: rgba(255,255,255,0.7); }

.fleet__gallery { margin-top: clamp(32px, 5vw, 56px); }
.fleet__gallery-title {
  font-family: var(--fd); font-size: 18px; font-weight: 800;
  text-transform: uppercase; margin-bottom: 20px; text-align: center;
}
.fleet__gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.fleet__gallery-grid img {
  width: 100%; height: 80px; object-fit: cover;
  border-radius: var(--r-sm); opacity: 0.6; transition: all 0.3s ease; cursor: pointer;
}
.fleet__gallery-grid img:hover { opacity: 1; }

/* ── About ── */
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about__img-stack { position: relative; border-radius: var(--r-xl); overflow: hidden; }
.about__img-stack img { width: 100%; height: clamp(280px, 55vw, 460px); object-fit: cover; }
.about__year-badge {
  position: absolute; bottom: 20px; right: 20px;
  background: var(--orange); color: var(--white);
  padding: 14px 16px; border-radius: var(--r-lg);
  text-align: center; box-shadow: var(--sh-lg);
}
.about__year-badge .year {
  display: block; font-family: var(--fd);
  font-size: clamp(28px, 6vw, 40px); font-weight: 900; line-height: 1;
}
.about__year-badge .label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.about__text p { color: var(--text-m); font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.about__pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 24px); margin-top: clamp(24px, 4vw, 40px);
}
.pillar__title {
  font-family: var(--fd); font-size: 16px; font-weight: 800;
  text-transform: uppercase; color: var(--orange); margin-bottom: 6px;
}
.pillar__text { font-size: 13px; color: var(--text-m); }

/* ── Contact ── */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 80px); }
.contact__item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact__item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact__item-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--text-d); margin-bottom: 4px;
}
.contact__item-body { font-size: 17px; font-weight: 600; }
.contact__item-body a { color: var(--text); }
.contact__item-body a:hover { color: var(--orange); }
.contact__form {
  background: var(--dark2); border: 1px solid var(--border);
  padding: clamp(22px, 5vw, 48px); border-radius: var(--r-xl);
}
.contact__form h3 {
  font-family: var(--fd); font-size: clamp(20px, 4vw, 28px);
  font-weight: 900; text-transform: uppercase; margin-bottom: clamp(20px, 4vw, 32px);
}
.form__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form__field--full { grid-column: span 1; }
.form__label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; color: var(--text-m); margin-bottom: 8px;
}
.form__input, .form__select {
  width: 100%; background: var(--dark); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px;
  color: var(--white); font-family: inherit; font-size: 16px;
  transition: all 0.3s ease; min-height: 52px; -webkit-appearance: none;
}
.form__input:focus, .form__select:focus {
  outline: none; border-color: var(--orange); background: var(--dark3);
}
.form__input.is-error { border-color: #e05; }
.form__submit { width: 100%; margin-top: 8px; padding-block: 18px; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 54px; height: 54px; background: #25D366; color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
  z-index: 998; transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ── Footer ── */
.site-footer {
  padding-block: 32px; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-d); font-size: 12px;
}

/* ============================================================
   RESPONSIVE — Progressive Enhancement
   ============================================================ */

/* ── 540px+ ── */
@media (min-width: 540px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; min-width: 200px; }
  .fleet__gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .fleet__gallery-grid img { height: 88px; }
  .stats-band__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── 640px+ ── */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .fleet__gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .form__field--full { grid-column: span 2; }
}

/* ── 768px+ — Tablet ── */
@media (min-width: 768px) {
  :root { --hh: 70px; }

  .stats-band__inner { grid-template-columns: repeat(4, 1fr); }

  .fleet__photos { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .fleet__photo-item:last-child { grid-column: span 2; }
  .fleet__gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .fleet__gallery-grid img { height: 96px; }

  .about__pillars { grid-template-columns: repeat(2, 1fr); }
  .about__year-badge { bottom: 28px; right: 28px; padding: 18px 20px; }
}

/* ── 1024px+ — Desktop ── */
@media (min-width: 1024px) {
  :root { --hh: 75px; }

  /* Desktop header */
  .nav__toggle { display: none; }
  #nav-menu {
    position: static;
    inset: unset;
    transform: translateX(0) !important;
    background: transparent;
    display: flex; align-items: center;
    overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__link { font-size: 13px; padding: 8px 14px; }
  .btn--header-cta { display: inline-flex; }
  .header__logo img { height: 44px; }

  /* Hero side-by-side */
  .hero { flex-direction: row; }
  .hero__content {
    flex: 1.1; padding: 40px 5% 60px clamp(20px, 5vw, 40px);
  }
  .hero__visual { flex: 0.9; height: auto; min-height: 100%; }

  /* Services 4 cols */
  .services__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .service-card:hover { transform: translateY(-8px); box-shadow: var(--sh-o); }
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,107,53,.45); }

  /* Fleet 3 cols */
  .fleet__photos { grid-template-columns: repeat(3, 1fr); }
  .fleet__photo-item:last-child { grid-column: span 1; }
  .fleet__photo-item img { height: 300px; }
  .fleet__gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .fleet__gallery-grid img { height: 100px; }

  /* About 2 cols */
  .about__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }

  /* Contact 2 cols */
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; }

  /* WhatsApp larger */
  .whatsapp-float { width: 60px; height: 60px; bottom: 32px; right: 32px; }
  .whatsapp-float svg { width: 32px; height: 32px; }
}

/* ── Touch devices ── */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 52px; }
  .form__input, .form__select { min-height: 52px; font-size: 16px; }
  .service-card:hover { transform: none; box-shadow: none; }
  .btn--primary:hover { transform: none; box-shadow: var(--sh-o); }
  .fleet__photo-item:hover img { transform: none; }
  .nav__toggle { width: 48px; height: 48px; }
}

/* ── Landscape phone ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__content { padding-top: 16px; padding-bottom: 24px; }
  .hero__visual { display: none; }
  .hero__heading { margin-bottom: 10px; }
  .hero__sub { margin-bottom: 16px; }
}