/*
* Felipe Despachante Veicular - Styles
* Versão 1.0
*/

/* ======= CSS VARIABLES ======= */
:root {
    /* Cores principais definidas pelo PHP */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* ======= RESET & GENERAL STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--cor-fundo);
}

a {
    text-decoration: none;
    color: var(--cor-primaria);
    transition: var(--transition);
}

a:hover {
    color: var(--cor-secundaria);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: capitalize;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: white;
}

.btn-primary:hover {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-secundaria);
}

.btn-outline-primary {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--cor-primaria);
    color: white;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .section-padding {
        padding: 70px 0;
    }
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    margin-bottom: 20px;
    font-size: 36px;
    text-transform: capitalize;
    color: #222;
}

.section-title .subtitle {
    color: var(--cor-primaria);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 14px;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background-color: var(--cor-primaria);
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 5px;
}

/* ======= PRELOADER ======= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--cor-primaria);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ======= COOKIE NOTICE ======= */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 0;
    z-index: 999;
    display: none;
}

.cookie-notice p {
    margin-bottom: 0;
    padding-right: 15px;
}

.cookie-notice a {
    color: var(--cor-destaque);
    text-decoration: underline;
}

.cookie-notice button {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cookie-notice .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-notice p {
        margin-bottom: 15px;
        text-align: center;
    }
}

/* ======= HEADER & NAVIGATION ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 15px 0;
    transition: var(--transition);
}

.header.sticky {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.logo span {
    color: var(--cor-primaria);
}

.navbar {
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #222;
    font-weight: 500;
    padding: 10px 15px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--cor-primaria);
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--cor-primaria);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover:after,
.navbar-nav .nav-link.active:after {
    width: 30px;
}

.header-btn {
    margin-left: 15px;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.whatsapp-float a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.whatsapp-float a:hover {
    transform: scale(1.1);
}

/* ======= BANNER SECTION ======= */
.banner-section {
    padding: 180px 0 100px;
    background: url('../images/banner.jpg') no-repeat center center/cover;
    position: relative;
    z-index: 1;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.banner-content {
    color: white;
    max-width: 650px;
}

.banner-content h1 {
    font-size: 48px;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
    .banner-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .banner-section {
        padding: 150px 0 80px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

/* ======= ABOUT SECTION ======= */
.about-img {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.about-content .lead {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #444;
}

.feature-item {
    padding: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: var(--cor-primaria);
    font-size: 28px;
    margin-bottom: 15px;
}

.feature-item h5 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 14px;
}

/* ======= SERVICES SECTION ======= */
.service-card {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(var(--cor-primaria-rgb), 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 25px;
}

.service-card .icon-box i {
    font-size: 30px;
    color: var(--cor-primaria);
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.service-features li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--cor-primaria);
    margin-right: 10px;
    font-size: 14px;
}

/* ======= TESTIMONIAL SECTION ======= */
.testimonial-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 15px;
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-icon {
    color: var(--cor-primaria);
    font-size: 30px;
    opacity: 0.3;
    margin-bottom: 10px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-info {
    display: flex;
    align-items: center;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-bio h5 {
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-bio span {
    color: #777;
    font-size: 14px;
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 30px;
}

.owl-carousel .owl-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 5px;
    display: inline-block;
    transition: var(--transition);
}

.owl-carousel .owl-dot.active {
    background-color: var(--cor-primaria);
    width: 25px;
    border-radius: 5px;
}

/* ======= CONTACT SECTION ======= */
.contact-info-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background-color: var(--cor-primaria);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 20px;
}

.contact-info-item .content h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-item .content p {
    margin-bottom: 0;
}

.contact-info-item .content a {
    color: #333;
}

.contact-info-item .content a:hover {
    color: var(--cor-primaria);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--cor-primaria);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--cor-secundaria);
    color: white;
    transform: translateY(-3px);
}

.contact-form-wrap {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.map-container {
    margin-top: 50px;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ======= FOOTER SECTION ======= */
.footer-section {
    background-color: #222;
    color: white;
}

.footer-top {
    background-color: #292929;
}

.footer-title {
    font-size: 20px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--cor-primaria);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-widget .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-widget .social-links li {
    margin-right: 10px;
}

.footer-widget .social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.footer-widget .social-links a:hover {
    background-color: var(--cor-primaria);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a:before {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    margin-right: 10px;
    color: var(--cor-primaria);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info i {
    color: var(--cor-primaria);
    margin-right: 10px;
    font-size: 18px;
    width: 25px;
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-info a:hover {
    color: white;
}

.footer-middle {
    background-color: #1d1d1d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-bottom {
    background-color: #1a1a1a;
    font-size: 14px;
}

/* ======= PRIVACY & TERMS PAGES ======= */
.content-section {
    padding: 150px 0 80px;
}

.privacy-policy,
.terms-of-use {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.last-updated {
    font-style: italic;
    color: #777;
    margin-bottom: 30px;
}

.privacy-policy h3,
.terms-of-use h3 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.privacy-policy ul,
.terms-of-use ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.privacy-policy li,
.terms-of-use li {
    margin-bottom: 10px;
}

/* ======= RESPONSIVE STYLES ======= */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
    
    .navbar-nav .nav-link:after {
        display: none;
    }
}

@media (max-width: 767px) {
    .section-title h2 {
        font-size: 28px;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
}

/* ======= ANIMATIONS ======= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 1s ease forwards;
} 