/* Damsterdag: styles for the header, footer and the homepage sections (built from core blocks with dd-* classes). */

:root {
	--dd-blue: #083E53;
	--dd-blue-2: #0F4D66;
	--dd-blue-line: #1C5870;
	--dd-orange: #F79734;
	--dd-orange-text: #B85500;
	--dd-orange-tint: #FEEBD6;
	--dd-light: #F3F7F9;
	--dd-muted: #3D5966;
	--dd-on-dark: #D3E3EA;
	--dd-display: 'Bricolage Grotesque', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
[id] { scroll-margin-top: 16px; }

.dd-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.dd-home p, .dd-home h1, .dd-home h2, .dd-home h3 { margin: 0; }

/* Header */
.dd-header { background: var(--dd-blue); color: #fff; }
.dd-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.dd-header__logo img { display: block; height: 60px; width: auto; }
.dd-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dd-nav a { color: #fff; text-decoration: none; padding: 10px 14px; font-weight: 500; border-radius: 999px; }
.dd-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.dd-nav a.dd-nav__cta { background: var(--dd-orange); color: var(--dd-blue); font-weight: 600; padding-inline: 20px; margin-left: 8px; }
.dd-nav a.dd-nav__cta:hover { background: #FFAA55; color: var(--dd-blue); }

/* Shared section bits */
.dd-section { padding-block: 104px; }
.dd-section--light { background: var(--dd-light); }
.dd-eyebrow { color: var(--dd-orange-text); font-weight: 600; margin-bottom: 8px !important; }
.dd-h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 40px !important; }
.dd-muted { color: var(--dd-muted); }

/* Buttons */
.dd-home .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.dd-home .wp-block-button__link { display: inline-block; border-radius: 999px; padding: 16px 28px; font-weight: 600; font-size: 18px; text-decoration: none; line-height: 1.2; }
.dd-btn-primary .wp-block-button__link { background: var(--dd-orange); color: var(--dd-blue); }
.dd-btn-primary .wp-block-button__link:hover { background: #FFAA55; color: var(--dd-blue); }
.dd-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.dd-btn-ghost .wp-block-button__link:hover { border-color: #fff; color: #fff; }
.dd-btn-dark .wp-block-button__link { background: var(--dd-blue); color: #fff; }
.dd-btn-dark .wp-block-button__link:hover { background: var(--dd-blue-2); color: #fff; }

/* Hero */
.dd-hero { background: var(--dd-blue); color: #fff; overflow: hidden; }
.dd-hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 64px 96px; }
.dd-hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dd-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.1); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.dd-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dd-orange); }
.dd-hero__title { font-size: clamp(44px, 7vw, 72px); line-height: 1 !important; color: #fff; }
.dd-hero__lead { font-size: 20px; color: var(--dd-on-dark); max-width: 520px; }
.dd-hero__text .wp-block-buttons { margin-top: 8px; }
.dd-hero__art { flex: 1 1 420px; min-width: 0; position: relative; min-height: 420px; display: flex; }
.dd-hero__art::before, .dd-hero__art::after { content: ''; position: absolute; border-radius: 50%; }
.dd-hero__art::before { right: -40px; top: -30px; width: 180px; height: 180px; background: var(--dd-orange); }
.dd-hero__art::after { left: -24px; bottom: -36px; width: 120px; height: 120px; background: var(--dd-on-dark); }
.dd-datecard { position: relative; z-index: 1; flex: 1; margin: 24px; border-radius: 28px; background: #fff; color: var(--dd-blue); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 32px; }
.dd-datecard__day { font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--dd-muted); }
.dd-datecard__num { font-family: var(--dd-display); font-weight: 800; font-size: clamp(110px, 14vw, 160px); line-height: .9; color: var(--dd-orange-text); }
.dd-datecard__month { font-family: var(--dd-display); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; }
.dd-datecard__tag { margin-top: 20px !important; background: var(--dd-orange); padding: 8px 18px; border-radius: 999px; font-weight: 600; }

/* Programme strip */
.dd-programma { background: var(--dd-orange); color: var(--dd-blue); }
.dd-programma__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 28px; }
.dd-programma__when { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dd-programma__what { font-family: var(--dd-display); font-weight: 800; font-size: 26px; line-height: 1.3; }

/* 700 jaar */
.dd-history__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.dd-history__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dd-history__year { font-family: var(--dd-display); font-weight: 800; font-size: clamp(96px, 12vw, 136px); line-height: .9; color: var(--dd-orange); letter-spacing: -.03em; }
.dd-history__intro h2 { font-size: clamp(32px, 4.5vw, 44px); }
.dd-history__intro p:last-child { color: var(--dd-muted); font-size: 19px; }
.dd-history__facts { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dd-fact { background: #fff; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.dd-fact h3 { font-size: 24px; margin-top: 4px !important; }
.dd-fact p:last-child { color: var(--dd-muted); }
.dd-tag { align-self: flex-start; background: var(--dd-orange-tint); color: var(--dd-blue); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.dd-fact--dark { background: var(--dd-blue); color: #fff; }
.dd-fact--dark h3 { color: #fff; }
.dd-fact--dark .dd-tag { background: var(--dd-orange); }
.dd-fact--dark p:last-child { color: var(--dd-on-dark); }

/* Meedoen */
.dd-meedoen__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.dd-meedoen__head .dd-h2 { margin-bottom: 0 !important; max-width: 640px; }
.dd-meedoen__head a { font-weight: 600; font-size: 18px; }
.dd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.dd-step { background: var(--dd-light); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.dd-step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--dd-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--dd-display); font-weight: 800; font-size: 22px; }
.dd-step:last-child .dd-step__num { background: var(--dd-orange-text); }
.dd-step h3 { font-size: 26px; margin-top: 8px !important; }
.dd-step p:last-child { color: var(--dd-muted); }

/* Routes */
.dd-routes-block { margin-bottom: 32px; }
.dd-route-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.dd-route { background: #fff; border-radius: 24px; padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.dd-route__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.dd-route h3 { font-size: 28px; }
.dd-route p { color: var(--dd-muted); }
.dd-route .dd-route__download { margin-top: 4px; font-weight: 600; }
.dd-route--dark { background: var(--dd-blue); color: #fff; }
.dd-route--dark h3 { color: #fff; }
.dd-route--dark p { color: var(--dd-on-dark); }
.dd-route--dark .dd-tag { background: var(--dd-orange); }
.dd-route--dark a { color: var(--dd-orange); }
.dd-route--dark a:hover { color: #FFC07F; }

/* Sign-up call to action */
.dd-cta { padding-block: 96px; }
.dd-cta__box { position: relative; overflow: hidden; background: var(--dd-orange); color: var(--dd-blue); border-radius: 32px; padding: 64px clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.dd-cta__box::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.15); }
.dd-cta__text { flex: 1 1 480px; min-width: 0; position: relative; z-index: 1; }
.dd-cta__text h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px !important; }
.dd-cta__text p { font-size: 19px; }
.dd-cta__box .wp-block-buttons { position: relative; z-index: 1; }

/* Documents */
.dd-docs__inner { display: flex; flex-wrap: wrap; gap: 48px; }
.dd-docs__intro { flex: 1 1 320px; min-width: 0; }
.dd-docs__intro h2 { font-size: clamp(32px, 4.5vw, 40px); line-height: 1.1 !important; margin-bottom: 16px !important; }
.dd-docs__intro p:last-child { color: var(--dd-muted); }
.dd-docs__list { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dd-doc a { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-radius: 16px; padding: 22px 28px; text-decoration: none; color: var(--dd-blue); }
.dd-doc a:hover { box-shadow: 0 2px 10px rgba(8,62,83,.12); color: var(--dd-blue); }
.dd-doc strong { display: block; font-size: 19px; font-weight: 600; }
.dd-doc small { color: var(--dd-muted); font-size: 15px; }
.dd-doc a::after { content: 'Downloaden ↓'; color: var(--dd-orange-text); font-weight: 600; white-space: nowrap; }

/* Footer */
.dd-footer { background: var(--dd-blue); color: var(--dd-on-dark); }
.dd-footer__inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-block: 64px 40px; }
.dd-footer__about { flex: 1 1 300px; min-width: 0; }
.dd-footer__about img { display: block; height: 72px; width: auto; }
.dd-footer__about p { margin: 16px 0 0; max-width: 360px; }
.dd-footer__col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dd-footer__title { color: #fff; font-weight: 600; margin: 0 0 4px; }
.dd-footer a { color: var(--dd-on-dark); }
.dd-footer a:hover { color: #fff; }
.dd-footer__bottom { padding-block: 20px 32px; border-top: 1px solid var(--dd-blue-line); font-size: 14px; color: #A9C4CF; }

/* Ordinary pages (reglement, contact, ...) */
.dd-page { padding: 64px 24px 96px; }
.dd-page__title { font-size: clamp(36px, 5vw, 52px); margin-bottom: 32px; }

@media (max-width: 600px) {
	.dd-section, .dd-cta { padding-block: 72px; }
	.dd-header__logo img { height: 48px; }
	/* One swipeable row instead of three wrapped rows of links. */
	.dd-nav { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 48px); margin-inline: -24px; padding-inline: 14px; scrollbar-width: none; }
	.dd-nav::-webkit-scrollbar { display: none; }
	.dd-nav a { padding: 10px 10px; white-space: nowrap; flex: none; }
	.dd-nav a.dd-nav__cta { margin-left: 4px; }
	.dd-hero__art { min-height: 360px; }
	.dd-doc a { flex-direction: column; align-items: flex-start; }
}
