/*
Theme Name: Jekal Child
Theme URI: https://jekal.org
Description: Child theme for StarKid — Jekal brand and one-page landing tweaks.
Author: Jekal
Template: starkid
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jekal-child
*/

:root {
	--jekal-navy: #002d62;
	--jekal-yellow: #ffd700;
	--jekal-cream: #faf8f5;
	--jekal-purple: #56509f;
	--jekal-header-offset: 90px;
	--jekal-section-spacing: clamp(3rem, 8vw, 6rem);
	--jekal-wp-admin-bar: 0px;
	--jekal-top-toolbar: 0px;
	--jekal-masthead-height: var(--jekal-header-offset);
	--jekal-content-max: 1140px;
	--jekal-gutter-x: clamp(15px, 4vw, 24px);
	--jekal-gutter-x-lg: clamp(24px, 3vw, 40px);
}

body.admin-bar {
	--jekal-wp-admin-bar: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--jekal-wp-admin-bar: 46px;
	}
}

/* Fixed header: hide on scroll down, show on scroll up (jekal-header-scroll.js) */
header#masthead.site-header.jekal-header-scroll {
	position: fixed;
	top: calc(var(--jekal-wp-admin-bar) + var(--jekal-top-toolbar));
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9990;
	height: auto !important;
	transform: translateY(0);
	transition: transform 0.3s ease;
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	header#masthead.site-header.jekal-header-scroll {
		transition: none;
	}
}

header#masthead.site-header.jekal-header-scroll.jekal-header-hidden {
	transform: translateY(-100%);
}

header#masthead.site-header.jekal-header-scroll.jekal-header-visible {
	transform: translateY(0);
}

header#masthead.site-header.jekal-header-scroll.sticky-header.fixed .header-inner.element-to-stick,
header#masthead.site-header.jekal-header-scroll.sticky-header.fixed .element-to-stick,
header#masthead.site-header.jekal-header-scroll.menu-hidden .header-inner.element-to-stick {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100%;
}

#wrapper-container.content-pusher {
	padding-top: var(--jekal-masthead-height);
}

.responsive #wrapper-container.mobile-menu-open header#masthead.site-header.jekal-header-scroll {
	transform: translateY(0) !important;
}

html {
	scroll-behavior: smooth;
}

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

body {
	color: var(--jekal-navy);
}

a {
	color: var(--jekal-navy);
}

a:hover,
a:focus {
	color: var(--jekal-yellow);
}

/* Match hero #top (Elementor 7b980397) / jekal-hero-split cream */
header#masthead.site-header,
header#masthead.site-header.sticky-header,
header#masthead.site-header.sticky-header.fixed,
header#masthead.site-header.affix,
header#masthead.site-header.custom-sticky.affix,
header#masthead.site-header.fixed.custom-sticky {
	background-color: var(--jekal-cream);
	box-shadow: none;
}

header#masthead.site-header.layout-1 .header-inner,
header#masthead.site-header.layout-1 .header-inner.element-to-stick,
header#masthead.site-header.layout-2 .header-inner,
header#masthead.site-header.layout-3 .header-inner,
header#masthead.site-header.sticky-header.fixed .header-inner.element-to-stick,
header#masthead.site-header.sticky-header.fixed .element-to-stick,
header#masthead.site-header.fixed.custom-sticky .header-inner {
	background-color: var(--jekal-cream);
}

header#masthead.site-header .header-inner {
	background-color: var(--jekal-cream) !important;
	background-image: none !important;
}

#top.jekal-hero-split,
#main-content .elementor-364 .elementor-element.elementor-element-7b980397 {
	background-color: var(--jekal-cream) !important;
	background-image: none !important;
}

header#masthead.site-header .thim-toolbar {
	background-color: var(--jekal-cream);
}

#toolbar.toolbar {
	background-color: var(--jekal-cream);
	border-bottom: 1px solid rgba(0, 45, 98, 0.06);
}

header#masthead.site-header .menu-mobile-effect .icon-wrap {
	color: var(--jekal-purple);
}

