/* ==========================================================================
   SmartCare — Scoped Header Pill + Hero Card Styles
   ALL selectors start with .sc-header-pill or .sc-hero-card
   ZERO global selectors — guaranteed no CSS bleed
   ========================================================================== */

/* ── Header Pill ──────────────────────────────────────────────────────────── */

.sc-header-pill {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 1200px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 34, 34, 0.08);
    box-shadow: 0 8px 32px rgba(16, 34, 34, 0.10),
                0 1px 3px rgba(16, 34, 34, 0.06);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

@media (max-width: 767px) {
    .sc-header-pill {
        height: 52px;
        width: calc(100% - 24px);
        padding: 0 6px 0 16px;
    }
}

/* Logo group */
.sc-header-pill .sc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.sc-header-pill .sc-logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.sc-header-pill .sc-logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #102222;
    line-height: 1;
}

.sc-header-pill .sc-logo-text span {
    color: #258E49;
}

/* Nav links */
.sc-header-pill .sc-nav {
    display: none;
    align-items: center;
    gap: 6px;
}

@media (min-width: 1024px) {
    .sc-header-pill .sc-nav {
        display: flex;
    }
}

.sc-header-pill .sc-nav a {
    font-size: 0.825rem;
    font-weight: 500;
    color: #4E524E;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.sc-header-pill .sc-nav a:hover {
    color: #258E49;
    background: rgba(37, 142, 73, 0.06);
}

.sc-header-pill .sc-nav a.active {
    color: #258E49;
    font-weight: 600;
}

/* Right-side actions */
.sc-header-pill .sc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Secondary CTA (Huur hulpmiddel) */
.sc-header-pill .sc-cta-secondary {
    display: none;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #102222;
    background: #f0f1f2;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .sc-header-pill .sc-cta-secondary {
        display: flex;
    }
}

.sc-header-pill .sc-cta-secondary:hover {
    background: #e2e4e5;
}

/* Primary CTA (Vraag zorg aan) */
.sc-header-pill .sc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFFFFF;
    background: #258E49;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 142, 73, 0.25);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.sc-header-pill .sc-cta:hover {
    background: #6EB386;
    box-shadow: 0 4px 14px rgba(37, 142, 73, 0.3);
    transform: translateY(-1px);
}

/* Hamburger toggle */
.sc-header-pill .sc-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #102222;
    cursor: pointer;
    transition: background 0.2s ease;
}

@media (min-width: 1024px) {
    .sc-header-pill .sc-hamburger {
        display: none;
    }
}

.sc-header-pill .sc-hamburger:hover {
    background: rgba(16, 34, 34, 0.06);
}

/* ── Mobile Dropdown (inside pill scope) ──────────────────────────────────── */

.sc-header-pill .sc-mobile-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(16, 34, 34, 0.14),
                0 2px 6px rgba(16, 34, 34, 0.06);
    border: 1px solid rgba(16, 34, 34, 0.06);
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: sc-dropIn 0.25s ease-out;
}

.sc-header-pill.sc-nav-open .sc-mobile-nav {
    display: flex;
}

@media (min-width: 1024px) {
    .sc-header-pill .sc-mobile-nav {
        display: none !important;
    }
}

.sc-header-pill .sc-mobile-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.925rem;
    font-weight: 500;
    color: #4E524E;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.sc-header-pill .sc-mobile-nav a:hover,
.sc-header-pill .sc-mobile-nav a.active {
    background: rgba(37, 142, 73, 0.06);
    color: #258E49;
}

.sc-header-pill .sc-mobile-nav .sc-mobile-cta-row {
    display: flex;
    gap: 8px;
    padding: 8px 4px 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(16, 34, 34, 0.06);
}

