/* 
   Style Sheet for dekunstvanwerken.nl
   Description: This CSS provides a clean, professional, blue and white design.
   It uses Flexbox and Grid for layout and is fully responsive.
   Location: /var/www/dekunstvanwerken.nl/style.css
*/

/* --- Variables --- */
/* Local aliases mapped to the brand design tokens in brand-variables.css. */
:root {
    --primary-color: var(--color-primary);
    --secondary-color: var(--color-secondary);
    --accent-color: var(--color-accent);
    --bg-light: var(--color-bg-light);
    --text-dark: var(--color-text-dark);
    --text-light: var(--color-text-light);
    --border-color: var(--color-border);
    --max-width: var(--max-width-content);
}

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

/* --- Navigation --- */
nav {
    background: var(--text-light);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* --- Tools dropdown (in primary nav) --- */
.has-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--primary-color);
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown-trigger:hover {
    color: var(--secondary-color);
}

.nav-dropdown-trigger .caret {
    font-size: 0.7em;
    line-height: 1;
    transition: transform 0.2s;
}

.nav-dropdown-trigger[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 0.35rem 0;
    display: none;
    z-index: 1001;
    list-style: none;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown {
    display: block;
}

/* Invisible bridge: keeps the :hover state active while the cursor
   crosses the visual gap between the Tools trigger and the dropdown
   panel. Without this the dropdown closes before the cursor reaches it. */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.6rem;
    pointer-events: none;
}
.has-dropdown:hover::after {
    pointer-events: auto;
}

.nav-dropdown li {
    margin: 0 !important;
}

.nav-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
    background: var(--bg-light);
    color: var(--secondary-color);
}

/* --- Mobile menu toggle (hamburger) --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 24px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    transition: transform 0.25s ease, top 0.25s ease;
}

.nav-toggle-bar::before { top: -8px; }
.nav-toggle-bar::after  { top:  8px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero Section --- */
#hero {
    /* Pure-CSS hero: no external image request (better LCP, no third-party
       dependency). Layered gradients give the flat brand blue some depth. */
    background:
        radial-gradient(ellipse at 80% 15%, rgba(230, 126, 34, 0.18), transparent 45%),
        radial-gradient(ellipse at 15% 85%, rgba(52, 152, 219, 0.35), transparent 55%),
        linear-gradient(135deg, #003a7a 0%, #004a99 55%, #0057b8 100%);
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Services Section --- */
#services {
    background: var(--text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h1,
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Whitelabel Section --- */
#whitelabel {
    background: var(--bg-light);
}

.whitelabel-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.whitelabel-text {
    flex: 1;
    min-width: 300px;
}

.whitelabel-image {
    flex: 1;
    min-width: 300px;
    background: var(--primary-color);
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

/* --- Methodology Section --- */
.methodology-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.methodology-box h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.methodology-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.methodology-item p {
    font-size: 0.95rem;
}

/* --- FAQ Section --- */
#faq {
    background: var(--text-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--text-light);
}

.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    transition: background 0.15s;
}

.faq-item > summary:hover {
    background: var(--bg-light);
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: '▾';
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.15s;
}

.faq-item[open] > summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.25rem 1.1rem;
}

.faq-answer p {
    font-size: 0.95rem;
}

/* --- Contact Section --- */
#contact {
    background: var(--text-light);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-phone {
    margin-top: 0.75rem;
    font-size: 1.1rem;
}

.contact-phone a {
    color: var(--primary-color);
    font-weight: bold;
}

.contact-phone a:hover {
    color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 1rem;
}

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

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

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--text-light);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 400px;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    /* Mobile: dropdown opens inline (accordion), not floating */
    .has-dropdown:hover .nav-dropdown,
    .has-dropdown:focus-within .nav-dropdown {
        display: none;
    }

    .nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown {
        display: block;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-light);
        padding: 0;
        margin: 0;
    }

    .nav-dropdown a {
        padding: 0.85rem 3rem;
    }

    .nav-dropdown-trigger {
        display: flex;
        width: 100%;
        padding: 1rem 2rem;
        text-align: left;
        justify-content: space-between;
        border-bottom: 1px solid var(--border-color);
        color: var(--primary-color);
    }

    #hero h1 {
        font-size: 2rem;
    }
}
