/*
Theme Name: Care Givers
Theme URI: https://www.caregiversdirect.co.uk/
Author: Afiovana Digital
Description: A lightweight, accessibility-focused block theme for Care Givers Limited.
Version: 0.3.6
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: care-givers
*/

:root {
	--cg-forest: #123f36;
	--cg-forest-deep: #0b3029;
	--cg-ivory: #f8f4eb;
	--cg-paper: #fffdf8;
	--cg-copper: #a9441b;
	--cg-sage: #a9bdb0;
	--cg-mist: #e7eee9;
	--cg-ink: #1d2b27;
	--cg-muted: #5d6965;
	--cg-border: #d9ded8;
	--cg-shadow: 0 18px 50px rgba(18, 63, 54, 0.1);
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--cg-ivory);
	color: var(--cg-ink);
}

body,
button,
input,
select,
textarea {
	-webkit-font-smoothing: antialiased;
}

a,
button {
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--cg-copper);
	outline-offset: 4px;
}

.cg-staging-note {
	background: var(--cg-forest-deep);
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	padding: 0.55rem 1rem;
	text-align: center;
}

.cg-site-header {
	background: rgba(255, 253, 248, 0.97);
	border-bottom: 1px solid rgba(18, 63, 54, 0.12);
	position: sticky;
	top: 0;
	z-index: 30;
}

.admin-bar .cg-site-header {
	top: 32px;
}

.cg-header-inner {
	min-height: 82px;
}

