/* ================= ROOT VARIABLES ================= */
:root {
    --primary: #1aa3d8;
    --dark: #0f3a54;
    --light: #1a1a1a;
    --bg-dark: #111;
    --text-color: #eee;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: var(--bg-dark);
}

.container {
    width: 1140px;
    max-width: 90%;
    margin: auto;
}

.center {
    text-align: center;
}

/* ================= HEADER ================= */
.main-header {
    background: #1c1c1c;
    padding: 25px 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo img {
    height: 100px;
    display: block;
}

/* ================= HEADER CONTACT ================= */
.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.fb-box {
    display: block;
    width: 40px;
    height: 40px;
}

.fb-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
}

.header-phone {
    color: var(--primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.header-mail {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-mail:hover {
    background: var(--dark);
}

/* ================= NAV ================= */
.main-nav {
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    background: #1a1a1a;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    padding: 12px 0;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #eee;
    font-weight: 600;
    transition: 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a.active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}

/* ================= HERO ================= */
.hero {
    height: 400px;
    background: url("images/hero.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.hero-content {
    position: relative;
    padding: 0 15px;
}

.hero-sub {
    color: var(--primary);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

/* ================= BUTTONS ================= */
.btn {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
}

.primary {
    background: var(--primary);
    color: #fff;
}

.primary:hover {
    background: var(--dark);
}

.outline {
    border: 2px solid #fff;
    color: #fff;
}

.outline:hover {
    background: #fff;
    color: var(--dark);
}

/* ================= DIENSTEN ================= */
#diensten {
    background: var(--light);
    padding: 60px 15px;
    text-align: center;
}

#diensten .diensten-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Titel en intro */
#diensten h2 {
    color: var(--primary);
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 15px;
    line-height: 1.2;
}

#diensten .diensten-intro {
    margin-bottom: 30px;
    font-size: 16px;
    color: #eee;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Diensten icoontjes container */
#diensten .diensten-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

/* Individuele dienst */
#diensten .dienst {
    text-decoration: none;
    color: #eee;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 120px;       /* desktop breedte */
}

/* Icon afbeelding */
#diensten .dienst img {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 10px;
    transition: transform 0.3s ease;
}

#diensten .dienst span {
    display: block;
    margin-top: 5px;
}

#diensten .dienst:hover img {
    transform: scale(1.1);
}

/* Knop onder de diensten */
#diensten .diensten-btn {
    margin-top: 20px;
    text-align: center;
}

/* ================= RESPONSIVE ================= */

/* Tablet / kleine desktops */
@media (max-width: 992px) {
    #diensten h2 { font-size: 28px; }
    #diensten .diensten-intro { font-size: 15px; }
    #diensten .dienst img { width: 70px; height: 70px; }
}

/* Mobiel: max 2 iconen per rij */
@media (max-width: 600px) {
    #diensten h2 { font-size: 22px; }
    #diensten .diensten-intro { font-size: 14px; }

    #diensten .dienst {
        width: calc(50% - 20px); /* maximaal 2 naast elkaar + ruimte */
        margin: 10px;
    }

    #diensten .dienst img {
        width: 60px;
        height: 60px;
    }
}

/* Extra klein mobiel: 1 icoon per rij */
@media (max-width: 400px) {
    #diensten h2 { font-size: 18px; }
    #diensten .diensten-intro { font-size: 13px; }

    #diensten .dienst {
        width: 80%;
        margin: 10px auto;
    }

    #diensten .dienst img {
        width: 50px;
        height: 50px;
    }
}

/* ================= OVER MIJ ================= */
.over-mij {
    padding: 50px 15px;
    background: var(--light);
}

.over-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.wood-image {
    flex: 0 0 300px;
    height: 300px;
    background: url("images/fotoovermij.jpg") center/cover no-repeat;
    border-radius: 6px;
}

.over-text {
    flex: 1 1 400px;
}

.over-text h3 {
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.over-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #eee;
}

/* ================= CTA ================= */
.cta {
    background: url("images/bg-contact.jpg") center/cover no-repeat;
    padding: 60px 15px;
    position: relative;
    text-align: center;
    color: #fff;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.cta-content {
    position: relative;
}

.cta h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ================= FOOTER ================= */
.footer {
    background:#0f0f0f;
    padding:40px 15px;
    color:#ccc;
}

.footer-container {
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1100px;
    margin: auto;
}

.footer-left {
    flex: 0 0 200px;
    padding-left: 20px; /* iets naar rechts */
}

.footer-left img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.footer-middle {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-middle a {
    color:#ccc;
    text-decoration:none;
    font-size:14px;
}

.footer-middle a:hover {
    color:var(--primary);
}

.footer-right {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-right: 20px; /* iets naar links */
}

.footer-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
    color: #ccc;
}

.footer-item img {
    width: 18px;
    height: 18px;
}

.footer-item:hover {
    color: var(--primary);
}

.footer-credit {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    opacity: 0.7;
    color: #ddd;
}

.footer-credit a {
    color: #1aa3d8;
    text-decoration: none;
    transition: 0.2s;
}

.footer-credit a:hover {
    text-decoration: underline;
    text-shadow: 0 0 5px blue;
}

/* ================= TIMMERWERK ================= */
.timmerwerk-page {
    padding: 60px 15px;
    text-align: center;
    color: #eee;
}

.timmerwerk-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.timmerwerk-block img {
    width: 100%;
    border-radius: 6px;
}

.timmerwerk-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.timmerwerk-text p,
.timmerwerk-text li {
    font-size: 14px;
    line-height: 1.8;
    color: #eee;
}

.timmerwerk-text ul {
    margin-top: 15px;
    padding-left: 20px;
    text-align: left;
}

.reverse {
    direction: rtl;
}

.reverse .timmerwerk-text {
    direction: ltr;
}

/* ================= MEDIA QUERIES ================= */

/* Desktop > 800px */
@media (min-width: 800px) {
    .hero h1 { font-size: 46px; }
    .hero-buttons { flex-direction: row; gap: 15px; }
    #diensten .diensten-icons { gap: 60px; }
    .over-grid { flex-direction: row; text-align: left; }
    .timmerwerk-block { flex-direction: row; gap: 60px; }
}

/* Tablet & Mobiel */
@media (max-width: 800px) {
    .over-grid { flex-direction: column; gap: 20px; }
    .wood-image { width: 100%; height: 200px; }
    .over-text { width: 100%; text-align: center; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-right { align-items: center; }
    .hero h1 { font-size: 32px; }
    .hero-buttons { gap: 10px; flex-direction: column; }
}

/* Mobiel: diensten icoontjes aanpassen */
@media (max-width: 600px) {
    #diensten .dienst { width: 45%; margin-bottom: 15px; }
    #diensten .dienst img { width: 60px; height: 60px; }
}

/* Extra klein mobiel */
@media (max-width: 400px) {
    #diensten .dienst { width: 80%; margin: 0 auto 20px; }
    #diensten .dienst img { width: 50px; height: 50px; }
    #diensten h2 { font-size: 18px; }
    #diensten .diensten-intro { font-size: 13px; }
    .hero h1 { font-size: 28px; }
    .hero-sub { font-size: 12px; }
    .btn { font-size: 11px; padding: 8px 15px; }
    .over-text p { font-size: 13px; }
}
