/*
Theme Name: Dads Evoking Change
Theme URI: https://dadsevokingchange.org
Description: Block theme for Dads Evoking Change - a 501(c)(3) nonprofit empowering fathers and families.
Version: 3.2.0
Author: Dads Evoking Change
Author URI: https://dadsevokingchange.org
Text Domain: dads-evoking-change
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

/* ==========================================
   BASE
   ========================================== */

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   STICKY NAV
   ========================================== */

header.wp-block-template-part {
	display: contents;
}

header.wp-block-template-part > .wp-block-group.has-teal-background-color {
	display: block;
	width: 100%;
}

header.wp-block-template-part > .wp-block-group.is-position-sticky {
	position: sticky !important;
	top: 0 !important;
	z-index: 100 !important;
}

/* ==========================================
   CONTENT GAP RESET
   ========================================== */

.wp-site-blocks > * + * {
	margin-top: 0 !important;
}

/* Override WP's is-layout-flow gap between top-level page sections */
main.is-layout-flow > * + * {
	margin-block-start: 0 !important;
}

main.wp-block-group-is-layout-flow > * + * {
	margin-block-start: 0 !important;
}

/* Post content flow gap reset (page template) */
.entry-content > * + *,
.wp-block-post-content > * + * {
	margin-block-start: 0 !important;
}

/* ==========================================
   NAVIGATION - DESKTOP LINKS
   ========================================== */

/* Fix overlay colors leaking into desktop nav */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
	color: var(--wp--preset--color--slate) !important;
	background-color: transparent !important;
}

/* Nav links: 500 weight, slate color, hover teal */
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:not(.wp-block-navigation-item__donate) a.wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle {
	color: #2c3e50 !important;
	font-weight: 500 !important;
	transition: color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item:not(.wp-block-navigation-item__donate) a.wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle:hover {
	color: #3BA99C !important;
}

/* DONATE button */
.wp-block-navigation-item__donate .wp-block-navigation-item__label {
	background-color: #3BA99C;
	color: #ffffff;
	padding: 10px 24px;
	border-radius: 6px;
	font-weight: 700;
	transition: background-color 0.3s ease;
}

.wp-block-navigation-item__donate:hover .wp-block-navigation-item__label {
	background-color: #2D8A7F;
}

/* Dropdown submenu */
.wp-block-navigation .wp-block-navigation__submenu-container {
	min-width: 220px !important;
	background: #fff !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
	border-radius: 8px !important;
	padding: 8px 0 !important;
	border: none !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 20px !important;
	color: #2c3e50 !important;
	font-size: 14px !important;
	transition: all 0.2s ease !important;
	display: block !important;
}

.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: #f7fafa !important;
	color: #3BA99C !important;
	padding-left: 24px !important;
}

/* ==========================================
   HERO - exact values from reference
   text-5xl/sm:text-6xl/lg:text-7xl = 48/60/72px
   subtitle: text-xl/lg:text-2xl = 20/24px, font-medium (500)
   buttons: px-10 py-4 = 40px 16px, rounded-full, text-lg = 18px
   ========================================== */

