/* ===== Custom Styles for Andrea Beckman Real Estate ===== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcfb;
}
::-webkit-scrollbar-thumb {
    background: #d4a0a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c1540;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #3d0717;
}

/* ===== Navigation ===== */
.nav-text {
    transition: color 0.3s ease;
}

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

.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(254, 252, 251, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(61, 7, 23, 0.08);
}

.navbar-scrolled .nav-text,
.navbar-scrolled .nav-link {
    color: #3d0717 !important;
}

.navbar-scrolled .nav-subtext {
    color: #7f1237 !important;
}

.navbar-scrolled .mobile-menu-line {
    background: #3d0717 !important;
}

.navbar-scrolled .nav-link::after {
    background: #7f1237;
}

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

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

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

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #9c1540;
    transition: width 0.3s ease;
}

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

/* ===== Reveal Animations ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: none;
}

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

/* ===== Button Hover Effects ===== */
button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(127, 18, 55, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* ===== Image Hover ===== */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ===== Card Hover ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== Decorative Elements ===== */
.font-serif {
    text-rendering: optimizeLegibility;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 br {
        display: none;
    }
    
    .section-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 4rem;
    }
}

/* ===== Focus Visible for Accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c0274f;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Print Styles ===== */
@media print {
    #navbar,
    #mobile-menu,
    .animate-pulse {
        display: none !important;
    }
    
    body {
        color: #1c1917;
        background: white;
    }
    
    section {
        page-break-inside: avoid;
    }
}
