/*
 * First String design language.
 * Diagonal band dividers, skewed torch buttons, heading rules, Growth Ladder.
 * Colors always come from theme.json presets so wp-admin palette edits flow through.
 */

/* ---------- Layout ---------- */

/* No gaps between the root header / main / footer blocks; bands own their spacing. */
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Bands ---------- */

.fs-band {
	padding-top: var(--wp--preset--spacing--band);
	padding-bottom: var(--wp--preset--spacing--band);
}

/* Diagonal transition: the band clips its own top edge and pulls up over the
   previous band so the previous background shows through the cut triangle. */
.fs-cut-down {
	clip-path: polygon(0 0, 100% var(--wp--custom--cut), 100% 100%, 0 100%);
	margin-top: calc(-1 * var(--wp--custom--cut));
	padding-top: calc(var(--wp--preset--spacing--band) + var(--wp--custom--cut));
}

.fs-cut-up {
	clip-path: polygon(0 var(--wp--custom--cut), 100% 0, 100% 100%, 0 100%);
	margin-top: calc(-1 * var(--wp--custom--cut));
	padding-top: calc(var(--wp--preset--spacing--band) + var(--wp--custom--cut));
}

/* Text on charcoal is white; muted copy uses a light steel-derived gray. */
.fs-band.has-charcoal-background-color {
	color: var(--wp--preset--color--white);
}

.fs-muted {
	color: #B9BEC6;
}

/* ---------- Heading torch rule ---------- */

.fs-rule::after {
	content: "";
	display: block;
	width: 52px;
	height: 4px;
	margin-top: 14px;
	background: var(--wp--preset--color--torch);
	transform: skewX(var(--wp--custom--skew));
}

.fs-rule.has-text-align-center::after {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Skewed buttons ----------
   The parallelogram lives on a pseudo-element so the label stays unskewed. */

.is-style-fs-skew .wp-block-button__link {
	position: relative;
	z-index: 1;
	background: transparent;
	color: var(--wp--preset--color--white);
	border-radius: 0;
	padding: 0.8em 2em;
}

.is-style-fs-skew .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--torch);
	transform: skewX(var(--wp--custom--skew));
	transition: filter 0.15s ease;
}

.is-style-fs-skew .wp-block-button__link:hover::before,
.is-style-fs-skew .wp-block-button__link:focus::before {
	filter: brightness(0.85);
}

/* ---------- Header ---------- */

.fs-header {
	position: relative;
	z-index: 10; /* keep the nav dropdown above band clip-paths */
}

.fs-mark {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1;
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--torch);
	padding: 6px 9px;
	transform: skewX(var(--wp--custom--skew));
	margin: 0;
}

.fs-site-title,
.fs-site-title a {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 600;
	font-size: 1.35rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	color: var(--wp--preset--color--white);
}

.fs-nav .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 600;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fs-nav .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--torch);
}

.fs-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--charcoal);
	border: 1px solid var(--wp--preset--color--steel);
	min-width: 240px;
}

.fs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 14px;
}

/* CTA menu item rendered as a torch parallelogram button */
.fs-nav .fs-nav-cta > .wp-block-navigation-item__content {
	position: relative;
	z-index: 1;
	padding: 8px 18px;
	color: var(--wp--preset--color--white);
}

.fs-nav .fs-nav-cta > .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

.fs-nav .fs-nav-cta > .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--torch);
	transform: skewX(var(--wp--custom--skew));
	transition: filter 0.15s ease;
}

.fs-nav .fs-nav-cta > .wp-block-navigation-item__content:hover::before {
	filter: brightness(0.85);
}

/* ---------- Footer ---------- */

.fs-footer a {
	text-decoration: none;
}

.fs-footer a:hover {
	color: var(--wp--preset--color--torch);
}

.fs-footer .fs-copyright {
	border-top: 1px solid var(--wp--preset--color--steel);
	padding-top: var(--wp--preset--spacing--30);
	color: #B9BEC6;
}

/* ---------- Growth Ladder ---------- */

.fs-ladder {
	width: 100%;
	max-width: 460px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.fs-ladder .fs-ladder-rail {
	fill: var(--wp--preset--color--steel);
}

.fs-ladder .fs-ladder-rung {
	fill: var(--wp--preset--color--steel);
	transition: fill 0.2s ease;
}

.fs-ladder .fs-ladder-label {
	fill: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

.fs-ladder .fs-ladder-step:hover .fs-ladder-rung,
.fs-ladder .fs-ladder-step.is-active .fs-ladder-rung {
	fill: var(--wp--preset--color--torch);
}

/* ---------- Service cards ---------- */

.fs-card {
	background: var(--wp--preset--color--white);
	border: 1px solid #E3E5E8;
	border-top: 4px solid var(--wp--preset--color--torch);
	padding: var(--wp--preset--spacing--40);
	height: 100%;
}

.fs-card h3 a {
	text-decoration: none;
}

.fs-card h3 a:hover {
	color: var(--wp--preset--color--torch);
}

.fs-band.has-charcoal-background-color .fs-card {
	background: var(--wp--preset--color--steel);
	border-color: var(--wp--preset--color--steel);
	border-top-color: var(--wp--preset--color--torch);
}

/* ---------- Body copy and links per band ---------- */

.fs-band.has-white-background-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--torch);
}

.fs-band.has-torch-background-color {
	color: var(--wp--preset--color--white);
}

.fs-band.has-charcoal-background-color a,
.fs-band.has-torch-background-color a {
	color: var(--wp--preset--color--white);
}

/* Charcoal parallelogram variant for buttons sitting on torch bands */
.fs-skew-charcoal .wp-block-button__link::before {
	background: var(--wp--preset--color--charcoal);
}

.is-style-fs-skew .wp-block-button__link,
.fs-band .wp-block-button__link {
	text-decoration: none;
}

/* ---------- Contact form (CF7) ---------- */

.wpcf7 label {
	display: block;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 600;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 1.25rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	display: block;
	width: 100%;
	max-width: 560px;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1px solid #C9CDD3;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: 2px solid var(--wp--preset--color--torch);
	outline-offset: 0;
	border-color: var(--wp--preset--color--torch);
}

.wpcf7 input[type="submit"] {
	position: relative;
	border: none;
	border-radius: 0;
	background: var(--wp--preset--color--torch);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-style: italic;
	font-weight: 600;
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.8em 2em;
	cursor: pointer;
	transform: skewX(var(--wp--custom--skew));
	transition: filter 0.15s ease;
}

.wpcf7 input[type="submit"]:hover {
	filter: brightness(0.85);
}

/* ---------- Responsive ---------- */

@media (max-width: 781px) {
	.fs-footer .wp-block-columns {
		gap: var(--wp--preset--spacing--40);
	}
}
