/* ============================================
   Diamond Plaza — EJK Properties
   Classic & Elegant Real Estate Website
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

::selection {
    background-color: #2D6A4F;
    color: #FAF9F6;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F3EE;
}
::-webkit-scrollbar-thumb {
    background: #8FB88E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2D6A4F;
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav-link {
    position: relative;
}

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

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

#navbar.scrolled .nav-link {
    color: #1B4332;
}

#navbar.scrolled .nav-subtext {
    color: #2D6A4F;
}

#navbar:not(.scrolled) .nav-subtext {
    color: rgba(143, 184, 142, 0.8);
}

/* --- Mobile Menu --- */
.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* --- Hero Animations --- */
.hero-eyebrow {
    animation: slideUp 0.8s ease forwards;
}

.hero-title {
    animation: slideUp 0.8s 0.15s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-desc {
    animation: slideUp 0.8s 0.3s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-ctas {
    animation: slideUp 0.8s 0.45s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    animation: slideUp 0.8s 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* --- Scroll Reveal --- */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-section {
        opacity: 0;
        transform: translateY(30px);
    }

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

    .reveal-section:nth-child(2) { transition-delay: 0.1s; }
    .reveal-section:nth-child(3) { transition-delay: 0.2s; }
    .reveal-section:nth-child(4) { transition-delay: 0.3s; }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #8FB88E, #2D6A4F);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* --- Buttons --- */
a, button {
    cursor: pointer;
}

/* --- Form --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* --- Mobile Menu Open State --- */
body.menu-open {
    overflow: hidden;
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-title .italic {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* --- Print --- */
@media print {
    #navbar, #mobile-menu {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}
