/*
Theme Name: self-made-rehab
Author: Charlize San Gabriel
Author URI: 
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: self-made-rehab
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 100.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
:root{
	--focus--ring-color: var(--wp--preset--color--gray-900);
	--focus--ring-size: 3px;
	--focus--ring-offset: 2px;
}

:root :where(.is-layout-constrained) > * {
	margin-block-start: unset !important ;
}

:root :where(.wp-block-post-content) {
	margin-top: unset !important;
    margin-bottom: unset !important;
};

:focus-visible,
.forminator-checkbox input:focus-visible + .forminator-checkbox-box{
	outline: var(--focus--ring-size) solid var(--focus--ring-color) !important;
	outline-offset: var(--focus--ring-offset) !important;
	border-radius: 4px !important;
}

html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

main {
	margin-block-start: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

img:is([sizes=auto i],[sizes^="auto," i]) {
	contain-intrinsic-size: unset !important;
}

.btn--primary:hover{
	background-color: var(--wp--preset--color--primary-darker) !important;
	cursor: pointer;
}

.btn--secondary:hover{
	background-color: var(--wp--preset--color--secondary-darker) !important;
	cursor: pointer;
}

.btn--tertiary:hover{
	background-color: var(--wp--preset--color--tertiary-darker) !important;
	cursor: pointer;
}

.button--primary > a:hover{
	background-color: var(--wp--preset--color--primary-darker) !important;
}

.button--secondary > a:hover{
	background-color: var(--wp--preset--color--secondary-darker) !important;
}

.button--tertiary > a:hover{
	background-color: var(--wp--preset--color--tertiary-darker) !important;
}

/**** FOR EMAIL OBFUSCATION ****/
p.email > span:nth-child(2) {
	display: none;
}

/*** UTILITY ****/

.ul-remove-list-style-type{
	list-style-type: none;
	padding-left: 0;
}

.items-start{
	align-items: start !important;
}

.max-width-500{
	max-width: 500px !important;
}

.phone-number{
	-webkit-touch-callout: none;   /* Disable callout menu */
    -webkit-user-select: text;     /* Optional: allow selection */
}
/********* WORDPRESS BLOCKS **********/
.accordion{
	width: 100%;
}

.wp-block-post-content {
    display: block !important;
}

.wp-block-accordion-heading__toggle:hover
,.wp-block-accordion-heading__toggle > span{
	text-decoration: none !important;
}

.wp-block-accordion-heading__toggle:hover
,.wp-block-accordion-heading__toggle:focus{
	color: var(--wp--preset--color--secondary);
}

.wp-block-separator{
	width: 100%;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0px !important;
}

/** nav link */
header .wp-block-navigation-item__content {
    text-decoration: none !important;
}

