/*
 * Home page sections, the 404 and search pages, the HTML sitemap, articles and Easy Read.
 * Page intro and section scaffolding (.fc-page-intro, .fc-page-section) is in components.css.
 * Colours only from --fc-* aliases. No dark surfaces here, so the default focus tokens apply.
 */

/* ---------- Home: consecutive white sections share a hairline, not a double gap ---------- */

.fc-home > .fc-page-section:not(.fc-page-section--band, .fc-home-strip) + .fc-page-section:not(.fc-page-section--band) {
	padding-top: 0;
}

.fc-home > .fc-page-section:not(.fc-page-section--band, .fc-home-strip) + .fc-page-section:not(.fc-page-section--band) > .fc-page-section__inner {
	padding-top: var(--fc-space-50);
	border-top: 1px solid var(--fc-line);
}

/* The blocks of the home page are full-bleed sections, so no flow gap between them. */
.fc-home > * {
	margin-block: 0;
}

/* ---------- Home: hero (after the Facebook cover) ---------- */

.fc-home-hero {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background-color: var(--fc-white);
}

/* The cover's faded dot grid down the left edge. */
.fc-home-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	z-index: -1;
	width: min(220px, 30%);
	pointer-events: none;
	background-color: var(--fc-indigo);
	opacity: 0.2;
	mask-image: url(../svg/dot-lattice.svg), linear-gradient(90deg, black 20%, transparent);
	mask-size: 22px 22px, 100% 100%;
	mask-repeat: repeat, no-repeat;
	mask-composite: intersect;
}

.fc-home-hero p,
.fc-home-hero h2 {
	margin: 0;
}

.fc-home-hero ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-home-hero a {
	text-decoration: none;
}

.fc-home-hero a:hover {
	text-decoration: underline;
}

.fc-home-hero__main {
	display: grid;
	gap: var(--fc-space-40);
	padding: var(--fc-space-40) var(--fc-gutter);
}

.fc-home-hero__body {
	display: grid;
	align-content: center;
	gap: var(--fc-space-20);
	min-width: 0;
}

.fc-home-hero__brand {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fc-space-20) var(--fc-space-40);
	padding-bottom: var(--fc-space-20);
	/* Grey rule with a short Ember lead-in. */
	border-bottom: 3px solid transparent;
	border-image: linear-gradient(90deg, var(--fc-ember) 120px, var(--fc-line) 120px) 1;
}

/* The header already shows the logo, so small screens skip the second one. */
.fc-home-hero__logo {
	display: none;
	width: 220px;
	height: auto;
}

.fc-home-hero__heading {
	margin-bottom: var(--fc-space-10) !important;
	color: var(--fc-ember-text);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.fc-home-hero__services li {
	position: relative;
	break-inside: avoid;
	padding: 2px 0 2px 28px;
}

.fc-home-hero__services li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 2px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--fc-ember);
}

.fc-home-hero__services a,
.fc-home-hero__dva {
	color: var(--fc-indigo);
}

.fc-home-hero__flag {
	color: var(--fc-ember-text);
}

.fc-home-hero__others {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fc-space-20);
	padding-top: var(--fc-space-20);
	border-top: 1px solid var(--fc-line);
}

.fc-home-hero__dva-label {
	margin-right: var(--fc-space-10);
	color: var(--fc-ember-text);
	font-weight: 700;
	letter-spacing: 0.3em;
}

.fc-home-hero__aged {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 0.5em;
	min-height: 44px;
	padding: 8px 20px;
	border-radius: var(--fc-radius-pill);
	background-color: var(--fc-indigo);
	color: var(--fc-white);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.fc-home-hero__all a {
	color: var(--fc-ember-text);
	font-weight: 600;
	text-decoration: underline;
}

.fc-home-hero__media {
	display: flex;
	justify-content: center;
}

.fc-home-hero .fc-circle {
	--fc-circle-size: 340px;
	--fc-ring: 12px;
}

/* Keeps both people in the square crop. */
.fc-home-hero .fc-circle > img {
	object-position: 58% 50%;
}

.fc-home-hero__band {
	--fc-focus-ring: var(--fc-white);
	--fc-focus-gap: var(--fc-indigo);
	--fc-focus-halo: var(--fc-white);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--fc-space-30) var(--fc-space-60);
	padding: var(--fc-space-40) var(--fc-gutter);
	border-top: 4px solid var(--fc-ember);
	background-color: var(--fc-indigo);
	color: var(--fc-white);
}

