/*
Theme Name:   Cosmic Roadmaps
Theme URI:    https://cosmicroadmaps.com/
Description:  Child theme of BlankSlate for Cosmic Roadmaps. Midnight navy, antique gold, a little starlight.
Author:       Deaglán MacCanna
Template:     blankslate
Version:      1.0.0
Text Domain:  cosmic-roadmaps
*/

/* ==========================================================================
   1. Tokens
   Palette carried over from the AttractWell pages:
     navy #0a0f1c, gold #C4A049, cream text #f7f2e8, button #d0ab55 / #101522.
   "Lighter navy" panels are rgba(255,255,255,.03) laid over the navy, not a
   second hex. Hover is a brightness() filter on the same colour, not a second
   gold.
   ========================================================================== */
:root {
	--cr-night:       #0a0f1c;
	--cr-night-raise: #0d1424;
	--cr-gold:        #C4A049;
	--cr-gold-line:   rgba(196, 160, 73, .24); /* decorative dividers */
	--cr-gold-edge:   rgba(196, 160, 73, .65); /* borders that must be seen: inputs, focus */
	--cr-cream:       #f7f2e8;
	--cr-muted:       #b9bfce;
	--cr-panel:       rgba(255, 255, 255, .03);
	--cr-btn:         #d0ab55;
	--cr-btn-text:    #101522;

	--cr-font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--cr-font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. Base + full-screen starfield
   The navy lives on <html>. <body> must stay transparent: a body background
   would paint over the sparkle layers, which sit at z-index -1 behind content.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	background: var(--cr-night);
	color-scheme: dark; /* dark scrollbars and native form controls */
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px; /* sticky header won't cover #anchor targets */
}

body {
	margin: 0;
	min-height: 100vh;
	background: transparent;
	color: var(--cr-cream);
	font-family: var(--cr-font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* Layer 1: nebula glow + static stars, fixed to the viewport */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(ellipse 70% 50% at 15% 10%, rgba(92, 56, 150, .30), transparent 70%),
		radial-gradient(ellipse 60% 45% at 88% 88%, rgba(38, 72, 150, .26), transparent 70%),
		radial-gradient(ellipse 50% 35% at 70% 20%, rgba(196, 160, 73, .06), transparent 70%),
		radial-gradient(1px 1px at 23px 41px,    rgba(247, 242, 232, .85), transparent 100%),
		radial-gradient(1px 1px at 131px 97px,   rgba(247, 242, 232, .65), transparent 100%),
		radial-gradient(1.2px 1.2px at 187px 203px, rgba(247, 242, 232, .75), transparent 100%),
		radial-gradient(1px 1px at 61px 163px,   rgba(196, 160, 73, .80), transparent 100%),
		radial-gradient(1px 1px at 247px 59px,   rgba(247, 242, 232, .60), transparent 100%),
		radial-gradient(1.3px 1.3px at 291px 271px, rgba(247, 242, 232, .80), transparent 100%),
		radial-gradient(1px 1px at 97px 331px,   rgba(247, 242, 232, .55), transparent 100%),
		radial-gradient(1px 1px at 383px 143px,  rgba(196, 160, 73, .70), transparent 100%);
	background-size:
		100% 100%, 100% 100%, 100% 100%,
		230px 230px, 230px 230px, 230px 230px,
		310px 310px, 310px 310px, 310px 310px,
		410px 410px, 410px 410px;
}

/* Layers 2 and 3: two sets of brighter stars that twinkle out of step */
body::after,
html::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	will-change: opacity;
}

body::after {
	background-image:
		radial-gradient(1.4px 1.4px at 77px 119px,  rgba(247, 242, 232, 1), transparent 100%),
		radial-gradient(1.2px 1.2px at 199px 37px,  rgba(196, 160, 73, 1),  transparent 100%),
		radial-gradient(1.5px 1.5px at 143px 241px, rgba(247, 242, 232, 1), transparent 100%),
		radial-gradient(1px 1px at 301px 83px,      rgba(247, 242, 232, 1), transparent 100%);
	background-size: 260px 260px, 260px 260px, 340px 340px, 340px 340px;
	animation: cr-twinkle 5s ease-in-out infinite alternate;
}

