/* Polux Homeschooling — shared styles
   Vibe: graph-paper notebook, purple ink, red marker, orange squiggles. */

:root {
	--paper: #f2f3e8;
	--grid: #d6d8cb;
	--ink: #2e2b36;
	--ink-soft: #4a4752;
	--purple: #7b6fde;
	--purple-dark: #5a4fc0;
	--red: #ef5049;
	--orange: #ff4a12;
	--cream: #f8ecdc;
	--white: #ffffff;

	--font-display: 'Poppins', system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, sans-serif;
	--font-hand: 'Caveat', 'Comic Sans MS', cursive;

	--max: 1040px;
	--radius: 10px;
	--shadow: 0 6px 18px rgba(46, 43, 54, 0.14);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.15rem;
	line-height: 1.6;
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 32px 32px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

main {
	flex: 1;
}

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

a {
	color: var(--purple-dark);
}

.wrap {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Header / nav ---------- */

.site-header {
	padding: 22px 0;
	position: relative;
	z-index: 2;
}

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

.logo {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.35rem;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
}

.logo span {
	display: block;
	font-size: 0.78em;
}

.nav {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	display: inline-block;
	padding: 6px 12px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--ink);
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.15s, color 0.15s;
}

.nav a:hover {
	background: rgba(123, 111, 222, 0.14);
	color: var(--purple-dark);
}

.nav a[aria-current='page'] {
	background: var(--purple);
	color: var(--white);
}

/* ---------- Typography ---------- */

h1,
h2,
h3 {
	margin: 0 0 0.4em;
	line-height: 1.1;
}

.display {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(2.4rem, 7vw, 4.4rem);
	letter-spacing: 0.01em;
	color: var(--ink);
}

.subtitle {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.15rem, 2.6vw, 1.6rem);
	color: var(--ink-soft);
	max-width: 30ch;
	margin: 0 0 1.2em;
	line-height: 1.25;
}

.hand {
	font-family: var(--font-hand);
	font-weight: 700;
	color: var(--purple-dark);
	font-size: clamp(2.2rem, 5.5vw, 3.4rem);
	line-height: 1.05;
}

.tagline {
	font-family: var(--font-hand);
	font-weight: 700;
	color: var(--purple);
	font-size: clamp(2.4rem, 6.5vw, 4rem);
	line-height: 1.05;
	margin: 0.2em 0 0.4em;
}

.lead {
	font-size: clamp(1.2rem, 2.3vw, 1.5rem);
	max-width: 46ch;
}

/* Orange marker squiggle under text */
.squiggle {
	position: relative;
	white-space: nowrap;
	padding-bottom: 0.15em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 15 1, 25 9, 40 5 S 65 2, 80 6 S 105 8, 118 3' fill='none' stroke='%23ff4a12' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 0.35em;
}

/* ---------- Sections ---------- */

.section {
	padding: 36px 0;
}

.hero {
	position: relative;
	padding: 30px 0 40px;
	overflow-x: clip;
}

/* Purple doodle loop, top-right */
.doodle {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	color: var(--purple);
}

.doodle--top {
	top: -20px;
	right: -90px;
	width: 340px;
	opacity: 0.95;
}

.doodle--side {
	right: -40px;
	bottom: -40px;
	width: 160px;
}

.hero > .wrap {
	position: relative;
	z-index: 1;
}

/* Star bullets */
.stars {
	list-style: none;
	padding: 0;
	margin: 1.2em 0;
}

.stars li {
	position: relative;
	padding-left: 2.2em;
	margin: 0.55em 0;
	font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.stars li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 1.3em;
	height: 1.3em;
	background: var(--purple);
	clip-path: polygon(
		50% 0%, 61% 25%, 85% 15%, 75% 39%, 100% 50%, 75% 61%,
		85% 85%, 61% 75%, 50% 100%, 39% 75%, 15% 85%, 25% 61%,
		0% 50%, 25% 39%, 15% 15%, 39% 25%
	);
}

/* Plain bullet list with bold lead-ins */
.topics {
	padding-left: 1.2em;
}

