/**
 * Just Word — Header & Footer Styles
 * Matches the brand language established in library.css and single-resources.css
 *
 * @package JustWord Child
 */

/* ── BRAND VARIABLES (mirrored from library.css for consistency) ── */
:root {
	--jw-navy:        #0d2240;
	--jw-navy-mid:    #163352;
	--jw-navy-light:  #1e4a73;
	--jw-orange:      #e87722;
	--jw-orange-lt:   #f5922a;
	--jw-orange-pale: #fff3e8;
	--jw-teal:        #0f6e5e;
	--jw-teal-dk:     #053d36;
	--jw-white:       #ffffff;
	--jw-off-white:   #faf8f4;
	--jw-light:       #f2ede4;
	--jw-border:      #e0d9ce;
	--jw-text:        #1a1208;
	--jw-text-mid:    #3d3020;
	--jw-text-soft:   #6b5e4a;
	--jw-text-hint:   #9c8e7a;
}

/* ──────────────────────────────────────────
   SKIP LINK / A11Y
────────────────────────────────────────── */
.skip-link {
	position: absolute;
	left: -9999px;
	top: -9999px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--jw-navy);
	color: var(--jw-white);
	font-weight: 700;
	font-family: 'Montserrat', system-ui, sans-serif;
}
.skip-link:focus {
	left: 16px;
	top: 16px;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ══════════════════════════════════════════
   SITE HEADER
══════════════════════════════════════════ */
.jw-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 200;
	background: var(--jw-navy);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
	transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.jw-site-header.is-scrolled {
	box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
	border-bottom-color: transparent;
}

.jw-header-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 28px;
	height: 76px;
	display: flex;
	align-items: center;
	gap: 28px;
}

/* Spacer pushes content below the fixed header */
.jw-header-spacer {
	height: 76px;
}

/* ── LOGO ── */
.jw-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: var(--jw-white);
	flex-shrink: 0;
}
.jw-logo-img {
	max-height: 44px;
	width: auto;
	display: block;
	animation: jw-logo-in .5s .05s both;
}
@keyframes jw-logo-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
	.jw-logo-img { animation: none; }
}
.jw-logo-mark {
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.jw-logo-name {
	font-family: 'Merriweather', Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--jw-white);
	letter-spacing: -0.01em;
}
.jw-logo-tag {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .22em;
	color: var(--jw-orange-lt);
	margin-top: 4px;
}

/* ── PRIMARY NAV ── */
.jw-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}
.jw-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.jw-nav-item {
	position: relative;
}

.jw-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: transparent;
	border: none;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: rgba(255, 255, 255, .82);
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
	transition: color .18s ease, background .18s ease;
	white-space: nowrap;
}
.jw-nav-link:hover,
.jw-nav-link:focus-visible,
.jw-nav-item.is-open > .jw-nav-link {
	color: var(--jw-white);
	background: rgba(255, 255, 255, .1);
	outline: none;
}
.jw-caret {
	transition: transform .22s ease;
}
.jw-nav-item.is-open .jw-caret {
	transform: rotate(180deg);
}

/* Active page indicator (subtle orange dot) */
.jw-nav-item .jw-nav-link.is-current::after,
.jw-nav-item.current-menu-item > .jw-nav-link::after {
	content: '';
	position: absolute;
	bottom: 4px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--jw-orange);
}

/* ──────────────────────────────────────────
   DROPDOWN (Extras / Contact)
────────────────────────────────────────── */
.jw-drop {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	min-width: 280px;
	background: var(--jw-white);
	border: 1px solid var(--jw-border);
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(13, 34, 64, .14), 0 4px 12px rgba(13, 34, 64, .06);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.jw-nav-item.is-open .jw-drop {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
}

.jw-drop-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	transition: background .15s ease;
}
.jw-drop-link:hover,
.jw-drop-link:focus-visible {
	background: var(--jw-off-white);
	outline: none;
}
.jw-drop-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.jw-drop-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--jw-navy);
}
.jw-drop-sub {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--jw-text-soft);
	line-height: 1.4;
}
.jw-drop-link:hover .jw-drop-title {
	color: var(--jw-orange);
}

/* ── Rich dropdown variant (Extras, Let's Connect) ──
   Adds a header section + icon column to match mega menu styling. */