.wp-block-cover.hero-section {
	min-height: 650px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wp-block-cover.hero-section .wp-block-cover__background {
	background: linear-gradient(135deg, rgba(30, 107, 107, 0.95) 0%, rgba(30, 107, 107, 0.88) 50%, rgba(45, 138, 127, 0.82) 100%) !important;
	opacity: 1 !important;
}

.wp-block-cover.hero-section .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	width: 100%;
	padding: 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.wp-block-cover.hero-section .wp-block-cover__inner-container > * {
	max-width: 900px !important;
}

/* Hero H1: 48px -> 60px -> 72px, weight 800, line-height 1.25 */
.wp-block-cover.hero-section h1,
.wp-block-cover.hero-section .wp-block-heading {
	font-size: 3rem !important; /* 48px */
	font-weight: 800 !important;
	color: #ffffff !important;
	margin-bottom: 2rem !important;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	line-height: 1 !important;
	text-align: center;
	width: 100%;
}

@media (min-width: 640px) {
	.wp-block-cover.hero-section h1,
	.wp-block-cover.hero-section .wp-block-heading {
		font-size: 3.75rem !important; /* 60px */
	}
}

@media (min-width: 1024px) {
	.wp-block-cover.hero-section h1,
	.wp-block-cover.hero-section .wp-block-heading {
		font-size: 4.5rem !important; /* 72px */
	}
}

/* Hero subtitle: 20px -> 24px, weight 500, line-height 1.625 */
.wp-block-cover.hero-section p,
.wp-block-cover.hero-section .wp-block-paragraph {
	font-size: 1.25rem !important; /* 20px */
	font-weight: 500 !important;
	color: rgba(255, 255, 255, 0.95) !important;
	margin-bottom: 2.5rem !important;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
	text-align: center;
	width: 100%;
	line-height: 1.33 !important;
}

@media (min-width: 1024px) {
	.wp-block-cover.hero-section p,
	.wp-block-cover.hero-section .wp-block-paragraph {
		font-size: 1.5rem !important; /* 24px */
	}
}

/* Hero buttons: px-10=40px py-4=16px rounded-full text-lg=18px bold */
.wp-block-cover.hero-section .wp-block-button__link {
	padding: 16px 40px !important;
	border-radius: 9999px !important;
	font-size: 1.125rem !important; /* 18px */
	font-weight: 700 !important;
}

.wp-block-cover.hero-section .wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.1) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 2px solid #ffffff !important;
	color: #ffffff !important;
}

.wp-block-cover.hero-section .wp-block-buttons {
	gap: 20px;
	justify-content: center;
	align-items: center;
	margin-top: 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

@media (max-width: 768px) {
	.wp-block-cover.hero-section {
		min-height: 500px;
	}
	.wp-block-cover.hero-section h1 { font-size: 2.5rem !important; }
	.wp-block-cover.hero-section p { font-size: 1.125rem !important; }
}

/* ==========================================
   SECTION SPACING - exact from reference
   py-20 = 80px, lg:py-28 = 112px
   py-16 = 64px (mission)
   py-12 = 48px (helpline)
   ========================================== */

/* Standard sections: 80px / 112px */
main .wp-block-group.alignfull {
	padding: 60px 16px !important;
}

@media (min-width: 1024px) {
	main .wp-block-group.alignfull {
		padding: 80px 32px !important;
	}
}

/* Mission: py-16 = 64px */
main .wp-block-group.alignfull.has-teal-darker-background-color {
	padding: 64px 16px !important;
}

@media (min-width: 1024px) {
	main .wp-block-group.alignfull.has-teal-darker-background-color {
		padding: 64px 32px !important;
	}
}

/* Helpline: py-12 = 48px */
.wp-block-group.has-green-background-color {
	padding: 48px 16px !important;
}

@media (max-width: 768px) {
	main .wp-block-group.alignfull {
		padding: 64px 16px !important;
	}
}

/* ==========================================
   SECTION TYPOGRAPHY - exact from reference
   ========================================== */

/* Subtitles: 14px, 700, uppercase, tracking 0.1em */
main .has-small-font-size {
	font-weight: 700 !important;
}

/* Section H2: text-4xl/lg:text-5xl = 36px/48px, weight 800, line-height 1 */
main .wp-block-group h2,
main .wp-block-group h2.has-large-font-size,
main .wp-block-group .wp-block-heading.has-large-font-size {
	font-size: 2.25rem !important; /* 36px */
	font-weight: 800 !important;
	margin-bottom: 1.5rem;
	line-height: 1 !important;
}

@media (min-width: 1024px) {
	main .wp-block-group h2,
	main .wp-block-group h2.has-large-font-size,
	main .wp-block-group .wp-block-heading.has-large-font-size {
		font-size: 3rem !important; /* 48px */
	}
}

/* Centered H2 with underline - only on teal/cream background sections, not white (legal pages) */
.wp-block-group.alignfull.has-teal-darker-background-color h2.has-text-align-center::after,
.wp-block-group.alignfull.has-teal-dark-background-color h2.has-text-align-center::after,
.wp-block-group.alignfull.has-cream-background-color h2.has-text-align-center::after,
.wp-block-group.alignfull.has-white-background-color > h2.has-text-align-center::after,
.wp-block-cover h1.has-text-align-center::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: #3BA99C;
	margin: 8px auto 0;
	border-radius: 2px;
}