.topics li {
	margin: 0.6em 0;
}

.topics strong {
	font-family: var(--font-display);
}

/* ---------- Buttons / CTA ---------- */

.btn {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: var(--white);
	background: var(--red);
	padding: 14px 28px;
	border-radius: var(--radius);
	box-shadow: 0 4px 0 #c43a34;
	transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #c43a34;
}

.btn--purple {
	background: var(--purple);
	box-shadow: 0 4px 0 var(--purple-dark);
}

.btn--purple:hover {
	box-shadow: 0 2px 0 var(--purple-dark);
}

.cta-bar {
	display: block;
	text-align: center;
	font-size: clamp(1.1rem, 3vw, 1.7rem);
	margin: 1.2em 0;
}

.whatsapp {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.15;
}

.whatsapp .label {
	display: block;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.whatsapp a {
	font-size: clamp(2rem, 6vw, 3.2rem);
	color: var(--ink);
	text-decoration: none;
}

/* ---------- Cards / layout helpers ---------- */

.grid-2 {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: center;
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
	margin-top: 1em;
}

.card {
	background: rgba(255, 255, 255, 0.75);
	border: 2px solid var(--purple);
	border-radius: 18px;
	padding: 22px 22px 18px;
	box-shadow: var(--shadow);
}

.card h3 {
	font-family: var(--font-hand);
	font-size: 2rem;
	color: var(--purple-dark);
}

.card p,
.card ul {
	margin: 0;
	font-size: 1.05rem;
}

/* Polaroid photo frame with red pins */
.polaroid {
	position: relative;
	background: var(--white);
	padding: 14px 14px 52px;
	box-shadow: var(--shadow);
	transform: rotate(3deg);
	max-width: 420px;
	margin: 20px auto;
}

.polaroid--left {
	transform: rotate(-2deg);
}

.polaroid::before,
.polaroid::after {
	content: '';
	position: absolute;
	top: -10px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ff8a80, var(--red) 60%, #b8322c);
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

.polaroid::before {
	left: 10px;
}

.polaroid::after {
	right: 10px;
}

.polaroid .photo {
	aspect-ratio: 4 / 3;
	background:
		repeating-linear-gradient(45deg, rgba(123, 111, 222, 0.08) 0 12px, transparent 12px 24px),
		var(--cream);
	display: grid;
	place-items: center;
	color: var(--ink-soft);
	font-family: var(--font-hand);
	font-size: 1.6rem;
	text-align: center;
	padding: 10px;
}

.polaroid figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	text-align: center;
	font-family: var(--font-hand);
	font-size: 1.5rem;
	color: var(--ink-soft);
}

/* Speech-bubble testimonial */
.quote {
	position: relative;
	border: 3px solid var(--purple);
	border-radius: 28px 40px 32px 24px;
	padding: 34px 30px 26px;
	margin: 40px 0 20px;
	background: rgba(255, 255, 255, 0.4);
}

.quote::before,
.quote::after {
	position: absolute;
	font-family: Georgia, serif;
	font-weight: 700;
	font-size: 6rem;
	line-height: 1;
	color: var(--purple);
}

.quote::before {
	content: '\201C';
	top: -42px;
	left: 18px;
}

.quote::after {
	content: '\201D';
	bottom: -78px;
	right: 18px;
}

.quote blockquote {
	margin: 0;
	font-family: var(--font-hand);
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	line-height: 1.25;
	color: var(--ink);
}

.quote cite {
	display: block;
	margin-top: 12px;
	font-style: italic;
	font-weight: 700;
	font-size: 0.95rem;
}

/* Price tag */
.price {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	line-height: 1.1;
	color: var(--ink);
}

.price .hand {
	font-size: inherit;
}

/* Sticky-note box */
.note {
	background: #fff6c8;
	padding: 20px 24px;
	box-shadow: var(--shadow);
	transform: rotate(-1deg);
	max-width: 520px;
}

/* ---------- Footer ---------- */

.site-footer {
	margin-top: 40px;
	background: var(--purple);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 800;
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px 30px;
	flex-wrap: wrap;
	padding-top: 22px;
	padding-bottom: 22px;
	font-size: clamp(1rem, 2.4vw, 1.35rem);
}

.site-footer a {
	color: var(--white);
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
	body {
		background-size: 24px 24px;
	}

	.grid-2 {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.doodle--top {
		width: 220px;
		top: -70px;
		right: -70px;
	}

	.site-header .wrap {
		flex-direction: column;
		align-items: flex-start;
	}

	.squiggle {
		white-space: normal;
	}
}

/* ======================================================================
   v2 components (bilingual site)
   ====================================================================== */

.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 10;
	background: var(--ink);
	color: var(--white);
	padding: 8px 14px;
	border-radius: var(--radius);
}

.skip:focus {
	left: 8px;
}

:focus-visible {
	outline: 3px solid var(--purple);
	outline-offset: 2px;
}

/* Work-in-progress strip and placeholder marks.
   Remove the banner and every <mark class="tbd"> once content is final. */
.wip-banner {
	background: #fff6c8;
	border-bottom: 1px dashed #c9b44a;
	color: var(--ink-soft);
	font-size: 0.85rem;
	text-align: center;
	padding: 6px 16px;
}

mark.tbd {
	background: rgba(255, 74, 18, 0.12);
	color: #b23300;
	border: 1.5px dashed var(--orange);
	border-radius: 6px;
	padding: 0 0.3em;
	font-family: var(--font-body);
	font-style: normal;
	font-weight: 700;
	font-size: 0.9em;
	cursor: help;
}

/* Header: logo, nav, language toggle */
.site-header nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.nav a.nav-cta {
	background: var(--red);
	color: var(--white);
}

.nav a.nav-cta:hover {
	background: #d8423b;
	color: var(--white);
}

.lang-toggle {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--purple-dark);
	text-decoration: none;
	border: 2px solid var(--purple);
	border-radius: 999px;
	padding: 4px 12px;
	white-space: nowrap;
}