.fc-home-hero__band a {
	display: inline-block;
	color: var(--fc-white);
}

.fc-home-hero__phones li {
	display: flex;
	align-items: baseline;
	gap: var(--fc-space-20);
}

/* Large bold, so Amber on Indigo meets the large-text contrast ratio. */
.fc-home-hero__label {
	color: var(--fc-amber);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

html[data-contrast="high"] .fc-home-hero__label {
	color: var(--fc-white);
}

.fc-home-hero__phones .fc-home-hero__label {
	min-width: 5.5em;
}

.fc-home-hero__phones .fc-phone {
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.fc-home-hero__contact {
	overflow-wrap: anywhere;
}

@media (min-width: 600px) {
	.fc-home-hero__logo {
		display: block;
	}

	.fc-home-hero__services {
		columns: 2;
		column-gap: var(--fc-space-40);
	}
}

@media (min-width: 900px) {
	.fc-home-hero__contact {
		padding-left: var(--fc-space-60);
		border-left: 1px solid color-mix(in srgb, var(--fc-white) 35%, transparent);
	}
}

/* Wide screens: the photo sits to the right and runs off the edge, as on the cover. */
@media (min-width: 1100px) {
	.fc-home-hero__main {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		padding-right: 0;
		padding-left: max(var(--fc-gutter), calc((100% - 1320px) / 2));
	}

	.fc-home-hero .fc-circle {
		--fc-circle-size: clamp(360px, 30vw, 480px);
		width: var(--fc-circle-size);
	}

	.fc-home-hero__media {
		margin-right: -48px;
	}
}

/* ---------- Home: accreditation strip ---------- */

.fc-home-strip {
	padding-block: var(--fc-space-30);
	border-bottom: 1px solid var(--fc-line);
}

.fc-home-strip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fc-space-20) var(--fc-space-40);
}

.fc-home-strip__text {
	max-width: 52ch;
	margin: 0;
	font-weight: 600;
	color: var(--fc-indigo);
}

.fc-home-strip .fc-accreditation__logo {
	border: 1px solid var(--fc-line);
}

@media (min-width: 900px) {
	.fc-home-strip {
		padding-block: var(--fc-space-30);
	}
}

/* ---------- Home: how we can help ---------- */

.fc-home-help__grid,
.fc-home-reasons__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--fc-space-30);
	margin-top: var(--fc-space-40);
}

.fc-home-help__tile {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-10);
	overflow: hidden;
	padding: var(--fc-space-40) var(--fc-space-30) var(--fc-space-30);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* An Ember to Amber rule along the top, as on the brand posts. */
.fc-home-help__tile::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: var(--fc-ember-amber);
}

.fc-home-help__tile > * {
	margin: 0;
}

.fc-home-help__tile:hover {
	box-shadow: 0 12px 32px color-mix(in srgb, var(--fc-indigo) 14%, transparent);
	transform: translateY(-2px);
}

/* Icon in a cream circle, as on the service "What's included" list. */
.fc-home-help__icon,
.fc-home-reasons__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--fc-space-10);
	border-radius: 50%;
	color: var(--fc-ember-text);
	background-color: var(--fc-cream);
	--fc-icon-size: 30px;
}

.fc-home-help__title {
	font-size: var(--wp--preset--font-size--x-large);
}

.fc-home-help__more {
	margin-top: auto !important;
	padding-top: var(--fc-space-10);
}

.fc-home-help__more .fc-card__link::before {
	content: "";
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	margin-right: 0.4em;
	vertical-align: -0.2em;
	background-color: currentColor;
	mask: url(../svg/icons/arrow-right.svg) center / contain no-repeat;
	transition: transform 0.2s ease;
}

.fc-home-help__tile:hover .fc-card__link {
	text-decoration: underline;
}

/* ---------- Home: featured services ---------- */

.fc-home-featured .fc-services {
	margin-top: var(--fc-space-40);
}

