/* =====================================================================
   CCAK section design layer (v0.4): calmer type, roomier cards,
   icon tiles, decorative backgrounds and framed images.
   ===================================================================== */

/* ---------- Typography rhythm ---------- */
.ccak-eyebrow + .wp-block-heading { margin-top: 0.6rem !important; }
.wp-block-heading + .has-muted-color,
.wp-block-heading + p.has-text-align-center { margin-top: 1rem; }

/* Section intros: short line length so they don't read as a wall of text. */
p.has-text-align-center.has-muted-color,
p.has-muted-color.ccak-intro,
p.ccak-intro {
	max-width: 680px;
	margin-left: auto !important;
	margin-right: auto !important;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* Centred section headings stay compact. */
h2.has-text-align-center { max-width: 820px; margin-left: auto !important; margin-right: auto !important; text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Cards ---------- */
.ccak-card { padding: clamp(1.4rem, 2.2vw, 1.9rem); }
.ccak-card.is-layout-flow > * + * { margin-block-start: 0.7rem; }
.ccak-card.is-layout-flow > .ccak-eyebrow + .wp-block-heading { margin-block-start: 0.3rem !important; }
.ccak-card .wp-block-heading { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.3; }
.ccak-card p,
.ccak-card li { font-size: 0.97rem; line-height: 1.65; }
.ccak-card .ccak-eyebrow { font-size: 0.7rem; letter-spacing: 0.15em; }
.ccak-card .ccak-card-link { margin-top: 1rem !important; }
.ccak-card .ccak-fee { margin-top: auto; }
.wp-block-column > .ccak-card { display: flex; flex-direction: column; }
.wp-block-column > .ccak-card.is-layout-flow > * { flex: none; }
.wp-block-column > .ccak-card > .ccak-card-link:last-child,
.wp-block-column > .ccak-card > .ccak-fee:last-child { margin-top: auto !important; padding-top: 0.75rem; }

/* Light cards on white sections get a soft tint; on tinted sections they stay white. */
.has-surface-background-color .ccak-card:not(.has-background) { background: #fff; }

/* Spacing between rows of cards. */
.wp-block-columns + .wp-block-columns { margin-top: var(--wp--preset--spacing--40); }

/* ---------- Icon tiles ----------
   Add classes "ccak-icon ccak-icon-NAME" to a card (or any block).
   Names: users, user, shield, graduation, book, heart, megaphone, church, map-pin,
   clipboard, phone, badge-check, award, calendar, flag, mail, clock, video, cross,
   globe, handshake, file, star. */
.ccak-icon::before {
	content: "";
	display: block;
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	margin-bottom: 1.1rem;
	background: var(--ccak-i) center / 26px 26px no-repeat, var(--wp--preset--color--primary-soft);
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.3), background-color 0.3s ease;
}
.ccak-card.ccak-icon:hover::before {
	background: var(--ccak-i-light) center / 26px 26px no-repeat, var(--wp--preset--color--primary);
	transform: rotate(-6deg) scale(1.06);
}
.ccak-icon.has-text-align-center::before,
.ccak-member.ccak-icon::before,
.ccak-icon-center::before { margin-left: auto; margin-right: auto; }
/* Red tile variant */
.ccak-icon.ccak-icon-red::before { background: var(--ccak-i) center / 26px 26px no-repeat, var(--wp--preset--color--accent-soft); }
/* On navy sections */
.has-primary-background-color .ccak-icon::before,
.has-primary-dark-background-color .ccak-icon::before,
.ccak-hero .ccak-icon::before { background: var(--ccak-i-light) center / 26px 26px no-repeat, rgba(255, 255, 255, 0.12); }
/* Small inline variant for contact rows */
.ccak-icon.ccak-icon-sm::before { width: 40px; height: 40px; border-radius: 12px; background-size: 20px 20px, auto; margin-bottom: 0.8rem; }

/* ---------- Decorative backgrounds ----------
   Add one of these classes to a full-width section group. */
.ccak-bg-dots,
.ccak-bg-glow,
.ccak-bg-rings { position: relative; isolation: isolate; overflow: hidden; }
.ccak-bg-dots::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(46, 48, 146, 0.16) 1.2px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 100% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 100% 0%, #000 0%, transparent 75%);
	pointer-events: none;
}
.ccak-bg-glow::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(520px 320px at 0% 0%, rgba(46, 48, 146, 0.10), transparent 70%),
		radial-gradient(480px 320px at 100% 100%, rgba(237, 28, 36, 0.07), transparent 70%);
	pointer-events: none;
}
.ccak-bg-rings::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: min(560px, 70vw);
	aspect-ratio: 1;
	left: -12%;
	bottom: -30%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%232E3092'%3E%3Ccircle cx='100' cy='100' r='80' stroke-width='36' pathLength='360' stroke-dasharray='290 70' stroke-dashoffset='-35'/%3E%3Ccircle cx='100' cy='100' r='44' stroke-width='16' pathLength='360' stroke-dasharray='280 80' stroke-dashoffset='-40'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0.05;
	pointer-events: none;
}

