/* ============================================
   GREEN SOUTH — Structural Engineering
   Color palette from greensouth.nl
   ============================================ */

:root {
    --green: #3a5a40;
    --green-hover: #4a6e50;
    --green-light: #5a7a60;
    --slate: #1a1f25;
    --slate-mid: #242a32;
    --slate-light: #2d3440;
    --surface: #1e252c;
    --surface-light: #252d36;
    --surface-border: rgba(255,255,255,0.06);
    --gold: #b8a472;
    --gold-light: #c9b583;
    --white: #ffffff;
    --text: rgba(255,255,255,0.9);
    --text-light: rgba(255,255,255,0.55);
    --text-muted: rgba(255,255,255,0.3);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    color: var(--text);
    background: var(--slate);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==================== NAV ==================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, padding 0.3s ease;
    background: rgba(26,31,37,0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 16px rgba(0,0,0,0.2);
    transform: translateY(-100%);
}

.navbar.visible {
    transform: translateY(0);
}

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

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

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

.nav-menu a {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: -0.01em;
}

.nav-menu a:hover { color: #fff; }

.nav-cta {
    background: var(--green) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: var(--green-hover) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: rgba(255,255,255,0.8);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--green);
    color: #fff;
}
.btn-primary:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(58,90,64,0.35);
}

.btn-yellow {
    background: var(--gold);
    color: #fff;
    font-weight: 700;
}
.btn-yellow:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ==================== HERO ==================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(0.15) brightness(0.95) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,22,30,0.55) 0%, rgba(20,22,30,0.35) 40%, rgba(20,22,30,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    height: 48px;
    filter: brightness(0) invert(1);
    margin-bottom: 32px;
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-location {
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.3);
    animation: bounceDown 2s ease-in-out infinite;
}
.scroll-hint svg {
    width: 28px; height: 28px;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.6; }
}

/* ==================== ACTION STRIP ==================== */
.action-strip {
    padding: 28px 0;
    background: var(--slate-mid);
    border-bottom: 1px solid var(--surface-border);
}

.action-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.action-strip-text p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.action-strip-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-outline-dark {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.15);
}
.btn-outline-dark:hover {
    border-color: var(--green);
    color: var(--green-light);
}

/* ==================== VALUES ==================== */
.values {
    padding: 72px 0;
    background: var(--surface);
}

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

.value-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid transparent;
}
.value-card:hover {
    background: var(--slate-light);
    border-color: var(--surface-border);
}

.value-icon {
    width: 44px; height: 44px;
    margin: 0 auto 16px;
    color: var(--green-light);
}
.value-icon svg { width: 100%; height: 100%; }

.value-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.value-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-light);
    margin-bottom: 12px;
}

.section-header h2,
.about-content h2,
.contact-info h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==================== SERVICES ==================== */
.services {
    padding: 80px 0;
    background: var(--slate-mid);
}

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

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-img {
    height: 180px;
    overflow: hidden;
}
.service-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img img {
    transform: scale(1.06);
}

.service-content {
    padding: 24px;
}
.service-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.service-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 14px;
}

.service-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}
.service-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.service-card-highlight {
    border: 2px solid var(--green);
    position: relative;
}
.service-card-highlight::before {
    content: 'Op maat';
    position: absolute;
    top: 14px; right: 14px;
    background: var(--green);
    color: #fff;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==================== ABOUT ==================== */
.about {
    padding: 96px 0;
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.about-content .section-tag { display: block; }

.about-lead {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 12px;
    font-weight: 500;
}
.about-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
    font-size: 0.92rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 32px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}
.about-feature svg {
    width: 18px; height: 18px;
    color: var(--green-light);
    flex-shrink: 0;
}

/* ==================== PROJECTS ==================== */
.projects {
    padding: 80px 0;
    background: var(--slate-mid);
}

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

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.project-large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover img { transform: scale(1.05); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,31,37,0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 4px;
}
.project-overlay h3 {
    color: #fff;
    font-size: 1.15rem;
}

/* ==================== CTA ==================== */
.cta-section {
    padding: 80px 0;
    background: var(--green);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-content h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 14px;
}
.cta-content p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ==================== CONTACT ==================== */
.contact {
    padding: 80px 0;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 0.92rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 38px; height: 38px;
    background: var(--slate-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green-light);
}
.contact-icon svg { width: 18px; height: 18px; }

.contact-item strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 1px;
}
.contact-item span,
.contact-item a {
    font-size: 0.88rem;
    color: var(--text-light);
}
.contact-item a:hover { color: var(--green-light); }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.social-links a:hover {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.social-links svg { width: 18px; height: 18px; }

/* Form */
.contact-form-wrapper {
    background: var(--slate-light);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--surface-border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--surface);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(58,90,64,0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

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

.form-group input[type="file"] {
    padding: 12px 14px;
    border: 1.5px dashed rgba(0,0,0,0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.form-group input[type="file"]:hover {
    border-color: var(--green);
    background: rgba(58,90,64,0.03);
}
.form-group input[type="file"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(58,90,64,0.15);
    outline: none;
}

.file-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.required-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #dc2626;
}

.optional-label {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2367768e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #141920;
    padding: 56px 0 0;
    color: rgba(255,255,255,0.55);
}

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

.footer-logo {
    height: 28px;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

.footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a,
.footer-links li { font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--slate-mid);
        flex-direction: column;
        padding: 90px 32px 40px;
        gap: 20px;
        transition: right 0.35s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }
    .nav-menu.active { right: 0; }
    .nav-menu a { color: rgba(255,255,255,0.8) !important; font-size: 1rem; }

    .hero-logo { height: 36px; }
    .action-strip-inner { flex-direction: column; text-align: center; }
    .action-strip-buttons { width: 100%; justify-content: center; }

    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .services-grid { grid-template-columns: 1fr; }

    .about-grid { grid-template-columns: 1fr; }
    .about-image img { height: 280px; }
    .about-features { grid-template-columns: 1fr; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-large { grid-column: span 1; }
    .project-card { aspect-ratio: 16/9; }
    .project-overlay { opacity: 1; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .hero-logo { height: 30px; }
    .action-strip-buttons { flex-direction: column; }
    .action-strip-buttons .btn { width: 100%; }
    .values-grid { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 24px; }
}