/* Eight cards: 4 × 2 on desktop, 2 × 4 on tablets, one column on phones. */
.fc-home-featured .fc-service-grid {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
	.fc-home-featured .fc-service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.fc-home-featured .fc-service-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.fc-home-featured__all {
	justify-content: center;
	margin-top: var(--fc-space-40) !important;
}

/* ---------- Home: veterans and older Australians ---------- */

.fc-home-care__grid {
	display: grid;
	gap: var(--fc-space-30);
	margin-top: var(--fc-space-40) !important;
}

.fc-home-care__grid > * {
	margin: 0 !important;
	padding: var(--fc-space-30);
}

@media (min-width: 760px) {
	.fc-home-care__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Home: SIL vacancies ---------- */

.fc-vacancies__panel {
	display: grid;
	gap: var(--fc-space-40);
	padding: var(--fc-space-40) var(--fc-space-30);
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius-card);
	background-color: var(--fc-cream-soft);
	background-image: radial-gradient(circle 260px at 100% 0, color-mix(in srgb, var(--fc-amber) 12%, transparent) 99.5%, transparent 100%);
}

.fc-vacancies__text > * {
	margin-block: 0;
}

.fc-vacancies__text h2 {
	margin-block: 0 var(--fc-space-20);
}

.fc-vacancies__text .wp-block-button {
	margin-top: var(--fc-space-30);
}

.fc-vacancies .fc-pill .fc-icon {
	--fc-icon-size: 1.2em;
	vertical-align: 0;
}

.fc-vacancies__regions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: var(--fc-space-30);
	align-content: center;
}

.fc-vacancies__region h3 {
	margin-bottom: var(--fc-space-10);
	padding-bottom: var(--fc-space-10);
	border-bottom: 1px solid var(--fc-line);
	font-size: var(--wp--preset--font-size--large);
}

.fc-vacancies__region ul {
	display: grid;
	gap: var(--fc-space-10);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-vacancies__region li {
	display: flex;
	align-items: center;
	gap: var(--fc-space-10);
	font-weight: 600;
}

.fc-vacancies__region .fc-icon {
	color: var(--fc-ember-text);
}

@media (min-width: 900px) {
	.fc-vacancies__panel {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		gap: var(--fc-space-60);
		padding: var(--fc-space-50) var(--fc-space-60);
	}
}

/* ---------- Home: why choose us ---------- */

.fc-home-reasons__grid {
	gap: var(--fc-space-40) var(--fc-space-30);
}

.fc-home-reasons__item > * {
	margin: 0;
}

.fc-home-reasons__title {
	margin-bottom: var(--fc-space-10) !important;
	font-size: var(--wp--preset--font-size--large);
}

.fc-home-reasons__item p {
	color: var(--fc-ink);
}

/* ---------- Home: testimonials ---------- */

.fc-testimonials__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--fc-space-30);
	margin: var(--fc-space-40) 0 0;
	padding: 0;
	list-style: none;
}

.fc-testimonial {
	display: flex;
	flex-direction: column;
	gap: var(--fc-space-20);
	height: 100%;
	margin: 0;
}

.fc-testimonial__quote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: var(--fc-indigo);
}

/* An Ember to Amber opening quote mark. */
.fc-testimonial__quote::before {
	content: "";
	display: block;
	width: 40px;
	height: 6px;
	margin-bottom: var(--fc-space-20);
	border-radius: 3px;
	background: var(--fc-ember-amber);
}

.fc-testimonial__quote p {
	margin: 0;
}

.fc-testimonial__by {
	margin-top: auto;
	font-weight: 600;
	color: var(--fc-ink);
}

.fc-testimonials__empty {
	margin-top: var(--fc-space-30);
}

.fc-testimonials__note {
	margin-top: var(--fc-space-10) !important;
	font-size: 0.8889rem;
	color: var(--fc-muted);
}

/* ---------- Home: how to get started (numbered steps) ---------- */

.fc-home-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: var(--fc-space-30);
	margin: var(--fc-space-40) 0 0;
	padding: 0;
	list-style: none;
	counter-reset: fc-home-step;
}

