/* =================================================================
   ReefDudes — Community CTA section (front-page.php)
   Sits below the tools grid as the "what's happening on the
   YouTube/Instagram side" entry point. Uses the deeper page
   wash so it visually anchors the bottom of the homepage.
   ================================================================= */

.rd-community {
	background: var(--bg);
	padding: clamp(56px, 9vw, 96px) 20px;
	border-top: 1px solid rgba(205, 216, 226, 0.6);
	position: relative;
}

.rd-community__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.rd-community__title {
	font-size: clamp(1.65rem, 3.8vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	font-weight: 800;
	color: var(--text);
	margin: 10px 0 14px;
	text-wrap: balance;
}

.rd-community__sub {
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	color: var(--text-2);
	margin: 0 0 clamp(20px, 3vw, 28px);
	max-width: 56ch;
	margin-left: auto;
	margin-right: auto;
}

.rd-community__cta {
	display: inline-flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.rd-community__cta .rd-btn-primary {
	background: var(--grad-button);
	color: #ffffff;
	border: 1px solid #2872c0;
	border-radius: 6px;
	padding: 12px 22px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	box-shadow: var(--shadow-button);
	transition: filter 120ms ease, transform 120ms ease;
}
.rd-community__cta .rd-btn-primary:hover {
	filter: brightness(1.06);
	color: #ffffff;
}
.rd-community__cta .rd-btn-primary:active {
	transform: translateY(1px);
}

/* Dark-on-light ghost button (for use OUTSIDE the photo hero) */
.rd-community__cta .rd-btn-ghost-dark {
	background: var(--panel);
	color: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 6px;
	padding: 12px 22px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	transition: background-color 120ms ease, color 120ms ease;
}
.rd-community__cta .rd-btn-ghost-dark:hover {
	background: var(--accent-soft);
	color: var(--accent);
}
