/*
Theme Name: Lake Talia HOA
Theme URI: https://www.facebook.com/groups/laketalia
Author: Lake Talia HOA Board
Description: Appearance for the Lake Talia Homeowners Association website (Land O' Lakes, FL): header, navigation, footer, typography and a full-width block homepage. Pair it with the Lake Talia HOA plugin, which provides the calendar, minutes, board-actions log, FAQs, owners-only records, owner accounts and resident requests.
Version: 2.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lake-talia
Tags: community, custom-colors, custom-logo, custom-menu, featured-images, editor-style, accessibility-ready
*/

/* ---------- Tokens ---------- */
:root {
	--lt-primary: #0e4f5c;
	--lt-accent: #d98e3b;
	--lt-ink: #1b2a2f;
	--lt-muted: #5b6b70;
	--lt-line: #e3e0d8;
	--lt-bg: #faf8f3;
	--lt-surface: #ffffff;
	--lt-soft: #eef4f3;
	--lt-sand: #f3ece0;
	--lt-ok: #1f7a4d;
	--lt-warn: #9a6a00;
	--lt-danger: #b42318;
	--lt-radius: 14px;
	--lt-radius-sm: 8px;
	--lt-shadow: 0 1px 2px rgba(16, 40, 46, .06), 0 6px 20px rgba(16, 40, 46, .06);
	--lt-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--lt-display: "Fraunces", Georgia, "Times New Roman", serif;
	--lt-max: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 17px/1.6 var(--lt-font);
	color: var(--lt-ink);
	background: var(--lt-bg);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--lt-primary); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--lt-primary) 75%, #000); }
