/* Cedarline Conservancy 7.1 — mobile-first institutional layout */

:root {
	--c-teal: #45818e;
	--c-teal-dark: #356874;
	--c-cyan: #28bee3;
	--c-navy: #1c4587;
	--c-dark: #262d33;
	--c-dark-2: #373e44;
	--c-light: #e1e4e9;
	--c-bg: #f4f6f7;
	--c-white: #ffffff;
	--c-text: #1f2428;
	--c-muted: #5c6670;
	--font-body: "Source Sans 3", "Segoe UI", sans-serif;
	--font-display: "Fraunces", Georgia, serif;
	--radius: 4px;
	--shadow: 0 2px 10px rgba(38, 45, 51, 0.12);
	--max: 1100px;
	--header-h: 0px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--c-teal-dark);
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--c-navy);
	text-decoration: underline;
}

.container {
	width: min(100% - 1.5rem, var(--max));
	margin-inline: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 0.5rem;
	top: 0.5rem;
	z-index: 100000;
	background: var(--c-dark);
	color: var(--c-white);
	padding: 0.75rem 1rem;
}

/* Top utility bar — matches reference top-bar row */
.top-bar {
	background: var(--c-dark);
	color: #d7dde3;
	font-size: 0.85rem;
}

.top-bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem 1rem;
	padding: 0.45rem 0;
}

.top-bar-phone {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: var(--c-cyan);
	font-weight: 600;
}

.icon-phone {
	width: 14px;
	height: 14px;
}

/* Brand header */
.site-header {
	background: var(--c-white);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 0;
	z-index: 50;
}

.header-brand-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.custom-logo-link {
	flex-shrink: 0;
}

.custom-logo,
.site-branding img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.brand-text {
	min-width: 0;
}

.site-title {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 4vw, 1.65rem);
	font-weight: 700;
	color: var(--c-teal);
	line-height: 1.15;
	display: block;
	text-decoration: none;
}

.site-title:hover {
	color: var(--c-teal-dark);
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	font-size: 0.8rem;
	color: var(--c-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav-toggle {
	width: 44px;
	height: 44px;
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	background: var(--c-white);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
	padding: 0;
}

.nav-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--c-dark);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-bar {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Primary navigation — teal bar like reference */
.main-navigation {
	background: var(--c-teal);
	display: none;
}

.main-navigation.is-open {
	display: block;
}

.primary-menu {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 0.75rem;
	display: flex;
	flex-direction: column;
}

.primary-menu li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-menu a {
	display: block;
	padding: 0.7rem 0.25rem;
	color: var(--c-white);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
	color: #dff6fb;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.08);
}

/* Hero slider — full-bleed like MakeWebEasy banners */
.hero-slider {
	position: relative;
	overflow: hidden;
	background: var(--c-dark);
}

.hero-slides {
	position: relative;
}

.hero-slide {
	display: none;
	position: relative;
	min-height: 220px;
}

.hero-slide.is-active {
	display: block;
	animation: fadeIn 0.45s ease;
}

.hero-slide img {
	width: 100%;
	height: clamp(220px, 52vw, 420px);
	object-fit: cover;
}

.hero-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.25rem 1rem 1.5rem;
	background: linear-gradient(transparent, rgba(38, 45, 51, 0.82));
	color: var(--c-white);
}

.hero-caption h1 {
	margin: 0 0 0.35rem;
	font-family: var(--font-display);
	font-size: clamp(1.35rem, 5vw, 2.1rem);
	font-weight: 700;
	line-height: 1.2;
}

.hero-caption p {
	margin: 0;
	font-size: 0.95rem;
	opacity: 0.95;
	max-width: 40rem;
}

.hero-dots {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	display: flex;
	gap: 0.4rem;
	z-index: 2;
}

.hero-dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.hero-dots button.is-active {
	background: var(--c-cyan);
}

@keyframes fadeIn {
	from { opacity: 0.35; }
	to { opacity: 1; }
}

/* Sections */
.section {
	padding: 1.75rem 0;
}

.section:nth-of-type(even) {
	background: var(--c-white);
}

.section-heading {
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 3.5vw, 1.55rem);
	color: var(--c-teal-dark);
	border-left: 4px solid var(--c-cyan);
	padding-left: 0.65rem;
	line-height: 1.25;
}

