/*
Theme Name: LGBI Serene
Theme URI: https://www.lgbi.org/
Author: RBCSE
Author URI: https://www.lgbi.org/
Description: A calm, dignified, image-led single-page theme for the Louis G. Gregory Bahá’í Institute. Serene design: full-bleed photography, light Garamond display type, quiet quote band, generous whitespace. No page builder, no external requests, minimal JavaScript.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lgbi-serene
Tags: one-column, custom-logo, custom-header, education, photography
*/

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
	--ink: #1f1e1d;
	--paper: #ffffff;
	--cream: #faf7f2;
	--gold: #c89b2a;
	--gold-deep: #8a6d1a;
	--blue: #23306e;
	--hairline: #e5e0d8;
	--serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
	--wrap: 1180px;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 2rem;
}

.eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -48px;
	left: 1rem;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 0.6rem 1.2rem;
	font-size: 13px;
	transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

section { scroll-margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   Header (overlaid on hero)
--------------------------------------------------------------------------- */
.site-head {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.4rem 2.5rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	color: #fff;
	min-width: 0;
}

.brand img,
.brand .custom-logo {
	width: 38px;
	height: 38px;
	flex: none;
}

.brand .brand-name {
	font-family: var(--serif);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav { display: flex; align-items: center; gap: 2.1rem; }

.nav a {
	color: rgba(255, 255, 255, 0.92);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding-bottom: 3px;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
}
.nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.7); }
.nav a.is-current { border-bottom-color: var(--gold); }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.4rem 0;
	cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: flex-end;
	background: #161514;
	overflow: hidden;
}

.hero .hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero .veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 14, 13, 0.42) 0%, rgba(15, 14, 13, 0.18) 40%, rgba(15, 14, 13, 0.62) 100%);
}

.hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 2.5rem 6.5rem;
	color: #fff;
}

.hero .eyebrow {
	color: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-bottom: 1.4rem;
}
.hero .eyebrow::before {
	content: "";
	width: 44px;
	height: 1px;
	background: var(--gold);
	flex: none;
}

.hero h1 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2.6rem, 5.6vw, 4.4rem);
	line-height: 1.08;
	letter-spacing: 0.02em;
	max-width: 18ch;
}

.hero .sub {
	margin-top: 1.6rem;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
	max-width: 58ch;
}

/* ---------------------------------------------------------------------------
   Quote band
--------------------------------------------------------------------------- */
.quote {
	padding: 6rem 2rem;
	text-align: center;
	background: var(--paper);
}

.quote blockquote {
	font-family: var(--serif);
	font-style: italic;
	font-size: clamp(1.5rem, 2.9vw, 2.2rem);
	line-height: 1.45;
	max-width: 850px;
	margin: 0 auto;
	color: var(--ink);
}

.quote .mark {
	font-family: var(--serif);
	font-size: 4rem;
	line-height: 0.6;
	color: var(--gold);
	display: block;
	margin-bottom: 1.6rem;
}

.quote cite {
	display: block;
	margin-top: 2rem;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #6d675e;
}

/* ---------------------------------------------------------------------------
   Winter School feature
--------------------------------------------------------------------------- */
.feature {
	background: var(--cream);
	padding: 5.5rem 0;
}

.feature .grid {
	display: grid;
	grid-template-columns: 1fr 1.05fr;
	gap: 4.5rem;
	align-items: center;
}

.feature .eyebrow { color: var(--gold-deep); margin-bottom: 1.1rem; }

.feature h2 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(2rem, 3.6vw, 2.9rem);
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.feature .date {
	margin-top: 1.1rem;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--blue);
}

.feature .theme-label {
	margin-top: 1.9rem;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #6d675e;
}

.feature .theme {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.5;
	margin-top: 0.4rem;
	color: #4c463e;
}

.feature .invite {
	margin-top: 1.2rem;
	font-weight: 300;
	color: #4c463e;
	max-width: 46ch;
}

