/* ============================================
   Kerri Trucano Realtor — Premium Dark Luxury
   ============================================ */

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

:root {
    --color-dark-800: #0f0f0f;
    --color-dark-900: #0a0a0a;
    --color-dark-950: #050505;
    --color-terracotta-400: #e07a5f;
    --color-terracotta-500: #c45a3c;
    --color-terracotta-600: #a8462d;
    --color-sand-200: #f4e4d4;
    --color-sand-300: #e8d5c0;
    --color-sand-400: #d4b896;
    --color-gold-300: #e5c07b;
    --color-gold-400: #d4a853;
    --color-gold-500: #c9983e;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark-900);
    color: var(--color-sand-200);
    font-family: 'Montserrat', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================
   Reveal on Scroll
   ============================================ */

.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   Navigation
   ============================================ */

#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--color-gold-400) !important;
}

/* Mobile Menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

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

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

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

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 6px;
}

/* ============================================
   Section Labels & Titles
   ============================================ */

.section-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold-400);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    color: var(--color-sand-200);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-terracotta-500);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--color-terracotta-500);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: 'Montserrat', system-ui, sans-serif;
}

.btn-primary:hover {
    background: var(--color-terracotta-600);
    border-color: var(--color-terracotta-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(196, 90, 60, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-sand-200);
    padding: 1rem 2rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(244, 228, 212, 0.2);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: 'Montserrat', system-ui, sans-serif;
}

.btn-secondary:hover {
    border-color: var(--color-gold-400);
    color: var(--color-gold-400);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--color-sand-200);
    padding: 1rem 2rem;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(212, 168, 83, 0.4);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: 'Montserrat', system-ui, sans-serif;
}

.btn-outline:hover {
    border-color: var(--color-gold-400);
    background: rgba(212, 168, 83, 0.1);
    color: var(--color-gold-400);
    transform: translateY(-2px);
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold-400), var(--color-terracotta-400));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Area Cards
   ============================================ */

.area-card {
    position: relative;
    overflow: hidden;
}

.area-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.area-card:hover::after {
    opacity: 1;
}

.area-card:hover {
    transform: translateY(-2px);
}

/* ============================================
   Testimonial Cards
   ============================================ */

.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 6rem;
    color: rgba(212, 168, 83, 0.06);
    line-height: 1;
    pointer-events: none;
}

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

/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
    animation: fadeIn 1s ease 2s both;
}

/* ============================================
   Form Styles
   ============================================ */

select option {
    background: var(--color-dark-900);
    color: var(--color-sand-200);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 640px) {
    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
        justify-content: center;
    }
}
