/*
Theme Name: Arztpraxis Niendorf
Theme URI: https://arzt.dezignza.co.za
Author: Dezignza
Author URI: https://dezignza.co.za
Description: Custom theme for Arztpraxis Niendorf. German and English, editable services, team, opening hours and parking map.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: arztpraxis
*/

/* ---------- Fonts (self-hosted, no Google requests) ---------- */
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 1000;
	src: url("assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-display: swap;
	font-weight: 100 1000;
	src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
	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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-display: swap;
	font-weight: 300 700;
	src: url("assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-display: swap;
	font-weight: 300 700;
	src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
	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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--brand-900: #1a3a00;
	--brand-800: #1e3f01;
	--brand-700: #2a5c1d;
	--brand-600: #3d7a2a;
	--brand-500: #4e8a35;
	--brand-400: #6ba84b;
	--brand-300: #8ec46e;
	--brand-200: #b5d99b;
	--brand-100: #daf0c8;
	--brand-50: #f0f9e8;

	--surface: #fff;
	--surface-2: #fafbfc;
	--surface-3: #f3f5f7;
	--border: #e8ebed;
	--border-subtle: #f0f1f3;
	--text: #1a1d21;
	--text-2: #4f5a68; /* darker than the React site's #5F6B7A for AA on grey surfaces */
	--text-3: #66727f;

	--parking-fill: #22c55e;
	--parking-line: #15803d;

	--font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 80rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section: clamp(3.5rem, 8vw, 5.5rem);
	--header-h: 4rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--surface);
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--brand-100); color: var(--brand-900); }
:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-xs { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--brand-800); color: #fff; padding: 0.75rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--border-subtle); }
.bg-2 { background: var(--surface-2); }

/* ---------- Type helpers ---------- */
.rule { width: 60px; height: 2px; background: var(--brand-500); margin-bottom: 1rem; }
.eyebrow {
	font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-600);
}
.heading { max-width: 48rem; }
.heading .eyebrow { margin-bottom: 0.75rem; }
.heading h1, .heading h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.heading .lead { margin-top: 1rem; font-size: 1.125rem; line-height: 1.7; color: var(--text-2); }
.heading--center { margin-inline: auto; text-align: center; }
.heading--center .rule { margin-inline: auto; }
.label {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-700);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 2.75rem; padding: 0.625rem 1.5rem;
	font-family: var(--font-display); font-size: 0.875rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: 0.05em;
	border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn--secondary { border-color: var(--brand-600); color: var(--brand-700); background: transparent; }
.btn--secondary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--brand-900); }
.btn--light:hover { background: rgba(255,255,255,.9); color: var(--brand-900); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.08); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 600; color: var(--brand-700); }
.link-arrow:hover { color: var(--brand-800); }
.link-arrow .icon-sm { transition: transform .2s; }
.link-arrow:hover .icon-sm { transform: translateX(3px); }

/* ---------- Top bar + header ---------- */
.topbar { display: none; background: var(--surface-3); color: var(--text-2); font-size: 0.8125rem; }
@media (min-width: 768px) { .topbar { display: block; } }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.375rem; }
.topbar__group { display: flex; gap: 1.25rem; align-items: center; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 0.375rem; }