html::after {
	background-image:
		radial-gradient(1.6px 1.6px at 47px 309px,  rgba(247, 242, 232, 1), transparent 100%),
		radial-gradient(1.3px 1.3px at 351px 217px, rgba(196, 160, 73, 1),  transparent 100%),
		radial-gradient(1.1px 1.1px at 173px 61px,  rgba(247, 242, 232, 1), transparent 100%);
	background-size: 380px 380px, 380px 380px, 290px 290px;
	animation: cr-twinkle 8s ease-in-out -3s infinite alternate;
}
.updated {
	font-style: italic;
	}

@keyframes cr-twinkle {
	from { opacity: .15; }
	to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	body::after, html::after { animation: none; opacity: .7; }
}

::selection { background: var(--cr-gold); color: var(--cr-btn-text); }

/* ==========================================================================
   3. Layout skeleton (BlankSlate ids)
   ========================================================================== */
#wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#container {
	flex: 1 0 auto;
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(28px, 5vw, 60px) clamp(16px, 4vw, 24px);
}

#content { min-width: 0; }

/* ==========================================================================
   4. Header: short banner, logo left, menu right
   ========================================================================== */
#header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	padding: 10px clamp(16px, 4vw, 40px);
	background: rgba(10, 15, 28, .90);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--cr-gold-line);
}

.admin-bar #header { top: 32px; }
@media (max-width: 782px) { .admin-bar #header { top: 46px; } }

#branding { flex: 0 0 auto; }

#site-title,
#site-title h1 {
	margin: 0;
	padding: 0;
	font-size: 0;   /* the banner image carries the name; the text is visually hidden */
	line-height: 0;
}

#site-title a { display: inline-block; line-height: 0; }

#site-title img {
	display: block;
	height: 56px;   /* 1050x200 banner -> about 294px wide */
	width: auto;
	max-width: 100%;
}

/* ---- Menus (shared) ---- */
.cr-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-menu li { position: relative; margin: 0; }

.cr-menu a {
	display: block;
	padding: 12px 14px;
	border-bottom: 2px solid transparent;
	color: var(--cr-gold);
	font-family: var(--cr-font-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	transition: filter .2s ease, border-color .2s ease;
}

.cr-menu a:hover,
.cr-menu a:focus-visible {
	filter: brightness(1.25);
	border-bottom-color: var(--cr-gold);
}

.cr-menu .current-menu-item > a,
.cr-menu .current_page_item > a,
.cr-menu .current-menu-ancestor > a { border-bottom-color: var(--cr-gold); }

/* Sub-menus: dropdown on hover/focus */
.cr-menu ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 200;
	flex-direction: column;
	flex-wrap: nowrap;
	min-width: 220px;
	padding: 8px;
	background: var(--cr-night-raise);
	border: 1px solid var(--cr-gold-edge);
	border-radius: 12px;
}

.cr-menu li:hover > ul,
.cr-menu li:focus-within > ul { display: flex; }

.cr-menu ul ul a {
	padding: 10px 12px;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: none;
	border-bottom: 0;
	border-radius: 8px;
}

.cr-menu ul ul a:hover,
.cr-menu ul ul a:focus-visible { background: var(--cr-panel); }

/* ---- Left: site pages, sits beside the logo and takes the free space ---- */
.cr-menu--site { flex: 1 1 auto; margin-right: auto; }
.cr-menu--site ul { justify-content: flex-start; }
.cr-menu--site ul.menu > li:first-child { margin-right: 14px; }

.cr-menu--site ul.menu > li:first-child::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -10px;
	width: 1px;
	height: 18px;
	transform: translateY(-50%);
	background: var(--cr-gold-edge);
	pointer-events: none;
}

/* ---- Right: user links ---- */
.cr-menu--user { flex: 0 0 auto; margin-left: auto; }
.cr-menu--user ul { justify-content: flex-end; }
.cr-menu--user ul ul { left: auto; right: 0; } /* keep dropdowns on-screen */

