/*
Theme Name: CMA Healing
Theme URI: https://cmatraditionalhealing.com.au/
Description: Block theme for CMA Traditional Healing. Replaces the Labore theme and Elementor.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cma-healing
*/

/* ---------- Page sections sit flush; each section carries its own padding ---------- */

.wp-site-blocks > * + *,
main.wp-block-group > * + *,
.wp-block-post-content > * + *,
footer.wp-block-template-part > * + * {
	margin-block-start: 0;
}

/* ---------- Header (inner pages) ---------- */

.cma-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

.cma-header__bar {
	min-height: 80px;
}

.cma-header .wp-block-site-logo img {
	height: 80px;
	width: auto;
}

.cma-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--slate);
}

.cma-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.cma-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--green);
}

.cma-header .wp-block-navigation__container {
	gap: 50px;
}

.cma-header__book .wp-block-button__link {
	border: 0;
	font-size: 15px;
	padding: 12px 24px;
}

/* ---------- Hero (front page) ---------- */

.cma-hero .cma-hero__logo img {
	width: 91px;
}

.cma-hero .wp-block-navigation {
	font-size: 15px;
	font-weight: 600;
}

.cma-hero .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--green);
	padding: 13px 20px;
	position: relative;
}

.cma-hero .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	background: var(--wp--preset--color--green);
	bottom: 0;
	content: "";
	height: 3px;
	left: 20px;
	position: absolute;
	right: 20px;
}

.cma-hero .wp-block-navigation__container {
	gap: 0;
}

.cma-hero .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--white);
}

.cma-hero__tagline {
	letter-spacing: 3px;
	line-height: 1.2;
}

.cma-hero h1 {
	font-family: var(--wp--preset--font-family--nunito);
	font-weight: 600;
	line-height: 1.1;
}

/* ---------- Phone menu overlay (both headers) ---------- */

.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--slate);
	font-size: 20px;
	padding: 10px 0;
}

.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--green);
}

.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

/* ---------- Buttons ---------- */

.wp-block-button.is-style-cma-ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-cma-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--slate);
}

.wp-block-button.is-style-cma-text .wp-block-button__link {
	background: transparent;
	border: 0;
	color: var(--wp--preset--color--green);
	font-size: 20px;
	font-weight: 600;
	padding: 0;
}

.wp-block-button.is-style-cma-text .wp-block-button__link:hover {
	color: var(--wp--preset--color--slate);
}

/* ---------- Section headings and the wavy divider ---------- */

.cma-section-heading {
	letter-spacing: 2px;
}

.wp-block-image.cma-wavy {
	margin-top: 0.4em;
}

/* ---------- Light covers keep the site's grey text (core forces black on light covers) ---------- */

.wp-block-cover.is-light.cma-about .wp-block-cover__inner-container,
.wp-block-cover.is-light.cma-footer .wp-block-cover__inner-container {
	color: var(--wp--preset--color--grey);
}

.wp-block-cover.cma-about .cma-section-heading {
	color: var(--wp--preset--color--slate);
}

/* ---------- About ---------- */

.cma-about__box {
	background: var(--wp--preset--color--white);
	padding: 15px;
}

.cma-about__frame {
	border: 1px solid var(--wp--preset--color--green);
	padding: 20px;
}

@media (max-width: 1024px) {
	.cma-hide-tablet {
		display: none !important;
	}

	.cma-about__cols > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ---------- Feature services ---------- */

.cma-service-card {
	padding: 50px;
}

.cma-service-card h3 {
	color: var(--wp--preset--color--green);
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 600;
}

.cma-service-card p,
.cma-footer__text {
	font-family: var(--wp--preset--font-family--roboto);
	font-size: 15px;
	line-height: 27px;
}

@media (max-width: 781px) {
	.cma-service-card {
		padding: 20px;
	}
}

/* ---------- Framed image (green outline offset down-left) ---------- */

.wp-block-image.is-style-cma-framed {
	display: table;
	isolation: isolate;
	margin-bottom: 20px;
	margin-left: 20px;
	position: relative;
}

.wp-block-image.is-style-cma-framed::before {
	border: 2px solid var(--wp--preset--color--green);
	bottom: -20px;
	content: "";
	left: -20px;
	position: absolute;
	right: 20px;
	top: 20px;
	z-index: -1;
}

/* ---------- Locations ---------- */

.cma-location li {
	margin-bottom: 1em;
}

@media (max-width: 781px) {
	.cma-locations__text {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

/* ---------- Title band (inner pages) ---------- */

.cma-title-band img.wp-block-cover__image-background {
	object-position: 100% 50%;
}

/* On phones the busy part of the photo sits behind the title, so lighten it. */
@media (max-width: 781px) {
	.cma-title-band .wp-block-cover__background {
		background-color: var(--wp--preset--color--white);
		opacity: 0.6;
	}
}

.cma-title-band .wp-block-post-title {
	color: var(--wp--preset--color--green);
	font-family: var(--wp--preset--font-family--roboto-slab);
	font-size: 30px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
}

/* ---------- Services page rows ---------- */

.cma-service-row + .cma-service-row {
	margin-top: 110px;
}

@media (max-width: 781px) {
	.cma-service-row + .cma-service-row {
		margin-top: 60px;
	}
}

/* ---------- Booking ---------- */

.cma-booking-frame {
	border: 0;
	display: block;
	height: 730px;
	margin: 30px auto 0;
	max-width: 500px;
	width: 100%;
}

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

.cma-footer .wp-block-site-logo img {
	width: 88px;
}

.cma-copyright {
	min-height: 45px;
}

@media (max-width: 781px) {
	.cma-footer__row {
		flex-direction: column;
		text-align: center;
	}

	.cma-footer .wp-block-site-logo img {
		width: 120px;
	}
}