.cg-wordmark a {
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.cg-primary-nav a {
	color: var(--cg-ink);
	font-size: 0.88rem;
	text-decoration: none;
}

.cg-primary-nav a:hover {
	color: var(--cg-copper);
}

.wp-block-button__link {
	box-shadow: none;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

.is-style-outline > .wp-block-button__link {
	background: transparent;
	border-width: 1px;
}

.cg-section {
	padding-bottom: clamp(4rem, 7vw, 7rem);
	padding-top: clamp(4rem, 7vw, 7rem);
}

.cg-section-compact {
	padding-bottom: clamp(2rem, 4vw, 4rem);
	padding-top: clamp(2rem, 4vw, 4rem);
}

.cg-eyebrow {
	color: var(--cg-copper);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.cg-lede {
	color: var(--cg-muted);
	font-size: clamp(1.08rem, 1.7vw, 1.3rem);
	line-height: 1.65;
	max-width: 48rem;
}

.cg-hero {
	background:
		radial-gradient(circle at 93% 12%, rgba(169, 189, 176, 0.3), transparent 28rem),
		linear-gradient(135deg, var(--cg-paper), var(--cg-ivory));
	min-height: 660px;
	overflow: hidden;
	padding-bottom: clamp(4rem, 9vw, 7rem);
	padding-top: clamp(4rem, 8vw, 7rem);
	position: relative;
}

.cg-hero h1 {
	font-size: clamp(3rem, 6vw, 5.7rem);
	letter-spacing: -0.045em;
	line-height: 0.98;
	max-width: 12ch;
}

.cg-hero-copy {
	max-width: 40rem;
}

.cg-placeholder-media {
	background: var(--cg-paper);
	border: 1px solid rgba(18, 63, 54, 0.18);
	border-radius: 1rem;
	box-shadow: var(--cg-shadow);
	margin-bottom: 0;
	margin-top: 0;
	overflow: hidden;
	position: relative;
}

.cg-placeholder-media img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.cg-placeholder-media figcaption {
	background: var(--cg-forest-deep);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0;
	padding: 0.8rem 1rem;
	text-align: left;
}

.cg-hero-photo {
	border-radius: 16rem 16rem 1rem 1rem;
}

.cg-section-media {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	margin-top: clamp(2rem, 4vw, 3rem);
	max-width: 1180px;
}

.cg-hero-visual {
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(231, 238, 233, 0.85));
	border: 1px solid rgba(18, 63, 54, 0.14);
	border-radius: 18rem 18rem 1.5rem 1.5rem;
	box-shadow: var(--cg-shadow);
	min-height: 470px;
	overflow: hidden;
	padding: clamp(2rem, 5vw, 4.5rem);
	position: relative;
}

.cg-hero-visual::before,
.cg-hero-visual::after {
	border: 1px solid rgba(197, 104, 61, 0.45);
	border-radius: 50%;
	content: "";
	height: 18rem;
	position: absolute;
	right: -5rem;
	top: -5rem;
	width: 18rem;
}

.cg-hero-visual::after {
	border-color: rgba(18, 63, 54, 0.16);
	height: 26rem;
	right: -8rem;
	top: -8rem;
	width: 26rem;
}

.cg-hero-visual > * {
	position: relative;
	z-index: 1;
}

.cg-hero-quote {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 4vw, 3.3rem);
	line-height: 1.08;
	max-width: 10ch;
}

.cg-pill-row {
	margin-top: auto;
}

.cg-pill {
	background: rgba(255, 253, 248, 0.8);
	border: 1px solid var(--cg-border);
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.55rem 0.85rem;
}

.cg-trust-strip {
	background: var(--cg-forest);
	color: #fff;
}

.cg-trust-strip p {
	color: rgba(255, 255, 255, 0.82);
}

.cg-card-grid {
	align-items: stretch;
}

.cg-card {
	background: var(--cg-paper);
	border: 1px solid var(--cg-border);
	border-radius: 1rem;
	box-shadow: 0 14px 38px rgba(18, 63, 54, 0.06);
	height: 100%;
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.cg-card:hover {
	border-color: rgba(197, 104, 61, 0.55);
	transform: translateY(-3px);
}

.cg-route-card {
	border-top: 4px solid var(--cg-copper);
}

.cg-card-number {
	color: var(--cg-copper);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.2rem;
	line-height: 1;
}

.cg-service-card {
	display: flex;
	flex-direction: column;
	min-height: 240px;
}

.cg-service-card p:last-child {
	margin-top: auto;
}

.cg-service-card h3,
.cg-route-card h3 {
	font-size: clamp(1.65rem, 2.6vw, 2.25rem);
	line-height: 1.1;
}

.cg-soft-section {
	background: var(--cg-mist);
}

.cg-dark-section {
	background: var(--cg-forest-deep);
	color: #fff;
}

.cg-dark-section h2,
.cg-dark-section h3 {
	color: #fff;
}

.cg-dark-section p {
	color: rgba(255, 255, 255, 0.78);
}

.cg-step {
	border-top: 1px solid rgba(255, 255, 255, 0.28);
	padding-top: 1.35rem;
}

.cg-location {
	border-left: 3px solid var(--cg-copper);
	padding-left: 1.25rem;
}

.cg-guidance-card {
	border-bottom: 1px solid var(--cg-border);
	padding-bottom: 1.5rem;
}

.cg-centered-lede {
	margin-left: auto;
	margin-right: auto;
}

.cg-guide-card {
	display: flex;
	flex-direction: column;
	min-height: 300px;
}

.cg-guide-card .cg-draft-label {
	margin-top: auto;
}

.cg-draft-label {
	background: var(--cg-mist);
	border-radius: 999px;
	color: var(--cg-forest);
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding: 0.45rem 0.7rem;
	text-transform: uppercase;
}

.cg-final-cta {
	background:
		linear-gradient(135deg, rgba(18, 63, 54, 0.98), rgba(11, 48, 41, 0.98));
	border-radius: 1.5rem;
	box-shadow: var(--cg-shadow);
	color: #fff;
	padding: clamp(2rem, 6vw, 5rem);
}

.cg-final-cta h2 {
	color: #fff;
	max-width: 14ch;
}

.cg-final-cta p {
	color: rgba(255, 255, 255, 0.8);
}

.cg-page-hero {
	background:
		linear-gradient(140deg, rgba(255, 253, 248, 0.98), rgba(231, 238, 233, 0.86));
	border-bottom: 1px solid var(--cg-border);
	padding-bottom: clamp(4rem, 8vw, 7rem);
	padding-top: clamp(4rem, 8vw, 7rem);
}

.cg-page-hero h1 {
	font-size: clamp(3rem, 6vw, 5.25rem);
	letter-spacing: -0.04em;
	max-width: 13ch;
}

.cg-page-status {
	background: var(--cg-paper);
	border: 1px solid var(--cg-border);
	border-radius: 0.75rem;
	color: var(--cg-muted);
	font-size: 0.88rem;
	padding: 1rem 1.15rem;
}

.cg-page-status strong {
	color: var(--cg-forest);
}

.cg-page-nav {
	background: var(--cg-paper);
	border: 1px solid var(--cg-border);
	border-radius: 1rem;
	box-shadow: 0 14px 38px rgba(18, 63, 54, 0.06);
	padding: 1.5rem;
}

.cg-page-nav a {
	text-decoration: none;
}

.cg-detail-panel {
	border-bottom: 1px solid var(--cg-border);
	padding-bottom: clamp(2rem, 4vw, 3.25rem);
	padding-top: clamp(2rem, 4vw, 3.25rem);
}

.cg-detail-panel:first-child {
	padding-top: 0;
}

.cg-detail-panel:last-child {
	border-bottom: 0;
}

.cg-question-list h3 {
	border-top: 1px solid var(--cg-border);
	font-family: var(--wp--preset--font-family--care-givers-sans);
	font-size: 1.05rem;
	font-weight: 750;
	line-height: 1.4;
	margin-bottom: 0.35rem;
	padding-top: 1.25rem;
}

.cg-question-list h3:first-child {
	border-top: 0;
	padding-top: 0;
}

.cg-reviewer-note {
	background: var(--cg-mist);
	border: 1px solid var(--cg-border);
	border-radius: 1rem;
	margin-top: 2rem;
	padding: 1.5rem;
}

.cg-detail-panel h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	max-width: 16ch;
}

.cg-approval-note {
	background: #fff6ef;
	border-left: 4px solid var(--cg-copper);
	border-radius: 0 0.65rem 0.65rem 0;
	color: #60483b;
	padding: 1.25rem 1.35rem;
}

.cg-approval-note strong {
	color: var(--cg-forest-deep);
}

.cg-fact-card {
	background: var(--cg-paper);
	border: 1px solid var(--cg-border);
	border-radius: 1rem;
	height: 100%;
	padding: 1.5rem;
}

.cg-fact-card .cg-eyebrow {
	margin-bottom: 0.5rem;
}

.cg-directory-row {
	border-top: 1px solid var(--cg-border);
	padding-bottom: 1.5rem;
	padding-top: 1.5rem;
}

.cg-directory-row:first-child {
	border-top: 0;
}

.cg-directory-status {
	background: var(--cg-mist);
	border-radius: 999px;
	color: var(--cg-forest);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	padding: 0.45rem 0.7rem;
	text-transform: uppercase;
}

.cg-route-detail {
	background: var(--cg-paper);
	border: 1px solid var(--cg-border);
	border-radius: 1rem;
	height: 100%;
	padding: clamp(1.5rem, 4vw, 2.75rem);
}

.cg-safe-data {
	background: var(--cg-forest-deep);
	border-radius: 1rem;
	color: #fff;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.cg-safe-data h2,
.cg-safe-data h3 {
	color: #fff;
}

.cg-safe-data p,
.cg-safe-data li {
	color: rgba(255, 255, 255, 0.8);
}

.cg-site-footer {
	background: #08251f;
	color: rgba(255, 255, 255, 0.78);
	padding-bottom: 2.5rem;
	padding-top: 4rem;
}

.cg-site-footer h2,
.cg-site-footer h3,
.cg-site-footer a {
	color: #fff;
}

.cg-site-footer a {
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.cg-footer-rule {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
}

@media (max-width: 900px) {
	.cg-header-inner .cg-header-cta {
		display: none !important;
	}

	.cg-hero {
		min-height: auto;
	}

	.cg-page-nav {
		position: static;
	}

	.cg-hero-visual {
		border-radius: 12rem 12rem 1.25rem 1.25rem;
		min-height: 370px;
	}

	.cg-hero-photo {
		border-radius: 10rem 10rem 1rem 1rem;
	}
}

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

	.cg-section {
		padding-bottom: 4rem;
		padding-top: 4rem;
	}

	.cg-card {
		min-height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition-duration: 0.01ms !important;
	}
}

/* Launch spacing for text-led pages. */
.cg-section, .cg-page-hero, .cg-site-footer { padding-inline: clamp(1.25rem, 4vw, 3rem); }
.cg-site-header { padding-inline: clamp(1rem, 3vw, 2rem); }
.cg-page-hero h1 { max-width: 16ch; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cg-card { transition: none; } }

/* Orange interaction accents, with readable text and keyboard focus. */
body a:not(.wp-element-button):hover,
body a:not(.wp-element-button):focus-visible,
.cg-primary-nav a:hover,
.cg-primary-nav a:focus-visible { color: #a9441b; }
body .wp-block-button__link:hover,
body .wp-block-button__link:focus-visible,
body button:not([disabled]):hover,
body input[type="submit"]:hover {
 background-color: #a9441b !important;
 border-color: #a9441b !important;
 color: #fff !important;
}
body a:focus-visible, body button:focus-visible,
body summary:focus-visible, body input:focus-visible,
body select:focus-visible, body textarea:focus-visible {
 outline: 3px solid #a9441b;
 outline-offset: 4px;
}
body summary { cursor: pointer; }
body summary:hover, body summary:focus-visible { color: #a9441b; }
body main p a:hover, body main li a:hover,
body footer a:hover { text-decoration: underline; text-underline-offset: .18em; }
body .cg-site-footer a:hover, body .cg-site-footer a:focus-visible { color: #ffb287; }
.cg-editorial-image { margin-top: 2.5rem; margin-bottom: 0; overflow: hidden; border-radius: .75rem; }
.cg-editorial-image img { display:block; width:100%; height:auto; }
.cg-page-hero .cg-editorial-image img { max-height:440px; object-fit:cover; object-position:center 42%; }
.cg-section .cg-editorial-image img { max-height:420px; object-fit:cover; }

body .cg-site-footer :focus-visible { outline-color: #ffb287; }

/* Editorial rows keep long pages readable without oversized image walls. */
.cg-story-row { gap:clamp(1.5rem,4vw,3.5rem); margin-block:0; }
.cg-story-row .cg-layout-image { margin:0; }
.cg-story-row .cg-layout-image img { height:clamp(240px,28vw,360px); max-height:360px; object-fit:cover; border-radius:.75rem; }
.cg-story-row h2 { margin-top:0; }
.cg-story-row .wp-block-column { min-width:0; }
@media (max-width:781px) { .cg-story-row { gap:1.5rem; } .cg-story-row .cg-layout-image img { height:250px; } }

/* Compact imagery for shorter service, contact and legal pages. */
.cg-compact-story .cg-layout-image img { height:240px; max-height:280px; }
.cg-card .cg-card-image { margin:0 0 1.25rem; }
.cg-card .cg-card-image img { width:100%; height:180px; object-fit:cover; }
.cg-page-hero .cg-compact-strip img { height:210px; max-height:210px; object-fit:cover; }
@media (max-width:781px) { .cg-compact-story .cg-layout-image img { height:220px; } }

.cg-card .cg-card-image { width:100%; max-width:none; align-self:stretch; }
.cg-card .cg-card-image img { object-position:center 20%; }
	