/* Fantastic Care - reusable page sections (Service, About ...): feature split, service cards,
   numbered process, FAQ, value list, symptom pickers, call-to-action band.
   Loaded after fc-pages.css. */

:root {
	--i-target: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M22 12h-4M6 12H2M12 6V2M12 22v-4'/%3E%3C/svg%3E");
	--i-flow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='8' height='8' x='3' y='3' rx='2'/%3E%3Cpath d='M7 11v4a2 2 0 0 0 2 2h4'/%3E%3Crect width='8' height='8' x='13' y='13' rx='2'/%3E%3C/svg%3E");
}
.fc-i-target { --ico: var(--i-target); }
.fc-i-flow { --ico: var(--i-flow); }

.fc-main .fc-h2 { margin: 0 0 20px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; text-transform: uppercase; }
.fc-main .fc-sec { padding: clamp(48px, 6vw, 80px) var(--fc-gutter); }
.fc-main .fc-sec--surface { background: var(--fc-surface); }

/* Outline button */
.fc-btn-outline .wp-block-button__link { background: transparent; border: 2px solid var(--fc-navy); color: var(--fc-navy); }
.fc-btn-outline .wp-block-button__link:hover { background: var(--fc-navy); color: #fff; }

/* Feature split: photo with caption + text (reuses .fc-detail columns) */
.fc-feature__img { position: relative; }
.fc-feature__img figcaption {
	position: absolute;
	left: 0;
	bottom: 24px;
	margin: 0;
	padding: 10px 18px;
	background: #fff;
	color: var(--fc-navy);
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	box-shadow: 0 10px 24px -12px rgb(0 0 0 / .45);
}

/* Section heading row */
.fc-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; max-width: 1120px; margin: 0 auto 34px; }
.fc-main .fc-section-head .fc-h2 { margin: 0; }
.fc-main .fc-section-head p { max-width: 420px; margin: 0; color: var(--fc-muted); font-size: 14px; }