.sc-header-pill .sc-mobile-nav .sc-mobile-cta-row button {
    flex: 1;
    height: 44px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sc-header-pill .sc-mobile-nav .sc-mobile-cta-primary {
    background: #258E49;
    color: #fff;
}

.sc-header-pill .sc-mobile-nav .sc-mobile-cta-primary:hover {
    background: #6EB386;
}

.sc-header-pill .sc-mobile-nav .sc-mobile-cta-ghost {
    background: #f0f1f2;
    color: #102222;
}

.sc-header-pill .sc-mobile-nav .sc-mobile-cta-ghost:hover {
    background: #e2e4e5;
}

@keyframes sc-dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Spacer to push content below fixed header ────────────────────────────── */
.sc-header-spacer {
    height: 80px;
}

@media (max-width: 767px) {
    .sc-header-spacer {
        height: 72px;
    }
}


/* ── Hero Card (index.html only) ──────────────────────────────────────────── */

.sc-hero-card {
    position: relative;
    margin: 0 16px;
    border-radius: 28px;
    overflow: hidden;
    min-height: 520px;
}

@media (min-width: 1024px) {
    .sc-hero-card {
        margin: 0 24px;
        border-radius: 36px;
        min-height: 600px;
    }
}

/* Override the old hero-slideshow margins — scoped inside .sc-hero-card only */
.sc-hero-card .hero-slideshow {
    margin: 0;
    border-radius: 0;
    min-height: inherit;
}

/* Slide images */
.sc-hero-card .hero-slideshow__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.sc-hero-card .hero-slideshow__slide.active {
    opacity: 1;
    z-index: 2;
}

/* Overlay gradient — left-side dark for readability (Glowdent style) */
.sc-hero-card .sc-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(
        90deg,
        rgba(16, 34, 34, 0.78) 0%,
        rgba(16, 34, 34, 0.42) 40%,
        rgba(16, 34, 34, 0.10) 70%,
        rgba(16, 34, 34, 0.0) 100%
    );
}

/* Content layer */
.sc-hero-card .sc-hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    padding: 48px 24px;
}

@media (min-width: 1024px) {
    .sc-hero-card .sc-hero-content {
        min-height: 600px;
        align-items: center;
        padding: 64px 56px;
    }
}

.sc-hero-card .sc-hero-content .sc-hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 580px;
}

/* Trust badge */
.sc-hero-card .sc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.sc-hero-card .sc-hero-badge .material-symbols-outlined {
    font-size: 18px;
}

/* Headline */
.sc-hero-card .sc-hero-content h1 {
    color: #FFFFFF;
    font-weight: 800;
    font-size: clamp(2rem, 5vw + 0.5rem, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.20);
}

.sc-hero-card .sc-hero-content h1 .sc-hero-highlight {
    color: #B6D6C1;
}

/* CTA row */
.sc-hero-card .sc-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.sc-hero-card .sc-cta-row .sc-hero-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 160px;
    padding: 0 24px;
    border-radius: 999px;
    background: #FFFFFF;
    color: #102222;
    font-size: 0.925rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-hero-card .sc-cta-row .sc-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.sc-hero-card .sc-cta-row .sc-hero-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 160px;
    padding: 0 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #FFFFFF;
    font-size: 0.925rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sc-hero-card .sc-cta-row .sc-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* Slide indicator dots */
.sc-hero-card .sc-hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.sc-hero-card .sc-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.40);
    border: 2px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sc-hero-card .sc-hero-dot.active {
    background: #fff;
    transform: scale(1.25);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Hero entrance animation */
.sc-hero-card .sc-hero-text {
    animation: sc-heroFadeIn 0.8s ease-out both;
}

@keyframes sc-heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   MOBILE WORDMARK — slide behind logo & fade out
   Scope: header brand area only (≤ 480px)
   ============================================= */

@media (max-width: 480px) {
    /* Brand wrapper: clip overflow so text slides behind logo */
    .sc-header-pill .sc-logo {
        position: relative;
        overflow: hidden;
    }

    /* Logo sits on top layer */
    .sc-header-pill .sc-logo img {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    /* Wordmark: slide left, fade out, become non-interactive */
    .sc-header-pill .sc-logo-text {
        position: relative;
        z-index: 1;
        transform: translateX(-28px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        will-change: transform, opacity;
        transition:
            transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
            opacity   320ms cubic-bezier(0.2, 0.8, 0.2, 1);
    }
}

/* Respect prefers-reduced-motion: hide instantly, no animation */
@media (max-width: 480px) and (prefers-reduced-motion: reduce) {
    .sc-header-pill .sc-logo-text {
        transition: none !important;
        transform: none;
        opacity: 0;
        pointer-events: none;
    }
}
