/*
Theme Name: Positive Affirmations Center Child
Theme URI: https://positiveaffirmationscenter.com/
Description: Kadence child theme for Positive Affirmations Center — elegant interactive homepage with free affirmation tools, featured articles, a clean Home/Blog navigation and a legal footer menu. Fully responsive.
Author: Positive Affirmations Center
Author URI: https://positiveaffirmationscenter.com/
Template: kadence
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: positiveaffirmations-child
*/

/* =========================================================
   Design tokens
========================================================= */
:root {
	--pac-ink: #2b2540;
	--pac-ink-soft: #5f5878;
	--pac-violet: #6d5fc9;
	--pac-violet-deep: #463a8f;
	--pac-violet-dark: #2e2664;
	--pac-lilac: #f1edfd;
	--pac-gold: #e8a33d;
	--pac-gold-deep: #c9851d;
	--pac-gold-soft: #fdf3e2;
	--pac-rose: #e76e9b;
	--pac-rose-soft: #fdeef4;
	--pac-teal: #2fa39a;
	--pac-teal-soft: #e3f5f3;
	--pac-cream: #fdfbf7;
	--pac-white: #ffffff;
	--pac-border: #e9e2f5;
	--pac-shadow-sm: 0 2px 10px rgba(70, 58, 143, 0.07);
	--pac-shadow: 0 14px 38px rgba(70, 58, 143, 0.12);
	--pac-radius: 18px;
	--pac-radius-sm: 12px;
	--pac-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--pac-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pac-header-h: 72px;
}

html {
	scroll-behavior: smooth;
}

::selection {
	background: var(--pac-violet);
	color: #fff;
}

body {
	font-family: var(--pac-font-ui);
}

/* =========================================================
   Shared bits: container, buttons, a11y
========================================================= */
.pac-container {
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.pac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: var(--pac-font-ui);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pac-btn:hover {
	transform: translateY(-2px);
	text-decoration: none;
}

.pac-btn:focus-visible {
	outline: 3px solid var(--pac-gold);
	outline-offset: 2px;
}

.pac-btn-lg {
	padding: 14px 30px;
	font-size: 1.02rem;
}

.pac-btn-gold {
	background: linear-gradient(135deg, var(--pac-gold), var(--pac-gold-deep));
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(201, 133, 29, 0.32);
}

.pac-btn-gold:hover {
	box-shadow: 0 12px 28px rgba(201, 133, 29, 0.42);
	color: #fff;
}

.pac-btn-violet {
	background: linear-gradient(135deg, var(--pac-violet), var(--pac-violet-deep));
	color: #fff !important;
	box-shadow: 0 8px 22px rgba(70, 58, 143, 0.28);
}

.pac-btn-violet:hover {
	box-shadow: 0 12px 28px rgba(70, 58, 143, 0.4);
	color: #fff;
}

.pac-btn-outline {
	background: transparent;
	border-color: var(--pac-violet);
	color: var(--pac-violet-deep) !important;
}

.pac-btn-outline:hover {
	background: var(--pac-lilac);
}

.pac-btn-ghost {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff !important;
	backdrop-filter: blur(4px);
}

.pac-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.22);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 9999;
	padding: 10px 18px;
	background: var(--pac-violet-deep);
	color: #fff;
	border-radius: 8px;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 12px;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
}

/* =========================================================
   Header
========================================================= */
.pac-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(253, 251, 247, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--pac-border);
	transition: box-shadow 0.25s ease;
}

.pac-header.is-scrolled {
	box-shadow: var(--pac-shadow-sm);
}

.pac-header-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	min-height: var(--pac-header-h);
	display: flex;
	align-items: center;
	gap: 28px;
}

.pac-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--pac-ink);
	font-family: var(--pac-font-display);
	font-size: 1.22rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.pac-logo:hover {
	color: var(--pac-violet-deep);
	text-decoration: none;
}

.pac-logo-mark {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--pac-violet), var(--pac-rose));
	color: #fff;
	font-size: 1.15rem;
	box-shadow: 0 6px 16px rgba(109, 95, 201, 0.35);
	flex: none;
}

