/* Reset4U – based on the original WordPress theme. */
:root {
    --slate: #4c5b5c;
    --ink: #182526;
    --orange: #db7a13;
    --line: #ccc;
    --bg: #e6e6e6;
    --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: #212529;
    font: 400 15px/1.6 'Open Sans', sans-serif;
}

a { color: var(--orange); }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1110px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    padding: 6px 30px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    opacity: .95;
    transition: transform .2s ease-in-out, opacity .2s;
}
.btn:hover { opacity: 1; transform: scale(1.05); }

/* Header */
.banner {
    min-height: 400px;
    background: #f5f5f5 center top / cover no-repeat;
}
.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
}
.brand img { display: block; height: 80px; width: auto; }
.nav-primary ul { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-primary a {
    display: block;
    padding: 0 15px;
    line-height: 120px;
    color: var(--slate);
    text-decoration: none;
    text-transform: uppercase;
    font-size: .95rem;
}
.nav-primary a:hover, .nav-primary a.active { color: var(--orange); }
.menu-toggle {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 15px;
    font: inherit;
    cursor: pointer;
}

/* Layout */
.wrap { padding-bottom: 30px; }
.page-layout { display: flex; gap: 30px; align-items: flex-start; }
.page-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 500px;
    margin-top: -60px;
    padding: 25px 30px 30px;
    background: #fff;
    border-radius: var(--radius);
}
.sidebar { flex: 0 0 300px; margin-top: -60px; }

.page-content h1 { margin: 0 0 15px; font-size: 1.5rem; font-weight: 600; color: var(--slate); }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 { color: var(--slate); font-weight: 600; line-height: 1.3; }
.prose h1 { font-size: 1.35rem; }
.prose h2 { font-size: 1.2rem; }
.prose h3, .prose h4, .prose h5 { font-size: 1.05rem; }
/* Images placed inside text float to the right, like on the old site. */
.prose p img, .prose li img, .prose .alignright { float: right; max-width: 45%; margin: 0 0 15px 20px; }
.prose li > p { margin: 0; }
.prose .alignleft { float: left; margin: 0 20px 15px 0; }
.prose::after { content: ''; display: table; clear: both; }
.prose table { border-collapse: collapse; margin: 10px 0 20px; min-width: min(100%, 420px); }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; }
.prose th { font-weight: 600; }
.prose td { white-space: nowrap; text-align: right; }

/* Sidebar */
.side-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.side-menu li + li { border-top: 1px solid var(--line); }
.side-menu a { display: block; padding: 10px 15px; color: var(--slate); text-decoration: none; }
.side-menu li.child a { padding-left: 30px; }
.side-menu a:hover { background: #f6f6f6; }
.side-menu li.current a {
    padding-left: 35px;
    background: url('../images/icon-arrow.svg') 15px center / 11px no-repeat;
    color: var(--ink);
    font-weight: 600;
}
.side-menu li.child.current a { padding-left: 50px; background-position: 30px center; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card h3 { margin: 0; padding: 15px 15px 0; font-size: 1rem; }
.contact-card p { margin: 0; padding: 15px; line-height: 1.7; border-bottom: 1px solid var(--line); }
.contact-card p:last-child { border: 0; }
.contact-card span { display: inline-block; width: 25%; font-size: .75rem; opacity: .5; }
.contact-card a { color: inherit; text-decoration: none; }

/* Home: therapy slider */
.therapy-slider { position: relative; margin-top: -50px; }
.slider-arrows { position: absolute; top: -50px; right: 0; display: flex; gap: 20px; }
.slider-arrows button {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--ink); opacity: .5; transition: opacity .2s, transform .2s;
}
.slider-arrows button:hover { opacity: 1; transform: scale(1.1); }
.slider-arrows .prev svg { transform: scaleX(-1); }
.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    background: var(--slate);
    border-radius: var(--radius);
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
    flex: 0 0 25%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 30px 15px 20px;
    color: #fff;
    text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, .6);
    transition: background-color .2s;
}
.slide:last-child { border-right: 0; }
.slide h2 { margin: 0 0 15px; font-size: 1.15rem; text-align: center; font-weight: 600; }
.slide p { flex: 1; margin: 0 0 15px; font-weight: 300; font-size: .92rem; }
.slide .more {
    align-self: stretch;
    text-align: center;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--orange);
    opacity: 0;
    transition: opacity .2s;
}
.slide:hover, .slide:focus-visible { background-color: rgba(0, 0, 0, .35); }
.slide:hover .more, .slide:focus-visible .more { opacity: 1; }

.home-block {
    margin-top: 30px;
    padding: 20px 300px 25px 30px;
    background: #fff no-repeat right 30px center / 220px auto;
    border-radius: var(--radius);
    color: var(--slate);
}
.home-block h3 { margin: 0 0 10px; font-size: 1.25rem; }
.home-block .prose p { margin: 0 0 12px; }

