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

body {
    overflow-x: hidden;
}

::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* ── Navigation ── */
nav {
    color: rgba(255, 255, 255, 0.8);
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

nav.scrolled .nav-logo-text,
nav.scrolled .nav-logo-sub {
    color: #fff;
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.6);
}

nav.scrolled .nav-link:hover {
    color: #c9a84c;
}

nav.scrolled .nav-icon-house,
nav.scrolled .nav-icon-door {
    stroke: #c9a84c;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #c9a84c;
}

.nav-logo-text {
    color: #fff;
}

.nav-logo-sub {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile Menu ── */
.menu-line {
    background: #fff;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-menu-link {
    animation: menuLinkIn 0.4s ease forwards;
    opacity: 0;
}

#mobile-menu.open .mobile-menu-link:nth-child(1) { animation-delay: 0.05s; }
#mobile-menu.open .mobile-menu-link:nth-child(2) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-menu-link:nth-child(3) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-menu-link:nth-child(4) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-menu-link:nth-child(5) { animation-delay: 0.25s; }

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

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

.hero-title {
    animation: heroSlideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-desc {
    animation: heroSlideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta-primary,
.hero-cta-secondary {
    animation: heroSlideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

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

/* ── Service Cards ── */
.service-card {
    transition: border-color 0.5s ease, transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ── Area Items ── */
.area-item {
    transition: transform 0.3s ease;
}

.area-item:hover {
    transform: translateX(6px);
}

/* ── Testimonial Cards ── */
.testimonial-card {
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ── Form Styles ── */
.contact-form-container input:focus,
.contact-form-container textarea:focus {
    outline: none;
    border-color: #c9a84c !important;
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
    color: rgba(10, 22, 40, 0.15);
}

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

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

::-webkit-scrollbar-thumb {
    background: #c9a84c;
    border-radius: 3px;
}

/* ── Utility ── */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}
