/**
 * Front-page sections — Find My Psychologist.
 */

.fmp-home {
	overflow-x: clip;
}

.fmp-home-wrap {
	width: min(1120px, calc(100% - 2.5rem));
	margin-inline: auto;
}

/* ——— Hero ——— */
.fmp-home-hero {
	position: relative;
	isolation: isolate;
	/* Clear fixed header: topbar offset + pill margin + pill height + breathing room */
	padding:
		calc(var(--rc-header-offset, 2.35rem) + 0.45rem + 3.35rem + 1.75rem)
		0
		4rem;
	background-color: #0b3a52;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #fff;
	scroll-margin-top: 6rem;
}

@media (max-width: 720px) {
	.fmp-home-hero {
		padding-top: calc(0.45rem + 3.35rem + 1.5rem);
	}
}

.fmp-home-hero__inner {
	width: min(1120px, calc(100% - 2rem));
	margin-inline: auto;
	text-align: center;
}

.fmp-home-hero__title {
	margin: 0 auto 1.75rem;
	max-width: 18ch;
	font-family: var(--rc-font);
	font-size: clamp(1.85rem, 3.6vw, 2.75rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.fmp-home-hero__panel {
	margin: 0 auto;
	max-width: 960px;
}

.fmp-home-hero .fmp-search-container {
	border: 2px solid var(--rc-accent);
	border-radius: 12px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	padding: 1.75rem 1.5rem 1.5rem;
	text-align: left;
}

.fmp-home-hero .fmp-search-title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	margin-bottom: 1.25rem;
	color: var(--rc-brand);
	line-height: 1.25;
}

.fmp-home-hero__tagline {
	margin: 1.25rem 0 0;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ——— Tips ——— */
.fmp-home-tips {
	padding: 4.5rem 0 3.5rem;
	background: #fff;
}

.fmp-home-tips__heading {
	margin: 0 0 2.75rem;
	text-align: center;
	font-size: clamp(1.55rem, 2.8vw, 2.15rem);
	font-weight: 700;
	color: var(--rc-brand);
	letter-spacing: -0.02em;
}

.fmp-home-tips__grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.fmp-home-tips__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.75rem 2rem;
		align-items: stretch;
	}

	.fmp-home-tips__row--1 .fmp-home-tips__card { grid-column: 1; grid-row: 1; }
	.fmp-home-tips__row--1 .fmp-home-tips__media { grid-column: 2; grid-row: 1; }
	.fmp-home-tips__row--2 .fmp-home-tips__media { grid-column: 1; grid-row: 2; }
	.fmp-home-tips__row--2 .fmp-home-tips__card { grid-column: 2; grid-row: 2; }
	.fmp-home-tips__row--3 .fmp-home-tips__card { grid-column: 1; grid-row: 3; }
	.fmp-home-tips__row--3 .fmp-home-tips__media { grid-column: 2; grid-row: 3; }
}

.fmp-home-tips__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.85rem;
	padding: 1.75rem 1.6rem;
	border-radius: 14px;
	background: var(--rc-accent);
	color: #fff;
	min-height: 200px;
}

.fmp-home-tips__icon {
	display: inline-flex;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
}

.fmp-home-tips__icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: #fff;
}

.fmp-home-tips__card h3 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	color: #fff;
}

.fmp-home-tips__card p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.95);
}

.fmp-home-tips__media {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	min-height: 200px;
	background: #e8f4f7;
}

.fmp-home-tips__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 200px;
	object-fit: cover;
}

.fmp-home-tips__cta {
	margin-top: 2.5rem;
	text-align: center;
}

.fmp-home-tips__cta .rc-btn {
	--rc-btn-height: 2.75rem;
	--rc-btn-pad-x: 2rem;
	border-radius: 8px;
}

/* ——— FAQ ——— */
.fmp-home-faq {
	padding: 4rem 0;
	background: var(--rc-wash);
}

.fmp-home-faq__heading {
	margin: 0 0 2rem;
	text-align: center;
	font-size: clamp(1.55rem, 2.8vw, 2.15rem);
	font-weight: 700;
	color: var(--rc-brand);
	letter-spacing: -0.02em;
}

.fmp-home-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	width: min(820px, 100%);
	max-width: 820px;
	margin: 0 auto;
}

