/*
Theme Name: Happy Hearts
Description: Custom theme for Happy Hearts Exercise, rebuilt to match the original Next.js site 1:1
Version: 1.0
Author: Happy Hearts
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&family=Source+Sans+3:wght@400;700&display=swap');

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
	font-size: 14px;
	color: #000;
	background: #d9dbe3;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrapper { max-width: 940px; margin: 0 auto; padding: 0 20px; }
.panel { position: relative; }
.panel h1 { margin: 0 0 40px; font-family: 'Nunito', sans-serif; font-size: 34px; line-height: 42px; font-weight: 800; color: #eb1551; }
.panel h2 { font-family: 'Nunito', sans-serif; font-weight: 800; }

.button { display: inline-block; height: 35px; line-height: 35px; padding: 0 25px; font-size: 15px; color: #fff; border: none; cursor: pointer; transition: background 0.2s; }
.button.theme-a { background: #eb1551; }
.button.theme-a:hover { background: #8fc53d; text-decoration: none; }

.inner-card { background: #fff; box-shadow: 0 5px 25px rgba(0,0,0,0.5); }

#page-wrap { padding-top: 60px; }

@media (max-width: 768px) {
	.panel h1 { font-size: 28px; line-height: 34px; }
}

/* ===== Header ===== */
#header-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #0554f2; }
#header { color: #fff; overflow: hidden; position: relative; }
#main-logo { float: left; width: 147px; margin: 5px 0; }
#main-logo img { width: 100%; }
#menu-toggle {
	display: none;
	padding: 8px 14px;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	background: rgba(255,255,255,0.15);
	float: right;
	margin-top: 12px;
}
#main-nav { position: absolute; bottom: 0; right: 20px; }
#main-nav ul { display: flex; }
#main-nav ul li { float: left; margin-left: 30px; font-family: 'Nunito', sans-serif; font-weight: 800; text-transform: uppercase; }
#main-nav ul li a {
	display: block;
	padding: 0 0 15px;
	font-size: 16px;
	color: #fff;
	border-bottom: 5px solid #0554f2;
}
#main-nav ul li a:hover,
#main-nav ul li a.selected { border-bottom-color: #8fc53d; text-decoration: none; }

@media (max-width: 900px) {
	#menu-toggle { display: block; }
	#main-nav {
		position: fixed;
		top: 60px;
		left: 0;
		right: 0;
		bottom: auto;
		display: none;
		background: #0554f2;
		padding: 10px 0 20px;
	}
	#main-nav.open { display: block; }
	#main-nav ul { display: block; }
	#main-nav ul li { float: none; margin-left: 0; text-align: center; }
	#main-nav ul li a { padding: 12px 20px; border-bottom: none; }
	#main-nav ul li a.selected { background: rgba(143,197,61,0.25); }
}

@media (max-width: 480px) {
	#main-logo { width: 120px; }
}

