/* Custom styles for Hunden Home */
:root {
    --primary-bg: #EAE7E2;
    --accent-color: #9BAE8D;
    --secondary-accent: #AFC6C9;
    --warm-accent: #C98A6B;
    --header-bg: #ffffff;
    --footer-bg: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

/* Sticky navbar enhancements */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.site-header.scrolled .navbar {
    padding: 0.5rem 0;
}

/* Ensure content doesn't overlap with sticky header */
body {
    padding-top: 0;
}

/* Mobile sticky header adjustments */
@media (max-width: 991.98px) {
    .site-header {
        position: sticky;
        top: 0;
    }
    
    .navbar-collapse {
        background-color: var(--header-bg);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

.navbar-brand {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color) !important;
    letter-spacing: 0.5px;
}

.nav-link {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(155, 174, 141, 0.1);
    border-radius: 4px;
}

/* Search Input Styles */
.search-input {
    border-radius: 20px 0 0 20px;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    font-family: 'Raleway', sans-serif;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(155, 174, 141, 0.25);
}

.btn-outline-primary {
    border-radius: 0 20px 20px 0;
    border: 1px solid #ddd;
    border-left: none;
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Button Styles */
.btn-link {
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--warm-accent);
    transform: scale(1.05);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    font-family: 'Raleway', sans-serif;
}

.breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--warm-accent);
}

.breadcrumb-item.active {
    color: var(--warm-accent);
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-heading {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--accent-color);
}
/* Contact Page Styles */
.contact-info-card {
    background: linear-gradient(145deg, var(--header-bg) 0%, var(--primary-bg) 100%);
    transition: transform 0.3s ease;
}

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

.contact-form-section .form-control,
.contact-form-section .form-select {
    border: 1px solid rgba(155, 174, 141, 0.2);
    border-radius: 8px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(155, 174, 141, 0.25);
}

.accordion-button {
    background: linear-gradient(145deg, var(--header-bg) 0%, var(--primary-bg) 100%);
    border: none;
    color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(145deg, var(--accent-color) 0%, var(--secondary-accent) 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

.map-section iframe {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Enhanced Carousel Styles */
.hero-section {
    position: relative;
    overflow: hidden;
}

.carousel {
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: none;
}

/* Removed hover scale effect to prevent jerky animation */

/* Enhanced Carousel Captions */
.carousel-caption {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    text-align: left;
    animation: slideInUp 0.8s ease-out;
}

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

.carousel-caption h1,
.carousel-caption h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 1.2;
}

.carousel-caption p {
    font-family: 'Raleway', sans-serif;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.carousel-caption .btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 174, 141, 0.3);
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 174, 141, 0.4);
}

/* Hide Carousel Indicators */
.carousel-indicators {
    display: none !important;
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-accent) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(155, 174, 141, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(89%) contrast(86%);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
        margin: 0.5rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 0.3rem;
    }
}

@media (max-width: 576px) {
    .carousel-item img {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 1rem;
        text-align: center;
    }
    
    .carousel-caption h1,
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Additional Carousel Enhancements */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

/* Loading Animation for Carousel */
.carousel-item.loading {
    position: relative;
}

.carousel-item.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Enhanced Hover Effects */
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Removed will-change to prevent jerky animations */

/* Removed zoomIn animation to prevent jerky effects */

/* Custom Scrollbar for Carousel Indicators */
.carousel-indicators {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.carousel-indicators::-webkit-scrollbar {
    height: 4px;
}

.carousel-indicators::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-indicators::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Enhanced Focus States for Accessibility */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-indicators button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Auto-play Pause on Hover */
.carousel:hover {
    animation-play-state: paused;
}

/* Enhanced Button Styles in Captions */
.carousel-caption .btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-accent) 100%);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.carousel-caption .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.carousel-caption .btn-primary:hover::before {
    left: 100%;
}

/* Improved Text Readability */
.carousel-caption {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.carousel-caption h1,
.carousel-caption h2 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Enhanced Mobile Touch Interactions */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        touch-action: manipulation;
    }
    
    .carousel-indicators button {
        touch-action: manipulation;
        min-width: 44px;
        min-height: 44px;
    }
}

/* Removed will-change properties to prevent jerky animations */

/* Smooth Transitions for All Carousel Elements */
.carousel-item,
.carousel-caption,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Loading States */
.carousel-item img {
    transition: opacity 0.3s ease;
}

.carousel-item img[loading="lazy"] {
    opacity: 0;
}

.carousel-item img[loading="lazy"].loaded {
    opacity: 1;
}

/* Improved Focus Indicators */
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible,
.carousel-indicators button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(155, 174, 141, 0.2);
}

/* Enhanced Accessibility */
.carousel-caption {
    color: var(--text-primary);
}

.carousel-caption a {
    color: inherit;
    text-decoration: none;
}

.carousel-caption a:hover {
    color: var(--accent-color);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .carousel-caption {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--text-primary);
    }
    
    .carousel-indicators button {
        border: 2px solid var(--text-primary);
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--text-primary);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .carousel-item,
    .carousel-caption,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators button {
        transition: none;
    }
    
    .carousel-item img {
        transition: none;
    }
    
    .carousel-item.active img {
        animation: none;
    }
    
    .carousel-caption {
        animation: none;
    }
}
