/*
Theme Name: Dick Jense Advies
Description: Apple-inspired custom theme for Dick Jense Advies website
Version: 2.0
*/

/* CSS Custom Properties - Area17 Minimalist Style */
:root {
    --color-primary: #333333;        /* Subtle dark gray */
    --color-primary-dark: #1a1a1a;   /* Darker shade for hovers */
    --color-text: #1a1a1a;           /* Deep charcoal text */
    --color-text-secondary: #666666; /* Medium gray text */
    --color-background: #ffffff;
    --color-surface: #fafafa;        /* Minimal light gray */
    --color-border: #e8e8e8;         /* Subtle border color */
    
    --font-system: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-large: 0 4px 16px rgba(0, 0, 0, 0.08);
    
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 96px;
    --spacing-xl: 96px;
    --spacing-xxl: 128px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography - Apple Style */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}

h3 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--color-text-secondary);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: -0.01em;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Header & Navigation - Minimalist Style */
.site-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: var(--spacing-md) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) 0;
    transition: all 0.3s ease;
    position: relative;
    text-transform: lowercase;
    letter-spacing: -0.01em;
}

.nav-menu a:hover {
    color: var(--color-text);
}

/* Main Content */
.site-main {
    margin-top: 80px;
}

.section {
    padding: var(--spacing-lg) 0;
}

.section.bg-gray-1 {
    background-color: #f8f8f9;  /* Lichtste grijs voor Over mij */
}

.section.bg-gray-2 {
    background-color: #f2f2f4;  /* Iets donkerder grijs voor Projecten */
}

.section.bg-gray-3 {
    background-color: #ebebed;  /* Donkerste grijs voor Contact */
}

/* Hero Section - Minimalist Layout */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--color-background);
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    min-height: 70vh;
    justify-content: center;
}

.hero-content {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 800px;
}


.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text);
    max-width: 100%;
}

.hero-text h1 {
    color: var(--color-text);
    font-size: clamp(4rem, 10vw, 8rem);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.hero-text h2 {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--spacing-lg);
    opacity: 1;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.hero-text p {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    opacity: 1;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Image Slider - Hidden in minimalist design */
.hero-images {
    display: none;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(1.05) contrast(1.1);
    transition: filter 0.3s ease;
}

.slide img:hover {
    filter: brightness(1.1) contrast(1.15);
}

/* Loading animation for images */
.slide img {
    animation: fadeInImage 0.5s ease-in-out;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apple-style loading indicator */
.image-slider::before {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 
        8px 0 0 rgba(255, 255, 255, 0.6),
        16px 0 0 rgba(255, 255, 255, 0.4),
        24px 0 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Content Sections - Apple Style */
.content-text {
    max-width: 800px;
    margin: 0 auto;
}

.content-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

/* About Section - Minimalist Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xxl);
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    position: static;
    height: fit-content;
    align-self: start;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    object-fit: cover;
    object-position: center top;
    aspect-ratio: 1/1;
    filter: grayscale(100%);
    opacity: 0.8;
}

.about-image img:hover {
    transform: none;
    box-shadow: none;
    filter: grayscale(0%);
    opacity: 1;
}

.about-content {
    padding: 0;
}

.about-content h2 {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    color: var(--color-text);
    margin-top: 0;
    line-height: 1;
}

.about-text {
    text-align: left;
    max-width: none;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
    text-align: left;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Services Grid - Minimalist Style */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.service-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 60px;
}

.service-item:hover {
    transform: none;
    box-shadow: none;
    border-bottom-color: var(--color-primary);
}

.service-item h3 {
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.service-item p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.005em;
}

/* Project Grid - Minimalist Style */
.projects-section {
    padding: 0;
}

.projects-section h2 {
    text-align: left;
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.project-item {
    background: transparent;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 60px;
    transition: all 0.3s ease;
}

.project-item:hover {
    border-bottom-color: var(--color-primary);
}

.project-item h4 {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.project-item p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.project-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.project-slide {
    padding: var(--spacing-xl);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.6, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.project-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.project-slide.prev {
    transform: translateX(-50px);
}

.project-slide.next {
    transform: translateX(50px);
}

.project-slide h4 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.project-slide p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.project-navigation {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
}

.project-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 184, 77, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
    border: 2px solid transparent;
}

.project-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(255, 184, 77, 0.2);
}

.project-dot:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.project-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
    box-shadow: var(--shadow-medium);
    opacity: 0.8;
    z-index: 10;
}

.project-controls:hover {
    opacity: 1;
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-large);
}

.project-rotator:hover .project-controls {
    opacity: 1;
}


.project-prev {
    left: var(--spacing-md);
}

.project-next {
    right: var(--spacing-md);
}

.project-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.1s linear;
    border-radius: 0 3px 0 0;
}

/* Blog Section - Minimalist Style */
.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.blog-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 60px;
    cursor: pointer;
}

