/**
 * Alpha Futevolei Custom Styles
 */

/* General Styles */
:root {
    --primary-color: #ff6600;
    --primary-hover: #e65c00;
    --secondary-color: #000000;
    --tertiary-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Header Styles */
/* Garantindo cor de fundo para o navbar em todas as páginas */
.navbar.navbar-dark, 
body.archive.woocommerce .navbar.navbar-dark,
body.woocommerce-page .navbar.navbar-dark {
    background-color: #171717 !important;
}

/* Fixando o header durante rolagem na página inicial */
body.home .site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.woocommerce-archive-header {
    display: none!important;
}

/* Ajuste para o admin-bar quando o header está fixo */
body.admin-bar.home .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar.home .site-header {
        top: 46px;
    }
}

/* Ajustar o espaço do conteúdo quando o header está fixo */
body.home #page {
    padding-top: 115px!important;
}

.navbar-brand img {
    height: 40px!important;
    max-height: none!important;
    width: auto!important;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--tertiary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-slide p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    max-width: 600px;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* About Section */
.about-image {
    border-radius: 8px;
    overflow: hidden;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--tertiary-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.experience-badge .number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 14px;
    font-weight: 600;
}

.about-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Services Section */
.service-card {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: -35px auto 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-link {
    font-weight: 600;
    color: var(--primary-color);
}

.card-link:hover {
    color: var(--primary-hover);
}

/* Tournaments Section */
.tournament-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tournament-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-img-top-wrapper {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

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

.tournament-meta {
    font-size: 14px;
    color: #6c757d;
}

/* Products Section */
.product-card {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.product-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
}

.product-title a {
    color: var(--text-color);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
}

.product-price ins {
    text-decoration: none;
    color: var(--primary-color);
}

.product-price del {
    font-size: 14px;
    color: #6c757d;
    font-weight: 400;
}

/* Testimonials Section */
.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 30px;
    border: 5px solid var(--light-bg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.testimonial-content p {
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 20px;
}

.testimonial-indicators {
    position: static;
    margin-top: 30px;
}

.testimonial-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    opacity: 0.5;
    margin: 0 5px;
}

.testimonial-indicators button.active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* Contact Section */
.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
}

.contact-text h5 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form-wrapper {
    border-radius: 8px;
}

.form-control {
    border-radius: 4px;
    padding: 12px;
    height: auto;
}

textarea.form-control {
    min-height: 150px;
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: #fff;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 15px;
}

.hours li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.hours li:last-child {
    border-bottom: none;
}

.social-links a {
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background-color: #000000;
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
    }
    
    /* Remover container e py-4 do main#primary em mobile */
    main#primary.container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    
    
    main#primary.py-4 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 60vh;
    }
    
    /* Reforço para telas menores */
    main#primary.container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    main#primary.py-4 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
    }
    
    .experience-badge .number {
        font-size: 28px;
    }
    
    .experience-badge .text {
        font-size: 12px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    body.home #page {
        padding-top: 0px !important;
    }
    
    .fixed-top {
        top: 0px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-slide h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title h2:after {
        width: 60px;
    }
}