.site-header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border-subtle); transition: box-shadow .2s;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }
.site-header.is-scrolled { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 5rem; transition: height .3s ease-out; }
@media (min-width: 1024px) { .site-header__inner { height: 7.5rem; } }
.site-header.is-scrolled .site-header__inner { height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img { width: 3rem; height: 3rem; transition: width .3s, height .3s; }
@media (min-width: 1024px) { .brand img { width: 4.5rem; height: 4.5rem; } }
.site-header.is-scrolled .brand img { width: 2.25rem; height: 2.25rem; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; transition: font-size .3s; }
@media (min-width: 1024px) { .brand__name { font-size: 1.75rem; } }
.site-header.is-scrolled .brand__name { font-size: 1.125rem; }

.nav { display: none; }
@media (min-width: 1024px) { .nav { display: flex; gap: 0.25rem; } }
.nav a {
	display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem;
	font-size: 0.9375rem; font-weight: 500; color: var(--text-2);
}
.nav a::before { content: ""; width: 6px; height: 6px; background: var(--brand-600); visibility: hidden; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--brand-800); }
.nav a[aria-current="page"]::before { visibility: visible; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-call { display: none; }
@media (min-width: 640px) and (max-width: 1023px) { .header-call { display: inline-flex; } }

.lang { display: inline-flex; border: 1px solid var(--border); }
.lang a {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.25rem;
	font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--text-2);
}
.lang a[aria-current="true"] { background: var(--brand-700); color: #fff; }

.menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.75rem; height: 2.75rem; border: 0; background: transparent;
}
.menu-toggle:hover { background: var(--surface-3); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-nav { border-top: 1px solid var(--border-subtle); padding-block: 0.5rem 1rem; }
.mobile-nav a { display: block; padding: 0.75rem; font-size: 1.0625rem; font-weight: 500; color: var(--text-2); }
.mobile-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }
.mobile-nav__contact { margin-top: 0.75rem; padding: 0.75rem; border-top: 1px solid var(--border-subtle); font-size: 0.9375rem; color: var(--text-2); display: grid; gap: 0.5rem; }
.mobile-nav__contact a { padding: 0; display: inline-flex; gap: 0.5rem; align-items: center; color: var(--brand-700); font-weight: 600; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; min-height: min(40rem, 88vh); overflow: hidden; color: #fff; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 20s ease-in-out infinite alternate; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.03); } }
.hero__shade { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
@media (min-width: 768px) { .hero__shade { background: linear-gradient(to right, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 50%, rgba(0,0,0,.05) 100%); } }
.hero__body { position: relative; flex: 1; display: flex; align-items: center; padding-block: 3rem; }
.hero__content { max-width: 38rem; }
.hero__eyebrow { display: inline-block; border-left: 4px solid var(--brand-400); padding-left: 0.75rem; font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.85); }
.hero h1 { margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.hero__lead { margin-top: 1rem; max-width: 32rem; color: rgba(255,255,255,.9); font-size: 1.0625rem; }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__bar { position: relative; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); border-top: 1px solid rgba(255,255,255,.12); padding-block: 0.875rem; font-size: 0.9375rem; }
.hero__bar ul { display: grid; gap: 0.625rem; }
.hero__bar li { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,.92); }
.hero__bar .icon-sm { color: var(--brand-300); }
@media (min-width: 768px) {
	.hero__bar ul { display: flex; justify-content: center; }
	.hero__bar li { padding-inline: 1.5rem; }
	.hero__bar li + li { border-left: 1px solid rgba(255,255,255,.22); }
}

/* ---------- Today's hours strip (new) ---------- */
.today { background: var(--brand-50); border-bottom: 1px solid var(--brand-100); font-size: 0.9375rem; }
.today__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 0.875rem; }
.today strong { color: var(--brand-800); }
.today a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.mt-lg { margin-top: 2.5rem; }
.mt-md { margin-top: 1.5rem; }

.feature { border: 1px solid var(--border); border-top: 3px solid var(--brand-400); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-top-color: var(--brand-600); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: var(--surface-3); color: var(--brand-600); }
.feature h3 { font-size: 1.0625rem; font-weight: 600; }
.feature p { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--text-2); }