/* Split header nav: match #top hero body copy (Roboto 16px / 400) on left & right */
header#masthead.site-header nav.main-navigation.left-side .menu-lists > li > a,
header#masthead.site-header nav.main-navigation.left-side .menu-lists > .menu-item > a,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > li > a,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > .menu-item > a {
	font-family: var(--thim-font-body-font-family, Roboto, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
	color: var(--jekal-purple);
}

header#masthead.site-header nav.main-navigation.left-side .menu-lists > li > a:hover,
header#masthead.site-header nav.main-navigation.left-side .menu-lists > li > a:focus,
header#masthead.site-header nav.main-navigation.left-side .menu-lists > .menu-item > a:hover,
header#masthead.site-header nav.main-navigation.left-side .menu-lists > .menu-item > a:focus,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > li > a:hover,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > li > a:focus,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > .menu-item > a:hover,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > .menu-item > a:focus {
	color: var(--jekal-navy);
}

header#masthead.site-header nav.main-navigation.left-side .menu-lists > .menu-item.current-menu-item > a,
header#masthead.site-header nav.main-navigation.left-side .menu-lists > .menu-item.current_page_item > a,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > .menu-item.current-menu-item > a,
header#masthead.site-header nav.main-navigation.right-side #primary-menu > .menu-item.current_page_item > a {
	color: var(--jekal-purple);
}

#main-content > section,
#main-content .vc_row[data-vc-full-width="true"],
.one-page-section {
	padding-top: var(--jekal-section-spacing);
	padding-bottom: var(--jekal-section-spacing);
}

#main-content section[id],
#main-content [id].one-page-section {
	scroll-margin-top: 100px;
}

/* Landing page 364: consistent horizontal gutters inside anchor sections. */
#main-content .elementor-364 > section[id] > .elementor-container {
	box-sizing: border-box;
	max-width: var(--jekal-content-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--jekal-gutter-x);
	padding-right: var(--jekal-gutter-x);
}

@media (min-width: 992px) {
	#main-content .elementor-364 > section[id] > .elementor-container {
		padding-left: var(--jekal-gutter-x-lg);
		padding-right: var(--jekal-gutter-x-lg);
	}
}

/* Full-bleed section backgrounds; content stays padded in .elementor-container above. */
#main-content .elementor-364 > section#programs.elementor-section-stretched,
#main-content .elementor-364 > section#admissions.elementor-section-stretched,
#main-content .elementor-364 > section#contact.elementor-section-stretched,
#main-content .elementor-364 > section#about.elementor-section-stretched,
#main-content .elementor-364 > section#curriculum.elementor-section-stretched,
#main-content .elementor-364 > section#gallery.elementor-section-stretched {
	background-clip: border-box;
}

/* Programs: purple stretch bg; icon row uses inner section max-width. */
#main-content .elementor-364 section#programs .elementor-inner-section > .elementor-container {
	max-width: var(--jekal-content-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--jekal-gutter-x);
	padding-right: var(--jekal-gutter-x);
}

@media (min-width: 992px) {
	#main-content .elementor-364 section#programs .elementor-inner-section > .elementor-container {
		padding-left: var(--jekal-gutter-x-lg);
		padding-right: var(--jekal-gutter-x-lg);
	}
}

/* Programs (#programs) — tighter bullets in icon-box descriptions */
#programs .thim-icon-box .description,
#programs .bp-element-icon-box .description {
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
}

#programs .thim-icon-box .description p,
#programs .bp-element-icon-box .description p {
	margin-top: 0;
	margin-bottom: 0.45em;
}

#programs .thim-icon-box .description p:empty,
#programs .bp-element-icon-box .description p:empty {
	display: none;
	margin: 0;
}

#programs .thim-icon-box .description ul,
#programs .bp-element-icon-box .description ul,
#programs .thim-icon-box ul.jekal-program-list,
#programs .bp-element-icon-box ul.jekal-program-list {
	margin: 0.25em 0 0;
	padding-left: 1.15em;
	list-style: disc;
}

#programs .thim-icon-box .description ul li,
#programs .bp-element-icon-box .description ul li,
#programs .thim-icon-box ul.jekal-program-list li,
#programs .bp-element-icon-box ul.jekal-program-list li {
	margin-bottom: 7px;
	line-height: 1.45;
	padding-left: 0.1em;
}

