/* Empyrean Funeral Service - Professional Custom Styles */

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #9F0028;
    --accent-light: #ba163f;
    --accent-dark: #8a0022;
    --text-dark: #000000;
    --text-light: #666666;
    --text-muted: #999999;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --gradient-accent: linear-gradient(135deg, #9F0028 0%, #9F0028 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.9) 100%);
    --gradient-orange: linear-gradient(135deg, #9F0028 0%, #9F0028 100%);
    --gradient-black: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.75rem;
    font-weight: 700;
}

h3 {
    font-size: 2.25rem;
    font-weight: 700;
}

h4 {
    font-size: 1.875rem;
    font-weight: 600;
}

h5 {
    font-size: 1.5rem;
    font-weight: 600;
}

h6 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0;
}

/* Header Styles */
.header {
    box-shadow: var(--shadow);
}

.top-bar {
    font-size: 0.9rem;
}

.top-bar .contact-info span {
    margin-right: 1rem;
}

.top-bar .social-links a {
    transition: opacity 0.3s ease;
}

.top-bar .social-links a:hover {
    opacity: 0.8;
}

.navbar {
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: var(--gradient-black);
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Contact */
.quick-contact {
    background: var(--accent-color) !important;
}

.quick-contact h3 {
    font-weight: 600;
}

.quick-contact .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.75rem 2rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-section .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.about-image img {
    box-shadow: var(--shadow);
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.service-icon {
    color: var(--accent-color);
}

.service-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card .btn {
    border-radius: 50px;
    font-weight: 600;
}

/* Obituaries Section */
.obituary-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
}

.obituary-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.sidebar-widget {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.notification-form .btn {
    border-radius: 50px;
    font-weight: 600;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--text-dark);
}

.testimonial-author {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Grief Support Section */
.grief-support-section {
    background: var(--light-gray);
}

.grief-support-form .btn {
    border-radius: 0 50px 50px 0;
    font-weight: 600;
}

.grief-support-form .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid var(--border-color);
}

.grief-support-image img {
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--gradient-black) !important;
}

.footer h5,
.footer h6 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer p {
    color: var(--text-light);
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
}

.footer .contact-info i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

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

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

.footer .social-links a {
    transition: opacity 0.3s ease;
}

.footer .social-links a:hover {
    opacity: 0.8;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .top-bar .contact-info span {
        display: block;
        margin-bottom: 0.5rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .quick-contact .text-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .testimonial-card,
    .sidebar-widget {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-primary {
    color: var(--accent-color) !important;
}

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

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

/* Form Styling */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Image Placeholders */
.about-image img,
.grief-support-image img {
    max-width: 100%;
    height: auto;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Page Header Styles */
.page-header {
    background: var(--gradient-black) !important;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* Contact Page Styles */
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.contact-icon {
    color: var(--accent-color);
}

.contact-method-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
}

.method-icon {
    color: var(--accent-color);
}

.hours-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
}

/* Obituaries Page Styles */
.obituary-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.obituary-item:hover {
    transform: translateY(-2px);
}

.obituary-actions {
    margin-top: 1rem;
}

.widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.widget h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget ul li a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--accent-color);
}

/* Services Page Styles */
.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.service-image img {
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.pricing-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card .card-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1rem 0;
}

.pricing-card .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.pricing-card .card-body {
    padding: 1.5rem;
}

.pricing-card ul li {
    margin-bottom: 0.75rem;
}

/* Emergency Contact Styles */
.emergency-contact {
    background: var(--accent-color) !important;
}

.emergency-contact .section-title {
    color: var(--white);
}

/* Form Enhancements */
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Map Container */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Location Details */
.location-details h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.location-details ul li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Notification Form */
.notification-form .input-group {
    max-width: 400px;
    margin: 0 auto;
}

/* Search Form */
.search-form .input-group {
    max-width: 100%;
}

/* Archive Links */
.widget ul li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.widget ul li:last-child a {
    border-bottom: none;
}

/* Memorial Services */
.memorial-services .service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
}

.memorial-services .service-card h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.memorial-services .service-card .text-muted {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Value Cards */
.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.value-icon {
    color: var(--accent-color);
}

/* Feature List */
.feature-list .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.feature-list .feature-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Facility Cards */
.facility-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
}

.facility-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: var(--light-gray);
}

.cta-buttons .btn {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Why Choose Us Section - Value Proposition Cards */
.value-proposition-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-proposition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.value-proposition-card:hover::before {
    transform: scaleX(1);
}

.value-proposition-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-color);
}

.value-proposition-card .value-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
    transition: var(--transition);
}

.value-proposition-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.value-proposition-card h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-proposition-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Trust Indicators */
.trust-indicator {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.trust-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, rgba(236, 112, 99, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.trust-indicator:hover::before {
    opacity: 1;
}

.trust-indicator:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.trust-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

.trust-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* CTA Block */
.cta-block {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.02) 0%, rgba(44, 62, 80, 0.02) 100%);
    z-index: 1;
}

.cta-block>* {
    position: relative;
    z-index: 2;
}

.cta-block h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-block .lead {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-block .cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.cta-block .cta-buttons .btn-primary {
    background: var(--gradient-accent);
    border: none;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.cta-block .cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.cta-block .cta-buttons .btn-outline-primary {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
}

.cta-block .cta-buttons .btn-outline-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.3);
}

