/* =============================================
   Goey Tandartsenpraktijk — Custom CSS v1.0.0
   ============================================= */

/* --- Lettertypes zelf gehost (1.0.1, 3-11-2026; was Google Fonts) --- */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap; src: url('../fonts/open-sans-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../fonts/playfair-display-latin-var.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

/* Force full-width for WP block wrappers */
.wp-block-html,
.wp-site-blocks > .wp-block-html,
.wp-block-template-part {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: #fff;
    margin: 0;
}

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

a { color: #9f7eaf; text-decoration: none; }
a:hover { color: #7a5e8c; text-decoration: underline; }

/* --- Header --- */
.goey-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.goey-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 1rem;
}

.goey-logo img {
    height: 60px;
    width: auto;
}

.goey-header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.goey-header-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.goey-btn {
    display: inline-block;
    background: #9f7eaf;
    color: #fff !important;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.goey-btn:hover { background: #7a5e8c !important; }

.goey-btn-outline {
    background: transparent;
    color: #9f7eaf !important;
    border: 2px solid #9f7eaf;
}

.goey-btn-outline:hover {
    background: #9f7eaf !important;
    color: #fff !important;
}

.goey-btn-dark {
    background: #1d2d44;
    color: #fff !important;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.goey-btn-dark:hover { background: #2a3f5e !important; }

/* --- Navigation --- */
.goey-nav { position: relative; }

#goey-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #1d2d44;
}

#goey-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

#goey-nav-menu li { position: relative; }

#goey-nav-menu a {
    display: block;
    padding: 0.6rem 0.9rem;
    color: #1d2d44;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

#goey-nav-menu a:hover,
#goey-nav-menu li.current-menu-item > a {
    color: #9f7eaf;
}

/* Dropdown */
#goey-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-top: 3px solid #9f7eaf;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    z-index: 200;
}

#goey-nav-menu li:hover > .sub-menu { display: block; }
#goey-nav-menu .sub-menu a { padding: 0.5rem 1rem; font-weight: 400; }

/* --- Hero (homepage) --- */
.goey-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1d2d44;
}

.goey-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.goey-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29,45,68,.75) 0%, rgba(159,126,175,.5) 100%);
}

.goey-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: left;
    color: #fff;
    width: 100%;
}

.goey-hero-logo {
    max-width: 380px;
    margin: 0 0 2rem;
}

.goey-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.goey-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,.9);
    margin: 0 0 2rem;
}

.goey-hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.goey-btn-hero {
    background: #9f7eaf;
    color: #fff !important;
    font-size: 1rem;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}

.goey-btn-hero:hover { background: #7a5e8c; }

.goey-btn-hero-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
}

.goey-btn-hero-outline:hover { background: rgba(255,255,255,.15); }

/* --- Page Layout --- */
.goey-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

.goey-page-content h1 {
    font-size: 2.2rem;
    color: #1d2d44;
    margin: 0 0 1.5rem;
}

.goey-page-content h2 {
    font-size: 1.5rem;
    color: #1d2d44;
    margin: 2rem 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #9f7eaf;
    display: inline-block;
}

.goey-page-content p { margin: 0 0 1rem; line-height: 1.8; }
.goey-page-content ul { padding-left: 1.5rem; margin: 0 0 1rem; }
.goey-page-content li { margin-bottom: 0.4rem; line-height: 1.8; }

