/* ==========================================================================
   Ashgrove Press — Main Stylesheet
   Navy & Gold editorial theme for a book publisher
   ========================================================================== */

:root {
	--navy-900: #0d2038;
	--navy-800: #153a63;
	--navy-700: #1c4f87;
	--navy-600: #377bbf;
	--gold-500: #ce3729;
	--gold-400: #e14a3b;
	--gold-300: #f2897c;
	--cream-50: #faf7ef;
	--cream-100: #f5f1e6;
	--cream-200: #ece4cf;
	--ink-900: #17181c;
	--ink-700: #34363d;
	--gray-500: #7a7d85;
	--gray-300: #d8d5cb;
	--white: #ffffff;

	--font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container: 1240px;
	--radius: 2px;
	--shadow-card: 0 10px 30px rgba(11, 21, 38, 0.12);
	--shadow-deep: 0 24px 60px rgba(11, 21, 38, 0.35);
	--transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--ink-900);
	background: var(--cream-50);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
	font-family: var(--font-serif);
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 .5em;
	color: var(--navy-800);
}
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 32px;
}
.eyebrow {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 14px;
}
.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 36px;
}
.section-head h2 { font-size: 34px; margin: 0; }
.section-head .view-all {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--navy-800);
	padding-bottom: 3px;
	white-space: nowrap;
}

/* ---------- Tabs (New Releases / Coming Soon / Best Sellers) ---------- */
.tab-switcher {
	display: flex;
	gap: 6px;
	background: var(--cream-200);
	padding: 5px;
	border-radius: 999px;
	flex-shrink: 0;
}
.tab-btn {
	background: transparent;
	border: none;
	padding: 10px 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--navy-800);
	border-radius: 999px;
	transition: all var(--transition);
	white-space: nowrap;
}
.tab-btn:hover { color: var(--gold-500); }
.tab-btn.is-active { background: var(--gold-500); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-800); color: var(--cream-100); }
.section--navy h2 { color: var(--cream-50); }
.section--cream { background: var(--cream-100); }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-radius: var(--radius);
	border: 1px solid transparent;
	transition: all var(--transition);
}
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); transform: translateY(-1px); }
.btn--outline { border-color: currentColor; }
.btn--outline:hover { background: rgba(255,255,255,.08); }
.btn--navy { background: var(--navy-800); color: var(--cream-50); }
.btn--navy:hover { background: var(--navy-700); }

/* ---------- Top bar ---------- */
.topbar {
	background: var(--navy-900);
	color: var(--cream-200);
	font-size: 12px;
}
.topbar .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 8px;
	padding-bottom: 8px;
	letter-spacing: .03em;
}
.topbar a:hover { color: var(--gold-300); }
.topbar__links { display: flex; gap: 20px; }

/* ---------- Header ---------- */
.site-header {
	background: var(--cream-50);
	border-bottom: 1px solid var(--gray-300);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 18px;
	padding-bottom: 18px;
	gap: 32px;
}
.site-logo {
	font-family: var(--font-serif);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--navy-800);
	display: flex;
	align-items: baseline;
	gap: 6px;
}
.site-logo .mark { color: var(--gold-500); }
.site-logo small {
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gray-500);
	margin-left: 6px;
}
.site-logo--image { display: inline-flex; align-items: center; }
.site-header .site-logo--image img { height: 56px; width: auto; max-width: 260px; display: block; }
.footer-brand .site-logo--image img { height: 46px; width: auto; display: block; }
@media (max-width: 680px) {
	.site-header .site-logo--image img { height: 40px; }
}
.primary-nav ul { display: flex; gap: 34px; }
.primary-nav a {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--navy-800);
	position: relative;
	padding: 6px 0;
}
.primary-nav a::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 0; height: 2px; background: var(--gold-500);
	transition: width var(--transition);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions button.icon-btn,
.header-actions a.icon-btn {
	background: none; border: none; color: var(--navy-800);
	display: flex; align-items: center; padding: 4px;
	position: relative;
}
.ashgrove-cart-link { position: relative; }
.ashgrove-cart-count {
	position: absolute;
	top: -8px; right: -10px;
	background: var(--gold-500);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	padding: 0 3px;
}
.menu-toggle { display: none; }

.ashgrove-search-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--transition);
	background: var(--cream-100);
	border-top: 1px solid var(--gray-300);
}
.ashgrove-search-panel.open { max-height: 90px; }
.ashgrove-search-panel .container { padding-top: 18px; padding-bottom: 18px; }

body.mobile-nav-open .primary-nav {
	display: block;
	position: fixed;
	inset: 0;
	top: 96px;
	background: var(--cream-50);
	padding: 24px 32px;
	z-index: 99;
}
body.mobile-nav-open .primary-nav ul { flex-direction: column; gap: 4px; }
body.mobile-nav-open .primary-nav a { display: block; padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--gray-300); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	background: #153a63;
	color: #faf7ef;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(circle at 85% 20%, rgba(206,55,41,.18), transparent 55%);
	pointer-events: none;
}
.hero .container {
	position: relative;
	padding-top: 64px;
	padding-bottom: 64px;
}

/* Ashgrove hero slider — deliberately self-contained (no shared classes
   with other components) so nothing else on the site can ever override it. */
.ashgrove-hero {
	position: relative;
	min-height: 360px;
}
.ashgrove-hero__slide {
	display: none;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 60px;
	width: 100%;
}
.ashgrove-hero__slide.is-active {
	display: grid;
}
.ashgrove-hero__copy { max-width: 100%; }
.ashgrove-hero__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 54px;
	line-height: 1.15;
	color: #faf7ef !important;
	margin: 0 0 22px;
}
.ashgrove-hero__author {
	color: #f2897c !important;
	font-size: 18px;
	margin: 0 0 18px;
	font-family: var(--font-serif);
	font-style: italic;
}
.ashgrove-hero__excerpt {
	font-size: 16px;
	color: #ece4cf !important;
	max-width: 46ch;
	margin: 0 0 32px;
}
.ashgrove-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.ashgrove-hero__cover {
	position: relative;
	display: flex;
	justify-content: center;
}
.ashgrove-hero__cover img {
	width: 320px;
	max-width: 100%;
	box-shadow: 0 24px 60px rgba(11,21,38,.35);
	border-radius: 3px;
}
.ashgrove-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: #faf7ef;
	color: #153a63;
	border: none;
	font-size: 22px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 5;
}
.ashgrove-hero__arrow:hover { background: #ce3729; color: #fff; }
.ashgrove-hero__arrow--prev { left: -8px; }
.ashgrove-hero__arrow--next { right: -8px; }
.ashgrove-hero__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	position: relative;
	z-index: 5;
}
.ashgrove-hero__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: rgba(250,247,239,.4);
	border: none;
	padding: 0;
	cursor: pointer;
}
.ashgrove-hero__dot.is-active { background: #ce3729; width: 22px; border-radius: 5px; }

/* ---------- Book cards / carousel ---------- */
.rail {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
	margin: 0 -32px;
	padding-left: 32px;
	padding-right: 32px;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.book-card {
	scroll-snap-align: start;
	flex: 0 0 220px;
	width: 220px;
}
.book-card__link { display: block; color: inherit; }
.book-card__cover {
	position: relative;
	overflow: hidden;
	border-radius: 2px;
	box-shadow: var(--shadow-card);
	margin-bottom: 16px;
	background: var(--navy-700);
	aspect-ratio: 2 / 3;
}
.book-card__cover img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform var(--transition);
}
.book-card:hover .book-card__cover img { transform: scale(1.05); }
.book-card__badge {
	position: absolute; top: 10px; left: 10px;
	background: var(--gold-500); color: #fff;
	font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 4px 8px; border-radius: 2px;
}
.book-card__badge--soon {
	background: var(--navy-800);
	color: var(--cream-50);
}
.book-card__genre {
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--gold-500); margin-bottom: 6px; display: block;
}
.book-card__title { font-family: var(--font-serif); font-size: 18px; margin-bottom: 4px; }
.section--navy .book-card__title { color: var(--cream-50); }
.book-card__author { font-size: 13px; color: var(--gray-500); }
.section--navy .book-card__author { color: var(--cream-200); }
.book-card__price { margin-top: 8px; font-weight: 700; font-size: 14px; }
.book-card__price .woocommerce-Price-amount { font-weight: 700; }
.ashgrove-add-to-cart-btn {
	display: inline-flex;
	margin-top: 10px;
	padding: 10px 18px;
	font-size: 11px;
}
.ashgrove-add-to-cart-btn.loading {
	opacity: .6;
	pointer-events: none;
}
.ashgrove-add-to-cart-btn.added::after {
	content: "✓";
	margin-left: 6px;
}

/* ---------- Genre grid ---------- */
.genre-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
.genre-card {
	position: relative;
	height: 200px;
	border-radius: 3px;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 22px;
	background-size: cover;
	background-position: center;
}
.genre-card::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,27,51,.15), rgba(11,21,38,.85));
	transition: background var(--transition);
}
.genre-card:hover::before { background: linear-gradient(180deg, rgba(15,27,51,.3), rgba(201,162,75,.55)); }
.genre-card span {
	position: relative;
	color: var(--cream-50);
	font-family: var(--font-serif);
	font-size: 22px;
	font-weight: 700;
}

/* ---------- Author spotlight ---------- */
.spotlight {
	display: grid;
	grid-template-columns: .55fr 1fr;
	gap: 60px;
	align-items: center;
}
.spotlight__photo {
	border-radius: 3px;
	box-shadow: var(--shadow-card);
	aspect-ratio: 4/5;
	object-fit: cover;
	width: 100%;
}
.spotlight__quote {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 24px;
	color: var(--navy-800);
	margin-bottom: 24px;
	line-height: 1.4;
}
.spotlight__name { font-size: 26px; margin-bottom: 4px; }
.spotlight__role { color: var(--gold-500); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; margin-bottom: 18px; display: block;}

/* ---------- Newsletter band ---------- */
.newsletter {
	background: var(--gold-500);
	color: var(--navy-900);
}
.newsletter .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 56px;
}
.newsletter h2 { color: var(--navy-900); font-size: 30px; margin-bottom: 8px; }
.newsletter p { margin: 0; max-width: 44ch; }
.newsletter-form { display: flex; gap: 0; flex: 0 0 420px; }
.newsletter-form input[type="email"] {
	flex: 1;
	border: none;
	padding: 15px 18px;
	font-size: 14px;
	border-radius: var(--radius) 0 0 var(--radius);
}
.newsletter-form button {
	border: none;
	background: var(--navy-900);
	color: var(--cream-50);
	padding: 0 24px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-radius: 0 var(--radius) var(--radius) 0;
}
.newsletter-form button:hover { background: var(--navy-700); }

