/* =========================================================================
 * LearnPrompt site chrome: header, footer, page title band, and the TutorLMS
 * and theme overrides that carry the homepage look to every page.
 * Classes are prefixed .lps- (site); the homepage body uses .lph- (home.css)
 * and the lesson widgets use .lp- (learnprompt.css).
 * ====================================================================== */

:root {
	--lps-ink: #16150f;
	--lps-ink-2: #34332b;
	--lps-muted: #55534a;
	--lps-line: #e7e3d7;
	--lps-paper: #fbfaf6;
	--lps-sand: #f3f1ea;
	--lps-sky: #dcecff;
	--lps-yellow: #ffe94d;
	--lps-green: #1f6f4a;
	--lps-serif: 'Instrument Serif', Georgia, serif;
	--lps-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* TutorLMS reads its fonts from these. */
	--tutor-font-family-body: Inter;
	--tutor-font-family-heading: Inter;
}

/* The parent theme (Tutor Starter) sets these from its Customizer, pointing
   headings at a font we no longer load and phone text at 13px. html:root
   outranks its :root block. */
html:root {
	--heading-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--body-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--body-font-size-mobile: 16px;
	--body-font-size-tablet: 16px;
}

body {
	font-family: var(--lps-sans);
	color: var(--lps-ink);
	background: var(--lps-paper);
	-webkit-font-smoothing: antialiased;
}
body.elementor-template-canvas { margin: 0; }
button, input, select, textarea { font-family: inherit; }

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.lps-header {
	position: relative;
	z-index: 50;
	background: var(--lps-paper);
	border-bottom: 1px solid var(--lps-line);
	font-family: var(--lps-sans);
}
.lps-header--home { background: transparent; border-bottom: 0; }
.lps-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.lps-header--home .lps-header-inner { padding-top: 22px; padding-bottom: 22px; }
.lps-header a.lps-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--lps-ink);
	font-weight: 700;
	font-size: 19px;
	line-height: 1;
}
.lps-logo-mark {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--lps-ink);
	color: var(--lps-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
}
.lps-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.lps-header a.lps-nav-link { color: var(--lps-ink); text-decoration: none; }
.lps-header a.lps-nav-link:hover { color: var(--lps-ink); text-decoration: underline; }
.lps-header a.lps-btn,
.lps-header a.lps-btn:hover {
	display: inline-block;
	background: var(--lps-ink);
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	padding: 12px 20px;
	border-radius: 999px;
}
.lps-header--home a.lps-btn,
.lps-header--home a.lps-btn:hover {
	background: #ffffff;
	color: var(--lps-ink);
	box-shadow: 0 2px 10px rgba(22, 21, 15, 0.10);
}

/* Phone menu: a <details> dropdown, so it works without JavaScript. Hidden
   on wider screens, where the inline nav shows instead. */
.lps-menu { display: none; }
.lps-menu-button {
	list-style: none;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: rgba(22, 21, 15, 0.06);
}
.lps-menu-button::-webkit-details-marker { display: none; }
.lps-menu-icon,
.lps-menu-icon::before,
.lps-menu-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--lps-ink);
	border-radius: 2px;
	position: relative;
}
.lps-menu-icon::before,
.lps-menu-icon::after { content: ""; position: absolute; left: 0; }
.lps-menu-icon::before { top: -6px; }
.lps-menu-icon::after { top: 6px; }
.lps-menu[open] .lps-menu-icon { background: transparent; }
.lps-menu[open] .lps-menu-icon::before { top: 0; transform: rotate(45deg); }
.lps-menu[open] .lps-menu-icon::after { top: 0; transform: rotate(-45deg); }
.lps-menu-panel {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 100%;
	background: #ffffff;
	border: 1px solid var(--lps-line);
	border-radius: 18px;
	box-shadow: 0 16px 36px rgba(22, 21, 15, 0.14);
	padding: 8px;
	display: flex;
	flex-direction: column;
}
.lps-header .lps-menu-panel a {
	color: var(--lps-ink);
	text-decoration: none;
	font-size: 17px;
	font-weight: 500;
	padding: 14px 16px;
	border-radius: 12px;
}
.lps-header .lps-menu-panel a:hover { background: var(--lps-sand); }

