/* ============================================
   Laenfirmale.ee — Custom Styles
   Business theme: navy/gold, corporate, trustworthy
   ============================================ */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Header shadow on scroll */
.header-scrolled {
    box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
}

/* Hero gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    position: relative;
}
.hero-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Animated counter */
.counter-value { font-variant-numeric: tabular-nums; }

/* Card hover lift */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

/* Table zebra */
.comparison-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}
.comparison-table tbody tr:hover {
    background-color: #eff6ff;
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

/* Animate on scroll */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card icon */
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Lender logo */
.lender-logo {
    width: 120px;
    height: 48px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.2s, opacity 0.2s;
}
.lender-card:hover .lender-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Badge/Tag */
.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 6px;
}

/* CTA pulse */
.cta-pulse {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(30, 64, 175, 0.5); }
}

/* Breadcrumb separator */
.breadcrumb-sep::after {
    content: '/';
    margin: 0 0.5rem;
    color: #9ca3af;
}

/* Blog card image */
.blog-card-img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Calculator range input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: #1e40af;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Tier badge colors */
.tier-1 { background: #dcfce7; color: #166534; }
.tier-2 { background: #dbeafe; color: #1e40af; }
.tier-3 { background: #fef3c7; color: #92400e; }

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-menu.open {
    max-height: 600px;
    display: block;
}

/* Lender tabs */
.lender-tab {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.lender-tab:hover {
    background: #f9fafb;
    color: #1e40af;
}
.lender-tab.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}
.lender-row.hidden-by-filter {
    display: none;
}

/* Prose content styling */
.prose h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dbeafe;
}
.prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4b5563;
}
.prose ul, .prose ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.65;
    color: #4b5563;
}
.prose li strong {
    color: #111827;
}
.prose a {
    color: #1e40af;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose a:hover {
    color: #1d4ed8;
}

/* Mobile sticky nav spacing */
@media (max-width: 1023px) {
    body { padding-bottom: 56px; }
}

/* Print styles */
@media print {
    header, footer, .cta-pulse, #mobile-menu { display: none !important; }
}
