/* Hot Springs Cemeteries Custom Styles */

:root {
    --primary-blue: #0f172a;
    --secondary-blue: #1e293b;
    --accent-blue: #334155;
    --gold-color: #d4af37;
    --dark-gold: #b8941f;
    --light-gold: #f4e4a6;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --background-light: #f8fafc;
    --white: #ffffff;
}

/* Base Styles */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    padding-top: 0;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
.section-title {
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.025em;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    border-radius: 1px;
}

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

.text-primary {
    color: var(--primary-blue) !important;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.navbar-brand i {
    color: var(--gold-color);
    margin-right: 0.75rem;
}

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

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--gold-color);
    background: rgba(212, 175, 55, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: var(--white);
    border-radius: 12px;
    padding: 0.75rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

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

/* Buttons */
.btn {
    font-weight: 500;
    letter-spacing: 0.025em;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 1px;
}

.btn-gold {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    color: var(--primary-blue);
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(212, 175, 55, 0.25);
}

.btn-gold:hover {
    background-color: var(--dark-gold);
    border-color: var(--dark-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(212, 175, 55, 0.35);
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(15, 23, 42, 0.25);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--border-color);
    background-color: var(--white);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.15);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
}

/* Home page hero image */
.hero-section .hero-image-container {
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-section .hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

.hero-section .hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(15, 23, 42, 0.1) 100%);
    border-radius: 20px;
    pointer-events: none;
}

/* Cemetery page hero image */
.cemetery-hero .hero-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cemetery-hero .hero-image-container img {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cemetery-hero .hero-image-container:hover img {
    transform: scale(1.02);
}

/* Cards */
.cemetery-card {
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.cemetery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.15) !important;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cemetery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cemetery-card:hover .cemetery-card-img {
    transform: scale(1.08);
}

.card-img-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 40%, 
        rgba(15, 23, 42, 0.2) 80%, 
        rgba(15, 23, 42, 0.4) 100%);
    pointer-events: none;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.shadow-hover {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

/* Main Content */
.main-content {
    position: relative;
    padding-top: 80px;
}

/* Cemetery specific styles */
.cemetery-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 5rem 0 4rem 0;
    position: relative;
}

.cemetery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--background-light);
}

.section-white {
    background: var(--white);
}

.section-dark {
    background: var(--primary-blue);
    color: var(--white);
}

/* Gallery */
.gallery-image {
    transition: transform 0.3s ease;
    cursor: pointer;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding-left: 0;
    font-size: 0.95rem;
}

/* Service Icons */
.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Footer */
.footer {
    background-color: #1f2937 !important;
    border-top: 4px solid var(--gold-color);
}

/* Breadcrumbs */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

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

/* Sidebar */
.sidebar .card {
    border: none;
}

.list-group-item.active {
    background-color: var(--light-blue);
    border-color: var(--secondary-blue);
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-section {
        text-align: center;
        min-height: 80vh;
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .cemetery-card {
        margin-bottom: 2rem;
    }
    
    .hero-section .hero-image-container {
        height: 400px;
        margin-top: 2rem;
    }
    
    .cemetery-hero {
        padding: 3rem 0;
        text-align: center;
    }
    
    .cemetery-hero .hero-image-container {
        margin-top: 2rem;
    }
    
    .cemetery-hero .hero-image-container img {
        min-height: 250px;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
    border-color: var(--secondary-blue);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0 !important;
    }
    
    body {
        padding-top: 0 !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}
