/* ==========================================================================
   Matroos - thema-CSS. Nabouw van het huidige dematroosenhetmeisje.nl-ontwerp.
   Fonts worden niet-blokkerend geladen via functions.php (async, met system-ui
   als fallback). Voor go-live vervangen door zelf-gehoste, gelicentieerde
   GT America / Neue Haas woff2.
   ========================================================================== */

:root {
	--white: #fff;
	--offwhite: #f3efe4;
	--grey: #33404A;
	--purple: #5560e0;
	--purple-hover: #454fcf;
}

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; margin-top: 96px; }

.matroos-wrap { max-width: 1400px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }

/* ===== HEADER (custom navigatie) ======================================== */
.matroos-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; padding: 16px 0; background: transparent; }
.matroos-header-inner {
	max-width: 1440px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}

/* Logo in eigen witte pill (desktop) */
.mh-logo {
	justify-self: start; display: inline-flex; align-items: center; height: 58px; padding: 0 24px;
	background: var(--offwhite); border: 1px solid rgba(135,150,248,0.3); border-radius: 40px;
}
.mh-logo img { max-height: 34px; width: auto; display: block; }

/* Navigatie-pill in het midden */
.mh-nav {
	justify-self: center; display: flex; align-items: center; height: 58px; padding: 0 32px;
	background: var(--offwhite); border: 1px solid rgba(135,150,248,0.3); border-radius: 40px;
}
.mh-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.mh-menu a {
	color: var(--grey); font-family: 'GT America Trial', system-ui, sans-serif;
	font-size: 18px; font-weight: 300; text-decoration: none; position: relative;
}
.mh-menu a::after {
	content: ''; position: absolute; left: 0; bottom: -8px; height: 1px; width: 100%; background: var(--grey);
	transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.mh-menu a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Reserveren-knop (desktop, rechts) */
.mh-reserve {
	justify-self: end; background: var(--purple); color: #fff; border: none; border-radius: 32px; cursor: pointer;
	padding: 15px 32px; font-family: 'GT America Trial', system-ui, sans-serif; font-size: 18px; font-weight: 300; line-height: 1.2; text-decoration: none; transition: background .3s; white-space: nowrap;
}
.mh-reserve:hover { background: var(--purple-hover); color: #fff; }

/* Acties rechts: globe-taalswitcher + reserveren */
.mh-actions { justify-self: end; display: flex; align-items: center; gap: 14px; }
.mh-lang { position: relative; }
.mh-lang-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(135,150,248,0.3); background: var(--offwhite); border-radius: 50%; color: var(--grey); cursor: pointer; padding: 0; transition: color .2s, border-color .2s; }
.mh-lang-toggle:hover { color: var(--purple); border-color: var(--purple); }
.mh-globe { width: 22px; height: 22px; display: block; }
.mh-lang-menu { list-style: none; margin: 0; padding: 5px; position: absolute; top: calc(100% + 8px); right: 0; background: var(--offwhite); border: 1px solid rgba(135,150,248,0.3); border-radius: 14px; box-shadow: 0 12px 30px rgba(51,64,74,0.14); display: none; width: 46px; box-sizing: border-box; z-index: 1000; }
.mh-lang.is-open .mh-lang-menu { display: block; }
.mh-lang-menu a { display: block; padding: 8px 0; border-radius: 8px; color: var(--grey); font-size: 15px; font-weight: 300; text-decoration: none; text-align: center; transition: background .15s, color .15s; }
.mh-lang-menu a:hover { background: #f4f5f7; color: var(--purple); }
.mh-lang-menu a.is-current { color: var(--purple); font-weight: 400; }
.mh-lang-mobile { display: none; }

.mh-toggle { display: none; }
.mh-dropdown { display: none; }

.wp-block-button__link { transition: .3s; }

/* --- Lijsten met eigen bullets ------------------------------------------ */
ul.wp-block-list { list-style: none; padding-left: 24px; }
ul.wp-block-list li { position: relative; margin-top: 8px; }
ul.wp-block-list li::after { content: ''; position: absolute; display: block; left: -16px; top: 14px; width: 8px; height: 8px; background: var(--grey); border-radius: 8px; transform: translate(-100%, -50%); }

.matroos-display { font-family: 'GT America Trial', system-ui, sans-serif; font-weight: 100; line-height: 1.15; }

/* --- HERO: grote "DMEHM" (headerbreed) + beeldmerk erover ---------------- */
.matroos-hero .hero-inner { position: relative; min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.hero-word { display: block; width: 100%; margin: 0; }
.hero-word text { fill: var(--grey); font-family: 'Neue Haas Grotesk Display Pro', system-ui, sans-serif; font-weight: 700; font-size: 255px; }
.hero-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; margin: 0; }
.hero-logo img { max-height: 62vh; width: auto; display: block; }

/* --- Openingstijden: DINER / LUNCH groot in kapitalen -------------------- */
.section-rule { border-top: 1px solid rgba(135,150,248,0.35); border-bottom: 1px solid rgba(135,150,248,0.35); padding-block: 64px; }
.hours-title { text-transform: uppercase; font-size: clamp(2.25rem, 5.5vw, 3.25rem); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 12px; }
.matroos-hours .matroos-display { font-weight: 300; color: #232d37; }
.matroos-groepen-cta a { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
.matroos-groepen-cta a:hover { color: var(--purple-hover); }

/* In-tekst links in de body duidelijk paars + onderstreept (niet in header/footer/knoppen) */
main p a:not(.wp-block-button__link), main li a:not(.wp-block-button__link) { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s ease; }
main p a:not(.wp-block-button__link):hover, main li a:not(.wp-block-button__link):hover { color: var(--purple-hover); }

/* --- Split: tekst links (een font), foto rechts ------------------------- */
.matroos-split { align-items: center; gap: 64px; }
.matroos-split .split-photo img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; object-position: center; display: block; border-radius: 4px; }
.split-title { font-family: 'GT America Trial', system-ui, sans-serif; font-weight: 300; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 28px; }
.split-text p { font-weight: 300; line-height: 1.55; }

/* Scroll-reveal (fade + omhoog) */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform 1s cubic-bezier(.22,1,.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Menu-pagina: tekst links, illustratie rechts met parallax (start verticaal gecentreerd) */
.menu-split { align-items: flex-start; gap: 64px; }
.menu-split .wp-block-column:not(.menu-photo) { flex: 0 0 52%; max-width: 52%; position: relative; z-index: 2; }
.menu-photo {
	position: fixed; top: 50%; left: 0; right: 0; margin-inline: auto; max-width: 1440px;
	padding-inline: 32px; box-sizing: border-box; transform: translateY(-50%);
	z-index: 1; pointer-events: none; will-change: transform;
}
.menu-photo .wp-block-image { width: 44%; max-width: 600px; margin: 0 0 0 auto; }
.menu-photo img { width: 100%; height: auto; display: block; border-radius: 4px; }
.menu-cat { font-family: 'GT America Trial', system-ui, sans-serif; font-weight: 400; font-size: 24px; margin-top: 36px; margin-bottom: 4px; }
.menu-lines { margin-top: 0 !important; line-height: 1.7; font-weight: 300; }
.menu-lines .note { color: #5c6670; font-size: .82em; }
.menu-daglunch { gap: 32px; margin-top: 24px; }
.menu-daglunch .menu-cat { margin-top: 0; }
/* Cadeaubon: content links uitgelijnd tot ~halve schermbreedte, formulier flush met titel */
/* Cadeaubon: foto rustig naast de tekst, verticaal gecentreerd (geen parallax) */
.cadeaubon-split { align-items: center; }
.cadeaubon-photo { display: flex; align-items: center; justify-content: center; }
.cadeaubon-photo .wp-block-image { width: 100%; max-width: 440px; margin: 0; }
.cadeaubon-photo img { width: 100%; height: auto; display: block; border-radius: 4px; }
/* Juridische pagina's (privacy): prettige leesbreedte */
/* 404: hero van ~80vh met DMEHM-beeldmerk als achtergrond */
.matroos-404 { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.matroos-404::before {
	content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(620px, 82vw); aspect-ratio: 1 / 1;
	background: url(/wp-content/uploads/2026/03/de-matroos-en-het-meisje-logo-blauw.webp) center/contain no-repeat;
	opacity: 0.10; z-index: 0; pointer-events: none;
}
.matroos-404-inner { position: relative; z-index: 1; }
.matroos-404-inner h1 { font-family: 'GT America Trial', system-ui, sans-serif; font-weight: 300; font-size: clamp(2.8rem, 7.5vw, 5rem); line-height: 1.03; letter-spacing: -0.01em; margin-bottom: 22px; }
.matroos-404-inner p { font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.4; }
.matroos-404-inner .wp-block-buttons { display: flex; justify-content: center; margin-top: 34px; }

.legal-page { max-width: 760px; }
.legal-page .menu-cat { margin-top: 40px; }
.legal-page p { line-height: 1.6; }

/* --- In de buurt: tekst links, meescrollende foto rechts ---------------- */
.legal-page.buurt-page { max-width: none; }
/* Zelfde opzet als de cadeaubon-pagina: 52/48-kolommen in de volle wrap,
   foto gecentreerd in de rechterkolom zodat hij even ver naar rechts staat. */
.buurt-layout { display: grid; grid-template-columns: 52fr 48fr; gap: 64px; align-items: stretch; }
/* Externe links naar bezienswaardigheden: paars + vet, geen onderstreping */
.buurt-main .ext-link { text-decoration: none; font-weight: 600; color: var(--purple); }
.buurt-main .ext-link:hover { text-decoration: none; color: var(--purple-hover); }
.buurt-main { min-width: 0; }
.buurt-main .faq-heading { margin-top: 64px; }
.buurt-aside { position: relative; }
/* Begint lager in de kolom (net als cadeaubon) en klikt pas vast wanneer de
   foto precies verticaal in het midden van het scherm staat. */
.buurt-aside-inner { position: sticky; top: calc((100vh - 580px) / 2 + 30px); margin-top: 210px; display: flex; justify-content: center; }
.buurt-aside-inner img { display: block; width: 100%; max-width: 440px; height: 580px; max-height: 78vh; object-fit: cover; border-radius: 4px; }
@media (max-width: 900px) {
	.legal-page.buurt-page { max-width: 760px; }
	.buurt-layout { display: block; }
	.buurt-aside { display: none; }
}

/* --- FAQ-accordeon ----------------------------------------------------- */
.faq { margin-top: 24px; border-top: 1px solid rgba(51,64,74,0.14); }
.faq-item { border-bottom: 1px solid rgba(51,64,74,0.14); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 2px; font-family: 'GT America Trial', system-ui, sans-serif; font-size: 20px; font-weight: 400; line-height: 1.35; color: var(--grey); -webkit-tap-highlight-color: transparent; }
.faq-q:hover { color: var(--purple); }
.faq-ico { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; top: 50%; left: 50%; background: var(--purple); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.faq-ico::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq-ico::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.faq-q[aria-expanded="true"] .faq-ico::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.faq-a > p { margin: 0 0 20px; line-height: 1.6; max-width: 62ch; }
.faq-item.is-open .faq-a { max-height: 480px; }

.cadeaubon-form { margin-top: 28px; }
.cadeaubon-form .mgc { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }

.sister-logos { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 20px; align-items: center; }
.sister-logos .sister-logo { display: inline-flex; margin: 0; }
.sister-logos .sister-logo img { height: 42px; width: auto; display: block; transition: opacity .2s ease; }
.sister-logos .sister-logo[href*="eetcafetmeisje"] img { height: 64px; }
.sister-logos .sister-logo:hover img { opacity: 0.6; }

/* --- Social-icons in de footer (huisstijl-paars) ------------------------ */
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.matroos-footer .footer-socials a { display: inline-flex; color: var(--purple); transition: color .2s ease, transform .2s ease; }
.matroos-footer .footer-socials a:hover { color: var(--purple-hover); transform: translateY(-2px); }
.matroos-footer .footer-socials a::after { display: none; }
.footer-socials svg { width: 40px; height: 40px; display: block; border-radius: 8px; }

/* --- Volle-breedte beeldband boven de footer (per pagina anders) -------- */
.matroos-footer-outer { margin-top: 0; }
.matroos-prefooter-image { margin: 0; width: 100%; }
.matroos-prefooter-rule .matroos-wrap { border-top: 1px solid rgba(135,150,248,0.35); }
.matroos-prefooter-image img { width: 100%; height: clamp(440px, 66vh, 820px); object-fit: cover; object-position: center; display: block; }

/* --- Foto-carrousel (gelijke hoogte, landscape + portret naast elkaar) --- */
.matroos-carousel { position: relative; margin-top: 64px; }
.mc-track { display: flex; gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.mc-track::-webkit-scrollbar { display: none; }
.mc-slide { flex: 0 0 auto; margin: 0; height: clamp(300px, 42vw, 460px); }
.mc-slide img { height: 100%; width: auto; display: block; border-radius: 4px; }
.mc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; border: none; background: transparent; color: var(--purple); font-size: 54px; line-height: 1; cursor: pointer; padding: 0 4px; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 10px rgba(51,64,74,0.5); transition: color .2s ease; -webkit-tap-highlight-color: transparent; }
.mc-arrow:hover { color: var(--purple-hover); }
.mc-prev { left: 4px; }
.mc-next { right: 4px; }
@media screen and (max-width: 781px) {
	.mc-arrow { font-size: 42px; }
	.mc-slide { height: clamp(260px, 64vw, 380px); }
}

/* --- Footer -------------------------------------------------------------- */
.matroos-footer { max-width: 1440px; margin-inline: auto; padding: 64px 32px; box-sizing: border-box; }
.matroos-footer .footer-top { align-items: flex-start; }
.matroos-footer .footer-top p { font-size: 48px; line-height: 1em; font-weight: 100; font-family: 'GT America Trial', system-ui, sans-serif; }
.matroos-footer .footer-top .footer-address p { line-height: 1.3em; }
.matroos-footer .footer-links p { line-height: 1.5em; }
.matroos-footer .footer-label { font-size: 14px !important; opacity: .9; }
.matroos-footer .footer-bottom p { font-size: 16px; }
.matroos-footer a { color: var(--grey); text-decoration: none; position: relative; }
.matroos-footer a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--grey); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.matroos-footer a:hover::after { transform: scaleX(1); transform-origin: left; }
.matroos-footer .footer-map a::after { display: none; }
.matroos-footer .footer-map a:hover { color: var(--purple-hover); }

/* ===== TABLET + MOBIEL (<=1024): 1 pill met logo + hamburger + dropdown == */
@media screen and (max-width: 1024px) {
	.matroos-header { padding: 16px; }
	.matroos-header-inner {
		grid-template-columns: 1fr auto; position: relative;
		background: var(--offwhite); border: 1px solid rgba(135,150,248,0.4); border-radius: 40px;
		height: 62px; padding: 0 12px 0 22px;
	}
	.mh-logo { border: none; background: transparent; height: auto; padding: 0; justify-self: start; }
	.mh-nav, .mh-actions { display: none; }

	/* Mobiele taalswitcher onderin de dropdown: NL/EN/FR als pillen */
	.mh-lang-mobile { display: flex; justify-content: center; margin-top: 22px; }
	.mh-lang-mobile .mh-lang-toggle { display: none; }
	.mh-lang-mobile .mh-lang-menu { display: flex; position: static; box-shadow: none; border: none; padding: 0; margin: 0; gap: 10px; min-width: 0; width: auto; }
	.mh-lang-mobile .mh-lang-menu a { font-size: 18px; padding: 8px 18px; border: 1px solid rgba(135,150,248,0.35); border-radius: 22px; }
	.mh-lang-mobile .mh-lang-menu a.is-current { background: var(--purple); color: #fff; border-color: var(--purple); }

	/* Hamburger, verticaal gecentreerd in de pill */
	.mh-toggle { display: inline-block; justify-self: end; align-self: center; position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
	.mh-bars { position: absolute; top: 50%; left: 9px; right: 9px; height: 2px; margin-top: -1px; background: var(--purple); border-radius: 2px; transition: background .15s ease; }
	.mh-bars::before, .mh-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: var(--purple); border-radius: 2px; transition: transform .3s ease, top .3s ease; }
	.mh-bars::before { top: -7px; }
	.mh-bars::after { top: 7px; }
	.matroos-header.is-open .mh-bars { background: transparent; }
	.matroos-header.is-open .mh-bars::before { top: 0; transform: rotate(45deg); }
	.matroos-header.is-open .mh-bars::after { top: 0; transform: rotate(-45deg); }

	/* Dropdown-paneel over de pagina, wit met blauwe rand */
	.mh-dropdown { display: block; position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
		background: var(--offwhite); border: 1px solid rgba(135,150,248,0.4); border-radius: 24px;
		box-shadow: 0 20px 50px rgba(51,64,74,0.14); padding: 26px 24px 30px; z-index: 998; }
	.mh-dropdown[hidden] { display: none; }
	.mh-dropdown-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
	.mh-dropdown-menu a { color: var(--grey); font-family: 'GT America Trial', system-ui, sans-serif; font-size: 24px; font-weight: 300; text-decoration: none; }
	.mh-dropdown-menu a:not(.mh-dropdown-reserve) { position: relative; }
	.mh-dropdown-menu a:not(.mh-dropdown-reserve)::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 100%; background: var(--grey); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
	.mh-dropdown-menu a:not(.mh-dropdown-reserve):hover::after { transform: scaleX(1); transform-origin: left; }
	.mh-dropdown-menu .mh-dropdown-reserve { background: var(--purple); color: #fff; border: none; cursor: pointer; border-radius: 32px; padding: 12px 34px; margin-top: 6px; font-family: 'GT America Trial', system-ui, sans-serif; font-size: 24px; font-weight: 300; }
}

/* ===== Content-tweaks voor telefoon (<=878) ============================= */
@media screen and (max-width: 878px) {
	body { font-size: 20px; }
	.matroos-split { gap: 32px; }
	.menu-split { gap: 24px; }
	.matroos-intro { padding-top: 40px !important; padding-bottom: 40px !important; }
	.matroos-footer .footer-top p { font-size: 24px; }
	.matroos-prefooter-image img { height: clamp(300px, 50vh, 480px); }
	.matroos-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
	.matroos-footer .footer-legal { display: flex; flex-direction: column; gap: 6px; }
	.matroos-footer .footer-legal .sep { display: none; }
}

/* ===== Menu op mobiel: illustratie gecentreerd achter de tekst ============ */
@media screen and (max-width: 781px) {
	.menu-split .wp-block-column:not(.menu-photo) { flex: none; max-width: none; position: relative; z-index: 2; }
	.menu-photo {
		left: 50%; right: auto; margin: 0; max-width: 380px; width: 76%; padding: 0;
		justify-content: initial; display: block; transform: translate(-50%, -50%);
	}
	.menu-photo .wp-block-image { width: 100%; max-width: none; }
	.menu-photo img { width: 100%; opacity: 0.6; border-radius: 0; }
}