.btn-row {
	display: flex;
	gap: 1rem;
	margin-top: 2.2rem;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 0.95rem 2.4rem;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background 0.2s ease, color 0.2s ease;
}

.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; }

.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

.feature .regnote {
	margin-top: 1.4rem;
	font-size: 0.9rem;
	font-weight: 300;
	color: #6d675e;
}
.feature .regnote a {
	font-weight: 500;
	color: var(--ink);
	border-bottom: 1px solid var(--hairline);
}
.feature .regnote a:hover { border-bottom-color: var(--ink); }

.feature figure { margin: 0; }
.feature figure img {
	width: 100%;
	height: 520px;
	object-fit: cover;
}

/* ---------------------------------------------------------------------------
   Full-bleed image band
--------------------------------------------------------------------------- */
.band {
	position: relative;
	height: 560px;
	overflow: hidden;
}

.band img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------------------------------
   Split sections (Campus, History, Louis G. Gregory, Contact)
--------------------------------------------------------------------------- */
.section {
	padding: 5.5rem 0;
}
.section--cream { background: var(--cream); }

.section .grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 4.5rem;
	align-items: center;
}

.section .grid--start { align-items: start; }
.section .grid--flip { direction: rtl; }
.section .grid--flip > * { direction: ltr; }

.section .eyebrow { color: var(--gold-deep); margin-bottom: 1rem; }

.section h2 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 2.4rem;
	line-height: 1.15;
}

.section .lead {
	margin-top: 1.2rem;
	font-weight: 300;
	color: #4c463e;
}

.section .prose p {
	margin-top: 1.2rem;
	font-weight: 300;
	color: #4c463e;
}

.section figure { margin: 0; }
.section figure img {
	width: 100%;
	height: 480px;
	object-fit: cover;
}

/* Campus facilities list */
.facs {
	list-style: none;
	columns: 2;
	column-gap: 3rem;
	margin-top: 1.8rem;
}
.facs li {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--hairline);
	font-size: 0.95rem;
	break-inside: avoid;
}

.campus-note {
	margin-top: 1.6rem;
	font-size: 0.85rem;
	font-style: italic;
	color: #6d675e;
}

/* Inline pull quote inside the Louis G. Gregory prose */
.pullquote {
	font-family: var(--serif) !important;
	font-style: italic;
	font-size: 1.35rem !important;
	line-height: 1.55 !important;
	color: var(--ink) !important;
	border-left: 2px solid var(--gold);
	padding-left: 1.4rem;
	margin-top: 1.8rem !important;
}

/* Contact */
.contact .lead {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.4rem;
	color: var(--ink);
}

.contact .address,
.contact .line {
	margin-top: 1.4rem;
	font-weight: 300;
	color: #4c463e;
	line-height: 1.9;
}

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.75);
	padding: 3.5rem 0 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 3rem;
}

.foot-grid h2 {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}

.foot-grid p,
.foot-grid a {
	font-size: 0.9rem;
	font-weight: 300;
	line-height: 1.9;
}