/* White underline on dark backgrounds */
.wp-block-group.alignfull.has-teal-darker-background-color h2.has-text-align-center::after,
.wp-block-group.alignfull.has-teal-dark-background-color h2.has-text-align-center::after {
	background: rgba(255, 255, 255, 0.3);
}

/* No underline on page-level content (legal docs, long-form text) */
.wp-block-post-content > .wp-block-group h2::after {
	display: none;
}

/* Teal underline class */
.teal-underline {
	position: relative;
}

.teal-underline::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: #3BA99C;
}

/* Section body paragraphs: text-lg = 18px, #374151, line-height 1.625 */
main .wp-block-group.alignfull > .wp-block-paragraph:not(.has-small-font-size),
main .wp-block-group.alignfull > .wp-block-group > .wp-block-paragraph:not(.has-small-font-size) {
	font-size: 1.125rem !important; /* 18px */
	line-height: 1.625 !important;
	color: #374151;
}

/* H3: text-2xl = 24px, weight 700 */
main .wp-block-group h3 {
	font-size: 1.5rem; /* 24px */
	font-weight: 700;
	margin-bottom: 1rem;
}

/* Story/white section H2: text-3xl/lg:text-4xl = 30px/36px, weight 800, line-height 1.25 */
main .wp-block-group.alignfull.has-white-background-color h2 {
	font-size: 1.875rem !important; /* 30px */
	font-weight: 800 !important;
	line-height: 1.25 !important;
}

@media (min-width: 1024px) {
	main .wp-block-group.alignfull.has-white-background-color h2 {
		font-size: 2.25rem !important; /* 36px */
	}
}

/* Story body: primary 18px #374151, secondary 16px #4B5563 */
main .wp-block-group.alignfull.has-white-background-color p {
	line-height: 1.625;
}

/* Mission H2: text-3xl/lg:text-4xl = 30px/36px, weight 700 */
main .wp-block-group.alignfull.has-teal-darker-background-color h2 {
	font-size: 1.875rem !important; /* 30px */
	font-weight: 700 !important;
	line-height: 1.1 !important;
}

@media (min-width: 1024px) {
	main .wp-block-group.alignfull.has-teal-darker-background-color h2 {
		font-size: 2.25rem !important; /* 36px */
	}
}

/* Override WP generated has-large-font-size for mission */
main .wp-block-group.alignfull.has-teal-darker-background-color .has-large-font-size {
	font-size: 2.25rem !important;
}

