/*
 * Homepage-only styles — pairs with wordpress-child-theme/front-page.php.
 * Loaded only on the front page, see functions-enqueue-snippet.php.
 * Buttons, service cards, and location cards live in shared.css instead
 * (single-store.php reuses them) — this file only has sections unique
 * to the homepage.
 *
 * Colors are read from Avada's global color CSS variables first
 * (Theme Options > Global Options > Colors sets --awb-color1..8 on
 * :root site-wide on an active Avada install), with a Grease Monkey
 * red/black/white fallback in case those variables aren't present.
 * Check Theme Options before assuming the fallback values are right.
 */

#gm-home > section > p:first-of-type,
#gm-home > section > h2 + p {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 32px;
	color: var(--gm-gray-md);
}

/* Hero */
.gm-hero {
	background: var(--gm-black);
	color: var(--gm-white);
	text-align: center;
	border-radius: var(--gm-radius);
}
.gm-hero__headline {
	font-size: 2.75rem;
	color: var(--gm-white);
}
.gm-hero__tagline {
	font-size: 1.25rem;
	color: var(--gm-red);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 32px;
}
.gm-hero__ctas {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.gm-hero .gm-btn--outline {
	color: var(--gm-white);
	border-color: var(--gm-white);
}
.gm-hero .gm-btn--outline:hover {
	background: var(--gm-white);
	color: var(--gm-black);
}

/* Promise (3 columns) */
.gm-promise {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gm-gap);
}
.gm-promise__col {
	background: var(--gm-gray-lt);
	border-radius: var(--gm-radius);
	padding: 32px 24px;
	text-align: center;
}
.gm-promise__col h2 {
	font-size: 1.25rem;
	color: var(--gm-red);
}

/* Careers */
.gm-careers {
	background: var(--gm-black);
	color: var(--gm-white);
	text-align: center;
	border-radius: var(--gm-radius);
}
.gm-careers__logo {
	max-width: 200px;
	margin: 0 auto 16px;
}
.gm-careers__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gm-gap);
	margin-top: 40px;
	text-align: left;
}
.gm-job-card {
	background: var(--gm-gray-dk);
	border-radius: var(--gm-radius);
	padding: 20px;
}
.gm-job-card h3 {
	font-size: 1.1rem;
	color: var(--gm-white);
}
.gm-job-card p {
	color: #b8b8b8;
	font-size: 0.9rem;
}
.gm-job-card a {
	color: var(--gm-red);
	font-weight: 600;
	text-decoration: none;
}

/* Why Choose */
.gm-why {
	background: var(--gm-gray-lt);
	text-align: center;
	border-radius: var(--gm-radius);
}
.gm-why__logo {
	max-width: 180px;
	margin: 0 auto 16px;
	/* Live site uses this same white/transparent logo here too (confirmed
	   in its raw HTML), on a background set via --awb-color7 — we can't
	   resolve that variable's real hex from here, so this section's
	   --gm-gray-lt fallback may make the logo hard to see. Recheck once
	   Theme Options access is available; don't add filter:invert() back
	   without confirming the real background is actually light. */
}
.gm-why__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gm-gap);
	margin-top: 32px;
}
.gm-why__item {
	background: var(--gm-white);
	border-radius: var(--gm-radius);
	padding: 24px 16px;
	border-top: 3px solid var(--gm-red);
}
.gm-why__item h3 {
	font-size: 1rem;
	margin: 0;
}

/* Locations grid (homepage-only layout; card styling itself is shared.css) */
.gm-locations__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: var(--gm-gap);
}
.gm-locations__state h3 {
	font-size: 1.1rem;
	color: var(--gm-red);
	border-bottom: 2px solid var(--gm-red);
	padding-bottom: 8px;
}
.gm-locations__state ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Reviews */
.gm-reviews {
	text-align: center;
}
.gm-reviews__rating {
	font-weight: 700;
	color: var(--gm-red);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.05em;
}
.gm-reviews__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gm-gap);
	margin-bottom: 24px;
}
.gm-review-card {
	background: var(--gm-gray-lt);
	border-radius: var(--gm-radius);
	padding: 24px;
	margin: 0;
	text-align: left;
}
.gm-review-card p {
	font-style: italic;
}
.gm-review-card cite {
	display: block;
	margin-top: 12px;
	font-weight: 600;
	font-style: normal;
}

