/*
Theme Name: Tielt Hostessen
Description: Beknopt thema in de stijl van Stad Tielt voor de afgeschermde hostessensite. Werkt samen met de plugin Stadshostessen planner. Kleuren, logo en contactgegevens stel je in via Weergave → Customizer.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Author: Stad Tielt
Text Domain: tielt-hostessen
*/

/* Layout: witte kopbalk met logo + rode lijn, rode titelband, inhoud in één kolom, donkere voet. */
:root {
	--tielt-rood: #c8102e;        /* overschreven via de Customizer */
	--tielt-rood-donker: #9e0c24;
	--tielt-rood-zacht: #fbe9ec;
	--tielt-inkt: #1f1d1d;
	--tielt-grijs: #6b6464;
	--tielt-lijn: #e6e1df;
	--tielt-achtergrond: #f6f4f3;
	--tielt-wit: #ffffff;
	--tielt-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--tielt-radius: 6px;
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--tielt-achtergrond); color: var(--tielt-inkt); font-family: var(--tielt-font); font-size: 16px; line-height: 1.55 }
img { max-width: 100%; height: auto }
a { color: var(--tielt-rood) }
a:hover { color: var(--tielt-rood-donker) }
:focus-visible { outline: 3px solid var(--tielt-rood); outline-offset: 2px }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px) }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; z-index: 100 }

.wrap { max-width: 980px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)) }

/* kopbalk */
.site-header { background: var(--tielt-wit); border-bottom: 4px solid var(--tielt-rood); position: sticky; top: 0; z-index: 20 }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-top: 8px; padding-bottom: 8px }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tielt-inkt) }
.brand img, .brand .custom-logo { max-height: 48px; width: auto; display: block }
.brand-text { display: flex; flex-direction: column; line-height: 1.15 }
.brand-text b { font-size: 18px; font-weight: 800; letter-spacing: -.01em }
.brand-text span { font-size: 13px; color: var(--tielt-grijs) }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--tielt-rood); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px }
.header-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.header-nav a { text-decoration: none; color: var(--tielt-inkt); font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: var(--tielt-radius) }
.header-nav a:hover { background: var(--tielt-rood-zacht); color: var(--tielt-rood) }
.header-nav .user { color: var(--tielt-grijs); font-weight: 500 }

/* titelband */
.page-band { background: var(--tielt-rood); color: #fff }
.page-band .wrap { padding-top: 28px; padding-bottom: 30px }
.page-band h1 { margin: 0; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; text-wrap: balance }
.page-band p { margin: 6px 0 0; opacity: .9 }

.site-main { padding-top: 24px; padding-bottom: 48px }
.entry-content > *:first-child { margin-top: 0 }
.entry-content h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em }
.entry-content h3 { font-size: 18px; font-weight: 700 }

/* knoppen & formulieren (ook buiten het portaal) */
.button, button, input[type=submit] { font-family: inherit }
.btn { display: inline-block; background: var(--tielt-rood); color: #fff; padding: 10px 18px; border-radius: var(--tielt-radius); text-decoration: none; font-weight: 700 }
.btn:hover { background: var(--tielt-rood-donker); color: #fff }

/* voet */
.site-footer { background: var(--tielt-inkt); color: #e9e5e4; font-size: 14px }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 28px; padding-bottom: 28px }
.site-footer a { color: #fff }
.site-footer b { color: #fff; display: block; margin-bottom: 4px }
.site-footer .footer-bar { border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #b9b2b0 }
.site-footer .footer-bar .wrap { padding-top: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom)) }

/* 404 / leeg */
.notice-card { background: #fff; border: 1px solid var(--tielt-lijn); border-radius: 10px; padding: 24px }

@media (max-width: 600px) {
	.brand-text span { display: none }
	.header-nav .user { display: none }
}
