/* ==========================================================
   Danubio Azul - CSS da Home (style.css + compra.css + <style> do index.php)
   ========================================================== */

:root {
    --primary-blue: #0d2d6e;
    --dark-blue: #21438a;
    --accent-blue: #1565c0;
    --blue: #007bff;
    --text-color: #21438a;
    --light-gray: #f5f6f7;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.1;
    overflow-x: hidden;
    background: var(--light-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1159px;
    margin: 0 auto;
    padding: 0 9px;
}

/* ---------- Botão flutuante WhatsApp ---------- */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.my-float {
    margin-top: 16px;
    color: #fff;
}

/* ==========================================================
   HEADER / MENU  (usado por cima.php)
   Confira em cima.php antes de apagar qualquer coisa daqui
   ========================================================== */
header {
    position: relative;
    z-index: 10;
}

.top-nav {
    padding: 12px 0;
    font-size: 11px;
}

.top-nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

.top-links {
    display: flex;
    gap: 25px;
}

.top-links a i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.login-btn a {
    background: var(--dark-blue);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-weight: 800;
    font-size: 22px;
    color: var(--dark-blue);
    line-height: 1;
}

.logo-text .slogan {
    font-size: 10px;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-blue);
    padding-bottom: 5px;
}

.nav-links a.active {
    border-bottom: 3px solid var(--primary-blue);
}

/* Menu mobile */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-blue);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    padding: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-nav-header img {
    height: 40px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-blue);
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
}

.mobile-nav-top-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-nav-top-links a {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.mobile-nav-top-links a i {
    color: var(--primary-blue);
    margin-right: 8px;
}

.mobile-nav hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.mobile-nav-footer {
    margin-top: auto;
}

.btn-login-mobile {
    display: block;
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero-wrapper {
    background: url('../img/ok_ok1.webp') no-repeat center / cover;
    position: relative;
    min-height: 583px;
    max-width: 1550px;
    margin: auto;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero {
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 550px;
}

.hero-content h1 {
    font-size: 41px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
    margin-bottom: 20px;
}

.missao {
    font-size: 41px;
    font-weight: 800;
    color: #0354c7;
    line-height: 0.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 16px;
    color: #1c2437;
    margin-bottom: 40px;
}

.features {
    display: flex;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 68, 204, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 18px;
}

.feature-text strong {
    display: block;
    font-size: 14px;
    color: var(--dark-blue);
    line-height: 6px;
}

.feature-text span {
    font-size: 12px;
    color: #0d2558;
}

/* ==========================================================
   BUSCA DE PASSAGENS (abas + widget ClickBus)
   ========================================================== */
.search-section {
    margin-top: -140px;
    position: relative;
    z-index: 20;
}

.widget-container {
    width: 80%;
    max-width: 1132px;
    min-width: 880px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.widget-header {
    display: flex;
    align-items: flex-end;
}

.tabs-container {
    background: var(--primary-blue);
    display: flex;
    padding: 0 10px;
    border-radius: 16px 16px 0 0;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab.active {
    color: #fff;
    border-bottom-color: var(--accent-blue);
}

.svg-curve {
    width: 30px;
    height: 30px;
    fill: var(--primary-blue);
    display: block;
}

.widget-body {
    background: var(--primary-blue);
    border-radius: 0 16px 16px 16px;
    padding: 0 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    max-width: 93%;
}

/* ==========================================================
   ESTATÍSTICAS
   ========================================================== */
.stats-section {
    padding: 19px 0;
    background: var(--light-gray);
    margin-top: 35px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    background: #fff;
    border-radius: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0 10px;
    margin-bottom: 16px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}

.stat-icon {
    font-size: 43px;
    color: var(--blue);
    margin-bottom: 42px;
    margin-right: 11px;
}

.stat-icon2 {
    font-size: 32px;
    color: var(--blue);
    margin-bottom: 1px;
    text-align: center;
    padding: 11px 10px;
}

.stat-info .stat-label {
    display: block;
    font-size: 14px;
    color: var(--dark-blue);
}

.stat-info .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--blue);
    margin: -1px 0;
}

.stat-info .stat-desc {
    font-size: 12px;
    color: var(--dark-blue);
}

/* ==========================================================
   FROTA + CARROSSEL
   ========================================================== */
.fleet-section {
    padding: 25px 0;
    background: var(--light-gray);
}

.fleet-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    align-items: center;
}

.section-tag,
.section-tag2 {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 15px;
}

.section-tag2 {
    width: 220px;
}

.section-tag.center {
    display: block;
    text-align: center;
}

.fleet-content h2 {
    font-size: 26px;
    color: var(--dark-blue);
    margin-bottom: 3px;
    line-height: 1;
    letter-spacing: -1px;
}

.fleet-content p {
    margin-bottom: 30px;
    font-size: 12px;
}

.btn-outline {
    display: inline-block;
    padding: 7px 11px;
    border: 2px solid var(--blue);
    color: var(--blue);
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 34px;
}

.fleet-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: auto;
}

.fleet-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fleet-feature-item i {
    color: var(--blue);
    font-size: 20px;
}

.fleet-feature-item div strong {
    display: block;
    font-size: 14px;
    color: var(--dark-blue);
}

.fleet-feature-item div span {
    font-size: 12px;
    color: #888;
}

/* Carrossel */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #fff;
    width: 25px;
    border-radius: 10px;
}

