/* ========================================
   KitnetVilaPio - Estilos Customizados
   ======================================== */

/* --- Variáveis CSS --- */
:root {
    --primary-color: #0d6efd;
    --success-color: #25D366;
    --dark-color: #333333;
    --light-color: #F5F5F5;
    --white-color: #FFFFFF;
}

/* --- Reset e Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* --- Header Sticky --- */
.header-main {
    transition: all 0.3s ease;
}

.header-main.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

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

/* --- Hero Banner --- */
.hero-banner {
    min-height: 100vh;
    background-image: url('../images/kitnets/Fachada.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.7), rgba(37, 211, 102, 0.6));
}

.z-index-1 {
    z-index: 1;
}

/* --- Animações --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-slide-up {
    animation: fadeIn 1s ease-out 0.5s both;
}

.animate-slide-up-delay {
    animation: fadeIn 1s ease-out 0.7s both;
}

/* --- Cards e Hover Effects --- */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.hover-zoom {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: var(--success-color);
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* --- Gallery --- */
.gallery-item {
    overflow: hidden;
    border-radius: 0.375rem;
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* --- Breadcrumbs --- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--primary-color);
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* --- Footer --- */
.footer {
    background-color: #212529;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--success-color) !important;
}

/* --- Buttons --- */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

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

.btn-success:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
}

/* --- Forms --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.was-validated .form-control:valid {
    border-color: #198754;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

/* --- Utility Classes --- */
.min-vh-75 {
    min-height: 75vh;
}

.text-light-emphasis {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-banner {
        background-attachment: scroll;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-banner {
        min-height: 80vh;
    }
}

/* --- Loading States --- */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* --- Print Styles --- */
@media print {
    .header-main,
    .footer,
    .whatsapp-float,
    .btn {
        display: none !important;
    }
}
