/* =============================================
   components.css – Herbruikbare UI-elementen
   ============================================= */

/* -----------------------------------------------
   Typografie
----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-secondary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-4);
    line-height: var(--line-height-base);
}

p:last-child {
    margin-bottom: 0;
}

.section-intro {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: var(--space-10);
    line-height: var(--line-height-loose);
}

/* -----------------------------------------------
   Knoppen
----------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semi);
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), box-shadow var(--transition-fast);
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Primair */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

/* Secundair */
.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: #845039;
    border-color: #845039;
    color: var(--color-white);
}

/* Outline */
.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Outline licht (voor donkere achtergrond) */
.btn-outline-light {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-light:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Groottevarianten */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    border-radius: var(--border-radius-lg);
}

.btn-full {
    width: 100%;
}

/* -----------------------------------------------
   Hero
----------------------------------------------- */
.hero {
    position: relative;
    min-height: 660px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 18% 22%, rgba(236, 216, 173, 0.20), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(143, 182, 156, 0.18), transparent 30%),
        linear-gradient(135deg, #10291d 0%, #173f2b 52%, #0f251b 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 26, 18, 0.08), rgba(10, 26, 18, 0.30)),
        radial-gradient(circle at 50% 48%, transparent 0, rgba(0, 0, 0, 0.16) 78%);
}

.hero-overlay--dark {
    background:
        linear-gradient(90deg, rgba(9, 18, 13, 0.76), rgba(15, 32, 22, 0.54) 48%, rgba(34, 22, 14, 0.30)),
        linear-gradient(180deg, rgba(9, 18, 13, 0.18), rgba(9, 18, 13, 0.48));
}

.hero--image {
    background-position: center 48%;
}

.hero.hero--brand {
    min-height: calc(100vh - var(--site-header-height, 0px));
    min-height: calc(100svh - var(--site-header-height, 0px));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    text-align: left;
    padding-block: var(--space-20);
}

