/* ============================================================
   Verkerk Bouwmaterialen Twello B.V. — site styles
   Faithful to the original WordPress (vantage) site:
   light & sober, thin grey headings, dark slate nav + footer.
   ============================================================ */

/* 1. CSS variables */
:root {
    --primary: #2f6f9f;        /* links / subtle accent */
    --primary-dark: #245a82;   /* link hover */
    --secondary: #c0392b;      /* warm accent (logo red) */
    --dark: #343538;           /* nav + footer slate */
    --dark-soft: #3d3e42;      /* nav hover */
    --text: #555555;           /* body text */
    --text-light: #777777;     /* secondary text */
    --heading: #5a5a5a;        /* thin grey headings */
    --cream: #f0f0f0;          /* page background behind the box */
    --white: #ffffff;
    --border: #e3e3e3;         /* subtle borders */
}

/* 2. Reset + base typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Open Sans', sans-serif;
    color: var(--heading);
    line-height: 1.3;
    font-weight: 300;
}

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: var(--primary-dark); }

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

/* 3. Layout — boxed container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
    min-height: 100vh;
}

.content {
    padding: 2.8rem 3rem 3.5rem;
}

/* Topbar (brand wordmark + phone) */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 3rem;
    background: var(--white);
}

.brand {
    font-size: 1.9rem;
    font-weight: 300;
    color: var(--heading);
    letter-spacing: 0.3px;
}

.topbar-phone {
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-light);
}

/* Navigation */
.nav {
    background: var(--dark);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    list-style: none;
    margin: 0;
    width: 100%;
    padding: 0 1rem;
}

.nav-links li { display: flex; }

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.95rem 1.3rem;
    color: #e6e6e6;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-icon {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--dark-soft);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #e6e6e6;
    margin: 0 auto;
}

/* Banner (under nav, on most pages) */
.banner img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* 4. Content blocks */
.page-title {
    font-size: 1.9rem;
    font-weight: 300;
    color: var(--heading);
    margin-bottom: 1.3rem;
}

.page-title--center { text-align: center; }

.title-rule {
    border: none;
    border-top: 1px solid var(--border);
    max-width: 620px;
    margin: 0 auto 1.6rem;
}

.intro {
    margin-bottom: 2rem;
}

.intro--center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.prose { max-width: 900px; }
.prose p { margin-bottom: 1.2rem; }

/* Home: two columns (Wie zijn wij? / Wat doen wij?) */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 1rem 0 2.5rem;
}

.two-col h2,
.content > h2 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--heading);
    margin-bottom: 0.8rem;
}

.content > h2 { margin: 1.5rem 0 1rem; }

/* Map embed */
.map {
    margin: 1rem 0 0;
}

.map iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* Assortiment — plain text category lists */
.assortiment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2.5rem;
    margin-top: 1.5rem;
}

.assortiment-cat h3 {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--heading);
    margin-bottom: 0.7rem;
}

.assortiment-cat ul {
    list-style: none;
}

.assortiment-cat li {
    padding: 0.18rem 0;
    font-size: 0.95rem;
    color: var(--text);
}

/* Contact — three info columns */
.contact-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 2.5rem auto 1rem;
}

.contact-col h3 {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--heading);
    margin-bottom: 1rem;
}

.contact-col strong {
    font-weight: 700;
    color: var(--heading);
}

.contact-col a {
    color: var(--text);
}

.contact-col a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark);
    color: #b9bbbf;
    padding: 2.8rem 3rem 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

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

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

.footer-list li {
    padding: 0.22rem 0;
    font-size: 0.9rem;
}

.footer-links a { color: #b9bbbf; }
.footer-links a:hover { color: var(--white); }

.footer-cta {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.email-btn {
    display: inline-block;
    background: var(--white);
    color: #444;
    padding: 0.85rem 1.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.email-btn:hover {
    background: #f1f1f1;
    color: #222;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.82rem;
    color: #85878c;
}

.footer-bottom p { margin: 0; }

/* 5. Responsive — tablet */
@media (max-width: 992px) {
    .content { padding: 2.2rem 2rem 3rem; }
    .topbar { padding: 1.3rem 2rem; }
    .brand { font-size: 1.5rem; }

    .nav { position: relative; }
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
        background: var(--dark);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .nav-links--open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .banner img { height: 200px; }

    .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
    .assortiment-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-cols { grid-template-columns: 1fr; gap: 1.8rem; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-cta { justify-content: flex-start; }
}

/* 6. Responsive — mobile */
@media (max-width: 576px) {
    .content { padding: 2rem 1.5rem 2.5rem; }

    .topbar {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .brand { font-size: 1.3rem; }

    .banner img { height: 160px; }

    .page-title { font-size: 1.6rem; }
    .assortiment-grid { grid-template-columns: 1fr; }

    .footer { padding: 2.2rem 1.5rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .footer-cta { justify-content: flex-start; }
}
