/*------------------------------------------
  Estilos Gerais
------------------------------------------*/
:root {
    --primary-color: #0056b3;      /* Azul */
    --secondary-color: #e83e8c;    /* Magenta */
    --dark-color: #222;            /* Preto */
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --hover-color: #004494;
    --footer-color: #1a1a1a;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.section-title.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

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

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

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-load.loaded {
    opacity: 1;
}

/*------------------------------------------
  Header / Navegação
------------------------------------------*/
.navbar {
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.navbar.navbar-scrolled {
    padding: 8px 0;
}

.navbar-brand img {
    max-height: 50px;
    transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    max-height: 40px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

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

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

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.contato-btn {
    background-color: var(--primary-color);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 5px;
    margin-left: 10px;
}

.contato-btn:hover {
    background-color: var(--hover-color);
    color: white !important;
}

/*------------------------------------------
  Hero Section
------------------------------------------*/
#hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 60px;
}

.hero-text {
    padding-top: 50px;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btns {
    margin-bottom: 30px;
}

/*------------------------------------------
  Produtos e Categorias
------------------------------------------*/
.produto-card, .categoria-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
}

.produto-card:hover, .categoria-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.produto-card img, .categoria-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.produto-info, .categoria-info {
    padding: 20px;
}

.produto-info h3, .categoria-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.produto-info p, .categoria-info p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

/*------------------------------------------
  Serviços
------------------------------------------*/
.servico-box {
    padding: 30px 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.servico-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.icon-box {
    height: 70px;
    width: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 86, 179, 0.1);
    margin: 0 auto 25px;
}

.icon-box i {
    font-size: 28px;
    color: var(--primary-color);
}

.servico-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

/*------------------------------------------
  Sobre Mini
------------------------------------------*/
.sobre-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sobre-features li {
    margin-bottom: 15px;
    font-weight: 500;
}

.sobre-features i {
    margin-right: 10px;
}

/*------------------------------------------
  Categorias Sidebar
------------------------------------------*/
.categorias-sidebar {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.categorias-sidebar h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 20px;
}

.categoria-list .list-group-item {
    border: none;
    padding: 10px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.categoria-list .list-group-item a {
    color: var(--dark-color);
    display: block;
    font-weight: 500;
}

.categoria-list .list-group-item:hover a {
    color: var(--primary-color);
    padding-left: 5px;
}

.categoria-list .list-group-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

/*------------------------------------------
  Blog Posts
------------------------------------------*/
.blog-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    background-color: white;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-date {
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.blog-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-info p {
    margin-bottom: 15px;
    color: var(--gray-color);
}

/*------------------------------------------
  Depoimentos
------------------------------------------*/
.depoimento-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.depoimento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stars {
    margin-bottom: 15px;
    color: #ffc107;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.client-info p {
    color: var(--gray-color);
}

/*------------------------------------------
  Contato Form
------------------------------------------*/
.contato-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contato-info {
    margin-bottom: 20px;
}

.contato-info i {
    color: var(--primary-color);
    font-size: 18px;
    width: 30px;
}

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

#footer h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

#footer h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    bottom: 0;
    left: 0;
}

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

.footer-links li {
    padding: 7px 0;
}

.footer-links li a {
    color: #eee;
}

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

.social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
}

.newsletter-form .form-control {
    height: 45px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.2);
    box-shadow: none;
}

.copyright {
    background: #111;
    padding: 15px 0;
    font-size: 14px;
}

.copyright a {
    color: #eee;
}

.copyright a:hover {
    color: var(--secondary-color);
}

/*------------------------------------------
  WhatsApp Button
------------------------------------------*/
.whatsapp-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn span {
    font-size: 14px;
    margin-left: 5px;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.05);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    background-color: var(--hover-color);
    color: white;
}

/*------------------------------------------
  Responsividade
------------------------------------------*/
@media (max-width: 991px) {
    #hero {
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-text h2 {
        font-size: 24px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .categorias-sidebar {
        margin-bottom: 30px;
    }
    
    .contato-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 767px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .hero-text h1 {
        font-size: 30px;
    }
    
    .hero-text h2 {
        font-size: 20px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .servico-box, .produto-card, .categoria-card, .blog-card, .depoimento-card {
        margin-bottom: 20px;
    }
    
    /* WhatsApp btn no mobile */
    .whatsapp-btn {
        width: 100%;
        border-radius: 0;
        height: 50px;
        line-height: 50px;
        bottom: 0;
        left: 0;
        right: 0;
    }
    
    .whatsapp-btn span {
        display: inline-block !important;
    }
    
    .back-to-top {
        bottom: 60px;
    }
}

/* Animações e Efeitos */
.animated-card {
    transition: all 0.3s ease;
}

.animated-card:hover {
    transform: translateY(-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;
}

.preloader .spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
