﻿/* =============================================================================
   annettehorsman.com - sitewide.css
   Bovenop Bootstrap 5.3.6. Rustig en warm: gebroken wit, donkergroen,
   natuurlijke tinten, serif voor koppen en een leesbare sans-serif.
   Contrast (WCAG AA) gemeten op --ah-bg:
     --ah-text   #23302a  13.4:1
     --ah-muted  #53605a   6.2:1
     --ah-link   #2c5a45   7.3:1
     wit op --ah-green #1f3d30  11.6:1
   ========================================================================== */

:root {
	--ah-bg: #f8f5ef;
	--ah-surface: #fffdf9;
	--ah-sand: #efe8dc;
	--ah-sage: #e3e9e0;
	--ah-green: #1f3d30;
	--ah-green-2: #2c5a45;
	--ah-text: #23302a;
	--ah-muted: #53605a;
	--ah-line: #d8d0c1;
	--ah-link: #2c5a45;
	--ah-accent: #9c2436;
	--ah-on-dark: #f6f2ea;
	--ah-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--ah-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--ah-measure: 68ch;

	--bs-body-bg: var(--ah-bg);
	--bs-body-color: var(--ah-text);
	--bs-body-font-family: var(--ah-sans);
	--bs-link-color-rgb: 44, 90, 69;
	--bs-link-hover-color-rgb: 31, 61, 48;
}

html { scroll-padding-top: 1rem; }

body {
	background: var(--ah-bg);
	color: var(--ah-text);
	font-family: var(--ah-sans);
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-x: hidden;
}

h1, h2, h3, h4, .ah-serif {
	font-family: var(--ah-serif);
	font-weight: 500;
	color: var(--ah-green);
	line-height: 1.25;
	letter-spacing: 0;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 2.5rem; margin-bottom: .75rem; }
h3 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .5rem; }
h2:first-child, h3:first-child { margin-top: 0; }

a { color: var(--ah-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ah-green); text-decoration-thickness: 2px; }

.lead { font-size: 1.2rem; font-weight: 400; color: var(--ah-muted); line-height: 1.6; }

/* Leesbreedte */
.ah-tekst { max-width: var(--ah-measure); }
.ah-tekst p, .ah-tekst ul, .ah-tekst ol { margin-bottom: 1.1rem; }

/* Skiplink en focus (WCAG 2.2) */
.ah-skiplink {
	position: absolute; left: 1rem; top: 1rem; z-index: 2000;
	background: var(--ah-surface); color: var(--ah-green);
	padding: .6rem 1rem; border: 2px solid var(--ah-green); border-radius: .35rem;
}
main:focus { outline: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible {
	outline: 3px solid var(--ah-accent);
	outline-offset: 3px;
	box-shadow: none;
	border-radius: 2px;
}
.ah-header a:focus-visible, .ah-header button:focus-visible, .ah-footer a:focus-visible {
	outline-color: #f2c46d;
}

/* -------------------------------------------------------------------------- */
/* Header en navigatie                                                        */
/* -------------------------------------------------------------------------- */
.ah-header { background: var(--ah-green); }
.ah-header .navbar { padding-top: .75rem; padding-bottom: .75rem; }
.ah-header .navbar-brand img { height: 44px; width: auto; display: block; }
.ah-header .nav-link {
	color: var(--ah-on-dark);
	font-size: 1rem;
	padding: .5rem .85rem !important;
	border-bottom: 2px solid transparent;
}
.ah-header .nav-link:hover { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.ah-header .nav-link.active, .ah-header .nav-link[aria-current="page"] {
	color: #fff;
	border-bottom-color: #f2c46d;
}
.ah-header .navbar-toggler { border-color: rgba(255,255,255,.5); padding: .4rem .6rem; }
.ah-header .dropdown-menu {
	--bs-dropdown-bg: var(--ah-surface);
	--bs-dropdown-link-color: var(--ah-text);
	--bs-dropdown-link-hover-bg: var(--ah-sage);
	--bs-dropdown-link-hover-color: var(--ah-green);
	--bs-dropdown-link-active-bg: var(--ah-sage);
	--bs-dropdown-link-active-color: var(--ah-green);
	--bs-dropdown-border-color: var(--ah-line);
	border-radius: .4rem;
	padding: .4rem 0;
}
.ah-header .dropdown-item { padding: .5rem 1.1rem; }
.ah-header .dropdown-item.active { font-weight: 600; }
.ah-header .dropdown-item:focus-visible { outline: 3px solid var(--ah-accent); outline-offset: -3px; }
@media (max-width: 991.98px) {
	.ah-header .navbar-collapse { padding-top: .75rem; }
	.ah-header .nav-link { border-bottom: 0; border-left: 3px solid transparent; }
	.ah-header .nav-link.active { border-left-color: #f2c46d; }
	.ah-header .dropdown-menu { border: 0; background: rgba(255,255,255,.06); }
	.ah-header .dropdown-item { color: var(--ah-on-dark); }
	.ah-header .dropdown-item:hover, .ah-header .dropdown-item:focus, .ah-header .dropdown-item.active {
		background: rgba(255,255,255,.12); color: #fff;
	}
}

/* -------------------------------------------------------------------------- */
/* Knoppen                                                                    */
/* -------------------------------------------------------------------------- */
.btn-ah {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--ah-green);
	--bs-btn-border-color: var(--ah-green);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--ah-green-2);
	--bs-btn-hover-border-color: var(--ah-green-2);
	--bs-btn-active-bg: var(--ah-green-2);
	--bs-btn-active-color: #fff;
	padding: .7rem 1.4rem;
	border-radius: 2rem;
	font-weight: 500;
}
.btn-ah-outline {
	--bs-btn-color: var(--ah-green);
	--bs-btn-border-color: var(--ah-green);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--ah-green);
	--bs-btn-hover-border-color: var(--ah-green);
	padding: .7rem 1.4rem;
	border-radius: 2rem;
}