@media (max-width: 720px) {
	#site-title img { height: 44px; }
	.cr-menu--site ul.menu > li:first-child { margin-right: 0; },
	.cr-menu--site ul.menu > li:first-child::after { display: none; },
	.cr-menu--site,
	.cr-menu--user { flex: 1 0 100%; margin: 0; }

	.cr-menu ul,
	.cr-menu--user ul { justify-content: flex-start; margin-left: -14px; }

	.cr-menu ul ul,
	.cr-menu--user ul ul {
		display: flex;
		position: static;
		min-width: 0;
		padding: 0 0 0 12px;
		background: none;
		border: 0;
	}
}

/* ==========================================================================
   5. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	margin: 1.6em 0 .5em;
	color: var(--cr-cream);
	font-family: var(--cr-font-head);
	font-weight: 600;
	line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5, h6 { font-size: 1.1rem; }

#content > :first-child,
.entry-content > :first-child { margin-top: 0; }

.entry-title,
.page-title {
	margin-top: 0;
	font-size: clamp(2rem, 5vw, 3rem);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.entry-title a { color: var(--cr-cream); text-decoration: none; }
.entry-title a:hover,
.entry-title a:focus-visible { color: var(--cr-gold); }

p, ul, ol, dl, figure, table, pre, blockquote { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .3em; }

strong, b { font-weight: 700; }

a {
	color: var(--cr-gold);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: filter .2s ease;
}

a:hover,
a:focus-visible { filter: brightness(1.25); }

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

hr {
	height: 1px;
	margin: 2.4em 0;
	background: var(--cr-gold-line);
	border: 0;
}

blockquote {
	padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--cr-gold);
	color: var(--cr-cream);
	font-family: var(--cr-font-head);
	font-size: 1.3em;
	font-style: italic;
	line-height: 1.5;
}

blockquote cite { color: var(--cr-muted); font-family: var(--cr-font-body); font-size: .7em; font-style: normal; }

code, kbd, pre, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}

code, kbd, samp {
	padding: .1em .4em;
	background: var(--cr-panel);
	border: 1px solid var(--cr-gold-line);
	border-radius: 6px;
}

pre {
	padding: 16px 20px;
	overflow-x: auto;
	background: var(--cr-panel);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
}

pre code { padding: 0; background: none; border: 0; }

table { width: 100%; border-collapse: collapse; }

th, td {
	padding: 10px 14px;
	border: 1px solid var(--cr-gold-line);
	text-align: left;
}

th { color: var(--cr-gold); font-weight: 700; }

/* ==========================================================================
   6. Content: images, captions, alignment, meta
   ========================================================================== */
img, video, iframe { max-width: 100%; }
img, video { height: auto; }

figcaption,
.wp-caption-text,
.gallery-caption {
	margin-top: .5em;
	color: var(--cr-muted);
	font-size: .875rem;
	text-align: center;
}

.wp-caption { max-width: 100%; }

.alignleft   { float: left;  margin: .3em 1.5em 1em 0; }
.alignright  { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
	.alignleft, .alignright { float: none; display: block; margin: 0 auto 1em; }
}

.entry-meta,
.entry-footer,
.byline,
.posted-on {
	color: var(--cr-muted);
	font-size: .9rem;
}

article, .post, .page { margin-bottom: 3em; }
.sticky { border-left: 3px solid var(--cr-gold); padding-left: 1em; }

.entry-footer { padding-top: 1em; border-top: 1px solid var(--cr-gold-line); }

/* Accessibility helpers (WordPress standard + the one used in header.php) */
.screen-reader-text,
.cr-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	background: var(--cr-btn);
	color: var(--cr-btn-text);
}

