/* ============================================
   New Day Gardens — Custom Styles
   Classic & Elegant · Burgundy + Blush
   ============================================ */

/* --- Custom Properties --- */
:root {
    --burgundy-800: #800020;
    --burgundy-600: #b82847;
    --burgundy-400: #e96f8d;
    --burgundy-200: #f9d0d9;
    --burgundy-100: #fce8ec;
    --blush-100: #fdf0ed;
    --cream: #FAF7F5;
    --warm: #F5F0EB;
    --charcoal: #2D2A26;
    --stone: #6B6560;
}

/* --- Base Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: var(--burgundy-200);
    color: var(--burgundy-900);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* --- Hero Animations --- */
.hero-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

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

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

/* --- Scroll Down Indicator --- */
@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scroll-down {
    animation: scrollDown 1.5s ease-in-out infinite;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 247, 245, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--burgundy-600);
    transition: width 0.3s ease;
}

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

/* --- Service Cards --- */
.service-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.1);
}

/* --- Gallery Items --- */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.revealed {
    opacity: 1;
    transform: scale(1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* --- Mobile Menu Icon Animation --- */
#menuBtn.active #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active #bar2 {
    opacity: 0;
}

#menuBtn.active #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* --- Form Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--burgundy-600) !important;
    box-shadow: 0 0 0 3px rgba(184, 40, 71, 0.1);
}

/* --- Button Hover Effects --- */
a[class*="bg-burgundy"],
button[class*="bg-burgundy"] {
    position: relative;
    overflow: hidden;
}

a[class*="bg-burgundy"]::before,
button[class*="bg-burgundy"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

a[class*="bg-burgundy"]:hover::before,
button[class*="bg-burgundy"]:hover::before {
    left: 100%;
}

/* --- Decorative Divider --- */
.divider-burgundy {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy-400), var(--burgundy-800));
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero-image {
        order: 1;
    }

    .hero-content {
        order: 2;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .service-card:hover {
        transform: none;
    }

    .testimonial-card:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
    }

    .hero-content,
    .hero-image {
        opacity: 1;
        transform: none;
    }
}
