/*
Theme Name: Malone Family Reunion
Theme URI: https://example.com/
Author: Carl Malone
Description: Navy and gold theme for the Malone Family Reunion. Pair with the "Malone Reunion Core" plugin for events, registration, committees, lodging, family tree and family logins.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: malone-reunion
*/

:root {
	--navy: #14254a;
	--navy-2: #1d3363;
	--navy-3: #0d1a36;
	--gold: #c9a227;
	--gold-2: #e2c25a;
	--ink: #1b1f2a;
	--muted: #5b6475;
	--paper: #faf7ef;
	--line: #e3e0d6;
	--serif: "Playfair Display", Georgia, serif;
	--sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 1.6em 0 .6em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: #fff; padding: 10px 16px; clip: auto; width: auto; height: auto; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 3px solid var(--gold); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--gold); flex: none; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.brand__name, .brand__sub { white-space: nowrap; }
.main-nav ul { flex-wrap: nowrap !important; }
.main-nav a { white-space: nowrap; }
.brand__sub { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.custom-logo { max-height: 56px; width: auto; }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a { display: block; padding: 8px 11px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; border-radius: 8px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--gold-2); background: rgba(255,255,255,.06); }
.main-nav .nav-cta a { background: var(--gold); color: var(--navy); margin-left: 6px; border-radius: 999px; padding: 8px 16px; }
.main-nav .nav-cta a:hover { background: var(--gold-2); color: var(--navy); }
.main-nav .nav-login a { border: 1px solid rgba(201,162,39,.7); border-radius: 999px; padding: 7px 14px; margin-left: 6px; }

@media (max-width: 1180px) {
	.nav-toggle { display: inline-block; }
	.main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-3); border-bottom: 3px solid var(--gold); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
	.main-nav a { padding: 12px 10px; }
	.main-nav .nav-cta a, .main-nav .nav-login a { margin: 8px 0 0; text-align: center; }
	.admin-bar .site-header { top: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(ellipse at 80% 0%, var(--navy-2), var(--navy) 55%, var(--navy-3)); color: #fff; overflow: hidden; }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,26,54,.94) 30%, rgba(13,26,54,.55)); }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 2px solid rgba(201,162,39,.25); box-shadow: 0 0 0 40px rgba(201,162,39,.05), 0 0 0 90px rgba(201,162,39,.04); }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 80px; }
.hero__eyebrow { display: inline-flex; gap: 10px; align-items: center; color: var(--gold-2); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700; }
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.hero h1 { color: #fff; margin-top: 12px; max-width: 14ch; }
.hero h1 span { color: var(--gold); }
.hero__tag { font-size: 1.15rem; max-width: 46ch; opacity: .9; margin: 0 0 26px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 30px; padding: 0; list-style: none; }
.hero__facts li { display: grid; }
.hero__facts small { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; color: var(--gold-2); }
.hero__facts strong { font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .mr-btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .mr-btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Page header + content ---------- */
.page-head { background: var(--navy); color: #fff; padding: 46px 0 40px; border-bottom: 1px solid rgba(201,162,39,.4); }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--gold-2); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; }
.site-main { padding: 44px 0 70px; min-height: 50vh; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { max-width: 72ch; }
.entry-content .mr-cards, .entry-content .mr-form, .entry-content .mr-committees { max-width: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,.85); padding: 48px 0 26px; border-top: 4px solid var(--gold); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h3 { color: var(--gold); font-size: 1.1rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } body { font-size: 17px; } }

/* 1.1.0 — venue photos on the home page */
.home-venue { margin-top: 40px; }
.home-venue h2 { margin-bottom: 16px; }