/* --- Contact Sidebar --- */
.goey-sidebar {
    background: #f5f0f8;
    border-radius: 10px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.goey-sidebar h3 {
    color: #1d2d44;
    font-size: 1.1rem;
    margin: 0 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #9f7eaf;
}

.goey-contact-info { margin: 0 0 1.5rem; }

.goey-contact-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.goey-contact-row img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.goey-contact-row a { color: #9f7eaf; }

/* Opening hours table */
.goey-hours {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.goey-hours td { padding: 0.3rem 0; }
.goey-hours td:last-child { text-align: right; font-weight: 600; }

/* Contact form in sidebar */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    margin-bottom: 0.5rem;
}

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    background: #9f7eaf;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    width: 100%;
    transition: background 0.2s;
}

.wpcf7 input[type="submit"]:hover { background: #7a5e8c; }

/* --- Homepage Sections --- */
.goey-section {
    padding: 4rem 1.5rem;
}

.goey-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

.goey-section-title h2 {
    font-size: 2rem;
    color: #1d2d44;
    margin: 0 0 0.5rem;
}

.goey-section-title p {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Intro section */
.goey-intro {
    background: #fff;
}

.goey-intro-text {
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
}

.goey-intro-text h2 {
    font-size: 1.6rem;
    color: #1d2d44;
    margin: 2rem 0 1rem;
}

/* Behandelingen grid */
.goey-treatments {
    background: #f5f0f8;
}

.goey-treatments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.goey-treatment-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.goey-treatment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(159,126,175,.2);
}

.goey-treatment-card h3 {
    font-size: 1.1rem;
    color: #1d2d44;
    margin: 0 0 0.75rem;
}

.goey-treatment-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.7;
}

.goey-treatment-card a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9f7eaf;
}

/* Team section */
.goey-team {
    background: #fff;
}

.goey-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.goey-team-member {
    text-align: center;
}

.goey-team-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #9f7eaf;
}

.goey-team-member h3 {
    font-size: 1rem;
    color: #1d2d44;
    margin: 0 0 0.25rem;
}

.goey-team-member p {
    font-size: 0.875rem;
    color: #9f7eaf;
    font-weight: 600;
    margin: 0;
}

/* USP bar */
.goey-usps {
    background: #1d2d44;
    color: #fff;
    padding: 2rem 1.5rem;
}

