/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- BASE STYLES --- */
:root {
    --rodopetro-red: #E60000;
    --rodopetro-dark: #121212; 
    --rodopetro-card-dark: #1f1f1f;
    --text-light: #f8f9fa;
    --text-muted-dark: #adb5bd;
    --font-family-base: 'Poppins', sans-serif;
    
    /* Sobrescrevendo cores do Bootstrap */
    --bs-primary: var(--rodopetro-red);
    --bs-primary-rgb: 230, 0, 0;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--rodopetro-dark);
    color: var(--text-light); 
}

.section-padding {
    padding: 80px 0;
}

/* --- HEADER STYLES --- */
.header {
    /* Efeito de transição suave para a mudança de cor */
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    background-color: transparent;
}

.header.header--scrolled {
    /* Estilo do header quando a página rolar */
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header__logo {
    height: 55px;
    /* Inverte a cor da logo para branco no início */
    filter: brightness(0) invert(1);
    transition: filter 0.4s ease;
}

.header.header--scrolled .header__logo {
    /* Retorna a cor original da logo ao rolar */
    filter: none;
}

.nav-link {
    font-weight: 600;
}

/* Estilo do ícone do menu hamburguer (mobile) */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.header.header--scrolled .navbar-toggler-icon {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- SECTIONS STYLES --- */

/* Hero Carousel (Swiper) */
.hero {
    height: 100vh; /* Ocupa a tela inteira */
    min-height: 600px;
    position: relative;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero__container {
    position: relative;
    z-index: 3;
}

.swiper-pagination-bullet-active {
    background: var(--rodopetro-red);
    transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--rodopetro-red);
}

/* Títulos das Seções */
.section__title {
    color: #ffffff;
}
.section__subtitle {
    color: var(--text-muted-dark);
}

/* Services Section */
.services__card {
    background-color: var(--rodopetro-card-dark);
    border: 1px solid #333;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.services__card .services__card-title {
    color: #ffffff;
}

.services__card .card-text {
    color: var(--text-muted-dark);
}

.services__card:hover {
    transform: translateY(-10px);
    border-color: var(--rodopetro-red);
}

.services__card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* About Section */
#about .text-muted {
    color: var(--text-muted-dark) !important;
}

.about__media-container {
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    aspect-ratio: 16 / 9; 
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

/* Testimonials Section */
.testimonial__card {
    background-color: var(--rodopetro-card-dark);
    padding: 2rem;
    border-radius: var(--bs-border-radius);
    border-top: 4px solid var(--rodopetro-red);
    height: 100%;
}
.testimonial__icon {
    font-size: 2.5rem;
    color: var(--rodopetro-red);
    opacity: 0.5;
}
.testimonial__text {
    font-style: italic;
    color: var(--text-muted-dark);
    margin: 1rem 0;
}
.testimonial__author {
    color: #ffffff;
    font-weight: 600;
}

/* Partners Section */
.partners-carousel .swiper-wrapper {
    align-items: center;
    transition-timing-function: linear !important;
}

.partner__logo {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.8;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner__logo:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* Footer Section */
.footer {
    background-color: #000;
    border-top: 1px solid #333;
}

.footer__link {
    text-decoration: none;
    transition: color 0.3s;
}

.footer__link:hover {
    color: var(--rodopetro-red) !important;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--text-muted-dark);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--rodopetro-red);
}

/* WhatsApp Floating Button */
.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 6px rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}