/* ==========================================================================
   Thijs Geerdink Advocatenkantoor - stylesheet
   Huisstijl: olijfgroen accent (#7c7e33), Montserrat (koppen) + Roboto (tekst)
   ========================================================================== */

:root {
    --accent: #7c7e33;
    --accent-dark: #63652a;
    --ink: #2b2b28;
    --ink-light: #5c5c57;
    --paper: #ffffff;
    --paper-muted: #f6f6f2;
    --border: #e4e3da;
    --max-width: 1180px;
    --radius: 3px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    overflow-wrap: break-word; /* voorkomt horizontaal scrollen bij lange woorden zoals "Beroepsaansprakelijkheidsverzekering" */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.6em;
    hyphens: auto;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); }

p { margin: 0 0 1.1em; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- Skip link (toegankelijkheid) ---------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
}
.skip-link:focus { left: 0; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
    transition: padding 0.25s ease, box-shadow 0.25s ease;
    overflow-anchor: none; /* voorkomt dat de browser de scrollpositie bijstelt zodra de header van hoogte verandert */
}
.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.logo { min-width: 0; flex: 0 1 auto; }
.logo img {
    height: 84px;
    width: auto;
    max-width: 100%;
    transition: height 0.25s ease;
}
.site-header.scrolled .logo img { height: 48px; }

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 2px;
    margin: 0;
    padding: 0;
}
.main-nav li { position: relative; }
.main-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent-dark);
    background: var(--paper-muted);
    text-decoration: none;
}

.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu:focus-within .submenu {
    display: block;
}
.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 260px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 50;
}
.main-nav .submenu a {
    text-transform: none;
    font-weight: 400;
    font-size: 0.92rem;
    white-space: normal;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }
.mobile-nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Hero carrousel ---------- */
.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border-bottom: 1px solid var(--border);
}
.hero-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease;
    display: flex;
    align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-size: cover;
    background-position: center;
}
.hero-slide .bg::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(0deg, rgba(30,31,20,0.82) 0%, rgba(30,31,20,0.45) 55%, rgba(30,31,20,0.25) 100%);
}
.hero-slide .bg.pattern-a { background-color: #565830; background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0, transparent 50%),
    linear-gradient(135deg, #63652a, #3f4020); }
.hero-slide .bg.pattern-b { background-color: #4a4c24; background-image:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.07) 0, transparent 40%),
    radial-gradient(circle at 25% 80%, rgba(255,255,255,0.05) 0, transparent 45%),
    linear-gradient(135deg, #565830, #2f3018); }
.hero-slide .content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 40px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}
.hero-slide h1, .hero-slide p { color: #fff; }
.hero-slide .lead { font-size: 1.15rem; color: #ece9dc; max-width: 60ch; }

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    -webkit-tap-highlight-color: transparent;
}
.hero-nav:hover { background: rgba(255,255,255,0.3); }
.hero-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-nav.prev { left: 16px; }
.hero-nav.next { right: 16px; }

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.25);
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hero-dots button.active { background: #fff; }
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 760px) {
    .hero-carousel { min-height: 380px; }
    .hero-slide .content { padding: 32px 24px 44px; }
    .hero-nav { width: 34px; height: 34px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 13px 26px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Layout: content + sidebar ---------- */
.page-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 48px;
    padding: 48px 0 64px;
    align-items: start;
}
.content-main h1 { margin-bottom: 0.3em; }
.content-main .intro {
    font-size: 1.1rem;
    color: var(--ink-light);
    margin-bottom: 1.3em;
}
.content-main .cta-row { margin-top: 1.8em; }

.sidebar { background: var(--paper-muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sidebar h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-dark); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--border); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { display: block; padding: 9px 2px; font-size: 0.94rem; }
.sidebar a[aria-current="page"] { color: var(--accent-dark); font-weight: 700; }

/* ---------- Offices (home) ---------- */
.offices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 0 0 56px;
}
.office-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.office-card h3 { margin-top: 0; }
.office-card p { margin-bottom: 0.4em; }

/* ---------- Offices - uitgebreide kaarten (contactpagina) ---------- */
.offices-rich {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin: 28px 0 8px;
}
.office-card-rich {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}
.office-card-rich .photo,
.office-card-rich .map {
    aspect-ratio: 16 / 9;
    background: var(--paper-muted);
}
.office-card-rich .info,
.office-card-rich .map { border-top: 6px solid var(--paper); }
.office-card-rich .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.office-card-rich .photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    color: var(--accent-dark);
    background: linear-gradient(135deg, var(--paper-muted), #eceadb);
}
.office-card-rich .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.office-card-rich .info { padding: 22px 24px 26px; }
.office-card-rich h3 { margin-top: 0; }
.office-card-rich p { margin-bottom: 0.4em; }

/* ---------- Team grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
    padding: 40px 0 64px;
}
.team-card {
    text-align: left;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}
.team-card .photo {
    aspect-ratio: 4 / 3;
    background: var(--paper-muted);
    overflow: hidden;
}
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .photo.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-light);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 600;
}
.team-card .info { padding: 16px 18px 20px; }
.team-card h3 {
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.15em;
}
.team-card .functie { color: var(--accent-dark); font-size: 0.88rem; margin-bottom: 0.6em; }

/* ---------- Team profile ---------- */
.profile-header { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.5em; }
.profile-header .photo { width: 180px; flex: none; border-radius: var(--radius); overflow: hidden; }
.profile-header .photo.placeholder {
    width: 180px; height: 135px;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper-muted);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.4rem; font-weight: 600; color: var(--ink-light);
    border-radius: var(--radius);
}
.profile-header .meta p { margin: 0 0 0.3em; }
.profile-header .functie { color: var(--accent-dark); font-weight: 600; }
.profile-rechtsgebieden { list-style: none; padding: 0; margin: 1.4em 0; }
.profile-rechtsgebieden li {
    padding-left: 1.3em;
    position: relative;
    margin-bottom: 0.4em;
}
.profile-rechtsgebieden li::before {
    content: "";
    position: absolute; left: 0; top: 0.55em;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
}

/* ---------- Kosten: 3 blokken + accordion ---------- */
.kosten-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 28px 0;
}
.kosten-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 36px;
    background: var(--paper);
}
.kosten-block h2 { font-size: 1.2rem; margin-bottom: 0.5em; }
.kosten-block .btn { margin-top: 6px; font-size: 0.82rem; padding: 11px 20px; }

