/*
Theme Name: BJP Tutoring
Author: BJP Tutoring
Description: A one-page site for BJP Tutoring: tutoring and benchmark testing for children in grades K-5.
Version: 1.0.0
Requires at least: 6.0
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: bjp-tutoring
*/

:root {
	--red: #ff0800;        /* candy apple red */
	--red-deep: #c40600;   /* darker red for small text and hover */
	--ink: #231c1c;
	--muted: #5e5454;
	--paper: #fffdf9;
	--cream: #fff3e4;
	--line: #f1e2d0;
	--leaf: #2f8f4e;
	--radius: 20px;
	--display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
	font-weight: 800;
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--red-deep);
	margin-bottom: .9em;
}

/* Buttons */
.btn {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-family: var(--display);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.2;
	text-decoration: none;
	padding: 14px 26px;
	border-radius: 999px;
	border: 2px solid var(--red);
	box-shadow: 0 4px 0 var(--red-deep);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: none; box-shadow: none; }
.btn-small { padding: 9px 18px; box-shadow: 0 3px 0 var(--red-deep); white-space: nowrap; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 253, 249, .94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.brand-bjp { color: var(--red); }
.custom-logo { display: block; max-height: 56px; width: auto; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 6px 26px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a { color: var(--ink); font-weight: 700; text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav-list a:hover { border-bottom-color: var(--red); color: var(--ink); }

/* Hero */
.hero { background: var(--cream); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.underline { background: linear-gradient(transparent 68%, rgba(255, 8, 0, .28) 68%, rgba(255, 8, 0, .28) 94%, transparent 94%); }

.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.hero-blob { position: absolute; width: min(380px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--red); }
.notebook {
	position: relative;
	width: min(300px, 88%);
	padding: 26px 24px 30px 52px;
	background:
		linear-gradient(90deg, transparent 36px, rgba(255, 8, 0, .45) 36px, rgba(255, 8, 0, .45) 38px, transparent 38px),
		repeating-linear-gradient(#fff 0 35px, #cfe0f3 35px 36px);
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(35, 28, 28, .22);
	transform: rotate(-4deg);
	font-family: var(--display);
	font-weight: 500;
	line-height: 36px;
}
.notebook-title { margin: 0; font-size: 1.4rem; font-weight: 600; color: var(--red-deep); line-height: 36px; }
.notebook ul { list-style: none; margin: 0; padding: 0; }
.notebook li { position: relative; padding-left: 26px; }
.notebook li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 13px; height: 7px; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }
.notebook-grade {
	position: absolute; right: -18px; top: -22px;
	width: 76px; height: 76px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: #fff;
	font-size: 1.35rem; font-weight: 600;
	transform: rotate(10deg);
	border: 4px solid var(--cream);
}

/* Sections */
.section { padding: 84px 0; }
.section-cream { background: var(--cream); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 36px; }
.card { background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--red); border-radius: var(--radius); padding: 32px; }
.card-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--cream); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 38px; height: 38px; }
.card h3 { font-size: 1.6rem; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }

.grades { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.grades-label { font-weight: 800; margin-right: 8px; }
.grade { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: #fff; background: var(--red); }
.grade:nth-of-type(odd) { background: var(--ink); }

/* About */
.about { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.about-badge {
	width: 210px; height: 210px; border-radius: 50%;
	background: var(--red); color: #fff;
	display: grid; place-content: center; text-align: center;
	font-family: var(--display); font-size: 2.3rem; font-weight: 600; line-height: 1.15;
	box-shadow: 0 0 0 10px #fff, 0 0 0 13px var(--red);
	transform: rotate(-6deg);
}
.about p { max-width: 40em; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 36px 0 0; padding: 0; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 44px 26px 22px; }
.steps li::before {
	content: counter(step);
	position: absolute; top: -24px; left: 24px;
	width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--red); color: #fff;
	font-family: var(--display); font-size: 1.6rem; font-weight: 600;
	border: 4px solid var(--paper);
}
.steps p { color: var(--muted); margin-bottom: 0; }

/* Contact */
.contact { background: var(--red); color: #fff; text-align: center; }
.contact h2 { color: #fff; }
.contact-lead { font-size: 1.35rem; font-weight: 700; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 32px auto 0; }
.contact-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 6px 0 var(--red-deep); }
.contact-card h3 { color: var(--red-deep); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--body); font-weight: 800; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-big { font-family: var(--display); font-size: 1.9rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.contact-big:hover { color: var(--red-deep); }

/* Footer */
.site-footer { background: var(--ink); color: #e9dfdf; padding: 40px 0; font-size: .98rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #fff; }
.footer-name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: #fff; }
.footer-copy { color: #b9adad; }

/* Other pages and posts */
.page-content { padding-top: 64px; padding-bottom: 84px; max-width: 800px; }
.entry { margin-bottom: 48px; }
.entry-body img { border-radius: 12px; }

/* Smaller screens */
@media (max-width: 860px) {
	html { scroll-padding-top: 16px; }
	.site-header { position: static; }
	.hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; gap: 40px; }
	.hero-art { min-height: 300px; }
	.cards, .steps, .contact-cards { grid-template-columns: 1fr; }
	.steps { gap: 44px; }
	.about { grid-template-columns: 1fr; gap: 36px; justify-items: start; }
	.about-badge { width: 160px; height: 160px; font-size: 1.75rem; margin-left: 12px; }
	.section { padding: 60px 0; }
	.site-nav { order: 3; width: 100%; margin-left: 0; }
	.nav-list { gap: 4px 20px; }
	.header-call { margin-left: auto; }
}

@media (max-width: 420px) {
	.header-call-label { display: none; }
	.brand-text { font-size: 1.3rem; }
	.btn { font-size: 1.15rem; padding: 13px 20px; }
	.notebook-grade { right: -8px; }
}

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