.lang-toggle:hover {
	background: var(--purple);
	color: var(--white);
}

/* Layout helpers */
.narrow {
	max-width: 780px;
}

.grid-2--top {
	align-items: start;
}

.small {
	font-size: 0.95rem;
	color: var(--ink-soft);
}

/* Video / media placeholder */
.media-placeholder {
	margin: 0;
	background: var(--white);
	padding: 12px;
	box-shadow: var(--shadow);
	transform: rotate(-1.5deg);
}

.media-placeholder .photo {
	aspect-ratio: 16 / 9;
	display: grid;
	place-items: center;
	text-align: center;
	background:
		repeating-linear-gradient(45deg, rgba(123, 111, 222, 0.1) 0 12px, transparent 12px 24px),
		var(--cream);
	font-family: var(--font-hand);
	font-size: 1.6rem;
	color: var(--ink-soft);
	padding: 10px;
}

.media-placeholder small {
	font-size: 1.1rem;
}

/* Pills: no enrolment fee, no uniforms, ... */
.pill-row {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.pill-row li {
	font-family: var(--font-display);
	font-weight: 600;
	background: var(--white);
	border: 2px solid var(--purple);
	border-radius: 999px;
	padding: 8px 18px;
	box-shadow: 0 3px 0 var(--purple);
}

.big-question {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 1.9rem;
	line-height: 1.2;
	margin: 0.2em 0 0.4em;
}

.note--wide {
	max-width: none;
	transform: rotate(-0.5deg);
}

.note h3 {
	font-family: var(--font-hand);
	font-size: 2rem;
	color: var(--purple-dark);
	margin-bottom: 0.2em;
}

/* Highlighted info box (English requirement, SEP) */
.callout {
	border-left: 6px solid var(--red);
	background: rgba(255, 255, 255, 0.8);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 18px 24px;
	box-shadow: var(--shadow);
	margin: 1.5em 0;
}

.callout p {
	margin: 0;
}

/* Teacher facts and letter */
.facts {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 10px;
}

.facts li {
	background: rgba(255, 255, 255, 0.7);
	border-radius: var(--radius);
	padding: 10px 16px;
}

.facts strong {
	font-family: var(--font-display);
}

.letter {
	max-width: 680px;
	margin: 0 auto;
	padding: 30px 34px;
	box-shadow: var(--shadow);
	background-color: var(--white);
	background-image: linear-gradient(transparent 31px, rgba(123, 111, 222, 0.18) 32px);
	background-size: 100% 32px;
	line-height: 32px;
}

.signature {
	font-family: var(--font-hand);
	font-size: 2.2rem;
	color: var(--purple-dark);
	text-align: right;
}

/* Tables */
.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1em 0;
}