/* ---------- Blog / news cards ---------- */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.news-card__image {
	aspect-ratio: 16/10;
	overflow: hidden;
	border-radius: 3px;
	margin-bottom: 18px;
}
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.news-card:hover .news-card__image img { transform: scale(1.06); }
.news-card__meta { font-size: 12px; color: var(--gold-500); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.news-card h3 { font-size: 20px; margin-bottom: 10px; }
.news-card p { color: var(--gray-500); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--cream-200); padding-top: 72px; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
	gap: 40px;
	padding-bottom: 56px;
	border-bottom: 1px solid rgba(245,241,230,.12);
}
.footer-brand .site-logo { color: var(--cream-50); }
.footer-brand p { color: var(--cream-200); font-size: 14px; margin-top: 16px; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
	width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid rgba(245,241,230,.3);
	display: flex; align-items: center; justify-content: center;
	transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer-col h4 {
	color: var(--cream-50); font-family: var(--font-sans); font-size: 13px;
	text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
}
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom {
	display: flex; justify-content: space-between; align-items: center;
	padding: 24px 0; font-size: 12px; color: var(--gray-300);
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Upcoming Events (HarperCollins-style) ---------- */
.events-list {
	display: flex;
	flex-direction: column;
	border-top: 1px solid var(--gray-300);
}
.event-row {
	display: grid;
	grid-template-columns: 90px 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 26px 0;
	border-bottom: 1px solid var(--gray-300);
	transition: background var(--transition);
}
.event-row:hover { background: var(--cream-100); }
.event-date-badge {
	width: 78px;
	height: 78px;
	border: 1px solid var(--navy-800);
	border-radius: 3px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.event-date-badge .day { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--navy-800); line-height: 1; }
.event-date-badge .month { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--gold-500); margin-top: 4px; }
.event-row__body h3 { font-size: 20px; margin-bottom: 6px; }
.event-row__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--gray-500); }
.event-row__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-row__meta svg { flex-shrink: 0; }
.event-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: var(--navy-800);
	color: var(--cream-50);
	padding: 3px 9px;
	border-radius: 999px;
	margin-left: 10px;
	vertical-align: middle;
}
.event-row__cta { white-space: nowrap; }

/* ---------- Featured Slider ---------- */
.hc-slider {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
}
.hc-slider__track {
	display: flex;
	transition: transform 520ms cubic-bezier(.4,0,.2,1);
}
.hc-slide {
	flex: 0 0 100%;
	display: grid;
	grid-template-columns: .55fr 1fr;
	align-items: center;
	gap: 48px;
	background: var(--navy-800);
	color: var(--cream-50);
	padding: 56px;
	min-height: 340px;
}
.hc-slide__quote-mark { font-family: var(--font-serif); font-size: 64px; color: var(--gold-500); line-height: 1; margin-bottom: 8px; }
.hc-slide__text { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.45; margin-bottom: 22px; }
.hc-slide__source { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-300); }
.hc-slide__cover img { width: 100%; max-width: 220px; margin: 0 auto; box-shadow: var(--shadow-deep); border-radius: 3px; }
.hc-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--cream-50);
	color: var(--navy-800);
	border: none;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	z-index: 5;
	box-shadow: var(--shadow-card);
	transition: all var(--transition);
}
.hc-slider__arrow:hover { background: var(--gold-500); color: #fff; }
.hc-slider__arrow--prev { left: 18px; }
.hc-slider__arrow--next { right: 18px; }
.hc-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.hc-slider__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-300); border: none; padding: 0; cursor: pointer; transition: all var(--transition); }
.hc-slider__dot.is-active { background: var(--gold-500); width: 22px; border-radius: 5px; }

/* ---------- Authors directory ---------- */
.author-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.author-card {
	display: block;
	text-align: center;
	background: var(--white);
	border: 1px solid var(--gray-300);
	border-radius: 4px;
	padding: 30px 22px;
	transition: box-shadow var(--transition), transform var(--transition);
}
.author-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.author-card__photo {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 18px;
	border: 3px solid var(--cream-200);
}
.author-card__name { font-size: 19px; margin-bottom: 4px; }
.author-card__count {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 12px;
	display: block;
}
.author-card__bio { font-size: 13px; color: var(--gray-500); }

/* ---------- Single author profile ---------- */
.author-profile {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 44px;
	align-items: center;
	padding: 56px 0;
}
.author-profile__photo {
	width: 240px;
	height: 240px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--cream-100);
	box-shadow: var(--shadow-card);
}
.author-profile__name { font-size: 38px; margin-bottom: 6px; }
.author-profile__count {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gold-500);
	margin-bottom: 16px;
	display: block;
}
.author-profile__bio { max-width: 62ch; color: var(--ink-700); }

/* ---------- Books gallery page ---------- */
.books-gallery {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 22px;
}
.gallery-cover {
	position: relative;
	display: block;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: var(--shadow-card);
	aspect-ratio: 2/3;
	background: var(--navy-700);
}
.gallery-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-cover:hover img { transform: scale(1.06); }
.gallery-cover__caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(0deg, rgba(13,32,56,.92), transparent);
	color: var(--cream-50);
	padding: 30px 14px 12px;
	opacity: 0;
	transform: translateY(8px);
	transition: all var(--transition);
}
.gallery-cover:hover .gallery-cover__caption { opacity: 1; transform: translateY(0); }
.gallery-cover__caption strong { display: block; font-family: var(--font-serif); font-size: 15px; line-height: 1.25; }
.gallery-cover__caption span { font-size: 11px; color: var(--gold-300); }
.gallery-item { display: flex; flex-direction: column; }
.gallery-item__cta { margin-top: 12px; text-align: center; }
.gallery-item__cta .book-card__price { margin-top: 0; margin-bottom: 8px; }
.gallery-item__cta .ashgrove-add-to-cart-btn { width: 100%; justify-content: center; margin-top: 0; }

/* ---------- Archive / shop grid ---------- */

.page-header {
	background: var(--navy-800);
	color: var(--cream-50);
	padding: 64px 0 48px;
}
.page-header h1 { color: var(--cream-50); font-size: 40px; margin-bottom: 10px; }
.page-header .breadcrumbs { font-size: 12px; color: var(--gold-300); text-transform: uppercase; letter-spacing: .08em; }

.archive-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 48px;
}
.filter-box { border: 1px solid var(--gray-300); border-radius: 3px; padding: 22px; margin-bottom: 22px; }
.filter-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.filter-box li { margin-bottom: 10px; font-size: 14px; display: flex; justify-content: space-between; }
.filter-box a:hover { color: var(--gold-500); }
.book-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 26px;
}
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-size: 14px; color: var(--gray-500); }

/* ---------- Pagination (archives, search, gallery) ---------- */
.nav-links,
.pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}
.nav-links .page-numbers,
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--gray-300);
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--navy-800);
	background: var(--white);
	transition: all var(--transition);
}
.nav-links .page-numbers:hover,
.pagination .page-numbers:hover {
	background: var(--navy-800);
	border-color: var(--navy-800);
	color: #fff;
}
.nav-links .page-numbers.current,
.pagination .page-numbers.current {
	background: var(--gold-500);
	border-color: var(--gold-500);
	color: #fff;
}
.nav-links .page-numbers.dots {
	background: transparent;
	border: none;
	color: var(--gray-500);
}
.nav-links .prev.page-numbers,
.nav-links .next.page-numbers,
.pagination .prev.page-numbers,
.pagination .next.page-numbers {
	padding: 0 20px;
	background: var(--cream-100);
}

/* ---------- Single book ---------- */
.book-detail { display: grid; grid-template-columns: .4fr 1fr; gap: 64px; padding: 72px 0; }
.book-detail__cover img { border-radius: 3px; box-shadow: var(--shadow-card); width: 100%; }
.book-detail__genre { color: var(--gold-500); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin-bottom: 10px; display:block; }
.book-detail h1 { font-size: 42px; margin-bottom: 8px; }
.book-detail__author { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--gray-500); margin-bottom: 24px; }
.book-detail__price,
.book-detail__info .book-card__price { flex-basis: 100%; font-size: 26px; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; margin-top: 20px; }
.book-detail__info .ashgrove-add-to-cart-btn { padding: 15px 34px; font-size: 13px; }
.book-detail__meta-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.book-detail__meta-table td { padding: 10px 0; border-top: 1px solid var(--gray-300); font-size: 14px; }
.book-detail__meta-table td:first-child { color: var(--gray-500); width: 160px; }

/* ---------- Blog single / page ---------- */
.entry-content { max-width: 760px; margin: 0 auto; padding: 72px 32px; }
.entry-content h1 { font-size: 40px; }
.entry-content img { border-radius: 3px; margin: 24px 0; }
.entry-meta { color: var(--gray-500); font-size: 13px; margin-bottom: 28px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Search form ---------- */
.search-form { display: flex; }
.search-form input[type="search"] { flex:1; padding: 10px 14px; border: 1px solid var(--gray-300); }
.search-form button { padding: 10px 16px; background: var(--navy-800); color: #fff; border:none; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 120px 0; }
.error-404 .code { font-family: var(--font-serif); font-size: 120px; color: var(--gold-500); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero .container { padding-top: 56px; text-align: center; }
	.ashgrove-hero__slide.is-active { grid-template-columns: 1fr; text-align: center; gap: 32px; }
	.ashgrove-hero__ctas { justify-content: center; }
	.ashgrove-hero__cover { order: -1; }
	.ashgrove-hero__excerpt { margin-left: auto; margin-right: auto; }
	.genre-grid { grid-template-columns: repeat(2, 1fr); }
	.spotlight { grid-template-columns: 1fr; }
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.archive-layout { grid-template-columns: 1fr; }
	.book-grid { grid-template-columns: repeat(2, 1fr); }
	.book-detail { grid-template-columns: 1fr; }
	.newsletter .container { flex-direction: column; text-align: center; }
	.author-grid { grid-template-columns: repeat(2, 1fr); }
	.books-gallery { grid-template-columns: repeat(3, 1fr); }
	.author-profile { grid-template-columns: 1fr; text-align: center; }
	.author-profile__photo { margin: 0 auto; }
}
@media (max-width: 680px) {
	.primary-nav, .topbar__links { display: none; }
	.menu-toggle { display: flex; background: none; border: none; }
	.ashgrove-hero__title { font-size: 36px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.news-grid, .genre-grid, .book-grid, .footer-grid { grid-template-columns: 1fr; }
	.book-card { flex-basis: 170px; width: 170px; }
	.tab-switcher { width: 100%; overflow-x: auto; }
	.author-grid { grid-template-columns: 1fr; }
	.books-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   WooCommerce compatibility (Cart, Checkout, My Account)
   ========================================================================== */
.woocommerce {
	max-width: var(--container);
	margin: 0 auto;
	padding: 56px 32px 88px;
	font-family: var(--font-sans);
	color: var(--ink-900);
}
.woocommerce table.shop_table,
.woocommerce-cart table.cart {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 32px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 16px 12px;
	border-bottom: 1px solid var(--gray-300);
	text-align: left;
	font-size: 14px;
}
.woocommerce table.shop_table thead th {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gray-500);
}
.woocommerce .product-thumbnail img {
	width: 70px; height: auto; border-radius: 3px; box-shadow: var(--shadow-card);
}
.woocommerce .quantity input.qty {
	width: 60px; padding: 8px; border: 1px solid var(--gray-300); border-radius: 3px;
}
.woocommerce a.remove {
	color: var(--gold-500) !important;
	font-size: 20px;
	text-decoration: none !important;
}
.woocommerce #coupon_code {
	padding: 12px; border: 1px solid var(--gray-300); border-radius: 3px 0 0 3px;
}
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #place_order,
.woocommerce .checkout-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 30px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 2px;
	background: var(--gold-500);
	color: #fff !important;
	border: none;
	cursor: pointer;
	transition: all var(--transition);
}
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #place_order:hover {
	background: var(--gold-400);
}
.woocommerce .cart-collaterals .cart_totals {
	background: var(--cream-100);
	padding: 28px;
	border-radius: 4px;
	max-width: 420px;
	margin-left: auto;
}
.woocommerce .cart_totals table { width: 100%; }
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td { padding: 10px 0; border-bottom: 1px solid var(--gray-300); font-size: 14px; }
.woocommerce .order-total .woocommerce-Price-amount { font-size: 20px; font-weight: 700; color: var(--navy-800); }