/* ==========================================================================
   7. Forms and buttons
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--cr-gold-edge);
	border-radius: 10px;
	color: var(--cr-cream);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

::placeholder { color: #9aa2b6; opacity: 1; }

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--cr-gold);
	box-shadow: 0 0 0 3px rgba(196, 160, 73, .30);
}

select option { background: var(--cr-night-raise); color: var(--cr-cream); }

label { display: inline-block; margin-bottom: .3em; color: var(--cr-cream); font-weight: 700; }

input[type="checkbox"],
input[type="radio"] { accent-color: var(--cr-gold); }

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.wp-block-button__link,
.wp-element-button {
	display: inline-block;
	padding: 12px 24px;
	background: var(--cr-btn);
	border: 1px solid var(--cr-btn);
	border-radius: 10px;
	color: var(--cr-btn-text);
	font-family: var(--cr-font-body);
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .2s ease, transform .15s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: var(--cr-gold-edge);
	color: var(--cr-gold);
}

.search-form,
#searchform { display: flex; gap: 10px; }
.search-form label { flex: 1; margin: 0; }

/* ==========================================================================
   8. Sidebar, widgets, comments, pagination
   ========================================================================== */
#sidebar { margin-top: 3em; }

.widget {
	margin-bottom: 24px;
	padding: 20px;
	background: var(--cr-panel);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
}

.widget-title { margin-top: 0; font-size: 1.3rem; }
.widget ul { margin: 0; padding-left: 1.2em; }

#comments { margin-top: 3em; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: clamp(12px, 4vw, 32px); padding: 0; list-style: none; }

.comment-body {
	margin-bottom: 20px;
	padding: 20px;
	background: var(--cr-panel);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
}

.bypostauthor > .comment-body { border-color: var(--cr-gold-edge); }
.comment-meta, .comment-metadata { color: var(--cr-muted); font-size: .875rem; }
#respond { margin-top: 2em; }

.nav-links,
#nav-below,
.navigation.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-top: 2em; }

.page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--cr-gold-edge);
	border-radius: 10px;
	color: var(--cr-gold);
	text-decoration: none;
}

.page-numbers.current { background: var(--cr-btn); border-color: var(--cr-btn); color: var(--cr-btn-text); }

/* ==========================================================================
   9. Footer
   ========================================================================== */
#footer {
	flex-shrink: 0;
	padding: 28px clamp(16px, 4vw, 40px);
	background: rgba(10, 15, 28, .90);
	border-top: 1px solid var(--cr-gold-line);
	color: var(--cr-muted);
	font-size: .9rem;
	text-align: center;
}

#copyright { margin: 0; }

/* ==========================================================================
   10. Home page (page-home.php)
   Full-width sections, the finder flow, the service cards and the rectification band.
   ========================================================================== */
.cr-home-page #container,
.cr-service-page #container { max-width: none; padding: 0; }

.cr-home-page,
.cr-service-page {
	/* Navy glass: the lighter-navy overlay laid over translucent navy, so text stays
	   readable over the starfield. Not a new colour. */
	--cr-surface: linear-gradient(var(--cr-panel), var(--cr-panel)), rgba(10, 15, 28, .78);
}

.cr-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
}

.cr-section { padding: clamp(36px, 6vw, 80px) 0; }

