/* Marlène Medisch Pedicure & Huidverbetering */

:root {
	/* Soft taupe instead of black (wish of Marlène) */
	--taupe: #7d6f65;
	--taupe-dark: #5c514a;
	--taupe-deep: #4a413c;
	--black: #2f2925;
	--ink: #2a2424;
	--muted: #6b6262;
	--accent: #7a3737;
	--accent-dark: #5e2929;
	--accent-soft: #f4ecea;
	--silver: #c9c9c9;
	--bg: #faf8f6;
	--card: #ffffff;
	--line: #e7e1de;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
	--serif: Georgia, "Times New Roman", serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 17px/1.65 var(--sans);
}

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

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 3px solid #d9a3a3;
	outline-offset: 2px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: normal; line-height: 1.25; color: var(--black); }

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

.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* Buttons */
.button {
	display: inline-block;
	padding: 11px 20px;
	border-radius: 999px;
	border: 2px solid var(--accent);
	background: var(--accent);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--accent); color: #fff; }
.button-light { background: #fff; border-color: #fff; color: var(--black); }
.button-light:hover { background: var(--silver); border-color: var(--silver); color: var(--black); }
.button-outline-light { background: transparent; border-color: #fff; color: #fff; }
.button-outline-light:hover { background: #fff; color: var(--black); }

/* Header */
.site-header { background: var(--taupe); color: #fff; position: relative; z-index: 20; }
.header-top { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: block; flex: 0 1 300px; }
.logo img { display: block; width: 100%; max-width: 300px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { color: #fff; text-decoration: none; font-size: 15px; white-space: nowrap; }
.header-phone:hover { color: #fff; text-decoration: underline; }

.menu-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 1px solid rgba(255, 255, 255, .45);
	color: #fff;
	border-radius: 8px;
	padding: 8px 12px;
	font: inherit;
	font-size: 15px;
	cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
	display: inline-block; width: 18px; height: 2px; background: #fff; position: relative; vertical-align: middle;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

.main-nav { border-top: 1px solid rgba(255, 255, 255, .18); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
/* Same column as the logo; the 15px link padding is taken off the container padding so the text lines up */
.main-nav > ul.container { display: flex; flex-wrap: wrap; margin: 0 auto; padding: 0 5px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
	display: block;
	padding: 13px 15px;
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	border-bottom: 3px solid transparent;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.active > a, .main-nav > ul > li > a[aria-current] { color: #fff; border-bottom-color: #fff; }
.sub-toggle { display: none; }
.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #fff;
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
	padding: 8px 0 !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: 8px 18px; color: var(--ink); text-decoration: none; font-size: 15px; }
.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--accent-soft); color: var(--accent); }

/* Rotating images */
.fader { position: relative; overflow: hidden; }
.fader img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.fader img.is-visible { opacity: 1; }

.banner { height: clamp(110px, 18vw, 210px); background: #ddd; }

/* Home */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--accent); margin: 0 0 8px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin: 0 0 18px; }
.hero-text > p { color: var(--muted); font-size: 18px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-photos { aspect-ratio: 3 / 2; border-radius: 16px; box-shadow: var(--shadow); background: #e9e4e1; width: 100%; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding-top: 20px; padding-bottom: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card h2 { font-size: 24px; margin: 0 0 10px; }
.card h2 a { color: var(--black); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card > p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.card-links { list-style: none; padding: 0; margin: 0 0 16px; font-size: 15px; }
.card-links li { border-top: 1px solid var(--line); }
.card-links a { display: block; padding: 6px 0; text-decoration: none; }
.card-more { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }

.cta { background: var(--taupe-dark); color: #fff; padding: 40px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; font-size: 28px; }
.cta p { margin: 0; color: #f1ece8; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sub pages */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 28px; padding-bottom: 64px; }
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin: 0 8px; color: var(--silver); }
.breadcrumbs a { color: var(--muted); }

.prose { max-width: 72ch; overflow-wrap: anywhere; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose h1 { font-size: clamp(30px, 3.6vw, 40px); margin: 0 0 20px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: 8px; }
.prose a[target="_blank"]::after { content: " ↗"; font-size: .8em; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0; }
.photo-pair img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-credit { font-size: 13px; color: var(--muted); margin-top: -14px !important; }
.content-image { margin: 24px 0; }
.content-image img { display: block; }

.page-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.aside-card h2 { font-size: 21px; margin: 0 0 10px; }
.aside-card h2 a { color: var(--black); text-decoration: none; }
.aside-card p:last-child { margin-bottom: 0; }
.section-nav ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.section-nav li { border-top: 1px solid var(--line); }
.section-nav ul ul { padding-left: 14px; }
.section-nav ul ul li { border-top: 0; }
.section-nav a { display: block; padding: 7px 0; color: var(--ink); text-decoration: none; }
.section-nav a:hover { color: var(--accent); }
.section-nav a[aria-current] { color: var(--accent); font-weight: 600; }
.aside-cta { background: var(--accent-soft); border-color: #ead9d5; }
.aside-extra img { display: block; border-radius: 6px; }

/* Form */
.form-card { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 72ch; scroll-margin-top: 20px; }
.form-card > h2 { margin: 0 0 18px; font-size: 26px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-row { display: flex; flex-direction: column; }
.form-row-wide, .form-note, .form .button, .form-row:has(fieldset) { grid-column: 1 / -1; }
.form label, .form legend { font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form .choice { font-weight: normal; display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea {
	font: inherit;
	font-size: 16px;
	padding: 10px 12px;
	border: 1px solid #cfc6c3;
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	width: 100%;
}
.form textarea { resize: vertical; }
.form .has-error input, .form .has-error select, .form .has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 14px; margin: 5px 0 0; }
.req { color: var(--accent); }
.form-note { font-size: 14px; color: var(--muted); margin: 0; }
.form .button { justify-self: start; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; }
.notice h2 { margin: 0 0 6px; font-size: 22px; }
.notice p { margin: 0; }
.notice-success { background: #e8f3ea; border: 1px solid #b9dcbf; }
.notice-error { background: #fbeaea; border: 1px solid #efc2c2; }

/* Footer */
.site-footer { background: var(--taupe-deep); color: #ece6e1; font-size: 15px; }
.pin-logo { display: block; border-radius: 6px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 19px; margin: 0 0 12px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 36px; padding-top: 44px; padding-bottom: 32px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.partners a, .partners span { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; padding: 8px; height: 64px; }
.partners img { max-height: 48px; width: auto; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; padding-bottom: 22px; font-size: 14px; color: #d6ccc5; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #ece6e1; }

/* Tablet */
@media (max-width: 980px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	/* minmax(0, ...) so long URLs in the text cannot make the column wider than the screen */
	.page-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > div:last-child { grid-column: 1 / -1; }
	.partners { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile: collapsible menu */
@media (max-width: 860px) {
	.header-actions { display: none; }
	.menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
	.logo { flex-basis: 220px; }
	.main-nav { display: none; }
	.main-nav.is-open { display: block; }
	.main-nav > ul.container { display: block; padding: 0 0 12px; }
	.main-nav > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .18); display: flex; flex-wrap: wrap; }
	.main-nav > ul > li > a { flex: 1; border-bottom: 0; border-left: 3px solid transparent; }
	.main-nav > ul > li.active > a, .main-nav > ul > li > a[aria-current] { border-left-color: var(--accent); }
	.sub-toggle {
		display: block;
		width: 48px;
		background: none;
		border: 0;
		color: #fff;
		cursor: pointer;
	}
	.sub-toggle::before { content: "+"; font-size: 22px; }
	.sub-toggle[aria-expanded="true"]::before { content: "−"; }
	.sub-menu {
		position: static;
		flex-basis: 100%;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-radius: 0;
		background: var(--taupe-dark);
		min-width: 0;
	}
	.has-sub:hover > .sub-menu { display: none; }
	.sub-menu.is-open, .has-sub:hover > .sub-menu.is-open { display: block; }
	.sub-menu a { color: #ddd; padding-left: 30px; }
	.sub-menu a:hover, .sub-menu a[aria-current] { background: var(--taupe-deep); color: #fff; }
	.hero { padding-top: 28px; }
	.hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.hero-photos { order: -1; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.cards { grid-template-columns: 1fr; }
	.form { grid-template-columns: 1fr; }
	.form-card { padding: 20px; }
	.photo-pair { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.partners { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.fader img { transition: none; }
	.sub-menu { transition: none; }
}

@media print {
	.site-header, .banner, .page-aside, .site-footer, .breadcrumbs { display: none; }
	body { background: #fff; }
}

/* Photo captions in the sidebar */
.aside-extra figure { margin: 0 0 14px; }
.aside-extra figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
