/*
 * Hark Blocks — Gedeelde frontend-stijlen voor alle Hark-blokken
 * Responsive, clean en aanpasbaar via CSS custom properties.
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --hb-primary:       #1A3A5C;
    --hb-accent:        #FF6B35;
    --hb-light:         #F5F7FA;
    --hb-dark:          #0D1F33;
    --hb-text:          #333333;
    --hb-text-light:    #666666;
    --hb-border:        #DDE3EA;
    --hb-white:         #FFFFFF;
    --hb-radius:        8px;
    --hb-radius-lg:     16px;
    --hb-shadow:        0 4px 20px rgba(0,0,0,.08);
    --hb-shadow-hover:  0 8px 30px rgba(0,0,0,.14);
    --hb-max-width:     1200px;
    --hb-section-py:    80px;
    --hb-gap:           24px;
    --hb-font:          'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hb-section {
    padding: var(--hb-section-py) 0;
    width: 100%;
}
.hb-section--light  { background: var(--hb-light); }
.hb-section--dark   { background: var(--hb-dark); color: var(--hb-white); }
.hb-section--accent { background: var(--hb-accent); color: var(--hb-white); }
.hb-section--white  { background: var(--hb-white); }

.hb-container {
    max-width: var(--hb-max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.hb-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.hb-section-header h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: var(--hb-primary);
    margin: 0 0 12px;
    font-family: var(--hb-font);
    line-height: 1.2;
}
.hb-section--dark .hb-section-header h2,
.hb-section--accent .hb-section-header h2 { color: var(--hb-white); }

.hb-section-header p {
    font-size: 18px;
    color: var(--hb-text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.hb-section--dark .hb-section-header p,
.hb-section--accent .hb-section-header p { color: rgba(255,255,255,.8); }

/* Accent lijn onder kop */
.hb-section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--hb-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.hb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--hb-radius);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--hb-font);
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    line-height: 1;
}
.hb-btn--primary {
    background: var(--hb-accent);
    color: var(--hb-white);
    border-color: var(--hb-accent);
}
.hb-btn--primary:hover {
    background: #e55a28;
    border-color: #e55a28;
    color: var(--hb-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,107,53,.35);
}
.hb-btn--secondary {
    background: var(--hb-primary);
    color: var(--hb-white);
    border-color: var(--hb-primary);
}
.hb-btn--secondary:hover {
    background: #0f2540;
    border-color: #0f2540;
    color: var(--hb-white);
    transform: translateY(-1px);
}
.hb-btn--outline {
    background: transparent;
    color: var(--hb-accent);
    border-color: var(--hb-accent);
}
.hb-btn--outline:hover {
    background: var(--hb-accent);
    color: var(--hb-white);
}
.hb-btn--outline-white {
    background: transparent;
    color: var(--hb-white);
    border-color: var(--hb-white);
}
.hb-btn--outline-white:hover {
    background: var(--hb-white);
    color: var(--hb-primary);
}
.hb-btn--sm { padding: 9px 18px; font-size: 13px; }
.hb-btn--lg { padding: 16px 36px; font-size: 17px; }

/* ============================================================
   HERO BLOCK
   ============================================================ */
.hb-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    background: var(--hb-primary);
}
.hb-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hb-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 800px;
    margin: 0 auto;
}
.hb-hero__title {
    font-size: clamp(32px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    font-family: var(--hb-font);
}
.hb-hero__subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    line-height: 1.55;
    margin: 0 0 36px;
    opacity: .9;
}
.hb-hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   TEXT BLOCK
   ============================================================ */
.hb-text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--hb-text);
    font-family: var(--hb-font);
}
.hb-text h1, .hb-text h2, .hb-text h3,
.hb-text h4, .hb-text h5, .hb-text h6 {
    color: var(--hb-primary);
    margin-top: 0;
    line-height: 1.25;
}
.hb-text p { margin: 0 0 1em; }
.hb-text a { color: var(--hb-accent); }
.hb-text a:hover { text-decoration: underline; }
.hb-text--center { text-align: center; }
.hb-text--narrow { max-width: 700px; margin: 0 auto; }