/* Mission body: text-xl/lg:text-2xl = 20px/24px, white/90, line-height 1.625 */
main .wp-block-group.alignfull.has-teal-darker-background-color > .wp-block-paragraph,
main .wp-block-group.alignfull.has-teal-darker-background-color > .wp-block-group > .wp-block-paragraph {
	font-size: 1.25rem !important; /* 20px */
	line-height: 1.625 !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

@media (min-width: 1024px) {
	main .wp-block-group.alignfull.has-teal-darker-background-color > .wp-block-paragraph,
	main .wp-block-group.alignfull.has-teal-darker-background-color > .wp-block-group > .wp-block-paragraph {
		font-size: 1.5rem !important; /* 24px */
	}
}

/* Helpline banner: H2 24px/lg 30px, body 18px */
.wp-block-group.has-green-background-color h2 {
	font-size: 1.5rem; /* 24px */
	font-weight: 700;
	color: #ffffff;
}

@media (min-width: 1024px) {
	.wp-block-group.has-green-background-color h2 {
		font-size: 1.875rem; /* 30px */
	}
}

.wp-block-group.has-green-background-color p {
	font-size: 1.125rem; /* 18px */
	color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   DARK BACKGROUND TEXT
   ========================================== */

.has-teal-darker-background-color,
.has-teal-dark-background-color,
.has-slate-background-color {
	color: #ffffff;
}

.has-teal-darker-background-color h1, .has-teal-darker-background-color h2,
.has-teal-darker-background-color h3, .has-teal-darker-background-color h4,
.has-teal-darker-background-color p, .has-teal-darker-background-color li,
.has-teal-dark-background-color h1, .has-teal-dark-background-color h2,
.has-teal-dark-background-color h3, .has-teal-dark-background-color h4,
.has-teal-dark-background-color p, .has-teal-dark-background-color li {
	color: #ffffff;
}

.has-green-background-color h2,
.has-green-background-color p {
	color: #ffffff;
}

/* ==========================================
   SERVICE CARDS - only 3-column layouts in cream sections
   reference: bg-white rounded-xl p-8 shadow-lg border-t-4
   H3: text-2xl=24px bold, P: text-base=16px #4B5563 leading-relaxed
   ========================================== */

/* Service cards are styled inline in the DB content (HTML blocks with their own
   background, border-top, box-shadow, and SVG icons). Reset column wrapper styling. */
/* Homepage service cards - columns without inner groups get transparent treatment */
.wp-block-group.has-cream-background-color > .wp-block-columns > .wp-block-column {
	min-height: auto;
}

/* ==========================================
   SERVICE CARD ICONS (CSS-generated to match redesign)
   ========================================== */

.service-card {
	position: relative;
	padding-top: 5rem !important;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 1.5rem;
	left: 2rem;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #1E6B6B;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238FD18F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M3 6l3 1m0 0l-3 9a5 5 0 006 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5 5 0 006 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3'/%3E%3C/svg%3E");
	background-size: 28px;
	background-position: center;
	background-repeat: no-repeat;
}

.service-card--counseling::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238FD18F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E");
}

.service-card--resources::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%238FD18F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
}

