/*
Theme Name: Samen Werkt
Theme URI: https://praktijk-samenwerkt.nl
Author: Maurice Snoeren (JMNL Innovation)
Description: Een custom WordPress thema voor Praktijk Samenwerkt.
Version: 1.0
Text Domain: samenwerkt
*/

:root {
    --orange: #F6A326;
    --green: #005565;
    --light-gray: #f7f7f7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    background-color: var(--light-gray);
    line-height: 1.6;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 3px solid var(--green);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    max-height: 120px;
    width: auto;
}

.logo span {
    color: var(--orange);
}

/* ===== NAVIGATION ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0; /* WP Reset */
}

nav a {
    text-decoration: none;
    color: var(--green);
    font-weight: 500;
}

nav a:hover {
    color: var(--orange);
}

/* Dropdown - WP Menu Structure Support */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    min-width: 200px;
    list-style: none;
    padding: 0;
    z-index: 999;
}

.sub-menu a {
    display: block;
    padding: 0.7rem 1rem;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--green);
}

/* ===== MAIN CONTENT ===== */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.intro {
    background: white;
    padding: 3rem;
    border-left: 6px solid var(--orange);
}

.intro h1 {
    color: var(--green);
    margin-bottom: 1rem;
}

.button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--orange);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
}

.button:hover {
    background: #e0901f;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        flex-direction: column;
        width: 100%;
        display: none;
        border-top: 1px solid #ddd;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .sub-menu {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }

    .hamburger {
        display: block;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--green);
    color: white;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: auto;
    padding: 3rem 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: var(--orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column p {
    font-size: 0.95rem;
}

.footer-column a {
    color: white;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    background: #003f49;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--orange);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== INTRO MET AFBEELDING ===== */
.intro-layout-w {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.intro-image img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.intro-text {
    padding-right: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .intro-layout {
        grid-template-columns: 1fr;
    }

    .intro-image {
        order: -1; /* foto boven tekst op mobiel */
    }
}

/* Alleen ronde foto voor intro van Even Voorstellen */
.intro-layout.even-voorstellen .intro-image img {
    max-width: 300px;       /* compact */
    width: 100%;
    height: auto;
    border-radius: 50%;     /* maakt rond */
    object-fit: cover;      /* behoudt ratio netjes in cirkel */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.intro-layout.even-voorstellen {
    display: grid;
    grid-template-columns: 0.6fr 1.7fr;
    gap: 2rem;
    align-items: center;
}

/* Mobiel responsief */
@media (max-width: 900px) {
    .intro-layout.even-voorstellen .intro-image img {
        max-width: 200px;
        margin: 0 auto 1rem;
    }
}

/* ===== CONTACTFORM ===== */
.contact-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    background: white;
    border-left: 6px solid var(--orange);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-inner h2 {
    color: var(--green);
    margin-bottom: 1rem;
}

.contact-inner p {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(0,85,101,0.15);
}

.contact-form button {
    background: var(--orange);
    color: white;
    font-weight: bold;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #e0901f;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .contact-section {
        padding: 1rem;
    }
}