/* ==================================================
   RTD CHURCH INTERNATIONAL
   COMPLETE WEBSITE STYLING
   ================================================== */


/* ==================================================
   1. BRAND COLORS
   ================================================== */

:root {
	--rtd-navy: #17283b;
	--rtd-text: #34475a;
	--rtd-blue: #0b6c96;
	--rtd-blue-dark: #075373;
	--rtd-orange: #ef8b00;
	--rtd-orange-dark: #cc7100;
	--rtd-cream: #fffaf2;
	--rtd-light: #f4f7f9;
	--rtd-white: #ffffff;
	--rtd-border: rgba(23, 40, 59, 0.1);
	--rtd-radius: 16px;
	--rtd-shadow: 0 12px 35px rgba(23, 40, 59, 0.1);
}


/* ==================================================
   2. GLOBAL WEBSITE STYLING
   ================================================== */

html {
	scroll-behavior: smooth;
}

body {
	color: var(--rtd-text);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

#main {
	background:
		linear-gradient(
			180deg,
			#f8fafc 0%,
			#ffffff 460px
		);
}

.entry-content {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.entry-content > * {
	margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
}

p {
	margin-bottom: 1.25em;
}

a {
	text-underline-offset: 3px;
}


/* ==================================================
   3. GLOBAL HEADINGS
   ================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--rtd-navy);
	line-height: 1.15;
	letter-spacing: -0.025em;
	overflow-wrap: break-word;
}

h1 {
	font-size: clamp(2.1rem, 5vw, 4.25rem);
}

h2 {
	font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
	font-size: clamp(1.35rem, 3vw, 2rem);
}

.entry-title,
.wp-block-heading {
	overflow-wrap: break-word;
}

.entry-content > h1:first-child,
.entry-content > h2:first-child {
	max-width: 900px;
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}


/* ==================================================
   4. HEADER AND CHURCH BRANDING
   ================================================== */

#header {
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 4px 24px rgba(23, 40, 59, 0.08);
}

.site-logo-container img {
	width: auto;
	max-height: 76px;
}

.site-title {
	color: var(--rtd-navy);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0.04em;
}

.site-description {
	color: #4a6077;
	font-weight: 500;
	letter-spacing: 0.01em;
}


/* ==================================================
   5. NAVIGATION
   ================================================== */

[data-id="menu"] > ul > li > a {
	font-weight: 650;
	letter-spacing: 0.01em;
}

[data-id="menu"] > ul > li > a:hover,
[data-id="menu"] > ul > li.current-menu-item > a {
	color: var(--rtd-orange);
}

.ct-header-trigger {
	color: var(--rtd-navy);
	border-radius: 10px;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.ct-header-trigger:hover {
	color: var(--rtd-white);
	background: var(--rtd-blue);
}


/* ==================================================
   6. IMAGES AND MEDIA
   ================================================== */

.entry-content figure,
.entry-content .wp-block-image img,
.entry-content .wp-block-cover {
	border-radius: var(--rtd-radius);
}

.entry-content .wp-block-image img {
	height: auto;
	box-shadow: var(--rtd-shadow);
}

.wp-block-cover {
	overflow: hidden;
	box-shadow: var(--rtd-shadow);
}

.wp-block-cover__inner-container {
	padding: clamp(1.5rem, 5vw, 4rem);
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.wp-block-cover .wp-block-cover__inner-container h1,
.wp-block-cover .wp-block-cover__inner-container h2,
.wp-block-cover .wp-block-cover__inner-container h3,
.wp-block-cover .wp-block-cover__inner-container h4,
.wp-block-cover .wp-block-cover__inner-container p {
	color: var(--rtd-white);
}


/* ==================================================
   7. BUTTONS
   ================================================== */

.wp-element-button,
.wp-block-button__link,
button,
input[type="submit"] {
	border: 0;
	border-radius: 999px;
	background: var(--rtd-blue);
	color: var(--rtd-white);
	font-weight: 700;
	padding: 0.85em 1.6em;
	box-shadow: 0 8px 20px rgba(11, 108, 150, 0.18);
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		box-shadow 0.2s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--rtd-blue-dark);
	color: var(--rtd-white);
	transform: translateY(-2px);
	box-shadow: 0 12px 25px rgba(11, 108, 150, 0.25);
}

/*
Add "rtd-orange-button" to a Button block under:
Advanced → Additional CSS class(es)
*/

.rtd-orange-button .wp-block-button__link {
	background: var(--rtd-orange);
}

.rtd-orange-button .wp-block-button__link:hover {
	background: var(--rtd-orange-dark);
}


/* ==================================================
   8. CONTENT CARDS
   ================================================== */

/*
Add "rtd-card" to a Group block under:
Advanced → Additional CSS class(es)
*/

.rtd-card {
	box-sizing: border-box;
	height: 100%;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--rtd-white);
	border: 1px solid var(--rtd-border);
	border-top: 4px solid var(--rtd-orange);
	border-radius: var(--rtd-radius);
	box-shadow: var(--rtd-shadow);
}

.rtd-card h2,
.rtd-card h3 {
	margin-top: 0;
}

.rtd-soft-section {
	padding: clamp(2rem, 6vw, 5rem);
	background: var(--rtd-cream);
	border-radius: var(--rtd-radius);
}


/* ==================================================
   9. FORMS
   ================================================== */