.kosten-accordion { margin-top: 18px; }
.kosten-accordion details {
    border-top: 1px solid var(--border);
}
.kosten-accordion details:last-child { border-bottom: 1px solid var(--border); }
.kosten-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 28px 14px 0;
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
}
.kosten-accordion summary::-webkit-details-marker { display: none; }
.kosten-accordion summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 12px;
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.2s ease;
}
.kosten-accordion details[open] summary::after { content: "\2212"; }
.kosten-accordion summary:hover { color: var(--accent-dark); }
.kosten-accordion summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kosten-accordion .accordion-body { padding: 0 0 16px; color: var(--ink-light); }
.kosten-accordion .accordion-body p { margin-bottom: 0.9em; font-size: 0.95rem; }
.kosten-accordion .accordion-body p:last-child { margin-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0 64px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    background: var(--paper);
}
.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-message { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.95rem; }
.form-message.success { background: #eef3e2; border: 1px solid var(--accent); color: var(--accent-dark); }
.form-message.error { background: #fbeaea; border: 1px solid #c0392b; color: #922b21; }

/* ---------- Blog: overzicht ---------- */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    padding: 40px 0 64px;
}
.blog-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--paper);
}
.blog-card:hover { border-color: var(--accent); text-decoration: none; }
.blog-card .meta { font-size: 0.82rem; color: var(--ink-light); margin-bottom: 0.6em; }
.blog-card h2 { font-size: 1.15rem; margin-bottom: 0.5em; color: var(--ink); }
.blog-card p { color: var(--ink-light); font-size: 0.95rem; margin-bottom: 0; }
.blog-empty { padding: 8px 0 40px; color: var(--ink-light); }

/* ---------- Blog: artikel ---------- */
.blog-article .meta {
    font-size: 0.88rem;
    color: var(--ink-light);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1.2em;
}
.blog-article h2 { font-size: 1.25rem; margin-top: 1.3em; }
.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2.2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--border);
}
.blog-share span { font-size: 0.85rem; color: var(--ink-light); font-weight: 600; }
.blog-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--ink);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}
.blog-share a:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #d8d8d3;
    padding: 48px 0 24px;
    margin-top: 40px;
}
.site-footer a { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.footer-grid h3 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.9em;
}
.footer-grid p { margin: 0 0 0.3em; font-size: 0.92rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5em; font-size: 0.92rem; }
.footer-bottom {
    max-width: var(--max-width);
    margin: 32px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid #45453f;
    font-size: 0.82rem;
    color: #9a9a94;
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--ink);
    color: #eee;
    padding: 16px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    z-index: 500;
    font-size: 0.9rem;
}
.cookie-notice.visible { display: flex; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .page-layout, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .mobile-nav-toggle { display: inline-block; }
    .main-nav { display: none; width: 100%; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav .submenu { position: static; border: none; box-shadow: none; display: none; padding-left: 14px; }
    .main-nav .has-submenu.open .submenu { display: block; }
    /* Het logo is zeer breed (4,6:1) - op smalle schermen compacter tonen
       zodat het samen met de menuknop op de bovenste regel past. Het menu
       zelf (indien open) krijgt via width:100% vanzelf een eigen regel. */
    .site-header { padding: 16px 0; }
    .logo img { height: 40px; }
    .site-header.scrolled .logo img { height: 32px; }
    .mobile-nav-toggle { flex: none; }
}

/* Respecteer voorkeur voor minder beweging */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-header, .logo img { transition: none; }
}

@media (max-width: 480px) {
    .site-header .container { gap: 12px; }
    .logo img { height: 34px; }
    .site-header.scrolled .logo img { height: 28px; }
}