.blog-item:hover {
    transform: none;
    box-shadow: none;
    border-bottom-color: var(--color-primary);
}

.blog-item h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.blog-item h3 a {
    color: var(--color-text);
}

.blog-item h3 a:hover {
    color: var(--color-text);
}

.blog-date {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

/* Contact Section - Minimalist Style */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
    max-width: 1000px;
    margin-top: 0;
    margin-bottom: 0;
}

.contact-details {
    margin-top: var(--spacing-md);
}

.contact-details p {
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Buttons - Minimalist Style */
.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--color-text);
    padding: var(--spacing-sm) 0;
    border-radius: 0;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--color-text);
    cursor: pointer;
    text-transform: lowercase;
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: none;
    box-shadow: none;
    border-bottom-color: var(--color-primary);
}

/* Footer - Apple Style */
.site-footer {
    background: var(--color-text);
    color: var(--color-text-secondary);
    text-align: center;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
}

.site-footer p {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

/* Contact Form 7 Styling - Apple Style */
.wpcf7-form {
    display: grid;
    gap: var(--spacing-md);
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.875rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: var(--spacing-sm) 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 1rem;
    font-family: var(--font-system);
    transition: all 0.3s ease;
    background: transparent;
    font-weight: 300;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
    box-shadow: none;
}

.wpcf7-form input[type="submit"] {
    background: transparent;
    color: var(--color-text);
    padding: var(--spacing-sm) 0;
    border: none;
    border-bottom: 1px solid var(--color-text);
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-system);
    box-shadow: none;
    text-transform: lowercase;
}

.wpcf7-form input[type="submit"]:hover {
    background: transparent;
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    transform: none;
    box-shadow: none;
}

/* reCAPTCHA v3 Styling - Apple Style */
.wpcf7-form .wpcf7-recaptcha {
    margin: var(--spacing-md) 0;
    text-align: center;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

/* reCAPTCHA disclaimer text */
.wpcf7-recaptcha::after {
    content: "Deze site wordt beschermd door reCAPTCHA en het Google Privacybeleid en Servicevoorwaarden zijn van toepassing.";
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: var(--spacing-xs);
    line-height: 1.4;
}

/* Blog Pages - Apple Style */
.blog-archive {
    padding: var(--spacing-xl) 0;
}

.archive-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.archive-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-single {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.post-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.post-meta {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.post-meta span {
    margin-right: var(--spacing-sm);
}

.post-content {
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.post-content p {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.read-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.read-more:hover {
    color: var(--color-primary-dark);
}

/* Responsive Design - Minimalist Style */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .hero-container {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: 60vh;
    }
    
    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-text h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .about-image {
        position: static;
        order: 1;
        max-width: 150px;
        margin: 0 auto;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-text p {
        text-align: left;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .site-main {
        margin-top: 100px;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .nav-menu a {
        padding: var(--spacing-xs) 0;
        font-size: 0.9rem;
    }
    
    .hero-container {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility - Apple Style */
:focus {
    outline: 1px solid var(--color-primary);
    outline-offset: 2px;
}

/* Smooth animations */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

/* Navigation active state */
.nav-menu a.active {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

/* Clean up - remove unused project rotator styles */
.project-slides-container,
.project-slide,
.project-navigation,
.project-dot,
.project-controls,
.project-progress {
    display: none !important;
}