/*
 * E-Planit Systems public site: additions to the shared style.css.
 *
 * style.css is the stylesheet Thingo and Celadon Homes use, kept identical to
 * Thingo's copy, so rules for these pages live here instead.  Load this file
 * after style.css.  Adapted from Celadon Homes' site.css, with E-Planit's
 * green (the "it" in the logo) as the accent and the logo's pale blue tiles
 * behind the home page banner.
 */

:root {
	--ep-green: #3e8c5c;		/* the "it" in the logo */
	--ep-green-soft: #e4f1e9;
	--ep-green-wash: #f2f8f4;
	--ep-green-line: #cde5d6;
	--ep-green-ink: #2d6b45;
	--ep-tile: #e0ecf5;		/* the tiles under the logo */
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus {
	left: 12px;
	top: 12px;
	z-index: 10;
	background: var(--surface);
	padding: 8px 12px;
	border-radius: 6px;
	box-shadow: var(--shadow);
}

/* ---------- header: logo, nav, Contact Us ---------- */

.site-header .bar { flex-wrap: nowrap; gap: 8px 16px; }
.brand, .site-header .site-cta { flex: 0 0 auto; }
.brand img { height: 68px; border-radius: 0; }
.site-nav { justify-content: flex-end; }
.site-nav a { white-space: nowrap; padding: 8px 12px; }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.site-header .site-cta { width: auto; white-space: nowrap; }

/* ---------- home page ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--ep-green-soft) 0%, var(--surface) 65%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 48px 44px 40px;
	margin-bottom: 36px;
}
/* a floor of pale blue tiles, like the one under the logo */
.hero::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -30px;
	width: 560px;
	height: 300px;
	background: conic-gradient(from 90deg at 8px 8px, var(--ep-tile) 90deg, transparent 0) 0 0 / 86px 46px;
	transform: perspective(600px) rotateX(55deg) rotateZ(-12deg);
	transform-origin: 100% 100%;
	-webkit-mask-image: linear-gradient(to left, #000 30%, transparent 90%);
	mask-image: linear-gradient(to left, #000 30%, transparent 90%);
	pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 2.3rem; max-width: 22ch; }
.lead { font-size: 1.12rem; max-width: 66ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }

.svc-section > h2 { margin-bottom: 16px; }
.svc-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 20px;
	margin-bottom: 36px;
}
.svc-card { margin: 0; display: flex; flex-direction: column; }
.svc-card h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.svc-card .cta { margin: auto 0 0; padding-top: 4px; font-weight: 600; }

.svc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--ep-green-soft);
	color: var(--ep-green-ink);
}
.svc-icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.svc-icon-lg { width: 64px; height: 64px; }
.svc-icon-lg svg { width: 34px; height: 34px; }

.features { margin-bottom: 36px; padding: 24px 28px 28px; }
.features > h2 { margin-bottom: 18px; }
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
	gap: 24px 36px;
}
.feature h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; }

.cta-band {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	background: var(--ep-green-wash);
	border-color: var(--ep-green-line);
}
.cta-band > div { flex: 1 1 420px; }
.cta-band p { margin: 0; max-width: 70ch; }
.cta-band > .cta-actions {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

/* ---------- footer: business name, address, email ---------- */

.site-footer .nap {
	font-style: normal;
	font-size: .9rem;
	color: var(--text);
	margin: 0 0 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
}
.site-footer .nap span { white-space: nowrap; }
.site-footer .nap span + span::before { content: "\00b7"; margin: 0 8px; color: var(--muted); }
.site-footer .nap a { margin-right: 0; font-weight: 600; }

/* ---------- inner pages ---------- */

.crumbs { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs .sep { margin: 0 8px; }

.svc-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
.svc-head h1 { margin: 6px 0 8px; }
.svc-head .lead { margin: 0; }
.product-logo { flex: 0 0 auto; width: 88px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

.svc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}
.svc-layout .card h2 { font-size: 1.25rem; }
.svc-side { position: sticky; top: 20px; }
.svc-main > .small { margin: -4px 0 0; }

/* a section card's title, with its icon */
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; }
.sec-head .svc-icon { width: 42px; height: 42px; }
.sec-head .svc-icon svg { width: 23px; height: 23px; }
.card[id] { scroll-margin-top: 16px; }

ul.checks, ol.steps { list-style: none; margin: 0 0 .9em; padding: 0; }
ul.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .15em;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--ep-green-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-4.8' fill='none' stroke='%232d6b45' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
ul.checks li:last-child { margin-bottom: 0; }
ul.checks:last-child { margin-bottom: 0; }

dl.facts { margin: 0; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 2px 0 16px; }
dl.facts dd:last-child { margin-bottom: 0; }

.card > p:last-child { margin-bottom: 0; }

.cta-card { background: var(--ep-green-wash); border-color: var(--ep-green-line); }
.cta-card .btn { width: 100%; }

.svc-menu { padding: 18px 14px; }
.svc-menu h2 { padding: 0 10px; }
.svc-menu ul { list-style: none; margin: 0; padding: 0; }
.svc-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--text);
	font-weight: 500;
}
.svc-menu a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }

/* ---------- contact page ---------- */

.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
	gap: 20px;
	align-items: start;
}
.contact-cards .card { margin: 0; }
.contact-cards .card h2 { font-size: 1.25rem; }
.contact-cards address { font-style: normal; line-height: 1.6; }
.email { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 404 page ---------- */

.notfound { max-width: 680px; margin: 24px auto 0; }
.notfound h1 { font-size: 1.7rem; }

/* ---------- smaller screens ---------- */

@media (max-width: 860px) {
	.svc-layout { grid-template-columns: minmax(0, 1fr); }
	.svc-side { position: static; }
}

/* narrow screens: logo and Contact Us on the first row, nav on its own row below */
@media (max-width: 560px) {
	.site-header .bar { flex-wrap: wrap; }
	.site-header .site-cta { order: 2; margin-left: auto; }
	.site-nav {
		order: 3;
		flex-basis: calc(100% + 16px);
		margin: 0 -8px;
		justify-content: flex-start;
	}
}

@media (max-width: 720px) {
	.brand img { height: 52px; }
	.site-nav a { padding: 6px 10px; font-size: .95rem; }
	.cta-band > .cta-actions { flex: 1 1 100%; align-items: stretch; text-align: center; }
	.site-footer .nap { display: block; line-height: 1.6; }
	.site-footer .nap span { display: block; white-space: normal; }
	.site-footer .nap span + span::before { content: none; }
	.hero { padding: 28px 18px 24px; margin-bottom: 28px; }
	.hero::after { width: 380px; height: 200px; right: -60px; bottom: -40px; background-size: 64px 34px; }
	.hero h1 { font-size: 1.75rem; }
	.lead { font-size: 1.05rem; }
	.features { padding: 16px 16px 20px; margin-bottom: 28px; }
	/* icon beside the title, lead paragraph full width underneath */
	.svc-head {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 12px 14px;
	}
	.svc-head > div { display: contents; }
	.svc-head .lead { grid-column: 1 / -1; }
	.svc-icon-lg { width: 48px; height: 48px; }
	.svc-icon-lg svg { width: 26px; height: 26px; }
	.product-logo { width: 56px; }
	.svc-head h1 { font-size: 1.6rem; margin: 0; }
	.svc-menu { padding: 16px 6px; }	/* keeps text aligned with the 16px .card padding */
}