/* ---------- Framed images ----------
   Add class "ccak-media" to an Image block: rounded corners, soft shadow and an offset red frame. */
.wp-block-image.ccak-media { position: relative; isolation: isolate; margin: 0 14px 14px 0; }
.wp-block-image.ccak-media img { border-radius: 18px; box-shadow: 0 18px 40px rgba(20, 21, 46, 0.16); width: 100%; height: auto; }
.wp-block-image.ccak-media::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 14px -14px -14px 14px;
	border: 2px solid var(--wp--preset--color--accent);
	border-radius: 20px;
	opacity: 0.55;
}
.wp-block-image.ccak-media.is-style-rounded img { border-radius: 50%; }

/* Portrait photos (leaders) */
.wp-block-image.ccak-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Steps (numbered cards with a connecting line) ---------- */
.ccak-steps { position: relative; }
@media (min-width: 782px) {
	.ccak-steps::before {
		content: "";
		position: absolute;
		top: calc(clamp(1.4rem, 2.2vw, 1.9rem) + 1.25rem);
		left: 8%;
		right: 8%;
		height: 2px;
		background: repeating-linear-gradient(90deg, rgba(46, 48, 146, 0.25) 0 8px, transparent 8px 16px);
		z-index: 0;
	}
	.ccak-steps > .wp-block-column { position: relative; z-index: 1; }
}
.ccak-steps .ccak-step-num { margin-bottom: 0.4rem !important; }

/* ---------- Highlight band (short strip with icon + text) ---------- */
.ccak-note {
	position: relative;
	max-width: 860px;
	text-align: left !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 0.9rem 1.2rem;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	font-size: 0.92rem;
	line-height: 1.55;
}
.ccak-note.ccak-icon { padding-left: 4.3rem; min-height: 3.6rem; }
.ccak-note.ccak-icon::before {
	position: absolute;
	left: 0.9rem;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 12px;
	margin: 0;
	background-size: 20px 20px, auto;
}

/* ---------- Two-column feature (text + image) ---------- */
.ccak-feature .wp-block-column { min-width: 0; }

@media (max-width: 781px) {
	.ccak-card { padding: 1.35rem; }
	.wp-block-image.ccak-media { margin: 0 10px 10px 0; }
	.wp-block-image.ccak-media::before { inset: 10px -10px -10px 10px; }
	.ccak-bg-rings::after { display: none; }
}

