/* Custom CSS for Morgan Poplin Real Estate */

:root {
    --charcoal: #2D2D2D;
    --coral: #E8735A;
    --cream: #FAF8F6;
    --soft-peach: #F5E6E0;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--cream);
}
::-webkit-scrollbar-thumb {
    background: var(--charcoal)/30;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--charcoal)/50;
}

/* Navbar */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 248, 246, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(45, 45, 45, 0.06);
}

/* Mobile Menu */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(4px, -4px);
    margin-left: 0;
    margin-right: 0;
}

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

.mobile-link {
    position: relative;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Image hover effects */
.group img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection color */
::selection {
    background: var(--coral);
    color: white;
}

/* Form focus states */
input:focus, textarea:focus, select:focus {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 3px rgba(232, 115, 90, 0.1) !important;
}

/* Smooth image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Parallax-like subtle effects */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        will-change: opacity, transform;
    }
}

/* Aspect ratio utilities */
.aspect-\[3\/4\] {
    aspect-ratio: 3/4;
}

/* Custom gradient for CTA section */
.bg-charcoal {
    background-color: var(--charcoal);
}

/* Hover lift effect for cards */
.hover\:shadow-xl:hover {
    box-shadow: 0 20px 40px rgba(45, 45, 45, 0.08);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-playfair {
        line-height: 1.1;
    }
}