/* "Afspraak maken" block under the therapy pages */
.appointment-block {
    margin-top: 30px;
    padding: 1px;
    background: var(--orange);
    border-radius: var(--radius);
    overflow: hidden;
}
.appointment-block header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 30px;
}
.appointment-block h2 { margin: 0; color: #fff; font-size: 2rem; font-weight: 700; }
.appointment-block .btn { background: #fff; color: var(--orange); padding: 6px 15px; }
.appointment-block .prose {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--slate);
}
.appointment-block .prose p { margin: 0 0 15px; }
.appointment-block .prose p:last-child { margin: 0; }

/* Therapies overview */
.therapy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}
.therapy-cards a {
    display: block;
    height: 100%;
    padding: 15px;
    background: var(--slate);
    color: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform .2s;
}
.therapy-cards a:hover { transform: translateY(-2px); background: #3f4c4d; }
.therapy-cards h2 { margin: 0 0 8px; font-size: 1.05rem; }
.therapy-cards p { margin: 0; font-size: .85rem; font-weight: 300; }

/* Links page */
.page-layout.full .page-content { margin-top: -60px; }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li + li { margin-top: 15px; }
.link-list a {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s;
}
.link-list a:hover { border-color: var(--orange); }
.link-list h3 { margin: 0 0 6px; color: var(--orange); font-size: .95rem; }
.link-list p { margin: 0; font-size: .85rem; }
.link-list img { flex: 0 0 150px; width: 150px; object-fit: contain; max-height: 100px; }

/* Contact */
.contact-form { max-width: 500px; }
.contact-form label { display: block; margin: 15px 0 5px; font-weight: 600; color: var(--slate); }
.contact-form .req { color: var(--orange); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 3px;
    font: inherit;
}
.contact-form .invalid { border-color: #c0392b; }
.contact-form .btn { margin-top: 20px; }
.field-error { margin: 4px 0 0; color: #c0392b; font-size: .85rem; }
.hp { position: absolute; left: -9999px; }
.notice { margin: 0 0 15px; padding: 12px 15px; border-radius: var(--radius); }
.notice.success { background: #eaf6ec; color: #1e6b33; }
.notice.error { background: #fbeaea; color: #922; }

/* Footer */
.footer { padding: 15px 0 60px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.footer p { margin: 0; opacity: .5; font-size: .75rem; }
.newsletter { display: flex; border: 1px solid #000; border-radius: var(--radius); opacity: .3; font-size: .75rem; transition: opacity .2s; }
.newsletter:hover, .newsletter:focus-within { opacity: .6; }
.newsletter input { background: none; border: 0; padding: 5px 10px; font: inherit; }
.newsletter button { margin: 2px; background: #000; color: #fff; border: 0; border-radius: var(--radius); font: inherit; font-weight: 700; cursor: pointer; }

/* Responsive */
@media (max-width: 991.98px) {
    .slide { flex-basis: 33.333%; }
    .sidebar { flex-basis: 240px; }
    .nav-primary a { padding: 0 9px; font-size: .85rem; }
}

@media (max-width: 767.98px) {
    .banner { min-height: 260px; }
    .header-bar { height: 80px; border-radius: 0; }
    .brand img { height: 60px; }
    .menu-toggle { display: block; }
    .nav-primary {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 10;
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
    }
    .menu-open .nav-primary { display: block; }
    .nav-primary ul { flex-direction: column; }
    .nav-primary a { line-height: 1; padding: 14px; text-align: center; border-bottom: 1px solid var(--line); font-size: .95rem; }
    .page-layout { flex-direction: column; }
    .page-content { margin-top: -40px; padding: 20px; min-height: 0; }
    .sidebar { flex: none; width: 100%; margin-top: 0; }
    .page-layout:not(:has(.contact-card)) .sidebar { display: none; }
    .slide { flex-basis: 50%; }
    .slide .more { opacity: 1; }
    .therapy-slider { margin-top: -30px; }
    .slider-arrows { top: -45px; }
    .home-block { padding: 20px; background-image: none !important; }
    .appointment-block header { flex-direction: column; align-items: stretch; padding: 15px; }
    .appointment-block h2 { font-size: 1.5rem; }
    .appointment-block .btn { text-align: center; }
    .appointment-block .prose { padding: 15px; }
    .prose p img, .prose li img, .prose .alignright, .prose .alignleft { float: none; display: block; max-width: 100%; margin: 0 0 15px; }
    .link-list a { flex-direction: column-reverse; align-items: flex-start; gap: 15px; }
    .footer .container { justify-content: center; text-align: center; }
}

@media (max-width: 575.98px) {
    .slide { flex-basis: 85%; }
}
