/* ==========================================================
   Sprouters Creche School - pages.css (inner pages)
   Loaded after modern.css and uses the same design tokens.
   ========================================================== */

/* ---------- Page banner ---------- */
.page-hero {
	position: relative; color: #fff; text-align: left;
	padding: 84px 0 78px;
	background:
		linear-gradient(100deg, rgba(8, 36, 18, .92) 0%, rgba(8, 36, 18, .68) 55%, rgba(8, 36, 18, .45) 100%),
		var(--hero-img, none) center / cover no-repeat,
		var(--primary-dark);
	overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 .25em; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); animation: heroIn .8s ease both; }
.page-hero p { max-width: 620px; margin: 0; color: #dcebe0; font-size: 1.08rem; animation: heroIn .8s .15s ease both; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .85rem; color: #bcd3c2; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: #fff; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Generic blocks ---------- */
.section-soft { background: var(--bg-soft); }
.section-sm { padding: 64px 0; }
.lead { font-size: 1.12rem; color: var(--muted); }
.prose p { color: #3b4a41; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.kicker { display: block; margin-bottom: 10px; color: var(--primary-2); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.title-bar { position: relative; padding-bottom: 16px; margin-bottom: 26px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.title-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--accent); }
.center .title-bar::after, .title-bar.center::after { left: 50%; margin-left: -28px; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; }
.split.top { align-items: start; }
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--accent); border-radius: 22px; z-index: 0; }
.media-frame img { position: relative; z-index: 1; width: 100%; border-radius: 22px; box-shadow: var(--shadow-md); object-fit: cover; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.info-card { background: #fff; padding: 34px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 4px solid var(--accent); transition: transform .3s, box-shadow .3s; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.info-card .icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; background: var(--bg-soft); color: var(--primary-2); font-size: 1.35rem; }
.info-card h3 { font-size: 1.3rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card p { color: var(--muted); }

/* Vision / mission band */
.band { background: linear-gradient(150deg, var(--primary-dark), var(--primary)); color: #fff; }
.band h2, .band h3 { color: #fff; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vm-card { padding: 38px 34px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.vm-card .label { display: inline-block; margin-bottom: 12px; color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
.vm-card p { margin: 0; font-size: 1.12rem; color: #e8f1ea; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; background: #fff; padding: 56px 28px 30px; border-radius: var(--radius); box-shadow: var(--shadow-sm); counter-increment: step; transition: transform .3s, box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step::before { content: counter(step); position: absolute; top: -22px; left: 28px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #2a2200; font: 700 1.3rem var(--font-head); box-shadow: 0 8px 18px rgba(242, 183, 5, .4); }
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; color: var(--muted); }

.notice { display: flex; gap: 16px; padding: 22px 26px; border-radius: var(--radius); background: #fff8dc; border-left: 5px solid var(--accent); }
.notice i { margin-top: 4px; color: var(--accent-dark); font-size: 1.2rem; }
.notice h3 { margin: 0 0 4px; font-size: 1.1rem; }
.notice p { margin: 0; color: #4a3d00; }

.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); font-weight: 500; }
.checklist li i { margin-top: 5px; color: var(--primary-2); }

/* ---------- Profile (Proprietress) ---------- */
.profile-card { max-width: 340px; margin: 0 auto; text-align: center; background: #fff; border-radius: 22px; box-shadow: var(--shadow-md); overflow: hidden; }
.profile-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile-card .body { padding: 26px 24px 30px; }
.profile-card h3 { margin-bottom: .1em; font-size: 1.4rem; }
.profile-card p { color: var(--muted); margin-bottom: 18px; }
.quote-mark { font-family: var(--font-head); font-size: 5rem; line-height: .6; color: var(--accent); display: block; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 22px 0 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--primary-2); box-shadow: var(--shadow-sm); }
.contact-list strong { display: block; color: var(--primary-dark); }
.contact-list a:hover { color: var(--primary-2); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }
.map-frame iframe { width: 100%; height: 320px; border: 0; }

.form-card { background: #fff; padding: 38px 36px; border-radius: 22px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .92rem; color: var(--primary-dark); }
.field input, .field textarea {
	width: 100%; padding: 13px 16px; font: inherit; color: var(--ink);
	border: 1.5px solid var(--line); border-radius: 12px; background: #fafcf9;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(27, 107, 58, .12); }
.field .hint { margin-top: 4px; font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 14px; padding: 16px 20px; margin-bottom: 22px; border-radius: 12px; font-size: .95rem; }
.alert ul { margin: 0; padding-left: 18px; list-style: disc; }
.alert-success { background: #e7f6ec; border: 1px solid #b6e0c4; color: #135a2c; }
.alert-error { background: #fdecec; border: 1px solid #f2bcbc; color: #8a1f1f; }
.alert i { margin-top: 3px; }
.btn[disabled] { opacity: .65; cursor: wait; transform: none; }

/* ---------- Gallery + lightbox ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--primary); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.gallery-item > a { display: block; width: 100%; height: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-size: .9rem; background: linear-gradient(0deg, rgba(5, 25, 12, .9), transparent); transform: translateY(6px); opacity: .95; transition: transform .3s; }
.gallery-item:hover .cap { transform: none; }
.gallery-item .dl { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--primary-dark); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s, background .25s; }
.gallery-item:hover .dl, .gallery-item .dl:focus-visible { opacity: 1; transform: none; }
.gallery-item .dl:hover { background: var(--accent); }
@media (hover: none) { .gallery-item .dl { opacity: 1; transform: none; } }

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: rgba(5, 15, 9, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 78vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: heroIn .4s ease; }
.lightbox .lb-cap { color: #e5efe8; text-align: center; max-width: 720px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.1rem; transition: background .25s; }
.lightbox button:hover { background: var(--accent); color: #2a2200; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lightbox .lb-next { right: 18px; top: 50%; margin-top: -24px; }

/* ---------- News page ---------- */
.news-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.news-list { display: grid; gap: 26px; }
.news-row { display: grid; grid-template-columns: 260px 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.news-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-row .news-thumb { aspect-ratio: auto; height: 100%; min-height: 190px; }
.news-row .news-body { padding: 24px 26px; }
.news-row h2 { font-size: 1.35rem; margin-bottom: .45em; }
.news-row h2 a:hover { color: var(--primary-2); }
.widget { background: #fff; padding: 26px 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 26px; }
.widget h3 { font-size: 1.15rem; padding-bottom: 12px; margin-bottom: 18px; position: relative; }
.widget h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--accent); }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; padding: 12px 16px; font: inherit; border: 1.5px solid var(--line); border-radius: 999px; background: #fafcf9; }
.search-form input:focus { outline: 0; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(27, 107, 58, .12); }
.search-form button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; transition: background .25s; }
.search-form button:hover { background: var(--accent); color: #2a2200; }
.recent li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.recent a { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; }
.recent .thumb { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-2)); display: grid; place-items: center; color: rgba(255, 255, 255, .6); }
.recent img { width: 100%; height: 100%; object-fit: cover; }
.recent strong { display: block; font: 600 .95rem/1.35 var(--font-body); color: var(--primary-dark); transition: color .2s; }
.recent a:hover strong { color: var(--primary-2); }
.recent small { color: var(--muted); font-size: .78rem; }
.search-note { margin-bottom: 22px; color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 500; transition: background .25s, color .25s; }
.pagination a:hover { background: var(--accent); }
.pagination .current { background: var(--primary); color: #fff; }
.pagination .dots { background: none; box-shadow: none; }

/* ---------- Careers ---------- */
.vacancy-list { display: grid; gap: 20px; }
.vacancy { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-left: 5px solid var(--accent); }
.vacancy h3 { margin-bottom: .2em; }
.vacancy p { margin: 0; color: var(--muted); }
.vacancy .tag { display: inline-block; margin-bottom: 8px; padding: 3px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--primary-2); font-size: .76rem; font-weight: 600; }
.empty-card { text-align: center; padding: 54px 30px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.empty-card i { font-size: 2.4rem; color: var(--accent-dark); margin-bottom: 14px; }
.empty-card p { color: var(--muted); max-width: 520px; margin: 0 auto 1.2em; }

/* ---------- Activities ---------- */
.photo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.photo-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--primary); box-shadow: var(--shadow-sm); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.photo-tile:hover img { transform: scale(1.07); }
.photo-tile span { position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; color: #fff; font: 600 1.25rem var(--font-head); background: linear-gradient(0deg, rgba(5, 25, 12, .92), transparent); }
.social-feed { min-height: 160px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.split, .split.even, .contact-layout, .news-layout { grid-template-columns: 1fr; gap: 40px; }
	.media-frame::before { inset: 14px -10px -14px 10px; }
	.steps { grid-template-columns: 1fr; gap: 40px; }
	.vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.page-hero { padding: 60px 0 54px; }
	.form-card { padding: 28px 22px; }
	.news-row { grid-template-columns: 1fr; }
	.news-row .news-thumb { aspect-ratio: 16 / 10; height: auto; }
	.vacancy { padding: 22px; }
	.lightbox .lb-prev { left: 8px; }
	.lightbox .lb-next { right: 8px; }
}