input:not([type="submit"]),
textarea,
select {
	min-height: 48px;
	border: 1px solid #ccd5dd;
	border-radius: 10px;
	background: var(--rtd-white);
}

input:not([type="submit"]):focus,
textarea:focus,
select:focus {
	border-color: var(--rtd-blue);
	box-shadow: 0 0 0 3px rgba(11, 108, 150, 0.14);
}


/* ==================================================
   10. LIVE SERVICE SECTION
   ================================================== */

.rtd-wrap {
	box-sizing: border-box;
	width: min(100% - 30px, 1150px);
	margin-inline: auto;
}

.rtd-hero.dark {
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	padding: clamp(24px, 6vw, 50px);
	border-radius: 24px;
	background:
		linear-gradient(
			135deg,
			#101214 0%,
			#242424 55%,
			#303030 100%
		);
	color: var(--rtd-white);
	box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

/* Force the service heading to remain white */

.entry-content .rtd-hero.dark h2,
.rtd-hero.dark h2 {
	max-width: 900px;
	margin: 28px 0;
	padding: 0;
	background: transparent;
	color: var(--rtd-white) !important;
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
	overflow-wrap: anywhere;
}

/* Starting Soon badge */

.rtd-hero .rtd-badge {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	max-width: 100%;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--rtd-white);
	color: #d60000 !important;
	font-size: clamp(0.9rem, 3vw, 1.15rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-shadow: none;
}

/* Countdown and status */

.rtd-hero .rtd-countdown {
	margin: 0 0 24px;
	color: var(--rtd-white) !important;
	font-size: clamp(1.25rem, 4vw, 2rem);
	font-weight: 750;
	line-height: 1.25;
}

/* Responsive YouTube player */

.rtd-hero iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	aspect-ratio: 16 / 9;
	margin: 0;
	border: 0;
	border-radius: 16px;
	background: #000;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}


/* ==================================================
   11. FOOTER
   ================================================== */

footer.ct-footer {
	margin-top: clamp(3rem, 7vw, 6rem);
}

footer.ct-footer a:hover {
	color: var(--rtd-orange);
}


/* ==================================================
   12. BACK-TO-TOP BUTTON
   ================================================== */

.ct-back-to-top {
	right: 20px;
	bottom: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--rtd-blue);
	box-shadow: 0 8px 24px rgba(23, 40, 59, 0.22);
}

.ct-back-to-top:hover {
	background: var(--rtd-orange);
	transform: translateY(-3px);
}


/* ==================================================
   13. TABLET STYLING
   ================================================== */

@media (max-width: 999px) {
	[data-device="mobile"] .site-logo-container img {
		max-height: 60px;
	}

	[data-device="mobile"] .site-title {
		font-size: clamp(1.25rem, 4.7vw, 2rem);
		letter-spacing: 0.025em;
	}

	[data-device="mobile"] .site-description {
		font-size: clamp(0.78rem, 2.8vw, 1rem);
	}

	.entry-content {
		--content-spacing: 1.5rem;
	}

	.wp-block-cover {
		min-height: 420px !important;
	}
}


/* ==================================================
   14. MOBILE STYLING
   ================================================== */

@media (max-width: 689px) {
	h1 {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	h2 {
		font-size: clamp(1.65rem, 8vw, 2.35rem);
	}

	/* Mobile header */

	[data-device="mobile"] [data-row] {
		min-height: auto;
	}

	[data-device="mobile"] .site-branding {
		max-width: calc(100vw - 135px);
	}

	[data-device="mobile"] .site-title {
		font-size: 1.25rem;
		line-height: 1.08;
	}

	[data-device="mobile"] .site-description {
		margin-top: 4px;
		font-size: 0.78rem;
		line-height: 1.25;
	}

	[data-device="mobile"] .site-logo-container img {
		max-width: 58px;
		max-height: 58px;
	}

	/* Main content */

	.entry-content {
		font-size: 1rem;
	}

	.wp-block-cover {
		min-height: 340px !important;
		border-radius: 12px;
	}

	.wp-block-cover__inner-container {
		padding: 1.25rem;
	}

	.rtd-soft-section {
		padding: 1.5rem;
	}

	/* Live service section */

	.rtd-wrap {
		width: calc(100% - 24px);
	}

	.rtd-hero.dark {
		padding: 22px 18px;
		border-radius: 18px;
	}

	.entry-content .rtd-hero.dark h2,
	.rtd-hero.dark h2 {
		margin: 22px 0;
		padding: 0;
		color: var(--rtd-white) !important;
		font-size: clamp(1.8rem, 8.5vw, 2.4rem);
		line-height: 1.12;
	}

	.rtd-hero .rtd-badge {
		padding: 10px 14px;
		font-size: 0.88rem;
		white-space: normal;
	}

	.rtd-hero .rtd-countdown {
		margin-bottom: 18px;
		font-size: 1.25rem;
	}

	.rtd-hero iframe {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 16 / 9;
		border-radius: 12px;
	}

	/* Back-to-top button */

	.ct-back-to-top {
		right: 12px;
		bottom: 12px;
		width: 46px;
		height: 46px;
	}

	/* Disable movement effects on touchscreens */

	.wp-element-button:hover,
	.wp-block-button__link:hover,
	button:hover {
		transform: none;
	}
}


/* ==================================================
   15. REDUCED-MOTION ACCESSIBILITY
   ================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}