/**
 * Diensten/Services Page Complete Styles
 * Consolidated and optimized version
 * Clevertech 2025
 */

/* ============================================
   CSS VARIABLES & ROOT SETTINGS
   ============================================ */

:root {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --accent-color: #F39C12;
    --accent-dark: #E67E22;
    --success-color: #27AE60;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #ECF0F1;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --transition-base: all 0.3s ease;
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 50px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

.diensten-hero *,
.service-hero *,
.core-services *,
.service-process * {
    box-sizing: border-box;
}

/* Clear any Astra/Gutenberg conflicts */
.diensten-hero .wp-block-group,
.core-services .wp-block-columns {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override conflicting page.css and global styles */
.diensten-hero.service-hero {
    padding: 100px 20px 60px !important;
    background: linear-gradient(135deg, #0077BE 0%, #00A3E0 50%, #00BFFF 100%) !important;
}

/* Fix Gutenberg block paddings */
.diensten-hero .wp-block-group {
    padding: 0 !important;
    width: 100% !important;
}

.diensten-hero .wp-block-group > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

/* ============================================
   HERO SECTION - NEW SIMPLE STRUCTURE
   ============================================ */

.diensten-hero-section {
    background: linear-gradient(135deg, #0077BE 0%, #00A3E0 50%, #00BFFF 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 60px 20px 40px;
    min-height: 400px;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diensten-hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.diensten-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Legacy support */
.diensten-hero,
.service-hero {
    background: linear-gradient(135deg, #0077BE 0%, #00A3E0 50%, #00BFFF 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 80px 20px 50px !important;
    min-height: 500px;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

.diensten-hero > .wp-block-group,
.service-hero > .wp-block-group {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 3;
    padding: 0 20px !important;
}

.diensten-hero-content h1,
.diensten-hero-content .hero-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Legacy support */
.diensten-hero h1,
.service-hero h1 {
    font-size: clamp(36px, 5vw, 56px) !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 24px !important;
    position: relative;
    z-index: 3;
    line-height: 1.2 !important;
    text-align: center;
}

.text-highlight {
    background: linear-gradient(90deg, #F39C12, #E67E22);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.diensten-hero-content .hero-subtitle,
.diensten-hero-content p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* Hero Buttons - Horizontal Layout */
.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin: 35px auto;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(243,156,18,0.4);
}

.hero-btn-secondary {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.hero-btn-secondary:hover {
    background: white;
    color: #2C3E50;
}

/* Legacy support */
.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px) !important;
    color: rgba(255,255,255,0.95) !important;
    max-width: 800px;
    margin: 0 auto 40px !important;
    position: relative;
    z-index: 3;
    line-height: 1.6 !important;
}

/* Hero CTA Container - Buttons stacked vertically */
.hero-cta-container {
    position: relative;
    z-index: 3;
    margin: 40px auto !important;
    width: 100%;
    max-width: 500px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-cta-container .wp-block-button,
.hero-cta-container .wp-block-button.has-custom-width.wp-block-button__width-100 {
    width: 100% !important;
    margin: 0 !important;
}

.hero-cta-container .wp-block-button.aligncenter {
    text-align: center !important;
}

.hero-cta-container .wp-block-button__link,
.btn-wide .wp-block-button__link {
    padding: 20px 60px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Legacy support for old structure */
.hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    align-items: center;
    margin: 40px auto !important;
    width: 100%;
    max-width: 500px;
}

.hero-cta-group .wp-block-button {
    width: 100%;
}

.btn-primary .wp-block-button__link {
    background: linear-gradient(135deg, #F39C12, #E67E22) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(243,156,18,0.3);
}

.btn-primary .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(243,156,18,0.4);
}

.btn-secondary .wp-block-button__link {
    border: 2px solid white !important;
    background: transparent !important;
    color: white !important;
}

.btn-secondary .wp-block-button__link:hover {
    background: white !important;
    color: #2C3E50 !important;
}

/* Trust Badges - New Horizontal Layout */
.diensten-hero-content .hero-trust-badges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 35px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
}

.diensten-hero-content .trust-badge {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
}

.diensten-hero-content .trust-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Legacy Trust Badges - Vertical Layout */
.hero-trust-badges-vertical {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 50px auto 0 !important;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    max-width: 500px;
}

.hero-trust-badges-vertical .trust-badge {
    background: rgba(255,255,255,0.1);
    padding: 16px 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    text-align: center;
    max-width: 400px;
}

/* Legacy horizontal badges support */
.hero-trust-badges {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 50px auto 0 !important;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    max-width: 500px;
}

.trust-badge {
    background: rgba(255,255,255,0.1);
    padding: 16px 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    color: white;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    text-align: center;
    max-width: 400px;
}

.trust-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ============================================
   STATS SECTION
   ============================================ */

.service-stats {
    padding: 60px 20px !important;
    background: #F8F9FA !important;
}

.service-stats .wp-block-columns,
.service-stats .wp-block-columns.stats-row {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    flex-wrap: unset !important;
}

.service-stats .wp-block-column {
    flex: unset !important;
    width: 100% !important;
    margin: 0 !important;
}

.stat-item {
    text-align: center;
    padding: 35px 20px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 200px !important;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F39C12, #E67E22);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.stat-number {
    display: block;
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #F39C12 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1 !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-label {
    display: block;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2C3E50 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.2 !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-description {
    display: block;
    font-size: 14px !important;
    color: #7F8C8D !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* ============================================
   SERVICE CARDS SECTION
   ============================================ */

.core-services {
    padding: 100px 20px !important;
    background: white;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px) !important;
    font-weight: 700 !important;
    color: #2C3E50 !important;
    margin-bottom: 20px !important;
    text-align: center;
}

.section-subtitle {
    font-size: 20px !important;
    color: #7F8C8D !important;
    max-width: 700px;
    margin: 0 auto 60px !important;
    text-align: center;
    line-height: 1.6;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
    column-gap: 30px !important;
    row-gap: 60px !important;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 60px !important;
}

.services-grid:last-child {
    margin-bottom: 0 !important;
}

.services-grid.mt-4 {
    margin-top: 60px !important;
}

/* Alternative: target second services grid specifically */
.services-grid + .services-grid {
    margin-top: 60px !important;
}

.service-card {
    background: white !important;
    padding: 40px !important;
    padding-top: 45px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid #ECF0F1;
    display: flex !important;
    flex-direction: column !important;
    min-height: 550px !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--card-color, #F39C12), var(--card-color-dark, #E67E22));
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

/* Service card color themes */
.ai-service { --card-color: #9B59B6; --card-color-dark: #8E44AD; }
.cloud-service { --card-color: #3498DB; --card-color-dark: #2980B9; }
.automation-service { --card-color: #E74C3C; --card-color-dark: #C0392B; }
.data-service { --card-color: #1ABC9C; --card-color-dark: #16A085; }
.security-service { --card-color: #34495E; --card-color-dark: #2C3E50; }
.webhosting-service { --card-color: #F39C12; --card-color-dark: #E67E22; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border-color: #D5DBDF;
}

.service-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card-color, #F39C12), var(--card-color-dark, #E67E22));
    border-radius: 15px;
    padding: 15px;
}

.service-icon svg,
.service-icon img {
    width: 100% !important;
    height: 100% !important;
    filter: brightness(0) invert(1); /* Make icons white */
}

.service-card h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2C3E50 !important;
    margin-bottom: 15px !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

.service-card p {
    color: #7F8C8D !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    min-height: 85px !important;
    height: 85px !important;
    display: block !important;
    text-align: left !important;
    overflow: hidden !important;
}

.service-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 20px 0 30px !important;
    flex: 1 !important;
}

.service-features li {
    padding: 10px 0 10px 30px !important;
    position: relative;
    color: #7F8C8D !important;
    line-height: 1.5 !important;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 18px;
}

.service-card .wp-block-buttons {
    margin-top: auto !important;
    padding-top: 20px !important;
    width: 100% !important;
}

.service-cta .wp-block-button__link {
    background: linear-gradient(135deg, var(--card-color, #F39C12), var(--card-color-dark, #E67E22)) !important;
    color: white !important;
    width: 100%;
    text-align: center;
    padding: 15px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
}

.service-cta .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.service-process {
    padding: 80px 20px !important;
    background: linear-gradient(135deg, #2C3E50, #34495E) !important;
}

.service-process h2,
.service-process h3,
.service-process p {
    color: white !important;
}

.process-steps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 20px;
    padding-bottom: 70px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 40px;
    font-size: 24px;
    color: rgba(255,255,255,0.5);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white !important;
    border-radius: 50%;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 30px rgba(243,156,18,0.3);
    position: relative;
}

.process-step h3 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
    width: 100%;
}

.step-duration {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: white !important;
    white-space: nowrap;
    min-width: 100px !important;
    text-align: center !important;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.process-step p {
    min-height: 80px; /* Ensure consistent height */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    width: 100%;
    text-align: center;
}

/* ============================================
   INDUSTRY SECTION
   ============================================ */

.industry-expertise {
    padding: 100px 20px !important;
    background: white;
}

.industry-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 60px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.industry-grid.mt-4 {
    margin-top: 30px !important;
}

.industry-card {
    background: white !important;
    padding: 0 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    text-align: center;
    border: none !important;
    min-height: 380px;
    height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    position: relative;
    transition: all 0.3s ease !important;
}

.industry-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.industry-image {
    width: 100% !important;
    height: 160px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.industry-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease !important;
    display: block !important;
}

.industry-card:hover .industry-image img {
    transform: scale(1.05) !important;
}

.industry-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(44,62,80,0.3), transparent);
    pointer-events: none;
}

.industry-card h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2C3E50 !important;
    margin: 15px 30px 10px !important;
    padding: 0 !important;
}

.industry-card p {
    color: #7F8C8D !important;
    line-height: 1.5 !important;
    padding: 0 25px !important;
    margin: 0 !important;
    font-size: 14px !important;
}

.industry-stats {
    display: flex !important;
    justify-content: space-around !important;
    margin-top: auto !important;
    margin-bottom: 20px !important;
    margin-left: 25px !important;
    margin-right: 25px !important;
    padding-top: 12px !important;
    border-top: 1px solid #ECF0F1;
}

.industry-stats .stat {
    font-size: 13px !important;
    color: #7F8C8D !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* ============================================
   TECHNOLOGY STACK SECTION
   ============================================ */

.technology-stack {
    padding: 60px 20px 40px !important;
    background: #F8F9FA;
}

/* Override inline styles for tech stack titles */
.tech-stack-grid .tech-category h4 {
    color: #2980B9 !important; /* Professional blue color */
    margin-bottom: 12px !important; /* Reduced spacing */
    min-height: auto !important;
    padding-bottom: 0 !important;
}

.tech-stack-grid .tech-logos {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.tech-stack-grid .tech-logos span {
    line-height: 1.6 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tech-stack-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(200px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 60px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.tech-category {
    background: white !important;
    padding: 30px 30px 40px 30px !important;
    border-radius: 15px !important;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

.tech-category h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #2C3E50 !important;
    margin-bottom: 20px !important;
}

.tech-logos {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    min-height: 60px;
}

.tech-logos img {
    height: 40px !important;
    width: auto !important;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.tech-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Fallback als er geen images zijn */
.tech-logos:empty::before {
    content: '🔧 Tools';
    font-size: 32px;
    opacity: 0.5;
}

/* ============================================
   METRICS SECTION
   ============================================ */

.success-metrics {
    padding: 40px 20px 60px !important;
    background: white;
    width: 100% !important;
}

/* Fix constrained layout issue */
.success-metrics.is-layout-constrained > * {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override Gutenberg flex layout with extreme specificity */
.success-metrics .wp-block-columns.metrics-grid,
.wp-block-columns.metrics-grid.is-layout-flex,
.metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin: 60px auto 0 !important;
    max-width: 1200px !important;
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    flex: none !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
    justify-content: unset !important;
    align-items: unset !important;
}

/* Override WordPress container width constraints */
.success-metrics .wp-container-core-columns-is-layout-28f84493,
.success-metrics [class*="wp-container-core-columns-is-layout"],
.success-metrics .wp-block-columns {
    width: 100% !important;
    max-width: 1200px !important;
    min-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force metric cards to proper width */
.success-metrics .wp-block-column.metric-card,
.wp-block-column.metric-card,
.metric-card {
    text-align: center !important;
    padding: 35px 15px !important;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    flex-basis: auto !important;
    flex: none !important;
    margin: 0 !important;
}

.metric-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}

.metric-icon {
    font-size: 48px !important;
    margin-bottom: 20px;
    line-height: 1;
}

.metric-value {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #F39C12 !important;
    margin-bottom: 10px;
    line-height: 1 !important;
}

.metric-label {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #2C3E50 !important;
    margin-bottom: 10px;
}

.metric-description {
    font-size: 14px !important;
    color: #7F8C8D !important;
}

/* ============================================
   CTA SECTION
   ============================================ */

.gradient-cta {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 50%, #D35400 100%) !important;
    padding: 60px 20px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gradient-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gradient-cta h2 {
    font-size: clamp(32px, 4vw, 48px) !important;
    margin-bottom: 20px !important;
    position: relative;
    z-index: 2;
    color: white !important;
}

.gradient-cta p {
    font-size: 20px !important;
    margin-bottom: 40px !important;
    position: relative;
    z-index: 2;
    color: white !important;
}

.gradient-cta .wp-block-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Fix CTA buttons in gradient section */
.gradient-cta .wp-block-button__link {
    padding: 18px 40px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

/* Primary button - White background with dark text */
.gradient-cta .btn-cta-primary .wp-block-button__link {
    background: white !important;
    color: #2C3E50 !important;
    border: 2px solid white !important;
}

.gradient-cta .btn-cta-primary .wp-block-button__link:hover {
    background: rgba(255,255,255,0.9) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Secondary button - Transparent with white border */
.gradient-cta .btn-cta-secondary .wp-block-button__link {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.gradient-cta .btn-cta-secondary .wp-block-button__link:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-3px);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .industry-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .process-step::after {
        display: none;
    }
    
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .diensten-hero-section {
        padding: 50px 20px 40px;
        min-height: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 350px;
    }
    
    .hero-btn {
        width: 100%;
    }
    
    .diensten-hero-content .hero-trust-badges {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .diensten-hero-content .trust-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    /* Stats Section Mobile Fix - 500 Succesvolle Projecten etc. */
    .service-stats .wp-block-columns,
    .service-stats .wp-block-columns.stats-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
    
    .service-stats .wp-block-column {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }
    
    .stat-item {
        padding: 25px 20px !important;
        margin-bottom: 0 !important;
    }
    
    .stat-number {
        font-size: 36px !important;
        height: 40px !important;
    }
    
    .stat-label {
        font-size: 18px !important;
        min-height: auto !important;
        margin-bottom: 8px !important;
    }
    
    .stat-description {
        font-size: 13px !important;
    }
    
    /* Technology Stack Mobile Fix */
    .technology-stack {
        padding: 40px 15px !important;
        overflow-x: hidden !important;
    }
    
    .tech-stack-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 40px !important;
        padding: 0 !important;
    }
    
    .tech-category {
        padding: 20px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .tech-category h4 {
        font-size: 18px !important;
    }
    
    .tech-logos span {
        font-size: 14px !important;
    }
    
    /* Bewezen Resultaten (Proven Results) Mobile Fix */
    .success-metrics {
        padding: 40px 15px !important;
        overflow-x: hidden !important;
    }
    
    .success-metrics .wp-block-columns.metrics-grid,
    .wp-block-columns.metrics-grid.is-layout-flex,
    .metrics-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 40px auto 0 !important;
        padding: 0 !important;
    }
    
    .metric-card {
        padding: 25px 20px !important;
        margin-bottom: 0 !important;
        width: 100% !important;
    }
    
    .metric-number {
        font-size: 32px !important;
    }
    
    .metric-label {
        font-size: 16px !important;
    }
    
    .metric-description {
        font-size: 13px !important;
    }
    
    /* General grids mobile fix */
    .services-grid,
    .industry-grid,
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    
    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .wp-block-group {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Fix any containers that might overflow */
    .service-stats,
    .technology-stack,
    .success-metrics {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

@media (max-width: 480px) {
    .diensten-hero h1,
    .service-hero h1 {
        font-size: 32px !important;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
    }
    
    .service-card {
        padding: 30px 20px !important;
    }
    
    .stat-number {
        font-size: 36px !important;
    }
    
    .services-grid,
    .industry-grid {
        gap: 20px !important;
    }
}

/* ============================================
   FIXES FOR ASTRA/GUTENBERG CONFLICTS
   ============================================ */

/* Override Astra's default button styles */
.diensten-hero .wp-block-button__link,
.service-hero .wp-block-button__link,
.core-services .wp-block-button__link {
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Fix Gutenberg column gaps */
.core-services .wp-block-columns:not(.services-grid) {
    gap: 40px !important;
}

/* Ensure proper spacing */
.diensten-hero > *,
.service-hero > *,
.core-services > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Fix potential z-index issues */
.diensten-hero .wp-block-group,
.service-hero .wp-block-group {
    position: relative;
    z-index: 3;
}