/**
 * Quality Borrachas - Custom Styles
 * Paleta: #002D58 (Azul Marinho), #FFC107 (Amarelo Ouro)
 */

:root {
    --qb-primary: #002D58;
    --qb-secondary: #FFC107;
    --qb-white: #FFFFFF;
    --qb-gray-light: #F8F9FA;
    --qb-gray: #6C757D;
    --qb-gray-dark: #343A40;
    --qb-success: #28A745;
    --qb-danger: #DC3545;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--qb-gray-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Customização */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--qb-gray-light);
}

::-webkit-scrollbar-thumb {
    background: var(--qb-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #001a36;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--qb-primary);
}

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

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

/* Buttons */
.btn-cta {
    background-color: var(--qb-secondary);
    color: var(--qb-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta:hover {
    background-color: #FFA000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: var(--qb-white);
}

.btn-primary {
    background-color: var(--qb-primary);
    border-color: var(--qb-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #001a36;
    border-color: #001a36;
}

.btn-outline-primary {
    color: var(--qb-primary);
    border-color: var(--qb-primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--qb-primary);
    border-color: var(--qb-primary);
    color: var(--qb-white);
}

/* Header */
.header {
    background-color: var(--qb-primary);
    padding: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header .navbar {
    padding: 15px 0;
}

.header .navbar-brand img.logo {
    max-height: 50px;
    transition: var(--transition);
}

.header .nav-link {
    color: var(--qb-white) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.header .nav-link:hover {
    color: var(--qb-secondary) !important;
}

.header .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.header .dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
}

.header .dropdown-item:hover {
    background-color: var(--qb-primary);
    color: var(--qb-white);
    padding-left: 25px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--qb-primary) 0%, #003d7a 100%);
    display: flex;
    align-items: center;
    color: var(--qb-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/hero-pattern.svg') repeat;
    opacity: 0.05;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
}

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

.hero-badge {
    background-color: rgba(255, 193, 7, 0.2);
    color: var(--qb-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--qb-secondary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0;
    color: var(--qb-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons .btn {
    margin: 5px;
}

.hero-stats {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--qb-secondary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--qb-white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Header */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--qb-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0 20px;
    color: var(--qb-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--qb-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Segmento Card */
.segmento-card {
    background: var(--qb-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.segmento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 45, 88, 0.15);
}

.segmento-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--qb-primary), #003d7a);
    color: var(--qb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.segmento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.segmento-card p {
    color: var(--qb-gray);
    margin-bottom: 20px;
}

.segmento-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    flex-grow: 1;
}

.segmento-features li {
    padding: 8px 0;
    color: var(--qb-gray-dark);
}

.segmento-features li i {
    color: var(--qb-success);
    margin-right: 10px;
}

.segmento-card .btn {
    margin-top: auto;
}

/* Produto Card */
.produto-card {
    background: var(--qb-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 45, 88, 0.15);
}

.produto-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--qb-gray-light);
    flex-shrink: 0;
}

.produto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.produto-card:hover .produto-image img {
    transform: scale(1.1);
}

.produto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--qb-gray);
}

.produto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--qb-success);
    color: var(--qb-white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.produto-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.produto-categoria {
    color: var(--qb-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produto-content h3 {
    font-size: 1.25rem;
    margin: 10px 0 15px;
}

.produto-content p {
    color: var(--qb-gray);
    margin-bottom: auto;
    flex-grow: 1;
}

.produto-content .d-flex {
    margin-top: 20px;
}

/* Diferencial Item */
.diferencial-item {
    padding: 30px 20px;
    transition: var(--transition);
}

.diferencial-item:hover {
    transform: translateY(-5px);
}

.diferencial-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--qb-secondary), #FFA000);
    color: var(--qb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.diferencial-item h4 {
    font-size: 1.25rem;
    margin: 15px 0;
}

.diferencial-item p {
    color: var(--qb-gray);
    margin: 0;
}

/* Depoimento Card */
.depoimento-card {
    background: var(--qb-white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: var(--transition);
}

.depoimento-card:hover {
    box-shadow: 0 10px 30px rgba(0, 45, 88, 0.15);
}

.depoimento-stars {
    color: var(--qb-secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.depoimento-texto {
    font-style: italic;
    color: var(--qb-gray-dark);
    margin-bottom: 25px;
    line-height: 1.8;
}

.depoimento-autor strong {
    color: var(--qb-primary);
    display: block;
    margin-bottom: 5px;
}

.depoimento-autor span {
    color: var(--qb-gray);
    font-size: 0.9rem;
}

/* Orcamento Box */
.orcamento-box {
    background: var(--qb-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.orcamento-box h2 {
    color: var(--qb-primary);
    margin-bottom: 15px;
}

.form-label {
    font-weight: 600;
    color: var(--qb-primary);
    margin-bottom: 8px;
}

.form-control, .form-select {
    border: 2px solid var(--qb-gray-light);
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--qb-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 45, 88, 0.15);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--qb-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: var(--qb-white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Footer */
.footer {
    background-color: var(--qb-primary);
    color: var(--qb-white);
}

.footer-top {
    padding: 60px 0 40px;
}

.footer h4 {
    color: var(--qb-secondary);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer p {
    opacity: 0.9;
}

.social-links {
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--qb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--qb-secondary);
    color: var(--qb-primary);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--qb-white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--qb-secondary);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}

.footer-contact i {
    color: var(--qb-secondary);
    margin-right: 10px;
    font-size: 1.2rem;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--qb-secondary);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--qb-secondary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .orcamento-box {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}
