/* Greenhedge Escrow — static site stylesheet
   Rebuilt from the "Greenhedge 2015" theme. HTML + CSS only, no scripting. */

:root {
	--green: #83bc00;
	--green-dark: #6a9a00;
	--navy: #004876;
	--blue: #187ccd;
	--text: #6c6c6c;
	--text-dark: #4a4a4a;
	--muted: #878787;
	--rule: #d0d0d0;
	--footer-bg: #f6f6f6;
	--band-gray: #515151;
	--max: 1200px;
	--sans: "Lato", "Helvetica Neue", Arial, sans-serif;
	--serif: "Merriweather", Georgia, "Times New Roman", serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--serif);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 300; color: #000; line-height: 1.15; margin: 0 0 .6em; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--navy); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 10;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.header-bar {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	max-width: none;
	padding: 0;
}
.site-logo { display: flex; align-items: center; padding: 18px 24px; flex: 0 0 auto; }
.site-logo img { width: 300px; }

.main-nav { flex: 1 1 auto; display: flex; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0 12px; display: flex; flex-wrap: wrap; }
.main-nav a {
	display: block;
	padding: 18px 20px;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 19px;
	color: var(--text);
}
.main-nav a:hover { color: #333; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); }

.hphone {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--green);
	color: #000;
	padding: 12px 28px;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 19px;
	letter-spacing: 1px;
	line-height: 1.4;
}
.hphone a { color: #000; }

/* Mobile menu: <details>/<summary>, no script */
.mobile-nav { display: none; }

/* ---------- Banner ---------- */
.banner {
	background-color: #2a3a4a;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
}
.banner .wrap { padding-top: 6vw; padding-bottom: 6vw; }
.banner-title { color: #fff; font-size: clamp(32px, 3.4vw, 60px); letter-spacing: -1px; margin: 0; }
.banner-copy { font-family: var(--sans); font-weight: 300; font-size: clamp(17px, 1.25vw, 22px); line-height: 1.45; }
.banner-copy p { margin: 0 0 1em; }
.banner-copy strong { font-weight: 700; }

.banner--right .wrap { text-align: right; }

.banner--split .wrap { display: flex; align-items: center; gap: 2vw; }
.banner--split .banner-copy { max-width: 720px; padding-left: 2vw; border-left: 1px solid #fff; }
.banner--split .banner-copy p { margin: 0; }

/* Home hero: full-height photo with header on top */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background-color: #0d2236;
	background-position: center center;
	background-size: cover;
	color: #fff;
}
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 20, 40, .75) 0%, rgba(0, 20, 40, .35) 55%, rgba(0, 0, 0, 0) 100%);
}
.hero .wrap { position: relative; padding-top: 140px; padding-bottom: 140px; }
.hero .banner-copy { max-width: 620px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.hero-links {
	position: absolute;
	right: 5vw;
	bottom: 0;
	background: rgba(0, 0, 0, .41);
	padding: 16px 20px;
	font-family: var(--sans);
	font-size: 13px;
}
.hero-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.hero-links li + li a { border-left: 1px solid #95bd39; }
.hero-links a { color: #fff; padding: 0 10px; line-height: 1; display: block; }

/* ---------- Content ---------- */
main { flex: 1 0 auto; }
.section { padding: 64px 0; }
.section-title { font-size: clamp(28px, 2.4vw, 44px); margin-bottom: 1em; }
.section-title--center { text-align: center; }
.blue-title { color: var(--blue); font-size: 22px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.two-col > div { padding: 0 3vw 0 0; }
.two-col > div + div { padding: 0 0 0 3vw; }
.two-col--divided > div + div { border-left: 1px solid var(--green); }

.prose p { margin: 0 0 1.4em; }
.prose ul { margin: 0 0 1.4em 1.2em; padding: 0; list-style: disc; }
.services-list li { font-family: var(--sans); font-weight: 300; font-size: 21px; color: var(--text); margin-bottom: .35em; padding-left: .3em; }
.services-list li::marker { color: var(--green); }

/* Testimonials: CSS scroll-snap carousel (swipe / scroll; no script) */
.testimonials-band { background: var(--band-gray); color: #fff; }
.testimonials-band .section-title { color: #fff; text-align: center; }
.carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	max-width: 820px;
	margin: 0 auto;
	padding: 0 0 18px;
	list-style: none;
	scrollbar-color: var(--green) rgba(255, 255, 255, .15);
}
.carousel > li { scroll-snap-align: center; padding: 0 12px; }
.carousel blockquote { margin: 0; }
.carousel blockquote p { font-size: 17px; line-height: 1.8; margin: 0 0 1.2em; }
.carousel footer { font-family: var(--sans); font-weight: 300; font-size: 18px; line-height: 1.3; }
.carousel cite { display: block; font-style: normal; font-weight: 700; text-transform: uppercase; }
.carousel .role { font-style: italic; padding-left: 1em; }
.carousel-dots { display: flex; justify-content: center; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.carousel-dots a {
	display: block; width: 12px; height: 12px; border-radius: 50%;
	border: 2px solid #fff; font-size: 0; overflow: hidden;
}
.carousel-dots a:hover, .carousel-dots a:focus-visible { background: var(--green); border-color: var(--green); }
.carousel-hint { text-align: center; font-family: var(--sans); font-size: 13px; color: rgba(255, 255, 255, .7); margin: 8px 0 0; }

/* Resources */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; }
.faq-item { margin-bottom: 2em; break-inside: avoid; }
.faq-q { color: var(--blue); font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1.3; margin: 0 0 .6em; }
.faq-a { margin: 0; }
.faq-quote { margin: .8em 0 0; }
.links-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 6vw; }
.links-list li { margin-bottom: 2em; }
.links-list .name { display: block; }
.links-list a { color: var(--text); word-break: break-word; }
.links-list a:hover { color: var(--navy); }

/* Contact */
.gh-contact { padding: 56px 0 24px; text-align: center; }
.gh-contact h1 { font-size: clamp(32px, 3vw, 54px); }
.gh-contact__grid {
	list-style: none; margin: 32px auto 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.gh-contact__card {
	background: var(--footer-bg);
	border-top: 4px solid var(--green);
	padding: 28px 18px;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gh-contact__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.gh-contact__icon svg { width: 22px; height: 22px; fill: #fff; }
.gh-contact__label { font-family: var(--sans); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--muted); }
.gh-contact__value { font-family: var(--sans); font-size: 18px; color: var(--text-dark); line-height: 1.4; }
a.gh-contact__value { color: var(--navy); }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; list-style: none; margin: 0; padding: 0; text-align: center; font-family: var(--sans); font-weight: 300; }
.team img { width: 100%; max-width: 260px; margin: 0 auto 1em; border-radius: 2px; }
.team .name { display: block; color: #000; font-size: 22px; }
.team .title { display: block; color: var(--muted); }

/* Legal pages */
.legal { max-width: 900px; }
.legal h1 { font-size: clamp(30px, 2.6vw, 44px); margin-bottom: .8em; }
.legal p, .legal li { color: var(--text-dark); font-size: 15px; }
.legal p { margin: 0 0 1em; }
.legal ul { list-style: disc; margin: 0 0 1em 1.4em; padding: 0; }
.legal ol { list-style: decimal; margin: 0 0 1em 1.4em; padding: 0; }
.legal li { margin-bottom: .5em; }
.legal a { text-decoration: underline; word-break: break-word; }
.legal table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 1em 0 1.5em; box-shadow: 0 0 1px 1px rgba(0, 0, 0, .1); }
.legal th, .legal td { border: 1px solid #c8c8c8; padding: .5rem; vertical-align: top; text-align: left; font-size: 14px; }
.legal th { background: #bedcfa; text-transform: uppercase; border-bottom: 2px solid #323264; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); flex-shrink: 0; }
.site-footer .wrap { padding-top: 40px; }
.footer-logo img { width: 360px; margin-bottom: 32px; }
.footer-menu { border-top: 1px solid var(--rule); }
.footer-menu ul { list-style: none; margin: 0; padding: 12px 0 24px; display: flex; flex-wrap: wrap; }
.footer-menu a { display: block; padding: 10px 20px 10px 0; font-family: var(--sans); font-size: 16px; color: var(--muted); }
.footer-menu a:hover { color: #555; }
.copyright { font-family: var(--sans); font-size: 13px; color: var(--muted); padding: 0 0 28px; margin: 0; }
.home .site-footer { display: none; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav a { padding: 18px 12px; font-size: 17px; }
	.site-logo img { width: 230px; }
	.hphone { font-size: 16px; padding: 10px 16px; }
	.gh-contact__grid, .team { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
	body { font-size: 15px; }
	.header-bar { display: none; }
	.mobile-nav { display: block; }
	.mobile-nav summary {
		list-style: none;
		display: flex; align-items: center; gap: 14px;
		padding: 12px 16px; cursor: pointer;
	}
	.mobile-nav summary::-webkit-details-marker { display: none; }
	.mobile-nav .burger { width: 26px; height: 18px; display: grid; align-content: space-between; flex: 0 0 auto; }
	.mobile-nav .burger span { display: block; height: 2px; background: var(--text); }
	.mobile-nav details[open] .burger span:nth-child(2) { opacity: 0; }
	.mobile-nav .logo-sm { flex: 1 1 auto; }
	.mobile-nav .logo-sm img { width: 200px; }
	.mobile-nav ul { list-style: none; margin: 0; padding: 0 0 8px; border-top: 1px solid var(--rule); }
	.mobile-nav ul a { display: block; padding: 12px 20px; font-family: var(--sans); font-size: 18px; color: var(--text); border-bottom: 1px solid #eee; }
	.mobile-phone { display: flex; justify-content: space-between; background: var(--green); color: #000; font-family: var(--sans); font-size: 15px; padding: 8px 16px; }
	.mobile-phone a { color: #000; }

	.home .site-header { position: relative; }
	.hero { min-height: 70vh; }
	.hero .wrap { padding-top: 48px; padding-bottom: 120px; }
	.hero-links { right: 0; left: 0; }

	.banner--right .wrap { text-align: left; }
	.banner--split .wrap { display: block; }
	.banner--split .banner-copy { border-left: 0; padding-left: 0; margin-top: 1em; }

	.two-col, .faq, .links-list { grid-template-columns: 1fr; }
	.two-col > div, .two-col > div + div { padding: 0; }
	.two-col--divided > div + div { border-left: 0; border-top: 1px solid var(--green); padding-top: 1.5em; }
	.section { padding: 44px 0; }
	.footer-logo img { width: 240px; }
}

@media (max-width: 520px) {
	.gh-contact__grid, .team { grid-template-columns: 1fr; }
	.wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.carousel { scroll-behavior: auto; }
}

@media print {
	.site-header, .mobile-nav, .hero-links, .footer-menu { display: none; }
	.banner, .hero { background: none !important; color: #000; min-height: 0; }
	.banner-title, .hero .banner-copy { color: #000; text-shadow: none; }
}

/* ---------- Page backgrounds & helpers ---------- */
.bg-home { background-image: url("../img/home-pg.jpg"); }
.bg-services { background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3)), url("../img/banner-services.jpg"); }
.bg-resources { background-image: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), url("../img/banner-resources.jpg"); }
.hero-call { color: #fff; text-decoration: underline; font-weight: 700; }
.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;
}
.home main { display: flex; flex-direction: column; }
.home .hero { flex: 1 0 auto; }