/* -------------------------------------------------------------------------- */
/* Secties                                                                    */
/* -------------------------------------------------------------------------- */
.ah-sectie { padding: 4rem 0; }
.ah-sectie-zacht { background: var(--ah-sand); }
.ah-sectie-groen { background: var(--ah-sage); }
.ah-eyebrow {
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ah-muted);
	margin-bottom: .5rem;
}

/* Paginakop subpagina's */
.ah-pagekop { padding: 3.5rem 0 2rem; }
.ah-pagekop h1 { max-width: 22ch; }
.ah-pagekop .lead { max-width: 60ch; margin-bottom: 0; }

/* Homepage-opening */
.ah-opening { padding: 3rem 0 3.5rem; }
.ah-opening h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); max-width: 14ch; }
.ah-opening .lead { max-width: 34rem; }
.ah-opening-beeld {
	width: 100%; height: auto;
	border-radius: .5rem;
	aspect-ratio: 5 / 4; object-fit: cover;
}
.ah-beeldnoot { font-size: .8rem; color: var(--ah-muted); margin-top: .4rem; }

/* Drie dienstlinks */
.ah-dienst {
	display: flex; flex-direction: column; height: 100%;
	padding: 1.4rem 1.5rem;
	background: var(--ah-surface);
	border: 1px solid var(--ah-line);
	border-top: 3px solid var(--ah-green-2);
	border-radius: .4rem;
	text-decoration: none;
	color: var(--ah-text);
	transition: border-color .15s ease, background-color .15s ease;
}
.ah-dienst:hover { background: #fff; border-color: var(--ah-green-2); color: var(--ah-text); }
.ah-dienst-titel {
	font-family: var(--ah-serif); font-size: 1.3rem; color: var(--ah-green);
	margin-bottom: .35rem;
}
.ah-dienst-titel::after { content: " \2192"; }
.ah-dienst-tekst { color: var(--ah-muted); font-size: 1rem; }
.ah-dienst:hover .ah-dienst-titel { text-decoration: underline; text-underline-offset: .18em; }

/* Ervaringen van nabestaanden */
.ah-ervaring {
	margin: 2rem 0;
	padding: 1.5rem 1.75rem;
	background: var(--ah-surface);
	border-left: 4px solid var(--ah-green-2);
	border-radius: 0 .4rem .4rem 0;
	max-width: var(--ah-measure);
}
.ah-ervaring blockquote {
	font-family: var(--ah-serif);
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--ah-green);
	font-style: italic;
}
.ah-ervaring blockquote p:last-child { margin-bottom: 0; }
.ah-ervaring figcaption { margin-top: .75rem; font-size: .95rem; color: var(--ah-muted); }
.ah-ervaring figcaption::before { content: "\2014\00a0"; }

