/* HuisdierStart homepage – alleen geladen op een pagina met [huisdierstart_home]. Alles valt onder .hds-home. */

/* De losse paginatitel van Blocksy (bijv. "Home") alleen op deze pagina verbergen; de hero heeft de H1. */
body.hds-has-home .hero-section,
body.hds-has-home .entry-header {
	display: none;
}

.hds-home {
	--hds-forest: #1F5136;
	--hds-forest-dark: #173F2A;
	--hds-leaf: #4C9A6A;
	--hds-cream: #FAF7F1;
	--hds-ink: #20241F;
	--hds-muted: #4F574F;
	--hds-sage: #E4EEE6;
	--hds-straw: #EDC56B;
	--hds-straw-soft: #F6E7C1;
	--hds-water: #DCEBEA;
	--hds-line: #E3DCCD;
	--hds-white: #FFFFFF;

	display: flex;
	flex-direction: column;
	gap: clamp(56px, 8vw, 104px);
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 clamp(48px, 6vw, 80px);
	color: var(--hds-ink);
	font-size: 1.0625rem;
	line-height: 1.6;
}

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

/* Blocksy geeft koppen en alinea's eigen marges; binnen de homepage regelen we ritme zelf.
   :where() houdt de specificiteit gelijk aan één class, zodat de componentregels hieronder winnen. */
.hds-home :where(h1, h2, h3, p, ul, ol, li) {
	margin: 0;
}

/* Blocksy zet tussen blokken in de inhoud een marge; de homepage begint direct. */
.entry-content > .hds-home {
	margin-block-start: 0;
}

.hds-home section {
	scroll-margin-top: 96px;
}

.hds-home section:focus {
	outline: none;
}

.hds-home-h2 {
	font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.45rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-weight: 700;
	color: var(--hds-forest);
	max-width: 24ch;
}

/* ---------- Knoppen en links ---------- */

.hds-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 30px;
	border-radius: 999px;
	background: var(--hds-forest);
	color: var(--hds-cream) !important;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none !important;
	transition: background-color .15s ease;
}

.hds-home-btn:hover {
	background: var(--hds-forest-dark);
}

.hds-home-link {
	color: var(--hds-forest) !important;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--hds-leaf);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.hds-home-link:hover {
	text-decoration-color: var(--hds-forest);
}

.hds-home a:focus-visible {
	outline: 3px solid var(--hds-forest);
	outline-offset: 3px;
	border-radius: 6px;
}

.hds-home-btn:focus-visible {
	border-radius: 999px;
}

.hds-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- Hero ---------- */

.hds-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding-top: clamp(16px, 4vw, 56px);
}

.hds-hero__eyebrow {
	color: var(--hds-leaf);
	font-weight: 700;
	font-size: 1.05rem;
	margin-bottom: 14px;
}

.hds-hero__title {
	font-size: clamp(2.35rem, 1.35rem + 3.6vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.03em;
	font-weight: 800;
	color: var(--hds-forest);
	max-width: 13ch;
	margin-bottom: 22px;
	text-wrap: balance;
}

.hds-hero__intro {
	font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem);
	line-height: 1.6;
	color: var(--hds-muted);
	max-width: 46ch;
	margin-bottom: 30px;
}

.hds-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
	margin-bottom: 30px;
}

.hds-hero__features {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	color: var(--hds-ink);
	font-weight: 600;
	font-size: .98rem;
}

.hds-hero__features li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.hds-hero__features .hds-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: var(--hds-leaf);
	stroke-width: 4;
}

/* Beeld: boogvormig kader, als een deuropening. */
.hds-hero__visual {
	position: relative;
	padding: 0 0 36px 48px;
}

.hds-hero__visual::before {
	content: "";
	position: absolute;
	top: -18px;
	right: -14px;
	width: 46%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--hds-straw);
}

.hds-hero__arch {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin-left: auto;
	aspect-ratio: 4 / 5;
	border-radius: 999px 999px 28px 28px;
	overflow: hidden;
	background: var(--hds-sage);
}

.hds-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hds-hero__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4%;
	padding: 10% 8% 34% 14%;
	color: var(--hds-forest);
}

.hds-hero__placeholder .hds-icon {
	width: 44%;
	height: auto;
	stroke-width: 1.4;
}

.hds-hero__placeholder .hds-icon--kitten {
	width: 38%;
}

/* Decoratief voorbeeld van de checklist (aria-hidden, niet klikbaar). */
.hds-hero__preview {
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(250px, 62%);
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 18px 18px 20px;
	background: var(--hds-white);
	border-radius: 18px;
	box-shadow: 0 22px 44px -24px rgba(31, 81, 54, .45), 0 0 0 1px rgba(31, 81, 54, .06);
	transform: rotate(-3deg);
	pointer-events: none;
	user-select: none;
	font-size: .9rem;
	line-height: 1.3;
}