.cr-eyebrow {
	display: block;
	margin: 0 0 14px;
	color: var(--cr-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.cr-h2 { margin-top: 0; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }

.button--ghost {
	background: transparent;
	border-color: var(--cr-gold-edge);
	color: var(--cr-gold);
}

/* ---- Hero ---- */
.cr-hero { padding: clamp(48px, 9vw, 112px) 0 clamp(32px, 6vw, 72px); }

.cr-hero .cr-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
	align-items: center;
	gap: clamp(32px, 6vw, 88px);
}

.cr-hero h1 {
	margin: 0 0 .45em;
	font-size: clamp(2.5rem, 6vw, 4.8rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -.01em;
}

.cr-hero h1 em { color: var(--cr-gold); }

.cr-lede {
	max-width: 36em;
	margin: 0 0 1.8em;
	font-size: clamp(1.05rem, 1.7vw, 1.25rem);
	line-height: 1.7;
}

.cr-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.cr-note { margin: 20px 0 0; color: var(--cr-muted); font-size: .95rem; }

@media (max-width: 860px) {
	.cr-hero .cr-wrap { grid-template-columns: 1fr; }
}

/* The square horary chart: square, diamond and two diagonals make the twelve houses */
.cr-figure {
	justify-self: center;
	width: 100%;
	max-width: 420px;
	filter: drop-shadow(0 0 28px rgba(196, 160, 73, .22));
}

.cr-figure svg { display: block; width: 100%; height: auto; overflow: visible; }

.cr-figure-lines rect,
.cr-figure-lines path {
	fill: none;
	stroke: var(--cr-gold);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cr-faint { opacity: .45; }

.cr-draw {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: cr-draw 2.2s ease forwards;
	animation-delay: var(--d, 0s);
}

@keyframes cr-draw { to { stroke-dashoffset: 0; } }

.cr-star { fill: var(--cr-cream); animation: cr-pulse 4s ease-in-out infinite alternate; }
.cr-star-b { animation-delay: -1.5s; }
.cr-star-c { animation-delay: -3s; }

@keyframes cr-pulse { from { opacity: .35; } to { opacity: 1; } }

/* After the base .cr-figure rule above, so it wins on small screens */
@media (max-width: 860px) {
	.cr-figure { justify-self: start; max-width: 240px; }
}

/* ---- Finder ---- */
.cr-finder { padding-top: 0; scroll-margin-top: 96px; }

.cr-panel {
	padding: clamp(24px, 4vw, 52px);
	background: var(--cr-surface);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
}

/* Without JavaScript every screen shows, one under the other. With it, one at a time. */
.cr-screen + .cr-screen {
	margin-top: 3em;
	padding-top: 3em;
	border-top: 1px solid var(--cr-gold-line);
}

.cr-js .cr-screen { display: none; }
.cr-js .cr-screen.is-active { display: block; }
.cr-js .cr-screen + .cr-screen { margin-top: 0; padding-top: 0; border-top: 0; }

.cr-screen.is-entering { animation: cr-rise .45s ease both; }
.cr-screen.is-leaving  { animation: cr-fall .18s ease both; }

@keyframes cr-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cr-fall { from { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }

.cr-screen h2 {
	margin: 0 0 .3em;
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 500;
}

.cr-screen h2:focus { outline: none; }

.cr-screen-sub,
.cr-callout {
	max-width: 46em;
	margin: 0 0 1.8em;
	color: var(--cr-muted);
	font-size: 1.05rem;
}

.cr-callout {
	padding: 18px 22px;
	background: var(--cr-panel);
	border-left: 3px solid var(--cr-gold);
	border-radius: 0 12px 12px 0;
	color: var(--cr-cream);
}

.cr-nav { display: flex; gap: 22px; margin: 0 0 22px; }

.cr-back {
	color: var(--cr-muted);
	font-size: .9rem;
	letter-spacing: .04em;
	text-decoration: none;
}

.cr-back:hover,
.cr-back:focus-visible { color: var(--cr-gold); }

.cr-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 16px;
}

.cr-option {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 24px;
	background: var(--cr-panel);
	border: 1px solid var(--cr-gold-edge);
	border-radius: 12px;
	color: var(--cr-cream);
	text-decoration: none;
	transition: filter .2s ease, transform .15s ease, border-color .2s ease;
}

.cr-option:hover,
.cr-option:focus-visible {
	filter: brightness(1.35);
	border-color: var(--cr-gold);
	transform: translateY(-2px);
}

.cr-option-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
}

.cr-option-title {
	color: var(--cr-gold);
	font-family: var(--cr-font-head);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.15;
}

.cr-option-price { color: var(--cr-gold); font-weight: 700; white-space: nowrap; }
.cr-option-desc { font-size: .95rem; line-height: 1.55; }

.cr-option.is-prominent {
	background: var(--cr-btn);
	border-color: var(--cr-btn);
	color: var(--cr-btn-text);
}

.cr-option.is-prominent .cr-option-title,
.cr-option.is-prominent .cr-option-price { color: var(--cr-btn-text); }

.cr-option.is-prominent:hover,
.cr-option.is-prominent:focus-visible { filter: brightness(1.1); }

/* A choice that gets a whole row to itself */
.cr-option.is-wide { grid-column: 1 / -1; }

.cr-was { margin-left: .4em; color: var(--cr-muted); font-weight: 400; text-decoration: line-through; }
.cr-option.is-prominent .cr-was { color: var(--cr-btn-text); opacity: .75; }

/* ---- Service cards ---- */
.cr-services {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: 20px;
	margin-top: 28px;
}

.cr-card {
	display: flex;
	flex-direction: column;
	padding: 30px 28px;
	background: var(--cr-surface);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
	color: var(--cr-cream);
	text-decoration: none;
	transition: filter .2s ease, transform .15s ease, border-color .2s ease;
}

.cr-card:hover,
.cr-card:focus-visible {
	filter: brightness(1.3);
	border-color: var(--cr-gold);
	transform: translateY(-3px);
}

.cr-glyph {
	margin-bottom: 18px;
	color: var(--cr-gold);
	font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", "DejaVu Sans", sans-serif;
	font-size: 2rem;
	line-height: 1;
}

.cr-card-title {
	margin: 0 0 .15em;
	font-size: 1.9rem;
	font-weight: 500;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.cr-card-price { margin: 0 0 .8em; color: var(--cr-gold); font-weight: 700; }
.cr-card-blurb { flex: 1; margin: 0 0 1.2em; }

.cr-card-more {
	color: var(--cr-gold);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---- Rectification band ---- */
.cr-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px 48px;
	margin-top: clamp(28px, 4vw, 48px);
	padding: clamp(24px, 4vw, 48px);
	background: linear-gradient(135deg, rgba(196, 160, 73, .14), rgba(196, 160, 73, .04)), rgba(10, 15, 28, .78);
	border: 1px solid var(--cr-gold-edge);
	border-radius: 12px;
}

.cr-band p { max-width: 42em; margin: 0; }
.cr-band .cr-h2 { margin-bottom: .3em; }

@media (max-width: 760px) { .cr-band { grid-template-columns: 1fr; } }

/* ---- Promise strip ---- */
.cr-promise { padding-top: 0; }

.cr-promise-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 28px 48px;
	padding-top: 40px;
	border-top: 1px solid var(--cr-gold-line);
}

.cr-promise-grid h3 { margin: 0 0 .3em; color: var(--cr-gold); font-size: 1.5rem; }
.cr-promise-grid p { margin: 0; color: var(--cr-muted); }

@media (prefers-reduced-motion: reduce) {
	.cr-draw { animation: none; stroke-dashoffset: 0; }
	.cr-star { animation: none; }
	.cr-screen.is-entering, .cr-screen.is-leaving { animation: none; }
	.cr-option, .cr-card { transition: none; }
}

/* ==========================================================================
   11. Service sales pages (page-service.php)
   Heading, copy beside the order form, random testimonials, FAQ underneath.
   ========================================================================== */
.cr-svc-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(16px, 3vw, 32px); }

.cr-svc-hero .cr-glyph { margin-bottom: 14px; font-size: 2.4rem; }

.cr-svc-hero h1 {
	max-width: 14em;
	margin: 0 0 .25em;
	font-size: clamp(2.4rem, 5.6vw, 4.4rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.01em;
}

.cr-svc-sub {
	max-width: 32em;
	margin: 0 0 1em;
	font-family: var(--cr-font-head);
	font-size: clamp(1.35rem, 2.6vw, 1.85rem);
	font-style: italic;
	line-height: 1.35;
}

.cr-svc-price {
	margin: 0 0 1.2em;
	color: var(--cr-gold);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .06em;
}

.cr-svc-from { margin-right: .4em; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; }
.cr-svc-amount { font-family: var(--cr-font-head); font-size: 2.2rem; font-weight: 500; letter-spacing: 0; vertical-align: -.05em; }

.cr-svc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: start;
	gap: clamp(28px, 5vw, 72px);
	padding-bottom: clamp(36px, 6vw, 80px);
}

.cr-svc-layout.is-single { grid-template-columns: minmax(0, 46em); }

.cr-svc-copy { font-size: 1.1rem; line-height: 1.75; }
.cr-svc-copy > :first-child { margin-top: 0; }

@media (max-width: 900px) {
	.cr-svc-layout { grid-template-columns: 1fr; }
}

/* ---- Order form ---- */
.cr-svc-order {
	padding: clamp(22px, 3.5vw, 40px);
	background: var(--cr-surface);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
	scroll-margin-top: 96px;
}

.cr-order-title { margin: 0 0 .8em; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 500; }

.cr-field { margin: 0 0 1.15em; }
.cr-field label { display: block; margin-bottom: .35em; }
.cr-optional { color: var(--cr-muted); font-weight: 400; }

.cr-hint { margin: .45em 0 0; color: var(--cr-muted); font-size: .92rem; line-height: 1.5; }

#cr-time-field.is-off { opacity: .55; }
input:disabled { cursor: not-allowed; }

.cr-check .cr-check-label {
	display: flex;
	align-items: baseline;
	gap: .6em;
	margin: 0;
	cursor: pointer;
}

.cr-check input[type="checkbox"] { flex: none; width: 1.15em; height: 1.15em; transform: translateY(.15em); }
.cr-check-price { margin-left: auto; color: var(--cr-gold); white-space: nowrap; }

.cr-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 1.4em 0 1em;
	padding-top: 1em;
	border-top: 1px solid var(--cr-gold-line);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.cr-total strong {
	color: var(--cr-gold);
	font-family: var(--cr-font-head);
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: 0;
}

.cr-submit { width: 100%; padding: 16px 24px; }
.cr-submit:disabled { cursor: wait; filter: brightness(.8); transform: none; }
.cr-secure { text-align: center; }
#payment-methods {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    opacity: 0.5;
}