#programs .thim-icon-box .description ul li:last-child,
#programs .bp-element-icon-box .description ul li:last-child,
#programs .thim-icon-box ul.jekal-program-list li:last-child,
#programs .bp-element-icon-box ul.jekal-program-list li:last-child {
	margin-bottom: 0;
}

.btn-primary,
button[type="submit"],
input[type="submit"] {
	background-color: var(--jekal-navy);
	border-color: var(--jekal-navy);
}

.btn-primary:hover,
.btn-primary:focus,
button[type="submit"]:hover,
input[type="submit"]:hover {
	background-color: var(--jekal-yellow);
	border-color: var(--jekal-yellow);
	color: var(--jekal-navy);
}

a.jekal-map-link {
	color: inherit;
	text-decoration: none;
}

a.jekal-map-link:hover,
a.jekal-map-link:focus {
	color: inherit;
	text-decoration: underline;
}

/* Offset Elementor kit widget spacing between hero address and Learn More */
#top .elementor-element-aea9d574 {
	margin-bottom: 0 !important;
}

/* Hero main title — bolder than theme default */
#top.jekal-hero-split .elementor-element-920d091e h3.title {
	font-weight: 800;
}

/* Curriculum (#curriculum) — two text columns in the left ~60%, image on the right. */
#curriculum .jekal-curriculum-body,
#curriculum .elementor-widget-text-editor.jekal-curriculum-body {
	text-align: left;
}

#curriculum .jekal-curriculum-list {
	max-width: none;
	margin: 0;
	padding-left: 0;
	text-align: left;
	line-height: 1.55;
	list-style: none;
	column-count: 2;
	column-gap: 1.75rem;
}

#curriculum .jekal-curriculum-list li {
	margin-bottom: 12px;
	break-inside: avoid;
	page-break-inside: avoid;
	-webkit-column-break-inside: avoid;
}

#curriculum .jekal-curriculum-list li > i.fa {
	display: inline-block;
	width: 1.15em;
	margin-right: 0.4em;
	color: #56509f;
	text-align: center;
	vertical-align: -0.05em;
	line-height: 1;
}

#curriculum .jekal-curriculum-image img {
	display: block;
	width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	border-radius: 16px;
}

@media (max-width: 767px) {
	#curriculum .jekal-curriculum-list {
		column-count: 1;
	}
}

#curriculum .jekal-curriculum-list li:last-child {
	margin-bottom: 0;
}

#curriculum .jekal-curriculum-list li:empty {
	display: none;
}

/* Gallery #gallery: 3×2 grid — equal row/column gutters (overrides Bootstrap flex + col-lg-2). */
#gallery .elementor-element.jekal-gallery-grid .wrap-element .gallery-gird,
#gallery .elementor-element.jekal-gallery-grid .gallery-gird {
	--jekal-gallery-gap: 16px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--jekal-gallery-gap);
	margin: 0;
}

#gallery .elementor-element.jekal-gallery-grid .gallery-gird > [class*="col-"] {
	flex: none;
	max-width: none;
	width: auto;
	padding: 0;
}

#gallery .elementor-element.jekal-gallery-grid .gallery-item {
	display: block;
	width: 100%;
	overflow: hidden;
}

#gallery .elementor-element.jekal-gallery-grid .gallery-item img {
	width: 100%;
	height: 266px;
	object-fit: cover;
	display: block;
}

@media (max-width: 575px) {
	#gallery .elementor-element.jekal-gallery-grid .wrap-element .gallery-gird,
	#gallery .elementor-element.jekal-gallery-grid .gallery-gird {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#gallery .elementor-element.jekal-gallery-grid .gallery-item img {
		height: clamp(180px, 40vw, 266px);
	}
}

/* Admissions (#admissions) — white centered copy (Elementor + CSS backup) */
#admissions .jekal-admissions-body,
#admissions .jekal-admissions-body p,
#admissions .jekal-admissions-body li,
#admissions .jekal-admissions-body ol,
#admissions h2,
#admissions .bp-element-heading,
#admissions .elementor-element-47a36a03 .sc-heading,
#admissions .elementor-element-47a36a03 .title {
	color: #fff !important;
	text-align: center;
}

#admissions .elementor-element-c3c22dc4,
#admissions .jekal-admissions-body {
	letter-spacing: normal;
	line-height: 1.6;
}

