/* Custom styles for Corona Lombard PHP website */

/* General Styles */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --gold: #d4af37;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Enhanced Menu Styles */
.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    color: #333 !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.navbar-nav .nav-link.active::before {
    width: 100%;
}

/* Phone button enhanced styling */
.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-outline-primary:hover {
    color: white !important;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary:hover::before {
    left: 0;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }
}

/* Footer Styles */
footer {
    background-color: #212529;
    color: rgba(255, 255, 255, 0.8);
}

footer h5 {
    color: var(--warning);
    font-weight: 600;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* Hero Carousel */
.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="1" cy="1" r="1" fill="%23ffffff20"/></svg>');
    opacity: 0.2;
    pointer-events: none;
}

/* Benefits Section */
.card {
    transition: transform 0.3s ease;
}

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

/* Calculator Page */
input[type="range"]::-webkit-slider-thumb {
    background: var(--primary);
}

.calculator-result {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Catalog Page */
.catalog-item .card {
    overflow: hidden;
}

.catalog-item .card img {
    transition: transform 0.5s ease;
}

.catalog-item .card:hover img {
    transform: scale(1.05);
}

.catalog-item .card-footer {
    border-top: 1px solid rgba(0,0,0,.075);
}

/* Branch Map Tabs */
.nav-pills .nav-link {
    color: #555;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .hero-slide {
        height: 50vh !important;
    }
}

/* Gold-themed elements */
.text-gold {
    color: var(--gold) !important;
}

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

.btn-gold {
    color: #212529;
    background-color: var(--gold);
    border-color: var(--gold);
}

.btn-gold:hover {
    color: #212529;
    background-color: #c4a130;
    border-color: #b8982e;
}

/* Custom page transitions */
.page-transition {
    animation: pageTransition 0.3s ease-out;
}

@keyframes pageTransition {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
