/* ==========================================================================
   RISE Foundation — theme styles
   Brand vars (--rise-primary / --rise-accent / --rise-dark) are printed
   inline from the Customizer; these are the fallbacks.
   ========================================================================== */

:root {
	--rise-primary: #5b1a9e;
	--rise-accent: #a020f0;
	--rise-dark: #2a0b4d;
	--rise-ink: #1f1530;
	--rise-muted: #6b6280;
	--rise-line: #ebe5f3;
	--rise-tint: #f6f2fb;
	--rise-white: #ffffff;
	--rise-radius: 10px;
	--rise-max: 1200px;
	--rise-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--rise-header-h: 84px;
	--rise-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--rise-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--rise-ink);
	background: var(--rise-white);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--rise-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rise-accent); }

:focus-visible { outline: 3px solid var(--rise-accent); outline-offset: 2px; }

.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 !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 100000; padding: 12px 18px;
	background: var(--rise-white); color: var(--rise-primary);
	border-radius: 6px; box-shadow: 0 4px 20px rgba(0, 0, 0, .2); font-weight: 600;
}

.rise-container {
	width: 100%;
	max-width: var(--rise-max);
	margin-inline: auto;
	padding-inline: 24px;
}

.rise-icon { flex: none; width: 1.1em; height: 1.1em; }

.rise-eyebrow {
	margin: 0 0 .5rem;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rise-accent);
}

/* Buttons ---------------------------------------------------------------- */
.rise-btn {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .8em 1.4em;
	border-radius: 8px;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s var(--rise-ease), box-shadow .2s var(--rise-ease), background .2s;
}
.rise-btn .rise-icon { transition: transform .2s var(--rise-ease); }
.rise-btn:hover .rise-icon { transform: translateX(3px); }

.rise-btn--primary {
	color: var(--rise-white);
	background: linear-gradient(135deg, var(--rise-accent) 0%, var(--rise-primary) 100%);
	box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--rise-primary) 70%, transparent);
}
.rise-btn--primary:hover {
	color: var(--rise-white);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--rise-primary) 80%, transparent);
}

.rise-btn--light,
.rise-footer .rise-btn--light { color: var(--rise-primary); background: var(--rise-white); }
.rise-btn--light:hover,
.rise-footer .rise-btn--light:hover { color: var(--rise-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .35); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.rise-header { position: relative; z-index: 999; }

.rise-has-sticky-header .rise-header { position: sticky; top: 0; }
.admin-bar.rise-has-sticky-header .rise-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar.rise-has-sticky-header .rise-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar.rise-has-sticky-header .rise-header { top: 0; }
}

/* Top bar */
.rise-topbar {
	background: var(--rise-dark);
	color: rgba(255, 255, 255, .88);
	font-size: .82rem;
	transition: margin-top .3s var(--rise-ease);
}
.rise-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}
.rise-topbar__text { margin: 0; letter-spacing: .02em; }
.rise-topbar__meta { display: flex; align-items: center; gap: 18px; }
.rise-topbar__meta > a {
	display: inline-flex; align-items: center; gap: 6px;
	color: inherit; text-decoration: none;
}
.rise-topbar__meta > a:hover { color: var(--rise-white); }
.rise-topbar .rise-social a { width: 26px; height: 26px; background: transparent; }
.rise-topbar .rise-social .rise-icon { width: 15px; height: 15px; }

/* Nav bar */
.rise-navbar {
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--rise-line);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	transition: box-shadow .3s var(--rise-ease);
}
.rise-navbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--rise-header-h);
	transition: min-height .3s var(--rise-ease);
}
.rise-header.is-scrolled .rise-navbar { box-shadow: 0 8px 30px -12px rgba(42, 11, 77, .25); }
.rise-header.is-scrolled .rise-navbar__inner { min-height: 68px; }

/* Logo */
.rise-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--rise-ink); }
.rise-logo:hover { color: var(--rise-ink); }
.rise-logo__img { display: block; max-height: 64px; width: auto; transition: max-height .3s var(--rise-ease); }
.rise-header.is-scrolled .rise-logo__img { max-height: 50px; }

.rise-logo__mark {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	color: var(--rise-white);
	background: linear-gradient(140deg, var(--rise-accent), var(--rise-primary) 70%);
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--rise-primary) 80%, transparent);
}
.rise-logo__mark .rise-icon { width: 26px; height: 26px; }