#payment-methods img {
    max-height: 20px;
    margin: 0px 7px 0px 7px;
}

.cr-account-line { margin: 0 0 1.15em; padding: 12px 14px; border: 1px solid var(--cr-gold-line); border-radius: 10px; font-size: .95rem; line-height: 1.55; }
.cr-account-line strong { overflow-wrap: anywhere; }

.cr-consent { display: grid; gap: .7em; margin: 1.3em 0 0; }
.cr-consent .cr-check-label { display: flex; align-items: baseline; gap: .6em; margin: 0; font-weight: 400; cursor: pointer; }
.cr-consent input[type="checkbox"] { flex: none; width: 1.15em; height: 1.15em; transform: translateY(.15em); }

/* The spam trap: off-screen, not display:none, so bots still fill it in */
.cr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cr-admin-note { padding: 10px 14px; border: 1px dashed var(--cr-gold-edge); border-radius: 8px; }

/* ---- Testimonials ---- */
.cr-testimonials { padding: clamp(36px, 6vw, 80px) 0; border-top: 1px solid var(--cr-gold-line); }

.cr-quotes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 20px;
	margin-top: 28px;
}

.cr-quote {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 28px;
	background: var(--cr-surface);
	border: 1px solid var(--cr-gold-line);
	border-radius: 12px;
}

