/* Kloek-huis Website Styles */
/* Complete CSS with exact colors, responsive design, and accessibility */

/* CSS Custom Properties - Legacy aliases for backward compatibility */
/* All design tokens are now in tokens.css */
:root {
    /* Legacy color aliases (mapped to tokens from tokens.css) */
    --kloek-green: var(--brand-green);
    --kloek-orange: var(--brand-orange);
    --kloek-blue: var(--brand-blue);
    --kloek-pink: var(--brand-pink);
    --warm-yellow: var(--brand-yellow);
    --soft-peach: var(--bg-blush);
    --warm-cream: var(--bg-cream);
    --warm-beige: var(--bg-sand);
    --text-dark: #2D3748; /* Legacy, use --text-primary from tokens */
    --text-light: #4A5568; /* Legacy, use --text-secondary from tokens */
    --primary-color: var(--brand-green);
    --secondary-color: var(--brand-orange);
    --accent-color: var(--brand-pink);
    --support-blue: var(--brand-blue);
    
    /* Legacy utility colors (mapped to tokens) */
    --white: var(--bg-surface);
    --black: #000000;
    
    /* Legacy line heights (mapped to tokens) */
    --line-height-tight: var(--line-height-tight);
    --line-height-snug: 1.375;
    --line-height-normal: var(--line-height);
    --line-height-relaxed: var(--line-height-relaxed);
    --line-height-loose: 2;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Prevent iOS zoom on input focus */
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-normal);
    color: var(--text-dark);
    background-color: var(--bg-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Accessibility - Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand-blue);
    color: var(--bg-surface);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-orange);
}

a:focus {
    color: var(--brand-orange);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target size */
    min-width: 44px;
}

.btn-primary,
.cta-button,
.submit-button {
    background: linear-gradient(135deg, var(--brand-pink), var(--brand-orange), var(--brand-yellow));
    color: var(--text-inverse);
    padding: clamp(1rem, 3vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(255, 140, 66, 0.4),
        0 3px 10px rgba(233, 30, 99, 0.2);
    touch-action: manipulation;
    user-select: none;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary::before,
.cta-button::before,
.submit-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.cta-button:hover::before,
.submit-button:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primary:focus,
.cta-button:hover,
.cta-button:focus,
.submit-button:hover,
.submit-button:focus {
    background: linear-gradient(135deg, #ff6b9d, #ff7043, #ffc107);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(255, 140, 66, 0.5),
        0 5px 15px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
    color: var(--bg-surface);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid var(--brand-blue);
}

.btn-outline:hover {
    background: var(--brand-blue);
    color: var(--bg-surface);
}

/* Container - harmonized with tokens */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header with warmer gradient - harmonized with tokens */
.header {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green), var(--brand-orange));
    color: var(--text-inverse);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green), var(--brand-orange));
    box-shadow: var(--shadow-md);
}

.header-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    min-height: 70px;
}

.logo {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.8rem);
    flex-shrink: 0;
}

.logo svg,
.logo img {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    flex-shrink: 0;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo:hover svg,
.logo:hover img {
    transform: scale(1.05);
}

/* Mobile-optimized navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-inverse);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s ease;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    background: var(--overlay-light);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-inverse);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero section - now handled by components.css, keeping for backward compatibility */
.hero {
    background: var(--brand-gradient), url('/picture_library/IMG_3171.jpeg');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--section-padding-y) var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-dark);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* Responsive typography */
.hero h1 {
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-6);
    color: var(--text-inverse);
    font-weight: var(--font-weight-bold);
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--font-size-xl);
    }
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    color: #f0f4f8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Warmer quote styling */
.hero .quote {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-style: italic;
    color: var(--brand-green);
    font-weight: 600;
    margin: 2rem 0;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero .quote::before,
.hero .quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--brand-orange);
    text-shadow: 0 2px 4px rgba(255, 140, 66, 0.3);
}

.hero .cta {
    margin-top: var(--space-2xl);
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title h2 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section-title p {
    color: var(--text-light);
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
/* Card component - harmonized with tokens */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: var(--space-6);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-6);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.card p {
    color: var(--text-secondary);
    line-height: var(--line-height);
    font-size: var(--font-size-sm);
}

/* Wie zijn wij section specific styling */
#wie-zijn-wij {
    padding-bottom: var(--space-3xl);
    margin-bottom: 0;
    border-bottom: none;
}

/* Wat bieden wij section specific styling */
#wat-bieden-wij {
    padding-top: var(--space-2xl);
    margin-top: 0;
}