/* ===== Hero ===== */
.hero-panel {
	min-height: 100vh;
	text-align: center;
	background: #f41e4e center/cover no-repeat;
	padding-top: 80px;
}
.hero-inner { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 80px); }
.hero-panel .wrapper h1 { color: #fff; font-size: clamp(42px, 8vw, 88px); line-height: 1; margin-bottom: 30px; }
.hero-panel .button { height: 40px; line-height: 40px; font-size: 24px; }

@media (max-width: 768px) {
	.hero-panel .button { font-size: 18px; height: 44px; line-height: 44px; }
}

/* ===== About ===== */
.about-panel {
	text-align: center;
	background: #023fe4 center/cover no-repeat fixed;
	padding: 300px 0;
}
.about-panel .wrapper { padding: 50px 20px; }
.about-panel .intro { color: #eb1551; font-size: 16px; line-height: 22px; margin-bottom: 20px; }
.about-panel .col-wrap { position: relative; overflow: hidden; }
.about-panel .col { float: left; width: 50%; padding: 0 20px; font-family: 'Nunito', sans-serif; font-weight: 700; }
.about-panel .col h2 { font-size: 24px; line-height: 30px; color: #000; margin-bottom: 15px; }
.about-panel .col p { line-height: 1.4; font-size: 14px; margin-bottom: 15px; }
.about-panel .vr { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid #b2b2b2; }
.about-panel .mobile-bg { display: none; }

@media (max-width: 768px) {
	.about-panel { background: none; padding: 0; }
	.about-panel .inner { background: rgba(255,255,255,0.92); margin: 0; }
	.about-panel .mobile-bg { display: block; width: 100%; height: 200px; object-fit: cover; }
	.about-panel .col { float: none; width: 100%; padding: 0 0 20px; }
	.about-panel .vr { display: none; }
}

@media (prefers-reduced-motion: no-preference) { .about-panel { background-attachment: fixed; } }
@media (prefers-reduced-motion: reduce) { .about-panel { background-attachment: scroll; } }

/* ===== Classes ===== */
.classes-panel { text-align: center; background: #8cbdde center/cover no-repeat; min-height: 500px; overflow: hidden; }
.classes-panel .gallery-grid { position: absolute; inset: 0; overflow: hidden; }
.classes-panel .gallery-grid li { float: left; width: 25%; height: 50%; background-position: center; background-size: cover; background-repeat: no-repeat; }
.classes-panel .inner { position: relative; z-index: 1; background: rgba(255,255,255,0.75); margin: 300px 0; }
.classes-panel .wrapper { padding: 50px 20px; }
.classes-panel p { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.4; margin-bottom: 15px; }

@media (max-width: 768px) {
	.classes-panel .gallery-grid li { width: 50%; height: 25%; }
	.classes-panel .inner { margin: 40px 0; }
}
@media (max-width: 480px) {
	.classes-panel .gallery-grid { display: none; }
	.classes-panel { min-height: auto; }
}

/* ===== Gallery ===== */
.gallery-panel { background: #0554f2; height: 95vh; min-height: 400px; }
.gallery-wrap { position: relative; width: 100%; height: 100%; }
.gallery-list { position: absolute; inset: 0; }
.gallery-list li { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity 0.6s ease; }
.gallery-list li.active { opacity: 1; }
.gallery-panel .nav { position: absolute; right: 0; bottom: 10%; left: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; z-index: 10; }
.gallery-panel .nav button {
	width: 20px; height: 20px; border-radius: 10px;
	background: #fff; text-indent: -9999px; overflow: hidden;
}
.gallery-panel .nav button:hover { background: #eb1551; }
.gallery-panel .nav button.selected { background: #8fc53d; }

@media (max-width: 768px) {
	.gallery-panel { height: 50vh; min-height: 280px; }
}

/* ===== Times ===== */
.times-panel { background: #8fc040 center/cover no-repeat fixed; padding: 300px 0; text-align: center; }
.times-panel .wrapper { padding: 50px 20px; }
.times-panel ul li { padding: 2px 0; line-height: 1.4; font-size: 14px; font-family: 'Nunito', sans-serif; font-weight: 700; overflow: hidden; }
.times-panel .title,
.times-panel .time { float: left; display: block; width: 50%; padding: 0 20px; color: #000; }
.times-panel .title { text-align: right; }
.times-panel .time { text-align: left; }
.times-panel .time:hover { color: #eb1551; }
.times-panel .mobile-bg { display: none; }

@media (max-width: 768px) {
	.times-panel { background: none; padding: 0; }
	.times-panel .inner { background: rgba(255,255,255,0.92); }
	.times-panel .wrapper { padding-top: 40px; }
	.times-panel .mobile-bg { display: block; width: 100%; height: 200px; object-fit: cover; }
	.times-panel .title,
	.times-panel .time { float: none; width: 100%; text-align: center; padding: 4px 0; }
	.times-panel ul li { padding: 12px 0; border-bottom: 1px solid #eee; }
}

@media (prefers-reduced-motion: no-preference) { .times-panel { background-attachment: fixed; } }
@media (prefers-reduced-motion: reduce) { .times-panel { background-attachment: scroll; } }

/* ===== Contact + Map ===== */
.contact-panel { background: #fff; position: relative; min-height: 800px; }
.contact-panel .map-container { position: absolute; inset: 0; z-index: 0; }
.contact-panel .map-container #locations-map { width: 100%; height: 100%; }
.contact-panel .inner { position: relative; z-index: 1; max-width: 320px; margin: 0 auto; }
.contact-panel .wrapper { padding: 135px 20px 35px; text-align: center; }
.contact-panel h2 { display: inline-block; margin-bottom: 10px; padding-top: 25px; font-size: 30px; line-height: 36px; color: #eb1551; }
.contact-panel h2:first-of-type { padding-top: 0; }
.contact-panel p { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.4; margin-bottom: 15px; }
.contact-panel p a { color: #000; }
.contact-panel p a:hover { color: #eb1551; }
.contact-panel .centered-location { text-align: center; }

@media (max-width: 768px) {
	.contact-panel { min-height: 600px; }
	.contact-panel .wrapper { padding-top: 80px; }
}

.location-popup { min-width: 170px; padding: 6px 4px 2px; font-family: 'Nunito', sans-serif; text-align: center; }
.location-popup .location-name { font-size: 15px; font-weight: 800; letter-spacing: 0.3px; color: #313131; text-transform: uppercase; margin-bottom: 10px; }
.location-popup .directions-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 16px; font-size: 13px; font-weight: 700; color: #fff;
	background: #eb1551; border-radius: 20px;
}
.location-popup .directions-link:hover { background: #8fc53d; text-decoration: none; }
.location-popup .directions-link svg { width: 14px; height: 14px; }

/* ===== Footer ===== */
#footer-wrap { background: #d9dbe3; }
.logo-wrap { padding: 10px 0; background-position: top center; background-size: cover; text-align: center; }
.logo-wrap .logo { width: 222px; max-width: 90%; height: auto; display: inline-block; }
#footer { padding: 25px 20px; color: #313131; text-align: center; position: relative; }
#footer h3 { margin: 30px 0 20px; font-size: 32px; font-weight: 500; color: #eb1551; font-family: 'Nunito', sans-serif; }
#footer p { margin-bottom: 15px; line-height: 1.4; }
#mailing-form { max-width: 460px; margin: 0 auto 45px; }
#mailing-form label { position: absolute; left: -9999px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 15px; }
.field .text { flex: 1; min-width: 200px; max-width: 300px; height: 45px; padding: 0 12px; border: none; font-size: 14px; }
.field .text:focus { outline: none; }
.field .button { height: 45px; line-height: 45px; }
.form-success { margin-top: 10px; color: #8fc53d; font-weight: 700; }
.social-list { display: flex; justify-content: center; gap: 18px; margin-bottom: 25px; }
.social-list a { color: #eb1551; }
.social-list a:hover { color: #8fc53d; }
.social-list svg { width: 26px; height: 26px; }
.copy { font-size: 13px; color: #666; }
.copy .privacy { color: #666; text-decoration: underline; }
.copy a { color: #666; }

/* ===== Cookie consent ===== */
.cookie-consent {
	position: fixed; right: 0; bottom: 0; left: 0; z-index: 2000;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px 20px; background: #e2c43a; color: #000; font-size: 13px;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent a { color: #000; text-decoration: underline; }
.cookie-consent .cookie-accept { flex-shrink: 0; padding: 8px 16px; background: #fff; color: #000; font-weight: 700; }

@media (max-width: 600px) {
	.cookie-consent { flex-direction: column; text-align: center; }
}

/* ===== Modals (shared) ===== */
.modal-overlay {
	position: fixed; inset: 0; z-index: 5000;
	display: none; align-items: center; justify-content: center;
	padding: 20px; background: rgba(0,0,0,0.7);
}
.modal-overlay.open { display: flex; }
.modal-content { position: relative; max-width: 940px; max-height: 90vh; overflow-y: auto; padding: 30px; color: #000; background: #d9dbe3; }
.modal-close {
	position: absolute; top: 10px; right: 15px;
	font-size: 40px; line-height: 1; color: #fff;
	background: rgba(0,0,0,0.25); width: 44px; height: 44px;
}

.editable-content h1 { margin-bottom: 20px; font-size: 34px; font-weight: 800; font-family: 'Nunito', sans-serif; }
.editable-content h3 { margin: 20px 0 10px; font-size: 20px; font-weight: 800; font-family: 'Nunito', sans-serif; }
.editable-content p { margin-bottom: 15px; line-height: 1.4; }
.editable-content ul { margin: 0 0 15px 20px; line-height: 1.4; }
.editable-content li { margin-bottom: 10px; }
.editable-content ul ul { margin: 10px 0 0 20px; }
.editable-content a { text-decoration: underline; }
.editable-content a:hover { color: #eb1551; }

/* Video modal specifics */
.video-modal-content { width: 100%; max-width: 960px; padding: 0; background: #000; }
.video-modal-close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 28px; z-index: 1; }
.video-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
