/* ==========================================================================
   Martini Transportes — Stylesheet
   ========================================================================== */

:root {
  --navy-900: #0b1220;
  --navy-800: #0f1b30;
  --navy-700: #16233d;
  --navy-600: #1e2d4d;
  --gold-500: #d4a02c;
  --gold-400: #e6b94a;
  --gold-100: #fbeecb;
  --ink: #101826;
  --gray-600: #5b6474;
  --gray-300: #d8dce3;
  --gray-100: #f4f5f7;
  --white: #ffffff;
  --danger: #d64545;
  --shadow-md: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --ff-heading: 'Poppins', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900);
}

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

.text-gold { color: var(--gold-500); }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-icon { font-size: 48px; animation: bounce 1s infinite ease-in-out; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 10px 24px rgba(212, 160, 44, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212, 160, 44, 0.45); }
.btn-outline {
  border-color: var(--navy-700);
  color: var(--navy-900);
  background: transparent;
}
.btn-outline:hover { background: var(--navy-900); color: var(--white); }
.btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1fba57; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  padding: 18px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
#header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  font-family: var(--ff-heading);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.1;
}
.logo-text small {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.55rem;
  letter-spacing: 3px;
  color: var(--gold-400);
}

#nav ul { display: flex; gap: 30px; }
#nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity .2s ease;
}
#nav a:hover, #nav a.active { opacity: 1; }
#nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--gold-400);
  transition: width .25s ease;
}
#nav a:hover::after, #nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.hide-mobile { display: inline-flex; }

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1100;
}
#nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, #16233d 0%, #0b1220 55%, #070c16 100%);
  overflow: hidden;
  padding-top: 110px;
  padding-bottom: 60px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.shape-1 {
  width: 480px; height: 480px;
  background: var(--gold-500);
  top: -120px; right: -120px;
  opacity: 0.18;
}
.shape-2 {
  width: 380px; height: 380px;
  background: #3555a0;
  bottom: -140px; left: -100px;
  opacity: 0.3;
}
.hero-road {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.06) 40px 44px);
  mask-image: linear-gradient(to top, black, transparent);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
}
.stat strong {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2rem;
  color: var(--white);
  font-weight: 800;
}
.stat span {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-down {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  z-index: 1;
}
.scroll-down span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  background: var(--gold-400);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown {
  0% { top: 6px; opacity: 1; }
  70% { opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }

.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--gray-600); font-size: 1rem; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }

/* ---------- Service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-300);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card.featured {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  border: none;
  color: var(--white);
}
.service-card.featured h3, .service-card.featured p { color: var(--white); }
.service-card.featured .card-list li { color: rgba(255,255,255,0.75); }
.service-card.featured .card-icon { background: rgba(230, 185, 74, 0.15); color: var(--gold-400); }
.card-badge {
  position: absolute;
  top: -14px; right: 28px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card > p { color: var(--gray-600); margin-bottom: 18px; font-size: 0.95rem; }
.card-list { margin-bottom: 22px; }
.card-list li {
  font-size: 0.9rem;
  color: var(--gray-600);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.card-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--gold-500);
  font-weight: 700;
}
.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-500);
  transition: gap .2s ease;
}
.card-link:hover { text-decoration: underline; }

/* ---------- Diferenciais ---------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.diff-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.diff-icon { font-size: 2rem; margin-bottom: 14px; }
.diff-item h4 { font-size: 1.05rem; margin-bottom: 10px; }
.diff-item p { color: var(--gray-600); font-size: 0.9rem; }

/* ---------- Frota ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fleet-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fleet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fleet-media {
  height: 190px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px 0;
  background: linear-gradient(160deg, #eef1f7, #dde3ee);
}
.fleet-media::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 62%;
  height: 16px;
  background: radial-gradient(ellipse at center, rgba(11,18,32,0.22), rgba(11,18,32,0) 70%);
  transform: translateX(-50%);
}
.fleet-media img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 10px rgba(11, 18, 32, 0.18));
  transition: transform .4s ease;
}
.fleet-card:hover .fleet-media img { transform: translateY(-4px) scale(1.04); }
.fleet-body { padding: 22px 22px 26px; }
.fleet-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.fleet-body p { color: var(--gray-600); font-size: 0.88rem; margin-bottom: 14px; }
.fleet-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-800);
  background: var(--gold-100);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; width: 100%; }
.about-media-box {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--gold-400), var(--gold-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem;
}
.about-badge {
  position: absolute;
  bottom: -24px; left: -24px;
  background: var(--white);
  color: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 18px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge strong { display: block; font-size: 1.6rem; font-family: var(--ff-heading); color: var(--gold-500); }
.about-badge span { font-size: 0.75rem; color: var(--gray-600); }
.about-content p { color: rgba(255,255,255,0.78); margin-bottom: 16px; font-size: 0.98rem; }
.about-content h2 { margin-bottom: 20px; }
.about-list { margin: 26px 0 32px; display: grid; gap: 12px; }
.about-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.about-item span {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(230, 185, 74, 0.2);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ---------- Depoimentos ---------- */
.testimonials { max-width: 780px; margin: 0 auto; text-align: center; }
.testi-track { position: relative; min-height: 220px; }
.testi-card {
  display: none;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  animation: fadeIn .5s ease;
}
.testi-card.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px);} to { opacity: 1; transform: translateY(0);} }
.testi-stars { color: var(--gold-500); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 3px; }
.testi-card p { font-size: 1.05rem; color: var(--navy-800); margin-bottom: 22px; font-style: italic; }
.testi-author strong { display: block; font-family: var(--ff-heading); }
.testi-author span { color: var(--gray-600); font-size: 0.85rem; }
.testi-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.testi-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  transition: background .2s ease, transform .2s ease;
}
.testi-dots button.active { background: var(--gold-500); transform: scale(1.2); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  padding: 60px 0;
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.7); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info .section-sub { margin-bottom: 30px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.contact-item span { color: var(--gray-600); font-size: 0.9rem; }
.social-row { display: flex; gap: 12px; margin-top: 28px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
.social-btn:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 24px; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy-800);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--gray-100);
  transition: border-color .2s ease, background .2s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
}
.form-note { margin-top: 14px; font-size: 0.88rem; text-align: center; min-height: 20px; }
.form-note.success { color: #1f8f4d; }
.form-note.error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 10px; opacity: 0.8; transition: opacity .2s ease; }
.footer-col a:hover { opacity: 1; color: var(--gold-400); }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.85rem; }

/* ---------- Floating buttons ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform .25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

#backToTop {
  position: fixed;
  bottom: 26px; left: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--navy-900);
  color: var(--white);
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 900;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; margin: 0 auto 40px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
}

@media (max-width: 860px) {
  #nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 340px; height: 100vh;
    background: var(--navy-900); padding: 110px 32px 40px; transition: right .35s ease; z-index: 1050; }
  #nav.open { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.3); }
  #nav ul { flex-direction: column; gap: 22px; }
  #nav a { font-size: 1.05rem; }
  #nav-toggle { display: flex; }
  .hide-mobile { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .cards-grid, .diff-grid, .fleet-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .cta-banner-inner { text-align: center; justify-content: center; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-row { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .contact-form { padding: 28px; }
  .header-actions .btn-sm:last-child { display: none; }
}
