:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --secondary: #ff6b00;
    --secondary-dark: #e05a00;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #28a745;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    margin-top: 15px;
}

.btn-whatsapp:hover {
    background-color: #1f9e3d;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header-scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.top-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-start;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.contact-info a:hover {
    color: var(--light-gray);
}

.top-bar-image {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 10px 0;
}

.top-bar-image img {
    max-height: 1000%;
    max-width: 650px;
    object-fit: contain;
    border-radius: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.main-header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://solarprime.com.br/wp-content/uploads/2022/12/post_thumbnail-4cba05d81e1e8b18b6836ba70bd4d251.jpeg') no-repeat center center/cover;
    height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Mais Alugados Section */
.popular-section {
    background-color: var(--light-gray);
    padding: var(--section-padding);
}

.popular-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.popular-section .section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.popular-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}

.popular-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.popular-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateY(0);
    position: relative;
}

.popular-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.popular-img {
    height: 200px;
    overflow: hidden;
}

.popular-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-item:hover .popular-img img {
    transform: scale(1.05);
}

.popular-content {
    padding: 20px;
    text-align: center;
}

.popular-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.popular-content p {
    color: var(--gray);
    margin-bottom: 15px;
    min-height: 60px;
}

/* Categories Section */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
}

.section-header p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.category-img {
    height: 200px;
    overflow: hidden;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-content {
    padding: 20px;
    text-align: center;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.category-content p {
    color: var(--gray);
    margin-bottom: 15px;
    min-height: 60px;
}

/* Items Section */
.items-section {
    display: none;
    padding: 40px 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.item-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.item-img {
    height: 180px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-card:hover .item-img img {
    transform: scale(1.05);
}

.item-content {
    padding: 15px;
    text-align: center;
}

.item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.item-content p {
    color: var(--gray);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--secondary);
    transform: translateX(-5px);
}

/* Services Section (Loja Voltec) */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature i {
    color: var(--secondary);
    font-size: 20px;
    margin-top: 5px;
}

/* Contact Section */
.contact {
    background: linear-gradient(rgba(11, 11, 11, 0.9), rgba(0, 86, 179, 0.9)), url('https://blog.caaaluminio.com.br/wp-content/uploads/2024/05/Ferramentas-eletricas_700x409_1.png') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.contact .section-header h2 {
    color: var(--white);
}

.contact .section-header h2::after {
    background-color: var(--secondary);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5px;
    margin-top: 0px;
}

.contact-item {
    background: rgba(237, 105, 4, 0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(237, 105, 4, 0.2);
}

.contact-item i {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.contact-item h3 {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--light-gray);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 10px 0;
}

/* Barra de progresso de rolagem */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--secondary);
    z-index: 1001;
    width: 0%;
    transition: width 0.3s ease;
}

/* Botão de voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Animação para elementos ao rolar */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para a página de lista de produtos */
.product-list {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-item:last-child {
    border-bottom: none;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Prevenir quebra de layout nas categorias */
.categories, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-card, .service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-content, .service-icon + div {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Manter botões alinhados */
.btn-whatsapp {
    margin-top: auto;
    align-self: center;
}

/* Estilo para a busca */
.search-container {
    text-align: center;
    margin: 20px 0 30px;
}

#searchInput {
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    width: 100%;
    max-width: 500px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 2px 15px rgba(0,86,179,0.2);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info, .social-links {
        justify-content: center;
    }
    
    .top-bar-image {
        order: -1;
        height: 40px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 120px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        padding: 10px 0;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .top-bar-image {
        height: 45px;
        margin: 5px 0;
    }
    
    .top-bar-image img {
        max-height: 45px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        padding: 8px 0;
    }
    
    .top-bar-content {
        gap: 8px;
    }
    
    .contact-info a {
        font-size: 12px;
    }
    
    .contact-info a p {
        display: none;
    }
    
    .top-bar-image {
        height: 40px;
    }
    
    .top-bar-image img {
        max-height: 60px;
    }
    
    .social-links {
        gap: 30px;
    }
    
    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Ajustes específicos para a imagem do top-bar em dispositivos muito pequenos */
@media (max-width: 400px) {
    .top-bar-image {
        height: 45px;
    }
    
    .top-bar-image img {
        max-height: 35px;
    }
    
    .contact-info a {
        font-size: 20px;
    }
}

/* Estilos para a visualização de compartilhamento (opcional) */
.og-preview {
    display: none;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.og-preview img {
    width: 100%;
    height: auto;
}

.og-preview-content {
    padding: 15px;
}

.og-preview-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #0056b3;
}

.og-preview-description {
    color: #555;
    font-size: 14px;
}

.og-preview-url {
    color: #777;
    font-size: 12px;
    margin-top: 10px;
}

/* Adicionar cantos arredondados às imagens */
.category-img img,
.popular-img img,
.item-img img,
.about-img img {
    border-radius: 8px;
}

/* Manter a consistência nas transições */
.category-img img,
.popular-img img,
.item-img img {
    transition: transform 0.3s ease, border-radius 0.3s ease;
}

/* Justificar texto na seção Sobre */
.about-content p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Ajuste para 2 itens na seção de serviços */
@media (min-width: 768px) {
    .servicos-section .servicos-items {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Garantir que a seção Mais Alugados mantenha 3 colunas */
@media (min-width: 768px) {
    #mais-alugados .popular-items {
        grid-template-columns: repeat(3, 1fr);
    }
}