/* Section divider styling */
.section-divider {
    position: relative;
    z-index: 0;
}

/* Services section with warmer styling */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: linear-gradient(145deg, var(--bg-sand), var(--bg-blush));
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 
        0 4px 20px rgba(255, 140, 66, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card:hover,
.service-card:focus,
.service-card:active {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(255, 140, 66, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-orange);
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-blush));
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: gentleFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--delay, 0) * 0.5s);
}

.service-card:nth-child(1) .service-icon { --delay: 0; }
.service-card:nth-child(2) .service-icon { --delay: 1; }
.service-card:nth-child(3) .service-icon { --delay: 2; }
.service-card:nth-child(4) .service-icon { --delay: 3; }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-blue);
}

/* Grid Layouts - harmonized with tokens */
.grid {
    display: grid;
    gap: var(--space-8);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Testimonials section */
.testimonials {
    background: linear-gradient(135deg, var(--bg-blush), var(--bg-cream));
    padding: var(--space-16) var(--space-8);
    margin: var(--space-16) 0;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: visible;
}

.testimonials .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.testimonials .testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    max-width: 1200px;
    margin: 2rem auto;
}

@media (min-width: 768px) {
    .testimonials .testimonials-grid {
        flex-direction: row;
    }
    
    .testimonial-card {
        flex: 0 0 auto;
    }
}

@media (max-width: 767px) {
    .testimonial-card {
        width: 360px;
        height: 340px;
        padding: 4.5rem 2.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 300px;
        height: 280px;
        padding: 3.5rem 2rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        padding: 1.2rem 1.5rem;
    }
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='90' viewBox='0 0 100 90' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Cpath d='M50 8c-6-6-14-6-20 0-2 2-3 5-3 8 0 6 6 12 12 18l11 11 11-11c6-6 12-12 12-18 0-3-1-6-3-8-6-6-14-6-20 0z' fill='%23E91E63' fill-opacity='0.18'/%3E%3Cpath d='M18 12c-4-4-10-4-14 0-1 1-2 3-2 5 0 4 4 8 8 12l7 7 7-7c4-4 8-8 8-12 0-2-1-4-2-5-4-4-10-4-14 0z' fill='%23FF6B9D' fill-opacity='0.14'/%3E%3Cpath d='M82 50c-4-4-10-4-14 0-1 1-2 3-2 5 0 4 4 8 8 12l7 7 7-7c4-4 8-8 8-12 0-2-1-4-2-5-4-4-10-4-14 0z' fill='%23E91E63' fill-opacity='0.14'/%3E%3Cpath d='M26 65c-3-3-7-3-10 0-1 1-1 2-1 4 0 3 3 6 6 9l5 5 5-5c3-3 6-6 6-9 0-2 0-3-1-4-3-3-7-3-10 0z' fill='%23FF6B9D' fill-opacity='0.12'/%3E%3Cpath d='M74 6c-3-3-7-3-10 0-1 1-1 2-1 4 0 3 3 6 6 9l5 5 5-5c3-3 6-6 6-9 0-2 0-3-1-4-3-3-7-3-10 0z' fill='%23E91E63' fill-opacity='0.12'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 25% 35%, rgba(233, 30, 99, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 65%, rgba(255, 140, 66, 0.08) 0%, transparent 50%);
    background-size: 100px 90px, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    opacity: 1;
}

