@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* --- GRIFFAI BRAND TOKENS --- */
    
    /* Primary Colors (Purple) */
    --g-primary-50: #f8f5fb;
    --g-primary-100: #dbcfeb;
    --g-primary-200: #bfa9dc;
    --g-primary-300: #a382cc;
    --g-primary-400: #865cbd;
    --g-primary-500: #6a36ad; /* Core Brand Color */
    --g-primary-600: #5a2e93;
    --g-primary-700: #4a2679;
    --g-primary-800: #3a1e5f;
    --g-primary-900: #2a1645;
    --g-primary-950: #1b0e2b;

    /* Neutral Colors (Slate) */
    --g-slate-50: #f8fafc;
    --g-slate-100: #f1f5f9;
    --g-slate-200: #e2e8f0;
    --g-slate-300: #cbd5e1;
    --g-slate-400: #94a3b8;
    --g-slate-500: #64748b;
    --g-slate-600: #475569;
    --g-slate-700: #334155;
    --g-slate-800: #1e293b;
    --g-slate-900: #0f172a;
    --g-slate-950: #020617;

    /* Background Tokens (New) */
    --g-bg-sectors: #DAF5FB;
    --g-bg-fundamenten: #F8F5FB; /* New light lavender from reference */
    --g-bg-sector-ggz: #DCD1EB;
    --g-bg-sector-hospital: #DAF5FB;
    --g-bg-section-sectors: rgba(218, 245, 251, 0.3);

    /* Semantic Colors */
    --g-error: #ef4444;
    --g-success: #22c55e;
    --g-warning: #f97316;
    --g-info: #0ea5e9;

    /* Spacing Grid (4px base) */
    --g-spacing-1: 0.25rem;
    --g-spacing-2: 0.5rem;
    --g-spacing-3: 0.75rem;
    --g-spacing-4: 1rem;
    --g-spacing-5: 1.25rem;
    --g-spacing-6: 1.5rem;
    --g-spacing-8: 2rem;
    --g-spacing-10: 2.5rem;
    --g-spacing-12: 3rem;
    --g-spacing-16: 4rem;

    /* Border Radius */
    --g-radius-sm: 4px;
    --g-radius-md: 8px;
    --g-radius-lg: 12px;
    --g-radius-xl: 16px;
    --g-radius-full: 9999px;

    /* Typography */
    --g-font-family: 'Montserrat', sans-serif;
    --g-font-size-xs: 0.75rem;
    --g-font-size-sm: 0.875rem;
    --g-font-size-base: 1rem;
    --g-font-size-lg: 1.125rem;
    --g-font-size-xl: 1.25rem;
    --g-font-size-2xl: 1.5rem;
    --g-font-size-3xl: 1.875rem;
    --g-font-size-4xl: 2.25rem;
    --g-font-size-5xl: 3rem;
    --g-font-size-6xl: 4rem;

    /* Shadows */
    --g-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --g-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --g-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* --- BASE THEME MAPPING --- */
    --primary: var(--g-primary-500);
    --primary-hover: var(--g-primary-600);
    --surface-bg: var(--g-slate-50);
    --surface-card: #ffffff;
    --text-main: var(--g-slate-900);
    --text-muted: var(--g-slate-500);
    --border-color: var(--g-slate-200);
}

/* --- RESET & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--g-font-family);
    font-size: var(--g-font-size-base);
    color: var(--text-main);
    background-color: var(--surface-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--g-slate-950);
    line-height: 1.2;
    margin-bottom: var(--g-spacing-4);
}

/* Blazor navigeert via tabindex=-1 op headings voor accessibility.
   Dit zorgt voor een browser focus ring die er als een border uitziet.
   We verwijderen de outline voor programmatisch gefocuuste elementen. */
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus {
    outline: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.bg-white { background-color: #ffffff !important; }
.bg-sectors { background-color: var(--g-bg-sectors) !important; }
.bg-fundamenten { background-color: var(--g-bg-fundamenten) !important; }

.color-heading { color: var(--g-slate-900) !important; }
.color-body { color: var(--g-slate-600) !important; }

.rounded-xl { border-radius: var(--g-radius-xl) !important; }

/* Custom Spacing Utilities (Extended Bootstrap) */
.py-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.pt-6 { padding-top: 6rem !important; }
.pb-6 { padding-bottom: 6rem !important; }
.my-6 { margin-top: 6rem !important; margin-bottom: 6rem !important; }
.mt-6 { margin-top: 6rem !important; }
.mb-6 { margin-bottom: 6rem !important; }

.py-7 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
.pt-7 { padding-top: 7rem !important; }
.pb-7 { padding-bottom: 7rem !important; }

/* Filter Utilities (used in MainLayout instead of inline style block) */
.filter-brightness-200 { filter: brightness(200%); }
.filter-invert { filter: invert(1); }

/* Typography refinement */
h1.display-3 { font-size: var(--g-font-size-6xl); letter-spacing: -0.02em; line-height: 1.1; }
h2.display-4 { font-size: var(--g-font-size-5xl); letter-spacing: -0.01em; }
h2.display-5 { font-size: var(--g-font-size-4xl); }

.fs-lg { font-size: var(--g-font-size-lg); }

/* Navigation Styling */
.navbar-nav .nav-link {
    color: var(--g-slate-600);
    position: relative;
    padding-bottom: 4px;
}

.navbar-nav .nav-link.active {
    color: var(--g-primary-500) !important;
    font-weight: 700;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--g-primary-500);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-weight: 700;
    border-radius: 12px !important; /* Unified to 12px as requested */
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--g-primary-500);
    border-color: var(--g-primary-500);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(106, 54, 173, 0.2), 0 2px 4px -2px rgba(106, 54, 173, 0.1);
}