.hds-hero__preview-label {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--hds-sage);
	color: var(--hds-forest);
	font-size: .75rem;
	font-weight: 700;
}

.hds-hero__preview-title {
	font-weight: 800;
	color: var(--hds-forest);
	font-size: 1rem;
}

.hds-hero__preview-bar {
	display: block;
	height: 7px;
	border-radius: 999px;
	background: var(--hds-line);
	overflow: hidden;
	margin-bottom: 2px;
}

.hds-hero__preview-bar span {
	display: block;
	width: 66%;
	height: 100%;
	background: var(--hds-leaf);
}

.hds-hero__preview-row {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--hds-ink);
}

.hds-hero__preview-row i {
	position: relative;
	flex: 0 0 18px;
	height: 18px;
	border: 2px solid var(--hds-muted);
	border-radius: 5px;
}

.hds-hero__preview-row.is-done {
	color: var(--hds-muted);
	text-decoration: line-through;
	text-decoration-color: var(--hds-leaf);
}

.hds-hero__preview-row.is-done i {
	background: var(--hds-forest);
	border-color: var(--hds-forest);
}

.hds-hero__preview-row.is-done i::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 0;
	width: 5px;
	height: 10px;
	border: solid var(--hds-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---------- Dierkeuze ---------- */

.hds-choose {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.hds-resume-line {
	align-self: flex-start;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--hds-sage);
	color: var(--hds-ink);
	font-weight: 600;
}

.hds-resume-line[hidden] {
	display: none;
}

.hds-resume-line a {
	color: var(--hds-forest) !important;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 2px;
}

.hds-cards {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
}

.hds-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	background: var(--hds-white);
	border: 1px solid var(--hds-line);
	border-radius: 24px;
	transition: border-color .15s ease, transform .2s ease;
}

.hds-card:hover {
	border-color: var(--hds-leaf);
	transform: translateY(-3px);
}

.hds-card__media {
	aspect-ratio: 4 / 3;
	border-radius: 23px 23px 0 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--hds-sage);
	color: var(--hds-forest);
}

.hds-card--puppy .hds-card__media {
	background: var(--hds-straw-soft);
}

.hds-card--aquarium .hds-card__media {
	background: var(--hds-water);
}

.hds-card__media > .hds-icon {
	width: 34%;
	height: auto;
	stroke-width: 1.5;
}

.hds-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hds-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 22px 24px 26px;
}

.hds-card__title {
	font-size: 1.45rem;
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-weight: 800;
	color: var(--hds-forest);
}

.hds-card__text {
	color: var(--hds-muted);
	flex: 1;
}

.hds-card__link {
	margin-top: 10px;
	color: var(--hds-forest) !important;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--hds-leaf);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* Hele kaart klikbaar via één link (geen geneste links). */
.hds-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 24px;
}

.hds-home .hds-card__link:focus-visible {
	outline: none;
}

.hds-card__link:focus-visible::after {
	outline: 3px solid var(--hds-forest);
	outline-offset: 3px;
}

.hds-card:hover .hds-card__link {
	text-decoration-color: var(--hds-forest);
}

.hds-choose__soon {
	color: var(--hds-muted);
}

/* ---------- Stappen ---------- */

.hds-steps-home {
	display: flex;
	flex-direction: column;
	gap: clamp(32px, 4vw, 48px);
	padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
	border-radius: 32px;
	background: var(--hds-forest);
	color: var(--hds-cream);
}

.hds-steps-home .hds-home-h2 {
	color: var(--hds-cream);
}

.hds-steps-home__list {
	position: relative;
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	counter-reset: hds-step;
}

/* Stippellijn die de stappen verbindt. */
.hds-steps-home__list::before {
	content: "";
	position: absolute;
	top: 40px;
	left: 40px;
	right: calc((100% - 64px) / 3 - 40px); /* eindigt bij het midden van het laatste icoon */
	border-top: 2px dashed rgba(250, 247, 241, .35);
}

.hds-step {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	counter-increment: hds-step;
}

.hds-step__icon {
	position: relative;
	width: 80px;
	height: 80px;
	padding: 18px;
	border-radius: 50%;
	background: var(--hds-forest);
	box-shadow: inset 0 0 0 2px rgba(250, 247, 241, .35);
	color: var(--hds-straw);
}

