/* Custom styles for Loan Sniffer — complementing Tailwind */

/* Base typography refinements */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

body {
    font-family: 'Lora', Georgia, serif;
}

/* Smooth focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d46b45;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF7F2;
}
::-webkit-scrollbar-thumb {
    background: #d4cfc6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0a89a;
}

/* Selection color */
::selection {
    background: #d46b45;
    color: #FAF7F2;
}

/* Hero asymmetric layout adjustments */
@media (max-width: 1023px) {
    #top {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
}

/* Service card hover lift */
.group:hover {
    transform: translateY(-2px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Subtle parallax-like effect for hero image (desktop only) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

/* Print styles */
@media print {
    header, footer, #contact-form, #form-success {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}

/* 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.hidden-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