/* To-do notes stay readable on navy sections. */
.ccak-hero .ccak-todo,
.ccak-page-header .ccak-todo,
.has-primary-background-color .ccak-todo { color: #6B5310 !important; }

/* Statement cards (vision / mission) keep a slightly larger voice. */
.ccak-card p.has-large-font-size { font-size: var(--wp--preset--font-size--large) !important; line-height: 1.5; color: var(--wp--preset--color--primary); }

/* Wide framed images become a banner strip rather than a tall block. */
.wp-block-image.ccak-media.alignwide img { aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 781px) { .wp-block-image.ccak-media.alignwide img { aspect-ratio: 16 / 9; } }

/* ---------- Full-width office map ([ccak_map]) ---------- */
.ccak-map-section { margin-top: 0 !important; margin-bottom: 0 !important; }
.ccak-map-section > .wp-block-shortcode,
.ccak-map-section > p { margin: 0; }
.ccak-map {
	position: relative;
	height: clamp(380px, 48vw, 540px);
	background: var(--wp--preset--color--primary-soft);
	border-top: 4px solid var(--wp--preset--color--accent);
	overflow: hidden;
}
.ccak-map__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: saturate(0.85) contrast(1.02);
}
.ccak-map__card {
	position: absolute;
	z-index: 2;
	top: 50%;
	left: max(clamp(1rem, 4vw, 2rem), calc((100% - 1320px) / 2));
	transform: translateY(-50%);
	width: min(360px, calc(100% - 2rem));
	padding: 1.5rem 1.6rem;
	background: #fff;
	border-radius: 16px;
	border-top: 4px solid var(--wp--preset--color--primary);
	box-shadow: 0 24px 60px -12px rgba(20, 21, 46, 0.35);
}
.ccak-map__eyebrow {
	margin: 0 0 0.3rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-dark);
}
.ccak-map__title { margin: 0 0 0.9rem; font-size: 1.3rem; color: var(--wp--preset--color--primary); }
.ccak-map__line {
	position: relative;
	margin: 0 0 0.55rem;
	padding-left: 2rem;
	font-size: 0.95rem;
	line-height: 1.5;
}
.ccak-map__line::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05rem;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 7px;
	background: var(--ccak-i) center / 0.9rem no-repeat, var(--wp--preset--color--primary-soft);
}
.ccak-map__line a { color: var(--wp--preset--color--primary); font-weight: 600; text-decoration: none; }
.ccak-map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: 1.1rem; }
.ccak-map__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.7em 1.3em;
	border-radius: 999px;
	background: var(--wp--preset--color--accent-dark);
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease;
}
.ccak-map__btn:hover { background: var(--wp--preset--color--primary); }
.ccak-map__link { font-size: 0.85rem; font-weight: 600; color: var(--wp--preset--color--primary); }

/* Phones: map on top, card below it (never covering the map). */
@media (max-width: 781px) {
	.ccak-map { height: auto; display: flex; flex-direction: column; }
	.ccak-map__frame { position: relative; height: 320px; }
	.ccak-map__card { position: relative; top: auto; left: auto; transform: none; width: auto; margin: -2.5rem 1rem 1.5rem; }
}
/* Google shows its own place box top-left, so our card sits on the right. */
@media (min-width: 782px) {
	.ccak-map__card { left: auto; right: max(clamp(1rem, 4vw, 2rem), calc((100% - 1320px) / 2)); }
}

/* ---------- 404 page ---------- */
.ccak-404 { text-align: center; }
.ccak-404 .ccak-tagline { margin-top: 0.5rem; }
.ccak-404 h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 0.3rem; }
.ccak-404 .ccak-404-lead { font-size: 1.08rem; line-height: 1.7; max-width: 560px; margin-left: auto !important; margin-right: auto !important; }