/* Notices list — bullet + title + date */
.notice-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: var(--c-white);
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	overflow: hidden;
}

.notice-list li + li {
	border-top: 1px solid var(--c-light);
}

.notice-list a {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.55rem;
	align-items: start;
	padding: 0.85rem 0.9rem;
	color: var(--c-text);
	text-decoration: none;
	transition: background 0.15s ease;
}

.notice-list a:hover {
	background: #eef7f9;
	text-decoration: none;
}

.notice-bullet {
	width: 8px;
	height: 8px;
	margin-top: 0.45rem;
	border-radius: 50%;
	background: var(--c-cyan);
}

.notice-title {
	font-weight: 600;
	font-size: 0.95rem;
}

.notice-date {
	font-size: 0.78rem;
	color: var(--c-muted);
	white-space: nowrap;
}

/* E-Service style image grid */
.services-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.service-tile {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
	background: var(--c-dark);
}

.service-tile img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.service-tile:hover img {
	transform: scale(1.05);
}

.service-label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.55rem 0.5rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	color: var(--c-white);
	font-weight: 700;
	font-size: 0.88rem;
	text-align: center;
}

/* PDF download rows */
.docs-group {
	margin-bottom: 1.25rem;
}

.docs-group-title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	color: var(--c-navy);
}

.docs-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.65rem;
}

.doc-card {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 0.65rem;
	align-items: center;
	padding: 0.5rem;
	background: var(--c-white);
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--c-text);
	font-weight: 600;
	font-size: 0.9rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.doc-card:hover {
	border-color: var(--c-cyan);
	text-decoration: none;
	color: var(--c-teal-dark);
}

.doc-card img {
	width: 72px;
	height: 54px;
	object-fit: cover;
	border-radius: 2px;
}

/* Community board banner */
.board-banner {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	text-decoration: none;
}

.board-banner img {
	width: 100%;
	height: clamp(160px, 40vw, 280px);
	object-fit: cover;
}

.board-cta {
	position: absolute;
	left: 50%;
	bottom: 1rem;
	transform: translateX(-50%);
	background: var(--c-teal);
	color: var(--c-white);
	padding: 0.55rem 1.1rem;
	border-radius: var(--radius);
	font-weight: 700;
	white-space: nowrap;
}

.board-banner:hover .board-cta {
	background: var(--c-teal-dark);
	text-decoration: none;
}

/* Spotlight / PR month */
.spotlight-card {
	display: grid;
	gap: 1rem;
	background: var(--c-white);
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.spotlight-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.spotlight-body {
	padding: 0 1rem 1.15rem;
}

.spotlight-body h3 {
	margin: 0 0 0.45rem;
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--c-dark);
}

.spotlight-body p {
	margin: 0 0 0.9rem;
	color: var(--c-muted);
}

.btn-primary {
	display: inline-block;
	background: var(--c-teal);
	color: var(--c-white) !important;
	padding: 0.55rem 1.1rem;
	border-radius: var(--radius);
	font-weight: 700;
	text-decoration: none !important;
}

.btn-primary:hover {
	background: var(--c-teal-dark);
}

/* Contact strip */
.contact-strip {
	background: var(--c-dark-2);
	color: #e8ecf0;
	padding: 1.75rem 0;
}

.contact-strip .section-heading {
	color: var(--c-white);
	border-left-color: var(--c-cyan);
}

.contact-grid {
	display: grid;
	gap: 0.85rem;
}

.contact-address {
	margin: 0;
	font-size: 0.95rem;
}

.contact-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
}

.contact-meta li + li {
	margin-top: 0.3rem;
}

.contact-meta a {
	color: var(--c-cyan);
}

/* Footer — horizontal unlimited links, no friend-link label */
.site-footer {
	background: var(--c-dark);
	color: #b8c0c8;
	padding: 1.25rem 0 1.75rem;
}