/* ==========================================================
   DESTINOS
   ========================================================== */
.destinations-section {
    padding: 25px 0;
    background: var(--light-gray);
}

.bk-tabs {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    overflow-x: auto;
    scrollbar-width: none;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 23px;
    margin-bottom: -10px;
}

.destination-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 209px;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dest-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.dest-info h3 {
    font-size: 16px;
    font-weight: 700;
}

.dest-info span {
    font-size: 12px;
    opacity: 0.8;
}

.more-destinations {
    background: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.more-content .number {
    display: block;
    font-size: 32px;
    font-weight: 800;
}

.more-content .label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin: 5px 0;
}

.more-content .desc {
    font-size: 12px;
    opacity: 0.7;
}

/* ==========================================================
   SERVIÇOS
   ========================================================== */
.services-section {
    padding: 7px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.service-item {
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.service-item i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 7px;
}

.service-item h3 {
    font-size: 16px;
    color: var(--dark-blue);
    margin-bottom: 1px;
}

.service-item p {
    font-size: 12px;
    color: #777;
}

/* ==========================================================
   CTA (banner 4x sem juros)
   ========================================================== */
.cta-section {
    background: var(--light-gray);
    margin: 20px;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--dark-blue);
    border-radius: 20px;
}

.cta-container img {
    width: 100%;
    height: 100%;
    margin-left: 7%;
}

/* ==========================================================
   FOOTER  (usado por footer.php)
   ========================================================== */
.main-footer {
    padding: 80px 0 40px;
    background: #001535;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr;
    gap: 40px;
}

.footer-brand img {
    border: 0;
}

.footer-brand p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-social h4 {
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li i {
    margin-right: 10px;
    color: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    .stats-grid,
    .destinations-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .fleet-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
    .top-nav { display: none; }
    .fleet-features { display: none; }

    .hero-wrapper {
        min-height: auto;
        background-image: url('../img/ok_ok1_mobile.webp'); /* foto hero do celular */
    }

    .hero-wrapper::before {
        background: linear-gradient(to bottom, rgba(3, 84, 199, 0.3) 0%, rgba(255, 255, 255, 0.8) 100%);
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-content h1 { font-size: 32px; }

    .features {
        margin-bottom: 108px;
        gap: 15px;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 250px;
        justify-content: flex-start;
    }

    .stats-grid,
    .destinations-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .destination-card img { height: 100%; }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-container img { margin-left: 0; }

    /* Widget de busca: abas escondidas no mobile */
    .widget-header { display: none; }

    .widget-container {
        width: 88%;
        margin-left: 2%;
    }

    .widget-body {
        border-radius: 16px;
        max-width: 71%;
    }
}

@media (max-width: 850px) {
    .hero { display: none; }
    .stats-section { display: none; }

    .search-section {
        margin-top: 30px;
        margin-left: -16px;
    }
}

@media (max-width: 600px) {
    .widget-container {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .widget-body { max-width: 388px; }
}
