/* Micro-interactions CSS */

/* Hero Background Images for pages without them */

/* FAQ page hero */
.faq-index-page .page-hero {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.90) 100%),
        url('/static/images/hero/hero-calculator-desktop.webp') center/cover no-repeat !important;
}

/* Woordenlijst page hero */
.woordenlijst-index-page .page-hero {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.90) 100%),
        url('/static/images/hero/hero-calculator-desktop.webp') center/cover no-repeat !important;
}

/* Verkeersongeval pages hero */
.verkeersongeval-index-page .page-hero,
.verkeersongeval-detail-page .page-hero {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.90) 100%),
        url('/static/images/hero/Auto-ongeluk.png') center/cover no-repeat !important;
}

/* Bedrijfsongeval pages hero */
.bedrijfsongeval-index-page .page-hero,
.bedrijfsongeval-detail-page .page-hero {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.90) 100%),
        url('/static/images/hero/hero-calculator-desktop.webp') center/cover no-repeat !important;
}

/* Lokaal pages hero */
.lokaal-page .page-hero {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.88) 0%, rgba(15, 118, 110, 0.92) 100%),
        url('/static/images/trust/trust-advocaten-team.webp') center/cover no-repeat !important;
}

/* Default fallback for all page-hero without specific background */
.page-hero {
    background:
        linear-gradient(135deg, rgba(13, 148, 136, 0.85) 0%, rgba(15, 118, 110, 0.90) 100%),
        url('/static/images/hero/hero-calculator-desktop.webp') center/cover no-repeat;
    background-size: cover;
    background-position: center;
}

/* FAQ Section Headings - align with faq-list */
.section .container > h2 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.section .container > h2:first-of-type {
    margin-top: 2rem;
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Card lift effect */
.card,
.faq-card,
.service-card,
.kennisbank-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.faq-card:hover,
.service-card:hover,
.kennisbank-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Form validation feedback */
input.error,
textarea.error {
    border-color: #e74c3c;
    animation: shake 0.3s ease;
}

input.success,
textarea.success {
    border-color: #27ae60;
}

input.error:focus,
textarea.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

input.success:focus,
textarea.success:focus {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Stat counter animations */
.advocaten-stat-value,
.stat-value,
.trust-number {
    transition: transform 0.2s ease;
}

/* Calculator slider animations */
input[type="range"] {
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 111, 0, 0.1);
}

input[type="range"]::-moz-range-thumb {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 8px rgba(255, 111, 0, 0.1);
}

[data-output] {
    transition: transform 0.15s ease;
}

/* Link hover effects */
a {
    transition: color 0.2s ease;
}

/* CTA button enhancements */
.btn-primary {
    background: linear-gradient(135deg, #FF6F00 0%, #FF8C00 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

/* Smooth transitions for all interactive elements */
button,
input,
select,
textarea {
    transition: all 0.2s ease;
}

/* Focus states */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #FF6F00;
    outline-offset: 2px;
}

/* Loading state for buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Image hover effects */
img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

a:hover img {
    transform: scale(1.02);
}

/* Table row hover */
table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: rgba(255, 111, 0, 0.05);
}

/* Badge animations */
.badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* SEO-optimized heading alternatives */
.why-title,
.expertise-title,
.damage-title,
.step-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.cta-heading {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Section subheadings - duplicate H2 replacements */
.section-subheading {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.3;
}
