/* McNally Aesthetics — Custom Styles */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background-color: #2a7271;
    color: #ffffff;
}

/* Navbar transitions */
.nav-text {
    color: #0f172a;
}

.nav-subtext {
    color: #64748b;
}

.nav-link {
    color: #475569;
}

.nav-btn .nav-line {
    background-color: #1e293b;
}

/* Scrolled navbar styles */
.navbar-scrolled .nav-text {
    color: #0f172a;
}

.navbar-scrolled .nav-subtext {
    color: #64748b;
}

.navbar-scrolled .nav-link {
    color: #475569;
}

.navbar-scrolled .nav-btn .nav-line {
    background-color: #1e293b;
}

/* Mobile menu active state */
.mobile-menu-open .nav-btn .nav-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-open .nav-btn .nav-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Hero animations - these run on load, not scroll */
.hero-subtitle {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(1rem);
}

.hero-title-line {
    animation: heroFadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(1.5rem);
}

.hero-title-line:nth-child(1) { animation-delay: 0.5s; }
.hero-title-line:nth-child(2) { animation-delay: 0.7s; }
.hero-title-line:nth-child(3) { animation-delay: 0.9s; }

.hero-desc {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
    transform: translateY(1rem);
}

.hero-cta {
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 1.3s;
    opacity: 0;
    transform: translateY(1rem);
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-subtitle,
    .hero-title-line,
    .hero-desc,
    .hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    img {
        transition: none;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Image aspect ratio utilities */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #35908e;
    outline-offset: 2px;
}

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