/* Stronger card hover to match redesign */
.service-card:hover {
	transform: translateY(-8px) !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================
   MEMORIAL BADGE OVERLAY
   ========================================== */

.story-image-col {
	position: relative !important;
}

.story-image-col > .wp-block-group.has-teal-darker-background-color {
	position: absolute !important;
	bottom: -12px;
	right: -12px;
	z-index: 10;
	padding: 1rem 1.5rem !important;
	border-radius: 12px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	margin-top: 0 !important;
}

.story-image-col > .wp-block-image {
	border-radius: 16px !important;
	overflow: hidden;
}

.story-image-col > .wp-block-image img {
	border-radius: 16px !important;
}

@media (max-width: 768px) {
	.story-image-col > .wp-block-group.has-teal-darker-background-color {
		position: relative !important;
		bottom: auto;
		right: auto;
		margin-top: -1rem !important;
	}
}

/* Stats override */
.stats-grid .wp-block-column::before { display: none !important; }
.wp-block-group.has-cream-background-color .wp-block-columns.stats-grid .wp-block-column {
	padding: 1rem; min-height: auto;
}

.stats-number {
	font-size: 1.875rem; /* 30px */
	font-weight: 700;
	font-family: 'Montserrat', sans-serif;
}

.stats-label {
	font-size: 0.875rem; /* 14px */
	color: #4b5563;
}

/* ==========================================
   ISSUE CARDS - reference: p-8 rounded-xl shadow-md border-l-4
   H3: text-xl=20px bold, P: #4B5563 leading-relaxed
   ========================================== */

.issue-card {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
	border-left: 4px solid #3BA99C;
	margin-bottom: 1.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.issue-card:last-child { margin-bottom: 0; }
.issue-card.border-green { border-left-color: #5BBF5B; }
.issue-card.border-teal-dark { border-left-color: #2D8A7F; }
.issue-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

.issue-card h3 { font-size: 1.25rem; font-weight: 700; color: #2c3e50; margin-bottom: 0.75rem; }
.issue-card p { color: #4b5563; line-height: 1.625; font-size: 1rem; }

.wp-block-columns:has(.issue-card) { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) {
	.wp-block-columns:has(.issue-card) { grid-template-columns: repeat(2, 1fr); }
}

/* Stats panel in Why We Fight: bg teal-darker p-10 rounded-2xl */
.wp-block-column.has-teal-dark-background-color {
	background: #2D8A7F;
	padding: 2.5rem 2rem;
	border-radius: 16px;
}

.wp-block-column.has-teal-dark-background-color h3 { color: #8FD18F; font-size: 1.5rem; font-weight: 700; }
.wp-block-column.has-teal-dark-background-color p { color: #ffffff; line-height: 1.625; }
.wp-block-column.has-teal-dark-background-color li { color: #ffffff; line-height: 1.625; margin-bottom: 0.75rem; }

/* ==========================================
   MEDIA TEXT BLOCKS - gap-16=64px
   ========================================== */

.wp-block-media-text {
	gap: 64px;
	align-items: center;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-media-text__media img { border-radius: 16px; }
.wp-block-media-text__content p { line-height: 1.625; }

@media (max-width: 768px) {
	.wp-block-media-text { gap: 2rem; }
}

/* ==========================================
   CONTACT SIDEBAR - 16px text, 24px title
   ========================================== */

.wp-block-column .wp-block-group.has-teal-darker-background-color {
	border-radius: 16px;
	padding: 2rem;
}

.wp-block-column .wp-block-group.has-teal-darker-background-color h3 {
	font-size: 1.5rem !important; /* 24px */
	font-weight: 700 !important;
}

.wp-block-column .wp-block-group.has-teal-darker-background-color p {
	font-size: 1rem !important; /* 16px */
	line-height: 1.6 !important;
}

/* ==========================================
   CONTACT FORM
   ========================================== */

.contact-form, .contact-form * { box-sizing: border-box; }
.contact-form { overflow: hidden; max-width: 100%; }
.contact-form input, .contact-form textarea, .contact-form button { max-width: 100%; }

/* ==========================================
   BUTTONS - default: px-6=24px py-3=12px rounded-md=6px
   ========================================== */

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wp-block-buttons {
	gap: 1rem;
	justify-content: center;
}

/* ==========================================
   EMBEDS
   ========================================== */

.wp-block-embed iframe {
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   FOOTER - py-12=48px, links 14px white/70, H4 bold green-light
   ========================================== */

.footer-logo img {
	filter: brightness(0) invert(1);
}

.is-style-no-bullets {
	list-style: none;
	padding-left: 0;
}

footer.wp-block-template-part a,
footer.wp-block-template-part .has-link-color a,
footer.wp-block-template-part .wp-block-list li a {
	text-decoration: none !important;
	color: rgba(255, 255, 255, 0.7) !important;
	font-size: 14px;
	transition: color 0.2s ease;
}

footer.wp-block-template-part a:hover,
footer.wp-block-template-part .has-link-color a:hover,
footer.wp-block-template-part .wp-block-list li a:hover {
	color: #5CBFB3 !important;
	text-decoration: none !important;
}

/* Social icons: white on dark backgrounds */
.has-teal-darker-background-color .wp-block-social-links .wp-social-link,
.has-teal-dark-background-color .wp-block-social-links .wp-social-link,
.has-slate-background-color .wp-block-social-links .wp-social-link {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #ffffff !important;
	transition: background-color 0.2s ease;
}

.has-teal-darker-background-color .wp-block-social-links .wp-social-link:hover,
.has-teal-dark-background-color .wp-block-social-links .wp-social-link:hover,
.has-slate-background-color .wp-block-social-links .wp-social-link:hover {
	background: rgba(255, 255, 255, 0.3) !important;
}

.has-teal-darker-background-color .wp-block-social-links .wp-social-link svg,
.has-teal-dark-background-color .wp-block-social-links .wp-social-link svg,
.has-slate-background-color .wp-block-social-links .wp-social-link svg {
	fill: #ffffff !important;
}

footer.wp-block-template-part > .wp-block-group > .wp-block-group.alignwide {
	gap: 2rem;
}

footer.wp-block-template-part .wp-block-columns {
	flex-grow: 1;
	gap: 2rem !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

footer .wp-block-separator,
footer.wp-block-template-part .wp-block-separator {
	border-color: rgba(255, 255, 255, 0.1) !important;
	background-color: rgba(255, 255, 255, 0.1) !important;
	opacity: 1 !important;
}

/* ==========================================
   COLUMNS GENERAL
   ========================================== */

.wp-block-columns { gap: 2rem; }
@media (max-width: 781px) { .wp-block-columns { flex-direction: column; } }

/* Equal height columns - make cards stretch to fill */
.wp-block-columns > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns > .wp-block-column > .wp-block-group {
	flex: 1;
}

/* Columns that ARE cards (border-left style) stretch naturally */
.wp-block-column[style*="border-left"] {
	display: flex;
	flex-direction: column;
}

/* ==========================================
   CONTENT CARDS (podcast episodes, resource cards, etc.)
   ========================================== */

/* White cards inside cream sections get shadow and hover */
.has-cream-background-color .wp-block-group.has-white-background-color {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.has-cream-background-color .wp-block-group.has-white-background-color:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* White cards inside dark sections (stats, etc.) */
.has-teal-darker-background-color .wp-block-group.has-white-background-color {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   BOOKING AGENT
   ========================================== */

.dec-booking {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.08);
	padding: 2rem;
	box-sizing: border-box;
}

.dec-booking h3 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wp--preset--color--slate, #2c3e50);
	margin-bottom: 0.25rem;
	text-align: center;
}

.dec-booking__hint {
	color: #6b7280;
	font-size: 0.9rem;
	text-align: center;
	margin-bottom: 1.5rem;
}

/* Step indicators */
.dec-booking__steps {
	margin-bottom: 2rem;
}

.dec-booking__step-indicators {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 0.5rem;
}

.dec-step-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #e5e7eb;
	color: #9ca3af;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
	font-weight: 700;
	transition: all 0.3s ease;
}

.dec-step-dot.active,
.dec-step-dot.current {
	background: var(--wp--preset--color--teal, #3BA99C);
	color: #fff;
}

.dec-step-line {
	flex: 1;
	max-width: 80px;
	height: 2px;
	background: #e5e7eb;
}

.dec-booking__step-labels {
	display: flex;
	justify-content: center;
	gap: 3rem;
	font-size: 0.8rem;
	color: #9ca3af;
}

.dec-booking__step-labels span.active {
	color: var(--wp--preset--color--teal, #3BA99C);
	font-weight: 600;
}

/* Calendar */
.dec-booking__calendar {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}

.dec-cal__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: var(--wp--preset--color--teal, #3BA99C);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
}

.dec-cal__nav button {
	background: rgba(255,255,255,0.2);
	border: none;
	color: #fff;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-size: 1.1rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.dec-cal__nav button:hover {
	background: rgba(255,255,255,0.35);
}

.dec-cal__header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	padding: 0.75rem 0.5rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
}

.dec-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	padding: 0 0.5rem 0.75rem;
	gap: 4px;
}

.dec-cal__day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: none;
	border-radius: 8px;
	font-size: 0.9rem;
	cursor: default;
	color: #374151;
	font-weight: 500;
}

.dec-cal__day--empty {
	visibility: hidden;
}

.dec-cal__day--thursday {
	background: #ecfdf5;
	color: var(--wp--preset--color--teal, #3BA99C);
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.dec-cal__day--thursday:hover:not(:disabled) {
	background: var(--wp--preset--color--teal, #3BA99C);
	color: #fff;
	transform: scale(1.1);
}

.dec-cal__day--partial {
	background: #fef3c7;
	color: #92400e;
}

.dec-cal__day--partial:hover:not(:disabled) {
	background: #f59e0b;
	color: #fff;
}

.dec-cal__day--disabled {
	color: #d1d5db;
	cursor: not-allowed;
}

/* Time buttons */
.dec-booking__times {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.dec-time-btn {
	flex: 1;
	max-width: 200px;
	padding: 1.25rem 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
}

.dec-time-btn:hover:not(:disabled) {
	border-color: var(--wp--preset--color--teal, #3BA99C);
	background: #ecfdf5;
}

.dec-time-btn:disabled,
.dec-time-btn--taken {
	opacity: 0.4;
	cursor: not-allowed;
	text-decoration: line-through;
}

.dec-time-btn__time {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wp--preset--color--slate, #2c3e50);
}

.dec-time-btn__label {
	display: block;
	font-size: 0.8rem;
	color: #6b7280;
	margin-top: 0.25rem;
}

/* Form fields */
.dec-booking form fieldset {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.dec-booking form legend {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--teal, #3BA99C);
	padding: 0 0.5rem;
}

.dec-booking__field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 480px) {
	.dec-booking__field-row { grid-template-columns: 1fr; }
}

.dec-booking__field {
	margin-bottom: 0.75rem;
}

.dec-booking__field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.35rem;
}

.dec-booking__field input,
.dec-booking__field textarea {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.95rem;
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.dec-booking__field input:focus,
.dec-booking__field textarea:focus {
	border-color: var(--wp--preset--color--teal, #3BA99C);
	outline: none;
	box-shadow: 0 0 0 3px rgba(59,169,156,0.15);
}

/* Buttons */
.dec-booking__submit {
	width: 100%;
	padding: 0.9rem;
	background: var(--wp--preset--color--teal, #3BA99C);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.dec-booking__submit:hover {
	background: var(--wp--preset--color--teal-dark, #2D8A7F);
	transform: translateY(-1px);
}

.dec-booking__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.dec-booking__back {
	display: block;
	margin: 1rem auto 0;
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.dec-booking__back:hover {
	color: var(--wp--preset--color--teal, #3BA99C);
}

/* Success state */
.dec-booking__success {
	text-align: center;
	padding: 2rem 0;
}

.dec-booking__check {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #059669;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

/* ==========================================
   FAQ / DETAILS ELEMENTS
   ========================================== */

details.wp-block-details {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 0;
	margin-bottom: 0.75rem;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

details.wp-block-details:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

details.wp-block-details[open] {
	border-color: var(--wp--preset--color--teal, #3BA99C);
}

details.wp-block-details summary {
	padding: 1.25rem 1.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--slate, #2c3e50);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

details.wp-block-details summary::after {
	content: '+';
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--wp--preset--color--teal, #3BA99C);
	transition: transform 0.2s ease;
}

details.wp-block-details[open] summary::after {
	content: '-';
}

details.wp-block-details summary::-webkit-details-marker {
	display: none;
}

details.wp-block-details > *:not(summary) {
	padding: 0 1.5rem 1.25rem;
	color: #4b5563;
	line-height: 1.7;
}

/* ==========================================
   BOOKING WIDGET SPACING
   ========================================== */

.dec-booking {
	margin-top: 1rem;
}

.dec-booking h3 {
	margin-top: 0;
}

/* ==========================================
   FOCUS STATES - keyboard accessibility
   ========================================== */

*:focus-visible {
	outline: 3px solid var(--wp--preset--color--teal, #3BA99C);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ==========================================
   CURSOR - interactive elements
   ========================================== */

.wp-block-button__link,
.wp-block-navigation-item__content,
.wp-block-navigation-submenu__toggle,
a[href],
button,
[role="button"] {
	cursor: pointer;
}

/* ==========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
	from { opacity: 0; transform: translateX(-50%) scale(0.8); }
	to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes slideInLeft {
	from { opacity: 0; transform: translateX(-32px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
	from { opacity: 0; transform: translateX(32px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes underlineGrow {
	from { width: 0; }
	to { width: 60px; }
}

/* Scroll-reveal: only hide elements when JS is ready (body gets .scroll-reveal class) */
/* Scroll-reveal: JS adds .sr-pending to elements before they're in view,
   then .sr-visible when they scroll in. Content is always visible by default. */
.sr-pending {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sr-pending.sr-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered delays for cards/columns */
.sr-pending[data-sr-delay="1"] { transition-delay: 100ms; }
.sr-pending[data-sr-delay="2"] { transition-delay: 200ms; }
.sr-pending[data-sr-delay="3"] { transition-delay: 300ms; }
.sr-pending[data-sr-delay="4"] { transition-delay: 400ms; }

/* Headings scale up subtly */
.wp-block-heading.sr-pending {
	transform: translateY(20px) scale(0.98);
}

.wp-block-heading.sr-pending.sr-visible {
	transform: translateY(0) scale(1);
}

/* Images slide in */
.wp-block-image.sr-pending {
	transform: translateX(-20px);
}

.wp-block-image.sr-pending.sr-visible {
	transform: translateX(0);
}

/* Cover blocks scale in */
.wp-block-cover.sr-pending {
	transform: scale(0.97);
}

.wp-block-cover.sr-pending.sr-visible {
	transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
	.sr-pending {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ==========================================
   HOVER & TRANSITION POLISH
   ========================================== */

/* Buttons: smooth lift on hover */
.wp-block-button__link {
	transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, background-color 0.2s ease;
}

/* Hero buttons: glow on hover */
.wp-block-cover.hero-section .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(59, 169, 156, 0.35);
}

.wp-block-cover.hero-section .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

/* DONATE button: lift + shadow on hover */
.wp-block-navigation-item__donate .wp-block-navigation-item__label {
	transition: background-color 0.2s ease, transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.wp-block-navigation-item__donate:hover .wp-block-navigation-item__label {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 169, 156, 0.3);
}

/* Footer links: smooth underline on hover */
footer.wp-block-template-part a {
	position: relative;
}

footer.wp-block-template-part .wp-block-list li a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: #5CBFB3;
	transition: width 0.2s ease-out;
}

footer.wp-block-template-part .wp-block-list li a:hover::after {
	width: 100%;
}

/* Card links: arrow slide on hover */
.wp-block-group.has-cream-background-color .wp-block-column a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* Issue card border accent widens on hover */
.issue-card {
	transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-left-width 0.2s ease;
}

.issue-card:hover {
	border-left-width: 6px;
}

/* Media-text images: subtle zoom on hover */
.wp-block-media-text__media {
	overflow: hidden;
	border-radius: 16px;
}

.wp-block-media-text__media img {
	transition: transform 0.4s ease-out;
}

.wp-block-media-text:hover .wp-block-media-text__media img {
	transform: scale(1.03);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
	.wp-block-buttons { flex-direction: column; align-items: center; }
	.wp-block-buttons .wp-block-button { width: 100%; max-width: 300px; }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */

#dec-cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #1E6B6B;
	color: #ffffff;
	padding: 0;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	animation: cookieSlideUp 0.4s ease-out;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

#dec-cookie-banner.dec-cookie-hidden {
	transform: translateY(100%);
	opacity: 0;
}

.dec-cookie-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.25rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.dec-cookie-inner p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.dec-cookie-inner a {
	color: #8FD18F;
	text-decoration: underline;
}

.dec-cookie-inner a:hover {
	color: #ffffff;
}

.dec-cookie-buttons {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
}

.dec-cookie-btn {
	padding: 0.6rem 1.5rem;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, transform 0.1s ease;
}

.dec-cookie-btn:active {
	transform: scale(0.97);
}

.dec-cookie-btn--accept {
	background: #5BBF5B;
	color: #ffffff;
}

.dec-cookie-btn--accept:hover {
	background: #8FD18F;
}

.dec-cookie-btn--decline {
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.dec-cookie-btn--decline:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

@keyframes cookieSlideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@media (max-width: 768px) {
	.dec-cookie-inner {
		flex-direction: column;
		text-align: center;
		padding: 1.25rem 1.5rem;
		gap: 1rem;
	}

	.dec-cookie-buttons {
		width: 100%;
		justify-content: center;
	}
}
