/* Custom CSS for Nix Waxing Co. */

:root {
    --forest-dark: #1C4532;
    --forest-green: #2D5A3F;
    --forest-light: #4A7C5C;
    --off-white: #FDFBF7;
    --warm-gray: #F5F0E8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--off-white);
    color: var(--forest-dark);
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'DM Sans', sans-serif;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

/* Navbar Styles */
#navbar {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(28, 69, 50, 0.1);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(28, 69, 50, 0.08);
}

/* Service Cards */
.group:hover .group-hover\:bg-forest-green {
    background-color: var(--forest-green);
}

.group:hover .group-hover\:text-off-white {
    color: var(--off-white);
}

/* FAQ Toggle */
.faq-toggle {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding-top: 0;
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 90, 63, 0.2);
}

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

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--forest-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--forest-green);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}