.kids { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; border: 1px solid var(--border); padding: 2rem; transition: border-color .2s; }
.kids:hover { border-color: var(--brand-400); color: inherit; }
@media (min-width: 768px) { .kids { flex-direction: row; align-items: center; justify-content: space-between; } }
.kids__text { max-width: 40rem; }
.kids h2 { margin-top: 0.5rem; font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; }
.kids p:not(.eyebrow) { margin-top: 0.5rem; color: var(--text-2); }
.kids:hover .btn--secondary { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.svc-list { margin-top: 2.5rem; border-top: 1px solid var(--border); display: grid; }
@media (min-width: 768px) { .svc-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.svc-list li { border-bottom: 1px solid var(--border); }
.svc-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.875rem 0.25rem; font-weight: 500; }
.svc-list a > span { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.svc-list .icon { color: var(--brand-600); width: 1.5rem; height: 1.5rem; }
.svc-list .arrow { color: var(--brand-600); opacity: 0; transition: opacity .2s; }
.svc-list a:hover .arrow, .svc-list a:focus-visible .arrow { opacity: 1; }

.doc-mini { display: flex; gap: 1rem; align-items: center; border: 1px solid var(--border-subtle); border-left: 3px solid transparent; padding: 1rem; transition: border-color .2s; }
.doc-mini:hover { border-left-color: var(--brand-500); color: inherit; }
.doc-mini h3 { font-size: 1rem; font-weight: 600; }
.doc-mini .bar { width: 2rem; height: 3px; background: var(--brand-500); margin-block: 0.375rem; }
.doc-mini p { font-size: 0.875rem; color: var(--brand-700); }
.doc-mini small { display: block; font-size: 0.8125rem; color: var(--text-2); }
.avatar { width: 6rem; height: 6rem; object-fit: cover; flex-shrink: 0; background: var(--brand-50); }
.avatar--initial { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--brand-600); }

.story { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .story { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.story__logo { width: 12rem; height: 12rem; margin-inline: auto; }
@media (min-width: 640px) { .story__logo { width: 16rem; height: 16rem; } }
.story h2 { margin-top: 0.75rem; font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: 700; }
.story p:not(.eyebrow) { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--text-2); }

.cta-band { background: var(--brand-900); color: #fff; padding-block: var(--section); }
.cta-band__inner { display: flex; flex-direction: column; gap: 2rem; align-items: center; text-align: center; }
@media (min-width: 768px) { .cta-band__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; }
.cta-band p { margin-top: 0.5rem; color: rgba(255,255,255,.85); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--border-subtle); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- Services page ---------- */
.search { max-width: 32rem; margin-inline: auto; }
.search__field { position: relative; }
.search__field .icon-sm { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input {
	width: 100%; min-height: 3rem; padding: 0.75rem 3rem 0.75rem 2.75rem;
	font: inherit; font-size: 1rem; color: var(--text);
	border: 1px solid var(--border); background: var(--surface); border-radius: 0;
}
.search input:focus { border-color: var(--brand-500); outline: 2px solid var(--brand-200); outline-offset: 0; }
.search__clear { position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--text-3); }
.search__count { margin-top: 0.75rem; text-align: center; font-size: 0.8125rem; color: var(--text-3); }
.no-results { margin-top: 3rem; text-align: center; color: var(--text-2); }

.svc-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; counter-reset: svc; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.svc { position: relative; border: 1px solid var(--border); padding: 1.5rem; transition: border-color .2s; }
.svc::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--brand-500); opacity: 0; transition: opacity .2s; }
.svc:hover, .svc.is-open { border-color: var(--brand-300); }
.svc:hover::before, .svc.is-open::before { opacity: 1; }
.svc__num { position: absolute; right: 1.5rem; top: 1.25rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; line-height: 1; color: var(--brand-100); }
.svc .icon-box { width: 2.25rem; height: 2.25rem; }
.svc h2 { margin-top: 1rem; padding-right: 3rem; font-size: 1.125rem; font-weight: 600; }
.svc__short { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--text-2); }
.chips { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--surface-3); padding: 0.25rem 0.625rem; font-size: 0.8125rem; color: var(--text-2); }
.chip--brand { background: var(--brand-50); color: var(--brand-800); }
.toggle { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; border: 0; background: none; padding: 0.25rem 0; font-weight: 600; font-size: 0.9375rem; color: var(--brand-700); }
.toggle:hover { color: var(--brand-800); }
.toggle .icon-sm { transition: transform .25s; }
.toggle[aria-expanded="true"] .icon-sm { transform: rotate(180deg); }
.svc__details { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .svc__details { grid-template-columns: repeat(3, 1fr); } }
.svc__details dt { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-700); }
.bullets { margin-top: 0.75rem; display: grid; gap: 0.5rem; font-size: 0.9375rem; color: var(--text-2); }
.bullets li { display: flex; gap: 0.625rem; }
.bullets li::before { content: ""; flex-shrink: 0; width: 4px; height: 4px; margin-top: 0.6rem; background: var(--brand-400); }
.svc__details dd { margin: 0; }

.cta-simple { text-align: center; max-width: 42rem; margin-inline: auto; }
.cta-simple h2 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: 700; }
.cta-simple p { margin-top: 1rem; font-size: 1.125rem; color: var(--text-2); }
.cta-simple .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Team page ---------- */
.doc { border: 1px solid var(--border); transition: border-color .2s; display: flex; flex-direction: column; }
.doc:hover, .doc.is-open { border-color: var(--brand-300); }
.doc__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; background: var(--brand-50); }
.doc__photo--initial { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: var(--brand-300); }
.doc__body { padding: 1.5rem; }
.doc h3 { font-size: 1.125rem; font-weight: 600; }
.doc .bar { width: 2.5rem; height: 2px; background: var(--brand-400); margin-block: 0.75rem; }
.doc__title { font-size: 0.9375rem; color: var(--text-2); }
.doc__spec { font-size: 0.8125rem; color: var(--text-3); }
.doc__contact { margin-top: 1rem; display: grid; gap: 0.375rem; font-size: 0.9375rem; }
.doc__contact a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-2); word-break: break-all; }
.doc__contact a:hover { color: var(--brand-700); }
.doc__more { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-subtle); display: grid; gap: 1rem; font-size: 0.9375rem; color: var(--text-2); }
.doc__more strong { color: var(--text); font-weight: 600; }
.doc__more .minilabel { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-700); }
.timeline { margin-top: 0.5rem; display: grid; gap: 0.5rem; }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 0.75rem; }
.timeline .year { font-weight: 600; color: var(--text); }
.staff { border: 1px solid var(--border); padding: 1.5rem; background: var(--surface); }
.staff .icon-box { width: 3rem; height: 3rem; color: var(--text-3); }
.staff h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; }
.staff p { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--text-2); }
.staff small { display: block; margin-top: 0.125rem; font-size: 0.8125rem; color: var(--text-3); }