.testimonial-card {
    background: #E91E63;
    padding: 5rem 3rem;
    width: 420px;
    height: 400px;
    margin: 1rem;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: path('M210 368.5l-23.75-21.25C82.5 247.5 32.375 197.5 32.375 136.875 32.375 87.5 71.25 47.375 121.25 47.375c27.8125 0 54.5625 13 72 33.75 17.4375-20.75 44.1875-33.75 72-33.75 50 0 88.875 39.125 88.875 88.875 0 61.125-54.375 110.625-150.375 186.25L210 368.5z');
    -webkit-clip-path: path('M210 368.5l-23.75-21.25C82.5 247.5 32.375 197.5 32.375 136.875 32.375 87.5 71.25 47.375 121.25 47.375c27.8125 0 54.5625 13 72 33.75 17.4375-20.75 44.1875-33.75 72-33.75 50 0 88.875 39.125 88.875 88.875 0 61.125-54.375 110.625-150.375 186.25L210 368.5z');
    box-shadow: 
        0 8px 30px rgba(233, 30, 99, 0.3),
        0 4px 15px rgba(233, 30, 99, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.testimonial-card:hover {
    transform: scale(1.08);
    box-shadow: 
        0 12px 40px rgba(233, 30, 99, 0.4),
        0 6px 20px rgba(233, 30, 99, 0.3);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    clip-path: path('M210 368.5l-23.75-21.25C82.5 247.5 32.375 197.5 32.375 136.875 32.375 87.5 71.25 47.375 121.25 47.375c27.8125 0 54.5625 13 72 33.75 17.4375-20.75 44.1875-33.75 72-33.75 50 0 88.875 39.125 88.875 88.875 0 61.125-54.375 110.625-150.375 186.25L210 368.5z');
    -webkit-clip-path: path('M210 368.5l-23.75-21.25C82.5 247.5 32.375 197.5 32.375 136.875 32.375 87.5 71.25 47.375 121.25 47.375c27.8125 0 54.5625 13 72 33.75 17.4375-20.75 44.1875-33.75 72-33.75 50 0 88.875 39.125 88.875 88.875 0 61.125-54.375 110.625-150.375 186.25L210 368.5z');
    pointer-events: none;
    z-index: -1;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-inverse);
    line-height: 1.5;
    padding: 1.5rem 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: visible;
    box-sizing: border-box;
}

.testimonials .testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-author {
    font-weight: 600;
    color: var(--brand-orange);
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 5vw, 3rem);
}

.contact-info {
    background: linear-gradient(145deg, var(--bg-cream), var(--bg-blush));
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 6px 25px rgba(255, 140, 66, 0.15),
        0 3px 12px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    background: var(--brand-blue);
    color: var(--text-inverse);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-cream));
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 8px 32px rgba(255, 140, 66, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 140, 66, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: clamp(0.8rem, 2.5vw, 1rem);
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: clamp(1rem, 2.5vw, 1rem);
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 
        0 0 0 3px rgba(255, 140, 66, 0.2),
        0 4px 12px rgba(255, 140, 66, 0.1);
    background: linear-gradient(145deg, var(--bg-surface), var(--bg-blush));
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--brand-pink);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xs);
}

.form-success {
    background: var(--brand-green);
    color: var(--bg-surface);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

/* Footer */
/* Footer - harmonized with tokens */
.footer {
    background: var(--bg-sand);
    color: var(--text-primary);
    padding: var(--space-8) 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-section h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    line-height: var(--line-height);
}

.footer-section a:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    border-top: 1px solid var(--gray-300);
    padding-top: var(--space-6);
    text-align: center;
    color: var(--gray-400);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* Subtle floating animations for warmth */
@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Heart decorations */
.heart-decoration {
    color: var(--brand-pink);
    font-size: 1.5rem;
    display: inline-block;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Values section with enhanced warmth */
.values {
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    border-radius: var(--radius-lg);
    margin: clamp(2rem, 6vw, 4rem) 0;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.values h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.values-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    margin-top: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.value-item {
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    background: transparent;
    border-radius: var(--radius-lg);
    border: none;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-3px);
}

.value-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Career section */
.career-highlight {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink));
    color: var(--text-inverse);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem 0;
}

