/*
Theme Name: Groene Hille
Theme URI: https://optiek-groenehille.nl
Author: Optiek Groene Hille
Description: Maatwerkthema voor Optiek Groene Hille – opticien in Rotterdam. Werkt samen met de plugin "Groene Hille Afspraken".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: groenehille
*/

:root {
	--gh-green: #1f4a3d;
	--gh-green-deep: #14322a;
	--gh-green-soft: #dfe9e3;
	--gh-cream: #f5efe3;
	--gh-paper: #fbf8f2;
	--gh-surface: #fffdf8;
	--gh-brass: #b7864a;
	--gh-ink: #1b2a25;
	--gh-muted: #5f6d67;
	--gh-line: #e3dccd;
	--gh-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--gh-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gh-radius: 20px;
	--gh-wrap: 1180px;
	--gh-shadow: 0 1px 2px rgba(20, 50, 42, .05), 0 12px 40px -12px rgba(20, 50, 42, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--gh-paper);
	color: var(--gh-ink);
	font: 400 17px/1.65 var(--gh-sans);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gh-green); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--gh-serif); font-weight: 400; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; color: var(--gh-ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
em.accent { font-style: italic; color: var(--gh-green); }
.wrap { width: min(100% - 32px, var(--gh-wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font: 600 .78rem/1 var(--gh-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gh-brass);
	margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--gh-muted); max-width: 56ch; }

/* Knoppen */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
	font: 600 .98rem/1 var(--gh-sans); text-decoration: none; cursor: pointer;
	transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gh-green); color: #fff; }
.btn-primary:hover { background: var(--gh-green-deep); }
.btn-ghost { border-color: var(--gh-line); color: var(--gh-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gh-ink); }
.btn-light { background: #fff; color: var(--gh-green-deep); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 248, 242, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--gh-line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gh-ink); margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--gh-serif); font-size: 1.3rem; line-height: 1; }
.brand-name small { display: block; font: 600 .66rem/1 var(--gh-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gh-brass); margin-bottom: 5px; }
.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-nav a { color: var(--gh-ink); text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gh-brass); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--gh-ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.header-phone svg { width: 16px; height: 16px; color: var(--gh-brass); }
.header-cta { padding: 12px 20px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--gh-line); border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--gh-ink); margin: 4px auto; transition: .2s; }

/* Hero */
.hero { padding: 56px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--gh-green); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 28px; border-top: 1px solid var(--gh-line); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts strong { font-family: var(--gh-serif); font-weight: 400; font-size: 1.6rem; }
.hero-facts span { font-size: .88rem; color: var(--gh-muted); }
.hero-visual { position: relative; }
.hero-photo {
	position: relative; border-radius: 220px 220px var(--gh-radius) var(--gh-radius); overflow: hidden;
	aspect-ratio: 4 / 5; background: var(--gh-green-soft); box-shadow: var(--gh-shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gh-green); }
.hero-card {
	position: absolute; left: -44px; bottom: 40px; width: 270px;
	background: var(--gh-surface); border-radius: 18px; padding: 20px 22px; box-shadow: var(--gh-shadow);
}
.hero-card .status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.hero-card .dot { width: 9px; height: 9px; border-radius: 50%; background: #c2c7c4; }
.hero-card .dot.is-open { background: #3c9a6d; box-shadow: 0 0 0 4px rgba(60, 154, 109, .18); }
.hero-card p { margin: 0; font-size: .9rem; color: var(--gh-muted); }
.hero-ring { position: absolute; right: -60px; top: -40px; width: 180px; height: 180px; border: 1px solid var(--gh-brass); border-radius: 50%; opacity: .5; }

/* Secties */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }

/* Over ons */
.about { background: var(--gh-surface); border-block: 1px solid var(--gh-line); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.about-quote { font-family: var(--gh-serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.3; color: var(--gh-green); margin: 0; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.value h3 { font-size: 1.15rem; margin-bottom: 6px; }
.value p { color: var(--gh-muted); font-size: .96rem; margin: 0; }
.value-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gh-green-soft); color: var(--gh-green); margin-bottom: 14px; }
.value-icon svg { width: 22px; height: 22px; }

/* Diensten */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
	position: relative; background: var(--gh-surface); border: 1px solid var(--gh-line); border-radius: var(--gh-radius);
	padding: 32px 26px 28px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--gh-shadow); border-color: transparent; }