.rise-logo__words { display: flex; flex-direction: column; line-height: 1.1; }
.rise-logo__name { white-space: nowrap; font-size: 1.28rem; font-weight: 500; color: var(--rise-dark); letter-spacing: -.01em; }
.rise-logo__name strong {
	font-weight: 800;
	letter-spacing: .02em;
	background: linear-gradient(135deg, var(--rise-accent), var(--rise-primary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-right: .15em;
}
.rise-logo__tagline {
	margin-top: 5px;
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rise-muted);
}

/* Menu */
.rise-nav { display: flex; align-items: center; gap: 28px; }
.rise-nav__menu,
.rise-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.rise-nav__menu { display: flex; align-items: center; gap: 4px; }
.rise-nav__menu > li { position: relative; }
.rise-nav__menu a {
	position: relative;
	display: block;
	padding: 10px 14px;
	color: var(--rise-dark);
	font-weight: 600;
	font-size: .95rem;
	text-decoration: none;
	border-radius: 6px;
	white-space: nowrap;
	transition: color .2s;
}
@media (min-width: 1025px) and (max-width: 1200px) {
	.rise-nav { gap: 16px; }
	.rise-nav__menu a { padding-inline: 10px; font-size: .9rem; }
	.rise-nav__menu > li > a::after { left: 10px; right: 10px; }
	.rise-logo__tagline { display: none; }
}
.rise-nav__menu > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--rise-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--rise-ease);
}
.rise-nav__menu > li > a:hover,
.rise-nav__menu > .current-menu-item > a,
.rise-nav__menu > .current-menu-ancestor > a,
.rise-nav__menu > .current_page_item > a { color: var(--rise-primary); }
.rise-nav__menu > li > a:hover::after,
.rise-nav__menu > .current-menu-item > a::after,
.rise-nav__menu > .current-menu-ancestor > a::after,
.rise-nav__menu > .current_page_item > a::after { transform: scaleX(1); }

/* Dropdown caret */
.rise-nav__menu > .menu-item-has-children > a { padding-right: 28px; }
.rise-nav__menu > .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}

/* Dropdowns (desktop) */
.rise-nav__menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	padding: 8px;
	background: var(--rise-white);
	border: 1px solid var(--rise-line);
	border-radius: var(--rise-radius);
	box-shadow: 0 18px 40px -16px rgba(42, 11, 77, .3);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s var(--rise-ease), visibility .2s;
}
.rise-nav__menu li:hover > .sub-menu,
.rise-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.rise-nav__menu .sub-menu a { font-weight: 500; padding: 9px 12px; }
.rise-nav__menu .sub-menu a:hover { background: var(--rise-tint); color: var(--rise-primary); }

/* Hamburger */
.rise-menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--rise-line);
	border-radius: 10px;
	background: var(--rise-white);
	color: var(--rise-primary);
	cursor: pointer;
}
.rise-menu-toggle__bars { position: relative; display: block; width: 20px; height: 14px; margin: auto; }
.rise-menu-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .25s var(--rise-ease), opacity .2s, top .25s var(--rise-ease);
}
.rise-menu-toggle__bars span:nth-child(1) { top: 0; }
.rise-menu-toggle__bars span:nth-child(2) { top: 6px; }
.rise-menu-toggle__bars span:nth-child(3) { top: 12px; }
.rise-menu-toggle[aria-expanded="true"] .rise-menu-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.rise-menu-toggle[aria-expanded="true"] .rise-menu-toggle__bars span:nth-child(2) { opacity: 0; }
.rise-menu-toggle[aria-expanded="true"] .rise-menu-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 1024px) {
	.rise-menu-toggle { display: inline-block; }

	.rise-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 16px 24px 24px;
		background: var(--rise-white);
		border-bottom: 1px solid var(--rise-line);
		box-shadow: 0 24px 40px -20px rgba(42, 11, 77, .35);
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--rise-ease), visibility .25s;
	}
	.rise-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

	.rise-nav__menu { flex-direction: column; align-items: stretch; gap: 0; }
	.rise-nav__menu > li { border-bottom: 1px solid var(--rise-line); }
	.rise-nav__menu a { padding: 14px 4px; font-size: 1.02rem; }
	.rise-nav__menu > li > a::after { display: none; }
	.rise-nav__menu > .menu-item-has-children > a::before { display: none; }
	.rise-nav__menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		padding: 0 0 10px 14px;
		border: 0;
		box-shadow: none;
	}
	.rise-nav__cta { justify-content: center; }
}

@media (max-width: 720px) {
	.rise-topbar__text { font-size: .76rem; }
	.rise-topbar__meta > a span { display: none; }
	.rise-logo__name { font-size: 1.05rem; }
	.rise-logo__tagline { display: none; }
	.rise-logo__mark { width: 40px; height: 40px; }
	.rise-navbar__inner { min-height: 70px; }
}
@media (max-width: 520px) {
	.rise-topbar__inner { justify-content: center; text-align: center; padding-block: 6px; }
	.rise-topbar__meta { display: none; }
}