.footer-widgets {
	margin-bottom: 1rem;
}

.footer-links {
	margin-bottom: 1rem;
}

.footer-link-row {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.9rem;
	justify-content: flex-start;
	align-items: center;
}

.footer-link-row li {
	margin: 0;
	padding: 0;
}

.footer-link-row a {
	color: #d5dde4;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.footer-link-row a:hover {
	color: var(--c-cyan);
	text-decoration: underline;
}

.footer-copy {
	margin: 0;
	font-size: 0.8rem;
	opacity: 0.85;
}

.footer-copy a {
	color: #e8eef3;
}

/* Back to top */
.back-to-top {
	position: fixed;
	right: 0.85rem;
	bottom: 0.85rem;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #2b2a2a;
	color: var(--c-white);
	font-size: 1.1rem;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 60;
	box-shadow: var(--shadow);
}

.back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Inner pages */
.content-wrap {
	display: grid;
	gap: 1.5rem;
	padding: 1.5rem 0 2rem;
}

.content-primary {
	min-width: 0;
}

.page-header,
.entry-header {
	margin-bottom: 1rem;
}

.page-title,
.entry-title {
	margin: 0 0 0.35rem;
	font-family: var(--font-display);
	color: var(--c-teal-dark);
	line-height: 1.25;
}

.entry-meta {
	font-size: 0.85rem;
	color: var(--c-muted);
}

.post-list {
	display: grid;
	gap: 1rem;
}

.post-card {
	background: var(--c-white);
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	padding: 1rem;
}

.post-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--radius);
	margin-bottom: 0.75rem;
}

.page-article,
.single-article {
	background: var(--c-white);
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	padding: 1.1rem;
}

.page-hero-image {
	margin: 0 0 1rem;
}

.page-hero-image img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: var(--radius);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.widget-area .widget {
	background: var(--c-white);
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	padding: 1rem;
	margin-bottom: 1rem;
}

.widget-title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	color: var(--c-teal-dark);
}

.search-form {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.search-form label {
	flex: 1 1 160px;
}

.search-field {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--c-light);
	border-radius: var(--radius);
	font: inherit;
}

.search-submit {
	padding: 0.55rem 0.9rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-teal);
	color: var(--c-white);
	font-weight: 700;
	cursor: pointer;
}

.nav-links {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1.25rem;
}

.comments-area {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--c-light);
}

/* Tablet+ */
@media (min-width: 768px) {
	.custom-logo,
	.site-branding img {
		width: 72px;
		height: 72px;
	}

	.services-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 1rem;
	}

	.docs-row {
		grid-template-columns: repeat(3, 1fr);
	}

	.doc-card {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 0.75rem;
	}

	.doc-card img {
		width: 100%;
		height: 110px;
	}

	.spotlight-card {
		grid-template-columns: 1.2fr 1fr;
		align-items: stretch;
	}

	.spotlight-card img {
		height: 100%;
		min-height: 240px;
	}

	.spotlight-body {
		padding: 1.25rem 1.25rem 1.25rem 0;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}

	.contact-grid {
		grid-template-columns: 1.4fr 1fr;
		gap: 1.5rem;
	}

	.content-wrap {
		grid-template-columns: 1fr 280px;
		align-items: start;
	}

	.hero-caption {
		padding: 2rem 1.5rem 2.25rem;
	}
}

/* Desktop navigation */
@media (min-width: 992px) {
	.nav-toggle {
		display: none;
	}

	.main-navigation {
		display: block !important;
	}

	.primary-menu {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		padding: 0;
		gap: 0;
	}

	.primary-menu li {
		border-bottom: 0;
	}

	.primary-menu a {
		padding: 0.7rem 0.85rem;
		font-size: 0.9rem;
	}

	.hero-slide img {
		height: clamp(320px, 38vw, 460px);
	}

	.footer-link-row {
		gap: 0.5rem 1.15rem;
	}
}

@media (min-width: 1200px) {
	:root {
		--max: 1180px;
	}
}