/* -------------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------------- */
.lps-footer { background: var(--lps-ink); color: var(--lps-paper); padding: 56px 0 40px; font-family: var(--lps-sans); }
.lps-footer p { margin: 0; }
.lps-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lps-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.lps-footer-brand { font-family: var(--lps-serif); font-size: 28px; line-height: 1; margin-bottom: 10px !important; }
.lps-footer-text { font-size: 14px; line-height: 1.6; color: #c9c6b8; }
.lps-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lps-footer-head { font-weight: 600; }
.lps-footer .lps-footer-col a { color: #c9c6b8; text-decoration: none; }
.lps-footer .lps-footer-col a:hover { color: #ffffff; }
.lps-footer-legal { margin-top: 36px !important; padding-top: 24px; border-top: 1px solid var(--lps-ink-2); font-size: 13px; color: #a8a597; }

/* -------------------------------------------------------------------------
 * Content pages (child theme page.php): title band + content column
 * ---------------------------------------------------------------------- */
.lps-page-hero { background: var(--lps-sky); }
.lps-page-hero-inner { max-width: 1200px; margin: 0 auto; padding: 72px 24px 64px; }
.lps-page-title {
	margin: 0;
	font-family: var(--lps-serif);
	font-weight: 400;
	font-size: clamp(44px, 6vw, 80px);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--lps-ink);
}
.lps-page-body { max-width: 1200px; margin: 0 auto; padding: 56px 24px 104px; }
.lps-page-body > p:first-child { font-size: 18px; line-height: 1.65; color: var(--lps-ink-2); max-width: 760px; }
.lps-page-body h2 { font-family: var(--lps-serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 1.6em 0 0.5em; }
.lps-page-body h3 { font-weight: 600; }
.lps-page-body a { color: var(--lps-green); }

/* -------------------------------------------------------------------------
 * TutorLMS: course pages, course list, cards, buttons
 * ---------------------------------------------------------------------- */
.tutor-course-details-title,
.tutor-course-details-page .tutor-course-details-title {
	font-family: var(--lps-serif) !important;
	font-weight: 400 !important;
	font-size: clamp(40px, 5vw, 64px) !important;
	line-height: 1.02 !important;
	letter-spacing: -0.01em;
	color: var(--lps-ink) !important;
}
.tutor-course-details-page { padding-top: 48px; }
.tutor-btn { border-radius: 999px !important; font-weight: 600 !important; }
.tutor-card,
.tutor-course-card,
.tutor-course-details-page .tutor-card { border-radius: 20px !important; border-color: var(--lps-line) !important; overflow: hidden; }
.tutor-course-thumbnail img,
.tutor-course-card .tutor-course-thumbnail { border-radius: 0; }
.tutor-course-details-page .tutor-course-thumbnail img,
.tutor-course-details-page .tutor-course-thumbnail { border-radius: 20px; }
.tutor-course-name a,
.tutor-course-card .tutor-course-name { color: var(--lps-ink); font-weight: 600; }
.tutor-course-archive-page,
.tutor-wrap.tutor-courses-wrap { padding-top: 48px; padding-bottom: 96px; }
.tutor-accordion-item-header { font-weight: 600; }

/* Sign-up card heading (includes/signup.php). */
.lps-auth-title { margin: 0 0 6px; font-family: var(--lps-serif); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--lps-ink); }
.lps-auth-note { margin: 0 0 28px; font-size: 15px; color: var(--lps-muted); }

/* -------------------------------------------------------------------------
 * Phones
 * ---------------------------------------------------------------------- */
@media (max-width: 760px) {
	.lps-header-inner, .lps-header--home .lps-header-inner { flex-wrap: nowrap; padding: 14px 16px; gap: 8px; }
	.lps-btn-more { display: none; }
	.lps-header a.lps-logo { font-size: 18px; gap: 8px; }
	.lps-nav { margin-left: auto; }
	.lps-menu { display: block; }
	.lps-nav .lps-nav-link { display: none; }
	.lps-header a.lps-btn, .lps-header a.lps-btn:hover { font-size: 14px; padding: 10px 16px; white-space: nowrap; }
	.lps-page-hero-inner { padding: 48px 20px 40px; }
	.lps-page-body { padding: 40px 20px 72px; }
	.lps-footer-inner { padding: 0 20px; }
}