#admissions .jekal-admissions-body a {
	color: #fff !important;
	text-decoration: underline;
}

#admissions .jekal-admissions-body a:hover,
#admissions .jekal-admissions-body a:focus {
	color: rgba(255, 255, 255, 0.85) !important;
}

#admissions .jekal-admissions-steps {
	max-width: 720px;
	margin: 0 auto 1rem;
	padding-left: 0;
	list-style: decimal;
	list-style-position: inside;
	text-align: center;
}

#admissions .jekal-admissions-steps li {
	margin-bottom: 0.65em;
	text-align: center;
}

#admissions .jekal-admissions-steps li:last-child {
	margin-bottom: 0;
}

/* Admissions: drop empty decor column; single content column at full width. */
#admissions.jekal-admissions-single .elementor-element-fc6c0d8,
#admissions .elementor-element-fc6c0d8.jekal-admissions-decor-empty {
	display: none;
}

#admissions.jekal-admissions-single .elementor-element-b44940d,
#admissions .elementor-element-b44940d.jekal-admissions-content-full {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

/* Contact (#contact) — cream split: Quick Inquiry form + Get in Touch */
#contact.elementor-section,
#contact.jekal-contact-section.elementor-section {
	background-color: var(--jekal-cream) !important;
}

#contact .vc_custom_1548663406844 {
	background-color: var(--jekal-cream) !important;
}

#contact .jekal-contact-intro p {
	margin: 0 0 1rem;
	color: #555555;
	line-height: 1.65;
}

#contact .jekal-contact-info-list .list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#contact .jekal-contact-info-list .list-item {
	margin-bottom: 14px;
	color: #555555;
	line-height: 1.5;
}

#contact .jekal-contact-info-list .list-item i {
	color: #ff6b35;
	margin-right: 10px;
	width: 1.25em;
	text-align: center;
}

#contact .jekal-contact-info-list a {
	color: #555555;
}

#contact .jekal-contact-info-list a:hover {
	color: var(--jekal-purple);
}

#contact .jekal-contact-cf7 .wpcf7-form {
	margin: 0;
}

#contact .jekal-cf7-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #555555;
	margin-bottom: 6px;
}

#contact .jekal-cf7-form p {
	margin: 0 0 14px;
}

#contact .jekal-cf7-row-2,
#contact .jekal-cf7-row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
	margin-bottom: 0;
}

@media (max-width: 575px) {
	#contact .jekal-cf7-row-2,
	#contact .jekal-cf7-row--2 {
		grid-template-columns: 1fr;
	}
}

#contact .wpcf7-form-control.jekal-cf7-input,
#contact .wpcf7-form-control.jekal-cf7-field,
#contact .wpcf7-form-control.jekal-cf7-textarea,
#contact .wpcf7-form-control-wrap textarea.jekal-cf7-textarea {
	width: 100%;
	border: 1px solid #dddddd;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	color: #555555;
	background: #ffffff;
	box-sizing: border-box;
}

#contact textarea.wpcf7-textarea,
#contact .jekal-cf7-col-full textarea,
#contact .wpcf7-form-control.jekal-cf7-textarea,
#contact .wpcf7-form-control-wrap textarea.jekal-cf7-textarea {
	min-height: 100px;
	height: 110px;
	max-height: 200px;
	resize: vertical;
	box-sizing: border-box;
}

#contact .jekal-cf7-form p.jekal-cf7-col-full {
	margin-bottom: 10px;
}

#contact .jekal-cf7-submit-wrap {
	margin-top: 8px;
}

#contact input.wpcf7-submit.jekal-cf7-submit {
	display: block;
	width: 100%;
	max-width: 100%;
	background: #ff6b35;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 0 36px;
	line-height: 48px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

#contact input.wpcf7-submit.jekal-cf7-submit:hover {
	background: #e85a28;
}

/* StarKid paint splash sits on .logo::before (logo-bg-01.png) until .fixed
   moves it off-screen. Hide it in CSS so reload never paints it. */
header#masthead.site-header .header-logo a.logo::before {
	content: none !important;
	display: none !important;
	background-image: none !important;
	visibility: hidden !important;
}

