/*
Theme Name: Journey TT5
Theme URI: https://journeyrecoverycentre.com/
Description: A site-specific block child theme for the Journey Recovery Centre migration proof of concept.
Author: Journey Recovery Centre
Template: twentytwentyfive
Version: 0.4.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: journey-tt5
*/

html {
	scroll-behavior: smooth;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid #f4bf4f;
	outline-offset: 3px;
}

.journey-skip-link {
	position: absolute;
	left: 1rem;
	top: -8rem;
	z-index: 9999;
	background: #ffffff;
	color: #172934;
	padding: 0.75rem 1rem;
	border-radius: 0.35rem;
}

.journey-skip-link:focus {
	top: 1rem;
}

.journey-site-header {
	position: relative;
	z-index: 20;
	box-shadow: 0 1px 0 rgba(23, 41, 52, 0.12);
}

.journey-site-header .wp-block-site-logo img {
	width: auto;
	max-height: 58px;
}

.journey-eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.journey-hero {
	min-height: min(760px, 82vh);
	display: flex;
	align-items: center;
}

.journey-hero .wp-block-image img,
.journey-contact-hero .wp-block-image img {
	border-radius: 1.25rem;
	box-shadow: 0 24px 60px rgba(8, 35, 48, 0.24);
}

.journey-card {
	height: 100%;
	border: 1px solid #d9e3e7;
	border-radius: 1rem;
	box-shadow: 0 12px 30px rgba(1, 86, 117, 0.08);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.journey-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px rgba(1, 86, 117, 0.13);
}

.journey-card .wp-block-image img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.journey-gallery img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.75rem;
}

.journey-amenities-intro {
	max-width: 46rem;
	margin-inline: auto;
}

.journey-amenities-grid {
	align-items: stretch;
	margin-top: 2.75rem;
}

.journey-amenities-grid + .journey-amenities-grid {
	margin-top: 2rem;
}

.journey-amenities-grid-two {
	max-width: 54rem;
	margin-inline: auto;
}

.journey-amenity-card {
	height: 100%;
	padding: 0.75rem 1rem 1.5rem;
	text-align: center;
}

.journey-amenity-card .wp-block-image {
	margin-bottom: 1rem;
}

.journey-amenity-card .wp-block-image img {
	display: block;
	width: 108px;
	height: 108px;
	object-fit: contain;
}

.journey-amenity-card h4 {
	margin-top: 0;
	margin-bottom: 0.65rem;
	color: #006184;
}

.journey-amenity-card p {
	margin-top: 0;
}

.journey-contact-form {
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid #b9d1db;
	border-radius: 1rem;
	background: #f3f9fb;
}

.journey-contact-form__field {
	margin: 0 0 1rem;
}

.journey-contact-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 700;
	color: #172934;
}

.journey-contact-form input:not([type="radio"]):not([type="checkbox"]),
.journey-contact-form textarea,
.journey-contact-form select {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #486b78;
	border-radius: 0.35rem;
	background: #ffffff;
	color: #172934;
	padding: 0.7rem 0.75rem;
	font: inherit;
}

.journey-contact-form textarea {
	resize: vertical;
}

.journey-contact-form fieldset {
	margin: 0 0 1rem;
	border: 0;
	padding: 0;
}

.journey-contact-form legend {
	margin-bottom: 0.45rem;
	font-weight: 700;
	color: #172934;
}

.journey-contact-form__options {
	display: grid;
	gap: 0.55rem;
}

.journey-contact-form__options--inline {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journey-contact-form__options label,
.journey-contact-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0;
	font-weight: 400;
}

.journey-contact-form__options input,
.journey-contact-form__consent input {
	margin-top: 0.25rem;
}

.journey-contact-form__optional {
	font-weight: 400;
}

