/* ========================================
   Ransford Properties Inc — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #e8d5c0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
    background: #2e2e2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8956c;
}

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

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 149, 108, 0.1);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

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

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

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #c8956c 0%, #b07a52 100%);
    color: #0d0d0d;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200, 149, 108, 0.3);
    background: linear-gradient(135deg, #d4a57e 0%, #c8956c 100%);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #e8d5c0;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(232, 213, 192, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: rgba(200, 149, 108, 0.5);
    background: rgba(200, 149, 108, 0.08);
    color: #c8956c;
}

.btn-terracotta-inline {
    display: inline-flex;
    align-items: center;
    color: #c8956c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.25rem;
}

.btn-terracotta-inline:hover {
    gap: 0.5rem;
    color: #d4a57e;
}

/* ========================================
   Section Labels
   ======================================== */
.section-label {
    display: block;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-eyebrow {
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-headline {
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-subhead {
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-ctas {
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-stats {
    animation: fadeUp 0.8s ease 1s forwards;
}

/* Floating orbs animation */
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.orb-1 { animation: float 20s ease-in-out infinite; }
.orb-2 { animation: float 15s ease-in-out infinite reverse; }
.orb-3 { animation: float 18s ease-in-out infinite; }

/* Scroll line animation */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.8; transform: scaleY(1); }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   Stats
   ======================================== */
.stat-number {
    display: block;
}

.stat-label {
    line-height: 1.5;
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

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

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

/* ========================================
   Listing Cards
   ======================================== */
.listing-card {
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

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

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

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 149, 108, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Form Inputs
   ======================================== */
.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(232, 213, 192, 0.12);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #e8d5c0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(232, 213, 192, 0.3);
}

.input-field:hover {
    border-color: rgba(200, 149, 108, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.input-field:focus {
    border-color: #c8956c;
    background: rgba(200, 149, 108, 0.06);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.1);
}

.input-field option {
    background: #1c1c1c;
    color: #e8d5c0;
}

textarea.input-field {
    resize: none;
}

/* ========================================
   Mobile hamburger animation
   ======================================== */
#mobile-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.75rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
    
    .hero-stats {
        gap: 4px;
    }
}
