/*
Theme Name: Cara School Theme
Theme URI: https://afabloom.com/
Author: Afa Bloom
Author URI: https://afabloom.com/
Description: Starter theme custom, ringan, dan siap pakai dengan Elementor (Free/Pro). Dibuat untuk mempercepat proses pembuatan website klien tanpa bergantung pada Astra atau tema pihak ketiga lainnya.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: starter-elementor
Tags: custom-background, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready

Ini adalah stylesheet utama. Sebagian besar styling halaman diatur lewat Elementor,
file ini hanya menangani reset dasar, typography, header, footer, dan mobile menu.
*/

/* =========================================
   1. RESET & BASE
========================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #222222;
	background: #ffffff;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* =========================================
   2. HEADER
========================================= */
.site-header {
	width: 100%;
	background: rgba(255, 255, 255, 0.9);
	border-bottom: 1px solid #eeeeee;
	position: relative;
	z-index: 999;
}

.site-header.is-sticky {
	position: fixed;
	top: 0;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	gap: 20px;
}

.site-header.is-sticky {
	transition: height 0.50s ease, background 0.50s ease, box-shadow 0.50s ease;
}

.site-header.is-sticky .site-header-inner {
	transition: padding 0.50s ease;
}

.site-header.is-sticky img.custom-logo {
	transition: max-height 0.50s ease, max-width 0.50s ease;
}

/* State pas udah discroll > 120px */
.site-header.is-sticky.is-scrolled {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.site-header.is-sticky.is-scrolled .site-header-inner {
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-header.is-sticky.is-scrolled img.custom-logo {
	max-height: 60px;
	max-width: 160px;
}

.header-columns {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	gap: 24px;
	flex-wrap: wrap;
}

.header-cols-1 {
	justify-content: center;
}

.header-col {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-col-type-menu_primary {
	flex: 1;
	justify-content: center;
}

.header-col .site-description{
	display: none;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Selector generik (bukan .site-branding) supaya tetap kena baik di header
   biasa (builder) maupun header-landing.php yang strukturnya beda. */
img.custom-logo {
	max-height: 80px;
	width: auto;
	height: auto;
}

.site-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

.site-title a {
	color: #111111;
}

.site-description {
	font-size: 14px;
	color: #ffffff;
	margin: 0;
}

/* Primary Nav */
.primary-menu-container {
	display: flex;
	align-items: center;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 30px;
}

.primary-menu li {
	position: relative;
}

.primary-menu a {
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 600;
	padding: 8px 0;
	display: inline-block;
}

/* Submenu (dropdown) */
.primary-menu ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #ffffff;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	padding: 8px 0;
	border-radius: 6px;
}

.primary-menu li:hover > ul.sub-menu {
	display: block;
}

.primary-menu ul.sub-menu li a {
	padding: 8px 18px;
	display: block;
}

/* Mobile toggle button */
#masthead .menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

#masthead .menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #309574;
	margin: 5px 0;
	transition: 0.3s;
}

#masthead .menu-toggle:hover span {
	background:  #2BAF88;
}

/* =========================================
   3. RESPONSIVE HEADER (MOBILE)
========================================= */
@media (max-width: 860px) {
	#masthead .menu-toggle {
		display: block;
	}

	/* .header-col-type-menu_primary {
		display: none;
	} */
	img.custom-logo {
		max-height: 60px;
	}

	.primary-menu-container {
		display: none;
		width: 100%;
		position: absolute;
		top: 100%;
		left: 0;
		background: #ffffff;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	}

	.primary-menu-container.is-open {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 10px 20px 20px;
	}

	.primary-menu li {
		width: 100%;
	}

	.primary-menu ul.sub-menu {
		position: static;
		box-shadow: none;
		padding-left: 15px;
	}
}

/* =========================================
   SOCIAL ICONS (dipakai di header & footer)
========================================= */
.social-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #309574;
	color: #fff!important;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.social-icon svg {
	width: 24px;
	height: 24px;
}

.social-icon:hover {
	background: #2BAF88;
	color: #ffffff;
	transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Teks bebas di kolom header/footer */
.builder-text-col p {
	margin: 0 0 8px;
}

.builder-text-col p:last-child {

	margin-bottom: 0;
}

/* =========================================
   WIDGET: INFO ITEM (alamat/telepon/email/jam)
========================================= */
.footer-info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	color: #ffffff;
}

.footer-info-item:last-child {
	margin-bottom: 0;
}

.footer-info-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-info-icon svg {
	width: 15px;
	height: 15px;
}

.footer-info-text {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	padding-top: 4px;
}

/* Khusus kalau Info Item diisi URL (jadi <a>, bukan <div>) */
.footer-info-item-link {
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.footer-info-item-link:hover {
	transform: translateX(3px);
}

.footer-info-item-link:hover .footer-info-text {
	color: #309574;
}

.footer-info-item-link:hover .footer-info-icon {
	border-color: #309574;
}

.widget_starter_theme_info_widget {
    margin-bottom: 15px;
}

.widget_starter_theme_info_widget a.footer-info-item-link {
    color: #2BAF88;
}

/* =========================================
   4. FOOTER
========================================= */
.site-footer {
	background: #001B31;
	color: #ffffff;
	padding: 60px 0 0;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer.site-footer .footer-col h3{
	margin: 0 0 30px;
	color: #FDC323;
	font-size: 36px;
}

.footer-cols-1 { grid-template-columns: repeat(1, 1fr); }
.footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.footer-cols-4 { grid-template-columns: repeat(4, 1fr); }

.footer-col-1{
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: center;
}

@media (max-width: 700px) {
	.footer-widgets {
		grid-template-columns: 1fr !important;
	}
}

.footer-widgets .widget-title {
	color: #ffffff;
	font-size: 16px;
	margin-bottom: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.footer-widgets a {
	color: #cccccc;
}

.footer-widgets a:hover {
	color: #ffffff;
}

.site-footer-bottom {
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	color: #999999;
}

.footer-menu {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	flex-direction: column;
}

footer.site-footer .footer-col .footer-menu a {
	color: #ffffff;
	font-size: 14px;
	transition: transform 0.2s ease;
	display: block;
}

footer.site-footer .footer-col .footer-menu a:hover {
	color: #309574;
	transform: translateX(3px);
}

/* =========================================
   5. LANDING PAGE TEMPLATE
========================================= */
.landing-header .site-header-inner {
	justify-content: center;
	padding: 20px;
}

.landing-header .site-branding {
	justify-content: center;
}

.landing-footer {
	background: #111318;
	color: #999999;
}

/* =========================================
   6. FLOATING WHATSAPP BUTTON
========================================= */
.wa-float-btn {
	position: fixed;
	bottom: 22px;
	right: 22px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #25d366;
	color: #ffffff !important;
	padding: 14px;
	border-radius: 50px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.wa-float-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.wa-float-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	animation: wa-pulse 2.4s infinite;
}

.wa-float-label {
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	max-width: 200px;
	overflow: hidden;
}

@keyframes wa-pulse {
	0% {
		filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.6));
	}
	50% {
		filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
	}
	100% {
		filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.6));
	}
}

/* Di mobile, tombol dibikin bulat aja (icon only) biar gak makan tempat */
@media (max-width: 600px) {
	.wa-float-btn {
		padding: 14px;
		border-radius: 50%;
	}

	.wa-float-label {
		display: none;
	}
}

/* =========================================
   7. UTILITAS UNTUK ELEMENTOR
========================================= */
/* Memastikan halaman yang dibuat via Elementor full width tidak kepotong container tema */
.elementor-page .site-content {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}