/* Rideshare offer */
.gm-rideshare {
	background: var(--gm-gray-lt);
	border-radius: var(--gm-radius);
	text-align: center;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* 3 CTA boxes */
.gm-cta-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gm-gap);
}
.gm-cta-box {
	background: var(--gm-black);
	color: var(--gm-white);
	border-radius: var(--gm-radius);
	padding: 32px 24px;
	text-align: center;
}
.gm-cta-box h3 {
	color: var(--gm-white);
	font-size: 1.15rem;
}
.gm-cta-box p {
	color: #b8b8b8;
	margin-bottom: 20px;
}

/* Learning Center */
.gm-learning {
	text-align: center;
}
.gm-learning__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gm-gap);
	margin-bottom: 32px;
}
.gm-article-card {
	display: block;
	text-decoration: none;
	color: var(--gm-gray-dk);
	border-radius: var(--gm-radius);
	overflow: hidden;
	border: 1px solid #e2e2e2;
}
.gm-article-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
.gm-article-card h3 {
	font-size: 1rem;
	margin: 16px;
	text-align: left;
}
.gm-learning__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.gm-learning__categories a {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid #d8d8d8;
	color: var(--gm-gray-dk);
	text-decoration: none;
	font-size: 0.85rem;
}
.gm-learning__categories a:hover {
	border-color: var(--gm-red);
	color: var(--gm-red);
}

/* FAQ */
.gm-faq__category {
	max-width: 800px;
	margin: 0 auto 32px;
}
.gm-faq__category h3 {
	font-size: 1.2rem;
	color: var(--gm-red);
}
.gm-faq__item {
	border-bottom: 1px solid #e2e2e2;
	padding: 12px 0;
}
.gm-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}
.gm-faq__item summary::-webkit-details-marker {
	display: none;
}
.gm-faq__item summary::before {
	content: "+";
	display: inline-block;
	width: 1.2em;
	color: var(--gm-red);
	font-weight: 700;
}
.gm-faq__item[open] summary::before {
	content: "\2212";
}
.gm-faq__item p {
	margin: 12px 0 0 1.2em;
	color: var(--gm-gray-md);
}
.gm-faq__accordion {
	margin-top: 16px;
}

/* Bottom CTA */
.gm-bottom-cta {
	background: var(--gm-black);
	color: var(--gm-white);
	text-align: center;
	border-radius: var(--gm-radius);
}
.gm-bottom-cta__logo {
	max-width: 200px;
	margin: 0 auto 16px;
}
.gm-bottom-cta__tagline {
	color: var(--gm-red);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.gm-bottom-cta__benefits {
	list-style: none;
	margin: 24px auto 32px;
	padding: 0;
	max-width: 480px;
	text-align: left;
}
.gm-bottom-cta__benefits li {
	padding: 8px 0 8px 28px;
	position: relative;
	color: #d8d8d8;
}
.gm-bottom-cta__benefits li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--gm-red);
	font-weight: 700;
}

/* ============================================================ */
/* Responsive                                                    */
/* ============================================================ */
@media (max-width: 992px) {
	.gm-careers__grid,
	.gm-why__grid,
	.gm-locations__grid,
	.gm-reviews__grid,
	.gm-cta-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.gm-hero__headline {
		font-size: 2rem;
	}
	.gm-promise,
	.gm-careers__grid,
	.gm-why__grid,
	.gm-locations__grid,
	.gm-reviews__grid,
	.gm-cta-row,
	.gm-learning__grid {
		grid-template-columns: 1fr;
	}
}