.compare,
.timetable {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.85);
	box-shadow: var(--shadow);
	font-size: 1rem;
}

.compare th,
.compare td,
.timetable th,
.timetable td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--grid);
	text-align: left;
	vertical-align: top;
}

.compare thead th,
.timetable thead th {
	background: var(--purple);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 600;
}

.compare tbody th,
.timetable tbody th {
	font-family: var(--font-display);
	font-weight: 600;
	white-space: nowrap;
}

.compare thead + tbody td:nth-child(2) {
	font-weight: 700;
	color: var(--purple-dark);
}

.timetable {
	min-width: 720px;
	font-size: 0.95rem;
}

.timetable td {
	border-left: 1px solid var(--grid);
}

.timetable .s-soft { font-style: italic; color: var(--ink-soft); font-size: 0.88rem; }
.timetable .s-a { background: #dcf5d6; }
.timetable .s-b { background: #f6d9f3; }
.timetable .s-c { background: #fdf6b8; }
.timetable .s-d { background: #fbc9c5; }
.timetable .s-e { background: #cfe3ff; }

.timetable .break td {
	text-align: center;
	font-family: var(--font-hand);
	font-size: 1.4rem;
	background: var(--cream);
}

/* Morning timeline */
.timeline {
	list-style: none;
	padding: 0;
	border-left: 3px dashed var(--purple);
	margin-left: 8px;
}

.timeline li {
	position: relative;
	padding: 0 0 14px 22px;
}

.timeline li::before {
	content: '';
	position: absolute;
	left: -9px;
	top: 0.45em;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--paper);
	border: 3px solid var(--purple);
}

.timeline strong {
	font-family: var(--font-display);
	color: var(--purple-dark);
	margin-right: 6px;
}

/* Numbered steps (trial morning) */
.steps {
	list-style: none;
	counter-reset: step;
	padding: 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 6px 0 10px 54px;
	min-height: 44px;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--purple);
	color: var(--white);
	font-family: var(--font-display);
	font-weight: 800;
}

/* "You don't pay" list */
.crosses {
	list-style: none;
	padding: 0;
}

.crosses li {
	position: relative;
	padding-left: 1.8em;
	margin: 0.4em 0;
}

.crosses li::before {
	content: '\2715';
	position: absolute;
	left: 0;
	color: var(--red);
	font-weight: 800;
}

/* FAQ accordion */
.faq-group {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 1.05rem;
	color: var(--purple-dark);
	margin: 2em 0 0.6em;
	scroll-margin-top: 20px;
}

.faq {
	background: rgba(255, 255, 255, 0.85);
	border: 2px solid transparent;
	border-radius: var(--radius);
	margin: 8px 0;
	box-shadow: 0 2px 8px rgba(46, 43, 54, 0.08);
}

.faq[open] {
	border-color: var(--purple);
}

.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 14px 48px 14px 18px;
	font-weight: 700;
	position: relative;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--purple);
}

.faq[open] summary::after {
	content: '\2013';
}

.faq p {
	margin: 0 18px 14px;
}

@media (max-width: 760px) {
	.site-header .wrap {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.site-header nav {
		order: 3;
		flex-basis: 100%;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.nav {
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.site-header nav {
		scrollbar-width: none;
	}

	.site-header nav::-webkit-scrollbar {
		display: none;
	}

	.doodle--top {
		top: -10px;
		right: -80px;
		width: 180px;
	}

	.letter {
		padding: 22px 20px;
	}
}
