/*
 * BeTended Design Fixes — Phase 2 & 3 corrections
 * Loaded after style.css to override CDN-cached values.
 * Applied: 2026-04-07
 */

/* ==========================================================================
   1. PALETTE TOKENS — corrected brand palette
   ========================================================================== */

:root {
	--bt-primary: #2D6E6E;           /* Deep teal (was indigo #3B3DBF) */
	--bt-primary-light: #3D8A8A;     /* Teal tint (was #5B5DD6) */
	--bt-primary-gradient: linear-gradient(135deg, #2D6E6E, #3D8A8A, #5BA8A8);
	--bt-primary-bg: #e8f5f2;        /* Teal tint bg (was indigo-tint #f0f0ff) */
	--bt-bg-light: #FBF8F2;          /* Warm cream (was cool gray #F6F6FA) */
	--bt-sage: #C5E0D8;              /* Sage/mint accent token (was missing) */
	--bt-warm-gray: #4A4240;         /* Warm dark gray (was missing) */
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY
   ========================================================================== */

/* Force brand fonts on Kadence global variables so header, footer, and
   all Kadence-controlled elements use DM Serif Display + Source Sans 3. */
:root {
	--global-body-font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
	--global-heading-font-family: 'DM Serif Display', Georgia, serif;
}

body {
	font-size: 17px;                  /* North star minimum: 17-18px (was 15px) */
	font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

/* Animated underlines on content links */
a {
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: left bottom;
	transition: color 0.15s ease, background-size 0.3s ease;
	text-decoration: none;
}

a:hover,
a:focus {
	background-size: 100% 2px;
	text-decoration: none;
}

/* Suppress animated underline on UI elements that should not have it */
.betended-btn,
.btn-primary,
.btn-secondary,
.betended-nav__list .menu-item > a,
.betended-filter-pill,
.betended-post-card__badge,
.betended-tag,
.betended-pagination .page-numbers,
.betended-related-card,
.betended-mini-card,
.betended-post-nav__link,
.betended-header__site-name,
.betended-footer__links a,
.bt-optin-sticky__cta {
	background-image: none;
}

/* ==========================================================================
   3. PAGE HERO TITLE — Phase 2 fix
   ========================================================================== */

.betended-page-hero__title {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.05;
	color: var(--bt-primary);
}

/* ==========================================================================
   4. CONTACT PAGE — Phase 2 fixes
   ========================================================================== */

.betended-contact-info-card {
	border-left: 4px solid var(--bt-sage);
}

.betended-contact-form__input:focus,
.betended-contact-form__textarea:focus {
	box-shadow: 0 0 0 3px rgba(197, 224, 216, 0.4);
}

/* ==========================================================================
   5. ARTICLE H1 — Phase 3 fix
   ========================================================================== */

.betended-single-header__title {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.05;
	color: var(--bt-primary);
}

/* ==========================================================================
   6. ARTICLE HERO IMAGE — Phase 3: circular cutout
   ========================================================================== */

.betended-single-image__img {
	width: min(340px, 80vw);
	height: min(340px, 80vw);
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 24px var(--bt-sage);
	display: block;
	margin: 0 auto 2rem;
	max-height: none;
}

/* ==========================================================================
   7. RELATED POSTS GRID — Phase 3: 3-column with circular images
   ========================================================================== */

.betended-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.betended-related-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 0;
	background-color: transparent;
	border-radius: 0;
	transition: transform 0.2s ease;
}

.betended-related-card:hover {
	transform: translateY(-4px);
	box-shadow: none;
}

.betended-related-card__image {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 6px var(--bt-sage);
	flex-shrink: 0;
}

.betended-related-card__placeholder {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	background-color: var(--bt-primary);
	box-shadow: 0 0 0 6px var(--bt-sage);
	flex-shrink: 0;
}

.betended-related-card__content {
	width: 100%;
}

/* ==========================================================================
   8. RESPONSIVE — Related posts grid
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1024px) {
	.betended-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.betended-related__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   9. NEWSLETTER PAGE — class name aliases
   HTML uses alternate class names; these aliases apply correct styles.
   Applied: 2026-04-07
   ========================================================================== */

/* Hero heading aliases */
.bt-nl-hero__title {
	font-family: var(--bt-font-heading);
	font-size: clamp(28px, 4vw, 42px);
	color: var(--bt-white);
	margin-bottom: 1rem;
}

.bt-nl-hero__subtitle {
	font-size: 1.125rem;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.7;
	margin-bottom: 2rem;
}

/* Benefits grid alias */
.bt-nl-benefits__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

/* Benefit card item alias */
.bt-nl-benefit-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.bt-nl-benefit-card strong {
	display: block;
	font-family: var(--bt-font-heading);
	font-size: 18px;
	color: var(--bt-text-dark);
	margin-bottom: 6px;
}

.bt-nl-benefit-card p {
	font-size: 15px;
	color: var(--bt-text-muted);
	line-height: 1.6;
	margin: 0;
}

/* Benefit icon alias */
.bt-nl-benefit-card__icon {
	font-size: 28px;
	flex-shrink: 0;
	line-height: 1;
}

/* Subscribe CTA band alias */
.bt-nl-subscribe {
	background: var(--bt-bg-light);
	text-align: center;
	padding: 4rem 1.5rem;
}

/* CTA button — newsletter page */
.bt-nl-cta-btn {
	display: inline-block;
	font-family: var(--bt-font-body);
	font-weight: 600;
	font-size: 1.125rem;
	padding: 14px 36px;
	border: none;
	border-radius: var(--bt-radius);
	text-decoration: none;
	cursor: pointer;
	background-color: var(--bt-accent);
	color: var(--bt-white);
	transition: background-color 0.2s ease, transform 0.15s ease;
	background-image: none;
}

.bt-nl-cta-btn:hover,
.bt-nl-cta-btn:focus {
	background-color: var(--bt-accent-dark);
	color: var(--bt-white);
	transform: translateY(-1px);
	text-decoration: none;
	background-size: 0%;
}
