/*
 * Fence blueprint design layer (Drive "Fence Installation & Repair Website Template", Mesquite Fence Pros mockup).
 * Loads after main.css. Colors come from the theme mods (--navy = brand green, --deep = dark green, --orange).
 */
:root {
	--green-bright: #5cc43c;
	--green-soft: #eaf5ea;
	--ref-radius: .6rem;
	--container: 82.5rem; /* 1320px */
}

body { background: #f6f8f5; }
.container { max-width: var(--container); }

/* ---------- Top trust bar (70px) ---------- */
.topbar { background: var(--deep); color: #fff; font-size: .82rem; font-weight: 600; }
.topbar__row { justify-content: center; gap: 2.5rem; padding: .7rem 0; flex-wrap: wrap; }
.topbar__group { gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.topbar .icon { color: var(--green-bright); }

/* ---------- Header (90px) ---------- */
.site-header { background: #fff; box-shadow: 0 2px 14px rgba(14, 59, 31, .1); }
.header-bar { min-height: 5.6rem; }
.site-nav a { font-weight: 600; font-size: .9rem; color: var(--deep); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--navy); border-bottom: 2px solid var(--navy); }
.brand__mark { background: var(--deep); color: #fff; }
.brand__primary { color: var(--deep); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.brand__secondary { color: var(--navy); font-weight: 800; text-transform: uppercase; }
.header-cta { gap: 0; }
.ref-callbox {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	background: var(--orange);
	color: #fff;
	padding: .65rem 1.15rem;
	border-radius: .45rem;
	text-decoration: none;
	box-shadow: 0 10px 22px -12px var(--orange-glow);
	transition: background .18s ease;
}
.ref-callbox:hover { background: var(--orange-dark); color: #fff; }
.ref-callbox .icon { width: 1.9rem; height: 1.9rem; }
.ref-callbox small { display: block; font-size: .72rem; font-weight: 600; opacity: .95; }
.ref-callbox strong { display: block; font-size: 1.35rem; line-height: 1.1; font-weight: 800; }

/* ---------- Hero (600px) ---------- */
.hero { padding: 3rem 0 3.25rem; min-height: 37.5rem; }
.hero__bg {
	background-image:
		linear-gradient(90deg, rgba(8, 26, 14, .9) 0%, rgba(8, 26, 14, .72) 45%, rgba(8, 26, 14, .2) 100%),
		var(--hero-image, linear-gradient(160deg, #1d4d2b, #0b2414 70%));
}
.hero .kicker { color: var(--green-bright); font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .4rem; }
.hero h1 {
	color: #fff;
	text-transform: uppercase;
	font-weight: 900;
	font-size: clamp(2.8rem, 5.6vw, 4.75rem);
	line-height: .95;
	letter-spacing: -.01em;
	margin-bottom: .6rem;
}
.hero h1 .hero__mark { display: block; color: var(--green-bright); background: none; -webkit-background-clip: initial; background-clip: initial; }
.hero h1 .hero__city { display: block; color: var(--green-bright); font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; margin-bottom: .45rem; }
.hero__tagline { color: #fff; font-size: 1.3rem; font-weight: 800; margin: 0 0 .55rem; }
.hero__lede { color: #e5e7eb; max-width: 36rem; }
.hero .checklist li { color: #fff; font-weight: 600; }
.hero .checklist .icon { background: var(--green-bright); color: #fff; border-radius: 999px; padding: .15rem; }
.hero__actions { gap: .9rem; }
.hero__actions .btn { padding: .95rem 1.5rem; font-size: 1.05rem; font-weight: 800; border-radius: .45rem; }
.btn-green { background: var(--navy); color: #fff; border: 2px solid var(--green-bright); }
.btn-green:hover { background: var(--deep); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); }
.btn-outline-light:hover { background: #fff; color: var(--deep); }

/* Hero form card */
.hero .form-card { background: #fff; border-radius: var(--ref-radius); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); overflow: hidden; }
.hero .form-card__head { background: #fff; color: var(--deep); border-bottom: 1px solid #e5e7eb; text-align: center; }
.hero .form-card__head h2 { color: var(--deep); font-size: 1.25rem; }
.hero .form-card__head p { color: #374151; font-weight: 600; }
.lead-progress span { color: var(--navy); font-weight: 700; }
.lead-progress__bar { background: #e5e7eb; }
.lead-progress__bar i { background: var(--navy); }
.service-pick__card { border: 1.5px solid #e5e7eb; border-radius: .5rem; text-align: center; }
.service-pick__card.is-selected,
.service-pick__card:hover { border-color: var(--orange); background: #fff7f2; }
.service-pick__icon .icon { color: var(--orange); }
.hero .lead-form .btn-primary { font-size: 1.05rem; padding: .9rem; }

/* ---------- Trust bar under hero (120px) ---------- */
.feature-strip { background: #fff; border-bottom: 1px solid #e5e7eb; }
.feature-grid { padding: 1.6rem 0; }
.feature__icon { background: transparent; color: var(--deep); border: 0; width: 3rem; height: 3rem; }
.feature__icon .icon { width: 2.6rem; height: 2.6rem; stroke-width: 1.6; }
.feature + .feature { border-left: 1px solid #e5e7eb; padding-left: 1.5rem; }
@media (max-width: 960px) { .feature + .feature { border-left: 0; padding-left: 0; } }

/* ---------- Services (420px) ---------- */
#services { padding: 3rem 0 2.5rem; }
.section-heading .kicker { color: var(--navy); font-weight: 800; letter-spacing: .06em; }
.section-heading h2 { color: var(--deep); }
#services .card-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.service-card { border-radius: var(--ref-radius); background: #fff; text-align: center; border: 1px solid #e5e7eb; }
.service-card__media { height: 10.5rem; background: var(--green-soft); }
.service-card__fallback { display: grid; place-items: center; color: var(--navy); }
.service-card__badge {
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--navy);
	color: #fff;
	border: 3px solid #fff;
	width: 3.6rem;
	height: 3.6rem;
}
.service-card__body { padding-top: 2.4rem; }
.service-card__body h3,
.service-card__body h2 { color: var(--deep); }
.service-card .text-link { color: var(--orange); text-transform: uppercase; font-weight: 800; font-size: .85rem; letter-spacing: .03em; justify-content: center; }

/* ---------- Why / Process / Areas row (320px) ---------- */
.ref-proof { padding: 1.5rem 0 2.5rem; }
.ref-proof__grid { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .ref-proof__grid { grid-template-columns: 1fr 1.5fr 1.15fr; align-items: stretch; } }
.ref-why,
.ref-steps,
.ref-areas { border-radius: var(--ref-radius); padding: 1.5rem 1.6rem; }
.ref-proof h2 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 1rem; }
.ref-why { background: var(--deep); color: #fff; }
.ref-why h2 { color: #fff; }
.ref-why h2 span { display: block; }
.ref-why__list,
.ref-areas__list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .55rem; }
.ref-why__list li,
.ref-areas__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.ref-why__list .icon { flex: none; width: 1.35rem; height: 1.35rem; padding: .2rem; border-radius: 999px; background: var(--orange); color: #fff; }
.ref-steps { background: #fff; border: 1px solid #e5e7eb; text-align: center; }
.ref-steps h2 { color: var(--deep); }
.ref-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (min-width: 640px) { .ref-steps__list { grid-template-columns: repeat(4, 1fr); } }
.ref-steps__list li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .82rem; color: #4b5563; }
.ref-steps__list strong { color: var(--deep); font-size: .95rem; line-height: 1.2; }
.ref-steps__num { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; }
.ref-steps__icon .icon { width: 2.4rem; height: 2.4rem; color: var(--deep); }
@media (min-width: 640px) {
	.ref-steps__list li + li::before { content: "→"; position: absolute; left: -.95rem; top: 3.6rem; color: var(--deep); font-weight: 800; }
}
.ref-areas { background: #fff; border: 1px solid #e5e7eb; }
.ref-areas h2 { color: var(--deep); font-size: 1.1rem; }
.ref-areas__body { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ref-areas__list .icon { flex: none; width: 1.1rem; height: 1.1rem; color: var(--navy); }
.ref-areas__list a { color: inherit; }
.ref-areas__map { border-radius: .45rem; overflow: hidden; min-height: 11rem; border: 1px solid #e5e7eb; }
.ref-areas__map iframe { width: 100%; height: 100%; min-height: 11rem; border: 0; display: block; }
.ref-areas .btn-green { border-color: var(--navy); font-size: .85rem; text-transform: uppercase; }

/* ---------- FAQ + CTA row (260px) ---------- */
.ref-bottom { padding: 1rem 0 3rem; }
.ref-bottom__grid { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .ref-bottom__grid { grid-template-columns: 1.8fr 1fr; align-items: start; } }
.ref-faq h2 { color: var(--deep); font-size: 1.6rem; margin: 0 0 1rem; }
.ref-faq h2 span { color: var(--navy); }
.ref-faq__item { background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: .85rem 1.1rem; margin-bottom: .6rem; }
.ref-faq__item summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.ref-faq__item p { margin: .55rem 0 0; color: #4b5563; }
.ref-cta { background: var(--deep); color: #fff; border-radius: var(--ref-radius); padding: 1.6rem; text-align: center; position: sticky; top: 7rem; }
.ref-cta h2 { color: #fff; font-size: 1.45rem; margin: 0 0 .35rem; }
.ref-cta p { color: #d1d5db; margin: 0 0 1.1rem; }
.ref-cta .btn { justify-content: center; margin-bottom: .4rem; font-size: 1.1rem; }
.ref-cta__or { display: block; margin: .3rem 0 .6rem; color: #d1d5db; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--deep)); }
.related-list a,
.text-link { color: var(--navy); }

/* ---------- Footer (280px) ---------- */
.site-footer { background: var(--deep); }
.site-footer .footer-heading { color: #fff; }
.mobile-bar .btn-navy { background: var(--navy); }

/* Fixes after the first staging review */
.hero .form-card .form-card__head h2 { color: var(--deep) !important; }
.service-card[class*="accent-"] .service-card__media { background: linear-gradient(160deg, var(--navy), var(--deep)); }
.service-card[class*="accent-"] .service-card__fallback { background: linear-gradient(160deg, var(--navy), var(--deep)); color: rgba(255, 255, 255, .35); }

/* Consent box (Legion skill): unchecked by default, 44px touch target */
.field--consent { margin: .35rem 0 .9rem; }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .78rem; line-height: 1.45; color: #4b5563; font-weight: 400; cursor: pointer; min-height: 2.75rem; }
.consent input { flex: none; width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; accent-color: var(--navy); }
.consent a { color: var(--navy); text-decoration: underline; }

/* Footer legal row (Privacy Policy, Terms, Disclosure, Sitemap): the base gray was unreadable on dark green */
.footer-base { color: rgba(255, 255, 255, .8); }
.footer-legal { flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-legal a { color: #fff; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.footer-legal a:hover { color: var(--green-bright); text-decoration-color: currentColor; }