.hds-step__icon::after {
	content: counter(hds-step);
	position: absolute;
	right: -4px;
	top: -4px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hds-straw);
	color: var(--hds-ink);
	font-weight: 800;
	font-size: .95rem;
	line-height: 28px;
	text-align: center;
}

.hds-step__icon .hds-icon {
	stroke-width: 2.2;
}

.hds-step__text {
	font-size: 1.2rem;
	line-height: 1.35;
	font-weight: 700;
	max-width: 18ch;
}

/* ---------- Gidsen ---------- */

.hds-guides {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hds-guides__list {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 clamp(20px, 3vw, 40px);
}

.hds-guide {
	position: relative;
	margin: 0;
	padding: 22px 0 6px;
	border-top: 3px solid var(--hds-forest);
}

.hds-guide__link {
	display: block;
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 800;
	color: var(--hds-forest) !important;
	text-decoration: none;
	margin-bottom: 8px;
}

.hds-guide__link:hover {
	text-decoration: underline;
	text-decoration-color: var(--hds-leaf);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.hds-guide__text {
	color: var(--hds-muted);
}

/* ---------- Over HuisdierStart ---------- */

.hds-about {
	display: grid;
	grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
	gap: 24px clamp(32px, 5vw, 72px);
	padding-top: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--hds-line);
}

.hds-about__text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 62ch;
	font-size: 1.08rem;
}

.hds-about__note {
	padding-left: 16px;
	border-left: 3px solid var(--hds-leaf);
	color: var(--hds-muted);
	font-size: .98rem;
}

.hds-about__note a {
	color: var(--hds-forest) !important;
	font-weight: 700;
	text-underline-offset: 3px;
}

/* ---------- Tablet ---------- */

@media (max-width: 959px) {
	.hds-hero {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	}

	.hds-hero__visual {
		padding-left: 24px;
	}

	.hds-guides__list {
		grid-template-columns: 1fr;
	}

	.hds-guide {
		border-top-width: 1px;
		border-top-color: var(--hds-line);
	}

	.hds-guide:first-child {
		border-top: 3px solid var(--hds-forest);
	}
}

/* ---------- Mobiel ---------- */

@media (max-width: 759px) {
	.hds-home {
		gap: 56px;
		font-size: 1.0625rem;
	}

	.hds-hero {
		grid-template-columns: 1fr;
		padding-top: 8px;
	}

	/* Op mobiel gaat de bezoeker zo snel mogelijk naar de keuze; het grote beeld vervalt. */
	.hds-hero__visual {
		display: none;
	}

	.hds-hero__intro,
	.hds-hero__actions {
		margin-bottom: 22px;
	}

	.hds-hero__eyebrow {
		font-size: .98rem;
		margin-bottom: 10px;
	}

	.hds-hero__title {
		margin-bottom: 16px;
	}

	.hds-hero__actions {
		gap: 12px 22px;
	}

	.hds-hero__actions .hds-home-btn {
		padding: 0 24px;
		min-height: 52px;
	}

	.hds-hero__features {
		gap: 4px 16px;
		font-size: .92rem;
	}

	.hds-choose {
		gap: 20px;
	}

	.hds-resume-line {
		border-radius: 16px;
	}

	.hds-cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hds-card {
		flex-direction: row;
		border-radius: 20px;
	}

	.hds-card__link::after {
		border-radius: 20px;
	}

	.hds-card__media {
		border-radius: 19px 0 0 19px;
		flex: 0 0 104px;
		aspect-ratio: auto;
		min-height: 128px;
	}

	.hds-card__media > .hds-icon {
		width: 56%;
	}

	.hds-card__body {
		padding: 16px 18px;
		gap: 4px;
	}

	.hds-card__title {
		font-size: 1.25rem;
	}

	.hds-card__text {
		font-size: 1rem;
		line-height: 1.45;
	}

	.hds-card__link {
		margin-top: 6px;
	}

	.hds-steps-home {
		border-radius: 24px;
	}

	.hds-steps-home__list {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.hds-steps-home__list::before {
		top: 32px;
		bottom: 32px;
		left: 32px;
		right: auto;
		border-top: 0;
		border-left: 2px dashed rgba(250, 247, 241, .35);
	}

	.hds-step {
		flex-direction: row;
		align-items: center;
	}

	.hds-step__icon {
		flex: 0 0 64px;
		width: 64px;
		height: 64px;
		padding: 14px;
	}

	.hds-step__text {
		max-width: none;
		font-size: 1.1rem;
	}

	.hds-about {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hds-home * {
		transition: none !important;
	}

	.hds-card:hover {
		transform: none;
	}

	.hds-home {
		scroll-behavior: auto;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html:has(.hds-home) {
		scroll-behavior: smooth;
	}
}
