/* ============================================
   Primerentalcar — Custom Styles
   Classic & Elegant Real Estate Website
   ============================================ */

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #0a1628;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #d4b965;
}

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

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-logo-text,
#navbar.scrolled .mobile-link {
    color: #0a1628 !important;
}

#navbar.scrolled .nav-subtitle-text {
    color: #253e66 !important;
}

#navbar.scrolled .menu-line {
    background: #0a1628;
}

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

/* --- Hero Animations --- */
.hero-badge {
    animation: fadeInDown 1s ease 0.3s forwards;
}

.hero-headline {
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-cta {
    animation: fadeInUp 1s ease 0.9s forwards;
}

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

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

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
}

/* Default visible state for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* --- 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);
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* --- Button Hover Effects --- */
a, button {
    transition: all 0.3s ease;
}

/* --- Form Focus States --- */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* --- Image Hover --- */
img {
    transition: transform 0.6s ease;
}

/* --- Selection Colors --- */
::selection {
    background: rgba(201, 168, 76, 0.35);
    color: #0a1628;
}

/* --- Testimonial Card Hover --- */
.bg-white {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.1);
}

/* --- Smooth Section Transitions --- */
section {
    position: relative;
}

/* --- Print Styles --- */
@media print {
    #navbar,
    #mobileMenu,
    .reveal-up,
    .reveal-left,
    .reveal-right {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
