/* Custom styles — editorial real estate aesthetic */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0e6;
}
::-webkit-scrollbar-thumb {
    background: #4f7a4e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d4a2c;
}

/* Header transition states */
.header-scrolled #header {
    background: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 58, 42, 0.08);
}

.header-scrolled .header-logo-text {
    color: #1a3a2a;
}

.header-scrolled .header-logo-sub {
    color: #4f7a4e;
}

/* Default header (transparent over hero) */
#header {
    background: transparent;
}

.header-logo-text {
    color: #1a3a2a;
}

.header-logo-sub {
    color: #4f7a4e;
}

.header-scrolled .header-logo-path {
    stroke: #1a3a2a;
}

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

.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

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

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: translateY(-6px) rotate(-45deg);
}

/* Scroll indicator animation */
@keyframes scroll-indicator {
    0% { top: -100%; }
    100% { top: 100%; }
}

.animate-scroll-indicator {
    animation: scroll-indicator 1.5s ease-in-out infinite;
}

/* Intersection observer fade-in */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Selection color */
::selection {
    background: #4f7a4e;
    color: #faf8f3;
}

/* Image hover container */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #4f7a4e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #header, .scroll-indicator { display: none; }
    body { color: #000; background: #fff; }
}