.ccak-404-art {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(0.25rem, 1.5vw, 1rem);
	line-height: 1;
	user-select: none;
	animation: ccak-404-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.ccak-404-digit {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: clamp(6.5rem, 20vw, 12rem);
	letter-spacing: -0.04em;
	color: #fff;
	text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.ccak-404-digit:last-child { animation: ccak-404-tilt 4s ease-in-out infinite; transform-origin: 50% 90%; }
.ccak-404-ring {
	width: clamp(6rem, 18vw, 11rem);
	height: auto;
	overflow: visible;
	filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}
.ccak-404-ring__outer { transform-origin: 100px 100px; animation: ccak-404-spin 9s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
.ccak-404-ring__inner { transform-origin: 100px 100px; animation: ccak-404-spin 6s linear infinite reverse; }
.ccak-404-ring__orbit { transform-origin: 100px 100px; animation: ccak-404-spin 40s linear infinite; }
@keyframes ccak-404-spin { to { transform: rotate(360deg); } }
@keyframes ccak-404-tilt { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg) translateY(-4px); } }
@keyframes ccak-404-in { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

/* Search box on navy */
.ccak-404-search { max-width: 520px; margin: 1.6rem auto 0 !important; }
.ccak-404-search .wp-block-search__inside-wrapper {
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
}
.ccak-404-search .wp-block-search__input {
	border: 0 !important;
	background: transparent;
	color: #fff;
	padding: 0.6rem 1.1rem;
	font-size: 1rem;
	font-family: inherit;
}
.ccak-404-search .wp-block-search__input::placeholder { color: rgba(255, 255, 255, 0.65); }
.ccak-404-search .wp-block-search__input:focus { outline: none; }
.ccak-404-search .wp-block-search__inside-wrapper:focus-within { border-color: rgba(255, 255, 255, 0.55) !important; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.ccak-404-search .wp-block-search__button {
	margin-left: 6px;
	border: 0;
	border-radius: 999px;
	padding: 0.65rem 1.4rem;
	background: var(--wp--preset--color--accent-dark);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}
.ccak-404-search .wp-block-search__button:hover { background: #fff; color: var(--wp--preset--color--primary); }

/* Popular page cards: four across, two on tablets */
@media (min-width: 782px) and (max-width: 1100px) {
	.ccak-404-links.wp-block-columns { flex-wrap: wrap !important; }
	.ccak-404-links.wp-block-columns > .wp-block-column { flex-basis: calc(50% - var(--wp--preset--spacing--40)) !important; }
}

@media (prefers-reduced-motion: reduce) {
	.ccak-404-art, .ccak-404-digit, .ccak-404-ring circle { animation: none !important; }
}

/* ---------- Touch & small-screen comfort (v0.6.3) ---------- */
/* Slider dots: 4px bar, 40px tall tap area. */
.ccak-slider__dot { height: 40px; min-width: 32px; }
/* FAQ questions: at least 44px to tap. */
.ccak-faq .wp-block-details summary,
.wp-block-details summary { min-height: 44px; display: flex; align-items: center; gap: .5rem; padding: .35rem 0; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D0161E' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
	transition: transform .25s ease;
}
.wp-block-details[open] > summary::before { transform: rotate(45deg); }
/* Small labels never drop below 12px. */
.ccak-card .ccak-eyebrow,
.ccak-badge { font-size: .75rem; }
@media (max-width: 781px) {
	.ccak-eyebrow { font-size: .75rem; }
	/* Cards stack with comfortable spacing on phones. */
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column + .wp-block-column { margin-top: 0; }
	/* Buttons go full width in narrow button groups, easier to tap. */
	.wp-block-buttons > .wp-block-button { flex: 1 1 auto; }
	.wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; justify-content: center; min-height: 46px; display: inline-flex; align-items: center; }
}
.ccak-map__eyebrow { font-size: .75rem !important; }

/* Tablets (600–781px): rows of 3+ cards show two per row instead of one long stack. */
@media (min-width: 600px) and (max-width: 781px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(3)) {
		flex-wrap: wrap !important;
		gap: var(--wp--preset--spacing--40) !important;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(3)) > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--40) / 2) !important;
		flex-grow: 0 !important;
	}
}

/* =====================================================================
   Phone first screen (v0.6.7)
   ===================================================================== */
