/* ==========================================================================
   Main Stylesheet - Kobukoerier.nl
   Base styles, CSS variables, reset, and global utilities
   ========================================================================== */

/* CSS Custom Properties / Variables */
:root {
    /* Color Palette - Professional Courier/Logistics Theme */
    --color-primary: #1e40af;          /* Professional blue - trust and reliability */
    --color-primary-dark: #1e3a8a;     /* Darker blue for hover states */
    --color-primary-light: #3b82f6;    /* Lighter blue for accents */
    --color-secondary: #f59e0b;        /* Amber - speed and energy */
    --color-secondary-dark: #d97706;   /* Darker amber for hover */
    --color-secondary-light: #fbbf24;  /* Lighter amber */
    
    /* Neutral Colors */
    --color-text-primary: #1f2937;     /* Dark gray for main text */
    --color-text-secondary: #6b7280;   /* Medium gray for secondary text */
    --color-text-light: #9ca3af;       /* Light gray */
    --color-background: #ffffff;       /* White background */
    --color-background-alt: #f9fafb;   /* Light gray background */
    --color-background-dark: #111827;  /* Dark background */
    --color-border: #e5e7eb;           /* Light border color */
    
    /* Semantic Colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3.5rem;      /* 56px */
    --font-size-6xl: 4rem;        /* 64px */
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing Scale */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 2.5rem;    /* 40px */
    --spacing-3xl: 4rem;      /* 64px */
    --spacing-4xl: 5rem;      /* 80px */
    --spacing-5xl: 6rem;      /* 96px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;     /* 4px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

/* ==========================================================================
   CSS Reset and Base Styles
   ========================================================================== */

/* Box sizing reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default margins and paddings */
html,
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul,
figure,
hr,
fieldset, legend {
    margin: 0;
    padding: 0;
}

/* HTML and Body defaults */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Remove list styles */
ol, ul {
    list-style: none;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
    pointer-events: auto;
}

a:hover,
a:focus {
    color: var(--color-primary);
}

/* Interactive elements need pointer events */
button,
input,
textarea,
select,
[role="button"],
.header__nav-toggle {
    pointer-events: auto;
}

/* Images */
img,
picture,
svg {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Buttons */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Form elements */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Remove button styling */
button,
input,
select,
textarea {
    color: inherit;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Prevent horizontal overflow on all sections */
section,
main,
.container,
[class*=\"__container\"] {
    max-width: 100%;
    overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    z-index: var(--z-tooltip);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 10px;
    left: 10px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

/* Section spacing */
section {
    padding: var(--spacing-5xl) 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
    cursor: pointer;
}

.back-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* About Section Styles */
.about {
    background: linear-gradient(
        180deg,
        #dbeafe 0%,
        #bfdbfe 50%,
        #93c5fd 100%
    );
    position: relative;
    padding: var(--spacing-4xl) 0;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 197, 253, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.about__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.about__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.about__title {
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.about__intro {
    font-size: 1.125rem;
    color: rgba(30, 58, 138, 0.8);
    margin-top: var(--spacing-sm);
    font-weight: 500;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

/* Main About Card */
.about__main-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-3xl);
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.12);
    display: flex;
    gap: var(--spacing-2xl);
    align-items: flex-start;
    border: 2px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

.about__main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(30, 64, 175, 0.18);
    border-color: rgba(59, 130, 246, 0.2);
}

.about__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.about__icon svg {
    color: white;
}

.about__main-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.about__card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.5px;
}

.about__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Features Grid */
.about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
}

.about__feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
}

.about__feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.about__feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 197, 253, 0.1) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.about__feature-card:hover .about__feature-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%);
    color: white;
    transform: scale(1.1);
}

.about__feature-content {
    flex: 1;
}

.about__feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.about__feature-desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.about__image {
    width: 100%;
    height: 100%;
}

.about__image-placeholder {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.about__image-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(255, 255, 255, 0.05) 20px,
        rgba(255, 255, 255, 0.05) 40px
    );
}

/* Contact Section Styles */
.contact {
    background: linear-gradient(
        180deg,
        var(--color-background) 0%,
        var(--color-background-alt) 100%
    );
}

.contact__container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.contact__header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
}

.contact__title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.contact__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-4xl);
    align-items: start;
}

.contact__info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.contact__card {
    background-color: white;
    padding: var(--spacing-3xl) var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary-light);
}

.contact__card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.contact__icon {
    color: white;
}

.contact__card-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.contact__card-content {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.contact__card-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
}

.contact__link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-base);
}

.contact__link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.contact__form-wrapper {
    background-color: white;
    padding: 0;
    border-radius: var(--radius-xl);
}

.contact__form-placeholder {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.contact__form-message {
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.contact__form-note {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    opacity: 0;
    transform: none;
}

[data-animate="fade-in"].is-visible {
    opacity: 1;
}

[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(40px);
}

[data-animate="slide-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(-40px);
}

[data-animate="slide-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    img {
        page-break-inside: avoid;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}
