/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

:root {
	--ff-heading: 'Schoolbell', serif;
    --ff-text: 'Inter', sans-serif;
	--fs-heading-large: clamp(3rem, 2.4231rem + 2.3077vw, 4.5rem);
	--fs-heading-small: clamp(1.5rem, 1.3077rem + 0.7692vw, 2rem);
	--fs-text-large: 1.25rem;
	--fs-text-normal: 1rem;
	--fs-text-small: 0.875rem;
}

/* Header */
@media screen and (min-width: 900px) {
	header .ct-container {
		width: 100%;
	}
	header div[data-row='middle'] {
		padding-inline: 40px;
	}
}
nav#header-menu-1 a[aria-current],
li.our-holidays a {
	position: relative;
}
li.our-holidays a {
	width: fit-content;
}
nav#header-menu-1 a[aria-current]::after,
li.our-holidays a::after {
	content: '';
	position: absolute;
	bottom: 20%;
	left: 50%;
	transform: translateX(-50%) !important;
	background-color: transparent !important;
	background-image: url('https://mothercarepreschool.com/wp-content/uploads/2025/07/menu_underline.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	width: 100px;
	height: 8px;
	opacity: 1 !important;
}
li.our-holidays a::after {
	bottom: -8px;
}
[data-column=end] [data-items=primary] [data-menu*=type-1]:last-child>ul>li:last-child>a.ct-menu-link {
    padding-inline: calc(var(--menu-items-spacing, 25px) / 2);
}
@media (max-width: 689.98px) {
    #offcanvas .ct-panel-actions {
        padding-top: 28px;
		padding-right: 28px;
        margin-bottom: 80px;
    }
}

.hero-with-overlay::before {
	background-image: linear-gradient(to right, 
        rgba(255,255,255,1) 0%,
		rgba(255, 255, 255, 1) 20%,
        rgba(255,255,255,0.8) 40%, 
        rgba(255,255,255,0.1) 60%, 
        rgba(255,255,255,0) 100%) !important;
}
h1, h2, h3, .text-balanced {
	text-wrap: balance;
}
p, span {
	text-wrap: pretty;
}
.draw-animation {
	clip-path: inset(0 0% 0 0);
}
.cta-link:hover .draw-animation {
	animation: draw 1s cubic-bezier(.79,.14,.15,.86) forwards;
}
.cta-link.dark-bg svg path {
	fill: #fff;
}
@keyframes draw {
	0% { 
		clip-path: inset(0 0% 0 0);
	}
	30% { 
		clip-path: inset(0 0% 0 100%);
	}
	45% { 
		clip-path: inset(0 0% 0 100%);
	}
	46% {
		clip-path: inset(0 100% 0 0);
	}
	70% { 
		clip-path: inset(0 0% 0 0);
	}
}

/* Home page */
.home-hero {
	position: relative;
}
.hero-shapes-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	pointer-events: none;
}
.home-hero::after {
	background-image: url('https://mothercarepreschool.com/wp-content/uploads/2025/07/home_hero_shapes.svg');
}
.contact-hero::after {
	background-image: url('https://mothercarepreschool.com/wp-content/uploads/2025/07/contact_hero_bg.svg');
	background-position: right center;
}
@media screen and (max-width: 766px) {
	.hero-shapes-bg::after {
		background-size: contain;
	}
	.contact-hero::after {
		background-color: rgba(255, 255, 255, 0.75);
	}
}
.home-hero *,
.contact-hero * {
	z-index: 1;
}
.image-with-shadow {
	position: relative;
}
.image-with-shadow::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 90%;
	background-color: #d9d9d9;
	top: 50%;
    right: -24px;
    transform: translateY(-50%);
    border-radius: 24px;
    z-index: -1;
}

/* Contact us */
.contact-form-container form {
	visibility: visible !important;
}
.contact-form-container form input,
.contact-form-container form textarea {
	border: 1px solid #000;
	border-radius: 4px;
	background-color: #fff;
}
.contact-form-container form input[type="checkbox"] {
	transform: scale(1.1);
    margin-right: 8px;
    accent-color: #000;
}
.contact-form-container form input[type="checkbox"] + a {
	text-decoration: underline;
}
.contact-form-container form button[type="submit"] {
	background-color: transparent !important;
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.contact-form-container form button[type="submit"]::after {
	content: '';
	background-image: url('https://mothercarepreschool.com/wp-content/uploads/2025/07/submit_btn.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	width: 80px;
	height: 8px;
}
.contact-form-container .ef-success {
	border-radius: 4px;
	background-color: rgba(0, 128, 0, 0.2);
}

/* Programs and Facilities */
.programs-container-grid .program .program-info {
	transition: transform .4s ease, background-color .4s ease;
}
.programs-container-grid .program:nth-child(4n+1) .program-info {
	transform: rotate(-2.11deg);
}
.programs-container-grid .program:nth-child(4n+2) .program-info {
	transform: rotate(-0.84deg);
}
.programs-container-grid .program:nth-child(4n+3) .program-info {
	transform: rotate(1.15deg);
}
.programs-container-grid .program:nth-child(4n+4) .program-info {
	transform: rotate(2.26deg);
}
.programs-container-grid .program:hover .program-info {
	transform: none;
	transform-origin: center center;
	background-color: #cacaca;
}
.program-title .common-name {
	font-size: var(--fs-text-normal);
	font-family: var(--ff-text);
}

/* About us */
.masked-image {
	mask: url(#imageMask);
 	-webkit-mask: url(#imageMask);
	mask-size: contain;
 	-webkit-mask-size: contain;
	mask-position: center;
	-webkit-mask-position: center;
	mask-repeat: no-repeat;
 	-webkit-mask-repeat: no-repeat;
	aspect-ratio: 5/8;
	object-fit: cover;
}

/* 404 page */
section.error-404 {
	max-width: var(--gb-container-width, 1440px);
	width: min(var(--gb-container-width), 100%);
	padding: 100px 40px 50px 40px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	text-align: center;
}
.error-404 img {
	max-height: 40vh;
	width: auto;
	aspect-ratio: 16/15;
	object-fit: contain;
}
.error-404 h1 {
	font-size: var(--fs-heading-large);
	font-weight: 400;
	font-family: var(--ff-heading);
	margin: 0;
}
.error-404 span {
	font-size: var(--fs-text-normal);
	font-weight: 400;
	font-family: var(--ff-text);
}


/* Footer */
footer#footer [data-row*="top"] > div {
	--grid-template-columns: auto auto;
	justify-content: space-between;
}
footer#footer div[data-column="widget-area-1"] a {
	text-decoration: underline;
}
nav#footer-menu ul {
	display: flex;
	flex-direction: column;
}
footer#footer [data-row*="middle"] > div {
	border-width: 1.5px;
}
@media (max-width: 689.98px) {
	footer#footer [data-row*="top"] > div {
		--grid-template-columns: auto;
		justify-content: center;
		justify-items: center;
		text-align: center;
	}
	nav#footer-menu ul {
		align-items: center;
	}
	nav#footer-menu ul li {
		width: fit-content;
	}
	footer#footer .ct-widget img {
		margin: 0 auto;
	}
}