.btn-primary:hover {
    background-color: var(--g-primary-600);
    border-color: var(--g-primary-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(106, 54, 173, 0.3), 0 4px 6px -4px rgba(106, 54, 173, 0.2);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--g-primary-500);
    border-color: white;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--g-radius-sm);
    font-family: inherit;
    font-size: inherit;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--g-primary-100);
}

#blazor-error-ui {
    display: none !important;
}

/* Hero Redesign Styles */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: #E9E3F8;
    color: #6A36AD;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #6A36AD;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.transcriptie-card {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    max-width: 540px;
    margin-left: auto;
}

.transcriptie-card .header-sub {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.transcriptie-card .red-dot {
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 1.25rem;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.waveform {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.waveform .bar {
    background: #6A36AD;
    width: 6px;
    border-radius: 99px;
    min-height: 20px;
}

.transcriptie-quote {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.transcriptie-quote p {
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.red-dot {
    animation: pulse 2s infinite ease-in-out;
}
/* Sector Cards Styling */
.sectors-section {
    background-color: var(--g-bg-section-sectors);
    padding: 100px 0;
}

.subtitle-main {
    font-size: var(--g-font-size-xl);
    color: var(--g-slate-600);
    font-weight: 500;
    margin-bottom: var(--g-spacing-12);
}

.sector-card {
    background-color: #ffffff !important;
    padding: 3rem 2rem;
    border-radius: 24px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: var(--g-shadow-sm);
}

.sector-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--g-shadow-lg);
}

.sector-icon-container {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.sector-icon-container img {
    width: 120px;
    height: auto;
}

.sector-icon-container.bg-ggz { background-color: var(--g-bg-sector-ggz) !important; }
.sector-icon-container.bg-hospital { background-color: var(--g-bg-sector-hospital) !important; }

.sector-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--g-slate-900);
}

.sector-card p {
    color: var(--g-slate-600);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Global Container Override for 1200px Constraint */
@media (min-width: 1200px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        max-width: 1200px !important;
    }
}

.fundamenten-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fundament-card h4 {
    color: var(--g-slate-900);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.fundament-card p {
    color: var(--g-slate-600);
    line-height: 1.7;
    font-size: 1.05rem;
    max-width: 340px;
    margin: 0 auto;
}

/* CTA Redesign */
.cta-section {
    background-color: var(--g-bg-fundamenten);
}

.cta-box {
    background-color: var(--g-primary-500);
    border-radius: 24px; /* Less round as requested */
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(106, 54, 173, 0.15);
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white; /* Explicitly white */
}

.cta-box p {
    font-size: 1.15rem;
    opacity: 0.9; /* Subtle opacity for readability */
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    color: white; /* Explicitly white */
}

.btn-cta-white {
    background-color: white;
    color: var(--g-primary-500);
    border: none;
    border-radius: 12px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta-white:hover {
    background-color: var(--g-slate-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: var(--g-primary-600);
}

/* Footer Redesign */
.site-footer {
    background-color: white; /* Match header */
    padding: 6rem 0 3rem;
    color: var(--g-slate-900);
}

.footer-description {
    color: var(--g-slate-600);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 2rem;
}

.footer-heading {
    color: var(--g-slate-900);
    font-weight: 800; /* Extra bold like the design */
    margin-bottom: 2rem;
    font-size: 1.2rem;
    text-transform: none;
}

.footer-links {
    list-style: none !important; /* Force remove bullets */
    padding: 0 !important;
    margin: 0 !important;
}

.footer-links li {
    margin-bottom: 0.75rem;
    list-style: none !important;
}

.footer-links a {
    color: var(--g-slate-600) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--g-primary-500) !important;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(106, 54, 173, 0.08); /* Brand-tinted subtle line */
    color: var(--g-slate-500);
    font-size: 1rem;
}

/* --- FUNCTIONALITEITEN PAGE --- */
.section-hero-func {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFB 100%);
    padding-top: 100px;
    padding-bottom: 60px;
}

.badge-pill {
    display: inline-block;
    background-color: #EFE9F6;
    color: var(--g-primary-500);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(106, 54, 173, 0.05);
}

.hero-title-epic {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #0F172A; /* Slate-900 for that deep black/blue */
}

.hero-subtitle-epic {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #475569; /* Slate-600 */
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(106, 54, 173, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(106, 54, 173, 0.1), 0 8px 10px -6px rgba(106, 54, 173, 0.05);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(106, 54, 173, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--g-primary-500);
    font-size: 1.5rem;
}

.section-cta-page {
    padding-bottom: 80px;
}

.cta-box-page {
    background: var(--g-primary-500);
    border-radius: 24px;
    padding: 5rem 2rem;
    box-shadow: var(--g-shadow-xl);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

/* --- MISSION/* Mission Section */
.section-mission {
    background-color: rgba(218, 245, 251, 0.3);; /* Exact SVG cyan */
    position: relative;
}

.icon-box-custom {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Increased size */
    flex-shrink: 0;
}

.icon-box-custom i {
    color: inherit;
    line-height: 1;
}

.icon-box-purple {
    background-color: #F5F0FF; /* Slightly more saturated bg */
    color: #6A36AD;
}

.icon-box-blue {
    background-color: #E0F2FE;
    color: #0284C7; /* Slightly darker blue for contrast */
}

/* Phone Mockup */
.phone-mockup {
    width: 340px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 40px 100px rgba(106, 54, 173, 0.1);
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(0,0,0,0.2);
}

.phone-screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.sim-ui-header {
    padding: 40px 20px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.sim-ui-tabs {
    display: flex;
    padding: 0 20px;
    gap: 20px;
    margin-top: 10px;
}

.sim-ui-tab {
    padding-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
}

.sim-ui-tab.active {
    color: #6A36AD;
    border-bottom: 2px solid #6A36AD;
}

.sim-ui-content {
    padding: 5px;
    background: #f8fafc;
    flex-grow: 1;
}

.sim-ui-card {
    background: #fff;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    font-size: 0.82rem
}

.sim-ui-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
}

.text-primary {
    color: var(--g-primary-500) !important;
}

.section-hero-func {
    position: relative;
    overflow: hidden;
    background: white;
}

.section-hero-func::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 54, 173, 0.03) 0%, transparent 70%);
    transform: skewX(-15deg);
    z-index: 0;
}

/* Features Epic 3 */
.section-features-epic {
    overflow: hidden;
    background-color: #FFFFFF; /* Intro section is white */
}

.features-visual-wrapper {
    width: 100%;
    line-height: 0;
}

.features-visual-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 600px;
}

.badge-features {
    display: inline-block;
    padding: 4px 12px;
    background-color: #F5F0FF;
    color: #6A36AD;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.features-intro-text {
    max-width: 800px;
    margin-bottom: 5rem;
}

.features-grid-bg {
    background-color: #F4EFF5; /* Exact SVG blush/purple */
    padding: 6rem 0;
}

.feature-card-new {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(106, 54, 173, 0.05);
}

.feature-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(106, 54, 173, 0.08);
}