.jw-drop--rich {
	min-width: 340px;
	padding: 0;
}
.jw-drop-head {
	padding: 18px 22px 14px;
	border-bottom: 1px solid var(--jw-border);
	background: var(--jw-off-white);
	border-radius: 14px 14px 0 0;
}
.jw-drop-eyebrow {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jw-orange);
	margin-bottom: 6px;
}
.jw-drop-headline {
	font-family: 'Merriweather', Georgia, serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--jw-navy);
}
.jw-drop-headline em {
	font-style: italic;
	color: var(--jw-orange);
}
.jw-drop--rich .jw-drop-link {
	margin: 0 10px;
	align-items: center;
}
.jw-drop--rich .jw-drop-link:first-of-type {
	margin-top: 10px;
}
.jw-drop--rich .jw-drop-link:last-of-type {
	margin-bottom: 10px;
}
.jw-drop-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--jw-white);
	color: var(--jw-navy);
	border: 1px solid var(--jw-border);
	transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.jw-drop-link:hover .jw-drop-icon,
.jw-drop-link:focus-visible .jw-drop-icon {
	color: var(--jw-orange);
	border-color: var(--jw-orange);
	background: var(--jw-white);
}

/* ──────────────────────────────────────────
   MEGA MENU (Shop / Study Plan)
────────────────────────────────────────── */
.jw-mega {
	position: absolute;
	top: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	width: 760px;
	max-width: calc(100vw - 56px);
	background: var(--jw-white);
	border: 1px solid var(--jw-border);
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(13, 34, 64, .16), 0 4px 14px rgba(13, 34, 64, .07);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.jw-nav-item.is-open .jw-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(0);
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}

.jw-mega-inner {
	padding: 28px;
}

.jw-mega-head {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--jw-border);
}
.jw-mega-eyebrow {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--jw-orange);
	margin-bottom: 8px;
}
.jw-mega-title {
	font-family: 'Merriweather', Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--jw-navy);
	margin: 0;
	line-height: 1.3;
}
.jw-mega-title em {
	font-style: italic;
	color: var(--jw-orange);
}

/* ── 4-col grid (Shop / Free Resources). Auto-flows to 2 rows when needed. ── */
.jw-mega-grid {
	display: grid;
	gap: 8px;
}
.jw-mega-grid--4 {
	grid-template-columns: repeat(4, 1fr);
}
/* 3-col variant — used by Free Resources (6 cards = 2 perfect rows of 3). */
.jw-mega-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}
/* CTA card that spans 2 columns — used to fill a trailing partial row cleanly. */
.jw-mega-card--span-2 {
	grid-column: span 2;
}

.jw-mega-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px 16px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	background: var(--jw-off-white);
	border: 1px solid transparent;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.jw-mega-card:hover,
.jw-mega-card:focus-visible {
	border-color: var(--jw-orange);
	background: var(--jw-orange-pale);
	outline: none;
	transform: translateY(-2px);
}

/* Inline "View All" CTA card — fills the 8th cell when there are 7 categories */
.jw-mega-card--cta {
	background: var(--jw-navy);
	color: var(--jw-white);
	border-color: var(--jw-navy);
	justify-content: space-between;
	position: relative;
}
.jw-mega-card--cta:hover,
.jw-mega-card--cta:focus-visible {
	background: var(--jw-orange);
	border-color: var(--jw-orange);
	color: var(--jw-white);
}
.jw-mega-card--cta .jw-mega-card-title {
	color: var(--jw-white);
	font-size: 14.5px;
}
.jw-mega-card--cta .jw-mega-card-desc {
	color: rgba(255, 255, 255, .72);
}
.jw-mega-card-arrow {
	margin-top: auto;
	display: inline-flex;
	color: var(--jw-orange-lt);
	transition: transform .2s ease, color .2s ease;
}
.jw-mega-card--cta:hover .jw-mega-card-arrow {
	transform: translateX(4px);
	color: var(--jw-white);
}
.jw-mega-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--jw-white);
	color: var(--jw-navy);
	border: 1px solid var(--jw-border);
	transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.jw-mega-card:hover .jw-mega-icon {
	color: var(--jw-orange);
	border-color: var(--jw-orange);
}
.jw-mega-card-title {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--jw-navy);
	line-height: 1.3;
}
.jw-mega-card-desc {
	font-size: 11.5px;
	font-weight: 500;
	color: var(--jw-text-soft);
	line-height: 1.5;
}

/* ── Mega foot: View All CTA ── */
.jw-mega-foot {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--jw-border);
	display: flex;
	justify-content: flex-end;
}
.jw-mega-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	background: var(--jw-navy);
	color: var(--jw-white);
	border-radius: 100px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}