.goey-usps-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.goey-usp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.goey-usp::before {
    content: '✓';
    background: #9f7eaf;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Contact section (homepage) */
.goey-contact-section {
    background: #f5f0f8;
}

.goey-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.goey-contact-block h3 {
    font-size: 1.1rem;
    color: #1d2d44;
    margin: 0 0 1.2rem;
    border-bottom: 2px solid #9f7eaf;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* --- FAQ Accordion --- */
.goey-faq { margin: 2rem 0; }
.goey-faq h2 { font-size: 1.5rem; color: #1d2d44; margin: 0 0 1.5rem; }

.goey-faq-item {
    border: 1px solid #e8dff0;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.goey-faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: #1d2d44;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    background: #faf7fc;
    user-select: none;
}

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

.goey-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: #9f7eaf;
    font-weight: 700;
    flex-shrink: 0;
}

.goey-faq-item[open] summary::after { content: '−'; }

.goey-faq-item[open] summary {
    background: #f0e8f5;
    color: #9f7eaf;
}

.goey-faq-body {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

/* --- Table comparison (MRA vs CPAP) --- */
.goey-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.goey-table th {
    background: #9f7eaf;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
}

.goey-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #e8dff0;
}

.goey-table tr:nth-child(even) td { background: #faf7fc; }

/* --- Breadcrumb --- */
.goey-breadcrumb {
    background: #f5f0f8;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    color: #666;
}

.goey-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.goey-breadcrumb a { color: #9f7eaf; }
.goey-breadcrumb span { margin: 0 0.4rem; }

/* --- Footer --- */
.goey-footer {
    background: #1d2d44;
    color: #ccc;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 4rem;
}

.goey-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.goey-footer-brand img:first-of-type {
    height: 55px;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.goey-footer-brand img:last-of-type {
    height: 60px;
    width: auto;
    opacity: 0.75;
    margin-top: 0.5rem;
}

.goey-footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #aaa;
    margin: 0 0 1rem;
}

.goey-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.goey-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goey-footer ul li { margin-bottom: 0.4rem; }

.goey-footer ul a {
    color: #aaa;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.goey-footer ul a:hover { color: #9f7eaf; }

.goey-footer-contact p {
    font-size: 0.875rem;
    color: #aaa;
    margin: 0 0 0.4rem;
    line-height: 1.6;
}

.goey-footer-contact a { color: #9f7eaf; }

.goey-footer-hours {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.8;
}

.goey-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.goey-footer-bottom p { font-size: 0.8rem; color: #888; margin: 0; }

.goey-footer-krt img {
    height: 50px;
    width: auto;
    opacity: 0.7;
}

.goey-footer-sister {
    font-size: 0.8rem;
    color: #888;
}

.goey-footer-sister a { color: #9f7eaf; }

/* --- Back to top --- */
#goey-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #9f7eaf;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

#goey-back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* --- Scroll animation --- */
.goey-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.goey-animate.is-visible {
    opacity: 1;
    transform: none;
}

/* --- Impressie fotogalerij --- */
.goey-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.goey-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s;
}

.goey-gallery img:hover { transform: scale(1.02); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .goey-treatments-grid { grid-template-columns: repeat(2, 1fr); }
    .goey-team-grid { grid-template-columns: repeat(2, 1fr); }
    .goey-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .goey-hero h1 { font-size: 2rem; }
    .goey-page-wrap { grid-template-columns: 1fr; }
    .goey-sidebar { position: static; }
    .goey-treatments-grid { grid-template-columns: 1fr; }
    .goey-team-grid { grid-template-columns: repeat(2, 1fr); }
    .goey-contact-grid { grid-template-columns: 1fr; }
    .goey-footer-inner { grid-template-columns: 1fr; }
    .goey-footer-bottom { flex-direction: column; text-align: center; }
    .goey-gallery { grid-template-columns: repeat(2, 1fr); }

    #goey-nav-toggle { display: block; }

    #goey-nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,.12);
        padding: 1rem 0;
    }

    #goey-nav-menu.open { display: flex; }

    #goey-nav-menu a { padding: 0.75rem 1.5rem; border-bottom: 1px solid #f0e8f5; }

    .goey-header-inner { flex-wrap: nowrap; gap: 0.5rem; }
    .goey-header-btns .goey-btn-outline { display: none; }
    .goey-header-btns { gap: 0.5rem; }
    .goey-header-btns .goey-btn-dark { font-size: 0.78rem; padding: 0.5rem 0.9rem; }
    .goey-logo img { height: 44px; }
}

@media (max-width: 480px) {
    .goey-hero { min-height: 100svh; }
    .goey-hero h1 { font-size: 1.6rem; }
    .goey-team-grid { grid-template-columns: 1fr; }
    .goey-gallery { grid-template-columns: 1fr; }
}

/* --- Fixes 1.0.1 (3-11-2026) --- */
/* Mobiel: grid-kolom mag niet breder worden dan het scherm (inhoud werd 20px afgekapt) */
.goey-page-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
.goey-lift-note { margin-top: 1rem; }
@media (max-width: 768px) {
    .goey-page-wrap { grid-template-columns: minmax(0, 1fr); }
    .goey-page-content [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
    .goey-page-content iframe { max-width: 100%; }
}
/* Belknop altijd in beeld: de kop moet sticky zijn op de template-part-wrapper, en overflow-x:hidden op html/body brak sticky */
html, body { overflow-x: clip; }
header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }

/* 4-11-2026: tarieventabellen */
.wp-block-post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.wp-block-post-content th, .wp-block-post-content td { padding: 0.5rem 0.4rem; border-bottom: 1px solid #e5e0ea; text-align: left; vertical-align: top; }
.wp-block-post-content th { color: #1d2d44; }
.wp-block-post-content td:last-child, .wp-block-post-content th:last-child { white-space: nowrap; text-align: right; }

.goey-faq { scroll-margin-top: 120px; }

.goey-hero-btns { align-items: center; }
.goey-score { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; padding: .55rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.96); color: #1d2d44; font-size: .85rem; line-height: 1.25; text-decoration: none; }
.goey-score:hover { background: #fff; }
.goey-score-sterren { color: #f9b710; font-size: 1.45rem; letter-spacing: 2px; line-height: 1; }
.goey-score img { display: block; width: 84px; height: auto; margin-top: .1rem; }
@media (max-width: 600px) { .goey-score { order: 3; display: grid; grid-template-columns: auto auto; column-gap: .9rem; row-gap: .1rem; padding: .4rem .8rem; } .goey-score-sterren { font-size: 1.15rem; } .goey-score img { grid-column: 2; grid-row: 1 / span 2; width: 70px; align-self: center; margin: 0; } }
#wat-patienten-zeggen { scroll-margin-top: 120px; }