/* ============================================================
   IMAGE + TEXT BLOCK
   ============================================================ */
.hb-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hb-image-text--reversed { direction: rtl; }
.hb-image-text--reversed > * { direction: ltr; }
.hb-image-text__image img {
    width: 100%;
    height: auto;
    border-radius: var(--hb-radius-lg);
    display: block;
    box-shadow: var(--hb-shadow);
}
.hb-image-text__body h2 {
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 700;
    color: var(--hb-primary);
    margin: 0 0 16px;
    font-family: var(--hb-font);
}
.hb-image-text__body p {
    font-size: 16px;
    color: var(--hb-text-light);
    line-height: 1.7;
    margin: 0 0 24px;
}

/* ============================================================
   FLEXIBLE GRID BLOCK
   ============================================================ */
.hb-grid__inner {
    display: grid;
    gap: var(--hb-gap);
}
.hb-grid--1 .hb-grid__inner { grid-template-columns: 1fr; }
.hb-grid--2 .hb-grid__inner { grid-template-columns: repeat(2, 1fr); }
.hb-grid--3 .hb-grid__inner { grid-template-columns: repeat(3, 1fr); }
.hb-grid--4 .hb-grid__inner { grid-template-columns: repeat(4, 1fr); }

.hb-grid__col {
    background: var(--hb-white);
    border-radius: var(--hb-radius);
    padding: 24px;
    box-shadow: var(--hb-shadow);
}

/* ============================================================
   USP BLOCK
   ============================================================ */
.hb-usp__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--hb-gap);
}
.hb-usp__item {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--hb-radius-lg);
    background: var(--hb-white);
    box-shadow: var(--hb-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hb-usp__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--hb-shadow-hover);
}
.hb-usp__icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}
.hb-usp__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--hb-primary);
    margin: 0 0 8px;
    font-family: var(--hb-font);
}
.hb-usp__desc {
    font-size: 14px;
    color: var(--hb-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   TESTIMONIALS BLOCK
   ============================================================ */
.hb-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--hb-gap);
}
.hb-testimonial {
    background: var(--hb-white);
    border-radius: var(--hb-radius-lg);
    padding: 32px;
    box-shadow: var(--hb-shadow);
    position: relative;
}
.hb-testimonial::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 80px;
    color: var(--hb-accent);
    opacity: .15;
    line-height: 1;
    font-family: Georgia, serif;
}
.hb-testimonial__stars {
    color: #FFB800;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.hb-testimonial__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hb-text);
    margin: 0 0 20px;
    font-style: italic;
}
.hb-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hb-testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hb-light);
    object-fit: cover;
    flex-shrink: 0;
}
.hb-testimonial__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--hb-primary);
    display: block;
}
.hb-testimonial__role {
    font-size: 12px;
    color: var(--hb-text-light);
    display: block;
}

/* ============================================================
   FAQ BLOCK
   ============================================================ */
.hb-faq__list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hb-faq__item {
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    background: var(--hb-white);
    overflow: hidden;
}
.hb-faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 24px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--hb-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--hb-font);
    transition: background .15s;
}
.hb-faq__question:hover { background: var(--hb-light); }
.hb-faq__icon {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--hb-accent);
    transition: transform .25s;
}
.hb-faq__item.is-open .hb-faq__icon { transform: rotate(45deg); }
.hb-faq__answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    font-size: 15px;
    line-height: 1.7;
    color: var(--hb-text-light);
}
.hb-faq__item.is-open .hb-faq__answer {
    max-height: 600px;
    padding: 0 24px 18px;
}

/* ============================================================
   PRICING BLOCK
   ============================================================ */
