/* =============================================
   Real Estate Property — Huntington Beach
   Classic & Elegant · Plum + Amber Palette
   ============================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #d98fa0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7B3F5B;
}

/* ---------- Selection ---------- */
::selection {
    background: #7B3F5B;
    color: #FAF7F2;
}

/* ---------- Section Eyebrow ---------- */
.section-eyebrow {
    letter-spacing: 0.3em;
}

/* ---------- Navbar Transition ---------- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(123, 63, 91, 0.08);
}

#navbar.scrolled .nav-logo-text {
    color: #3d1e2c;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #7B3F5B;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* ---------- Menu Toggle Animation ---------- */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ---------- Hero Animations ---------- */
.hero-eyebrow {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-cta {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

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

/* ---------- Scroll Reveal ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

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

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #d4900a;
    transition: height 0.4s ease;
}

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

/* ---------- Listing Cards ---------- */
.listing-card {
    position: relative;
}

.listing-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #7B3F5B, #d4900a);
    transition: width 0.4s ease;
}

.listing-card:hover::after {
    width: 100%;
}

/* ---------- Form Styles ---------- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #7B3F5B !important;
    box-shadow: 0 0 0 3px rgba(123, 63, 91, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #d98fa0;
}

/* ---------- Testimonial Cards ---------- */
.bg-plum-50 {
    background-color: #f9f0f3;
}

/* ---------- Button Focus States ---------- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #d4900a;
    outline-offset: 2px;
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .section-eyebrow {
        letter-spacing: 0.2em;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 16px;
    }
}

/* ---------- Print Styles ---------- */
@media print {
    #navbar,
    #hero .absolute,
    footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