.jw-mega-cta:hover,
.jw-mega-cta:focus-visible {
	background: var(--jw-orange);
	color: var(--jw-white);
	transform: translateX(2px);
	outline: none;
}
.jw-mega-cta--inline {
	margin-top: 18px;
	background: transparent;
	color: var(--jw-orange);
	border: 1.5px solid var(--jw-orange);
	padding: 9px 18px;
}
.jw-mega-cta--inline:hover {
	background: var(--jw-orange);
	color: var(--jw-white);
}

/* ── Split mega menu (Study Plan) ── */
.jw-mega--split {
	width: 940px;
}
.jw-mega-split {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 28px;
}
.jw-mega-feature {
	background: linear-gradient(155deg, var(--jw-navy) 0%, var(--jw-navy-mid) 100%);
	color: var(--jw-white);
	padding: 26px;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
	position: relative;
	overflow: hidden;
}
.jw-mega-feature::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 70% 60% at 80% 20%, rgba(232, 119, 34, .22) 0%, transparent 65%);
	pointer-events: none;
}
.jw-mega-feature .jw-mega-eyebrow {
	color: var(--jw-orange-lt);
	position: relative;
}
.jw-mega-feature-title {
	font-family: 'Merriweather', Georgia, serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--jw-white);
	position: relative;
}
.jw-mega-feature-title em {
	font-style: italic;
	color: var(--jw-orange-lt);
}
.jw-mega-feature-img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 4px 0;
	max-height: 180px;
}
.jw-mega-feature-img img {
	max-width: 100%;
	max-height: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.jw-mega-feature-desc {
	font-size: 12.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .72);
	margin: 0;
	position: relative;
}
.jw-mega-feature-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--jw-orange-lt);
	text-decoration: none;
	align-self: flex-start;
	transition: gap .2s ease, color .2s ease;
	position: relative;
}
.jw-mega-feature-cta:hover {
	gap: 12px;
	color: var(--jw-white);
}

.jw-mega-browse {
	display: flex;
	flex-direction: column;
}
.jw-mega-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}
/* 2-column variant for longer plan lists */
.jw-mega-list--two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 6px;
	row-gap: 2px;
}
.jw-mega-list--two-col li + li {
	margin-top: 0;
}
.jw-mega-list li + li {
	margin-top: 4px;
}
.jw-mega-list a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 12px;
	border-radius: 9px;
	text-decoration: none;
	color: inherit;
	transition: background .15s ease;
}
.jw-mega-list a:hover,
.jw-mega-list a:focus-visible {
	background: var(--jw-off-white);
	outline: none;
}
.jw-mega-list-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--jw-navy);
	line-height: 1.3;
}
.jw-mega-list a:hover .jw-mega-list-title {
	color: var(--jw-orange);
}
.jw-mega-list-meta {
	font-size: 11px;
	color: var(--jw-text-soft);
	line-height: 1.4;
}

/* ──────────────────────────────────────────
   HEADER ACTIONS (Cart + Academy)
────────────────────────────────────────── */
.jw-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

/* Cart */
.jw-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: rgba(255, 255, 255, .85);
	text-decoration: none;
	transition: background .18s ease, color .18s ease;
}
.jw-cart-link:hover,
.jw-cart-link:focus-visible {
	background: rgba(255, 255, 255, .1);
	color: var(--jw-orange-lt);
	outline: none;
}
.jw-cart-icon {
	display: block;
}
.jw-cart-count {
	position: absolute;
	top: 4px;
	right: 4px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--jw-orange);
	color: var(--jw-white);
	font-size: 10px;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
	border: 2px solid var(--jw-navy);
	display: none;
}
.jw-cart-count.is-active {
	display: block;
}

/* Academy button */
.jw-academy-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 22px;
	background: var(--jw-orange);
	color: var(--jw-white);
	border-radius: 100px;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 4px 14px rgba(232, 119, 34, .28);
	white-space: nowrap;
}
.jw-academy-btn:hover,
.jw-academy-btn:focus-visible {
	background: var(--jw-white);
	color: var(--jw-navy);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	outline: none;
}
.jw-academy-btn svg {
	transition: transform .2s ease;
}
.jw-academy-btn:hover svg {
	transform: translateX(3px);
}

/* Logged-in state — teal instead of orange */
.jw-academy-btn--logged-in {
	background: var(--jw-teal);
	box-shadow: 0 4px 14px rgba(15, 110, 94, .32);
}
.jw-academy-btn--logged-in:hover,
.jw-academy-btn--logged-in:focus-visible {
	background: var(--jw-white);
	color: var(--jw-teal-dk);
}