/* ==========================================================================
   CONTENT (non-Elementor pages)
   ========================================================================== */
.rise-main--elementor { padding: 0; }

.rise-page-hero {
	padding: 64px 0 56px;
	background:
		radial-gradient(900px 300px at 85% -20%, color-mix(in srgb, var(--rise-accent) 22%, transparent), transparent 70%),
		linear-gradient(180deg, var(--rise-tint), var(--rise-white));
	border-bottom: 1px solid var(--rise-line);
}
.rise-page-hero__title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.1rem);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: var(--rise-primary);
}

.rise-content { padding-block: 56px 80px; }
.rise-entry { max-width: 820px; }
.rise-entry h2, .rise-entry h3, .rise-entry h4 { color: var(--rise-dark); line-height: 1.25; }
.rise-entry__thumb { margin: 0 0 32px; }
.rise-entry__thumb img { border-radius: var(--rise-radius); }

.rise-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.rise-card { border: 1px solid var(--rise-line); border-radius: var(--rise-radius); overflow: hidden; background: var(--rise-white); }
.rise-card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rise-card__body { padding: 22px 24px 26px; }
.rise-card__title { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.rise-card__title a { color: var(--rise-dark); text-decoration: none; }
.rise-card__title a:hover { color: var(--rise-primary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.rise-footer { color: rgba(255, 255, 255, .78); background: var(--rise-dark); font-size: .95rem; }
.rise-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.rise-footer a:hover { color: var(--rise-white); }

/* CTA band */
.rise-footer-cta {
	position: relative;
	overflow: hidden;
	color: var(--rise-white);
	background: linear-gradient(120deg, var(--rise-primary) 0%, var(--rise-accent) 100%);
}
.rise-footer-cta::before,
.rise-footer-cta::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .14);
	pointer-events: none;
}
.rise-footer-cta::before { width: 420px; height: 420px; right: -120px; top: -220px; }
.rise-footer-cta::after { width: 260px; height: 260px; right: 140px; bottom: -190px; }

.rise-footer-cta__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-block: 56px;
}
.rise-footer-cta .rise-eyebrow { color: rgba(255, 255, 255, .8); }
.rise-footer-cta__title {
	margin: 0;
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: var(--rise-white);
}
.rise-footer-cta__text { margin: 12px 0 0; max-width: 560px; color: rgba(255, 255, 255, .88); }
.rise-footer-cta .rise-btn { flex: none; font-size: 1rem; padding: 1em 1.7em; }

/* Main columns */
.rise-footer__main { padding: 64px 0 48px; }
.rise-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.rise-footer__about p { max-width: 380px; margin: 18px 0 22px; line-height: 1.7; }

.rise-footer .rise-logo { color: var(--rise-white); }
.rise-footer .rise-logo__name { color: var(--rise-white); }
.rise-footer .rise-logo__name strong { background: none; color: var(--rise-white); -webkit-background-clip: border-box; background-clip: border-box; }
.rise-footer .rise-logo__mark { background: rgba(255, 255, 255, .12); box-shadow: none; }
.rise-footer .rise-logo__img { max-height: 60px; }

.rise-footer__heading {
	margin: 4px 0 18px;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rise-white);
}

.rise-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rise-footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s var(--rise-ease); }
.rise-footer__links a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rise-accent);
	opacity: .7;
}
.rise-footer__links a:hover { transform: translateX(3px); }

.rise-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rise-footer__contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.rise-footer__contact .rise-icon { margin-top: 2px; color: color-mix(in srgb, var(--rise-accent) 70%, #fff); }

/* Social */
.rise-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.rise-social a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: rgba(255, 255, 255, .9);
	transition: background .2s, transform .2s var(--rise-ease);
}
.rise-social a:hover { background: var(--rise-accent); color: var(--rise-white); transform: translateY(-2px); }
.rise-social .rise-icon { width: 18px; height: 18px; }

/* Bottom bar */
.rise-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); font-size: .85rem; }
.rise-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 20px;
}
.rise-footer__copy, .rise-footer__credit { margin: 0; color: rgba(255, 255, 255, .62); }
.rise-footer__legal { display: inline-block; margin-left: 8px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .2); }
.rise-footer__bottom-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.rise-footer__legal-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.rise-footer__legal-links a, .rise-footer__credit a { color: rgba(255, 255, 255, .78); }

@media (max-width: 900px) {
	.rise-footer-cta__inner { flex-direction: column; align-items: flex-start; padding-block: 44px; }
	.rise-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.rise-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.rise-footer__grid { grid-template-columns: 1fr; }
	.rise-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
	.rise-footer__legal { display: block; margin: 6px 0 0; padding: 0; border: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 400px) {
	.rise-logo__name { white-space: normal; }
}
