/*
Theme Name: Lake Theme
Description: Lightweight, zero-JS frontend theme for sites built with Lake Builder. Holds per-client branding tokens.
Version: 0.1.0
Author: Lake
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: lake-theme
*/

/* ============================================================
   Lake Theme — site chrome (header + footer)
   Consumes the brand tokens emitted on :root by Lake Builder
   (--brand, --brand-deep, --brand-ink, --brand-maxw, etc.).
   Zero-JS: dropdowns use :hover/:focus-within, the mobile menu
   uses the checkbox hack.
   ============================================================ */

body {
    font-family: var(--brand-text, system-ui, sans-serif);
    color: var(--brand-ink, #1a1a1a);
    line-height: 1.5;
}

.lake-header *,
.lake-footer * { box-sizing: border-box; }

.lake-header a,
.lake-footer a { text-decoration: none; color: inherit; }

.lake-header ul,
.lake-footer ul { list-style: none; margin: 0; padding: 0; }

.lake-header ul.lake-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lake-header ul.lake-social svg {
    width: 16px;
    height: 16px;
    margin-top: 0px;
    margin-bottom: -3px;
}

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

/* ----------------------------------------------------- top bar */
.lake-topbar {
	background: var(--brand, #3a7a7a);
	color: #fff;
	font-size: 13px;
    font-family: var(--brand-text, system-ui, sans-serif);
}
.lake-topbar-inner {
	max-width: var(--brand-maxw, 1400px);
	margin: 0 auto;
	padding: 7px 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
}
.lake-topbar-contact {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}
.lake-topbar-mail {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.lake-topbar-mail svg { width: 16px; height: 16px; }
.lake-topbar a:hover { opacity: .8; }

/* ----------------------------------------------------- nav bar */
.lake-navbar {
	background: #fff;
	border-bottom: 1px solid var(--brand-line, #e6e6e6);
}
.lake-navbar-inner {
	max-width: var(--brand-maxw, 1400px);
	margin: 0 auto;
	padding: 16px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.lake-brand-logo .lake-logo { display: inline-flex; align-items: center; }
.lake-brand-logo img,
.lake-brand-logo .custom-logo { max-height: 56px; width: auto; height: auto; display: block; }
.lake-logo-text {
	font-family: var(--brand-head, Georgia, serif);
	font-weight: var(--brand-head-weight, 600);
	font-size: 22px;
	color: var(--brand-ink, #1a1a1a);
}

.lake-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}
.lake-menu {
	display: flex;
	align-items: center;
	gap: 26px;
}
.lake-menu li { position: relative; }
.lake-menu a {
	font-family: var(--brand-text, system-ui, sans-serif);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--brand-ink, #1a1a1a);
	padding: 8px 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.lake-menu a:hover,
.lake-menu .current-menu-item > a { color: var(--brand, #3a7a7a); }

/* parent caret */
.lake-menu .menu-item-has-children > a::after {
	content: "";
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

/* dropdown submenus (zero-JS) */
.lake-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--brand-line, #e6e6e6);
	border-radius: var(--brand-radius, 4px);
	box-shadow: 0 12px 30px rgba(0,0,0,.10);
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .14s ease, transform .14s ease, visibility .14s;
	z-index: 50;
}
.lake-menu li:hover > .sub-menu,
.lake-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.lake-menu .sub-menu a {
	padding: 9px 18px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	white-space: nowrap;
}
.lake-menu .sub-menu a:hover { background: var(--brand-paper, #f6f6f4); }

.lake-nav-cta {
	font-family: var(--brand-text, system-ui, sans-serif);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--brand-ink, #1a1a1a);
	padding: 11px 22px;
	border: 1.5px solid var(--brand-line, #cfcfcf);
	border-radius: var(--brand-radius, 4px);
}
.lake-nav-cta:hover {
	border-color: var(--brand, #3a7a7a);
	color: var(--brand, #3a7a7a);
}

/* mobile toggle — hidden on desktop */
.lake-nav-checkbox,
.lake-nav-burger { display: none; }

/* ----------------------------------------------------- page hero (inner pages) */
.lake-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 15rem;
    padding: 5rem 0;
    background: var(--brand-deep, #1f3a5f);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.lake-page-hero.has-image {
	background-image: var(--hero-bg);
	background-size: cover;
	background-position: center;
}
/* Dark scrim so the heading stays legible over any image. */
.lake-page-hero.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .45);
}
.lake-page-hero-inner {
	position: relative;
	z-index: 1;
	max-width: var(--brand-maxw, 1080px);
	margin: 0 auto;
}
.lake-page-hero-title {
	margin: 0;
	font-family: var(--brand-head, system-ui, sans-serif);
	font-weight: var(--brand-head-weight, 600);
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.1;
	letter-spacing: var(--brand-ls, normal);
	color: #fff;
}
.lake-page-hero-text {
	margin: 18px auto 0;
	max-width: 60ch;
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, .9);
}

/* breadcrumb bar below the hero */
.lake-breadcrumb-bar {
	background: var(--brand, #3f8e88);
	color: #fff;
}
.lake-breadcrumb-bar-inner {
	max-width: var(--brand-maxw, 1080px);
	margin: 0 auto;
	padding: 14px 7%;
}
.lake-breadcrumbs { font-size: 13px; }
.lake-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.lake-crumb,
.lake-crumb-home a { color: rgba(255, 255, 255, .9); }
.lake-crumb a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.lake-crumb a:hover { color: #fff; text-decoration: underline; }
.lake-crumb-home a { display: inline-flex; align-items: center; }
.lake-crumb-home svg { width: 16px; height: 16px; }
.lake-crumb-sep { display: inline-flex; align-items: center; opacity: .6; }
.lake-crumb-sep svg { width: 13px; height: 13px; }
.lake-crumb-current {
	color: #fff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}

@media (max-width: 700px) {
	.lake-page-hero { min-height: 320px; padding: 72px 7%; }
}

/* ----------------------------------------------------- footer */
.lake-footer {
	background: var(--brand, #3f8e88);
	color: rgba(255,255,255,.9);
	font-family: var(--brand-text, system-ui, sans-serif);
}
.lake-footer-inner {
	max-width: var(--brand-maxw, 1080px);
	margin: 0 auto;
	padding: 64px 0 36px;
}
.lake-footer-top {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
.lake-footer .lake-logo img,
.lake-footer .custom-logo { max-height: 76px; width: auto; filter: brightness(0) invert(1); }
.lake-footer .lake-logo-text { color: #fff; font-size: 22px; font-weight: 700; }

/* primary nav row */
.lake-footer-nav { margin-top: 34px; }
.lake-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 40px;
}
.lake-footer-menu a {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.lake-footer-menu a:hover { color: rgba(255,255,255,.7); }

/* contact column */
.lake-footer-contact { justify-self: end; }
.lake-contact-list { display: flex; flex-direction: column; gap: 18px; }
.lake-contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.lake-contact-list a { color: #fff; }
.lake-contact-list a:hover { color: rgba(255,255,255,.75); }
.lake-contact-list svg {flex: 0 0 auto;opacity: .92;padding: 4px 1px 4px;border-radius: 3px;background: rgba(242, 242, 242, 0.12);height: 22px;width: 22px;}

/* divider */
.lake-footer-divider {
	border: 0;
	border-top: 1px solid rgba(255,255,255,.3);
	margin: 40px 0 24px;
}

/* bottom row: social + copyright */
.lake-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.lake-footer-copy { margin: 0 0 0 auto; font-size: 14px; color: rgba(255,255,255,.85); }

/* round, icon-only social buttons */
.lake-social--round {display: flex;align-items: center;gap: 15px;}
.lake-social--round a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background-color .18s ease, color .18s ease;
}
.lake-social--round a:hover {
	opacity: 0.85;
}
.lake-social--round svg {width: 21px;height: 21px;}

/* ----------------------------------------------------- responsive */
@media (max-width: 860px) {
	.lake-footer-top { grid-template-columns: 1fr; gap: 36px; }
	.lake-footer-contact { justify-self: start; }
	.lake-footer-bottom { justify-content: flex-start; }
	.lake-footer-copy { margin-left: 0; }
}

@media (max-width: 782px) {
	.lake-nav-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 42px; height: 42px;
		cursor: pointer;
		border: 1px solid var(--brand-line, #ddd);
		border-radius: var(--brand-radius, 4px);
		padding: 0 9px;
	}
	.lake-nav-burger span {
		display: block;
		height: 2px;
		background: var(--brand-ink, #1a1a1a);
		transition: transform .2s ease, opacity .2s ease;
	}
	.lake-nav {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--brand-line, #e6e6e6);
		box-shadow: 0 16px 30px rgba(0,0,0,.12);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 7%;
		max-height: 0;
		overflow: hidden;
		transition: max-height .25s ease, padding .25s ease;
	}
	.lake-navbar { position: relative; }
	.lake-nav-checkbox:checked ~ .lake-nav {
		max-height: 80vh;
		overflow: auto;
		padding: 12px 7% 20px;
	}
	.lake-nav-checkbox:checked ~ .lake-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.lake-nav-checkbox:checked ~ .lake-nav-burger span:nth-child(2) { opacity: 0; }
	.lake-nav-checkbox:checked ~ .lake-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.lake-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.lake-menu > li { border-bottom: 1px solid var(--brand-line, #eee); }
	.lake-menu a { padding: 13px 0; }
	.lake-menu .menu-item-has-children > a::after { margin-left: auto; }

	/* submenus inline on mobile (always visible under parent) */
	.lake-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 8px 14px;
	}
	.lake-nav-cta { margin-top: 14px; text-align: center; }

	.lake-topbar-inner { justify-content: center; flex-wrap: wrap; gap: 14px; }
}