@media (max-width: 781px) {
	/* The Call / WhatsApp bar at the bottom already covers this. */
	.ccak-topbar { display: none !important; }

	/* Hero fills exactly the first screen under the header. */
	.ccak-slide.wp-block-cover {
		min-height: calc(100vh - var(--ccak-header-h, 76px));
		min-height: calc(100svh - var(--ccak-header-h, 76px));
		padding-top: 2.25rem;
		padding-bottom: 5.75rem; /* room for the slider controls */
		align-items: center;
	}

	/* Slider controls: one balanced row across the full width. */
	.ccak-slider__controls {
		left: 1rem;
		right: 1rem;
		bottom: 1.25rem;
		gap: 0.5rem;
		justify-content: space-between;
	}
	.ccak-slider__dots { flex: 1; justify-content: center; }
	.ccak-slider__arrow,
	.ccak-slider__toggle {
		display: inline-flex !important;
		width: 44px;
		height: 44px;
		background: rgba(20, 21, 46, 0.35);
		border-color: rgba(255, 255, 255, 0.4);
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
	}
	.ccak-slider__toggle { order: 3; }
	.ccak-slider__arrow.is-next { order: 2; }
	.ccak-slider__dots { order: 1; }
	.ccak-slider__arrow.is-prev { order: 0; }

	/* Bottom action bar slides in once the visitor starts scrolling,
	   so the first screen (hero + controls) is never covered. */
	.ccak-action-bar {
		transform: translateY(110%);
		transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
	}
	.ccak-action-bar.is-visible { transform: none; }
	.ccak-to-top { bottom: calc(62px + 14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 781px) and (prefers-reduced-motion: reduce) {
	.ccak-action-bar { transition: none; }
}

/* Short phones (e.g. 360×640): tighten the hero so text, buttons and slider controls all fit the first screen. */
@media (max-width: 781px) and (max-height: 740px) {
	.ccak-slide.wp-block-cover { padding-top: 1.25rem; padding-bottom: 4.75rem; }
	.ccak-slide h1, .ccak-slide h2 { font-size: clamp(1.6rem, 7.4vw, 2rem) !important; margin-top: 0.4rem !important; }
	.ccak-slide p:not(.ccak-eyebrow) { font-size: 0.95rem !important; line-height: 1.5; }
	.ccak-slide .wp-block-buttons { margin-top: 1rem !important; gap: 0.6rem; }
	.ccak-slide .wp-block-button__link { padding-top: 0.7rem !important; padding-bottom: 0.7rem !important; }
	.ccak-slider__controls { bottom: 0.9rem; }
}

/* Phones: breathing room between the hero slider and the first quick-link cards. */
@media (max-width: 781px) {
	.ccak-quicklinks { padding-top: 2rem !important; }
}

/* ---------- Statement of Faith ---------- */
.ccak-preamble {
	margin: 0.75rem 0 0;
	padding: 0.25rem 0 0.25rem clamp(1rem, 3vw, 1.75rem);
	border-left: 4px solid var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.3rem, 2.6vw, 1.75rem);
	font-weight: 500;
	line-height: 1.5;
	color: var(--wp--preset--color--primary-dark);
}
.ccak-faith-grid { align-items: stretch; }
.ccak-faith.ccak-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	border-top: 4px solid var(--wp--preset--color--primary);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ccak-faith.ccak-card:hover { transform: translateY(-3px); border-top-color: var(--wp--preset--color--accent); }
.ccak-faith > * { margin: 0 !important; }
.ccak-faith .ccak-faith-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--primary-soft);
	-webkit-text-stroke: 1.5px var(--wp--preset--color--primary);
	letter-spacing: -0.02em;
}
.ccak-faith.ccak-card:hover .ccak-faith-num { color: var(--wp--preset--color--accent-soft); -webkit-text-stroke-color: var(--wp--preset--color--accent); }
.ccak-faith h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--wp--preset--color--primary); line-height: 1.3; }
.ccak-faith .ccak-faith-ref {
	margin-top: auto !important;
	padding-top: 0.85rem;
	border-top: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-dark);
}
.ccak-commitment .ccak-eyebrow { color: #FF9EA2; }
.ccak-commitment p:not(.ccak-eyebrow) { color: rgba(255, 255, 255, 0.86); font-size: var(--wp--preset--font-size--medium); line-height: 1.75; }
@media (max-width: 781px) {
	.ccak-faith .ccak-faith-num { font-size: 2.1rem; }
	.ccak-preamble { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
	.ccak-faith.ccak-card, .ccak-faith.ccak-card:hover { transition: none; transform: none; }
}

/* Longer scripture passages: a calmer size so the verse reads comfortably. */
.ccak-scripture .ccak-scripture-text.ccak-scripture-long { font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.45; }

/* ---------- Social icons (leaders, footer) ----------
   Round icon buttons. Any service works (Facebook, Instagram, X, YouTube, TikTok, LinkedIn…);
   links left empty in the editor don't appear on the site. */
.ccak-socials-label {
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: 0 !important;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.wp-block-social-links.ccak-socials { gap: 0.55rem; margin-top: 0.6rem; padding: 0; font-size: 1rem; }
.wp-block-social-links.ccak-socials .wp-social-link {
	--ccak-brand: var(--wp--preset--color--primary);
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 50%;
	font-size: 1rem !important;
	background: var(--ccak-brand) !important;
	color: #fff !important;
	box-shadow: 0 3px 10px rgba(20, 21, 46, 0.14);
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-social-links.ccak-socials .wp-block-social-link-anchor {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	border-radius: 50%;
	color: inherit !important;
}
.wp-block-social-links.ccak-socials .wp-block-social-link-anchor svg { width: 20px; height: 20px; fill: currentColor; }
.wp-block-social-links.ccak-socials .wp-block-social-link-anchor:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.wp-block-social-links.ccak-socials .wp-social-link:hover,
.wp-block-social-links.ccak-socials .wp-social-link:focus-within {
	transform: translateY(-3px) scale(1.04);
	box-shadow: 0 10px 22px rgba(20, 21, 46, 0.22);
}
.wp-block-social-links.ccak-socials .wp-social-link-facebook { --ccak-brand: #1877F2; }
.wp-block-social-links.ccak-socials .wp-social-link-linkedin { --ccak-brand: #0A66C2; }
.wp-block-social-links.ccak-socials .wp-social-link-youtube { --ccak-brand: #FF0000; }
.wp-block-social-links.ccak-socials .wp-social-link-whatsapp { --ccak-brand: #25D366; }
.wp-block-social-links.ccak-socials .wp-social-link-x,
.wp-block-social-links.ccak-socials .wp-social-link-tiktok,
.wp-block-social-links.ccak-socials .wp-social-link-threads { --ccak-brand: #000; }
.wp-block-social-links.ccak-socials .wp-social-link-instagram {
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
}
/* On navy (footer): a light ring so the coloured icons stand off the background. */
.wp-block-social-links.ccak-socials.is-on-dark .wp-social-link { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }
@media (prefers-reduced-motion: reduce) {
	.wp-block-social-links.ccak-socials .wp-social-link { transition: none; }
	.wp-block-social-links.ccak-socials .wp-social-link:hover { transform: none; }
}

/* Photo galleries on the media page: rounded tiles with a gentle zoom. (Videos are styled by the CCAK Media plugin.) */
.ccak-gallery.wp-block-gallery { gap: 0.75rem; }
.ccak-gallery.wp-block-gallery .wp-block-image { border-radius: 14px; overflow: hidden; }
.ccak-gallery.wp-block-gallery .wp-block-image img { transition: transform 0.5s ease; }
.ccak-gallery.wp-block-gallery .wp-block-image:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
	.ccak-gallery.wp-block-gallery .wp-block-image img { transition: none; transform: none; }
}
