/* ==========================================================================
   Giggle Town — shared components
   Buttons, section headings, navigation, carousel controls, FAQ, forms,
   long-form text (legal pages + blog posts), post cards.
   ========================================================================== */

/* Buttons ----------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 14px 32px;
	background: var(--gt-yellow);
	color: var(--gt-navy);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 20px rgba(255, 196, 0, 0.35);
	font-family: 'Fredoka', sans-serif;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.btn:hover { color: var(--gt-navy); }
.btn--blue { background: var(--gt-blue); color: #FFFFFF; box-shadow: 0 8px 20px rgba(12, 66, 154, 0.3); }
.btn--blue:hover { color: #FFFFFF; }
.btn--ghost { background: transparent; color: #FFFFFF; border: 2px solid #FFFFFF; box-shadow: none; }
.btn--ghost:hover { color: #FFFFFF; }

/* Section headings -------------------------------------------------------- */
.section-title {
	margin: 0;
	font-family: 'Fredoka', sans-serif;
	font-weight: 700;
	font-size: clamp(32px, 4.4vw, 52px);
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--gt-navy);
}
.section-lead {
	margin: 16px auto 0;
	max-width: 700px;
	font-size: 19px;
	line-height: 1.65;
	font-weight: 600;
	color: var(--gt-slate);
}

/* Main navigation --------------------------------------------------------- */
.site-nav__link {
	padding: 10px 0 7px;
	border-bottom: 3px solid transparent;
	font-family: 'Fredoka', sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
	color: #FFFFFF;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease;
}
.site-nav__link:hover { color: var(--gt-yellow); }
.site-nav__link.is-active { color: var(--gt-yellow); border-bottom-color: var(--gt-yellow); }
.nav-toggle { display: none; }

/* Footer links */
.site-footer__menu-link { color: #C9D8FF; text-decoration: none; transition: color .2s ease; }
.site-footer__menu-link:hover { color: #FFFFFF; text-decoration: underline; }

/* Carousel controls ------------------------------------------------------- */
.carousel__arrow { cursor: pointer; }
.carousel__arrow:disabled { cursor: default; }
.carousel__dot { padding: 10px 5px; border: 0; background: none; cursor: pointer; }
.carousel__dot-mark {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #FFFFFF;
	border: 1.5px solid #8EA3CF;
	transition: width .3s ease, background-color .3s ease, border-color .3s ease;
}
.carousel__dot.is-active .carousel__dot-mark { width: 24px; background: var(--gt-blue); border-color: var(--gt-blue); }
.carousel__viewport { scroll-behavior: smooth; }

/* FAQ ---------------------------------------------------------------------- */
.faq summary { list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { transition: transform .25s ease; }
.faq[open] .faq__icon { transform: rotate(45deg); }

/* Forms -------------------------------------------------------------------- */
.form-label {
	font-family: 'Fredoka', sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gt-navy);
}
.form-field {
	display: block;
	width: 100%;
	min-height: 52px;
	margin-top: 8px;
	padding: 12px 16px;
	border: 2px solid #D6E4FA;
	border-radius: 14px;
	background: #F8FBFF;
	font-family: 'Nunito', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--gt-navy);
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.form-field:focus { outline: none; border-color: var(--gt-royal); box-shadow: 0 0 0 4px rgba(31, 95, 196, 0.15); background: #FFFFFF; }
.form-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 14px;
	font-weight: 700;
	font-size: 15px;
	background: #FFF1F4;
	border: 2px solid #FFB3C6;
	color: #B0124A;
}
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Long-form text: legal pages (.prose) and blog posts (.post-body .prose) ---- */
.prose h2 { margin: 44px 0 0; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--gt-navy); }
.prose h3 { margin: 32px 0 0; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--gt-navy); }
.prose p { margin: 12px 0 0; font-size: 17px; line-height: 1.75; font-weight: 600; color: var(--gt-slate); }
.prose ul, .prose ol { margin: 12px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.75; font-weight: 600; color: var(--gt-slate); }
.prose li { margin-top: 6px; }
.prose strong { color: var(--gt-navy); }
.prose a { color: var(--gt-royal); }
.post-body .prose h2 { font-size: 26px; }
.post-body .prose p { margin-top: 14px; font-size: 18px; line-height: 1.8; }
.post-body .prose ul, .post-body .prose ol { margin-top: 14px; font-size: 18px; line-height: 1.8; }
.prose img { max-width: 100%; height: auto; border-radius: 22px; }
.prose figure { margin: 24px 0 0; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--gt-slate); text-align: center; }
.prose blockquote, .prose .wp-block-quote {
	margin: 28px 0 0;
	padding: 22px 26px;
	border-radius: 20px;
	background: #FFF8DC;
	border: 2px solid #FFE27A;
	font-family: 'Fredoka', sans-serif;
	font-size: 20px;
	color: var(--gt-navy);
}
.prose blockquote p { margin: 0; font-family: inherit; font-size: inherit; color: inherit; }

/* Blog post extras: lead paragraph + "Try this at home" tip box (add as a Custom HTML block) */
.post-body .prose > p:first-child { margin-top: 0; font-size: 20px; color: var(--gt-navy); }
.prose .tip-box { margin-top: 40px; padding: 28px 30px; border-radius: 24px; background: rgb(255, 248, 214); border: 2px solid rgb(242, 201, 76); }
.post-body .prose .tip-box__title,
.prose .tip-box__title { margin: 0; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 20px; color: var(--gt-navy); }
.post-body .prose .tip-box ul, .prose .tip-box ul { margin-top: 10px; }

/* Post cards ---------------------------------------------------------------- */
.post-card__link { color: var(--gt-navy); text-decoration: none; transition: color .2s ease; }
.post-card__link:hover { color: var(--gt-royal); }

/* Category badges (blog) — one colour per category, rotating for new ones */
.post-badge.post-badge--birthdays { background: rgb(255, 227, 236); color: rgb(217, 43, 102); }
.post-badge.post-badge--school-trips { background: rgb(227, 238, 255); color: rgb(31, 95, 196); }
.post-badge.post-badge--science-discovery { background: rgb(237, 231, 255); color: rgb(107, 63, 209); }
.post-badge.post-badge--play-ideas { background: rgb(255, 243, 176); color: rgb(122, 91, 0); }
.post-badge.post-badge--visiting-tips { background: rgb(221, 246, 243); color: rgb(14, 132, 120); }
.post-badge.post-badge--inside-giggle-town { background: rgb(255, 232, 214); color: rgb(194, 86, 10); }
.post-badge.post-badge--learning-through-play { background: rgb(223, 246, 228); color: rgb(30, 122, 52); }

/* Placeholder images fill their frames */
.placeholder-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pagination ----------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination .page-numbers {
	min-width: 46px; height: 46px; padding: 0 16px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; border: 2px solid #D6E4FA; background: #FFFFFF;
	font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 16px;
	color: var(--gt-navy); text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--gt-royal); }
.pagination .page-numbers.current { background: var(--gt-yellow); border-color: var(--gt-yellow); box-shadow: 0 6px 16px rgba(255, 196, 0, 0.35); }
.pagination .dots { border: 0; background: none; }
