/* ===== Custom Styles for Tree Ranch Mpls ===== */

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

body {
    overflow-x: hidden;
}

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

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

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

/* Navbar scroll state */
nav.scrolled {
    background-color: rgba(240, 250, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

nav.scrolled .nav-logo-text {
    color: #0A1628;
}

nav.scrolled .nav-link {
    color: rgba(10, 22, 40, 0.7);
}

nav.scrolled .nav-link:hover {
    color: #3D8B6E;
}

/* ===== Mobile Menu ===== */
.mobile-nav-link {
    position: relative;
}

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

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

/* Hamburger animation */
#menuBtn.active .menu-line:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-8px);
}

#menuBtn.active .menu-line:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Hero Image ===== */
@media (min-width: 1024px) {
    #top .lg\\:col-span-5 {
        margin-top: -40px;
    }
}

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

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

::-webkit-scrollbar-track {
    background: #F0FAF5;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3D8B6E;
}

/* ===== Selection ===== */
::selection {
    background-color: #B2E2C8;
    color: #0A1628;
}

/* ===== Form Styles ===== */
input, textarea {
    font-family: 'Inter', system-ui, sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3D8B6E;
    box-shadow: 0 0 0 3px rgba(61, 139, 110, 0.1);
}

/* ===== Utility ===== */
.font-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

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

/* ===== Smooth anchor offset for fixed nav ===== */
section[id], div[id] {
    scroll-margin-top: 80px;
}

/* ===== Print ===== */
@media print {
    nav, #mobileMenu, .reveal {
        display: none;
    }
}
