/* ============================================
   MTD-Shelby — Custom Styles
   Bold editorial real estate website
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #1a3c2a;
    color: #f5f0e8;
}

/* --- Navigation --- */
.navbar-scrolled #navbar {
    background-color: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 60, 42, 0.08);
}

.navbar-scrolled .nav-text {
    color: #0f2519;
}

.navbar-scrolled .nav-subtext {
    color: #4a7a50;
}

.navbar-scrolled .nav-link {
    color: #2d4f33;
}

.navbar-scrolled .nav-logo-bg {
    fill: #1a3c2a;
}

.navbar-scrolled .nav-logo-bg path {
    stroke: #f5f0e8;
}

.navbar-scrolled .nav-logo-bg rect {
    stroke: #f5f0e8;
}

/* --- Hero Animations --- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

.hero-image-wrapper {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    animation: heroImageIn 1.2s ease-out 0.5s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Service Cards --- */
.service-card {
    opacity: 0;
    transform: translateY(40px);
}

.service-card.revealed {
    animation: cardReveal 0.7s ease-out forwards;
}

.service-card:nth-child(1).revealed { animation-delay: 0.05s; }
.service-card:nth-child(2).revealed { animation-delay: 0.12s; }
.service-card:nth-child(3).revealed { animation-delay: 0.19s; }
.service-card:nth-child(4).revealed { animation-delay: 0.26s; }
.service-card:nth-child(5).revealed { animation-delay: 0.33s; }
.service-card:nth-child(6).revealed { animation-delay: 0.40s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Section --- */
.about-images {
    opacity: 0;
    transform: translateX(-30px);
}

.about-images.revealed {
    animation: slideFromLeft 0.9s ease-out forwards;
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
}

.about-content.revealed {
    animation: slideFromRight 0.9s ease-out forwards;
}

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

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

/* --- Area Cards --- */
.area-card {
    opacity: 0;
    transform: translateY(30px);
}

.area-card.revealed {
    animation: areaReveal 0.7s ease-out forwards;
}

.area-card:nth-child(1).revealed { animation-delay: 0.05s; }
.area-card:nth-child(2).revealed { animation-delay: 0.12s; }
.area-card:nth-child(3).revealed { animation-delay: 0.19s; }
.area-card:nth-child(4).revealed { animation-delay: 0.26s; }

@keyframes areaReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Testimonial Cards --- */
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.revealed {
    animation: testimonialReveal 0.7s ease-out forwards;
}

.testimonial-card:nth-child(1).revealed { animation-delay: 0.05s; }
.testimonial-card:nth-child(2).revealed { animation-delay: 0.12s; }
.testimonial-card:nth-child(3).revealed { animation-delay: 0.19s; }

@keyframes testimonialReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