.foot-grid a:hover { color: #fff; }

.foot-brand {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1.1rem;
}
.foot-brand img { width: 30px; height: 30px; }
.foot-brand span {
	font-family: var(--serif);
	font-size: 1.1rem;
	color: #fff;
	letter-spacing: 0.03em;
}

.foot-star {
	text-align: center;
	padding: 2.5rem 0 0;
	color: rgba(255, 255, 255, 0.4);
}
.foot-star img {
	width: 22px;
	height: 22px;
	margin: 0 auto;
	opacity: 0.55;
}

/* ---------------------------------------------------------------------------
   WLGI Radio band
--------------------------------------------------------------------------- */
.radio { background: var(--ink); color: #fff; padding: 4.5rem 0; }
.radio .grid {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 3rem;
	align-items: center;
}
.radio .call {
	font-family: var(--serif);
	font-size: 3rem;
	letter-spacing: 0.06em;
	color: var(--gold);
}
.radio h2 {
	font-family: var(--serif);
	font-weight: 400;
	font-size: 1.7rem;
}
.radio p.note {
	margin-top: 0.5rem;
	font-size: 0.95rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.75);
}
.radio a.link {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
	border-bottom: 1px solid var(--gold);
	padding-bottom: 3px;
	white-space: nowrap;
}
.radio a.link:hover { color: #fff; border-bottom-color: #fff; }

/* ---------------------------------------------------------------------------
   Inner pages (e.g. /book/)
   NOTE: the section class is "inner" — WordPress adds the "page" class to
   <body> on static pages, so a ".page" selector would hit the body.
--------------------------------------------------------------------------- */
.lgbis-page .site-head {
	position: relative;
	background: var(--ink);
	padding: 1.1rem 2.5rem;
}

.inner {
	padding: 5.5rem 0;
}

.inner .page-head {
	max-width: 720px;
	margin: 0 auto 3rem;
	text-align: center;
}

.inner .page-head .eyebrow { color: var(--gold-deep); }

.inner .page-head h1 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	line-height: 1.15;
	margin-top: 0.9rem;
}

.entry {
	max-width: 680px;
	margin: 0 auto;
}

.entry p { margin-top: 1.2rem; font-weight: 300; color: #4c463e; }
.entry h2, .entry h3 {
	font-family: var(--serif);
	font-weight: 500;
	margin-top: 2.4rem;
	line-height: 1.25;
}
.entry h2 { font-size: 1.9rem; }
.entry h3 { font-size: 1.5rem; }

/* Contact Form 7 */
.wpcf7-form p { margin-top: 1.4rem; font-weight: 300; }
.wpcf7-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 0.45rem;
	color: var(--ink);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--hairline);
	background: var(--cream);
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 300;
	color: var(--ink);
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	background: #fff;
}
.wpcf7-form .wpcf7-radio { display: flex; gap: 2rem; }
.wpcf7-form .wpcf7-list-item { display: flex; align-items: center; gap: 0.5rem; }
.wpcf7-form .wpcf7-list-item-label { font-size: 0.95rem; font-weight: 300; }
.wpcf7-form input[type="radio"] { accent-color: var(--gold); }
.wpcf7-form input[type="submit"] {
	margin-top: 0.6rem;
	padding: 0.95rem 2.4rem;
	background: var(--ink);
	color: #fff;
	border: 0;
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}
.wpcf7-form input[type="submit"]:hover { background: #000; }
.wpcf7-response-output {
	margin-top: 1.4rem;
	padding: 0.9rem 1.2rem;
	font-size: 0.9rem;
	border: 1px solid var(--hairline);
	background: var(--cream);
}
.wpcf7-validates-as-required label::after { content: " *"; color: var(--gold); }

/* 404 */
.error404 {
	min-height: 60vh;
	display: flex;
	align-items: center;
}
.error404 .wrap { width: 100%; text-align: center; }
.error404 h1 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 3rem;
}
.error404 p {
	margin: 1.2rem 0 2rem;
	font-weight: 300;
	color: #4c463e;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 1080px) {
	.nav a { padding: 0 0.9rem; }
}

@media (max-width: 900px) {
	.site-head { padding: 1.2rem 1.5rem; }
	.menu-toggle { display: block; }
	.nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		background: rgba(15, 14, 13, 0.96);
		padding: 0.5rem 1.5rem 1rem;
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav a {
		padding: 0.8rem 0;
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
		font-size: 13px;
	}

	.hero { min-height: 80vh; }
	.hero-inner { padding: 0 1.5rem 4rem; }
	.wrap { padding: 0 1.5rem; }

	.quote { padding: 4rem 1.5rem; }

	.feature .grid,
	.section .grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	.feature figure img,
	.section figure img { height: 380px; }
	.band { height: 380px; }
	.facs { columns: 1; }
	.foot-grid { grid-template-columns: 1fr; gap: 2rem; }
	.radio .grid { grid-template-columns: 1fr; gap: 1.2rem; }
	.lgbis-page .site-head { padding: 1rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		transition: none !important;
		animation: none !important;
	}
}