.fmp-home-faq__item {
	border: 1px solid #d7e3ea;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.fmp-home-faq__item[open] {
	border-color: transparent;
	background: var(--rc-accent);
	color: #fff;
}

.fmp-home-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 1rem;
	color: var(--rc-ink);
}

.fmp-home-faq__item summary::-webkit-details-marker {
	display: none;
}

.fmp-home-faq__item[open] summary {
	color: #fff;
}

.fmp-home-faq__chevron {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	border: 1.5px solid currentColor;
	display: grid;
	place-items: center;
	transition: transform 0.2s ease;
}

.fmp-home-faq__item[open] .fmp-home-faq__chevron {
	transform: rotate(45deg);
}

.fmp-home-faq__chevron::before {
	content: "+";
	font-size: 1.1rem;
	line-height: 1;
	font-weight: 500;
}

.fmp-home-faq__body {
	padding: 0 1.15rem 1.15rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.96);
}

.fmp-home-faq__body p {
	margin: 0 0 0.85rem;
}

.fmp-home-faq__body p:last-child {
	margin-bottom: 0;
}

.fmp-home-faq__body ul {
	margin: 0.5rem 0 0.85rem;
	padding-left: 1.2rem;
}

.fmp-home-faq__body a {
	color: #fff;
	text-decoration: underline;
}

/* ——— Blogs ——— */
.fmp-home-blogs {
	/* Same token set as .hh-blog-shell so .hh-post-card paints correctly. */
	--hh-blog-ink: #18212f;
	--hh-blog-muted: #66707d;
	--hh-blog-line: rgba(24, 33, 47, 0.12);
	--hh-blog-surface: #ffffff;
	padding: 4rem 0 3.5rem;
	background: #fff;
}

.fmp-home-blogs__heading {
	margin: 0 0 2rem;
	text-align: center;
	font-size: clamp(1.55rem, 2.8vw, 2.15rem);
	font-weight: 700;
	color: var(--rc-brand);
	letter-spacing: -0.02em;
}

/* Grid + cards come from rc-posts (.hh-posts-grid / .hh-post-card). */
.fmp-home-blogs .hh-posts-grid,
.fmp-home-blogs__grid {
	display: grid;
	gap: 1.6rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.fmp-home-blogs .hh-posts-grid,
	.fmp-home-blogs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.fmp-home-blogs .hh-posts-grid,
	.fmp-home-blogs__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.fmp-home-blogs__empty {
	text-align: center;
	color: var(--rc-muted);
}

/* ——— Contact CTA ——— */
.fmp-home-cta {
	padding: 3.25rem 0;
	background: #d7eef4;
	text-align: center;
}

.fmp-home-cta__text {
	margin: 0 auto 1.35rem;
	max-width: 36rem;
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.4;
	color: var(--rc-brand);
}

.fmp-home-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.fmp-home-cta .rc-btn {
	border-radius: 8px;
	--rc-btn-height: 2.7rem;
	--rc-btn-pad-x: 2rem;
}

.fmp-home-cta .rc-btn--ghost-brand {
	--rc-btn-bg: transparent;
	--rc-btn-fg: var(--rc-brand);
	border: 1.5px solid var(--rc-brand);
}

.fmp-home-cta .rc-btn--ghost-brand:hover,
.fmp-home-cta .rc-btn--ghost-brand:focus-visible {
	--rc-btn-bg-hover: rgba(4, 84, 130, 0.08);
}

@media (prefers-reduced-motion: reduce) {
	.fmp-home-faq__chevron {
		transition: none;
	}
}

/* ——— Shared page shortcode blocks ——— */
.fmp-join__lead {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--rc-brand);
	line-height: 1.4;
}

.fmp-join__actions,
.fmp-notice-page p:last-child {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.fmp-join .rc-btn--ghost,
.fmp-notice-page .rc-btn--ghost,
.fmp-contact .rc-btn--ghost {
	--rc-btn-bg: transparent;
	--rc-btn-fg: var(--rc-brand);
	border-color: var(--rc-brand);
}

/* Shortcode / embedded FAQ — no extra section chrome */
.fmp-page-faq {
	padding: 0;
	background: transparent;
}

.fmp-page-faq .fmp-home-faq__list {
	margin-inline: 0;
	width: 100%;
	max-width: none;
}

.fmp-contact__form {
	margin-top: 1.75rem;
}