.career-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.career-highlight a {
    color: var(--text-inverse);
    font-weight: bold;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero h1 {
        font-size: var(--font-size-4xl);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero .quote {
        font-size: var(--font-size-lg);
    }
    
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .contact-form {
        padding: var(--space-2xl);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .values-grid {
        gap: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .quote {
        font-size: 1.1rem;
        margin: 1.5rem 0;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .card {
        padding: var(--space-lg);
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    .logo svg {
        width: 100px;
        height: 50px;
    }
    
    .service-card,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .values {
        padding: 2rem 1rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero h1 {
        font-size: var(--font-size-xl);
    }
    
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size-sm);
    }
    
    .logo {
        font-size: 1.2rem;
        gap: 0.4rem;
    }
    
    .logo-svg {
        width: 35px;
        height: 35px;
    }
}

/* Touch device optimizations */
.touch-device .nav-links a:hover,
.touch-device .service-card:hover,
.touch-device .cta-button:hover,
.touch-device .submit-button:hover {
    transform: none;
}

/* Mobile-specific touch improvements */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .cta-button:hover,
    .submit-button:hover {
        transform: none;
    }
    
    .cta-button:active,
    .submit-button:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Safe area insets for devices with notches */
@supports (padding: max(0px)) {
    header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .hero-content,
    main {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        background: var(--bg-surface);
        color: var(--text-dark);
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --kloek-green: #006400;
        --kloek-orange: #FF4500;
        --kloek-blue: #000080;
        --kloek-pink: #8B0000;
    }
    
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .form-input,
    .form-textarea {
        border: 2px solid var(--text-dark);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #F7FAFC;
        --text-light: #E2E8F0;
        --white: #1A202C;
        --warm-cream: #2D3748;
        --warm-beige: #4A5568;
        --gray-100: #2D3748;
        --gray-200: #4A5568;
        --gray-300: #718096;
        --gray-400: #A0AEC0;
        --gray-500: #CBD5E0;
        --gray-600: #E2E8F0;
        --gray-700: #EDF2F7;
        --gray-800: #F7FAFC;
        --gray-900: #FFFFFF;
    }
    
    body {
        background-color: var(--bg-cream);
        color: var(--text-dark);
    }
    
    .header {
        background: rgba(26, 32, 44, 0.95);
    }
    
    .card {
        background: var(--bg-surface);
        color: var(--text-dark);
    }
    
    .form-input,
    .form-textarea {
        background: var(--bg-surface);
        color: var(--text-dark);
        border-color: var(--gray-600);
    }
} 

/* Enhanced Section Spacing - Fix for Richard and Danielle overlap */
#wie-zijn-wij {
    padding-bottom: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    border-bottom: 3px solid var(--gray-200);
    position: relative;
}

#wie-zijn-wij::after {
    content: "";
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, var(--gray-200), transparent);
    z-index: 0;
}

#wat-bieden-wij {
    padding-top: var(--space-3xl);
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 1;
}

#wat-bieden-wij::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(to bottom, transparent, var(--gray-200));
    z-index: 0;
}

/* Enhanced section divider */
.section-divider {
    height: 6rem !important;
    background: linear-gradient(to bottom, transparent, var(--gray-200), transparent) !important;
    margin: 3rem 0 !important;
    border-top: 2px solid var(--gray-200) !important;
    border-bottom: 2px solid var(--gray-200) !important;
    position: relative;
    z-index: 0;
}

/* Additional spacing for cards in Wie zijn wij */
#wie-zijn-wij .card {
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

#wie-zijn-wij .card:last-child {
    margin-bottom: var(--space-2xl);
}

/* Ensure services grid has proper spacing */
#wat-bieden-wij .services-grid {
    margin-top: var(--space-2xl);
    position: relative;
    z-index: 1;
}

/* Mobile responsive spacing */
@media (max-width: 768px) {
    #wie-zijn-wij {
        padding-bottom: var(--space-2xl);
        margin-bottom: var(--space-xl);
    }
    
    #wat-bieden-wij {
        padding-top: var(--space-2xl);
        margin-top: var(--space-xl);
    }
    
    .section-divider {
        height: 4rem !important;
        margin: 2rem 0 !important;
    }
}

/* Print styles for better separation */
@media print {
    #wie-zijn-wij {
        page-break-after: always;
        border-bottom: 2px solid #000;
    }
    
    #wat-bieden-wij {
        page-break-before: always;
        border-top: 2px solid #000;
    }
}


/* ========================================
   CRITICAL LAYOUT FIXES - Kloek-huis Website
   ======================================== */

/* Fix section overlap issues */
#wie-zijn-wij {
    padding-bottom: 6rem !important;
    margin-bottom: 4rem !important;
    border-bottom: 3px solid var(--gray-200) !important;
    position: relative !important;
    z-index: 1 !important;
    background: var(--bg-surface) !important;
}

#wie-zijn-wij::after {
    display: none !important;
}

#wat-bieden-wij {
    padding-top: var(--space-2xl) !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    background: var(--gray-100) !important;
}

#wat-bieden-wij::before {
    display: none !important;
}

/* Enhanced section divider */
.section-divider {
    height: 8rem !important;
    background: linear-gradient(to bottom, transparent, var(--gray-200), transparent) !important;
    margin: 4rem 0 !important;
    border-top: 3px solid var(--gray-200) !important;
    border-bottom: 3px solid var(--gray-200) !important;
    position: relative !important;
    z-index: 0 !important;
}

/* Fix container positioning */
.container {
    position: relative !important;
    z-index: 1 !important;
}

/* Fix card positioning in sections */
#wie-zijn-wij .card {
    margin-bottom: 2rem !important;
    position: relative !important;
    z-index: 1 !important;
}

#wie-zijn-wij .card:last-child {
    margin-bottom: 3rem !important;
}

