:root {
    --primary-color: #701d0b;
    --secondary-color: #8b2f1b;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-muted: #6c757d;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    height: 100%;
    overflow: hidden; 
}

.section-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-teal {
    color: #45b7aa;
}

.text-maroon {
    color: var(--primary-color);
}

.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1050; 
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark-color) !important;
    text-decoration: none;
}

.brand-text {
    color: var(--primary-color);
    font-size: 1.4rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.navbar-toggler {
    padding: 0.5rem;
    font-size: 1.1rem;
    z-index: 1051;
}

.navbar-toggler:focus {
    box-shadow: none;
    border: 2px solid var(--primary-color);
}

.dropdown {
    position: relative;
    z-index: 1052;
}

.dropdown-toggle {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1052;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 29, 11, 0.3);
    background: linear-gradient(135deg, #5a1609, #6b2417) !important;
    border-color: transparent !important;
}

.dropdown-toggle:active {
    transform: translateY(0);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 220px;
    margin-top: 0.5rem;
    position: absolute !important;
    z-index: 1053 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
    color: var(--dark-color);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, rgba(112, 29, 11, 0.1), rgba(139, 47, 27, 0.1)) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.dropdown-item:active {
    background: linear-gradient(135deg, rgba(112, 29, 11, 0.2), rgba(139, 47, 27, 0.2)) !important;
    color: var(--primary-color) !important;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover i,
.dropdown-item:focus i,
.dropdown-item i.icon-hover {
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.dropdown-divider {
    margin: 0.5rem 1rem;
    opacity: 0.3;
}

.hero-section {
    background: linear-gradient(135deg, rgba(112, 29, 11, 0.8), rgba(139, 47, 27, 0.7)), 
                url('../images/bg.png') center/cover no-repeat;
    position: relative;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
    z-index: 1; 
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.animate-fade-up {
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.service-loaded {
    opacity: 1;
    transform: translateY(0);
}

.card-hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-item {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out;
}

.feature-loaded {
    opacity: 1;
    transform: translateY(0);
}

.text-loaded {
    animation: textGlow 1.5s ease-out;
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }
}

.pulse-animation {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.btn-loaded {
    animation: buttonSlideUp 0.8s ease-out forwards;
}

@keyframes buttonSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-item i {
    font-size: 2rem;
    display: block;
}

.feature-item h5 {
    margin-top: 1rem;
    font-weight: 600;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.emergency-contact {
    padding: 1rem;
}

.emergency-contact i {
    font-size: 2rem;
    display: block;
}

.emergency-contact h5 {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.contact-item i {
    font-size: 2.5rem;
    display: block;
}

.contact-item h5 {
    margin: 1rem 0;
    font-weight: 600;
    color: var(--dark-color);
}

.office-hours {
    border-left: 4px solid var(--primary-color);
}

.office-hours h5 {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 992px) {
    .dropdown {
        margin-top: 1rem;
        width: 100%;
        position: relative;
        z-index: 1052;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        z-index: 1052;
    }
    
    .dropdown-menu {
        width: 100%;
        margin-top: 0.25rem;
        position: static !important;
        transform: none !important;
        z-index: 1053 !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
    }
    
    .navbar-collapse {
        z-index: 1051;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .dropdown-toggle {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
}

html {
    scroll-behavior: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a1609, #6b2417);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-light:hover {
    transform: translateY(-1px);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

footer {
    background: linear-gradient(135deg, #701d0b, #8b2f1b) !important;
}

.navbar,
.service-card,
.contact-item,
.feature-item {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media print {
    .navbar,
    .hero-buttons,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: var(--dark-color) !important;
        padding: 2rem 0 !important;
    }
}