/**
 * Styles for the Services Page template (page-services.php).
 *
 *
 *
 */

.academy-services-page {
	--services-container-width: 1180px;

	color: var(--color-text);
	font-family: var(--font-body);
}

.academy-services-page *,
.academy-services-page *::before,
.academy-services-page *::after {
	box-sizing: border-box;
}

.academy-services-page .container {
	max-width: var(--services-container-width);
	margin-inline: auto;
	padding-inline: 24px;
}

.academy-services-page h1,
.academy-services-page h2,
.academy-services-page h3,
.academy-services-page h4 {
	font-family: var(--font-heading);
}

/* -------------------------------------------------------------------- */
/* Hero                                                                  */
/* -------------------------------------------------------------------- */

.services-hero {
	position: relative;
	isolation: isolate;
	color: var(--color-white);
	text-align: center;
	padding: 140px 0 110px;
	background-color: var(--color-navy); /* fallback while image loads / if none set */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* Flat navy overlay on top of the background image (set inline via
   the template's `style="background-image:url(...)"` attribute). */
.services-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 45, 97, 0.75); /* rgba of --color-navy */
	z-index: 1;
}

.services-hero__content {
	position: relative;
	z-index: 2;
}

.services-hero__title {
	font-family: var(--font-heading);
	font-size: var(--h1-size);
	font-weight: var(--h1-weight);
	line-height: var(--h1-line-height);
    color: var(--color-white);
	margin: 0 0 16px;
}

.services-hero__subtitle {
	max-width: 720px;
	margin: 0 auto 28px;
	font-family: var(--font-body);
	font-size: var(--p-size);
	font-weight: var(--p-weight);
	line-height: var(--p-line-height);
	color: rgba(255, 255, 255, 0.9);
}

.services-hero__media {
	max-width: var(--services-container-width);
	margin: 40px auto 0;
	padding-inline: 24px;
}

.services-hero__media img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-lg);
	display: block;
	box-shadow: var(--shadow-md);
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */
.top-button .btn--ghost{
    background-color: var(--color-white);

}
.top-button .btn--ghost:hover{
    background-color: var(--color-blue);

}

/* -------------------------------------------------------------------- */
/* Section shell                                                        */
/* -------------------------------------------------------------------- */

.services-section {
	padding: 72px 0;
}

.digital-services {
	background-color: var(--color-light);
}

.services-section__header {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
}

.services-section__header h2 {
	font-family: var(--font-heading);
	font-size: var(--h2-size);
	font-weight: var(--h2-weight);
	line-height: var(--h2-line-height);
	margin: 0 0 14px;
	color: var(--color-navy);
}

.services-section__header p {
	font-family: var(--font-body);
	color: var(--color-muted);
	font-size: var(--p-size);
	font-weight: var(--p-weight);
	line-height: var(--p-line-height);
	margin: 0;
}

/* -------------------------------------------------------------------- */
/* Service cards / grid                                                 */
/* -------------------------------------------------------------------- */

.services-grid--4col {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(4, 1fr);
}

.services-grid--3col
 {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

.service-card:hover {
	/* transform: translateY(-4px); */
	box-shadow: var(--shadow-md);
	border: 1px solid var(--color-border);
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.service-card__icon {
	width: 56px;
	height: 56px;
	object-fit: contain;
	margin-bottom: 18px;
}

.service-card__title {
	font-family: var(--font-heading);
	font-size: var(--h3-size);
	font-weight: var(--h3-weight);
	line-height: var(--h3-line-height);
	margin: 0 0 12px;
	color: var(--color-navy);
}

.service-card__description {
	font-family: var(--font-body);
	color: var(--color-muted);
	font-size: var(--p-sm-size);
	font-weight: var(--p-sm-weight);
	line-height: var(--p-sm-line-height);
	margin: 0 0 16px;
	flex-grow: 1;
}

.service-card__list {
	margin: 0 0 20px;
	padding-left: 20px;
	color: var(--color-text);
	font-size: var(--p-sm-size);
	line-height: var(--p-sm-line-height);
}

.service-card__list li {
	margin-bottom: 6px;
}

.service-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-ui);
	font-weight: 600;
	font-size: var(--p-sm-size);
	color: var(--color-blue);
	text-decoration: none;
	margin-top: auto;
	transition: var(--transition);
}