#wat-bieden-wij .services-grid {
    margin-top: 3rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Fix section spacing */
.section {
    margin-bottom: 4rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    #wie-zijn-wij {
        padding-bottom: 4rem !important;
        margin-bottom: 2rem !important;
    }
    
    #wat-bieden-wij {
        padding-top: 4rem !important;
        margin-top: 2rem !important;
    }
    
    .section-divider {
        height: 4rem !important;
        margin: 2rem 0 !important;
    }
    
    .section {
        margin-bottom: 2rem !important;
    }
}

/* Print styles for better separation */
@media print {
    #wie-zijn-wij {
        page-break-after: always !important;
        border-bottom: 2px solid #000 !important;
    }
    
    #wat-bieden-wij {
        page-break-before: always !important;
        border-top: 2px solid #000 !important;
    }
}

/* Accessibility improvements */
.skip-link {
    position: absolute !important;
    top: -40px !important;
    left: 6px !important;
    background: var(--brand-blue) !important;
    color: white !important;
    padding: 8px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    z-index: 9999 !important;
}

.skip-link:focus {
    top: 6px !important;
}

/* Focus styles */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--brand-orange) !important;
    outline-offset: 2px !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #wie-zijn-wij {
        border-bottom: 3px solid #000 !important;
    }
    
    #wat-bieden-wij {
        border-top: 3px solid #000 !important;
    }
    
    .section-divider {
        border-top: 3px solid #000 !important;
        border-bottom: 3px solid #000 !important;
    }
}

/* END OF CRITICAL FIXES */

/* Carousel for Sfeerimpressie - harmonized with tokens */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    align-items: stretch;
}

.carousel-slide {
    flex: 0 0 calc((100% - var(--space-8)) / 3);
    margin-right: var(--space-4);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-sm);
    position: relative;
    height: clamp(180px, 28vw, 320px);
    background: var(--bg-cream);
}

.carousel-slide:last-child { margin-right: 0; }

@media (max-width: 1024px) {
    .carousel-slide { flex-basis: calc((100% - var(--space-4)) / 2); }
}

@media (max-width: 600px) {
    .carousel-slide { flex-basis: 100%; margin-right: 0; }
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 2;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--overlay-dark);
    color: var(--text-inverse);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 4;
    transition: background 0.2s ease;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
}

.carousel-nav:hover,
.carousel-nav:focus {
    background: rgba(0,0,0,0.6);
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

.carousel-nav.prev { left: var(--space-2); }
.carousel-nav.next { right: var(--space-2); }

.carousel-controls {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    display: flex;
    gap: var(--space-2);
    z-index: 3;
}

.carousel-controls .carousel-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
}

.carousel-nav.toggle { top: auto; transform: none; position: relative; }

/* Focus visible for accessibility - harmonized with tokens */
:focus-visible {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-track { transition: none !important; }
}

/* Background images for 'Wie zijn wij' and 'Onze waarden' - now handled by components.css */
/* Keeping minimal override for backward compatibility */
.values {
    background-image: url('/assets/images/uploads/IMG_2450.jpeg');
    background-position: 50% 15%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.values::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5); /* 50% white overlay */
    z-index: 0;
}

.values > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .values {
        background-position: 50% 10%;
    }
}

/* WhatsApp Floating Button - harmonized with tokens */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 60px;
    height: 60px;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: var(--text-inverse);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: var(--space-4);
        right: var(--space-4);
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Cookie Banner - harmonized with tokens */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-blue);
    color: var(--text-inverse);
    padding: var(--space-6);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--brand-orange);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: var(--line-height);
}

.cookie-actions {
    display: flex;
    gap: var(--space-4);
    flex-shrink: 0;
}

.cookie-banner .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-sm);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    min-height: var(--touch-target-min);
}

.cookie-banner .btn-primary {
    background: var(--brand-green);
    color: var(--text-inverse);
}

.cookie-banner .btn-primary:hover,
.cookie-banner .btn-primary:focus {
    background: var(--brand-orange);
    transform: translateY(-2px);
    outline: 2px solid var(--text-inverse);
    outline-offset: 2px;
}

.cookie-banner .btn-outline {
    background: transparent;
    color: var(--text-inverse);
    border: 2px solid var(--text-inverse);
}

.cookie-banner .btn-outline:hover,
.cookie-banner .btn-outline:focus {
    background: var(--text-inverse);
    color: var(--brand-blue);
    outline: 2px solid var(--brand-orange);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner .btn {
        flex: 1;
        min-width: 120px;
    }
}