/* ---------- Contact page ---------- */
.contact-quick { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .contact-quick { grid-template-columns: repeat(3, 1fr); } }
.quick { display: flex; gap: 0.875rem; align-items: flex-start; border: 1px solid var(--border); border-left: 3px solid var(--brand-500); padding: 1.25rem; }
.quick .icon { color: var(--brand-600); margin-top: 0.125rem; }
.quick strong { display: block; font-family: var(--font-display); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-700); }
.quick a, .quick span { font-size: 1.0625rem; font-weight: 600; }
.quick small { display: block; font-size: 0.875rem; color: var(--text-2); font-weight: 400; }

.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-block + .contact-block { margin-top: 2rem; }
.contact-block p { margin-top: 0.75rem; }
.hours { margin-top: 0.75rem; display: grid; gap: 0.375rem; font-size: 0.9375rem; }
.hours li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 0.375rem 0.5rem; color: var(--text-2); }
.hours li span:first-child { font-weight: 600; color: var(--text); }
.hours li.is-today { background: var(--brand-50); color: var(--brand-900); }
.hours li.is-today span:first-child { color: var(--brand-800); }
.note { margin-top: 0.75rem; font-size: 0.9375rem; font-style: italic; color: var(--text-2); }
.callout { border: 1px solid var(--border); border-left: 3px solid var(--brand-500); background: var(--surface-2); padding: 1.5rem; }
.callout + .callout { margin-top: 1.25rem; }
.callout h3 { display: flex; gap: 0.5rem; align-items: flex-start; font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.callout h3 .icon-sm { color: var(--brand-700); margin-top: 0.2rem; }
.callout p { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--text-2); }
.callout--alert { border-left-color: #b42318; }
.callout--alert h3 .icon-sm { color: #b42318; }

/* ---------- Map ---------- */
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; }
.map-head p { margin-top: 0.5rem; color: var(--text-2); max-width: 40rem; }
.map { position: relative; margin-top: 1.25rem; border: 1px solid var(--border); aspect-ratio: 4 / 5; background: var(--surface-3); overflow: hidden; }
@media (min-width: 640px) { .map { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) { .map { aspect-ratio: 16 / 7; } }
.map__canvas { position: absolute; inset: 0; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.map__consent p { max-width: 30rem; font-size: 0.9375rem; color: var(--text-2); }
.map__consent .remember { display: inline-flex; gap: 0.5rem; align-items: center; font-size: 0.875rem; color: var(--text-2); }
.map__consent .remember input { width: 1.125rem; height: 1.125rem; accent-color: var(--brand-600); }
.map__legend { position: absolute; right: 0.75rem; bottom: 1.75rem; z-index: 500; display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: #fff; border: 1px solid var(--border); font-size: 0.8125rem; color: var(--text-2); box-shadow: 0 1px 3px rgba(0,0,0,.08); max-width: calc(100% - 1.5rem); }
.swatch { display: inline-block; width: 1.25rem; height: 0.75rem; background: rgba(34,197,94,.55); border: 2px solid var(--parking-line); flex-shrink: 0; }
.p-pin { display: flex; align-items: center; gap: 2px; background: var(--parking-line); color: #fff; font: 700 12px/1 var(--font-sans); padding: 4px 6px; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.35); white-space: nowrap; }
.leaflet-marker-icon .p-pin { transform: translate(-50%, -50%); }
.p-pin b { font-size: 13px; }
.is-compact .leaflet-marker-icon .p-pin span { display: none; }
.p-pin span { font-weight: 600; opacity: .95; }
.parking-list { margin-top: 1.25rem; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.parking-list li { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border: 1px solid var(--border); font-size: 0.9375rem; }
.parking-list button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 0.625rem; width: 100%; }
.parking-list button:focus-visible { outline: 2px solid var(--brand-600); outline-offset: 4px; }
.parking-list .p-pin { flex-shrink: 0; }
.parking-list .muted { color: var(--text-2); }
.map-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-tooltip { font-weight: 600; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 48rem; margin-inline: auto; }
.prose h1 { font-size: clamp(1.875rem, 3.5vw, 2.25rem); font-weight: 700; }
.prose__body { margin-top: 2.5rem; display: grid; gap: 2rem; color: var(--text-2); }
.prose__body h2 { font-family: var(--font-display); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand-700); }
.prose__body p, .prose__body ul { margin-top: 0.75rem; white-space: pre-line; }
.prose__body ul { white-space: normal; list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.prose__body a { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }
.wp-content > * + * { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-3); border-top: 3px solid var(--brand-500); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-weight: 600; }
.footer-brand img { width: 2.25rem; height: 2.25rem; }
.site-footer address { margin-top: 1rem; font-style: normal; color: var(--text-2); }
.site-footer h2 { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
.site-footer ul { margin-top: 1rem; display: grid; gap: 0.5rem; color: var(--text-2); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--brand-700); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 1.5rem; font-size: 0.8125rem; color: var(--text-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* ---------- Mobile call bar (new) ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 8px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom, 0px); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; }
.callbar a:first-child { background: var(--brand-700); color: #fff; }
.callbar a:last-child { color: var(--brand-800); }
body.has-callbar { padding-bottom: calc(3.25rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { .callbar { display: none; } body.has-callbar { padding-bottom: 0; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 6rem; }
.notfound h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.notfound p { margin-top: 1rem; color: var(--text-2); }
.notfound .btn { margin-top: 2rem; }

/* ---------- Phone polish ---------- */
@media (max-width: 639px) {
	:root { --section: 3rem; }
	.site-header__inner { height: 4.25rem; gap: 0.5rem; }
	.brand { gap: 0.5rem; flex: 1 1 auto; }
	.brand img, .site-header.is-scrolled .brand img { width: 2.5rem; height: 2.5rem; }
	.brand { min-width: 0; }
	.brand__name, .site-header.is-scrolled .brand__name { font-size: 1.0625rem; line-height: 1.15; white-space: normal; }
	.header-actions { gap: 0.25rem; flex-shrink: 0; }
	.lang a { min-width: 2.25rem; min-height: 2.25rem; font-size: 0.75rem; }

	.hero { min-height: 0; }
	.hero__body { padding-block: 2.25rem 2rem; }
	.hero__eyebrow { font-size: 0.6875rem; letter-spacing: 0.1em; }
	.hero h1 { margin-top: 0.75rem; font-size: 2rem; }
	.hero__lead { font-size: 0.9375rem; line-height: 1.55; }
	.hero__actions { margin-top: 1.25rem; flex-direction: column; }
	.hero__actions .btn { width: 100%; }
	.hero__bar { padding-block: 0.75rem; font-size: 0.875rem; }
	.hero__bar ul { gap: 0.375rem; }

	.today { font-size: 0.875rem; }
	.today__inner { gap: 0.375rem; padding-block: 0.75rem; }

	.heading h2, .heading h1 { font-size: 1.625rem; }
	.heading .lead { font-size: 1rem; margin-top: 0.75rem; }
	.mt-lg { margin-top: 1.75rem; }

	.feature { flex-direction: row; gap: 0.875rem; padding: 1rem; }
	.feature .icon-box { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
	.feature h3 { font-size: 1rem; }
	.feature p { margin-top: 0.25rem; font-size: 0.875rem; }
	.grid { gap: 0.75rem; }

	.kids { padding: 1.25rem; gap: 1rem; }
	.kids p:not(.eyebrow) { font-size: 0.9375rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
	.kids .btn { width: 100%; }

	.svc-list { margin-top: 1.5rem; }
	.svc-list li:nth-child(n + 7) { display: none; }
	.svc-list a { padding-block: 0.75rem; font-size: 0.9375rem; }

	.doc-mini { padding: 0.75rem; }
	.avatar { width: 4.5rem; height: 4.5rem; }
	.avatar--initial { font-size: 1.5rem; }

	.story { gap: 1.5rem; }
	.story__logo { width: 7rem; height: 7rem; margin-inline: 0; }
	.story h2 { font-size: 1.625rem; }
	.story p:not(.eyebrow) { font-size: 1rem; margin-top: 0.75rem; }

	.cta-band__actions { width: 100%; flex-direction: column; }
	.cta-band__actions .btn { width: 100%; }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; padding-block: 2.25rem; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.footer-grid > :nth-child(3) { grid-column: 1 / -1; order: 1; }
	.site-footer { font-size: 0.875rem; }
	.site-footer ul { margin-top: 0.75rem; gap: 0.375rem; }
}

[hidden] { display: none !important; }