/* Checkout form */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--gray-300);
	border-radius: 3px;
	font-family: var(--font-sans);
	font-size: 14px;
	margin-bottom: 4px;
}
.woocommerce-checkout .form-row { margin-bottom: 16px; }
.woocommerce-checkout h3 {
	margin-top: 32px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--navy-800);
}
#order_review {
	background: var(--cream-100);
	padding: 28px;
	border-radius: 4px;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 10px 0; border-bottom: 1px solid var(--gray-300); font-size: 14px; }

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	background: var(--cream-100);
	border-left: 4px solid var(--gold-500);
	padding: 16px 20px;
	margin: 0 0 28px;
	font-size: 14px;
	border-radius: 3px;
}
.woocommerce-error { border-left-color: #c0392b; }

/* My Account */
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; list-style:none; padding:0; }
.woocommerce-MyAccount-navigation a {
	display: inline-block;
	padding: 10px 18px;
	background: var(--cream-100);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}
.woocommerce-MyAccount-navigation .is-active a { background: var(--navy-800); color: #fff; }

@media (max-width: 780px) {
	.woocommerce table.shop_table thead { display: none; }
	.woocommerce table.shop_table tr { display: block; border-bottom: 2px solid var(--gray-300); padding: 12px 0; }
	.woocommerce table.shop_table td { display: block; border-bottom: none; padding: 6px 0; }
	.woocommerce .cart-collaterals .cart_totals { max-width: none; }
}

/* ---------- WhatsApp chat link (footer bottom bar) ---------- */
.ashgrove-whatsapp-btn {
	transition: transform 200ms ease, opacity 200ms ease;
}
.ashgrove-whatsapp-btn:hover {
	transform: scale(1.1);
	opacity: .9;
}
.footer-bottom { flex-wrap: wrap; gap: 12px; }
@media (max-width: 680px) {
	.footer-bottom__right { width: 100%; justify-content: space-between; }
}

/* ---------- Gulf Book Publishing homepage ---------- */
.gbp-hero { padding: 96px 0 88px; }
.gbp-narrow { max-width: 820px; }
.gbp-narrow h3 { margin-top: 1.4em; }
.gbp-grid { display: grid; gap: 20px; }
.gbp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gbp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gbp-card { padding: 28px; border: 1px solid rgba(255,255,255,.2); }
.gbp-card h3 { font-size: 22px; color: var(--cream-50); }
.gbp-card p { margin: 0; }
.gbp-card--light { border-color: var(--gray-300); background: var(--white); }
.gbp-card--light h3 { color: var(--navy-800); }
.gbp-steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; padding: 0; }
.gbp-steps li { counter-increment: s; border-top: 3px solid var(--gold-500); padding-top: 16px; }
.gbp-steps li::before { content: counter(s); font-family: var(--font-serif); font-size: 32px; color: var(--navy-800); }
.gbp-steps h3 { font-size: 20px; }
.gbp-steps__when { display: block; font-size: 13px; font-weight: 700; color: var(--gold-500); }
.gbp-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.gbp-chips a { display: block; padding: 12px 22px; border: 1px solid var(--navy-800); border-radius: 999px; font-weight: 600; }
.gbp-chips a:hover, .gbp-chips a:focus-visible { background: var(--navy-800); color: var(--cream-50); }
.gbp-links li { padding: 14px 0; border-bottom: 1px solid var(--gray-300); font-family: var(--font-serif); font-size: 20px; }
@media (max-width: 900px) { .gbp-grid--3, .gbp-grid--2, .gbp-steps { grid-template-columns: 1fr; } }
.footer-details { font-size: 13px; opacity: .8; margin: 24px 0 0; }
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.gbp-list { padding-left: 1.2em; list-style: disc; } .gbp-list li { margin-bottom: .7em; }