/* page-title.jpg is the #masthead background. .header-inner starts
   .invisible (visibility:hidden) until theme JS runs, so that photo
   paints through the header on first load. Never paint it. */
header#masthead.site-header {
	background-image: none !important;
}

/* 404 — Return to Homepage (replaces search form) */
.error-404 .page-content .search-form {
	display: none !important;
}

.error-404 .jekal-404-actions {
	margin-top: 1.5rem;
}

.error-404 a.jekal-return-home {
	display: inline-block;
	background: #ff6b35;
	color: #ffffff !important;
	border: none;
	border-radius: 999px;
	padding: 0 36px;
	line-height: 48px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.error-404 a.jekal-return-home:hover,
.error-404 a.jekal-return-home:focus {
	background: #e85a28;
	color: #ffffff !important;
	text-decoration: none;
}

.error-404 a.jekal-return-home:focus-visible {
	outline: 2px solid var(--jekal-yellow, #ffd700);
	outline-offset: 3px;
}

/* Motion — hovers, section enter, 2px load bar. Content stays visible without JS. */

header#masthead.site-header nav.main-navigation a,
.mobile-menu-container a {
	transition: color 0.2s ease;
}

a.btn,
button.btn,
.error-404 a.jekal-return-home,
#contact input.wpcf7-submit.jekal-cf7-submit {
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a.btn:hover,
button.btn:hover,
.error-404 a.jekal-return-home:hover,
#contact input.wpcf7-submit.jekal-cf7-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 45, 98, 0.16);
}

#programs .elementor-widget-thim-icon-box .bp-element-icon-box {
	transition: transform 0.2s ease;
}

#programs .elementor-widget-thim-icon-box:hover .bp-element-icon-box {
	transform: translateY(-4px);
}

#gallery .elementor-element.jekal-gallery-grid .gallery-item {
	overflow: hidden;
}

#gallery .elementor-element.jekal-gallery-grid .gallery-item img {
	transition: transform 0.3s ease;
}

#gallery .elementor-element.jekal-gallery-grid .gallery-item:hover img,
#gallery .elementor-element.jekal-gallery-grid .gallery-item:focus img {
	transform: scale(1.04);
}

#curriculum .jekal-curriculum-list li > i.fa {
	transition: color 0.2s ease;
}

#curriculum .jekal-curriculum-list li:hover > i.fa {
	color: var(--jekal-navy);
}

.jekal-loadbar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100001;
	width: 0;
	height: 2px;
	background: var(--jekal-yellow);
	pointer-events: none;
	animation: jekal-loadbar 1.1s ease forwards;
}

.jekal-loadbar.is-done {
	width: 100%;
	opacity: 0;
	animation: none;
	transition: opacity 0.25s ease;
}

@keyframes jekal-loadbar {
	from { width: 0; }
	to { width: 85%; }
}

@media (prefers-reduced-motion: no-preference) {
	html.jekal-motion #main-content .elementor > section.elementor-top-section:not(.jekal-inview) {
		opacity: 0;
		transform: translateY(16px);
	}

	html.jekal-motion #main-content .elementor > section.elementor-top-section.jekal-inview {
		opacity: 1;
		transform: none;
		transition: opacity 0.55s ease, transform 0.55s ease;
	}
}

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

	.jekal-loadbar {
		display: none !important;
	}

	header#masthead.site-header nav.main-navigation a,
	.mobile-menu-container a,
	a.btn,
	button.btn,
	.error-404 a.jekal-return-home,
	#contact input.wpcf7-submit.jekal-cf7-submit,
	#programs .elementor-widget-thim-icon-box .bp-element-icon-box,
	#gallery .elementor-element.jekal-gallery-grid .gallery-item img,
	#curriculum .jekal-curriculum-list li > i.fa {
		transition: none !important;
		animation: none !important;
	}

	a.btn:hover,
	button.btn:hover,
	.error-404 a.jekal-return-home:hover,
	#contact input.wpcf7-submit.jekal-cf7-submit:hover,
	#programs .elementor-widget-thim-icon-box:hover .bp-element-icon-box,
	#gallery .elementor-element.jekal-gallery-grid .gallery-item:hover img,
	#gallery .elementor-element.jekal-gallery-grid .gallery-item:focus img {
		transform: none !important;
	}
}
