/* ========================================
   Tyrone Park Apartments — Custom Styles
   Classic & Elegant Design System
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    color: #14532d;
    background-color: #fefdf8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #166534;
    color: #fefdf8;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #15803d;
}

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

/* Default state for reduced motion / no-JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

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

#navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(22, 101, 52, 0.08);
}

#navbar.scrolled .text-current {
    color: #14532d !important;
}

#navbar.scrolled a:not([class*="bg-emerald"]):not([class*="bg-cream"]) {
    color: #14532d !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

#mobileMenu.closed .mobile-link {
    opacity: 0;
    transform: translateY(12px);
}

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

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

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

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

/* --- Decorative Elements --- */
.ornament {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #166534, transparent);
}

/* --- Button Hover Effects --- */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Image Hover --- */
img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Form Focus States --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px #166534;
}

/* --- Selection --- */
input::placeholder,
textarea::placeholder {
    color: #86efac;
}

/* --- Print Styles --- */
@media print {
    nav, #contact, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.2;
    }
}

/* --- Subtle Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.float-subtle {
    animation: float 4s ease-in-out infinite;
}

/* --- Loading State for Images --- */
img {
    background: linear-gradient(135deg, #dcfce7 0%, #fefdf8 100%);
}