/* ---------- Header dropdown (fixes sub-menus rendering inline and widening the header) ---------- */
.primary-nav ul { align-items: center; gap: 28px; }
.primary-nav li { position: relative; }
.primary-nav a { white-space: nowrap; }
.primary-nav .menu-item-has-children > a::before {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); order: 2;
}
.primary-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 270px;
	flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
	background: var(--cream-50); border: 1px solid var(--gray-300);
	border-top: 2px solid var(--gold-500); box-shadow: var(--shadow-card); z-index: 200;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu a { display: block; padding: 10px 20px; font-size: 12px; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover { background: var(--cream-100); color: var(--gold-500); }
body.mobile-nav-open .primary-nav .sub-menu {
	display: block; position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 0 16px; background: transparent;
}

/* Keep the header compact: one row, nav shrinks instead of widening the page */
.site-header .container { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.site-logo-wrap, .site-logo--image { flex: 0 0 auto; }
.primary-nav { flex: 1 1 auto; min-width: 0; }
.primary-nav > ul { gap: 22px; flex-wrap: wrap; justify-content: center; }
.primary-nav a { font-size: 12px; }
.header-actions { flex: 0 0 auto; }
.footer-brand .site-logo--image img { height: 56px; }
html, body { overflow-x: hidden; }
.gbp-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.gbp-form input[type=text], .gbp-form input[type=email], .gbp-form select, .gbp-form textarea { width: 100%; padding: 12px; border: 1px solid var(--gray-300); border-radius: 2px; font: inherit; background: #fff; }
.gbp-micro { font-size: 13px; color: var(--gray-500); margin-top: 14px; }
.gbp-notice { padding: 14px 18px; background: #e8f3ea; border-left: 4px solid #2e7d32; }
.gbp-notice--error { background: #fbeaea; border-color: var(--gold-500); }
.gbp-list--plain { list-style: none; padding: 0; }
.gbp-note { display: none !important; }
.gbp-table { overflow-x: auto; }
.gbp-table table { width: 100%; border-collapse: collapse; }
.gbp-table th, .gbp-table td { text-align: left; padding: 12px; border: 1px solid var(--gray-300); vertical-align: top; }
.gbp-hero .ashgrove-hero__excerpt p { margin: 0 0 1em; }
.gbp-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Doc content laid out with theme components */
.gbp-sec > p, .gbp-sec > .gbp-acc, .gbp-sec > ul, .gbp-sec > h3 { max-width: 780px; }
.gbp-sec h3 { margin: 1.4em 0 .4em; }
.gbp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 28px; }
.gbp-cards .gbp-card { border-top: 3px solid var(--gold-500); }
.gbp-cards .gbp-card h3 { margin: 0 0 8px; font-size: 20px; }
.gbp-steps2 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 20px 0 28px; }
.gbp-steps2 li { background: #fff; border: 1px solid var(--gray-300); padding: 24px; }
.gbp-steps2 span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-800); color: var(--cream-50); font-weight: 700; margin-bottom: 12px; }
.gbp-steps2 h3 { margin: 0 0 6px; font-size: 19px; }
.gbp-acc { border-bottom: 1px solid var(--gray-300); padding: 16px 0; }
.gbp-acc summary { cursor: pointer; font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.gbp-acc p { margin: 10px 0 0; }
.gbp-hero .ashgrove-hero__excerpt { max-width: 760px; }
@media (max-width: 900px) { .gbp-cards { grid-template-columns: 1fr; } }

/* Slider arrows sit in their own gutters so they never overlap slide content */
.ashgrove-hero { padding: 0 76px; }
.ashgrove-hero__arrow--prev { left: 0; }
.ashgrove-hero__arrow--next { right: 0; }
.ashgrove-hero__slide { gap: 48px; }
@media (max-width: 900px) {
	.ashgrove-hero { padding: 0 0 68px; }
	.ashgrove-hero__arrow { top: auto; bottom: 0; transform: none; }
	.ashgrove-hero__arrow--prev { left: calc(50% - 56px); right: auto; }
	.ashgrove-hero__arrow--next { right: calc(50% - 56px); left: auto; }
	.ashgrove-hero__dots { margin-top: 20px; }
}

/* =====================================================================
   Animated sliders (hero, books slider, logo marquee)
   ===================================================================== */

/* ---------- Hero: staggered entrance + floating cover ---------- */
@keyframes gbpFadeUp   { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes gbpCoverIn  { from { opacity: 0; transform: translateX(70px) rotate(5deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes gbpGhostL   { from { opacity: 0; transform: translateX(40px) rotate(0deg); } to { opacity: 1; transform: translateX(-34px) rotate(-8deg); } }
@keyframes gbpGhostR   { from { opacity: 0; transform: translateX(40px) rotate(0deg); } to { opacity: 1; transform: translateX(34px) rotate(8deg); } }
@keyframes gbpFloat    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes gbpProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ashgrove-hero__slide.is-active .eyebrow,
.ashgrove-hero__slide.is-active .ashgrove-hero__title,
.ashgrove-hero__slide.is-active .ashgrove-hero__author,
.ashgrove-hero__slide.is-active .ashgrove-hero__excerpt,
.ashgrove-hero__slide.is-active .ashgrove-hero__ctas {
	animation: gbpFadeUp .85s cubic-bezier(.22, 1, .36, 1) both;
}
.ashgrove-hero__slide.is-active .eyebrow               { animation-delay: .05s; }
.ashgrove-hero__slide.is-active .ashgrove-hero__title  { animation-delay: .15s; }
.ashgrove-hero__slide.is-active .ashgrove-hero__author { animation-delay: .25s; }
.ashgrove-hero__slide.is-active .ashgrove-hero__excerpt{ animation-delay: .3s; }
.ashgrove-hero__slide.is-active .ashgrove-hero__ctas   { animation-delay: .45s; }

/* Layered covers: main cover floats in front of two fanned "ghost" covers. */
.ashgrove-hero__cover { isolation: isolate; padding: 10px 0 24px; }
.ashgrove-hero__cover img { position: relative; z-index: 2; }
.ashgrove-hero__cover::before,
.ashgrove-hero__cover::after {
	content: "";
	position: absolute;
	top: 10px; bottom: 24px;
	left: 50%;
	width: 320px; max-width: 100%;
	margin-left: -160px;
	border-radius: 3px;
	z-index: 1;
	opacity: 0;
	box-shadow: 0 18px 40px rgba(11, 21, 38, .3);
}
.ashgrove-hero__cover::before { background: var(--gold-500); }
.ashgrove-hero__cover::after  { background: var(--cream-200); }
.ashgrove-hero__slide.is-active .ashgrove-hero__cover img {
	animation: gbpCoverIn 1s .2s cubic-bezier(.22, 1, .36, 1) both, gbpFloat 5.5s 1.4s ease-in-out infinite;
}
.ashgrove-hero__slide.is-active .ashgrove-hero__cover::before { animation: gbpGhostL 1s .35s cubic-bezier(.22, 1, .36, 1) both; }
.ashgrove-hero__slide.is-active .ashgrove-hero__cover::after  { animation: gbpGhostR 1s .45s cubic-bezier(.22, 1, .36, 1) both; }

/* Dots stretch smoothly; active dot shows autoplay progress */
.ashgrove-hero__dot { transition: width .35s ease, background .35s ease; position: relative; overflow: hidden; }
.ashgrove-hero__dot.is-active { overflow: hidden; }
.ashgrove-hero__dot.is-active::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(255, 255, 255, .55);
	transform-origin: left;
	animation: gbpProgress 6s linear both;
}
.ashgrove-hero__arrow { transition: background .25s ease, color .25s ease, transform .25s ease; }
.ashgrove-hero__arrow:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Books slider ---------- */
.gbs { position: relative; padding: 4px 0 8px; }
.gbs__viewport { overflow: hidden; padding: 14px 4px 22px; margin: -14px -4px -22px; touch-action: pan-y; cursor: grab; }
.gbs.is-dragging .gbs__viewport { cursor: grabbing; }
.gbs__track { display: flex; gap: 24px; will-change: transform; }
.gbs__slide {
	flex: 0 0 calc((100% - 24px * (var(--gbs-pv, 4) - 1)) / var(--gbs-pv, 4));
	min-width: 0;
	opacity: 0;
	transform: translateY(36px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
	transition-delay: calc(var(--gbs-i, 0) * 90ms);
}
.gbs.is-in .gbs__slide { opacity: 1; transform: none; }
.gbs__link { display: block; color: inherit; -webkit-user-drag: none; user-select: none; }
.gbs__cover {
	position: relative;
	overflow: hidden;
	aspect-ratio: 2 / 3;
	border-radius: 4px;
	background: var(--navy-700);
	box-shadow: var(--shadow-card);
	margin-bottom: 18px;
	transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}
.gbs__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.gbs__tag {
	position: absolute; left: 12px; bottom: 12px;
	background: var(--gold-500); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 999px;
	transform: translateY(0); transition: transform .35s ease, background .35s ease;
}
.gbs__shine {
	position: absolute; inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
	transform: translateX(-120%);
	pointer-events: none;
}
.gbs__title { font-family: var(--font-serif); font-size: 20px; line-height: 1.25; margin: 0 0 4px; transition: color .3s ease; }
.gbs__author { font-size: 14px; color: var(--gray-500); margin: 0; }
.gbs__link:hover .gbs__cover { transform: translateY(-10px); box-shadow: var(--shadow-deep); }
.gbs__link:hover .gbs__cover img { transform: scale(1.08); }
.gbs__link:hover .gbs__shine { transform: translateX(120%); transition: transform .9s ease; }
.gbs__link:hover .gbs__tag { background: var(--navy-800); transform: translateY(-4px); }
.gbs__link:hover .gbs__title { color: var(--gold-500); }
.gbs__arrow {
	position: absolute; top: calc(50% - 50px);
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--white); color: var(--navy-800);
	border: none; font-size: 24px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; z-index: 5;
	box-shadow: var(--shadow-card);
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.gbs__arrow:hover { background: var(--gold-500); color: #fff; transform: scale(1.1); }
.gbs__arrow--prev { left: -18px; }
.gbs__arrow--next { right: -18px; }
.gbs.is-static .gbs__arrow { display: none; }
@media (max-width: 1320px) { .gbs__arrow--prev { left: 6px; } .gbs__arrow--next { right: 6px; } }
@media (max-width: 560px) { .gbs__title { font-size: 18px; } }

/* ---------- Logo marquee ---------- */
@keyframes gbpMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gbm {
	background: var(--white);
	border-top: 1px solid var(--gray-300);
	border-bottom: 1px solid var(--gray-300);
	padding: 30px 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gbm__track { display: flex; width: max-content; animation: gbpMarquee 38s linear infinite; }
.gbm:hover .gbm__track { animation-play-state: paused; }
.gbm__group { display: flex; flex-shrink: 0; align-items: center; }
.gbm__item { display: flex; align-items: center; justify-content: center; padding: 0 44px; }
.gbm__item img { height: 38px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .3s ease, opacity .3s ease, transform .3s ease; }
.gbm__item:hover img { filter: none; opacity: 1; transform: scale(1.08); }
.gbm__word { font-family: var(--font-serif); font-weight: 700; font-size: 22px; color: var(--navy-800); opacity: .55; white-space: nowrap; transition: opacity .3s ease, color .3s ease; }
.gbm__item:hover .gbm__word { opacity: 1; color: var(--gold-500); }

@media (prefers-reduced-motion: reduce) {
	.ashgrove-hero__slide.is-active *,
	.ashgrove-hero__slide.is-active .ashgrove-hero__cover::before,
	.ashgrove-hero__slide.is-active .ashgrove-hero__cover::after,
	.ashgrove-hero__dot.is-active::after,
	.gbm__track { animation: none !important; }
	.ashgrove-hero__cover::before, .ashgrove-hero__cover::after { opacity: 1; }
	.gbs__slide { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
	.ashgrove-hero__cover::before, .ashgrove-hero__cover::after { width: 240px; margin-left: -120px; }
	.ashgrove-hero__cover img { width: 240px; }
}

/* =====================================================================
   Icons instead of step numbers + consistent content alignment
   ===================================================================== */

/* ---------- Step icons ---------- */
.gbp-steps2 li { text-align: center; }
.gbp-steps2 .gbp-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--navy-800); color: var(--cream-50);
	box-shadow: 0 0 0 6px rgba(21, 58, 99, .08);
	transition: background .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
.gbp-steps2 .gbp-ico svg { display: block; }
.gbp-steps2 li:hover .gbp-ico { background: var(--gold-500); transform: translateY(-4px) scale(1.06); box-shadow: 0 0 0 8px rgba(206, 55, 41, .12); }
.gbp-steps2 li { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.gbp-steps2 li:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* ---------- One alignment system for every page built from the doc ---------- */
/* Headings and intro copy centered on a shared reading width; blocks centered as a group. */
.gbp-sec .section-head { justify-content: center; text-align: center; margin-bottom: 28px; }
.gbp-sec .section-head h2 { position: relative; padding-bottom: 18px; }
.gbp-sec .section-head h2::after {
	content: ""; position: absolute; left: 50%; bottom: 0;
	width: 56px; height: 3px; margin-left: -28px;
	background: var(--gold-500); border-radius: 2px;
}
.gbp-sec > p, .gbp-sec > h3, .gbp-sec > .gbp-acc, .gbp-sec > .gbp-list {
	max-width: 780px; margin-left: auto; margin-right: auto;
}
.gbp-sec > p, .gbp-sec > h3 { text-align: center; }
.gbp-sec > .gbp-acc { text-align: left; }
.gbp-sec > .gbp-list { text-align: left; }
.gbp-sec .gbp-table { max-width: 100%; margin-left: auto; margin-right: auto; }
.gbp-sec .gbp-form { max-width: 720px; margin-left: auto; margin-right: auto; }
.gbp-sec .gbp-notice, .gbp-sec .gbp-micro { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

/* Cards and steps: centered rows so a short last row never hangs on the left. */
.gbp-cards, .gbp-steps2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.gbp-cards .gbp-card { flex: 1 1 280px; max-width: calc(33.333% - 16px); text-align: center; }
.gbp-steps2 li { flex: 1 1 260px; max-width: 380px; margin: 0; }
.gbp-card { transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease; }
.gbp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
@media (max-width: 900px) { .gbp-cards .gbp-card { max-width: 100%; flex-basis: 100%; } }

/* Inner-page hero (title + intro) is centered like the sections beneath it. */
.gbp-hero--center .container { text-align: center; }
.gbp-hero--center .ashgrove-hero__title { margin-left: auto; margin-right: auto; max-width: 18ch; }
.gbp-hero--center .ashgrove-hero__excerpt { margin-left: auto; margin-right: auto; }
.gbp-hero--center .ashgrove-hero__ctas { justify-content: center; }

/* Books slider: centered captions to match the rest of the page. */
.gbs__title, .gbs__author { text-align: center; }
.gbs__tag { left: 50%; margin-left: 0; transform: translateX(-50%); }
.gbs__link:hover .gbs__tag { transform: translateX(-50%) translateY(-4px); }
/* The older numbered-circle rule targeted every span in a step; keep the screen-reader label hidden. */
.gbp-steps2 .gbp-sr { position: absolute; display: block; width: 1px; height: 1px; margin: 0; padding: 0; background: none; overflow: hidden; clip: rect(0 0 0 0); }
/* Equal-width step cards; a short last row stays centered instead of stretching. */
.gbp-steps2 li { flex: 0 1 280px; max-width: 280px; }
@media (max-width: 640px) { .gbp-steps2 li { flex-basis: 100%; max-width: 100%; } }

/* =====================================================================
   Scroll-reveal animations (site-wide) + page-load / FAQ motion
   ===================================================================== */
html.js [data-reveal] {
	opacity: 0;
	transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
	transition-delay: var(--rv-delay, 0ms);
	will-change: opacity, transform;
}
html.js [data-reveal="up"]   { transform: translateY(42px); }
html.js [data-reveal="zoom"] { transform: scale(.94); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* Inner-page hero animates in on load */
@keyframes gbpDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.gbp-hero--center .ashgrove-hero__title   { animation: gbpFadeUp .9s .05s cubic-bezier(.22, 1, .36, 1) both; }
.gbp-hero--center .ashgrove-hero__excerpt { animation: gbpFadeUp .9s .25s cubic-bezier(.22, 1, .36, 1) both; }

/* FAQ accordion: plus/minus marker + eased answer */
.gbp-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .25s ease; }
.gbp-acc summary::-webkit-details-marker { display: none; }
.gbp-acc summary::after {
	content: "+"; flex: 0 0 auto;
	width: 32px; height: 32px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--cream-200); color: var(--navy-800);
	font-family: var(--font-sans); font-size: 20px; line-height: 1;
	transition: transform .35s ease, background .25s ease, color .25s ease;
}
.gbp-acc summary:hover { color: var(--gold-500); }
.gbp-acc[open] summary::after { content: "\2212"; background: var(--gold-500); color: #fff; transform: rotate(180deg); }
.gbp-acc[open] > p { animation: gbpDrop .45s ease both; }

@media (prefers-reduced-motion: reduce) {
	html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.gbp-hero--center .ashgrove-hero__title, .gbp-hero--center .ashgrove-hero__excerpt, .gbp-acc[open] > p { animation: none; }
}

/* =====================================================================
   Hero: three-book fan (left / centre / right) with staggered entrance
   ===================================================================== */
@keyframes gbpFanIn    { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: var(--final); } }
@keyframes gbpFanFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.ashgrove-hero__fan { display: block; position: relative; min-height: 500px; padding: 0; }
.ashgrove-hero__fan::before, .ashgrove-hero__fan::after { display: none; }
.ashgrove-hero__fan .hb {
	position: absolute; top: 50%;
	height: auto; max-width: none;
	border-radius: 3px;
	box-shadow: none;
	filter: drop-shadow(0 30px 50px rgba(5, 12, 30, .45));
	transform: var(--final);
}
.ashgrove-hero__fan .hb-left   { width: clamp(170px, 17vw, 240px); left: 2%;   z-index: 1; --final: translateY(-46%) rotate(-12deg); --from: translate(-70px, -40%) rotate(-26deg); }
.ashgrove-hero__fan .hb-center { width: clamp(210px, 21vw, 300px); left: 50%;  z-index: 3; --final: translate(-50%, -52%) rotate(-2deg); --from: translate(-50%, -34%) scale(.88) rotate(-2deg); }
.ashgrove-hero__fan .hb-right  { width: clamp(180px, 18vw, 260px); right: 2%;  z-index: 1; --final: translateY(-44%) rotate(10deg);  --from: translate(70px, -40%) rotate(24deg); }

.ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-center { animation: gbpFanIn 1s .15s cubic-bezier(.22, 1, .36, 1) both, gbpFanFloat 6s 1.3s ease-in-out infinite; }
.ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-left   { animation: gbpFanIn 1s .4s  cubic-bezier(.22, 1, .36, 1) both, gbpFanFloat 7s 1.6s ease-in-out infinite; }
.ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-right  { animation: gbpFanIn 1s .55s cubic-bezier(.22, 1, .36, 1) both, gbpFanFloat 6.5s 1.9s ease-in-out infinite; }

@media (max-width: 900px) {
	.ashgrove-hero__fan { min-height: 380px; width: 100%; }
	.ashgrove-hero__fan .hb-left   { width: 140px; }
	.ashgrove-hero__fan .hb-center { width: 180px; }
	.ashgrove-hero__fan .hb-right  { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .ashgrove-hero__fan .hb { animation: none !important; } }

/* Scroll reveal tuned toward the AOS defaults the live site uses (fade-up, ease, ~0.8s). */
html.js [data-reveal] { transition: opacity .8s ease, transform .8s ease; transition-delay: var(--rv-delay, 0ms); }
html.js [data-reveal="up"] { transform: translate3d(0, 60px, 0); }

/* Fan sizing is relative to its column so the side covers stay visible at every width. */
.ashgrove-hero__fan .hb-left   { width: 36%; left: -2%; }
.ashgrove-hero__fan .hb-center { width: 44%; }
.ashgrove-hero__fan .hb-right  { width: 38%; right: -2%; }
@media (max-width: 900px) {
	.ashgrove-hero__fan { max-width: 440px; margin: 0 auto; }
	.ashgrove-hero__fan .hb-left   { width: 36%; }
	.ashgrove-hero__fan .hb-center { width: 44%; }
	.ashgrove-hero__fan .hb-right  { width: 38%; }
}

/* =====================================================================
   Mobile layer (mirrors the live site's responsive behaviour)
   - content centred, nav/forms/FAQ/tables/footer keep natural alignment
   - step + feature card grids become swipeable rows (scroll-snap, next card peeks)
   - hero cover fan hidden on small phones, tightened on tablets
   ===================================================================== */
@media (max-width: 991px) {
	.ashgrove-hero__fan { min-height: 440px; }
}
@media (max-width: 720px) {
	.container { padding-left: 20px; padding-right: 20px; }
	.section { padding: 64px 0; }

	/* headings + intro copy + buttons centred (section-head was left-aligned by the base mobile rule) */
	.gbp-sec .section-head { align-items: center; }
	.gbp-sec .section-head h2 { font-size: 28px; }
	.gbp-sec > p .btn, .ashgrove-hero__ctas .btn { justify-content: center; }
	.ashgrove-hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
	.ashgrove-hero__ctas .btn { width: 100%; text-align: center; }
	.ashgrove-hero__title { font-size: 32px; }

	/* natural alignment kept where centring would hurt */
	.gbp-acc, .gbp-acc summary, .gbp-acc p, .gbp-table, .gbp-form, .gbp-form *, .gbp-sec > .gbp-list,
	.site-footer .footer-col, .site-footer .footer-col *, .footer-bottom { text-align: left; }

	/* card / step grids -> horizontal swipe sliders */
	.gbp-steps2, .gbp-cards {
		flex-wrap: nowrap; justify-content: flex-start;
		overflow-x: auto; overflow-y: hidden;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 16px;
		margin: 20px -20px 28px;
		padding: 6px 20px 22px;
		scroll-padding-left: 20px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
		mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	}
	.gbp-steps2::-webkit-scrollbar, .gbp-cards::-webkit-scrollbar { display: none; }
	.gbp-steps2 li, .gbp-cards .gbp-card {
		flex: 0 0 82%; max-width: 320px; min-width: 240px;
		scroll-snap-align: start; box-sizing: border-box;
	}
	.gbs__title { font-size: 18px; }
}
@media (max-width: 640px) {
	.ashgrove-hero__fan { display: none; }
	.ashgrove-hero { min-height: 0; }
}

/* =====================================================================
   Exact timings from the live site's stylesheet
   ===================================================================== */
@keyframes gbpFadeUp   { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes gbpFadeDown { from { opacity: 0; transform: translate3d(0, -18px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }

/* Utility bar + header drop in from the top (fill-mode "backwards" so no transform lingers on the sticky header) */
.topbar      { animation: gbpFadeDown .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.site-header { animation: gbpFadeDown .65s .05s cubic-bezier(.2, .7, .2, 1) backwards; }

/* Hero copy: fade-up 28px / .8s / cubic-bezier(.2,.7,.2,1); first-load delays .25 → 1.0s */
.ashgrove-hero__slide.is-active .eyebrow,
.ashgrove-hero__slide.is-active .ashgrove-hero__title,
.ashgrove-hero__slide.is-active .ashgrove-hero__author,
.ashgrove-hero__slide.is-active .ashgrove-hero__excerpt,
.ashgrove-hero__slide.is-active .ashgrove-hero__ctas { animation-duration: .8s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .eyebrow               { animation-delay: .25s; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__title  { animation-delay: .35s; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__author { animation-delay: .5s; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__excerpt{ animation-delay: .6s; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__ctas   { animation-delay: 1s; }

/* Hero covers: reveal one by one (.9s / 1.15s / 1.4s on first load), no floating, hover grows slightly */
.ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-left   { animation: gbpFanIn 1s .35s cubic-bezier(.2, .7, .2, 1) backwards; }
.ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-center { animation: gbpFanIn 1s .15s cubic-bezier(.2, .7, .2, 1) backwards; }
.ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-right  { animation: gbpFanIn 1s .55s cubic-bezier(.2, .7, .2, 1) backwards; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-left   { animation-delay: .9s; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-center { animation-delay: 1.15s; }
html:not(.hero-ready) .ashgrove-hero__slide.is-active .ashgrove-hero__fan .hb-right  { animation-delay: 1.4s; }
.ashgrove-hero__fan .hb { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.ashgrove-hero__fan .hb:hover { transform: var(--final) scale(1.03); }

/* Scroll reveal easing = live site's AOS override */
html.js [data-reveal] { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-delay, 0ms); }

/* Logo strip speed */
.gbm__track { animation-duration: 50s; }

/* FAQ toggle: "+" in a ring that turns crimson and rotates 45deg when open */
.gbp-acc summary::after { content: "+"; background: transparent; border: 1px solid var(--gray-300); color: var(--navy-800); }
.gbp-acc[open] summary::after { content: "+"; background: var(--gold-500); color: #fff; border-color: var(--gold-500); transform: rotate(45deg); }
.gbp-acc[open] > p { animation: none; }

/* ---------- Books ticker (continuous conveyor, cards as on the live site) ---------- */
.gbs { width: 100vw; margin-left: calc(50% - 50vw); padding: 0; }
.gbs .gbs__viewport {
	overflow: hidden; padding: 8px 0 8px; margin: 0; touch-action: pan-y;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.gbs .gbs__track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.gbs .gbs__slide {
	flex: 0 0 240px; width: 240px;
	opacity: 1; transform: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
	background: var(--white); border-radius: 10px; overflow: hidden;
}
.gbs .gbs__slide:hover { transform: translateY(-6px); box-shadow: -1px 14px 14px -22px rgba(20, 20, 40, .4); }
.gbs .gbs__cover { aspect-ratio: 2 / 3; border-radius: 10px; margin: 0; box-shadow: none; }
.gbs .gbs__link:hover .gbs__cover { transform: none; box-shadow: none; }
.gbs .gbs__cover img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gbs .gbs__link:hover .gbs__cover img { transform: scale(1.04); }
.gbs .gbs__tag {
	left: 12px; right: auto; top: 12px; bottom: auto; margin: 0;
	background: rgba(0, 0, 0, .55); color: #fff;
	font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: none;
	padding: 5px 10px; border-radius: 999px;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.gbs .gbs__link:hover .gbs__tag { opacity: 1; transform: translateY(0); background: rgba(0, 0, 0, .55); }
.gbs .gbs__shine { display: none; }
.gbs .gbs__row { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px; }
.gbs .gbs__info { flex: 1; min-width: 0; text-align: left; }
.gbs .gbs__title { font-size: 16px; line-height: 1.2; margin: 0 0 4px; color: var(--navy-800); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbs .gbs__link:hover .gbs__title { color: var(--navy-800); }
.gbs .gbs__author { font-size: 12px; color: var(--gray-500); text-align: left; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbs__go {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
	background: var(--navy-900); color: #fff;
	display: grid; place-items: center;
	transition: background .25s, transform .25s, box-shadow .25s;
}
.gbs__link:hover .gbs__go { background: var(--gold-500); transform: scale(1.08); box-shadow: 0 12px 22px -10px rgba(206, 55, 41, .6); }
.gbs .gbs__arrow { display: none; }
.gbs.is-dragging .gbs__viewport { cursor: grabbing; }
.gbs.is-static .gbs__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 640px) { .gbs .gbs__slide { flex-basis: 180px; width: 180px; } .gbs .gbs__title { font-size: 14.5px; } }

/* ---------- Scroll reveal: AOS-equivalent values from the live site (700ms, 100px travel, zoom from .6) ---------- */
html.js [data-reveal] {
	opacity: 0;
	transition: opacity var(--rv-dur, 700ms) cubic-bezier(.2, .7, .2, 1), transform var(--rv-dur, 700ms) cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--rv-delay, 0ms);
}
html.js [data-reveal="up"]      { transform: translate3d(0, 100px, 0); }
html.js [data-reveal="left"]    { transform: translate3d(100px, 0, 0); }
html.js [data-reveal="right"]   { transform: translate3d(-100px, 0, 0); }
html.js [data-reveal="zoom"]    { transform: scale(.6); }
html.js [data-reveal="zoom-up"] { transform: translate3d(0, 100px, 0) scale(.6); }
html.js [data-reveal="fade"]    { transform: none; }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* =====================================================================
   "Nine services, one publishing house" – animated supplier cards
   ===================================================================== */
@keyframes gbpDraw   { to { stroke-dashoffset: 0; } }
@keyframes gbpBob    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes gbpBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.gbp-hf { max-width: 1100px; margin: 36px auto 0; }
.gbp-hf__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.gbp-hf__card {
	flex: 0 1 200px; text-align: center; position: relative;
	background: var(--white); border: 1px solid var(--gray-300); border-radius: 14px;
	padding: 26px 18px 22px;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.gbp-hf__ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
	background: var(--navy-800); color: var(--cream-50);
	box-shadow: 0 0 0 6px rgba(21, 58, 99, .08);
	transition: background .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}
.gbp-hf__ico svg { display: block; }
.gbp-hf__tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 6px; }
.gbp-hf__card h3 { font-size: 19px; margin: 0 0 4px; }
.gbp-hf__card p { font-size: 14px; color: var(--gray-500); margin: 0; }
.gbp-hf__card:hover .gbp-hf__ico { background: var(--gold-500); transform: rotate(-6deg) scale(1.08); box-shadow: 0 0 0 8px rgba(206, 55, 41, .12); }

.gbp-hf__merge {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	margin: 24px 0 14px; color: var(--gold-500);
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.gbp-hf__one {
	--i: 7;
	display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px;
	max-width: 860px; margin: 0 auto; padding: 28px 32px;
	background: var(--navy-800); color: var(--cream-50); border-radius: 16px; box-shadow: var(--shadow-deep);
}
.gbp-hf__one .gbp-hf__ico { background: rgba(255, 255, 255, .12); color: var(--cream-50); margin: 0; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06); }
.gbp-hf__one-text { flex: 1 1 280px; text-align: left; }
.gbp-hf__one-text h3 { font-size: 24px; margin: 0 0 6px; color: var(--cream-50); }
.gbp-hf__one-text p { margin: 0; color: rgba(250, 247, 239, .8); font-size: 15px; }

/* Entrance: cards rise one after another, icons draw themselves, arrow bounces, then the one-house card lands */
html.js .gbp-hf__card  { opacity: 0; transform: translateY(40px) scale(.96); }
html.js .gbp-hf__merge { opacity: 0; }
html.js .gbp-hf__one   { opacity: 0; transform: translateY(40px); }
html.js .gbp-hf__ico svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }

.gbp-hf.is-in .gbp-hf__card {
	opacity: 1; transform: none;
	transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
	transition-delay: calc(var(--i) * .12s);
}
.gbp-hf.is-in .gbp-hf__merge { opacity: 1; transition: opacity .6s .9s; }
.gbp-hf.is-in .gbp-hf__merge svg { animation: gbpBounce 1.6s 1.4s ease-in-out infinite; }
.gbp-hf.is-in .gbp-hf__one { opacity: 1; transform: none; transition: opacity .8s 1.1s cubic-bezier(.2, .7, .2, 1), transform .8s 1.1s cubic-bezier(.2, .7, .2, 1); }
.gbp-hf.is-in .gbp-hf__ico svg * { animation: gbpDraw 1.2s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--i) * .12s + .35s); }

/* After the entrance: normal hover behaviour and a gentle idle float on the icons */
.gbp-hf.is-done .gbp-hf__card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; transition-delay: 0s; }
.gbp-hf.is-in .gbp-hf__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.gbp-hf.is-done .gbp-hf__ico svg { animation: gbpBob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }

@media (max-width: 720px) {
	.gbp-hf__row {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
		scrollbar-width: none; margin: 0 -20px; padding: 6px 20px 18px; scroll-padding-left: 20px;
	}
	.gbp-hf__row::-webkit-scrollbar { display: none; }
	.gbp-hf__card { flex: 0 0 70%; max-width: 260px; scroll-snap-align: start; }
	.gbp-hf__one { padding: 24px 20px; text-align: center; }
	.gbp-hf__one-text { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .gbp-hf__card, html.js .gbp-hf__merge, html.js .gbp-hf__one { opacity: 1; transform: none; }
	html.js .gbp-hf__ico svg * { stroke-dashoffset: 0; animation: none !important; }
	.gbp-hf__ico svg, .gbp-hf__merge svg { animation: none !important; }
}

/* =====================================================================
   Header: no hamburger. On phones the menu becomes a swipeable pill row under the logo.
   ===================================================================== */
.menu-toggle { display: none !important; }
@media (max-width: 680px) {
	.site-header .container { flex-wrap: wrap !important; row-gap: 0; }
	.primary-nav {
		display: block !important; order: 5; flex: 0 0 100%; width: 100%;
		overflow-x: auto; scrollbar-width: none; padding: 4px 0 12px;
	}
	.primary-nav::-webkit-scrollbar { display: none; }
	.primary-nav ul { display: flex; flex-wrap: nowrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
	.primary-nav li { flex: 0 0 auto; }
	.primary-nav a {
		display: block; padding: 8px 14px; border: 1px solid var(--gray-300); border-radius: 999px;
		background: var(--white); font-size: 13px; white-space: nowrap;
	}
	.primary-nav .sub-menu { display: none !important; }
}

/* =====================================================================
   Sub-headings (Publishing model / process / genre), model cards, genre cards
   ===================================================================== */
/* Clear, consistent gap between the stacked groups (model → process → genres) */
.gbp-sec .gbp-subhead { margin: 88px auto 32px; }
.gbp-sec .gbp-cards + .gbp-subhead, .gbp-sec .gbp-steps2 + .gbp-subhead { margin-top: 96px; }
.gbp-cards--2 .gbp-card { max-width: calc(50% - 12px); flex-basis: 320px; text-align: center; }

/* Genre cards: same white card, navy icon circle and red accent as the rest of the theme, one fixed size */
.gbp-genres { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.gbp-genre {
	flex: 0 1 calc(25% - 15px); min-width: 210px; max-width: 260px; text-align: center;
	background: var(--white); border: 1px solid var(--gray-300); border-top: 3px solid var(--gold-500); border-radius: 12px;
	padding: 26px 18px 22px;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.gbp-genre .gbp-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
	background: var(--navy-800); color: var(--cream-50); box-shadow: 0 0 0 5px rgba(21, 58, 99, .08);
	transition: background .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.gbp-genre .gbp-ico svg { display: block; }
.gbp-genre h3 { font-size: 18px; line-height: 1.25; margin: 0; }
.gbp-genre:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; border-top-color: var(--gold-500); }
.gbp-genre:hover .gbp-ico { background: var(--gold-500); transform: rotate(-6deg) scale(1.06); }

@media (max-width: 720px) {
	.gbp-sec .gbp-subhead { margin: 64px auto 24px; }
	.gbp-genres { gap: 12px; }
	.gbp-genre { flex: 0 1 calc(50% - 6px); min-width: 0; padding: 20px 10px 18px; }
	.gbp-genre .gbp-ico { width: 48px; height: 48px; }
	.gbp-genre h3 { font-size: 15px; }
}

/* Layout fixes: model cards 2x2; genre grid not capped by the generic "ul" width rule */
.gbp-cards.gbp-cards--2 .gbp-card { flex: 1 1 calc(50% - 12px); max-width: calc(50% - 12px); }
.gbp-sec > ul.gbp-genres { max-width: 1100px; }
@media (max-width: 720px) { .gbp-cards.gbp-cards--2 .gbp-card { flex: 0 0 82%; max-width: 320px; } }

/* =====================================================================
   Publishing approach – deep blue cards with a maroon glow (built from the theme navy + red)
   ===================================================================== */
.gbp-pa { --maroon-700: #6a1c28; --maroon-900: #3a1019; max-width: 1100px; margin: 8px auto 0; }
.gbp-pa__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gbp-pa__card {
	position: relative; overflow: hidden; isolation: isolate;
	padding: 34px 32px 32px; border-radius: 16px; color: var(--cream-50);
	background: linear-gradient(145deg, var(--navy-800) 0%, var(--navy-900) 58%, var(--maroon-900) 135%);
	border: 1px solid rgba(255, 255, 255, .08);
	box-shadow: 0 22px 44px -24px rgba(13, 32, 56, .65);
	transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s;
}
.gbp-pa__card::before {            /* maroon glow */
	content: ""; position: absolute; z-index: -1; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
	background: radial-gradient(circle, rgba(138, 32, 48, .6), transparent 68%);
	transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .85;
}
.gbp-pa__card::after {             /* red accent line that draws in on hover */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, var(--gold-500), var(--maroon-700));
	transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.gbp-pa__card:hover { transform: translateY(-6px); box-shadow: 0 30px 56px -22px rgba(106, 28, 40, .55); border-color: rgba(206, 55, 41, .35); }
.gbp-pa__card:hover::before { transform: scale(1.35); opacity: 1; }
.gbp-pa__card:hover::after { transform: scaleX(1); }
.gbp-pa__ico {
	display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 20px;
	border-radius: 14px; background: rgba(255, 255, 255, .09); color: var(--cream-50); border: 1px solid rgba(255, 255, 255, .14);
	transition: background .3s, transform .4s cubic-bezier(.22, 1, .36, 1), border-color .3s;
}
.gbp-pa__ico svg { display: block; }
.gbp-pa__card:hover .gbp-pa__ico { background: var(--gold-500); border-color: var(--gold-500); transform: rotate(-6deg) scale(1.06); }
.gbp-pa__card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.2; color: var(--cream-50); text-align: left; }
.gbp-pa__card p { margin: 0; font-size: 15.5px; line-height: 1.7; color: rgba(250, 247, 239, .82); text-align: left; max-width: none; }

.gbp-pa__banner {
	margin-top: 24px; padding: 34px 32px; text-align: center; border-radius: 16px; color: var(--cream-50);
	background: linear-gradient(120deg, var(--maroon-900) 0%, var(--maroon-700) 38%, var(--navy-800) 100%);
	box-shadow: 0 22px 44px -24px rgba(58, 16, 25, .7);
}
.gbp-pa__eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 247, 239, .7); margin-bottom: 10px; }
.gbp-pa__banner p { margin: 0 auto 22px; max-width: 760px; font-family: var(--font-serif); font-size: 22px; line-height: 1.45; color: var(--cream-50); text-align: center; }
.gbp-pa__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.gbp-pa__chips li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; font-size: 14px; letter-spacing: .04em; transition: background .3s, transform .3s; }
.gbp-pa__chips li:hover { background: var(--gold-500); transform: translateY(-2px); }
.gbp-pa__chips .gbp-pa__ico { width: 32px; height: 32px; margin: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 0; }
.gbp-pa__chips .gbp-pa__ico svg { width: 16px; height: 16px; }
.gbp-pa__chips li + li::before { content: "→"; position: absolute; }
.gbp-pa__chips li + li::before { display: none; }

@media (max-width: 720px) {
	.gbp-pa__grid { grid-template-columns: 1fr; gap: 16px; }
	.gbp-pa__card { padding: 26px 22px; }
	.gbp-pa__card h3 { font-size: 21px; }
	.gbp-pa__banner { padding: 26px 20px; }
	.gbp-pa__banner p { font-size: 18px; }
}

/* =====================================================================
   Publishing approach: entrance + idle animation
   ===================================================================== */
@keyframes gbpGlow  { from { translate: 0 0; } to { translate: -34px 26px; } }
@keyframes gbpShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes gbpChip  { 0%, 34%, 100% { background: rgba(255, 255, 255, .1); transform: none; } 8%, 24% { background: var(--gold-500); transform: translateY(-3px); } }
@keyframes gbpSep   { 0%, 40%, 100% { opacity: .4; transform: none; } 14%, 28% { opacity: 1; transform: translateX(4px); } }

html.js .gbp-pa__card   { opacity: 0; transform: translateY(46px) scale(.96); }
html.js .gbp-pa__banner { opacity: 0; transform: translateY(40px); }
html.js .gbp-pa__ico svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }

.gbp-pa.is-in .gbp-pa__card {
	opacity: 1; transform: none;
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s;
	transition-delay: calc(var(--i) * .14s);
}
.gbp-pa.is-in .gbp-pa__banner { opacity: 1; transform: none; transition: opacity .9s .7s cubic-bezier(.2, .7, .2, 1), transform .9s .7s cubic-bezier(.2, .7, .2, 1); }
.gbp-pa.is-in .gbp-pa__ico svg * { animation: gbpDraw 1.2s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .14s + .45s); }
.gbp-pa.is-in .gbp-pa__chip .gbp-pa__ico svg * { animation-delay: 1.5s; }

/* After the entrance: hover works normally, glow drifts, banner colour flows, chips light up in sequence */
.gbp-pa.is-done .gbp-pa__card { transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s, border-color .4s; transition-delay: 0s; }
.gbp-pa.is-in .gbp-pa__card:hover { transform: translateY(-6px); }
.gbp-pa.is-done .gbp-pa__card::before { animation: gbpGlow 7s ease-in-out infinite alternate; }
.gbp-pa.is-done .gbp-pa__card:nth-child(even)::before { animation-duration: 9s; animation-direction: alternate-reverse; }
.gbp-pa.is-done .gbp-pa__card .gbp-pa__ico svg { animation: gbpBob 4.5s ease-in-out infinite; animation-delay: calc(var(--i) * .4s); }
.gbp-pa__banner { background-size: 220% 100%; }
.gbp-pa.is-done .gbp-pa__banner { transition: none; animation: gbpShift 9s ease-in-out infinite alternate; }
.gbp-pa.is-done .gbp-pa__chip { animation: gbpChip 5.4s ease-in-out infinite; animation-delay: calc(var(--c) * 1.8s); }
.gbp-pa.is-done .gbp-pa__sep  { animation: gbpSep 5.4s ease-in-out infinite; animation-delay: calc(var(--c) * 1.8s + .9s); }
.gbp-pa__chips li.gbp-pa__sep { background: none; border: 0; padding: 0; font-size: 20px; color: rgba(250, 247, 239, .7); }
.gbp-pa__chips li.gbp-pa__sep:hover { background: none; transform: none; }

/* On phones the four cards become a swipe row, like the other card groups */
@media (max-width: 720px) {
	.gbp-pa__grid {
		display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 -20px; padding: 6px 20px 20px; scroll-padding-left: 20px;
	}
	.gbp-pa__grid::-webkit-scrollbar { display: none; }
	.gbp-pa__card { flex: 0 0 84%; max-width: 330px; scroll-snap-align: start; }
	.gbp-pa__card p { font-size: 15px; }
	.gbp-pa__banner { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	html.js .gbp-pa__card, html.js .gbp-pa__banner { opacity: 1; transform: none; }
	html.js .gbp-pa__ico svg * { stroke-dashoffset: 0; animation: none !important; }
	.gbp-pa__card::before, .gbp-pa__banner, .gbp-pa__chip, .gbp-pa__sep, .gbp-pa__card .gbp-pa__ico svg { animation: none !important; }
}

/* =====================================================================
   Mobile responsive pass (header, hero, footer)
   ===================================================================== */
@media (max-width: 900px) {
	.hero { padding-top: 56px; padding-bottom: 48px; }
}
@media (max-width: 680px) {
	/* Header: logo left, search + compact button right, menu pills underneath */
	.site-header .container { gap: 10px 12px !important; padding-top: 10px; padding-bottom: 0; }
	.site-logo img { height: 44px; width: auto; }
	.header-actions { gap: 10px; margin-left: auto; }
	.header-actions .btn { padding: 10px 14px; font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
	/* Hero: no oversized blank bands once the cover fan is hidden */
	.hero { padding-top: 36px; padding-bottom: 32px; }
	.ashgrove-hero { min-height: 0; padding-bottom: 64px; }
	/* Footer link columns two-up instead of one long list */
	.footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 20px; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.site-footer .site-logo img, .site-footer img { max-width: 100%; height: auto; }
}
@media (max-width: 360px) {
	.header-actions .btn { padding: 9px 10px; font-size: 10px; }
	.site-logo img { height: 38px; }
}
@media (max-width: 680px) {
	/* A centred flex row that overflows hides its first items; start from the left so every pill is reachable */
	.primary-nav ul { justify-content: flex-start !important; width: max-content; min-width: 100%; }
	.primary-nav { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 720px) {
	.gbp-pa__chips { flex-wrap: nowrap; gap: 6px; }
	.gbp-pa__chips li.gbp-pa__chip { padding: 6px 12px 6px 6px; font-size: 13px; gap: 8px; }
	.gbp-pa__chips .gbp-pa__ico { width: 28px; height: 28px; }
	.gbp-pa__chips li.gbp-pa__sep { font-size: 16px; }
}
@media (max-width: 400px) {
	.gbp-pa__banner { padding: 24px 14px; }
	.gbp-pa__chips { gap: 4px; }
	.gbp-pa__chips li.gbp-pa__chip { padding: 5px 10px 5px 5px; font-size: 12px; gap: 6px; }
	.gbp-pa__chips .gbp-pa__ico { width: 26px; height: 26px; }
	.gbp-pa__chips .gbp-pa__ico svg { width: 14px; height: 14px; }
	.gbp-pa__chips li.gbp-pa__sep { font-size: 14px; }
}

/* Breathing room around the approach block and the books ticker */
.gbp-sec .gbp-pa + p { margin-top: 64px; }
.gbp-sec .gbs { margin-top: 28px; margin-bottom: 8px; }
.gbp-sec .gbs + .section-head { margin-top: 88px; }
@media (max-width: 720px) { .gbp-sec .gbp-pa + p { margin-top: 44px; } .gbp-sec .gbs + .section-head { margin-top: 64px; } }

/* =====================================================================
   Nine services – reuse the Publishing approach cards in a 3-column grid
   ===================================================================== */
.gbp-pa__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gbp-pa--services { max-width: 1160px; }
.gbp-pa--services .gbp-pa__card { padding: 30px 26px 28px; }
.gbp-pa--services .gbp-pa__card h3 { font-size: 21px; }
.gbp-pa--services .gbp-pa__card p { font-size: 15px; line-height: 1.65; }
.gbp-sec .gbp-hf + .gbp-pa { margin-top: 72px; }
.gbp-sec .gbp-pa + .gbp-subhead { margin-top: 96px; }
@media (max-width: 1000px) and (min-width: 721px) { .gbp-pa__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hidden screen-reader labels are absolutely positioned; anchor them to their card so they can't widen the page from inside a swipe row */
.gbp-steps2 li, .gbp-hf__card, .gbp-genre, .gbp-pa__card, .gbp-cards .gbp-card { position: relative; }

/* =====================================================================
   Sort by genre – 4-up cards (same system as the nine services)
   ===================================================================== */
.gbp-pa__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gbp-pa--genres .gbp-pa__card { padding: 28px 22px 26px; }
.gbp-pa--genres .gbp-pa__card h3 { font-size: 19px; }
.gbp-pa--genres .gbp-pa__card p { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 1000px) and (min-width: 721px) { .gbp-pa__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
   Header menu: refined top level + icon dropdown panels (desktop)
   ===================================================================== */
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--gold-500); }
.primary-nav .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 6px; }
.primary-nav .menu-item-has-children > a::before {
	order: 2; margin: 0 0 0 2px; width: 5px; height: 5px; border-width: 0 1.8px 1.8px 0;
	transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.primary-nav .menu-item-has-children:hover > a::before,
.primary-nav .menu-item-has-children:focus-within > a::before { transform: translateY(1px) rotate(225deg); }

@media (min-width: 681px) {
	.primary-nav .sub-menu {
		display: flex; flex-direction: column; list-style: none; margin: 0;
		position: absolute; top: calc(100% + 12px); left: -18px; min-width: 290px; padding: 10px;
		background: #fff; border: 1px solid var(--gray-300); border-top: 3px solid var(--gold-500); border-radius: 14px;
		box-shadow: 0 30px 60px -24px rgba(13, 32, 56, .35); z-index: 200;
		opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px);
		transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility .25s;
	}
	.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* keeps the panel open while the pointer travels to it */
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
	.primary-nav .sub-menu li { width: 100%; }
	.primary-nav .sub-menu a {
		display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px;
		font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; color: var(--navy-800);
		transition: background .25s, transform .25s;
	}
	.primary-nav .sub-menu a:hover { background: var(--cream-100); color: var(--navy-800); transform: translateX(3px); }
	.gbp-mi {
		flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
		width: 34px; height: 34px; border-radius: 10px; background: var(--navy-800); color: var(--cream-50);
		transition: background .25s, transform .3s cubic-bezier(.22, 1, .36, 1);
	}
	.primary-nav .sub-menu a:hover .gbp-mi { background: var(--gold-500); transform: rotate(-6deg) scale(1.08); }

	/* Long menus (Services) become a two-column panel with the overview as a feature bar */
	.primary-nav .gbp-mega > .sub-menu,
	.primary-nav .gbp-mega:hover > .sub-menu,
	.primary-nav .gbp-mega:focus-within > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; min-width: 620px; }
	.primary-nav .gbp-mega > .sub-menu > li:first-child { grid-column: 1 / -1; }
	.primary-nav .gbp-mega > .sub-menu > li:first-child a {
		background: linear-gradient(120deg, var(--navy-800) 0%, #4a1a27 150%); color: var(--cream-50); margin-bottom: 6px; padding: 12px 12px;
	}
	.primary-nav .gbp-mega > .sub-menu > li:first-child a:hover { background: linear-gradient(120deg, var(--navy-900) 0%, #6a1c28 150%); color: var(--cream-50); }
	.primary-nav .gbp-mega > .sub-menu > li:first-child .gbp-mi { background: rgba(255, 255, 255, .14); }
}
@media (prefers-reduced-motion: reduce) { .primary-nav .sub-menu { transition: none; } }

/* =====================================================================
   Homepage Imprints: five cards, each with its own logo + book imagery.
   Desktop (hover devices): description is revealed on hover / keyboard focus.
   Tablet + mobile: swipeable carousel, description always visible.
   ===================================================================== */
.section--imprints {
	--imp-gold: #d9b27c; --imp-gold-soft: rgba(217, 178, 124, .38); --imp-cream: #efe6d2;
	position: relative; overflow: hidden; padding: 96px 0 104px; color: var(--imp-cream);
	background:
		radial-gradient(900px 520px at 100% 0%, rgba(122, 24, 44, .55), transparent 65%),
		radial-gradient(700px 480px at 0% 100%, rgba(106, 28, 40, .32), transparent 70%),
		linear-gradient(160deg, #08142a 0%, #0d2038 55%, #1a0f1d 125%);
}
.gbp-imp__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.gbp-imp__head h2 { margin: 0; font-size: clamp(36px, 4.6vw, 58px); font-weight: 600; letter-spacing: -.01em; color: var(--imp-cream); }
.gbp-imp__orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 20px auto 22px; color: var(--imp-gold); }
.gbp-imp__orn::before, .gbp-imp__orn::after { content: ""; width: 72px; height: 1px; background: linear-gradient(90deg, transparent, var(--imp-gold-soft)); }
.gbp-imp__orn::after { transform: scaleX(-1); }
.gbp-imp__head p { margin: 0; font-size: 17px; line-height: 1.75; color: rgba(239, 230, 210, .8); text-wrap: balance; }

/* --- track: carousel by default, grid on wide screens --- */
.gbp-imp__track {
	display: flex; gap: 16px; margin: 0 -32px; padding: 6px 32px 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 32px;
	scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.gbp-imp__track::-webkit-scrollbar { display: none; }

/* --- card --- */
.imp {
	--imp-gold: #d9b27c;
	position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
	flex: 0 0 min(80vw, 300px); min-height: 480px; scroll-snap-align: center;
	border: 1px solid var(--imp-gold-soft); border-radius: 8px;
	background: linear-gradient(180deg, #091830 0%, #0b1b33 42%, var(--tint) 175%);
	box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .75);
	transition: border-color .45s, box-shadow .45s, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.imp::before {                        /* soft gold sheen that warms the card on hover */
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
	background: radial-gradient(120% 70% at 50% 0%, rgba(217, 178, 124, .13), transparent 70%);
	transition: opacity .5s;
}
.imp__top { padding: 36px 18px 0; text-align: center; }
.imp__logo { display: block; width: 64px; height: 64px; margin: 0 auto 16px; color: var(--imp-gold); }
.imp__logo svg { display: block; width: 100%; height: 100%; overflow: visible; }

.imp__name { margin: 0; color: var(--imp-gold); font: 600 17px/1.35 var(--font-serif); letter-spacing: .2em; text-transform: uppercase; }
.imp__name-main { display: block; }
.imp__name-sub { display: block; margin-top: 4px; font: 500 9.5px/1.2 var(--font-sans); letter-spacing: .34em; }
.imp--falcon-business-books .imp__name-main { font-size: 22px; letter-spacing: .24em; }
.imp--majlis .imp__name-main { letter-spacing: .26em; }
.imp--dhow-kids .imp__name { font: 600 25px/1.2 'Fredoka', var(--font-sans); letter-spacing: 0; text-transform: none; }
.imp--dhow-kids .imp__logo { width: 66px; height: 66px; }
.imp--majlis .imp__logo { width: 76px; }

.imp__reveal { padding: 0 22px; text-align: center; }
.imp__rule { display: block; width: 30px; height: 1px; margin: 18px auto 16px; background: var(--imp-gold); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.imp__reveal p { margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: rgba(239, 230, 210, .88); }
.imp__more { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--imp-gold); }
.imp__more::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }   /* whole card is the click target */
.imp__more:focus-visible { outline: none; }
.imp__more:focus-visible::after { outline: 2px solid var(--imp-gold); outline-offset: -3px; }
.imp__arrow { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.imp:hover .imp__arrow, .imp__more:focus-visible .imp__arrow { transform: translateX(4px); }

.imp__art { margin-top: auto; padding-top: 22px; line-height: 0; transform-origin: 50% 100%; transition: transform .75s cubic-bezier(.2, .7, .2, 1); }
.imp__art svg { display: block; width: 100%; height: auto; }
.imp__art img { display: block; width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }

.imp:hover { border-color: rgba(217, 178, 124, .7); box-shadow: 0 30px 56px -24px rgba(0, 0, 0, .85), 0 0 0 1px rgba(217, 178, 124, .12); }
.imp:hover::before { opacity: 1; }

/* --- dots (carousel only) --- */
.gbp-imp__dots { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.gbp-imp__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 8px; background: rgba(239, 230, 210, .3); transition: width .3s, background .3s; }
.gbp-imp__dots button[aria-current="true"] { width: 24px; background: var(--imp-gold); }
.gbp-imp__dots button:focus-visible { outline: 2px solid var(--imp-gold); outline-offset: 3px; }

/* --- tablet: wider cards, a few visible at once --- */
@media (min-width: 640px) { .imp { flex-basis: 280px; } }

/* --- desktop: five-up grid --- */
@media (min-width: 1100px) {
	.gbp-imp__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
	.imp { flex: none; }
	.gbp-imp__dots { display: none; }
}

/* --- desktop with a mouse: description is hidden until hover / focus ---
   The reveal block stays in normal flow (so the card's stretched link covers the whole card);
   only opacity is animated on it, and the transforms are on its children. */
@media (min-width: 1100px) and (hover: hover) {
	.imp { height: 548px; min-height: 0; }
	.imp:hover, .imp:focus-within { transform: translateY(-5px); }
	.imp__top { min-height: 168px; }
	.imp__reveal { opacity: 0; transition: opacity .45s ease; }
	.imp__reveal p { transform: translateY(12px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
	.imp:hover .imp__reveal, .imp:focus-within .imp__reveal { opacity: 1; transition-delay: .06s; }
	.imp:hover .imp__reveal p, .imp:focus-within .imp__reveal p { transform: none; transition-delay: .06s; }
	.imp__rule { width: 0; }
	.imp:hover .imp__rule, .imp:focus-within .imp__rule { width: 30px; transition-delay: .18s; }
	.imp__art { position: absolute; left: 0; right: 0; bottom: 0; padding: 0; transform: scale(1.18); }
	.imp:hover .imp__art, .imp:focus-within .imp__art { transform: scale(1); }
}

@media (max-width: 720px) {
	.section--imprints { padding: 64px 0 72px; }
	.gbp-imp__head { margin-bottom: 36px; }
	.gbp-imp__head p { font-size: 16px; }
	.gbp-imp__track { margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.imp, .imp::before, .imp__reveal, .imp__reveal p, .imp__rule, .imp__art, .imp__arrow, .gbp-imp__dots button { transition: none !important; }
	.imp:hover, .imp:focus-within { transform: none; }
}


/* =====================================================================
   Homepage Newsletter: same dark navy/maroon surface as Imprints.
   Button colour follows the section: dark surface -> gold button, navy text.
   ===================================================================== */
.section--newsletter {
	--imp-gold: #d9b27c; --imp-gold-soft: rgba(217, 178, 124, .38); --imp-cream: #efe6d2;
	position: relative; overflow: hidden; padding: 96px 0 104px; color: var(--imp-cream);
	background:
		radial-gradient(900px 520px at 0% 0%, rgba(122, 24, 44, .5), transparent 65%),
		radial-gradient(700px 480px at 100% 100%, rgba(106, 28, 40, .3), transparent 70%),
		linear-gradient(200deg, #08142a 0%, #0d2038 55%, #1a0f1d 125%);
}
.gbp-nl__head { margin-bottom: 40px; }
.gbp-nl__card {
	max-width: 640px; margin: 0 auto; padding: 36px 36px 30px; text-align: center;
	border: 1px solid var(--imp-gold-soft); border-radius: 8px;
	background: linear-gradient(180deg, #091830 0%, #0b1b33 55%, #1d3f78 260%);
	box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .75);
}
.section--newsletter .gbp-form { display: flex; gap: 12px; max-width: none; margin: 0; align-items: stretch; }
.section--newsletter .gbp-form > p { flex: 1 1 auto; margin: 0; min-width: 0; }
.section--newsletter .gbp-form label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section--newsletter .gbp-form input[type=email] {
	width: 100%; height: 100%; min-height: 52px; padding: 14px 18px; font-size: 15px; color: var(--imp-cream);
	background: rgba(239, 230, 210, .07); border: 1px solid var(--imp-gold-soft); border-radius: 4px;
}
.section--newsletter .gbp-form input[type=email]::placeholder { color: rgba(239, 230, 210, .6); }
.section--newsletter .gbp-form input[type=email]:focus { outline: none; border-color: var(--imp-gold); box-shadow: 0 0 0 3px rgba(217, 178, 124, .22); }
.section--newsletter .gbp-form .btn {
	flex: 0 0 auto; justify-content: center; min-height: 52px; padding: 0 30px; border-radius: 4px;
	background: var(--imp-gold); border-color: var(--imp-gold); color: #08142a;
}
.section--newsletter .gbp-form .btn:hover { background: #e6c394; border-color: #e6c394; }
.section--newsletter .gbp-form .btn:focus-visible { outline: 2px solid var(--imp-cream); outline-offset: 3px; }
.gbp-nl__note { margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: rgba(239, 230, 210, .72); }
.section--newsletter .gbp-notice { max-width: none; margin: 0; background: rgba(217, 178, 124, .12); border-left-color: var(--imp-gold); color: var(--imp-cream); text-align: left; }
@media (max-width: 560px) {
	.section--newsletter { padding: 64px 0 72px; }
	.gbp-nl__card { padding: 26px 20px 24px; }
	.section--newsletter .gbp-form { flex-direction: column; }
	.section--newsletter .gbp-form .btn { width: 100%; }
}