.hero-title {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.hero-eyebrow {
    margin: 0 0 var(--space-4);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: var(--font-weight-semi);
    line-height: var(--line-height-tight);
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.hero-title--brand {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.98;
}

.hero--brand .hero-eyebrow {
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(0 100% 0 0);
    width: max-content;
    max-width: 100%;
    animation: hero-type-reveal 900ms steps(10, end) 200ms forwards;
}

.hero-title__italiaans {
    display: inline-block;
    color: #72bd8d;
    opacity: 0;
    transform: translateX(-34px);
    animation: hero-brand-from-left 1300ms cubic-bezier(0.22, 1, 0.36, 1) 1350ms forwards;
}

.hero-title__huis {
    display: inline-block;
    color: #e65359;
    opacity: 0;
    transform: translateX(-34px);
    animation: hero-brand-from-left 1300ms cubic-bezier(0.22, 1, 0.36, 1) 1350ms forwards;
}

.hero-title__location {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 0.12em;
    color: #fff7e9;
    font-size: 0.72em;
    opacity: 0;
    transform: translateY(28px);
    animation: hero-location-from-bottom 1150ms cubic-bezier(0.22, 1, 0.36, 1) 2850ms forwards;
}

.hero--brand .hero-content > .btn {
    opacity: 0;
    transform: translateY(12px);
    animation: hero-button-reveal 700ms ease-out 4200ms forwards;
    margin-top: var(--space-6);
}

@keyframes hero-type-reveal {
    from {
        clip-path: inset(0 100% 0 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes hero-brand-from-left {
    from {
        opacity: 0;
        transform: translateX(-34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-location-from-bottom {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        }
}

@keyframes hero-button-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-indicator {
    position: absolute;
    z-index: 2;
    bottom: var(--space-6);
    left: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    color: rgba(255, 255, 255, 0.92);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semi);
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateX(-50%);
    animation: hero-scroll-reveal 600ms ease-out 5100ms forwards;
}

.hero-scroll-indicator:hover,
.hero-scroll-indicator:focus {
    color: var(--color-white);
    text-decoration: none;
}

.hero-scroll-indicator svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    animation: hero-scroll-bounce 1600ms ease-in-out infinite;
}

.back-to-top {
    position: fixed;
    right: clamp(16px, 3vw, 36px);
    bottom: clamp(16px, 3vw, 36px);
    z-index: var(--z-sticky);
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    color: var(--color-white);
    background-color: var(--color-primary);
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition:
        opacity var(--transition-base),
        transform var(--transition-base),
        visibility var(--transition-base),
        background-color var(--transition-fast);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background-color: var(--color-primary-dark);
}

.back-to-top svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

@keyframes hero-scroll-reveal {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes hero-scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
    margin-bottom: var(--space-8);
    line-height: var(--line-height-loose);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

/* -----------------------------------------------
   Page banner
----------------------------------------------- */
.page-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background-color: var(--color-secondary);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    padding-block: var(--space-12);
}

.page-banner-title {
    font-size: var(--font-size-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.page-banner-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* -----------------------------------------------
   CTA knoppen
----------------------------------------------- */
.cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-6);
}

.cta-buttons--centered {
    justify-content: center;
}

/* -----------------------------------------------
   Openingstijden
----------------------------------------------- */
.openingstijden-list {
    list-style: none;
}

.openingstijden-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-light-border);
    font-size: var(--font-size-sm);
    gap: var(--space-4);
}

.openingstijden-list li:last-child {
    border-bottom: none;
}

.openingstijden-list .day {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
}

.openingstijden-list .hours {
    color: var(--color-text-muted);
}

/* In footer: lichte kleuren */
.site-footer .openingstijden-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.site-footer .openingstijden-list .day {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .openingstijden-list .hours {
    color: rgba(255, 255, 255, 0.6);
}

/* -----------------------------------------------
   Contactblok
----------------------------------------------- */
.contactblok {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contactblok-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.contactblok-icon {
    font-size: var(--font-size-lg);
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.contactblok-icon--email {
    color: #e83e7d;
}

.contactblok-icon--email svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vertical-align: -0.12em;
}

.contactblok-item div {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.contactblok-item strong {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--font-weight-semi);
}

.contactblok-item a {
    font-size: var(--font-size-base);
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* -----------------------------------------------
   Social links
----------------------------------------------- */
.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* -----------------------------------------------
   Info kaarten
----------------------------------------------- */
.info-block {
    background-color: #fffaf1;
    border-radius: var(--border-radius);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    border: 1px solid rgba(61, 118, 87, 0.18);
}

.info-block h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary);
}

.info-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-6);
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary);
}

/* -----------------------------------------------
   Formulieren
----------------------------------------------- */
.contact-form {
    margin-top: var(--space-8);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

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

.required {
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-light-border);
    border-radius: var(--border-radius);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: auto;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #e74c3c;
}

.optional {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-normal);
}

.form-help {
    display: block;
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    line-height: var(--line-height-base);
}

@media (prefers-reduced-motion: reduce) {
    .hero--brand .hero-eyebrow,
    .hero--brand .hero-title--brand > span,
    .hero--brand .hero-content > .btn,
    .hero-scroll-indicator {
        opacity: 1;
        transform: none;
        filter: none;
        clip-path: none;
        animation: none;
    }

    .hero-scroll-indicator {
        transform: translateX(-50%);
    }

    .hero-scroll-indicator svg {
        animation: none;
    }
}

.btn-danger {
    background-color: #a63832;
    border-color: #a63832;
    color: var(--color-white);
}

.btn-danger:hover {
    background-color: #812923;
    border-color: #812923;
    color: var(--color-white);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.form-error {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-size-sm);
    color: #c0392b;
}

/* Checkboxes */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* Alerts */
.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* -----------------------------------------------
   Grid kaarten (team, waarden, vacatures)
----------------------------------------------- */
.team-grid,
.values-grid,
.vacatures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.team-card,
.value-card,
.vacature-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-8);
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.team-card:hover,
.vacature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-inline: auto;
    margin-bottom: var(--space-4);
    border: 3px solid var(--color-light);
}

.team-card h3,
.value-card h3,
.vacature-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-2);
    color: var(--color-secondary);
}

.team-card p,
.value-card p,
.vacature-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin: 0;
}

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

/* -----------------------------------------------
   Responsiefheid componenten
----------------------------------------------- */
@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        text-align: center;
    }

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

    .page-banner-title {
        font-size: var(--font-size-2xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        text-align: center;
    }
}