/* Service cards */
.fc-svc-grid { max-width: 1120px; margin: 0 auto; }
.fc-svc { display: flex; flex-direction: column; background: #fff; border: 1px solid #dcdce6; transition: transform .4s var(--fc-ease), box-shadow .3s, border-color .3s; }
.fc-svc:hover,
.fc-svc:focus-within { transform: translateY(-4px); border-color: var(--fc-orange); box-shadow: 0 18px 32px -20px rgb(25 23 71 / .5); }
.wp-block-image.fc-svc__img { margin: 0; overflow: hidden; }
.fc-svc__img img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform .7s var(--fc-ease); }
.fc-svc:hover .fc-svc__img img { transform: scale(1.06); }
.fc-svc__body { flex: 1; padding: 26px; }
.fc-main .fc-svc__body h3 { margin: 0 0 12px; font-size: 23px; text-transform: uppercase; }
.fc-main .fc-svc__body p { margin: 0; color: var(--fc-muted); font-size: 14px; line-height: 1.75; }
.fc-main .fc-svc__body p.fc-svc__link { margin-top: 18px; }
.fc-svc__link a { display: inline-block; padding-block: 4px; color: var(--fc-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.fc-svc__link a::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 8px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: var(--i-arrow) center / contain no-repeat;
	mask: var(--i-arrow) center / contain no-repeat;
	transition: transform .3s var(--fc-ease);
}
.fc-svc__link a:hover::after { transform: translateX(5px); }
.fc-svc__link a:hover { color: var(--fc-orange-ink); }

/* Numbered process (a real sequence, so the numbers carry meaning) */
.fc-main .fc-process-sec { padding: clamp(48px, 6vw, 80px) var(--fc-gutter); background: var(--fc-navy); color: #fff; }
.fc-main .fc-process-sec .fc-h2 { max-width: 1120px; margin: 0 auto 36px; color: #fff; }
.fc-process { max-width: 1120px; margin: 0 auto; counter-reset: fc-step; }
.fc-step { position: relative; padding-top: 22px; border-top: 2px solid #625f95; counter-increment: fc-step; }
.fc-step::before { content: counter(fc-step, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--fc-orange); font-family: var(--fc-head); font-size: 38px; font-weight: 700; line-height: 1; }
.fc-step::after { content: ''; position: absolute; top: -2px; left: 0; width: 56px; height: 2px; background: var(--fc-orange); }
.fc-main .fc-step h3 { margin: 0 0 8px; color: #fff; font-size: 22px; text-transform: uppercase; }
.fc-main .fc-step p { margin: 0; color: #deddf0; font-size: 14px; }

/* FAQ (core Details blocks) */
.fc-main .fc-faq-sec { padding: clamp(48px, 6vw, 80px) var(--fc-gutter); }
.fc-faq { max-width: 820px; margin: 0 auto; }
.fc-main .fc-faq .fc-h2 { margin-bottom: 24px; }
.fc-faq .wp-block-details { border-bottom: 1px solid #dcdce6; }
.fc-faq .wp-block-details:first-of-type { border-top: 1px solid #dcdce6; }
.fc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; color: var(--fc-navy); font-size: 17px; font-weight: 600; list-style: none; cursor: pointer; }
.fc-faq summary::-webkit-details-marker { display: none; }
.fc-faq summary::after {
	content: '';
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--fc-orange-ink);
	background:
		linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
	transition: transform .3s var(--fc-ease);
}
.fc-faq details[open] summary::after { background-size: 100% 2px, 0 0; transform: rotate(180deg); }
.fc-faq summary:hover { color: var(--fc-orange-ink); }
.fc-main .fc-faq details > :not(summary) { margin: 0 4px 18px; color: var(--fc-muted); font-size: 15px; }
.fc-faq details a { color: var(--fc-navy); font-weight: 600; }

/* Value list: icon + title + text */
.fc-values { display: flex; flex-direction: column; gap: 22px; }
.fc-value { display: flex; align-items: flex-start; gap: 18px; }
.fc-value__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fc-navy); color: var(--fc-orange); }
.fc-value__icon::before { content: ''; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.fc-main .fc-value h3 { margin: 2px 0 4px; font-size: 20px; }
.fc-main .fc-value p { margin: 0; color: var(--fc-muted); font-size: 14px; }

/* Industry items on inner pages (reuses the home icon circles, adds a description) */
.fc-sec .fc-industry-grid { max-width: 1120px; margin-top: 0; }
.fc-main .fc-industry h3 { margin: 0; color: var(--fc-navy); font-size: 19px; }
.fc-main .fc-industry p.fc-industry__desc { max-width: 16rem; margin: 6px 0 0; color: var(--fc-muted); font-size: 14px; font-weight: 400; line-height: 1.7; }
.fc-sec .fc-industry { text-align: center; }

/* Symptom pickers: whole card is one link; columns share the full width */
.fc-main .fc-picks { max-width: 1120px; margin: 32px auto 0; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.fc-pick { position: relative; padding: 24px 26px; background: #fff; border: 1px solid #dcdce6; transition: transform .35s var(--fc-ease), box-shadow .3s, border-color .3s; }
.fc-pick:hover,
.fc-pick:focus-within { transform: translateY(-3px); border-color: var(--fc-orange); box-shadow: 0 16px 28px -18px rgb(25 23 71 / .5); }
.fc-main .fc-pick__name { margin: 0; font-size: 22px; }
.fc-pick__name a { color: var(--fc-navy); text-decoration: none; }
.fc-pick__name a::after { content: ''; position: absolute; inset: 0; }
.fc-pick:hover .fc-pick__name a { color: var(--fc-orange-ink); }
.fc-main .fc-pick__desc { margin: 6px 0 0; color: var(--fc-muted); font-size: 14px; }

/* Call-to-action band */
.fc-main .fc-cta { padding: clamp(36px, 5vw, 56px) var(--fc-gutter); background: var(--fc-navy); color: #fff; border-top: 3px solid var(--fc-orange); }
.fc-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; max-width: 1120px; margin: 0 auto; }
.fc-main .fc-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.fc-main .fc-cta p { margin: 0; color: #deddf0; }
.fc-main .fc-cta .wp-block-buttons { margin: 0; }

/* The process steps appear one after another as they scroll in, where the browser supports it.
   They are a sequence, so the order carries meaning; other blocks stay still. */
@keyframes fc-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
	.fc-step { animation: fc-in linear backwards; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (prefers-reduced-motion: reduce) {
	.fc-step { animation: none; }
}
