/* Calgary brand-green overlay for the homepage hero photograph. */
.home .hero {
	background-image: linear-gradient(
		90deg,
		rgba(22, 74, 59, 0.98) 0%,
		rgba(22, 74, 59, 0.88) 34%,
		rgba(22, 74, 59, 0.30) 62%,
		rgba(22, 74, 59, 0.05) 100%
	), url('esl-hero.webp');
}

@media (max-width: 680px) {
	.home .hero {
		background-image: linear-gradient(
			rgba(22, 74, 59, 0.92),
			rgba(22, 74, 59, 0.74)
		), url('esl-hero.webp');
	}
}

/* Consistent, readable Helpful Guides cards on the homepage. */
.homepage-guides-grid {
	align-items: stretch;
}

.homepage-guide-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.homepage-guide-image {
	display: block;
	height: 190px;
	overflow: hidden;
	background: #e7eeeb;
}

.homepage-guide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.homepage-guide-card .card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.homepage-guide-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 10px;
	color: #667b76;
	font-size: 13px;
	font-weight: 700;
}

.homepage-guide-meta span::before {
	content: "•";
	margin-right: 14px;
}

.homepage-guide-card h3 {
	line-height: 1.3;
}

.homepage-guide-card p {
	margin: 4px 0 20px;
	color: #4f625f;
}

.homepage-guide-link {
	margin-top: auto;
	color: #126c66;
	font-weight: 800;
	text-decoration: none;
}

.homepage-guide-link:hover {
	text-decoration: underline;
}

/* Footer hierarchy and legal copy remain easy to scan. */
.site-footer .footer-grid {
	align-items: start;
}

.site-footer h3 {
	margin: 0 0 14px;
	font-size: 18px;
}

