/* ── Variables ─────────────────────────────────────────────── */
:root {
  --azul: #006994;
  --azul-dark: #004f70;
  --areia: #FFF8F0;
  --dourado: #D4A017;
  --whatsapp: #25D366;
  --whatsapp-dark: #1ebe5d;
  --texto: #1a1a1a;
  --texto-claro: #555;
  --branco: #ffffff;
  --sombra: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 12px;
  --trans: 0.3s ease;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--texto); background: #fff; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.7; color: var(--texto-claro); }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.6rem; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; border: none; transition: var(--trans); text-decoration: none; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--azul); }
.btn-primary { background: var(--azul); color: #fff; }
.btn-primary:hover { background: var(--azul-dark); transform: translateY(-2px); }

/* ── HEADER ─────────────────────────────────────────────────── */
#header { position: sticky; top: 0; z-index: 999; background: #fff; border-bottom: 1px solid #eee; transition: box-shadow var(--trans); }
#header.scrolled { box-shadow: var(--sombra); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.15rem; color: var(--azul); white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex-shrink: 0; }
#nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-weight: 500; font-size: 0.92rem; color: var(--texto); padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: var(--trans); }
.nav-link:hover, .nav-link.active { color: var(--azul); border-bottom-color: var(--azul); }
.btn-header { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

/* Hamburger */
#hamburger { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 19px; cursor: pointer; background: none; border: none; padding: 0; }
#hamburger span { display: block; height: 2.5px; background: var(--texto); border-radius: 2px; transition: var(--trans); }
#hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; }
#hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
  #hamburger { display: flex; }
  #nav-menu { display: none; flex-direction: column; position: fixed; inset: 68px 0 0 0; background: #fff; padding: 2rem 1.5rem; gap: 1.5rem; overflow-y: auto; }
  #nav-menu.open { display: flex; }
  .nav-link { font-size: 1.2rem; }
  .btn-header { width: 100%; justify-content: center; }
}

/* ── HERO ───────────────────────────────────────────────────── */
#inicio { min-height: 100svh; background-color: var(--azul-dark); background-image: linear-gradient(rgba(0, 15, 30, 0.55), rgba(0, 15, 30, 0.55)), url('../imagemhome/barragrandehome.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; align-items: center; padding: 5rem 0 3rem; }
.hero-content { max-width: 720px; }
.hero-content h1 { color: #fff; margin-bottom: 1.25rem; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.badge { background: rgba(255,255,255,0.15); color: #fff; padding: 0.4rem 0.9rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); }

/* ── SECTION BASE ───────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--areia); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { color: var(--azul); margin-bottom: 0.75rem; }
.section-header p { max-width: 600px; margin: 0 auto; }

/* ── SERVICES ───────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
.service-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--sombra); transition: var(--trans); border-top: 4px solid var(--azul); text-align: center; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,105,148,0.15); }
.service-icon { width: 56px; height: 56px; background: var(--areia); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.service-icon svg { width: 28px; height: 28px; stroke: var(--azul); }
.service-card h3 { color: var(--azul); margin-bottom: 0.5rem; }

/* ── ROUTES ─────────────────────────────────────────────────── */
.routes-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .routes-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .routes-grid { grid-template-columns: repeat(3, 1fr); } }
.route-card { background: #fff; border-radius: var(--radius); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; transition: var(--trans); }
.route-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,105,148,0.18); }
.route-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.route-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.route-card:hover .route-img { transform: scale(1.06); }
.route-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2.5rem 1.25rem 0.9rem; background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 65%, transparent 100%); }
.route-img-overlay h3 { color: #fff; font-size: 1.1rem; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.5); margin: 0; }
.route-card-content { padding: 1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.route-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.route-time { color: var(--dourado); font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.route-distance { color: var(--texto-claro); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.3rem; }
.route-road { font-size: 0.8rem; color: var(--texto-claro); display: inline-flex; align-items: center; gap: 0.3rem; }
.route-card .btn { margin-top: auto; font-size: 0.85rem; padding: 0.55rem 1rem; width: 100%; justify-content: center; }
.routes-note { text-align: center; margin-top: 1.5rem; font-style: italic; color: var(--texto-claro); }

/* ── WHY US ─────────────────────────────────────────────────── */
.why-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { text-align: center; padding: 1.5rem; }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-card h3 { color: var(--azul); margin-bottom: 0.5rem; }
.stats-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 3rem; padding: 2rem; background: var(--azul); border-radius: var(--radius); }
.stat { text-align: center; color: #fff; }
.stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--dourado); }
.stat span { font-size: 0.9rem; opacity: 0.9; }

/* ── HOW TO BOOK ─────────────────────────────────────────────── */
.steps { display: grid; gap: 2rem; grid-template-columns: 1fr; counter-reset: steps; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; position: relative; }
.step-number { width: 60px; height: 60px; background: var(--azul); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 1rem; }
.step h3 { color: var(--azul); margin-bottom: 0.5rem; }
.how-cta { text-align: center; margin-top: 2.5rem; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--sombra); }
.stars { color: var(--dourado); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card p { font-style: italic; margin-bottom: 1rem; color: var(--texto); }
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--azul); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; background: #fff; border: none; padding: 1.25rem 1.5rem; text-align: left; font-size: 1rem; font-weight: 600; color: var(--texto); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: var(--trans); }
.faq-question:hover { background: var(--areia); }
.faq-question .faq-icon { font-size: 1.3rem; color: var(--azul); transition: transform var(--trans); flex-shrink: 0; }
.faq-item.open .faq-question { background: var(--azul); color: #fff; }
.faq-item.open .faq-question .faq-icon { transform: rotate(45deg); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; background: #fafafa; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 1.25rem 1.5rem; }

/* ── ABOUT ──────────────────────────────────────────────────── */
.about-content { max-width: 760px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.05rem; margin-bottom: 1rem; }

/* ── FOOTER / CONTACT ───────────────────────────────────────── */
.cta-block { background: linear-gradient(135deg, #004f70, #006994); padding: 5rem 0; text-align: center; }
.cta-block h2 { color: #fff; margin-bottom: 1rem; }
.cta-block p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.1rem; }
footer { background: #0d1117; color: #ccc; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: #aaa; font-size: 0.9rem; transition: var(--trans); }
.footer-col ul li a:hover { color: var(--whatsapp); }
.footer-address { font-size: 0.88rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #222; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #666; }

/* ── FLEET CAROUSEL ─────────────────────────────────────────── */
.fleet-carousel-wrapper { position: relative; display: flex; align-items: center; gap: 0.75rem; }
.fleet-track-container { overflow: hidden; flex: 1; }
.fleet-track { display: flex; gap: 1.25rem; transition: transform 0.4s ease; will-change: transform; }
.fleet-slide { flex: 0 0 calc((100% - 2.5rem) / 3); min-width: 0; }
.fleet-slide img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); display: block; }
.fleet-caption { text-align: center; margin: 0.5rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--azul); }
.fleet-btn { width: 44px; height: 44px; background: var(--azul); color: #fff; border: none; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; flex-shrink: 0; transition: var(--trans); display: flex; align-items: center; justify-content: center; padding-bottom: 2px; }
.fleet-btn:hover { background: var(--azul-dark); transform: scale(1.05); }
.fleet-btn:disabled { background: #ccc; cursor: default; transform: none; }
.fleet-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.fleet-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: #ccc; cursor: pointer; padding: 0; transition: background 0.2s; }
.fleet-dots button.active { background: var(--azul); }
@media (max-width: 768px) { .fleet-slide { flex: 0 0 100%; } .fleet-slide img { height: 220px; } .fleet-btn { width: 36px; height: 36px; font-size: 1.5rem; } }

/* ── FLOATING WHATSAPP ──────────────────────────────────────── */
#float-whatsapp { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; background: var(--whatsapp); color: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; animation: bounce 2s infinite 3s; }
#float-whatsapp:hover { transform: scale(1.1); }
#float-whatsapp svg { width: 30px; height: 30px; fill: #fff; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