.journey-contact-form__submit {
	border: 0;
	border-radius: 999px;
	background: #006184;
	color: #ffffff;
	padding: 0.8rem 1.2rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.journey-contact-form__notice,
.journey-contact-form__local-note,
.journey-contact-form__privacy {
	margin: 0 0 1rem;
	line-height: 1.5;
}

.journey-contact-form__notice {
	border-left: 4px solid #006184;
	padding: 0.75rem 1rem;
	background: #e4f2f6;
}

.journey-contact-form__notice--error {
	border-color: #a61b1b;
	background: #fff0ef;
	color: #5b1712;
}

.journey-contact-form__local-note {
	padding: 0.75rem 1rem;
	border-left: 4px solid #8a5b00;
	background: #fff7df;
	color: #4b3700;
}

.journey-contact-form__privacy {
	font-size: 0.9rem;
}

.journey-contact-form__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.journey-contact-list a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.journey-footer a {
	color: inherit;
}

.journey-inner-hero {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(3rem, 7vw, 6rem);
}

/*
 * Twenty Twenty-Five's element-level colours otherwise override the group's
 * inherited light text, producing navy-on-navy hero copy. Declare the intended
 * foreground on the actual text elements so every inner-page hero meets WCAG.
 */
.journey-inner-hero h1,
.journey-inner-hero h2,
.journey-inner-hero h3,
.journey-inner-hero p:not(.journey-eyebrow) {
	color: #ffffff !important;
}

.journey-inner-hero .journey-eyebrow {
	color: #f4bf4f !important;
}

.journey-inner-hero .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 1.25rem;
	box-shadow: 0 24px 60px rgba(8, 35, 48, 0.24);
}

.journey-team-grid,
.journey-faq-list,
.journey-longform,
.journey-blog-query {
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.journey-team-card,
.journey-post-card {
	overflow: hidden;
	padding: 1.25rem;
}

.journey-team-card .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.65rem;
}

.journey-team-role {
	color: #006184;
	font-weight: 700;
}

.journey-faq-item {
	margin-bottom: 1rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid #cbdde4;
	border-radius: 0.8rem;
	background: #f5fafb;
}

.journey-faq-item summary {
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 700;
}

.journey-post-card {
	height: 100%;
}

.journey-post-card .wp-block-post-featured-image img,
.journey-article .wp-block-image img {
	border-radius: 0.65rem;
}

.journey-video-grid video {
	width: 100%;
	max-height: 30rem;
	background: #172934;
	border-radius: 0.8rem;
}

.journey-durban-gallery {
	padding-top: 2rem;
}

.journey-durban-gallery img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.7rem;
}

.journey-longform > * + *,
.journey-article > * + * {
	margin-top: 1.25rem;
}

.journey-section {
	padding-top: clamp(2.5rem, 6vw, 5rem);
	padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.journey-section .journey-card,
.journey-service-card {
	padding: 1.4rem;
}

.journey-service-card .wp-block-image {
	margin-left: auto;
	margin-right: auto;
}

.journey-service-card .wp-block-buttons {
	margin-top: auto;
}

.journey-registration-title {
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 700;
}

.journey-longform h2,
.journey-article h2 {
	margin-top: 3rem;
}

.journey-article {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

/*
 * Twenty Twenty-Five applies global heading and paragraph colours with more
 * specificity than the core .has-base-color utility. Keep copy legible in
 * the dark brand sections without changing the default colours elsewhere.
 */
.has-navy-background-color.has-base-color,
.has-navy-background-color .has-base-color,
.has-primary-background-color.has-base-color,
.has-primary-background-color .has-base-color {
	color: #ffffff !important;
}

.has-navy-background-color .is-style-outline .wp-block-button__link,
.has-primary-background-color .is-style-outline .wp-block-button__link {
	border-color: #ffffff;
	color: #ffffff;
}

.has-navy-background-color a:not(.wp-block-button__link),
.has-primary-background-color a:not(.wp-block-button__link) {
	color: inherit;
}

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

	.journey-card {
		transition: none;
	}
}

@media (max-width: 781px) {
	.journey-hero {
		min-height: auto;
	}

	.journey-site-header .wp-block-buttons {
		display: none;
	}

	.journey-amenities-grid,
	.journey-amenities-grid + .journey-amenities-grid {
		margin-top: 1.5rem;
	}
}
