/* ============================================================
   Bohol Light — theme.css
   Design tokens, base, buttons, brand, nav, footer, motion guard.
   Ported from the approved mockup.
   ============================================================ */

:root {
	--green: #1E8F2C;
	--green-deep: #0E5E1B;
	--green-ink: #123A18;
	--body: #2C4433;
	--orange: #F26A22;
	--orange-deep: #CF5419;
	--red: #D4452A;
	--white: #fff;
	--cream: #FBFAF5;
	--mist: #F1F5EC;
	--mist2: #E7F0DF;
	--line: #E4E8DD;
	--f: "Mulish", system-ui, sans-serif;
	--d: "Fredoka", system-ui, sans-serif;
	--logo: "Fredoka", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, monospace;
	--r: 22px;
	--pill: 999px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f);
	color: var(--green-ink);
	background: var(--cream);
	font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
	font-family: var(--d);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.015em;
	margin: 0;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--green-deep); text-decoration: none; }
svg { display: block; }
img { max-width: 100%; }
.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--f);
	font-weight: 800;
	font-size: 1rem;
	padding: .9rem 1.5rem;
	border-radius: var(--pill);
	border: 2px solid transparent;
	cursor: pointer;
	line-height: 1;
	transition: transform .25s var(--ease), background .2s, border-color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-wline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-wline:hover { background: rgba(255, 255, 255, .14); }
.btn-gline { background: transparent; color: var(--green-deep); border-color: var(--line); }
.btn-gline:hover { border-color: var(--green); }
.btn-oline { background: transparent; color: var(--orange-deep); border: 2px solid var(--orange); }
.btn-oline:hover { background: var(--orange); color: #fff; }

/* ===== Brand ===== */
.brand { display: flex; flex-direction: column; gap: .08rem; line-height: 1; }
.brand:hover { text-decoration: none; }
.brand-logo { flex-direction: row; align-items: center; }
.brand-img { display: block; height: 48px; width: auto; max-width: 240px; }
@media (max-width: 600px) { .brand-img { height: 38px; } }
.wm {
	font-family: var(--logo);
	font-weight: 700;
	font-size: clamp(1.35rem, 1.1rem + .8vw, 1.6rem);
}
.wm .b { color: var(--green); }
.wm .l { color: var(--orange); }
.sl { font-size: .66rem; font-weight: 800; color: var(--green); }

/* ===== Sticky nav ===== */
header.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 250, 245, .92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: .7rem;
}
.nav-actions { display: flex; gap: .7rem; align-items: center; }
.nl {
	display: flex;
	gap: 1.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}
.nl > li { position: relative; }
.nl > li > a {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	color: var(--body);
	font-weight: 700;
	font-size: .94rem;
	padding-block: .5rem;
}
.nl > li > a:hover, .nl > li.on > a { color: var(--orange); }
.cr { width: 11px; height: 11px; transition: transform .2s; }
.hd:hover .cr, .hd:focus-within .cr { transform: rotate(180deg); }
.dp {
	position: absolute;
	top: calc(100% + 6px);
	left: -.6rem;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: .5rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .2s var(--ease);
	box-shadow: 0 18px 40px -24px rgba(18, 58, 24, .4);
	z-index: 10;
}
.hd:hover .dp, .hd:focus-within .dp { opacity: 1; visibility: visible; transform: none; }
.dp a {
	display: block;
	padding: .55rem .8rem;
	border-radius: 8px;
	color: var(--body);
	font-weight: 600;
	font-size: .9rem;
}
.dp a:hover { background: var(--mist); }
.mb {
	display: none;
	background: #fff;
	border: 2px solid var(--line);
	border-radius: 12px;
	width: 46px;
	height: 46px;
	color: var(--green-ink);
	cursor: pointer;
}
.mb svg { margin: auto; }

/* ===== Footer ===== */
footer.site {
	background: var(--green-ink);
	color: rgba(255, 255, 255, .7);
	padding-block: clamp(3rem, 6vw, 4rem) 2rem;
}
.fg {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 2rem;
}
footer.site h4 {
	color: #fff;
	font-family: var(--d);
	font-weight: 600;
	font-size: 1rem;
	margin: 0 0 1rem;
}
footer.site ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .55rem;
}
footer.site a { color: rgba(255, 255, 255, .7); font-size: .92rem; font-weight: 500; }
footer.site a:hover { color: #fff; }
.wm-footer { font-size: 1.6rem; }
.wm-footer .b { color: #5FD16B; }
.fb p { max-width: 32ch; margin-top: 1rem; font-size: .92rem; }
.fb .sf { color: #FFD27A; font-weight: 800; margin-top: .6rem; }
.fbtm {
	border-top: 1px solid rgba(255, 255, 255, .14);
	margin-top: 2.5rem;
	padding-top: 1.4rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: .84rem;
}

/* ===== Animation initial states (only when JS is active) ===== */
html.bl-js [data-anim="reveal"] { opacity: 0; will-change: transform, opacity; }
html.bl-js [data-anim="reveal"][data-anim-stagger] { opacity: 1; }
html.bl-js [data-anim="reveal"][data-anim-stagger] > * { opacity: 0; }

/* ===== Reduced-motion guard ===== */
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
	html.bl-js [data-anim="reveal"],
	html.bl-js [data-anim="reveal"][data-anim-stagger] > * { opacity: 1 !important; transform: none !important; }
}

/* ===== Responsive: nav + footer ===== */
@media (max-width: 960px) {
	.fg { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.nl { display: none; }
	.mb { display: grid; }
	.nav[data-open="true"] .nl {
		display: flex;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		background: var(--cream);
		padding: 1.25rem;
		gap: .4rem;
		box-shadow: 0 20px 40px -30px rgba(18, 58, 24, .6);
	}
	.cr { display: none; }
	.dp {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		display: none;
		border: none;
		box-shadow: none;
		padding: .2rem 0 .4rem .8rem;
	}
	.nav[data-open="true"] .hd .dp { display: block; }
	.fg { grid-template-columns: 1fr; }
}