.hb-pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--hb-gap);
    align-items: start;
}
.hb-pricing__card {
    background: var(--hb-white);
    border-radius: var(--hb-radius-lg);
    padding: 36px 28px;
    box-shadow: var(--hb-shadow);
    border: 2px solid transparent;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}
.hb-pricing__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hb-shadow-hover);
}
.hb-pricing__card--featured {
    border-color: var(--hb-accent);
    transform: scale(1.03);
}
.hb-pricing__card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}
.hb-pricing__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hb-accent);
    color: var(--hb-white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.hb-pricing__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--hb-primary);
    margin: 0 0 8px;
}
.hb-pricing__price {
    font-size: 48px;
    font-weight: 800;
    color: var(--hb-primary);
    line-height: 1;
    margin: 16px 0 4px;
    font-family: var(--hb-font);
}
.hb-pricing__price sup { font-size: 22px; vertical-align: super; }
.hb-pricing__period { font-size: 14px; color: var(--hb-text-light); margin: 0 0 24px; }
.hb-pricing__desc { font-size: 14px; color: var(--hb-text-light); margin: 0 0 24px; line-height: 1.6; }
.hb-pricing__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
    border-top: 1px solid var(--hb-border);
    padding-top: 20px;
}
.hb-pricing__features li {
    font-size: 14px;
    color: var(--hb-text);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hb-pricing__features li::before {
    content: '✓';
    color: var(--hb-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================================
   CONTACT / CTA BLOCK
   ============================================================ */
.hb-cta {
    text-align: center;
    padding: var(--hb-section-py) 24px;
    background: var(--hb-primary);
    color: var(--hb-white);
}
.hb-cta__title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 16px;
    font-family: var(--hb-font);
    line-height: 1.2;
}
.hb-cta__text {
    font-size: 18px;
    opacity: .85;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.hb-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hb-contact-form input,
.hb-contact-form textarea,
.hb-contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--hb-border);
    border-radius: var(--hb-radius);
    font-size: 15px;
    font-family: var(--hb-font);
    background: var(--hb-white);
    color: var(--hb-text);
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: border-color .2s;
}
.hb-contact-form input:focus,
.hb-contact-form textarea:focus {
    border-color: var(--hb-accent);
    outline: none;
}
.hb-contact-form textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   GALLERY BLOCK
   ============================================================ */
.hb-gallery__grid {
    display: grid;
    gap: 12px;
}
.hb-gallery--2 .hb-gallery__grid { grid-template-columns: repeat(2, 1fr); }
.hb-gallery--3 .hb-gallery__grid { grid-template-columns: repeat(3, 1fr); }
.hb-gallery--4 .hb-gallery__grid { grid-template-columns: repeat(4, 1fr); }
.hb-gallery--masonry .hb-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
}
.hb-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--hb-radius);
    background: var(--hb-light);
}
.hb-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.hb-gallery__item:hover img { transform: scale(1.06); }

/* ============================================================
   BUTTONS BLOCK
   ============================================================ */
.hb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hb-buttons--center { justify-content: center; }
.hb-buttons--right  { justify-content: flex-end; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --hb-section-py: 48px;
    }
    .hb-image-text {
        grid-template-columns: 1fr;
        gap: 32px;
        direction: ltr !important;
    }
    .hb-grid--2 .hb-grid__inner,
    .hb-grid--3 .hb-grid__inner,
    .hb-grid--4 .hb-grid__inner {
        grid-template-columns: 1fr;
    }
    .hb-gallery--3 .hb-gallery__grid,
    .hb-gallery--4 .hb-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hb-pricing__card--featured { transform: scale(1); }
    .hb-hero { min-height: 360px; }
}

@media (max-width: 480px) {
    .hb-gallery--2 .hb-gallery__grid,
    .hb-gallery--3 .hb-gallery__grid,
    .hb-gallery--4 .hb-gallery__grid {
        grid-template-columns: 1fr;
    }
    .hb-btn--lg { padding: 13px 24px; font-size: 15px; }
}