/* ──────────────────────────────────────────
   MOBILE TOGGLE
────────────────────────────────────────── */
.jw-mobile-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border-radius: 8px;
	transition: background .18s ease;
}
.jw-mobile-toggle:hover {
	background: rgba(255, 255, 255, .1);
}
.jw-mobile-bar {
	width: 22px;
	height: 2px;
	background: var(--jw-white);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}
.jw-mobile-toggle[aria-expanded="true"] .jw-mobile-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.jw-mobile-toggle[aria-expanded="true"] .jw-mobile-bar:nth-child(2) {
	opacity: 0;
}
.jw-mobile-toggle[aria-expanded="true"] .jw-mobile-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ──────────────────────────────────────────
   MOBILE DRAWER
────────────────────────────────────────── */
.jw-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 300;
	visibility: hidden;
	pointer-events: none;
}
.jw-mobile-drawer.is-open {
	visibility: visible;
	pointer-events: auto;
}
.jw-mobile-overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 34, 64, .55);
	opacity: 0;
	transition: opacity .3s ease;
}
.jw-mobile-drawer.is-open .jw-mobile-overlay {
	opacity: 1;
}
.jw-mobile-panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(380px, 100%);
	height: 100%;
	background: var(--jw-white);
	box-shadow: -10px 0 40px rgba(13, 34, 64, .2);
	transform: translateX(100%);
	transition: transform .35s cubic-bezier(.32, .72, 0, 1);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.jw-mobile-drawer.is-open .jw-mobile-panel {
	transform: translateX(0);
}

.jw-mobile-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid var(--jw-border);
}
.jw-mobile-logo {
	text-decoration: none;
	display: flex;
	flex-direction: column;
	line-height: 1;
}
.jw-mobile-close {
	width: 38px;
	height: 38px;
	border: 1px solid var(--jw-border);
	background: var(--jw-off-white);
	border-radius: 50%;
	color: var(--jw-navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .18s ease;
}
.jw-mobile-close:hover {
	background: var(--jw-navy);
	color: var(--jw-white);
	border-color: var(--jw-navy);
}

.jw-mobile-nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}
.jw-mobile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}
.jw-mobile-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 24px;
	background: transparent;
	border: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--jw-navy);
	text-decoration: none;
	cursor: pointer;
	text-align: left;
	transition: background .15s ease;
}
.jw-mobile-link:hover,
.jw-mobile-link:focus-visible {
	background: var(--jw-off-white);
	outline: none;
}
.jw-mobile-toggle-sub .jw-caret {
	color: var(--jw-text-hint);
	transition: transform .25s ease;
}
.jw-mobile-toggle-sub[aria-expanded="true"] .jw-caret {
	transform: rotate(180deg);
}

.jw-mobile-sub {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 0;
	overflow: hidden;
	background: var(--jw-off-white);
	transition: max-height .3s ease;
}
.jw-mobile-group.is-open .jw-mobile-sub {
	max-height: 600px;
}
.jw-mobile-sub li a {
	display: block;
	padding: 11px 24px 11px 38px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--jw-text-mid);
	text-decoration: none;
	transition: color .15s ease;
}
.jw-mobile-sub li a:hover {
	color: var(--jw-orange);
}
.jw-mobile-sub-cta {
	font-weight: 700 !important;
	color: var(--jw-orange) !important;
	border-top: 1px dashed var(--jw-border);
	margin-top: 4px;
}

.jw-mobile-foot {
	padding: 20px 24px 28px;
	border-top: 1px solid var(--jw-border);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.jw-mobile-cart {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 18px;
	border: 1.5px solid var(--jw-border);
	border-radius: 100px;
	color: var(--jw-navy);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: all .18s ease;
	align-self: flex-start;
}
.jw-mobile-cart:hover {
	border-color: var(--jw-navy);
	background: var(--jw-navy);
	color: var(--jw-white);
}
.jw-mobile-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	background: var(--jw-orange);
	color: var(--jw-white);
	border-radius: 11px;
	font-size: 11px;
	font-weight: 800;
}
.jw-academy-btn--mobile {
	justify-content: center;
	width: 100%;
}

