/* 
    Grupo Pax Domini - Custom CSS
    Author: Manus Full-stack Dev
*/

:root {
    --primary-color: #1521A3;
    --secondary-color: #25D366;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
    --text-dark: #1a1d23;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --primary-light: rgba(21, 33, 163, 0.1);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-gradient);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d166e;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #4a54f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-soft-primary {
    background-color: var(--primary-light);
}

.bg-whatsapp {
    background-color: var(--secondary-color);
}

/* Loading Spinner */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Navbar */
.navbar {
    padding: 0.8rem 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo-img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.navbar-brand {
    min-width: 0;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: 2px solid var(--primary-color);
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 20px);
}

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

.btn-primary:hover {
    background-color: #0d166e;
    border-color: #0d166e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(21, 33, 163, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 140px 0 100px;
    background: radial-gradient(circle at top right, rgba(21, 33, 163, 0.05) 0%, transparent 40%);
}

.fw-extrabold {
    font-weight: 800;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Service Cards */
.service-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.service-card:hover .text-muted {
    color: rgba(255,255,255,0.8) !important;
}

.service-card:hover .icon-circle {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.icon-box-md {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.pulse {
    animation: pulse-animation 2s infinite;
}

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

/* Utility */
.section-padding {
    padding: 100px 0;
}

.btn-whatsapp {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #1eb956;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.min-vh-400 {
    min-height: 400px;
}

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

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Responsive */
@media (max-width: 991.98px) {
    .navbar {
        background: #fff;
        padding: 0.6rem 0;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .nav-link {
        margin: 8px 0 !important;
        padding: 8px 0 !important;
    }
    
    .btn-client {
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-section {
        padding: 120px 0 60px;
        text-align: center;
    }
    
    .slogan-box {
        text-align: left;
    }
    
    .d-flex.flex-wrap {
        justify-content: center;
    }
}
