/*
Theme Name: Highland School
Theme URI: https://highlandsecondary.example
Author: Okwir Isaac
Author URI: mailto:isaacokwir98@gmail.com
Description: Professional school website theme for Highland Secondary School, built to sit alongside the Highland Report Card plugin. Includes a front-page portal of quick-access buttons (Login, Register as Teacher, Dashboard, Learners, Marks Entry, Report Cards, Marksheet, Help, and admin Setup pages) that adapt to who is signed in.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: highland-school
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   1. Design tokens - matched to the Highland Report Card
      plugin's admin colour scheme for a consistent brand.
   ========================================================= */
:root {
	--hs-ink: #1a3d6d;
	--hs-blue: #2563eb;
	--hs-amber: #f59e0b;
	--hs-green: #10b981;
	--hs-ink-dark: #122a4a;
	--hs-text: #1f2733;
	--hs-muted: #5a6472;
	--hs-border: #e2e8f0;
	--hs-bg: #f7f9fc;
	--hs-card: #ffffff;
	--hs-radius: 10px;
	--hs-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .06);
	--hs-shadow-lg: 0 10px 24px rgba(15, 23, 42, .12);
	--hs-font-heading: Georgia, 'Times New Roman', Times, serif;
	--hs-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--hs-font-body);
	color: var(--hs-text);
	background: var(--hs-bg);
	line-height: 1.6;
	font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hs-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hs-font-heading);
	color: var(--hs-ink);
	line-height: 1.25;
	margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
}
.container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

/* =========================================================
   3. Top bar + header
   ========================================================= */