.icon-box-epic {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.icon-box-magic { background-color: #F5F0FF; color: #6A36AD; }
.icon-box-user { background-color: #E0E7FF; color: #4F46E5; }
.icon-box-doc { background-color: #F1E9FD; color: #7C3AED; }
.icon-box-list { background-color: #E0F2FE; color: #0284C7; }
.icon-box-cross { background-color: #F5F0FF; color: #6A36AD; }
.icon-box-cycle { background-color: #E0F2FE; color: #0284C7; }

/* =====================================================
   GLOBAL RESPONSIVE – Mobile (< 768px)
   ===================================================== */
@media (max-width: 767.98px) {
    /* Reduce section spacing that's too large on mobile */
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-7 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .pt-6 { padding-top: 3rem !important; }
    .pb-6 { padding-bottom: 3rem !important; }

    /* Container padding on mobile */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Typography scale-down */
    h1.display-3 { font-size: 2rem; }
    h2.display-4 { font-size: 1.75rem; }
    h2.display-5 { font-size: 1.5rem; }
    h2.display-6 { font-size: 1.35rem; }

    .hero-title-epic {
        font-size: 2rem;
    }

    .hero-subtitle-epic {
        font-size: 1rem;
    }

    /* Section hero func */
    .section-hero-func {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    /* Sector cards: reduce padding */
    .sector-card {
        padding: 2rem 1.5rem;
    }

    .sectors-section {
        padding: 3rem 0;
    }

    /* CTA section */
    .section-cta-epic {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    /* Features grid */
    .features-grid-bg {
        padding: 2.5rem 0;
    }

    /* Feature card padding */
    .feature-card-new {
        padding: 1.75rem;
    }
}

/* =====================================================
   GLOBAL RESPONSIVE – Tablet (768px – 1023px)
   ===================================================== */
@media (min-width: 768px) and (max-width: 1023.98px) {
    /* Slightly reduced section spacing */
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .py-7 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    /* Typography */
    h1.display-3 { font-size: 2.75rem; }
    h2.display-4 { font-size: 2.25rem; }

    .hero-title-epic {
        font-size: 2.75rem;
    }

    /* Sectors */
    .sectors-section {
        padding: 5rem 0;
    }
}