/* Responsive Design for Why Choose Us */
@media (max-width: 768px) {
    .value-proposition-card {
        padding: 2rem 1.5rem;
    }

    .value-proposition-card .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .trust-number {
        font-size: 2.5rem;
    }

    .cta-block {
        padding: 2rem 1.5rem;
    }

    .cta-block h3 {
        font-size: 1.75rem;
    }

    .cta-block .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Location Page Styles */
.address-info .address-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.address-info .address-item i {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.address-info .address-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.address-info .address-item p {
    color: var(--text-dark);
    margin: 0;
}

.address-info .address-item a {
    color: var(--accent-color);
    text-decoration: none;
}

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

.transport-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.transport-icon {
    color: var(--accent-color);
}

.facility-features .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.facility-features .feature-item i {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.facility-gallery img {
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.facility-gallery img:hover {
    transform: scale(1.05);
}

.amenity-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
}

.amenity-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.amenity-card i {
    color: var(--accent-color);
}

/* Professional Featured Services Section */
.featured-services-section {
    background: var(--light-gray);
    padding: 6rem 0;
    position: relative;
}

.featured-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.6) 100%);
    z-index: 1;
}

.featured-services-section .container {
    position: relative;
    z-index: 2;
}

.featured-service-card {
    position: relative;
    height: 350px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.featured-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-color);
}

.featured-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.9) 0%, rgba(44, 62, 80, 0.8) 100%);
    z-index: 2;
    transition: var(--transition);
}

.featured-service-card:hover::before {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9) 0%, rgba(236, 112, 99, 0.8) 100%);
}

.service-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    z-index: 2;
}

.service-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.service-button {
    margin-top: 1rem;
}

.btn-text {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-text:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-gray);
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.testimonial-author h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Obituaries Section */
.obituaries-section {
    background: var(--white);
}

.obituary-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.obituary-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.obituary-card h5 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
}

.obituary-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Grief Support Section */
.grief-support-section {
    background: var(--white);
}

.grief-support-section img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Professional Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Professional Quick Contact Section */
.quick-contact {
    background: var(--gradient-black) !important;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.quick-contact .container {
    position: relative;
    z-index: 2;
}

.quick-contact h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.quick-contact p {
    margin-bottom: 0;
    opacity: 0.9;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.quick-contact .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quick-contact .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Professional Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Professional Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-black);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-title-accent {
    color: var(--accent-color);
    position: relative;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: slideInLeft 1.2s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badges {
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-badge i {
    font-size: 1rem;
    color: var(--accent-color);
}

.hero-buttons {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.hero-buttons .btn-outline-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.hero-buttons .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-stats li {
    text-align: center;
}

.hero-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stats span {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-figure {
    position: relative;
}

.hero-image {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-floating-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-deco {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
}

.hero-deco-1 {
    width: 100px;
    height: 100px;
    top: -50px;
    left: -50px;
}

.hero-deco-2 {
    width: 60px;
    height: 60px;
    bottom: -30px;
    right: -30px;
}

/* Particle Background */
.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
    animation: particle-float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    width: 8px;
    height: 8px;
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 80%;
    left: 70%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    width: 6px;
    height: 6px;
    top: 30%;
    left: 50%;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    width: 14px;
    height: 14px;
    top: 70%;
    left: 30%;
    animation-delay: 5s;
}

.particle:nth-child(7) {
    width: 9px;
    height: 9px;
    top: 10%;
    left: 60%;
    animation-delay: 6s;
}

.particle:nth-child(8) {
    width: 11px;
    height: 11px;
    top: 50%;
    left: 90%;
    animation-delay: 7s;
}

.particle:nth-child(9) {
    width: 7px;
    height: 7px;
    top: 90%;
    left: 40%;
    animation-delay: 8s;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Universal Page Header */
.page-header {
    background: var(--gradient-black);
    padding: 6rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pageDots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pageDots)"/></svg>');
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.page-header .lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Universal Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-section:nth-child(even) {
    background: var(--light-gray);
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    right: 0;
    margin: 0 auto;
}

.content-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Universal Card Styles */
.universal-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.universal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.universal-card h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.universal-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.universal-card .btn {
    margin-top: auto;
}

/* Universal Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* Universal Contact Info */
.contact-info-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.contact-info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-info-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-info-card a:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Universal Form Styles */
.universal-form {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Dropdown Menu Enhancements - Hover Functionality */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    z-index: 1050;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeInDown 0.3s ease-out;
}

/* Dropdown positioning */
.nav-item.dropdown {
    position: relative;
}

/* Dropdown toggle hover effect */
.dropdown-toggle:hover {
    color: var(--accent-color) !important;
}

/* Ensure dropdown stays open when hovering over menu items */
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.dropdown-item:focus {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Navbar Enhancements */
.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: var(--transition);
    padding: 0.75rem 1rem !important;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Top Bar Styling */
.top-bar {
    background: var(--gradient-black) !important;
    font-size: 0.9rem;
}

.top-bar .contact-info span {
    margin-right: 1rem;
}

.top-bar .social-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Hero Image Enhancements */
.hero-image {
    position: relative;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.universal-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.universal-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.universal-form .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

.universal-form .form-control::placeholder {
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-floating-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .content-section {
        padding: 3rem 0;
    }

    .universal-card {
        padding: 1.5rem;
    }

    .universal-form {
        padding: 2rem;
    }

    /* Mobile dropdown behavior - keep click functionality for touch devices */
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-top: 0;
        border-radius: 0;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }
}


  /* Add this inside <head> or your CSS file */
  @media (min-width: 769px) {
    .navbar-nav .dropdown:hover>.dropdown-menu {
      display: block;
      margin-top: 0;
    }

    .navbar-nav .dropdown-menu {
      transition: none;
    }

    .navbar-nav .dropdown.show>.dropdown-menu {
      display: block;
    }
  }