.site-footer li {
	margin: 8px 0;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-footer .legal {
	max-width: 1120px;
	color: #cbdad5;
	line-height: 1.7;
}

@media (max-width: 680px) {
	.homepage-guide-image {
		height: 210px;
	}

	.homepage-guide-meta span::before {
		display: none;
	}
}

/* Communities directory results-page polish. */
.directory-results .archive-tools {
	margin-bottom: 10px;
	padding: 16px;
	border: 1px solid #aebfbc;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(11,69,71,.08);
}

.directory-results .archive-tools .esl-search-form label {
	color: #173f3d;
	font-size: 13px;
}

.directory-results .archive-tools input,
.directory-results .archive-tools select {
	border-color: #829b96;
	color: #1c3330;
}

.directory-results .compare-selection-bar {
	bottom: 16px;
	max-width: 720px;
	margin: 24px auto 8px;
	padding: 14px 16px;
	border: 1px solid #9fb4b0;
	border-radius: 16px;
	box-shadow: 0 16px 38px rgba(11,69,71,.25);
}

.compare-selection-bar > div {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 7px 12px;
}

.compare-selection-count {
	color: #61756f;
	font-size: 12px;
	font-weight: 750;
}

.compare-selection-bar button:disabled {
	opacity: .48;
	cursor: not-allowed;
}

.directory-community-results .tag {
	padding: 4px 8px;
	border: 1px solid transparent;
	font-size: 10px;
	font-weight: 750;
}

.directory-community-results .tag.care-independent-living { background:#fff2d6; color:#715709; border-color:#f1d895; }
.directory-community-results .tag.care-retirement-living { background:#e4f1ff; color:#075ca8; border-color:#bdd9f6; }
.directory-community-results .tag.care-assisted-living { background:#e5f2ff; color:#07539a; border-color:#bedbf5; }
.directory-community-results .tag.care-memory-care { background:#eee3ff; color:#49377e; border-color:#d8c2f4; }
.directory-community-results .tag.care-long-term-care { background:#fde4e7; color:#92243a; border-color:#f3bcc5; }
.directory-community-results .tag.care-home-care { background:#e4f5ed; color:#267c70; border-color:#bde3d4; }

.directory-community-results .price-contact {
	padding: 5px 8px;
	border-radius: 6px;
	background: #eaf4f1;
	color: #0b605b;
	font-size: 12px;
}

.card-image-fallback {
	display: grid;
	height: 100%;
	place-items: center;
	align-content: center;
	gap: 8px;
	background: linear-gradient(135deg,#eaf3f0,#d9e8e4);
	color: #356861;
	text-decoration: none;
}

.card-image-fallback svg {
	width: 55px;
	height: 55px;
	fill: #6f9d96;
}

.card-image-fallback span {
	font-size: 11px;
	font-weight: 800;
}

.directory-results .pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7px;
}

.directory-results .pagination .page-numbers {
	display: grid;
	min-width: 38px;
	height: 38px;
	place-items: center;
	padding: 0 10px;
	border: 1px solid #b9c8c5;
	border-radius: 8px;
	background: #fff;
	color: #145f5b;
	font-weight: 800;
	text-decoration: none;
}

.directory-results .pagination .page-numbers.current,
.directory-results .pagination a.page-numbers:hover {
	border-color: #145f5b;
	background: #145f5b;
	color: #fff;
}

@media (max-width: 760px) {
	.directory-results .compare-selection-bar {
		bottom: 8px;
		margin-right: 8px;
		margin-left: 8px;
	}
}

/* Identical guide-card dimensions whether or not a post has an image. */
.posts-grid { grid-auto-rows:1fr; align-items:stretch; }
.posts-grid .guide-card { display:flex; flex-direction:column; height:100%; min-height:460px; }
.posts-grid { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; align-items:stretch; width:100%; }
.posts-grid .guide-card-media { display:block; flex:0 0 190px; height:190px; overflow:hidden; background:#e5efec; }
.posts-grid .guide-card-media img { display:block; width:100%; height:100%; object-fit:cover; }
.guide-card-fallback { display:grid; height:100%; place-items:center; align-content:center; gap:8px; background:linear-gradient(135deg,#e9f2ef,#d5e6e1); color:#326e66; }
.guide-card-fallback svg { width:58px; height:58px; fill:none; stroke:currentColor; stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.guide-card-fallback > span { font-size:12px; font-weight:800; }
.posts-grid .guide-card .card-body { display:flex; flex:1; flex-direction:column; padding:20px; }
.guide-card-meta { display:flex; gap:12px; margin-bottom:9px; color:#687b76; font-size:12px; font-weight:700; }
.guide-card-meta span::before { content:"•"; margin-right:12px; }
.posts-grid .guide-card h3 { display:-webkit-box; min-height:2.7em; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.35; }
.posts-grid .guide-card p { display:-webkit-box; min-height:4.8em; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.guide-card-link { margin-top:auto; font-weight:800; }
@media (max-width:980px) { .posts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:680px) { .posts-grid { grid-template-columns:minmax(0,1fr); } .posts-grid .guide-card { min-height:430px; } }

/* Remove the remaining Edmonton navy/blue from the Calgary directory page. */
.directory-results,
.directory-results p,
.directory-results .card-meta,
.directory-results .card-last-verified,
.directory-results .directory-count-row {
	color: #405c57;
}

.directory-results .directory-heading h1,
.directory-results .directory-heading h2,
.directory-results .directory-skyline,
.directory-results .card h3,
.directory-results .card h3 a,
.directory-results .price,
.directory-results .trusted-partners h2,
.directory-results .directory-ad-sidebar > h2 {
	color: #0b5f58;
}

.directory-results .directory-heading {
	border-bottom-color: #78a69d;
}

.directory-results .directory-view-toggle {
	border-color: #9cb7b1;
}

.directory-results .directory-view-toggle button {
	color: #0b5f58;
}

.directory-results .directory-view-toggle button.is-active {
	background: #0b6b63;
	color: #fff;
}

.directory-results .card-compare {
	border-color: #b4cbc6;
	background: #146e66;
	color: #fff;
}

.directory-results .tag,
.directory-results .tag.care-independent-living,
.directory-results .tag.care-retirement-living,
.directory-results .tag.care-assisted-living,
.directory-results .tag.care-memory-care,
.directory-results .tag.care-long-term-care,
.directory-results .tag.care-home-care {
	color: #175f58;
}

.directory-results .sponsor-disclosure {
	border-color: #c9ddd8;
	background: #edf6f3;
	color: #3f5f59;
}

/* Add Your Listing page: replace Edmonton blue with Calgary brand green. */
.esl-provider-page {
	background: #f3f7f4;
}

.esl-provider-hero {
	background: linear-gradient(125deg, #123e32, #1f6b55);
}

.esl-provider-hero > p:last-child {
	color: #e4f4ed;
}

.esl-plan-card.is-featured {
	border-color: #1f6b55;
}

.esl-plan-note,
.esl-featured-fields,
.esl-account-fields {
	background: #f0f7f3;
	border-color: #d4e6de;
}

.esl-plan-picker input:checked + span {
	border-color: #1f6b55;
	background: #edf6f2;
	box-shadow: 0 0 0 3px rgba(31, 107, 85, 0.10);
}

.esl-form-grid label {
	color: #29483d;
}

.esl-form-grid input:focus,
.esl-form-grid textarea:focus,
.esl-form-grid select:focus {
	outline-color: rgba(31, 107, 85, 0.16);
	border-color: #1f6b55;
}

.esl-account-signed-in a {
	color: #1f6b55;
}

/* Partner With Us application form. */
.csl-partner-application {
	margin-top: 36px;
	padding: 30px;
	border: 1px solid #d4e6de;
	border-radius: 16px;
	background: #f3f8f5;
}

.csl-partner-application-intro {
	margin-bottom: 24px;
}

.csl-partner-application-intro .eyebrow {
	color: #8b692a;
}

.csl-partner-application-intro h2 {
	margin: 4px 0 10px;
	color: #164a3b;
}

.csl-partner-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.csl-partner-form-grid label {
	font-weight: 750;
	color: #29483d;
}

.csl-partner-form-grid .wide {
	grid-column: 1 / -1;
}

.csl-partner-form-grid input,
.csl-partner-form-grid select,
.csl-partner-form-grid textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 12px;
	border: 1px solid #b9cfc6;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.csl-partner-form-grid input:focus,
.csl-partner-form-grid select:focus,
.csl-partner-form-grid textarea:focus {
	outline: 3px solid rgba(31,107,85,.15);
	border-color: #1f6b55;
}

.csl-partner-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 20px 0;
	font-size: 13px;
}

.csl-partner-consent input {
	margin-top: 4px;
	flex: 0 0 auto;
}

.csl-partner-honeypot {
	position: absolute !important;
	left: -9999px !important;
}

@media (max-width: 680px) {
	.csl-partner-application {
		padding: 22px 17px;
	}

	.csl-partner-form-grid {
		grid-template-columns: 1fr;
	}

	.csl-partner-form-grid .wide {
		grid-column: auto;
	}
}

/* Calgary-area city cards: two columns by three rows. */
.esl-cities-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 600px) {
	.esl-cities-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Community profiles use the Calgary green brand instead of Edmonton blue. */
.community-profile {
	--navy: #164a3b;
	--blue: #1f6b55;
	--ink: #263d35;
	--line: #d7e4df;
}

.community-profile .breadcrumbs a,
.community-profile .profile-tabs a,
.community-profile .profile-text-link,
.community-profile .profile-section-heading a,
.community-profile .feature-photo-link,
.community-profile .community-help-card a {
	color: #1f6b55;
}

.community-profile .profile-note,
.community-profile .community-help-card,
.community-profile .esl-claim-card {
	background: #edf6f2;
}

.community-profile .profile-note .esl-icon {
	fill: #4f806f;
}

.community-profile .service-category-grid li,
.community-profile .profile-description,
.community-profile .profile-sidebar h2 + p {
	color: #314b42;
}

/* Homepage readability and interaction polish. */
.hero .search-card {
	border: 1px solid #cbd8d2;
	box-shadow: 0 18px 42px rgba(11, 69, 71, .22);
}

.hero .esl-search-form.has-no-name {
	grid-template-columns: 1fr 1fr auto;
}

.hero .hero-quiz-link,
.hero .hero-quiz-link small {
	color: #3d514b;
}

.trust-shell {
	padding-bottom: 12px;
}

.trust-shell .trust-row {
	margin-bottom: 4px;
}

.home-steps {
	padding-top: 44px;
}

.home-steps .step-number {
	background: #dbece7;
	color: #0b4547;
	border: 1px solid #b9d3ca;
}

.featured-section .communities-grid {
	align-items: stretch;
}

.featured-section .card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	height: 100%;
}

.featured-section .card-image {
	height: 190px;
	flex: 0 0 190px;
}

.featured-section .card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.featured-section .card-bottom-row {
	margin-top: auto;
}

.card-compare {
	background: rgba(11, 69, 71, .88) !important;
	border-color: rgba(255, 255, 255, .7) !important;
	color: #fff !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .2) !important;
}

.google-photo-credit {
	background: rgba(0, 0, 0, .48);
	font-size: 8px;
	opacity: .82;
}

.esl-care-browse .care-type-card {
	border-color: #cfded8;
	box-shadow: 0 8px 24px rgba(11, 69, 71, .08);
}

.esl-care-browse .care-type-card:hover,
.esl-care-browse .care-type-card:focus-visible {
	transform: translateY(-4px);
	border-color: #2c7a6b;
	box-shadow: 0 16px 34px rgba(11, 69, 71, .16);
}

.esl-care-browse .care-type-card p {
	color: #354b45 !important;
}

.esl-care-browse .esl-care-icon {
	width: 58px;
	height: 58px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.home-provider-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin: 34px auto 0;
	padding: 20px 24px;
	max-width: 920px;
	border: 1px solid #cfded8;
	border-radius: 14px;
	background: #edf6f2;
}

.home-provider-callout div {
	display: grid;
	gap: 3px;
}

.home-provider-callout strong {
	color: #0b4547;
	font-size: 18px;
}

.home-provider-callout span {
	color: #3f5951;
}

.esl-city-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 92px;
	border-color: #cfded8 !important;
	box-shadow: 0 7px 20px rgba(11, 69, 71, .07);
	text-align: left !important;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.esl-city-card:hover,
.esl-city-card:focus-visible {
	transform: translateY(-3px);
	border-color: #2c7a6b !important;
	box-shadow: 0 13px 28px rgba(11, 69, 71, .14);
}

.esl-city-pin {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #dbece7;
	color: #0b4547;
	font-size: 17px;
}

.esl-city-copy {
	display: grid;
	gap: 3px;
}

.esl-city-count {
	color: #536b63;
	font-size: .85rem;
	font-weight: 500;
}

.esl-city-arrow {
	color: #1f6b55;
	font-size: 22px;
}

@media (max-width: 680px) {
	.home-provider-callout {
		align-items: stretch;
		flex-direction: column;
	}

	.home-provider-callout .btn {
		width: 100%;
	}
}

/* Keep the complete brand and mobile menu inside narrow phone screens. */
@media (max-width: 680px) {
	.site-header .container {
		width: calc(100% - 24px);
	}

	.site-header .header-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		height: 76px;
		gap: 8px;
	}

	.site-header .brand {
		min-width: 0;
		max-width: 100%;
		margin-right: 0;
		gap: 8px;
	}

	.site-header .brand-logo {
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
	}

	.site-header .brand .brand-name {
		display: block;
		min-width: 0;
		white-space: normal;
		font-size: 16px;
		line-height: 1.05;
	}

	.site-header .menu-toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		min-width: 58px;
		padding: 7px 2px;
	}

	.site-header .main-nav.is-open {
		top: 76px;
		max-height: calc(100vh - 76px);
	}
}

@media (max-width: 360px) {
	.site-header .brand .brand-name {
		font-size: 14px;
	}

	.site-header .menu-toggle-label {
		display: none;
	}

	.site-header .menu-toggle {
		min-width: 38px;
	}
}

/* Family-focused homepage message and conversion actions. */
.hero .hero-family-copy {
	max-width: 690px;
}

.hero .hero-family-copy > p {
	margin: 10px 0;
	font-size: 18px;
}

.hero .hero-family-copy ul {
	list-style: none;
	margin: 18px 0;
	padding: 0;
}

.hero .hero-family-copy li {
	position: relative;
	margin: 7px 0;
	padding-left: 28px;
	font-size: 17px;
	font-weight: 650;
}

.hero .hero-family-copy li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 900;
	color: #d9f2e7;
}

.hero .hero-clarity-line {
	font-weight: 700;
}

.hero-guidance-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0 4px;
}

.hero-guidance-actions .btn {
	min-width: 210px;
	border-color: rgba(255,255,255,.9);
}

.hero-chat-btn {
	background: #2c8279;
	color: #fff;
}

.hero-help-btn {
	background: transparent;
	color: #fff;
}

@media (max-width: 680px) {
	.home .hero {
		min-height: auto;
		padding: 42px 0 70px;
	}

	.hero h1 {
		font-size: 42px;
		line-height: 1.04;
	}

	.hero .hero-family-copy > p,
	.hero .hero-family-copy li {
		font-size: 17px;
	}

	.hero-guidance-actions {
		display: grid;
	}

	.hero-guidance-actions .btn {
		width: 100%;
	}

	.hero .esl-search-form.has-no-name {
		grid-template-columns: 1fr;
	}
}

/* Prominent homepage path into the six-question matching quiz. */
.home-match-section {
	padding: 36px 0 8px;
	background: #fff;
}

.home-match-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 32px 36px;
	border: 1px solid rgba(44,130,121,.32);
	border-radius: 18px;
	background: linear-gradient(125deg,#0f5d58,#2c8279);
	box-shadow: 0 18px 42px rgba(15,93,88,.18);
	color: #fff;
}

.home-match-copy { max-width: 800px; }
.home-match-box .eyebrow { margin: 0 0 5px; color: #cdeee8; }
.home-match-box h2 { margin: 0 0 7px; font: 700 clamp(31px,4vw,46px)/1.08 Georgia,serif; color: #fff; }
.home-match-box p { margin: 0; font-size: 17px; }
.home-match-benefits { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.home-match-benefits span { padding: 7px 12px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 750; }
.home-match-button { min-width: 190px; padding: 15px 22px; background: #fff; color: #0f5d58; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.home-match-button:hover { background: #f2fbf8; }

@media (max-width: 760px) {
	.home-match-section { padding-top: 26px; }
	.home-match-box { display: grid; padding: 27px 22px; }
	.home-match-benefits { display: grid; }
	.home-match-button { width: 100%; }
}
