/* ============================================
   BRENTHIS MODERN DESIGN SYSTEM
   Modern CSS Framework met Glassmorphism & Animations
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    /* Brand Colors - Modernized Lighter Palette */
    --primary-burgundy: #C41E3A;
    --primary-burgundy-light: #E63946;
    --primary-burgundy-dark: #A01729;
    --accent-amber: #EFB171;
    --accent-amber-light: #f5c58f;
    --accent-amber-dark: #e89f4d;
    --background-cream: #FDF6EE;
    
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #C41E3A 0%, #E63946 100%);
    --gradient-amber: linear-gradient(135deg, #EFB171 0%, #e89f4d 100%);
    --gradient-hero: linear-gradient(135deg, rgba(196, 30, 58, 0.9) 0%, rgba(239, 177, 113, 0.85) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(10px);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 24px rgba(239, 177, 113, 0.4);
    
    /* Transitions */
    --transition-fast: 200ms ease-in-out;
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ============================================
   ACCORDION SYSTEM - Text Reduction Solution
   ============================================ */

.accordion {
    margin: 2rem auto;
    display: block;
}

.accordion-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(253, 246, 238, 0.8) 100%);
    transition: all var(--transition-base);
    user-select: none;
}

.accordion-header.active {
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--primary-burgundy) 100%);
    color: white;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    flex: 1;
}

.accordion-title span {
    position: relative;
}

.accordion-title span::after {
    content: '(klik om uit te klappen)';
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    margin-left: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.accordion-header.active .accordion-title span::after {
    content: '(klik om in te klappen)';
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.accordion-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--primary-burgundy-light) 100%);
    color: white;
    flex-shrink: 0;
}

.accordion-header.active .accordion-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.accordion-toggle {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, opacity 0.2s ease;
    flex-shrink: 0;
    opacity: 0.6;
}

.accordion-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.5rem;
    margin: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                padding 0.3s ease;
}

.accordion-content.active {
    max-height: 5000px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow: visible;
}

.accordion-content > div,
.accordion-content > .grid {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.accordion-body {
    padding: 1.5rem;
    color: #4a5568;
    line-height: 1.8;
    font-size: 1rem;
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-body p:last-child {
    margin-bottom: 0;
}

.accordion-body strong {
    color: var(--primary-burgundy);
    font-weight: 600;
}

.accordion-body a {
    color: var(--primary-burgundy);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.accordion-body a:hover {
    color: var(--accent-amber);
}

/* Text Hierarchy - Make text less overwhelming */
.text-muted {
    color: #718096;
    font-size: 0.9rem;
}

.text-subtle {
    color: #a0aec0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.text-compact {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #4a5568;
}

/* Compact card style */
.card-compact {
    padding: 1rem 1.5rem !important;
}

.card-compact h3 {
    font-size: 1.125rem !important;
    margin-bottom: 0.5rem !important;
}

.card-compact p {
    font-size: 0.875rem !important;
    color: #718096 !important;
    line-height: 1.5 !important;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --background-cream: #1a1a1a;
    --glass-bg: rgba(0, 0, 0, 0.25);
    --glass-border: rgba(255, 255, 255, 0.15);
}

/* ============================================
   SMOOTH SCROLL & BASE ANIMATIONS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-amber);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-amber-dark);
}

/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--accent-amber);
}

.glass-navbar {
    background: rgba(253, 246, 238, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(239, 177, 113, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ============================================
   GRADIENT TEXT & BORDERS
   ============================================ */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: var(--gradient-amber);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* ============================================
   ANIMATED BUTTONS
   ============================================ */

.btn-modern {
    position: relative;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
    border: none;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
    z-index: -1;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-accent {
    background: var(--gradient-amber);
    color: var(--primary-burgundy);
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

/* ============================================
   FADE IN ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.zoom-in {
    animation: zoomIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* ============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================ */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(
        -45deg,
        var(--primary-burgundy),
        var(--primary-burgundy-light),
        var(--accent-amber),
        var(--accent-amber-light)
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* ============================================
   PULSE & GLOW EFFECTS
   ============================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 177, 113, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(239, 177, 113, 0.6);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.glow {
    animation: glow 3s ease-in-out infinite;
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */

.counter {
    font-size: 3rem;
    font-weight: 700;
    /* Gradient removed - use inline styles for color */
}

/* ============================================
   FLIP CARDS (3D)
   ============================================ */

.flip-card {
    perspective: 1000px;
    height: 400px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-slow);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flip-card-front {
    background: white;
    box-shadow: var(--shadow-md);
}

.flip-card-back {
    background: var(--gradient-primary);
    color: white;
    transform: rotateY(180deg);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-amber);
    z-index: var(--z-fixed);
    transition: width 100ms linear;
    box-shadow: var(--shadow-glow);
}

/* ============================================
   FLOATING ACTION BUTTON
   ============================================ */

.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--gradient-amber);
    color: var(--primary-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.fab:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(239, 177, 113, 0.6);
}

.fab svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(239, 177, 113, 0.2);
    border-top-color: var(--accent-amber);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* ============================================
   PARALLAX SECTIONS
   ============================================ */

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 150%;
    object-fit: cover;
    z-index: -1;
    transition: transform 100ms linear;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: all var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all var(--transition-base);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .fab {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    /* Accordion responsive adjustments */
    .accordion-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .accordion-title {
        font-size: 0.95rem;
        gap: 0.75rem;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .accordion-title span {
        line-height: 1.4;
        word-break: break-word;
    }
    
    .accordion-title span::after {
        display: none;
    }
    
    .accordion-icon {
        width: 2.25rem;
        height: 2.25rem;
        flex-shrink: 0;
    }
    
    .accordion-icon svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .accordion-toggle {
        width: 1.25rem;
        height: 1.25rem;
        margin-left: 0.5rem;
    }
    
    .accordion-toggle svg {
        width: 1rem;
        height: 1rem;
    }
    
    .accordion-content {
        padding: 0 1rem;
    }
    
    .accordion-content.active {
        padding: 0 1rem 1rem 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    /* Flip cards responsive - disable flip on mobile, stack content instead */
    .flip-card {
        height: auto;
        min-height: 300px;
        perspective: none;
    }
    
    .flip-card-inner {
        transform: none !important;
        position: relative;
        height: auto;
    }
    
    .flip-card:hover .flip-card-inner {
        transform: none !important;
    }
    
    .flip-card-front,
    .flip-card-back {
        position: relative;
        backface-visibility: visible;
        transform: none !important;
        padding: 1.5rem;
    }
    
    .flip-card-back {
        display: none;
    }
    
    .flip-card-front {
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .flip-card-front h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .flip-card-front p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .flip-card-front svg {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--accent-amber);
    outline-offset: 2px;
}