.service-num { font: 600 .78rem/1 var(--gh-sans); letter-spacing: .12em; color: var(--gh-brass); margin-bottom: 28px; }
.service-icon { width: 56px; height: 56px; color: var(--gh-green); margin-bottom: 22px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--gh-muted); font-size: .96rem; margin-bottom: 22px; }
.service a { margin-top: auto; font-weight: 600; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.service a span { transition: transform .2s; }
.service:hover a span { transform: translateX(4px); }

/* Werkwijze */
.steps-band { background: var(--gh-green-deep); color: #e8efe9; }
.steps-band h2, .steps-band h3 { color: #fff; }
.steps-band .lead { color: #b6c7bf; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid rgba(255, 255, 255, .14); }
.step { padding: 36px 32px 0 0; counter-increment: s; }
.step + .step { padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .14); }
.step::before { content: "0" counter(s); display: block; font-family: var(--gh-serif); font-size: 2.4rem; color: var(--gh-brass); margin-bottom: 16px; }
.step p { color: #b6c7bf; margin: 0; }

/* Afspraak */
.booking-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.booking-aside { position: sticky; top: 110px; }
.booking-aside .hours-card { margin-top: 32px; background: var(--gh-surface); border: 1px solid var(--gh-line); border-radius: var(--gh-radius); padding: 24px 26px; }
.booking-aside .hours-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.booking-panel { background: var(--gh-surface); border: 1px solid var(--gh-line); border-radius: 28px; padding: 40px; box-shadow: var(--gh-shadow); }

/* Contact */
.contact { background: var(--gh-cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: stretch; }
.contact-list { display: grid; gap: 26px; margin: 36px 0; }
.contact-item { display: flex; gap: 16px; }
.contact-item svg { width: 22px; height: 22px; color: var(--gh-brass); flex: none; margin-top: 3px; }
.contact-item strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gh-muted); font-weight: 600; margin-bottom: 4px; }
.contact-item a, .contact-item span { color: var(--gh-ink); text-decoration: none; font-size: 1.08rem; }
.contact-item a:hover { color: var(--gh-green); }
.map { border-radius: var(--gh-radius); overflow: hidden; min-height: 420px; background: var(--gh-green-soft); box-shadow: var(--gh-shadow); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.7) contrast(1.02); }

/* Footer */
.site-footer { background: var(--gh-green-deep); color: #b6c7bf; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer h4 { font-family: var(--gh-sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #dfe9e3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-mark { color: #fff; }
.site-footer .gha-hours-table th, .site-footer .gha-hours-table td { border-color: rgba(255, 255, 255, .1); padding: 5px 0; color: #dfe9e3; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 28px; font-size: .85rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.social svg { width: 18px; height: 18px; }

/* Gewone pagina's */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--gh-line); }
.page-content { padding: 56px 0 110px; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Mobiele balk */
.mobile-cta { display: none; }

/* Animaties */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsief */
@media (max-width: 1080px) {
	.services-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-phone { display: none; }
}
@media (max-width: 900px) {
	body { font-size: 16px; }
	.section { padding: 76px 0; }
	.nav-toggle { display: block; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed; inset: 78px 0 auto 0; background: var(--gh-paper); border-bottom: 1px solid var(--gh-line);
		padding: 8px 16px 24px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
	}
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--gh-line); font-size: 1.1rem; }
	.main-nav a::after { display: none; }
	.nav-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
	.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
	.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
	.hero { padding: 32px 0 72px; }
	.hero-grid, .about-grid, .booking-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero-visual { max-width: 460px; }
	.hero-card { left: 16px; bottom: 16px; width: auto; right: 16px; }
	.hero-ring { display: none; }
	.steps { grid-template-columns: 1fr; }
	.step, .step + .step { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
	.booking-aside { position: static; }
	.booking-panel { padding: 24px 20px; border-radius: 22px; }
	.mobile-cta {
		display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
		padding: 8px; border-radius: 999px; background: var(--gh-green-deep); box-shadow: var(--gh-shadow);
	}
	.mobile-cta a { flex: 1; justify-content: center; padding: 13px 10px; }
	.mobile-cta .btn-call { color: #fff; }
	body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
	.services-grid, .about-values, .footer-grid { grid-template-columns: 1fr; }
	.hero-facts { gap: 20px; }
}