:focus-visible { outline: 3px solid var(--lt-accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--lt-ink); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--lt-line); margin: 2rem 0; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.lt-skip:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--lt-shadow);
}
/* ---------- Alert & top bar ---------- */
.lt-alert { background: var(--lt-accent); color: #1e1408; font-weight: 600; font-size: 15px; }
.lt-alert .lt-wrap { display: flex; gap: 10px; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.lt-alert a { color: inherit; }
.lt-alert__icon {
	flex: none; width: 22px; height: 22px; border-radius: 50%; background: #1e1408; color: var(--lt-accent);
	display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.lt-topbar { background: var(--lt-ink); color: #c9d6d8; font-size: 13.5px; }
.lt-topbar .lt-wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.lt-topbar a { color: #fff; text-decoration: none; }
.lt-topbar a:hover { text-decoration: underline; color: #fff; }
.lt-topbar__links a + a { margin-left: 16px; }

/* ---------- Header & nav ---------- */
.lt-header { background: var(--lt-surface); border-bottom: 1px solid var(--lt-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .lt-header { top: 32px; }
.lt-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.lt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lt-ink); }
.lt-brand:hover { color: var(--lt-ink); }
.lt-brand__mark, .lt-brand__logo { width: 46px; height: 46px; flex: none; border-radius: 50%; }
.lt-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.lt-brand__text strong { font: 650 22px/1.05 var(--lt-display); color: var(--lt-primary); }
.lt-brand__text small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lt-muted); }
.lt-nav { display: flex; align-items: center; gap: 8px; }
.lt-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.lt-menu > li { position: relative; display: flex; align-items: center; }
.lt-menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--lt-ink); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.lt-menu a:hover, .lt-menu .current-menu-item > a, .lt-menu .current-menu-ancestor > a { color: var(--lt-primary); background: var(--lt-soft); }
.lt-sub-toggle { border: 0; background: none; padding: 6px; margin-left: -8px; color: var(--lt-muted); cursor: pointer; border-radius: 6px; }
.lt-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; border: 1px solid var(--lt-line); border-radius: 12px; box-shadow: var(--lt-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.lt-menu li:hover > .sub-menu, .lt-menu li:focus-within > .sub-menu, .lt-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lt-nav__cta { margin: 0 0 0 8px; }
.lt-nav-toggle { display: none; border: 0; background: var(--lt-soft); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.lt-nav-toggle__bars, .lt-nav-toggle__bars::before, .lt-nav-toggle__bars::after {
	display: block; width: 20px; height: 2px; background: var(--lt-ink); margin: 0 auto; position: relative; transition: .2s; content: "";
}
.lt-nav-toggle__bars::before { position: absolute; top: -6px; }
.lt-nav-toggle__bars::after { position: absolute; top: 6px; }
.lt-nav-toggle[aria-expanded="true"] .lt-nav-toggle__bars { background: transparent; }
.lt-nav-toggle[aria-expanded="true"] .lt-nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.lt-nav-toggle[aria-expanded="true"] .lt-nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1060px) {
	.lt-nav-toggle { display: block; }
	.lt-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
		background: #fff; border-bottom: 1px solid var(--lt-line); padding: 12px 20px 20px; box-shadow: var(--lt-shadow);
		max-height: calc(100vh - 110px); overflow: auto;
	}
	.lt-nav.is-open { display: flex; }
	.lt-menu { flex-direction: column; }
	.lt-menu > li { flex-wrap: wrap; }
	.lt-menu > li > a { flex: 1; }
	.lt-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; width: 100%; }
	.lt-menu li.is-open > .sub-menu { display: block; }
	.lt-menu li:hover > .sub-menu { display: none; }
	.lt-menu li.is-open:hover > .sub-menu { display: block; }
	.lt-sub-toggle { padding: 12px; }
	.lt-nav__cta { margin: 12px 0 0; }
}
@media (max-width: 782px) { .admin-bar .lt-header { top: 0; } }

/* ---------- Page heads & prose ---------- */
.lt-page-head { background: var(--lt-primary); color: #fff; padding: 46px 0 40px; position: relative; overflow: hidden; }
.lt-page-head::after {
	content: ""; position: absolute; right: -60px; bottom: -80px; width: 360px; height: 220px; border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--lt-accent) 55%, transparent), transparent); opacity: .6;
}
.lt-page-title { font: 600 clamp(32px, 4.5vw, 48px)/1.08 var(--lt-display); color: #fff; margin: 0; letter-spacing: -.015em; position: relative; z-index: 1; }
.lt-page-sub { color: #d6e7e6; margin: 10px 0 0; position: relative; z-index: 1; }
.lt-page-sub a { color: #fff; }
.lt-back { display: inline-block; color: #cfe2e1; text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 10px; position: relative; z-index: 1; }
.lt-back:hover { color: #fff; }
.lt-prose { font-size: 17.5px; }
.lt-prose > *:first-child { margin-top: 0; }
.lt-prose h2 { font: 600 28px/1.2 var(--lt-display); margin-top: 1.6em; }
.lt-prose h3 { font: 600 22px/1.25 var(--lt-display); margin-top: 1.4em; }
.lt-prose ul, .lt-prose ol { padding-left: 1.3em; }
.lt-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--lt-accent); color: var(--lt-muted); }
.lt-prose table { border-collapse: collapse; width: 100%; }
.lt-prose th, .lt-prose td { border: 1px solid var(--lt-line); padding: 8px 10px; }
.lt-featured { margin: 0 0 24px; }
.lt-featured img { border-radius: var(--lt-radius); display: block; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--lt-radius-sm); }
.post-navigation { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--lt-line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; }
.navigation.pagination { margin-top: 30px; }
.nav-links .page-numbers { display: inline-block; padding: 6px 12px; border-radius: 8px; margin-right: 4px; text-decoration: none; background: #fff; border: 1px solid var(--lt-line); }
.nav-links .page-numbers.current { background: var(--lt-primary); color: #fff; border-color: var(--lt-primary); }

/* ---------- Footer ---------- */
.lt-footer { background: var(--lt-ink); color: #b9c7c9; margin-top: 40px; font-size: 15px; }
.lt-footer a { color: #fff; text-decoration: none; }
.lt-footer a:hover { text-decoration: underline; color: #fff; }
.lt-footer h3 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.lt-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 52px; padding-bottom: 36px; }
.lt-footer__name { font: 600 21px/1.2 var(--lt-display); color: #fff; }
.lt-footer__note { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 28px; font-size: 13.5px; color: #8fa2a5; }
.lt-footer__widgets { padding-bottom: 24px; }
@media (max-width: 820px) { .lt-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lt-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; margin-top: 18px; }
.search-form label { flex: 1; }
.search-field { width: 100%; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--lt-line); font: inherit; }
.search-submit { padding: 11px 18px; border-radius: 999px; border: 0; background: var(--lt-primary); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- Print ---------- */
@media print {
	.lt-topbar, .lt-header, .lt-footer, .lt-alert, .lt-details__actions, .lt-chips { display: none !important; }
	.lt-page-head { background: none; color: #000; padding: 0; }
	.lt-page-title { color: #000; }
	body { background: #fff; }
}

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

/* Component headings inside page content keep their own styles */
.lt-prose .lt-h3 { font: 600 22px/1.25 var(--lt-display); margin: 1.6em 0 .7em; }
.lt-prose .lt-h3:first-child { margin-top: 0; }
.lt-prose .lt-cal__title { font: 600 28px/1 var(--lt-display); margin: 0 8px; }
.lt-prose .lt-event__title { font: 600 17px/1.3 var(--lt-font); margin: 2px 0; }
.lt-prose .lt-ticket-card__head h2 { font: 600 24px/1.2 var(--lt-display); margin: 12px 0 0; }
.lt-prose .lt-notice h2 { font: 600 22px/1.2 var(--lt-display); margin: 0 0 8px; }
.lt-prose .lt-contact__card h3 { font: 600 21px/1.2 var(--lt-display); margin-top: 0; }
.lt-prose .lt-chips, .lt-prose .lt-event-list, .lt-prose .lt-doc-list { padding-left: 0; }

/* ---------- Block homepage ---------- */
.lt-blocks > :where(:not(.lt-sec):not(.lt-hero):not(.alignfull)) {
	max-width: var(--lt-max); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;
}
.lt-blocks > .wp-block-columns { padding-top: 48px; padding-bottom: 48px; gap: 48px; margin-bottom: 0; }
.lt-blocks > p, .lt-blocks > h2, .lt-blocks > h3 { margin-top: 1em; }
.lt-blocks > .alignfull { max-width: none; }

/* Plain ampersand in headings (Fraunces' large optical sizes use a decorative one). */
.lt-amp { font-variation-settings: "opsz" 9; }