.fc-home-steps > li {
	position: relative;
	padding: var(--fc-space-30);
	border: 1px solid var(--fc-line);
	border-radius: var(--fc-radius-card);
	background-color: var(--fc-white);
	box-shadow: var(--fc-shadow-card);
	counter-increment: fc-home-step;
}

.fc-home-steps > li::before {
	content: counter(fc-home-step);
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--fc-space-20);
	border: 3px solid transparent;
	border-radius: 50%;
	font-size: 1.1111rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--fc-indigo);
	background:
		linear-gradient(var(--fc-white), var(--fc-white)) padding-box,
		var(--fc-ember-amber) border-box;
}

.fc-home-steps > li > strong {
	display: block;
	margin-bottom: var(--fc-space-10);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
	color: var(--fc-indigo);
}

/* ---------- Home: values and inclusion ---------- */

.fc-home-values__inner {
	display: grid;
	gap: var(--fc-space-40);
	align-items: center;
}

.fc-home-values__text > * {
	margin-block: 0;
}

.fc-home-values__text h2 {
	margin-bottom: var(--fc-space-20);
}

.fc-home-values__text p {
	max-width: var(--fc-prose);
}

.fc-home-values__country > h3 {
	margin-bottom: var(--fc-space-20);
	font-size: var(--wp--preset--font-size--large);
}

@media (min-width: 900px) {
	.fc-home-values__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: var(--fc-space-60);
	}
}

/* ---------- Search form (404 and search results) ---------- */

.fc-search {
	max-width: 36rem;
	margin-top: var(--fc-space-30) !important;
}

.fc-search .wp-block-search__label {
	font-weight: 600;
	color: var(--fc-indigo);
}

.fc-search .wp-block-search__inside-wrapper {
	gap: var(--fc-space-10);
}

.fc-search .wp-block-search__input {
	min-height: 48px;
	padding: 10px 16px;
	border: 2px solid var(--fc-muted);
	border-radius: var(--fc-radius-card);
	font: inherit;
	background-color: var(--fc-white);
}

.fc-search .wp-block-search__button {
	margin: 0;
}

/* ---------- 404 ---------- */

.fc-not-found__links {
	display: grid;
	gap: var(--fc-space-10);
	padding-left: 1.2em;
	font-weight: 600;
}

.fc-not-found__help .wp-block-buttons {
	margin-top: var(--fc-space-20);
}

/* ---------- Search results ---------- */

.fc-results__list {
	display: grid;
	gap: var(--fc-space-30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fc-results__list > li {
	padding-bottom: var(--fc-space-30);
	border-bottom: 1px solid var(--fc-line);
}

.fc-results__title {
	margin-bottom: var(--fc-space-10);
	font-size: var(--wp--preset--font-size--x-large);
}

.fc-results__excerpt p {
	margin: 0;
}

/* ---------- HTML sitemap ---------- */

.fc-sitemap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--fc-space-50) var(--fc-space-40);
	align-items: start;
}

.fc-sitemap__heading {
	display: flex;
	align-items: center;
	gap: var(--fc-space-20);
	margin-bottom: var(--fc-space-20);
	font-size: var(--wp--preset--font-size--x-large);
}

/* A short Ember to Amber lead line after the group name, as on the services hub. */
.fc-sitemap__heading::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--fc-amber) 0 64px, var(--fc-line) 64px);
}

.fc-sitemap ul {
	display: grid;
	gap: 6px;
	margin: 0;
	padding-left: 1.2em;
}

.fc-sitemap ul ul {
	margin-top: 6px;
}

.fc-sitemap a {
	display: inline-block;
	padding-block: 4px;
}

/* ---------- Articles and Easy Read ---------- */

.fc-article__image {
	margin-bottom: var(--fc-space-40);
}

.fc-article__image img {
	border-radius: var(--fc-radius-card);
}

/* Easy Read: bigger type, more space, one idea per line. */
.fc-easy-read .wp-block-post-content {
	font-size: 1.2222rem; /* 22px */
	line-height: 1.7;
}

.fc-easy-read .wp-block-post-content > * + * {
	margin-top: var(--fc-space-30);
}

.fc-easy-read-list ul {
	display: grid;
	gap: var(--fc-space-10);
	margin: var(--fc-space-30) 0 0;
	padding-left: 1.2em;
}

.fc-easy-read-list h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}
