/* ============================================
   DESERT BAVARIAN SERVICE — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* Navbar Scroll State */
#navbar.scrolled {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #14b8a6;
    transition: width 0.3s ease;
}

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

/* Mobile Navigation */
.mobile-nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #14b8a6;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #14b8a6;
    transition: width 0.3s ease;
    margin: 2px auto 0;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Hover Effects */
.group:hover .group-hover\:bg-teal-600 {
    background-color: #0d9488;
}

/* Form Focus States */
input:focus,
textarea:focus,
select:focus {
    border-color: #0d9488 !important;
}

/* Button Ripple Effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Gallery Image Hover */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 148, 136, 0);
    transition: background 0.5s ease;
    pointer-events: none;
}

.overflow-hidden:hover::after {
    background: rgba(13, 148, 136, 0.1);
}

/* Selection Color */
::selection {
    background: #0d9488;
    color: white;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Testimonial Card Subtle Tilt */
@media (min-width: 768px) {
    .group:hover {
        transform: translateY(-4px);
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    .font-serif {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
}

/* Print Styles */
@media print {
    nav, #mobile-menu, .cta-section {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