.cr-quote blockquote {
	flex: 1;
	margin: 0 0 1.2em;
	padding: 0;
	border: 0;
	font-size: 1.15rem;
	line-height: 1.6;
}

.cr-quote blockquote p { margin: 0 0 .8em; }
.cr-quote blockquote p:last-child { margin-bottom: 0; }

.cr-quote figcaption {
	margin: 0;
	text-align: left;
	color: var(--cr-gold);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

/* ---- Everything after the More block (FAQ) ---- */
.cr-svc-after { padding: clamp(36px, 6vw, 80px) 0; border-top: 1px solid var(--cr-gold-line); }
.cr-svc-after-inner { max-width: 46em; line-height: 1.75; }
.cr-svc-after-inner > :first-child { margin-top: 0; }
.cr-svc-after-inner h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; }

.cr-svc-after details { padding: 1em 0; border-bottom: 1px solid var(--cr-gold-line); }
.cr-svc-after summary { color: var(--cr-cream); font-weight: 700; cursor: pointer; }
.cr-svc-after details[open] summary { margin-bottom: .6em; color: var(--cr-gold); }

@media (max-width: 480px) {
	.cr-quote { padding: 22px; }
}
/* ---- Coupon code box ---- */
.cr-coupon-row { display: flex; gap: .6em; }
.cr-coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.cr-coupon-row .button { flex: none; }
.cr-coupon-msg:empty { display: none; }
.cr-coupon-msg:not(.is-bad) { color: var(--cr-gold); }
.cr-coupon-msg.is-bad { color: #f2b0a8; }