/* ══════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════ */
.jw-site-footer {
	position: relative;
	background: var(--jw-navy);
	color: var(--jw-white);
	font-family: 'Montserrat', system-ui, sans-serif;
	overflow: hidden;
}
.jw-footer-glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 119, 34, .14) 0%, transparent 60%);
	pointer-events: none;
}
.jw-footer-inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 72px 28px 48px;
	display: grid;
	grid-template-columns: 1.25fr 4fr;
	gap: 56px;
}

/* ── Brand column ── */
.jw-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.jw-footer-logo {
	display: inline-block;
	text-decoration: none;
}
.jw-footer-logo .jw-logo-img {
	max-height: 54px;
}
.jw-footer-verse {
	font-family: 'Merriweather', Georgia, serif;
	font-style: italic;
	font-size: 14.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .82);
	margin: 0;
	padding-left: 16px;
	border-left: 2px solid var(--jw-orange);
}
.jw-footer-verse-ref {
	display: block;
	font-style: normal;
	font-family: 'Montserrat', sans-serif;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .15em;
	color: var(--jw-orange-lt);
	margin-top: 8px;
}
.jw-footer-tagline {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .6);
	margin: 0;
	max-width: 320px;
}

/* Academy CTA in brand column */
.jw-footer-cta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--jw-orange) 0%, var(--jw-orange-lt) 100%);
	color: var(--jw-white);
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
	box-shadow: 0 6px 18px rgba(232, 119, 34, .28);
	margin-top: 4px;
	max-width: 280px;
}
.jw-footer-cta:hover,
.jw-footer-cta:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(232, 119, 34, .38);
	color: var(--jw-white);
	outline: none;
}
.jw-footer-cta-eyebrow {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: rgba(255, 255, 255, .82);
}
.jw-footer-cta-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Merriweather', Georgia, serif;
	font-size: 17px;
	font-weight: 700;
}
.jw-footer-cta-label svg {
	transition: transform .2s ease;
}
.jw-footer-cta:hover .jw-footer-cta-label svg {
	transform: translateX(3px);
}

/* Social icons */
.jw-footer-social {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}
.jw-social-link {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .15);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .7);
	text-decoration: none;
	transition: all .2s ease;
}
.jw-social-link:hover {
	border-color: var(--jw-orange);
	background: var(--jw-orange);
	color: var(--jw-white);
	transform: translateY(-2px);
}

/* Contact info (email + phone) */
.jw-footer-contact {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.jw-footer-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 12.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, .68);
	text-decoration: none;
	transition: color .18s ease;
}
.jw-footer-contact-link svg {
	color: var(--jw-orange-lt);
	flex-shrink: 0;
}
.jw-footer-contact-link:hover {
	color: var(--jw-white);
}

/* ── Link columns ── */
.jw-footer-cols {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1.6fr;
	gap: 36px;
}
.jw-footer-col {
	display: flex;
	flex-direction: column;
	min-width: 0; /* prevent grid items from overflowing */
}
.jw-footer-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--jw-orange-lt);
	margin: 0 0 18px;
}
.jw-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.jw-footer-links a {
	font-size: 13.5px;
	font-weight: 500;
	color: rgba(255, 255, 255, .75);
	text-decoration: none;
	transition: color .18s ease, padding-left .18s ease;
}
.jw-footer-links a:hover {
	color: var(--jw-orange-lt);
	padding-left: 6px;
}

/* ── Newsletter / Mailchimp ── */
.jw-footer-newsletter-desc {
	font-size: 13px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .65);
	margin: 0 0 16px;
}

/* Mailchimp form wrapper — high specificity to override Mailchimp defaults if their CSS ever loads */
.jw-mc-form-wrap,
.jw-mc-form-wrap * {
	box-sizing: border-box;
}
.jw-footer-col .jw-mc-form-wrap {
	background: transparent;
	width: 100%;
	font: inherit;
	clear: none;
}
.jw-mc-form {
	margin: 0;
	padding: 0;
}
.jw-mc-fields {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}
.jw-mc-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.jw-mc-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: rgba(255, 255, 255, .55);
	margin: 0;
}
.jw-mc-asterisk {
	color: var(--jw-orange-lt);
	font-weight: 800;
}
.jw-mc-input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid rgba(255, 255, 255, .12);
	background: rgba(255, 255, 255, .04);
	color: var(--jw-white);
	border-radius: 10px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	outline: none;
	transition: border-color .18s ease, background .18s ease;
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
}
.jw-mc-input::placeholder {
	color: rgba(255, 255, 255, .35);
}
.jw-mc-input:focus {
	border-color: var(--jw-orange);
	background: rgba(255, 255, 255, .08);
}
/* Override Mailchimp's stock invalid-state styling */
.jw-mc-input.mce_inline_error,
.jw-mc-input[aria-invalid="true"] {
	border-color: #ff6b6b !important;
	background: rgba(255, 107, 107, .06) !important;
}
.jw-mc-submit {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	background: var(--jw-orange);
	color: var(--jw-white);
	border: none;
	border-radius: 10px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
	margin-top: 4px;
}
.jw-mc-submit:hover {
	background: var(--jw-orange-lt);
	transform: translateY(-1px);
}
.jw-mc-submit:active {
	transform: translateY(0);
}
.jw-mc-submit svg {
	transition: transform .2s ease;
}
.jw-mc-submit:hover svg {
	transform: translateX(3px);
}