.service-card__link:hover,
.service-card__link:focus {
	color: var(--color-navy);
	text-decoration: underline;
}

.service-card--digital:hover {
	border-top: 4px solid var(--color-blue);
}

.digital-services__attribution {
	text-align: center;
	margin-top: 40px;
	color: var(--color-muted);
	font-size: var(--p-sm-size);
	line-height: var(--p-sm-line-height);
}

.digital-services__attribution a {
	color: var(--color-blue);
	font-weight: 600;
	text-decoration: none;
}

.digital-services__attribution a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------- */
/* CTA                                                                   */
/* -------------------------------------------------------------------- */

.services-cta {
	background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue) 100%);
	color: var(--color-white);
	text-align: center;
}

.services-cta__inner h2 {
	font-family: var(--font-heading);
	font-size: var(--h2-size);
	font-weight: var(--h2-weight);
	line-height: var(--h2-line-height);
	margin: 0 0 14px;
}

.services-cta__inner p {
	max-width: 600px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--font-body);
	font-size: var(--p-size);
	font-weight: var(--p-weight);
	line-height: var(--p-line-height);
}

.services-cta__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.services-cta .button--secondary {
	color: var(--color-white);
	border-color: var(--color-white);
}

.services-cta .button--secondary:hover,
.services-cta .button--secondary:focus {
	background-color: var(--color-white);
	color: var(--color-navy);
}

/* -------------------------------------------------------------------- */
/* Page content (editor content appended below sections)                */
/* -------------------------------------------------------------------- */

.services-page-content {
	padding-top: 0;
}

/* ======================================================================
   RESPONSIVE — same breakpoints as the token stylesheet
   ====================================================================== */

/* ── Large  1024px – 1279px ─── minor spacing tightening ── */
@media (min-width: 1024px) and (max-width: 1279px) {
	.services-hero {
		padding: 84px 0 64px;
	}

	.services-section {
		padding: 64px 0;
	}
}

/* ── Medium  768px – 1023px ─── 2-column grids ── */
@media (min-width: 768px) and (max-width: 1023px) {
	.academy-services-page .container {
		padding-inline: 20px;
	}

	.services-hero {
		padding: 72px 0 56px;
	}

	.services-section {
		padding: 56px 0;
	}

	.services-section__header {
		margin-bottom: 36px;
	}

	.services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
}

/* ── Small  480px – 767px ─── single column, stacked CTA ── */
@media (min-width: 480px) and (max-width: 767px) {
	.academy-services-page .container {
		padding-inline: 18px;
	}

	.services-hero {
		padding: 56px 0 44px;
	}

	.services-hero__media {
		padding-inline: 18px;
		margin-top: 28px;
	}

	.services-section {
		padding: 48px 0;
	}

	.services-section__header {
		margin-bottom: 28px;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.service-card {
		padding: 26px 22px;
	}

	.services-cta__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.services-cta__actions .button {
		text-align: center;
	}
}

/* ── Extra-Small  ≤ 479px ─── tightest spacing, full-width buttons ── */
@media (max-width: 479px) {
	.academy-services-page .container {
		padding-inline: 16px;
	}

	.services-hero {
		padding: 44px 0 36px;
	}

	.services-hero__media {
		padding-inline: 16px;
		margin-top: 24px;
	}

	.services-hero .button,
	.services-cta__actions .button {
		width: 100%;
	}

	.services-section {
		padding: 40px 0;
	}

	.services-section__header {
		margin-bottom: 24px;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.service-card {
		padding: 22px 18px;
	}

	.service-card__icon {
		width: 44px;
		height: 44px;
		margin-bottom: 14px;
	}

	.digital-services__attribution {
		margin-top: 28px;
	}
}

/* ── 2XL  ≥ 1536px ─── roomier hero on very wide screens ── */
@media (min-width: 1536px) {
	.academy-services-page {
		--services-container-width: 1320px;
	}

	.services-hero {
		padding: 195px 0;
	}

	.services-section {
		padding: 88px 0 35px;
	}
}



