/**
 * ExperiGreen Locations — shared styles for the state / metro / city templates
 * and the "Our Locations" directory page template.
 *
 * Enqueued by the EG Locations mu-plugin on eg_location singles.
 */

.eg-loc-wrap {
	--eg-green: #15803D;
	--eg-green-dark: #0e5c2b;
	--eg-orange: #FC932C;
	--eg-ink: #1f2937;
	--eg-muted: #6b7280;
	font-family: 'Lato', sans-serif;
	color: var(--eg-ink);
}

.eg-btn {
	display: inline-block;
	background: var(--eg-orange);
	color: #fff !important;
	font-size: 16px;
	font-weight: 800 !important;
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background .15s, transform .15s;
}
.eg-btn:hover { background: #e07f1a; transform: translateY(-1px); }

.eg-btn-ghost {
	background: transparent;
	color: var(--eg-green-dark) !important;
	border: 2px solid var(--eg-green);
	padding: 12px 30px;
}
.eg-btn-ghost:hover { background: var(--eg-green); color: #fff !important; }

/* ── Breadcrumbs ─────────────────────────────────────────── */

.eg-loc-crumbs {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px 0;
	font-size: 14px;
	color: var(--eg-muted);
}
.eg-loc-crumbs a { color: var(--eg-green) !important; font-weight: 700; text-decoration: none; }
.eg-loc-crumbs a:hover { text-decoration: underline; }
.eg-loc-crumbs span[aria-current] { color: var(--eg-ink); font-weight: 700; }
.eg-loc-crumbs .sep { margin: 0 8px; opacity: .6; }

/* ── Hero ────────────────────────────────────────────────── */

.eg-loc-hero { position: relative; background-size: cover; background-position: center; }
.eg-loc-hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(7,46,21,.92) 0%, rgba(14,92,43,.82) 45%, rgba(14,92,43,.55) 100%);
}
.eg-loc-hero-inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 72px 24px;
	display: flex;
	align-items: center;
	gap: 48px;
	flex-wrap: wrap;
}
.eg-loc-hero-copy { flex: 1.2; min-width: 300px; }
.eg-loc-hero-copy h1 { color: #fff; font-size: 44px; font-weight: 800; margin: 0 0 16px; }
.eg-loc-hero-copy p { color: #d1fae5; font-size: 18px; line-height: 1.6; margin: 0 0 28px; max-width: 560px; }
.eg-loc-hero-eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.15);
	color: #d1fae5;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.eg-loc-hero-form { flex: 1; min-width: 320px; max-width: 460px; }
.eg-loc-hero-form .eg-form-card {
	background: #fff;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* ── Intro band ──────────────────────────────────────────── */

.eg-loc-intro { max-width: 900px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.eg-loc-intro h2 { font-size: 32px; font-weight: 800; color: var(--eg-green-dark); margin: 0 0 16px; }
.eg-loc-intro p { font-size: 17px; line-height: 1.7; color: var(--eg-ink); }
.eg-loc-intro a { color: var(--eg-green); font-weight: 700; }

/* ── Sticky in-page nav ──────────────────────────────────── */

.eg-loc-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 12px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.eg-loc-nav a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f3f4f6;
	color: var(--eg-ink) !important;
	font-size: 14px;
	font-weight: 700 !important;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.eg-loc-nav a:hover { background: var(--eg-green); color: #fff !important; }

/* ── Sections ────────────────────────────────────────────── */

.eg-loc-main { max-width: 1200px; margin: 0 auto; padding: 24px; }
.eg-loc-section { padding: 48px 0; scroll-margin-top: 80px; }
.eg-loc-section + .eg-loc-section { border-top: 1px solid #e5e7eb; }
.eg-loc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eg-loc-head h2 { font-size: 30px; font-weight: 800; color: var(--eg-green-dark); margin: 0; }
.eg-loc-head h2 a { color: inherit !important; text-decoration: none; }
.eg-loc-head h2 a:hover { color: var(--eg-green) !important; }

.eg-loc-phone {
	font-size: 17px;
	font-weight: 800;
	color: var(--eg-ink) !important;
	text-decoration: none;
	white-space: nowrap;
}
.eg-loc-phone:hover { color: var(--eg-green) !important; }
.eg-loc-phone svg { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; fill: var(--eg-orange); }

.eg-loc-desc { font-size: 16px; line-height: 1.6; color: var(--eg-muted); max-width: 760px; margin: 10px 0 0; }
.eg-loc-body { display: flex; gap: 32px; margin-top: 24px; flex-wrap: wrap; }
.eg-loc-map { flex: 1.4; min-width: 320px; }
.eg-loc-map iframe { width: 100%; height: 360px; border: 0; border-radius: 12px; }
.eg-loc-side { flex: 1; min-width: 260px; }
.eg-loc-side h3 {
	font-size: 16px;
	font-weight: 800;
	color: var(--eg-ink);
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ── City / metro chips ──────────────────────────────────── */

.eg-loc-cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.eg-loc-cities a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: var(--eg-green-dark) !important;
	font-size: 14px;
	font-weight: 700 !important;
	text-decoration: none;
	transition: background .15s, color .15s;
}
.eg-loc-cities a:hover { background: var(--eg-green); border-color: var(--eg-green); color: #fff !important; }
.eg-loc-cities span {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	color: var(--eg-muted);
	font-size: 14px;
	font-weight: 700;
}

/* ── Metro cards (state template) ────────────────────────── */

.eg-loc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 8px; }
.eg-loc-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	background: #fff;
	transition: box-shadow .15s, transform .15s;
}
.eg-loc-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.eg-loc-card h3 { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.eg-loc-card h3 a { color: var(--eg-green-dark) !important; text-decoration: none; }
.eg-loc-card h3 a:hover { color: var(--eg-green) !important; }
.eg-loc-card p { font-size: 15px; line-height: 1.6; color: var(--eg-muted); margin: 0 0 14px; }
.eg-loc-card-meta { font-size: 14px; color: var(--eg-muted); margin: 0 0 14px; }

/* ── City detail ─────────────────────────────────────────── */

.eg-loc-detail { max-width: 1200px; margin: 0 auto; padding: 48px 24px; display: flex; gap: 40px; flex-wrap: wrap; }
.eg-loc-detail-main { flex: 1.5; min-width: 320px; }
.eg-loc-detail-main h2 { font-size: 28px; font-weight: 800; color: var(--eg-green-dark); margin: 0 0 16px; }
.eg-loc-detail-main p { font-size: 16px; line-height: 1.7; color: var(--eg-ink); }
.eg-loc-detail-side { flex: 1; min-width: 260px; }
.eg-loc-detail-side .eg-loc-panel {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	background: #f9fafb;
}
.eg-loc-detail-side h3 {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin: 0 0 14px;
	color: var(--eg-ink);
}

/* ── CTA band ────────────────────────────────────────────── */

.eg-loc-cta { background: #f0fdf4; border-top: 1px solid #e5e7eb; }
.eg-loc-cta.has-deco { background-repeat: no-repeat; background-position: right center; background-size: auto 100%; }
.eg-loc-cta-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.eg-loc-cta-inner h2 { font-size: 34px; font-weight: 800; color: var(--eg-ink); margin: 0 0 24px; }
.eg-loc-cta-inner h2 i { color: var(--eg-green); }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 900px) {
	.eg-loc-hero-form { max-width: 100%; }
}

@media (max-width: 600px) {
	.eg-loc-hero-copy h1 { font-size: 32px; }
	.eg-loc-hero-inner { padding: 48px 16px; gap: 28px; }
	.eg-loc-intro h2 { font-size: 26px; }
	.eg-loc-map iframe { height: 280px; }
	.eg-loc-cta { background-image: none !important; }
	.eg-loc-cta-inner h2 { font-size: 26px; }
	.eg-loc-detail { padding: 32px 16px; gap: 28px; }
}