/** nav link hover*/
header .wp-block-navigation-item__content:hover,
header .wp-block-navigation-item__content:focus-visible{
	color: var(--wp--preset--color--secondary) !important;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

/** nav link hover and focus */
header .wp-block-navigation-item__content:hover,
header .wp-block-navigation-item__content:focus-visible {
    text-decoration: none;
}

/** current nav link and current list item link in a submenu */
header .current-menu-item > .wp-block-navigation-item__content
{
    color: var(--wp--preset--color--secondary) !important;
    font-weight: 700;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

/** current submenu ancestor if you're in one of the submenu pages **/
header .current-menu-ancestor > .wp-block-navigation-item__content{
	color: var(--wp--preset--color--secondary) !important;
    font-weight: 700;
	border-bottom: 2px solid var(--wp--preset--color--primary);
}

/*** to make the submenu items inside the submenu have no line **/
header .wp-block-navigation-submenu .wp-block-navigation-submenu .wp-block-navigation-item__content,
header .wp-block-navigation-submenu > .wp-block-navigation-submenu .wp-block-navigation-item__content:hover,
header .wp-block-navigation-submenu > .wp-block-navigation-submenu .wp-block-navigation-item__content:focus-visible{
	border-bottom: none;
}

/** For the submenu chevron */
.wp-block-navigation .wp-block-navigation__submenu-icon{
	height: 1rem !important;
	width: 1rem !important;
}

/****************** FORMINATOR ***********/
.forminator-guttenberg,
.forminator-field{
	width: 100%;
}

.forminator-label{
	font-weight: bold;
	font-size: var(--wp--preset--font-size--xs) !important;
	margin-bottom: 8px !important;
	/* border: 2px solid var(--wp--preset--color--gray-900) !important; */
	/* padding: 4px 12px !important; */
	/* border-radius: 12px !important; */
	/* width: fit-content !important; */
}

.forminator-error-message{
	border-radius: 12px !important;
}

.forminator-button-submit{
	background-color: var(--wp--preset--color--primary) !important;
	font-family: var(--wp--preset--font-family--merriweather-sans) !important;
	font-weight: bold !important;
	font-size: var(--wp--preset--font-size--xs) !important;
	border-radius: 32px !important;
	color: var(--wp--preset--color--white) !important;
	border: 0 !important;
	padding: 12px 20px !important;
}

.forminator-button-submit:hover{
	box-shadow: unset !important;
}

.forminator-input,
.forminator-textarea {
	background-color: white;
	padding: 12px 8px;
	border: 2px solid var(--wp--preset--color--gray-900) !important;
	border-radius: 12px;
	font-family: var(--wp--preset--font-family--merriweather-sans);
}

.forminator-row > *{
	display: flex;
	flex-grow: 1;
}

.forminator-checkbox,
.forminator-checkbox-box{
	border-width: 2px !important;
}

.forminator-checkbox-label{
	font-size: var(--wp--preset--font-size--xs);
}

.forminator-description{
	font-size: var(--wp--preset--font-size--xs) !important;
	opacity: 0.85;
	margin-top: 0px !important;
	margin-bottom: 16px !important;
}

.forminator-repeater-action-button:focus{
	background-color: var(--wp--preset--color--gray-800) !important;
	color: white !important;
}

.forminator-repeater-action-button{
	font-size: 1rem !important;
	font-weight: 700 !important;
	border-width: 2px !important;
	padding: 12px 20px !important;
	border-radius: 32px !important;
	border: none !important;
}

.forminator-success{
	border-radius: 12px !important;
}

/* 
.forminator-checkbox > input[type="checkbox"]{
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.forminator-checkbox{
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.forminator-checkbox-box{
	display: block !important;
	min-width: 20px ;
	min-height: 20px;
	background-color: white;
	border: 1px solid var(--wp--preset--color--gray-900);
	border-radius: 4px;
	transition: 0.2s ease;
}

.forminator-checkbox > input[type="checkbox"]:checked + .forminator-checkbox-box {
	background-color: #C82657;
	border-color: #C82657;
} */

/*********** FOOTER *************/
footer{
	margin-block-start: 0 !important;
}

.footer-master{
	padding-left: var(--wp--preset--spacing--40) !important;
	padding-right: var(--wp--preset--spacing--40) !important;

}

.footer-nav a{
	text-decoration: none !important;
}
.footer-nav a:hover{
	text-decoration: underline !important;
	border-bottom: 0;
}

.footer-columns{
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start !important;
}

.footer-logo{
	align-self: center !important;
}

.footer-icon{
	line-height: 0;
	min-width: 24px;
}

/********** PAGE COMPONENTS ***********/
.subpage-examples__ul{
	width: 100%;
}

.subpage-examples__ul > li:not(:last-child){
	border-bottom: 1px solid white;
}

.subpage-examples__ul > li:first-child{
	padding-bottom: clamp(1rem, 0.868rem + 0.702vw, 1.5rem);
}

.subpage-examples__ul > li:last-child{
	padding-top: clamp(1rem, 0.868rem + 0.702vw, 1.5rem);
}

.subpage-examples__ul > li:not(:first-child):not(:last-child){
	padding-top: clamp(1rem, 0.868rem + 0.702vw, 1.5rem);
	padding-bottom: clamp(1rem, 0.868rem + 0.702vw, 1.5rem);
}

/***** HOME PAGE *********/
.home-header{
	width: 100%;
}

.home-hero{
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-size: 410% !important;
	background-repeat: no-repeat;
	min-height: clamp(43.75rem, 40.809rem + 14.706vw, 50rem) !important;
}

.home-hero__content-wrapper{
	width: clamp(60%,calc(100% - 40% * ((100vw - 320px) / 447px)),100%);
	padding-bottom: clamp(2.25rem, 1.821rem + 2.143vw, 3.75rem) !important;
}

.home-services__title-wrapper{
	max-width: 460px;
	margin: 0 auto;
}

.home-about-us__content-width-wrapper{
	max-width: 500px !important;
	overflow: hidden;
}

.home-about-us__image > *{
	width: 100% !important;
}

.home-faqs__faqs-wrapper{
	width: 100%;
}

.home-faqs__subsection-content-wrapper{
	max-width: 500px;
}

.home-contact-info__content-wrapper{
	gap: 24px !important;
	row-gap: 24px !important;
}

.home-contact-form{
	width: 100%;
}

/********** ABOUT US *****/
.about-us-team-card__image{
	max-width: 380px !important;
}

/****** COMMUNICATION & Writing Aids **********/

	.communication-hero{
	}

	.communication-hero__content-width-wrapper{
	}

	.communication-hero__image{
		width: 100%;
	}

	.communication-hero__content-wrapper{
		width: 100%;
	}

	.communication-process__image-wrapper{
		grid-template-columns: repeat(3, 1fr) !important;
		grid-template-rows: 1fr !important;
		max-height: 500px !important;
	}

	.communication-process__image-hor{
		grid-column: 1 / span 2;
	}

	.communication-process__image-hor > img{
		object-fit: cover !important;
	}

	.communication-process__image-hor,
	.communication-process__image-ver
	{
		height: 100%;
		overflow: hidden;
		border-radius: 40px;
	}

	.communication-process__image-hor > img{
		width: auto;
		height: 100%;
	}

	.communication-process__image-ver > img{
		width: 100%;
		height: auto;
	}


	/********* EDUCATION & COMMUNICATION *******/
	.education-note__content-width-wrapper{
		overflow: hidden;
		max-width: 500px !important;
	}

	.education-experience__image{
		max-width: 500px !important;
	}

	/********* GENDER AFFIRMING SERVICES *******/
	.gender-process__content-wrapper{

	}

	.gender-process__image{
		max-width: 500px !important;
	}

	/******** OTHER CLINICAL SERVICES *********/
	.other-general__image{
		max-width: 500px !important;
	}

	.other-reports__image{
		max-width: 500px !important;
	}

	/********** BOOKING FORM **********/

	.booking-form__header h2{
		font-family: var(--wp--preset--font-family--rubik) !important;
		font-weight: bold !important;
		font-size: var(--wp--preset--font-size--md) !important;
		margin-top: 32px !important;
		margin-bottom: 0 !important;
	}

	.booking-form__dates-repeater{
		/* background-color: white !important; */
		flex-direction: column;
		/* padding: 1rem; */
	}

	.booking-form__dates-repeater > .forminator-repeater-field{
		background-color: #FFD7DF !important;
		box-shadow: unset !important;
		border-radius: 28px !important;
		
	}
@media (min-width: 410px) {
	.home-hero{
		background-size: 300% !important;
	}
}

@media (min-width: 550px) {
	.home-hero{
		background-size: 290% !important;
	}
}

@media (min-width: 650px) {
	.home-hero{
		background-size: 220% !important;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	/********** UTILITY ************/
	.u-flex-row-items-center-nowrap{
		flex-direction: row-reverse !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.max-width-500{
		max-width: unset !important;
	}
	
	/********** PAGE COMPONENTS ***********/
	.subpage-examples__content-width-wrapper{
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	.subpage-examples__title{
		width: 50%;
	}

	.subpage-examples__ul{
		width: 50%;
	}

	/********** HOME PAGE **********/
	.home-hero{
		background-size: 180% !important;
	}

	.home-hero__wrapper{
		flex-direction: row-reverse !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.home-hero__content-wrapper{
		justify-content: center !important;
		width: clamp(50%,calc(60% - 10% * ((100vw - 768px) / 672px)),60%);
	}

	.home-hero__image{
		min-width: calc(5/12*100%);
	}

	.home-services__grid{
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.home-about-us{
		gap: 60px;
	}

	.home-about-us__content-width-wrapper{
		display: flex;
		flex-direction: row !important;
		max-width: var(--wp--style--global--wide-size) !important;
		gap: 60px;
	}

	.home-about-us__image > *{
		height: 100% !important;
		object-fit: cover !important;
	}

	.home-faqs__title{
		text-align: center;
	}

	.home-consultation{
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
	}

	.home-consultation__image{
		width: calc(5 / 12 * 100%) !important;
		flex-grow: unset !important;
	}

	.home-consultation__information-wrapper{
		width: 50% !important;
	}

	.home-advice__wrapper{
		max-width: 570px;
	}

	.home-contact__content-wrapper{
		display: flex;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		justify-content: space-between;
		width: 100%;
		gap: 0px !important;
	}

	.home-contact-info{
		width: 50%;
	}

	.home-contact-info__content-wrapper{
		gap: 48px !important;
		justify-content: flex-start !important;
	}

	.home-contact-form{
		margin-top: 0px !important;
		width: 50%;
	}

	/****** ABOUT US **********/

	.about-us-hero{
		padding-top: var(--wp--preset--spacing--80) !important;
	}

	.about-us-hero__content-width-wrapper{
		padding-top: 4rem !important;
		padding-bottom: 4rem !important;
		flex-direction: row-reverse !important;
		align-items: center !important;
	}

	.about-us-hero__image{
		width: calc(5/12*100%);
	}

	.about-us-hero__content-wrapper{
		width: 50%;
	}

	.about-us-team-card{
		flex-direction: row-reverse !important;
		align-items: flex-start !important;
	}

	.about-us-team-card__image{
		max-width: unset !important;
		width: calc(5/12*100%);
	}

	.about-us-team-card__content-wrapper{
		width: 50%;
	}

	.about-us-msv__content-width-wrapper{
		align-items: flex-end !important;
	}

	.about-us-msv__subsection{
		flex-direction: row !important;
		justify-content: space-between !important;
	}

	.about-us-msv__subsection-description{
		width: calc(7/12*100%);
	}

	/****** Our Services **********/

	.our-services-hero{
		padding-top: var(--wp--preset--spacing--80) !important;
	}

	.our-services-hero__content-width-wrapper{
		padding-top: 4rem !important;
		padding-bottom: 4rem !important;
		flex-direction: row-reverse !important;
		align-items: center !important;
	}

	.our-services-hero__image{
		width: calc(5/12*100%);
	}

	.our-services-hero__content-wrapper{
		width: 50%;
	}

	/****** COMMUNICATION & Writing Aids **********/

	.communication-hero{
		padding-top: var(--wp--preset--spacing--80) !important;
	}

	.communication-hero__content-width-wrapper{
		padding-top: 4rem !important;
		padding-bottom: 4rem !important;
		flex-direction: row-reverse !important;
		align-items: center !important;
	}

	.communication-hero__image{
		width: calc(5/12*100%);
	}

	.communication-hero__content-wrapper{
		width: 50%;
	}

	.communication-accessing__content-width-wrapper{
		flex-direction: row !important;
		align-items: center !important;
	}

	.communication-accessing__content-wrapper{
		width: 50%;
	}

	.communication-accessing__image{
		width: calc(5/12*100%);
	}

	.communication-process__content-wrapper{
		flex-direction: row !important;
	}

	.communication-process__description{
		width: 50%;
	}

	/***** EDUCATION & COMMUNICATION ********/
	.education-accessing__content-width-wrapper{
		flex-direction: row !important;
		align-items: center !important;
	}

	.education-accessing__content-wrapper{
		width: 50%;
	}

	.education-accessing__image{
		width: calc(5/12*100%);
	}
	.education-experience__content-width-wrapper{
		flex-direction: row-reverse !important;
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
	}
	.education-experience__content-wrapper{
		width: calc(7/12*100%);
	}

	.education-experience__image{
		width: calc(5/12*100%);
	}

	.education-note__content-width-wrapper{
		flex-direction: row-reverse !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		max-width: var(--wp--style--global--wide-size) !important;
	}

	.education-note__image{
		min-width: 25% !important;
		min-height: 100% !important;
	}

	.education-note__image > *{
		aspect-ratio: auto 683 / 1024 !important;
		width: 100%;
		height: 100% !important;
	}

	.education-note__content-wrapper{
		padding: 40px !important;
	}

	/********** GENDER AFFIRMING SERVICES ******/
	.gender-quote__content-wrapper{
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: clamp(3rem, -2.143rem + 10.714vw, 7.5rem) !important;
	}

	.gender-quote__description{
		display: inline-block;
		width: 50%;
	}

	.gender-process__content-width-wrapper{
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.gender-process__content-wrapper{
		width: calc(7/12*100%);
	}

	.gender-process__image{
		width: calc(5/12*100%);
	}

	/********* OTHER CLINICAL SERVICES **********/
	.other-general__content-width-wrapper{
		flex-direction: row-reverse !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.other-general__image{
		max-width: unset !important;
		min-width: 50% !important;
	}

	.other-reports__content-width-wrapper{
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
	}

	.other-reports__image{
		max-width: unset !important;
		width: calc(5/12*100%);;
	}

	.other-reports__content-wrapper{
		width: 50%;
	}

	.other-note__content-width-wrapper{
		flex-direction: row-reverse !important;
		flex-wrap: nowrap !important;
		align-items: center !important;
		max-width: var(--wp--style--global--wide-size) !important;
	}

	.other-note__image{
		min-width: 25% !important;
		min-height: 100% !important;
	}

	.other-note__image > *{
		aspect-ratio: auto 683 / 1024 !important;
		width: 100%;
		height: 100% !important;
	}

	.other-note__content-wrapper{
		padding: 40px !important;
	}

	/***** FOOTER ****/
	.footer-columns{
		flex-direction: row;
		justify-content: space-between !important;
		align-items: flex-start !important;
	}

	.footer-column{
		align-items: flex-start !important;
	}
	
	.footer-logo{
		align-self: flex-start !important;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	/***** PAGE COMPONENTS *****/ 
	.home-hero{
		background-size: cover !important;
	}

	/********** BOOKING FORM **********/
	.booking-form{
		width: 50%;
	}

	.booking__content-width-wrapper{
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}

	.booking__text-wrapper{
		min-width: calc(5/12*100%) !important;
		width: calc(5/12*100%) !important;
	}
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
	.home-services__grid{
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
	.our-services-services{
		padding-top: 6rem !important;
		padding-bottom: 6rem !important;
	}

	.our-services-services__grid{
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}

	.education-note__image{
		min-width: 25% !important;
		min-height: 100% !important;
	}

	.education-note__image > *{
		aspect-ratio: 1 !important;
		width: 100%;
		height: 100% !important;
	}

	.other-note__image{
		min-width: 25% !important;
		min-height: 100% !important;
	}

	.other-note__image > *{
		aspect-ratio: 1 !important;
		width: 100%;
		height: 100% !important;
	}
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}