/* Beelden in de tekst */
.ah-foto { width: 100%; height: auto; border-radius: .4rem; }
.ah-foto-staand { max-width: 380px; }
.ah-portret { border-radius: .5rem; width: 100%; max-width: 408px; height: auto; }
.ah-portret-rond { border-radius: 50%; width: 180px; height: 180px; object-fit: cover; }

/* Rollen (ritueel uitvaartbegeleiding) */
.ah-rollen { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
@media (min-width: 768px) { .ah-rollen { grid-template-columns: repeat(3, 1fr); } }
.ah-rol { background: var(--ah-surface); border: 1px solid var(--ah-line); border-radius: .4rem; padding: 1.25rem; }
.ah-rol h3 { margin-top: 0; font-size: 1.15rem; }
.ah-rol p { margin-bottom: 0; font-size: 1rem; }

/* Tarieven */
.ah-tarief { background: var(--ah-surface); border: 1px solid var(--ah-line); border-radius: .4rem; padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; max-width: var(--ah-measure); }
.ah-tarief h2 { margin-top: 0; font-size: 1.5rem; }
.ah-bedrag { font-family: var(--ah-serif); font-size: 1.6rem; color: var(--ah-green); margin-bottom: .5rem; }
.ah-tarieflijst { list-style: none; padding: 0; margin: 0 0 1rem; }
.ah-tarieflijst li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--ah-line); }
.ah-tarieflijst li span:last-child { white-space: nowrap; font-weight: 600; }
.ah-noot { font-size: .95rem; color: var(--ah-muted); }

/* Gedichten */
.ah-gedicht { font-family: var(--ah-serif); font-size: 1.15rem; line-height: 1.75; margin-bottom: 2.5rem; max-width: 40rem; }
.ah-gedicht h2 { font-size: 1.5rem; }
.ah-gedicht p { margin-bottom: 1.2rem; }

/* Contact */
.ah-contactblok { background: var(--ah-green); color: var(--ah-on-dark); padding: 3.5rem 0; }
.ah-contactblok h2 { color: #fff; margin-top: 0; }
.ah-contactblok a:not(.btn) { color: #fff; }
.ah-contactblok .btn-ah { --bs-btn-bg: #f6f2ea; --bs-btn-color: var(--ah-green); --bs-btn-border-color: #f6f2ea; --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--ah-green); --bs-btn-hover-border-color: #fff; }
.ah-contactblok a:focus-visible { outline-color: #f2c46d; }
.ah-contactregel { margin-bottom: .5rem; font-size: 1.1rem; }
.ah-contactlabel { display: inline-block; min-width: 5.5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ah-gegevens dt { font-weight: 600; color: var(--ah-green); }
.ah-gegevens dd { margin-bottom: .6rem; }

/* Privacy */
.ah-juridisch ol > li { margin-bottom: 1.25rem; }
.ah-juridisch ol > li > strong:first-child { display: block; font-family: var(--ah-serif); font-weight: 500; font-size: 1.2rem; color: var(--ah-green); margin-bottom: .35rem; }

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */
.ah-footer { background: #17302a; color: var(--ah-on-dark); font-size: 1rem; }
.ah-footer a { color: #fff; }
.ah-footer img { height: 44px; width: auto; }
.ah-footer-kop { font-family: var(--ah-sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #cfd8d2; margin: 0 0 .75rem; }
.ah-footer li { margin-bottom: .3rem; }
.ah-footer-legal { border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; color: #cfd8d2; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.ah-header .navbar-toggler, .ah-header .navbar-collapse, .ah-contactblok .btn, .ah-skiplink { display: none !important; }
	.ah-header, .ah-footer, .ah-contactblok { background: none !important; color: #000 !important; }
}