.pac-logo-text em {
	font-style: italic;
	color: var(--pac-violet);
}

.pac-nav {
	margin-left: auto;
}

.pac-nav ul {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.pac-nav a {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 999px;
	color: var(--pac-ink);
	font-weight: 600;
	font-size: 0.97rem;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.pac-nav a:hover {
	background: var(--pac-lilac);
	color: var(--pac-violet-deep);
	text-decoration: none;
}

.pac-nav a.is-active {
	background: var(--pac-lilac);
	color: var(--pac-violet-deep);
}

.pac-header-cta {
	flex: none;
}

/* Burger */
.pac-burger {
	display: none;
	flex: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	padding: 10px;
	margin-left: auto;
	background: transparent;
	border: 1px solid var(--pac-border);
	border-radius: 10px;
	cursor: pointer;
}

.pac-burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--pac-ink);
	border-radius: 2px;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.pac-burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.pac-burger.is-open span:nth-child(2) {
	opacity: 0;
}

.pac-burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.pac-mobile-menu {
	border-top: 1px solid var(--pac-border);
	background: var(--pac-cream);
}

.pac-mobile-menu nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 24px 20px;
}

.pac-mobile-menu nav > a {
	padding: 13px 14px;
	border-radius: var(--pac-radius-sm);
	color: var(--pac-ink);
	font-weight: 600;
	font-size: 1.05rem;
	text-decoration: none;
}

.pac-mobile-menu nav > a:hover,
.pac-mobile-menu nav > a.is-active {
	background: var(--pac-lilac);
	color: var(--pac-violet-deep);
}

.pac-mobile-menu nav > a.pac-btn {
	margin-top: 8px;
	justify-content: center;
	color: #fff;
}

@media (max-width: 880px) {
	.pac-nav,
	.pac-header-cta {
		display: none;
	}

	.pac-burger {
		display: flex;
	}

	.pac-header-inner {
		gap: 14px;
	}
}

@media (max-width: 400px) {
	.pac-logo {
		font-size: 1.05rem;
	}

	.pac-logo-mark {
		width: 32px;
		height: 32px;
		font-size: 1rem;
	}
}

/* =========================================================
   Footer
========================================================= */
.pac-footer {
	background: linear-gradient(160deg, var(--pac-violet-dark), #221c4d 60%, #1b163d);
	color: #cfc9ea;
	margin-top: 0;
}

.pac-footer-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 64px 24px 28px;
}

.pac-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 48px;
}

.pac-logo-footer {
	color: #fff;
	font-size: 1.18rem;
}

.pac-logo-footer:hover {
	color: var(--pac-gold);
}

.pac-logo-footer .pac-logo-text em {
	color: #cdb9ff;
}

.pac-footer-tagline {
	margin: 16px 0 10px;
	max-width: 360px;
	line-height: 1.65;
	font-size: 0.95rem;
}

.pac-footer-mood {
	font-family: var(--pac-font-display);
	font-style: italic;
	color: #b8aee6;
	font-size: 0.95rem;
}

.pac-footer-col h4 {
	color: #fff;
	font-family: var(--pac-font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 6px 0 16px;
}

.pac-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pac-footer-links li {
	margin: 0 0 10px;
}

.pac-footer-links a {
	color: #cfc9ea;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.15s ease;
}

.pac-footer-links a:hover {
	color: var(--pac-gold);
	text-decoration: none;
}

.pac-footer-bar {
	margin-top: 52px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: #a59bd4;
}

@media (max-width: 880px) {
	.pac-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px;
	}

	.pac-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 540px) {
	.pac-footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.pac-footer-inner {
		padding-top: 48px;
	}

	.pac-footer-bar {
		flex-direction: column;
		text-align: center;
	}
}

/* =========================================================
   Motion preferences
========================================================= */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.pac-btn,
	.pac-btn:hover {
		transform: none;
		transition: none;
	}
}
