/* ================================================================
   Belonging Within — site overrides on top of the Canvas travel demo
   ================================================================ */

:root {
	/* Brand palette: deep space navy / indigo from the site identity,
	   warm cream accents. */
	--cnvs-themecolor: #2b3f77;
	--cnvs-themecolor-rgb: 43, 63, 119;

	--cnvs-primary-font: 'Inter', sans-serif;
	--cnvs-body-font: 'Inter', sans-serif;
	--cnvs-secondary-font: 'PT Serif', serif;

	--bw-navy: #04194e;
	--bw-cream: #f8f5f0;
	--bw-sand: #f0e9e0;
}

body {
	font-family: var(--cnvs-body-font);
}

/* Headings use the travel demo's Arca Majora, but a touch lighter on
   letter-spacing for the calmer practice-site voice. */
h1, h2, h3, h4 {
	font-family: 'Arca Majora', 'Inter', sans-serif;
	letter-spacing: 0.01em;
}

.font-secondary,
.entry-meta,
.before-heading {
	font-family: var(--cnvs-secondary-font);
}

/* ----------------------------------------------------------------
   Header / logo
----------------------------------------------------------------- */

/* The mark is landscape (573x392): size by height only and never force it
   into a circle, or it renders stretched. Canvas sizes the logo to the full
   header height (#header-wrap #logo img) — override with the same specificity
   and let it breathe. */
#logo img {
	height: 56px;
	width: auto;
	max-height: none;
}

#header-wrap #logo img {
	height: 56px;
	width: auto;
	max-width: none;
}

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

/* The mark is dark-on-transparent: give it a readable backdrop on the
   transparent header over dark hero/parallax images. Solid headers don't
   need it. */
#header.transparent-header #logo a {
	background: rgba(255, 255, 255, 0.92);
	border-radius: 14px;
	padding: 7px 12px;
}

/* 11 top-level entries overflow the 1320px header container: tighten
   link padding (and the hamburger takes over below 1200px via
   data-menu-breakpoint on <body>). */
.primary-menu .menu-container > .menu-item > .menu-link {
	--cnvs-primary-menu-padding-x: 8px;
}

/* ----------------------------------------------------------------
   Hero (index-classic swiper technique)
----------------------------------------------------------------- */

#slider .slider-caption h2 {
	font-size: 2.6rem;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

#slider .slider-caption p {
	font-size: 1.25rem;
	font-family: var(--cnvs-secondary-font);
	font-style: italic;
}

@media (max-width: 767.98px) {
	#slider .slider-caption h2 { font-size: 1.7rem; }
}

/* ----------------------------------------------------------------
   Page titles: parallax-header (with main image) vs mini (without)
----------------------------------------------------------------- */

.page-title-parallax h1 {
	color: #fff;
	font-size: 2.2rem;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.page-title-parallax .page-title-content span {
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Mini: compact strip on light background under the solid header. */
.page-title-mini {
	border-bottom: 1px solid #ece4d8;
	padding: 2rem 0;
}

.page-title-mini h1 {
	color: var(--bw-navy);
	font-size: 1.75rem;
	margin-bottom: 0.25rem;
}

.page-title-mini .page-title-content span {
	color: #8a7f72;
	font-size: 0.95rem;
}

/* Classic strip (pages without a main image): brand-tinted band. */
.page-title:not(.page-title-parallax):not(.page-title-mini) {
	background-color: var(--bw-sand);
	border-bottom: 1px solid #e2d8c8;
}

.page-title:not(.page-title-parallax):not(.page-title-mini) h1 {
	color: var(--bw-navy);
}

/* ----------------------------------------------------------------
   Immersive blog hero (Canvas blog-single-immersive technique)
----------------------------------------------------------------- */

.immersive-hero {
	position: relative;
	background-size: cover;
	background-position: 50% 33%;
	padding: 240px 0 90px;
	background-color: var(--bw-navy);
}

.immersive-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 25, 78, 0.25) 0%, rgba(4, 25, 78, 0.65) 100%);
}

.immersive-hero .container {
	position: relative;
}

.immersive-hero h1 {
	color: #fff;
	font-size: 2.4rem;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.immersive-hero .immersive-meta {
	color: rgba(255, 255, 255, 0.8);
}

.immersive-hero .entry-chip-light {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border-radius: 999px;
	padding: 0.25rem 0.8rem;
	font-size: 0.8rem;
}

.immersive-hero .entry-chip-light:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
}

@media (max-width: 767.98px) {
	.immersive-hero {
		padding: 160px 0 60px;
	}
	.immersive-hero h1 {
		font-size: 1.7rem;
	}
}

