/**
 * Componenten - Kloek-huis Verblijf B.V.
 * Gebruikt design tokens voor consistentie
 */

/* ========================================
   SECTION COMPONENT
   ======================================== */
.section {
    padding: var(--section-padding-y) 0;
    position: relative;
    z-index: 1;
}

/* Section tones */
.section--default {
    background: var(--bg-surface);
}

.section--sand {
    background: var(--bg-sand);
}

.section--blush {
    background: var(--bg-blush);
}

.section--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.section--image .container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.section--image .container > * {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

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

.section-title h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
}

.section--image .section-title h2 {
    color: var(--text-primary);
}

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

/* ========================================
   HERO COMPONENT
   ======================================== */
.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(--space-12) 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;
}

.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 {
        padding: var(--section-padding-y-mobile) var(--space-4);
    }
    
    .hero h1 {
        font-size: var(--font-size-xl);
    }
}

/* ========================================
   VALUECARD COMPONENT
   ======================================== */
.value-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

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

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

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* ========================================
   SERVICECARD COMPONENT
   ======================================== */
.service-card {
    background: var(--bg-sand);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid;
    border-image: var(--brand-gradient) 1;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: var(--touch-target-min);
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--bg-surface);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-8);
}

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

/* ========================================
   TESTIMONIAL COMPONENT
   ======================================== */
.testimonials {
    background: var(--bg-blush);
    padding: var(--space-12) var(--space-8);
    margin: var(--space-12) 0;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: visible;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 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%;
    opacity: 1;
    pointer-events: none;
}

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

.testimonial-card {
    background: var(--brand-pink);
    padding: var(--space-12) var(--space-6);
    width: 420px;
    height: 400px;
    margin: var(--space-4);
    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: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

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

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

@media (max-width: 767px) {
    .testimonial-card {
        width: 360px;
        height: 340px;
        padding: var(--space-12) var(--space-6);
    }
    
    .testimonial-text {
        font-size: var(--font-size-sm);
        padding: var(--space-6) var(--space-8);
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 300px;
        height: 280px;
        padding: var(--space-8) var(--space-4);
    }
    
    .testimonial-text {
        font-size: var(--font-size-xs);
        padding: var(--space-4) var(--space-6);
    }
}

/* ========================================
   GALLERY COMPONENT (Sfeerimpressie)
   ======================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 9;
    background: var(--bg-cream);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

/* ========================================
   JOBSLIST / JOBITEM COMPONENT
   ======================================== */
.jobs-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.job-item {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

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

.job-item-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: 0 auto var(--space-6);
}

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

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

.job-highlight {
    background: var(--brand-gradient);
    color: var(--text-inverse);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
    text-align: center;
}

.job-highlight h3 {
    color: var(--text-inverse);
    margin-bottom: var(--space-4);
}

.job-highlight p {
    color: var(--text-inverse);
    opacity: 0.95;
}

.job-highlight ul {
    list-style: none;
    padding: 0;
    margin: var(--space-6) 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.job-highlight li {
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
}

.job-highlight a {
    color: var(--brand-yellow);
    text-decoration: underline;
}

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

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

/* ========================================
   BUTTON COMPONENT
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: var(--touch-target-min);
    min-width: var(--touch-target-min);
}

.btn-primary,
.submit-button {
    background: var(--brand-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus,
.submit-button:hover,
.submit-button:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--brand-green);
    border: 1px solid var(--brand-green);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--bg-blush);
}

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

.btn-outline:hover,
.btn-outline:focus {
    background: var(--brand-blue);
    color: var(--text-inverse);
}

/* ========================================
   CONTACTFORM COMPONENT
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.contact-info {
    background: var(--bg-sand);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.contact-info p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.contact-info a {
    color: var(--brand-blue);
    text-decoration: underline;
}

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

.contact-form {
    background: var(--bg-surface);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: var(--touch-target-min);
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 2px rgba(123, 193, 66, 0.2);
}

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

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

/* ========================================
   UTILITY CLASSES (voor inline style vervanging)
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }

.list-none {
    list-style: none;
    padding: 0;
}

/* Blockquote styling */
blockquote {
    font-size: var(--font-size-lg);
    font-style: italic;
    text-align: center;
    color: var(--brand-blue);
    margin: var(--space-8) 0;
    padding: var(--space-8);
    border-left: 4px solid var(--brand-orange);
    background: var(--bg-sand);
    border-radius: var(--radius-md);
}

/* Logo styling */
.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
}

.logo-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.footer-text {
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

/* Utility classes for inline style replacement */
.intro-text {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-8);
}

.wie-zijn-wij-bg {
    background-image: url('/assets/images/uploads/IMG_2450.jpeg');
    background-position: 50% 15%;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .wie-zijn-wij-bg {
        background-position: 50% 10%;
    }
}

.placeholder-text {
    color: var(--text-light);
}

.link-yellow {
    color: var(--brand-yellow);
    text-decoration: underline;
}

.link-yellow:hover {
    color: var(--brand-orange);
}

