/* ========================================
   Garagebedrijf 19 - Stylesheet
   Kleuren worden later aangepast op basis van logo
   ======================================== */

:root {
    --color-primary: #2b2d42;      /* Donker antraciet */
    --color-secondary: #8d99ae;    /* Grijs-blauw */
    --color-accent: #ff0000;       /* Rood accent */
    --color-accent-hover: #cc0000;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f4f8;
    --color-text: #2b2d42;
    --color-text-light: #6b7280;
    --color-white: #ffffff;
    --color-dark: #1a1b2e;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 27, 46, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition);
}

.nav-logo-img:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-white);
}

.logo-accent {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: rgba(255,255,255,0.8);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-menu a:hover {
    color: var(--color-white);
    background: rgba(255,255,255,0.08);
}

.nav-cta {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--color-accent-hover) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/gevel-buitenkant.jpg') center center / cover no-repeat fixed;
    color: var(--color-text);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 27, 46, 0.88) 0%,
        rgba(26, 27, 46, 0.65) 50%,
        rgba(26, 27, 46, 0.75) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 770px;
    padding: 100px 40px 40px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    text-align: center;
}

.hero-logo {
    max-width: 550px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 36px;
    max-width: 520px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 1.1s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 122, 30, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(43,45,66,0.05);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 96px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 56px;
}

/* ========================================
   Diensten
   ======================================== */
.diensten {
    background: var(--color-bg-alt);
}

.diensten-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dienst-card {
    background: var(--color-white);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.dienst-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dienst-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.dienst-icon svg {
    width: 100%;
    height: 100%;
}

.dienst-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.dienst-card p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ========================================
   Over Ons
   ======================================== */
.over-ons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.over-ons-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.over-ons-img {
    border-radius: var(--radius-lg);
    object-fit: cover;
    height: 280px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.over-ons-text .highlight-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.over-ons-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.stats {
    display: flex;
    gap: 48px;
    margin-top: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ========================================
   Werkplaats / Gallery
   ======================================== */
.werkplaats {
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item-large {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 56px;
    margin-bottom: 16px;
    color: var(--color-text);
}

.gallery-subtitle:first-of-type {
    margin-top: 0;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.video-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-item video {
    width: 100%;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

/* ========================================
   Contact
   ======================================== */
.contact {
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 122, 30, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

.kenteken-input {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-success {
    text-align: center;
    padding: 60px 40px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.form-success svg {
    color: #22c55e;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--color-text-light);
}

/* Contact Info */
.info-card {
    background: var(--color-bg-alt);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list svg {
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 2px;
}

.info-list a {
    color: var(--color-text);
}

.info-list a:hover {
    color: var(--color-accent);
}

.openingstijden {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.openingstijden tr {
    border-bottom: 1px solid #e5e7eb;
}

.openingstijden tr:last-child {
    border-bottom: none;
}

.openingstijden td {
    padding: 8px 0;
}

.openingstijden td:last-child {
    text-align: right;
    font-weight: 500;
}

.openingstijden .gesloten td {
    color: var(--color-text-light);
}

.openingstijden .gesloten td:last-child {
    color: #ef4444;
    font-weight: 600;
}

.map-card {
    padding: 0;
    overflow: hidden;
}

.map-card iframe {
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text,
.footer-brand .logo-accent {
    font-size: 1.1rem;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .diensten-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .over-ons-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .over-ons-images {
        order: -1;
    }

    .section-title.text-left {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(26, 27, 46, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .section {
        padding: 64px 0;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .diensten-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dienst-card {
        padding: 28px 24px;
    }

    .over-ons-images {
        grid-template-columns: 1fr;
    }

    .over-ons-img {
        height: 220px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item-large {
        grid-column: span 2;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .stats {
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large {
        grid-column: span 1;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