.hs-topbar {
	background: var(--hs-ink-dark);
	color: #dce6f5;
	font-size: 13px;
}
.hs-topbar .container { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.hs-topbar a { color: #dce6f5; }
.hs-topbar .hs-topbar-contact { display: flex; gap: 18px; flex-wrap: wrap; }

.hs-header {
	background: var(--hs-card);
	border-bottom: 1px solid var(--hs-border);
	position: sticky;
	top: 0;
	z-index: 50;
}
.hs-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	gap: 20px;
}
.hs-brand { display: flex; align-items: center; gap: 12px; }
.hs-brand img.custom-logo { max-height: 54px; width: auto; border-radius: 6px; }
.hs-brand-text { display: flex; flex-direction: column; }
.hs-brand-text .hs-site-title { font-size: 20px; font-weight: 700; color: var(--hs-ink); font-family: var(--hs-font-heading); }
.hs-brand-text .hs-site-title a { color: inherit; }
.hs-brand-text .hs-site-title a:hover { text-decoration: none; }
.hs-brand-text .hs-site-tagline { font-size: 12px; color: var(--hs-muted); }

.hs-primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.hs-primary-nav li { position: relative; }
.hs-primary-nav a {
	display: block;
	padding: 10px 14px;
	color: var(--hs-text);
	font-weight: 600;
	font-size: 14px;
	border-radius: 8px;
}
.hs-primary-nav a:hover { background: #eef2ff; color: var(--hs-blue); text-decoration: none; }
.hs-primary-nav .current-menu-item > a { color: var(--hs-blue); background: #eef2ff; }

.hs-header-actions { display: flex; align-items: center; gap: 8px; }

.hs-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--hs-border);
	border-radius: 8px;
	padding: 8px 10px;
	cursor: pointer;
}
.hs-menu-toggle span, .hs-menu-toggle span::before, .hs-menu-toggle span::after {
	content: "";
	display: block;
	width: 20px;
	height: 2px;
	background: var(--hs-ink);
	position: relative;
	margin: 4px 0;
}

/* =========================================================
   4. Buttons - shared across the site & the portal grid
   ========================================================= */
.hs-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
}
.hs-btn:hover { text-decoration: none; }
.hs-btn-primary { background: var(--hs-blue); color: #fff; }
.hs-btn-primary:hover { background: #1d4ed8; color: #fff; }
.hs-btn-outline { background: #fff; color: var(--hs-ink); border-color: var(--hs-border); }
.hs-btn-outline:hover { border-color: var(--hs-blue); color: var(--hs-blue); }
.hs-btn-amber { background: var(--hs-amber); color: #1a1a1a; }
.hs-btn-amber:hover { background: #d9840a; color: #1a1a1a; }
.hs-btn-green { background: var(--hs-green); color: #fff; }
.hs-btn-green:hover { background: #0c9a6d; color: #fff; }
.hs-btn-ink { background: var(--hs-ink); color: #fff; }
.hs-btn-ink:hover { background: var(--hs-ink-dark); color: #fff; }
.hs-btn-sm { padding: 7px 12px; font-size: 13px; }
.hs-btn-block { width: 100%; justify-content: center; }

/* =========================================================
   5. Hero
   ========================================================= */
.hs-hero {
	background: linear-gradient(135deg, var(--hs-ink) 0%, var(--hs-blue) 100%);
	color: #fff;
	padding: 64px 0 78px;
}
.hs-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hs-hero h1 { color: #fff; font-size: 36px; margin-bottom: 14px; }
.hs-hero p.hs-lede { color: #dce6f5; font-size: 17px; max-width: 46em; }
.hs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hs-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hs-hero-badge {
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.25);
	border-radius: 999px;
	padding: 5px 14px;
	font-size: 12px;
	letter-spacing: .03em;
}
.hs-hero-card {
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: var(--hs-radius);
	padding: 22px;
	backdrop-filter: blur(2px);
}
.hs-hero-card h3 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.hs-hero-card p { color: #dce6f5; font-size: 13px; }

/* =========================================================
   6. Sections / panels (used for the Portal grid, About, etc.)
   ========================================================= */
.hs-section { padding: 56px 0; }
.hs-section-tight { padding: 34px 0; }
.hs-section-alt { background: #fff; border-top: 1px solid var(--hs-border); border-bottom: 1px solid var(--hs-border); }
.hs-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.hs-section-head .hs-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 12px;
	font-weight: 700;
	color: var(--hs-blue);
	margin-bottom: 8px;
}
.hs-section-head h2 { font-size: 28px; margin-bottom: 8px; }
.hs-section-head p { color: var(--hs-muted); }

.hs-panel {
	background: var(--hs-card);
	border: 1px solid var(--hs-border);
	border-radius: var(--hs-radius);
	box-shadow: var(--hs-shadow);
	padding: 24px;
}

/* ---- Portal button grid (mirrors the plugin's dashboard) ---- */
.hs-portal-group { margin-bottom: 30px; }
.hs-portal-group-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hs-muted);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.hs-portal-group-title .hs-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hs-portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.hs-portal-card {
	background: var(--hs-card);
	border: 1px solid var(--hs-border);
	border-left: 5px solid var(--hs-blue);
	border-radius: var(--hs-radius);
	padding: 18px 20px;
	box-shadow: var(--hs-shadow);
	transition: transform .12s ease, box-shadow .12s ease;
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
}
.hs-portal-card:hover { transform: translateY(-2px); box-shadow: var(--hs-shadow-lg); text-decoration: none; }
.hs-portal-card .hs-portal-icon { font-size: 22px; }
.hs-portal-card .hs-portal-name { font-weight: 700; color: var(--hs-ink); font-size: 15px; }
.hs-portal-card .hs-portal-desc { font-size: 12.5px; color: var(--hs-muted); }
.hs-portal-card.hs-portal-amber { border-left-color: var(--hs-amber); }
.hs-portal-card.hs-portal-green { border-left-color: var(--hs-green); }
.hs-portal-card.hs-portal-ink { border-left-color: var(--hs-ink); }

.hs-guest-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hs-guest-panels .hs-panel h3 { margin-bottom: 14px; }
.hs-guest-panels form p { margin-bottom: 12px; }
.hs-guest-panels label { display: block; font-size: 13px; font-weight: 600; color: var(--hs-muted); margin-bottom: 4px; }
.hs-guest-panels input[type="text"],
.hs-guest-panels input[type="email"],
.hs-guest-panels input[type="password"] {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--hs-border);
	border-radius: 7px;
	font-size: 14px;
}
.hs-guest-panels button[type="submit"] {
	background: var(--hs-blue);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-weight: 600;
	cursor: pointer;
}
.hs-guest-panels button[type="submit"]:hover { background: #1d4ed8; }

/* ---- Feature / info cards ---- */
.hs-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.hs-feature-card { background: var(--hs-card); border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: 22px; box-shadow: var(--hs-shadow); }
.hs-feature-card .hs-feature-icon {
	width: 42px; height: 42px; border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
	background: #eef2ff; color: var(--hs-blue); font-size: 20px; margin-bottom: 12px;
}
.hs-feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.hs-feature-card p { color: var(--hs-muted); font-size: 13.5px; margin-bottom: 0; }

.hs-plugin-notice {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #7c2d12;
	border-radius: var(--hs-radius);
	padding: 16px 20px;
	font-size: 14px;
}

/* =========================================================
   7. Generic page/post content
   ========================================================= */
.hs-content-wrap { padding: 46px 0; }
.hs-content-wrap.hs-with-sidebar { display: grid; grid-template-columns: 2.2fr 1fr; gap: 32px; }
.hs-entry-title { font-size: 30px; }
.hs-entry-content img { border-radius: var(--hs-radius); }
.hs-widget { background: var(--hs-card); border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: 18px 20px; margin-bottom: 18px; }
.hs-widget h2, .hs-widget .widgettitle { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--hs-muted); margin-bottom: 12px; }

.hs-pagination { display: flex; gap: 8px; margin-top: 24px; }
.hs-pagination a, .hs-pagination span { padding: 8px 14px; border: 1px solid var(--hs-border); border-radius: 7px; }
.hs-pagination .current { background: var(--hs-blue); color: #fff; border-color: var(--hs-blue); }

/* =========================================================
   8. Footer
   ========================================================= */
.hs-footer { background: var(--hs-ink-dark); color: #cbd8ee; margin-top: 40px; }
.hs-footer-widgets { padding: 44px 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.hs-footer-widgets h2, .hs-footer-widgets .widgettitle { color: #fff; font-size: 15px; margin-bottom: 12px; font-family: var(--hs-font-heading); }
.hs-footer-widgets a { color: #cbd8ee; }
.hs-footer-widgets a:hover { color: #fff; }
.hs-footer-col p { color: #b7c6e0; font-size: 13.5px; }
.hs-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }

.hs-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding: 16px 0;
	font-size: 12.5px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	color: #9fb1d0;
}
.hs-footer-credit { font-weight: 600; color: #dce6f5; }
.hs-footer-credit a { color: #dce6f5; }

/* =========================================================
   9. Responsive
   ========================================================= */
@media (max-width: 900px) {
	.hs-hero-inner { grid-template-columns: 1fr; }
	.hs-guest-panels { grid-template-columns: 1fr; }
	.hs-content-wrap.hs-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
	.hs-menu-toggle { display: inline-flex; align-items: center; }
	.hs-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hs-border); box-shadow: var(--hs-shadow-lg); }
	.hs-primary-nav.hs-nav-open { display: block; }
	.hs-primary-nav ul { flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; }
	.hs-primary-nav a { padding: 12px 14px; }
	.hs-header-actions .hs-btn-outline { display: none; }
	.hs-topbar .container { justify-content: center; text-align: center; }
}