/* Text-over-photo sections & CTAs (background_image blocks). */
.section.parallax.block-section-text,
.section.parallax.block-cta {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section.parallax .block-richtext a,
.section.parallax.block-section-text a {
	color: #fff;
	text-decoration: underline;
}

/* ----------------------------------------------------------------
   Parallax quote band (homepage section divider)
----------------------------------------------------------------- */

.block-parallax-band {
	padding: 6rem 0;
	background-color: var(--bw-navy);
}

.block-parallax-band blockquote p {
	font-family: var(--cnvs-secondary-font);
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.7;
	color: #fff;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* ----------------------------------------------------------------
   Section backgrounds (give sections visible definition)
----------------------------------------------------------------- */

.section-bg-white {
	background-color: #fff;
}

.section-bg-cream {
	background-color: var(--bw-cream);
}

.section-bg-sand {
	background-color: var(--bw-sand);
}

/* ----------------------------------------------------------------
   Content blocks
----------------------------------------------------------------- */

.block-richtext p {
	line-height: 1.8;
}

/* Poetry: seeded poems are <p> stanzas with <br> line breaks. */
.block-richtext p br {
	line-height: 1.9;
}

.block-quote {
	border-color: var(--cnvs-themecolor) !important;
	background-color: var(--bw-cream);
	border-radius: 0 8px 8px 0;
}

.block-image img {
	border-radius: 6px;
}

.block-image.align-left {
	float: left;
	margin: 0.4rem 1.5rem 1rem 0;
	max-width: 45%;
}

.block-image.align-right {
	float: right;
	margin: 0.4rem 0 1rem 1.5rem;
	max-width: 45%;
}

.block-image.align-center {
	text-align: center;
	margin: 1.5rem 0;
}

.block-image.align-center img {
	margin: 0 auto;
}

/* Display sizes: never upscale small artwork, cap larger renditions. */
.block-image.size-small {
	max-width: 220px;
}

.block-image.size-medium {
	max-width: 360px;
}

.block-image.size-small.align-center,
.block-image.size-medium.align-center {
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 767.98px) {
	.block-image.align-left,
	.block-image.align-right {
		float: none;
		max-width: 100%;
		margin: 1rem 0;
	}
}

.block-heading {
	margin: 1.6rem 0 1rem;
}

/* ----------------------------------------------------------------
   Sections / feature boxes
----------------------------------------------------------------- */

.block-cta,
.block-testimonials {
	background-color: var(--bw-cream);
}

.feature-box .fbox-icon i {
	color: var(--cnvs-themecolor);
	font-size: 2rem;
}

/* ----------------------------------------------------------------
   Blog
----------------------------------------------------------------- */

.before-heading a {
	color: var(--cnvs-themecolor);
}

.entry-title h3 a {
	color: var(--bw-navy);
}

.entry-title h3 a:hover {
	color: var(--cnvs-themecolor);
}

/* ----------------------------------------------------------------
   Contact form
----------------------------------------------------------------- */

.contact-form .form-control {
	border-radius: 6px;
	border-color: #ddd3c4;
}

.contact-form .form-control:focus {
	border-color: var(--cnvs-themecolor);
	box-shadow: 0 0 0 0.15rem rgba(var(--cnvs-themecolor-rgb), 0.15);
}

/* ----------------------------------------------------------------
   Footer
----------------------------------------------------------------- */

#footer a {
	color: rgba(255, 255, 255, 0.85);
}

#footer a:hover {
	color: #fff;
}

#copyrights {
	background-color: rgba(0, 0, 0, 0.2);
}

/* ----------------------------------------------------------------
   Klaro consent manager — blend with the theme
----------------------------------------------------------------- */

.klaro .cookie-notice,
.klaro .cookie-modal {
	font-family: var(--cnvs-body-font);
}

.klaro .cookie-notice .cn-buttons .cm-btn,
.klaro .cm-btn-success {
	background: var(--cnvs-themecolor);
}

.klaro .context-notice {
	border-radius: 8px;
}

/* ----------------------------------------------------------------
   Accessibility: contrast and link affordance (Lighthouse, client preview)
----------------------------------------------------------------- */

.block-richtext p a,
.block-richtext li a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

#footer .footer-big-contacts span,
#copyrights,
#copyrights .col-12 {
	color: rgba(255, 255, 255, 0.72);
}

.heading-block > span:not(.before-heading):not(.text-white-50) {
	color: #5a6168;
}

.klaro .cookie-notice a,
.klaro .cookie-notice .cm-link {
	color: #7fd8b8;
}

.klaro .cookie-notice h2#id-cookie-title {
	font-size: 1rem;
	margin: 0 0 0.5rem;
	color: #fff;
}
