/* ============================================
   CUSTOM STYLES — Peter Streff Mortgage Site
   ============================================ */

/* Custom Properties */
:root {
    --navy-900: #0F2B4C;
    --navy-800: #163A64;
    --navy-700: #1E4D7A;
    --navy-600: #2A5F8F;
    --navy-500: #3D7AB5;
    --navy-100: #E8F0F8;
    --navy-50: #F4F8FC;
    --gold-600: #B8943F;
    --gold-500: #C9A84C;
    --gold-400: #D4B96A;
    --gold-300: #E0CC8A;
    --gold-100: #FBF5E0;
    --gold-50: #FDF9F0;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F3;
    --stone-200: #E8E8E4;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-900);
    background-color: var(--stone-50);
}

.font-cormorant {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.font-manrope {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Section Eyebrow */
.section-eyebrow {
    display: block;
}

/* Navigation */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 43, 76, 0.06);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

.nav-logo-sub {
    transition: color 0.4s ease;
}

#navbar.scrolled .nav-logo-text {
    color: var(--navy-900);
}

#navbar.scrolled .nav-logo-sub {
    color: var(--navy-600);
}

/* Hero Animations */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-badges {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.7s;
}

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

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease, background-color 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Process Steps */
.process-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

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

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

body.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

::-webkit-scrollbar-track {
    background: var(--stone-50);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-200, #B0C4D8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-400, #5A8FB5);
}

/* Selection */
::selection {
    background: var(--gold-200, #E8D9A0);
    color: var(--navy-900);
}

/* Focus */
:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* 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;
    }
    
    .service-card,
    .process-step,
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .font-cormorant.text-5xl {
        font-size: 2.5rem;
    }
    
    .section-eyebrow {
        font-size: 0.7rem;
    }
}