/* Mailchimp response messages */
.jw-mc-responses {
	margin-top: 12px;
}
.jw-mc-response {
	font-size: 12px;
	line-height: 1.5;
	padding: 10px 14px;
	border-radius: 8px;
	margin-bottom: 8px;
}
.jw-mc-response--error {
	background: rgba(255, 107, 107, .12);
	border: 1px solid rgba(255, 107, 107, .3);
	color: #ffb1b1;
}
.jw-mc-response--success {
	background: rgba(30, 110, 69, .15);
	border: 1px solid rgba(30, 110, 69, .35);
	color: #8eddb1;
}
/* Mailchimp inline error helper styled to match */
.mce_inline_error {
	font-size: 11.5px !important;
	color: #ffb1b1 !important;
	background: transparent !important;
	padding: 0 !important;
	margin-top: 4px !important;
	font-weight: 600 !important;
}

.jw-footer-form-note {
	font-size: 11px;
	color: rgba(255, 255, 255, .42);
	margin: 12px 0 0;
}

/* ── Bottom bar ── */
.jw-footer-bottom {
	position: relative;
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: rgba(0, 0, 0, .15);
}
.jw-footer-bottom-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 22px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.jw-footer-copy {
	font-size: 12px;
	color: rgba(255, 255, 255, .5);
	margin: 0;
}
.jw-footer-legal {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.jw-footer-legal a {
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, .5);
	text-decoration: none;
	transition: color .18s ease;
}
.jw-footer-legal a:hover {
	color: var(--jw-orange-lt);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1180px) {
	.jw-header-inner { gap: 18px; padding: 0 22px; }
	.jw-nav-link { padding: 10px 11px; font-size: 13px; }
	.jw-academy-btn { padding: 10px 16px; font-size: 11.5px; letter-spacing: .06em; }

	/* Pin the wide Study Plan mega to the right edge so it stays in-viewport */
	.jw-mega--split {
		left: auto;
		right: 0;
		transform: translateY(-8px);
	}
	.jw-nav-item.is-open .jw-mega--split {
		transform: translateY(0);
	}
}

@media (max-width: 1024px) {
	.jw-nav,
	.jw-cart-link,
	.jw-academy-btn:not(.jw-academy-btn--mobile) {
		display: none;
	}
	.jw-mobile-toggle {
		display: inline-flex;
	}
	.jw-header-inner {
		justify-content: space-between;
	}

	.jw-footer-inner {
		grid-template-columns: 1fr;
		gap: 48px;
		padding: 56px 24px 40px;
	}
	.jw-footer-cols {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		gap: 28px;
	}
	.jw-footer-col--newsletter {
		grid-column: 1 / -1;
		max-width: 520px;
	}
	.jw-footer-cta { max-width: 100%; }
}

@media (max-width: 720px) {
	.jw-header-inner { height: 68px; padding: 0 18px; }
	.jw-header-spacer { height: 68px; }
	.jw-logo-name { font-size: 19px; }
	.jw-logo-tag { font-size: 8.5px; letter-spacing: .18em; }

	.jw-footer-cols {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
	.jw-footer-col--newsletter {
		grid-column: 1 / -1;
		max-width: none;
	}
	.jw-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
}

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

/* ── Reduce motion ── */
@media (prefers-reduced-motion: reduce) {
	.jw-site-header,
	.jw-mobile-panel,
	.jw-mobile-overlay,
	.jw-mobile-bar,
	.jw-drop,
	.jw-mega,
	.jw-academy-btn,
	.jw-academy-btn svg,
	.jw-mega-card,
	.jw-social-link {
		transition: none !important;
	}
}

/* ── Body scroll lock when drawer open ── */
body.jw-drawer-open {
	overflow: hidden;
}
