/* ==========================================================================
   Lewende Woord – main stylesheet
   ========================================================================== */

:root {
	--gold: #ffc12e;
	--gold-2: #ffdb72;
	--red: #e8232b;
	--teal: #087c9c;
	--teal-2: #45d9e8;
	--ink: #032a3b;
	--white: #f8fbff;
	--font-body: "Poppins", "Segoe UI", Arial, sans-serif;
	--font-script: "Yellowtail", "Brush Script MT", cursive;
	--font-script-3: "Courgette", "Segoe Script", cursive; /* easier-to-read handwriting */
	--font-script-2: "Dancing Script", "Brush Script MT", cursive;
	--glass-border: rgba(221, 249, 255, 0.45);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: #032d3b; }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--white);
	font-family: var(--font-body);
	line-height: 1.5;
	background-color: #032d3b;
	background-image:
		linear-gradient(180deg, rgba(2, 24, 38, 0.35), rgba(2, 24, 38, 0.15) 40%, rgba(2, 24, 38, 0.45)),
		var(--lw-bg);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Glass surface ---------- */
.glass {
	border: 1px solid var(--glass-border);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.3px;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--gold {
	color: #172b2d;
	font-weight: 700;
	background: linear-gradient(135deg, #ffdc68, #f4a900);
	box-shadow: 0 0 20px rgba(255, 192, 46, 0.35);
}
.btn--teal {
	/* darker band through the horizontal middle, lighter towards top and bottom */
	background: linear-gradient(180deg, #34b7cb 0%, #1d97b2 22%, #0b7f9c 38%, #0b7f9c 62%, #1d97b2 78%, #2fafc4 100%);
	box-shadow: 0 0 22px rgba(47, 210, 231, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--outline {
	border: 2px solid #fff;
	background: rgba(0, 25, 42, 0.2);
}
.roundicon {
	display: inline-grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: #fff; color: #08728a;
}
.roundicon svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 88px;
	padding: 8px 3%;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
	background: rgba(0, 23, 39, 0.38);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand__logo { height: 52px; width: auto; filter: brightness(0) invert(1); position: relative; top: -5px; }
.brand__name {
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.45);
	font-size: 23px;
	font-weight: 700;
	line-height: 1.05;
	white-space: nowrap;
}
.brand__name small {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.55em;
}

.primary-nav { flex: 1; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.primary-nav ul { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.primary-nav a {
	display: block;
	padding: 12px 16px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.2s ease;
}
.primary-nav a:hover { background: rgba(255, 255, 255, 0.12); }
.primary-nav a { position: relative; }
.primary-nav a.is-active {
	background: rgba(0, 160, 184, 0.35);
	box-shadow: inset 0 -10px 14px -10px rgba(120, 240, 255, 0.45);
}
/* glowing underline: a stretched ellipse, thickest in the middle and tapering to points */
.primary-nav a.is-active::before,
.primary-nav a.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	border-radius: 50%;
	pointer-events: none;
}
.primary-nav a.is-active::after {
	bottom: -3px;
	width: 88%;
	height: 3px;
	background: radial-gradient(ellipse at center, #fff 0%, #fff 30%, rgba(200, 252, 255, 0.85) 52%, rgba(160, 245, 255, 0) 72%);
}
.primary-nav a.is-active::before {
	bottom: -12px;
	width: 104%;
	height: 22px;
	background: radial-gradient(ellipse at center, rgba(110, 235, 255, 1) 0%, rgba(70, 210, 240, 0.6) 40%, rgba(40, 180, 220, 0) 72%);
	filter: blur(5px);
}
.header-cta { margin-left: auto; padding: 13px 24px; font-size: 13px; letter-spacing: 0.5px; }

.nav-toggle { display: none; }
.nav-cta { display: none; }

/* ---------- Layout ---------- */
.site-main { max-width: 1536px; margin: 0 auto; padding: 22px 3% 0; }

/* ---------- Hero ---------- */
.hero {
	display: grid;
	grid-template-columns: 1fr 1.06fr;
	gap: 42px;
	align-items: center;
}
.hero__copy { padding-left: 4%; }
.hero__title {
	position: relative;
	padding-left: 32px; /* room for the red dot, which sits flush with the left edge of the text column */
	margin: 0 0 4px;
	font-size: clamp(60px, 7vw, 108px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.hero__dot {
	position: absolute;
	left: 0;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 14px var(--red);
}
.hero__tagline {
	margin: 0 0 22px;
	font-size: clamp(22px, 2.3vw, 34px);
	font-weight: 500;
}
.script {
	font-family: var(--font-script);
	font-weight: 400;
	font-size: 1.35em;
	line-height: 1;
	padding: 0 0.05em;
	color: var(--gold);
}
.intro {
	margin-left: -4%;
	padding: 18px 28px;
	border-radius: 24px;
	font-size: 17px;
	line-height: 1.55;
}
.intro p { margin: 0 0 10px; }
.intro p:last-child { margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 18px; margin-left: -4%; /* same box as .intro, so the button is centred under it */ }

/* ---------- Slideshow ---------- */
.slideshow {
	position: relative;
	aspect-ratio: 2 / 1;
	max-height: 380px;
	width: 100%;
	border-radius: 31px;
	border: 2px solid rgba(222, 249, 255, 0.8);
	box-shadow: 0 0 40px rgba(111, 217, 255, 0.25);
	background: rgba(2, 28, 42, 0.6);
	overflow: hidden;
}
.slideshow__track, .slideshow__slide { position: absolute; inset: 0; }
.slideshow__slide { opacity: 0; transition: opacity 1.1s ease; }
.slideshow__slide.is-active { opacity: 1; z-index: 1; }
.slideshow__img { width: 100%; height: 100%; object-fit: cover; }

.slideshow__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	margin-top: -23px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	color: #fff;
	background: rgba(2, 28, 42, 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	opacity: 0.85;
	transition: background 0.2s ease, opacity 0.2s ease;
}
.slideshow__arrow:hover { background: rgba(0, 160, 184, 0.7); opacity: 1; }
.slideshow__arrow svg { width: 22px; height: 22px; }
.slideshow__arrow--prev { left: 16px; }
.slideshow__arrow--next { right: 16px; }

.slideshow__dots {
	position: absolute;
	left: 0; right: 0; bottom: 14px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.slideshow__dot {
	width: 10px; height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}
.slideshow__dot.is-active { background: var(--gold); transform: scale(1.3); }

/* ---------- About row ---------- */
.about-row {
	display: grid;
	grid-template-columns: 1fr 375px;
	gap: 32px;
	align-items: stretch;
	margin-top: 40px;
}
.about { text-align: center; }
.about__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 26px;
	margin: 0;
	font-size: clamp(26px, 2.6vw, 39px);
	font-weight: 600;
	letter-spacing: 0.15em;
	white-space: nowrap;
}
.about__title::before, .about__title::after {
	content: "";
	flex: 1;
	max-width: 145px;
	height: 1px;
	background: rgba(255, 255, 255, 0.75);
}
.about__sub {
	margin: 2px 0 6px;
	color: var(--gold);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.1em;
}
.about__text { max-width: 780px; margin: 0 auto 20px; font-size: 17px; line-height: 1.45; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 16px;
	border-radius: 25px;
	text-align: center;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__icon { width: 52px; height: 52px; margin-bottom: 6px; }
.card__line { width: 24px; height: 2px; margin-bottom: 8px; background: var(--gold); }
.card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.card p { margin: 0 0 10px; font-size: 15px; }
.card__arrow {
	display: grid; place-items: center;
	width: 28px; height: 28px;
	border: 1px solid #fff;
	border-radius: 50%;
}
.card__arrow svg { width: 16px; height: 16px; }

/* ---------- Sunday service ---------- */
.service {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* top edge lines up with the rule beside the "LEWENDE WOORD KURUMAN" heading */
	margin-top: calc(clamp(26px, 2.6vw, 39px) * 0.75);
	min-height: 300px;
	padding: 28px 34px;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 27px;
	box-shadow: 0 0 22px rgba(111, 217, 255, 0.25);
	overflow: hidden;
	isolation: isolate;
	background: #072e47;
}
/* photo, toned towards the page's teal / green / gold background */
.service::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--lw-service-bg) right center / cover no-repeat;
	filter: saturate(1) brightness(0.95);
}
.service::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(0, 30, 48, 0.1), rgba(0, 24, 40, 0.4)),
		linear-gradient(160deg, rgba(6, 96, 108, 0.6) 0%, rgba(8, 84, 100, 0.4) 40%, rgba(40, 90, 70, 0) 80%);
}
.service > * { position: relative; }
.service__title { margin: 6px 0 12px; font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.service__line { display: block; width: 140px; height: 3px; margin-bottom: 14px; background: var(--gold); }
.service__time { margin: 0; font-size: 78px; font-weight: 800; line-height: 1.05; letter-spacing: -2px; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.service__address {
	display: flex; align-items: center; gap: 10px;
	margin: 8px 0 0;
	font-size: 17px; font-weight: 600;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin-top: 28px;
	padding: 18px 200px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.site-footer__line { flex: 1 1 0; max-width: 220px; height: 1px; background: rgba(255, 255, 255, 0.7); }
.site-footer__text { margin: 0; font-family: var(--font-script-2); font-size: 32px; font-weight: 500; font-style: italic; text-align: center; }
.social { position: absolute; right: 4%; top: 50%; display: flex; gap: 24px; transform: translateY(-50%); }
.social a { display: block; transition: color 0.2s ease, transform 0.2s ease; }
.social a:hover { color: var(--gold); transform: translateY(-2px); }
.social svg { width: 28px; height: 28px; }

/* ---------- Inner page fallback ---------- */
.page__content { padding: 32px; border-radius: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
	.brand__name { font-size: 19px; }
	.primary-nav a { padding: 10px 11px; font-size: 13px; }
	.header-cta { padding: 12px 16px; }
}

@media (max-width: 1100px) {
	.nav-toggle {
		display: grid; place-items: center;
		width: 44px; height: 44px;
		margin-left: auto;
		border: 1px solid rgba(255, 255, 255, 0.5);
		border-radius: 12px;
		background: transparent; color: #fff; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		content: ""; display: block; width: 20px; height: 2px; background: currentColor; position: relative;
	}
	.nav-toggle__bars::before { position: absolute; top: -6px; }
	.nav-toggle__bars::after { position: absolute; top: 6px; }

	.site-header { flex-wrap: wrap; }
	.header-cta { order: 2; margin-left: 0; }
	.primary-nav { display: none; order: 3; flex-basis: 100%; padding: 0 0 10px; border-left: 0; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }

	.hero { gap: 24px; }
	.about-row { grid-template-columns: 1fr; }
	.service { min-height: 300px; }
}

@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero__copy { padding-left: 0; }
	.intro { margin-left: 0; }
	.hero__actions { margin-left: 0; }
	.slideshow { grid-row: 1; max-height: none; }
	.hero__tagline { white-space: normal; }
	.cards { grid-template-columns: 1fr; }
	.site-footer { flex-direction: column; padding: 18px 5% 70px; }
	.site-footer__line { display: none; }
	.site-footer__text { font-size: 26px; }
	.social { right: auto; left: 50%; top: auto; bottom: 18px; transform: translateX(-50%); }
	.about__title { white-space: normal; text-align: center; }
	.about__title::before, .about__title::after { display: none; }
}

@media (max-width: 560px) {
	.brand__name { font-size: 15px; }
	.brand__name small { font-size: 10px; }
	.brand__logo { height: 40px; }
	.header-cta { display: none; }
	.nav-cta { display: block; margin-top: 8px; }
	.primary-nav .nav-cta a:hover { background: linear-gradient(135deg, #ffdc68, #f4a900); }
	.primary-nav .nav-cta a { display: flex; justify-content: center; padding: 14px 24px; font-size: 14px; font-weight: 700; }
	.service__time { font-size: 62px; }
}

@media (prefers-reduced-motion: reduce) {
	.slideshow__slide, .btn, .card { transition: none; }
}
