/* ========================================
   Melinda Shoemate RE/MAX — Custom Styles
   Bold Editorial | Teal & Slate Grey
======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #0d9488;
    color: white;
}

/* --- Navbar --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-fixed.scrolled .font-serif,
.nav-fixed.scrolled .text-slate-900 {
    color: #0f172a;
}

.nav-fixed.scrolled .menu-line {
    background-color: #0f172a;
}

/* --- Mobile Menu --- */
.mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-line {
    transition: all 0.3s ease;
}

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

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

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

.mobile-link {
    transition: color 0.3s ease;
}

/* --- Split Hero --- */
.hero {
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
}

.hero-headline {
    line-height: 1.05;
    letter-spacing: -0.02em;
}

/* Hero entrance animations */
.hero-tagline,
.hero-headline,
.hero-subtitle,
.hero-ctas,
.hero-stats {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-tagline { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.25s; }
.hero-subtitle { animation-delay: 0.4s; }
.hero-ctas { animation-delay: 0.55s; }
.hero-stats { animation-delay: 0.7s; }

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

.hero-img {
    transition: transform 0.6s ease;
}

.hero:hover .hero-img {
    transform: scale(1.02);
}

.hero-badge {
    animation: badgeFloat 0.8s ease 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0d9488;
    font-family: 'Inter', system-ui, sans-serif;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.01em;
}

/* --- Service Cards --- */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    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; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-stats {
        gap: 4px;
    }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
