/**
 * FITY Kolonie - front-end component styles.
 *
 * These styles cover only the components the PLUGIN renders. Layout, spacing
 * scale and colour tokens belong to the theme: every value below reads a
 * theme.json preset custom property, with a fallback so the components stay
 * legible if the plugin is used with another theme.
 *
 * Mobile first throughout. No framework, no utility classes.
 */

:root {
	--fity-ink: var( --wp--preset--color--ink, #14231f );
	--fity-forest: var( --wp--preset--color--forest, #0e6b4f );
	--fity-forest-dark: var( --wp--preset--color--forest-dark, #093f2f );
	--fity-sun: var( --wp--preset--color--sun, #e4610f );
	--fity-sand: var( --wp--preset--color--sand, #f7f3ec );
	--fity-muted: var( --wp--preset--color--muted, #56655f );
	--fity-line: var( --wp--preset--color--line, #e4ded2 );
	--fity-surface: var( --wp--preset--color--base, #ffffff );
	--fity-radius: 10px;
	--fity-radius-lg: 16px;
}

/*
 * Every FITY component sizes itself border-box, so a min-height means the
 * height a finger actually hits - padding and border included. Scoped to the
 * project's own class prefix; nothing of WordPress's is touched.
 */
[ class*="fity-" ],
[ class*="fity-" ]::before,
[ class*="fity-" ]::after {
	box-sizing: border-box;
}

/* --- Buttons ----------------------------------------------------------- */

.fity-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px; /* comfortable mobile tap target */
	padding: 0.75rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var( --fity-radius );
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fity-button--primary {
	background-color: var( --fity-sun );
	border-color: var( --fity-sun );
	color: var( --fity-ink );
	letter-spacing: 0.02em;
}

.fity-button--primary:hover,
.fity-button--primary:focus-visible {
	background-color: #c9520b;
	border-color: #c9520b;
	color: #fff;
}

.fity-button--ghost {
	background-color: transparent;
	border-color: var( --fity-forest );
	color: var( --fity-forest );
}

.fity-button--ghost:hover,
.fity-button--ghost:focus-visible {
	background-color: var( --fity-forest );
	color: #fff;
}

.fity-button--muted {
	background-color: var( --fity-sand );
	border-color: var( --fity-line );
	color: var( --fity-muted );
	cursor: not-allowed;
}

/* Focus must be visible for keyboard users on every interactive element. */
.fity-button:focus-visible,
.fity-contact__link:focus-visible,
.fity-documents__link:focus-visible,
.fity-category-card__link:focus-visible,
.fity-card__title a:focus-visible,
.fity-faq__question:focus-visible {
	outline: 3px solid var( --fity-forest );
	outline-offset: 2px;
}

/* --- Availability pill -------------------------------------------------- */

/*
 * A status tag, not a label: the dot plus uppercase tracking makes the state
 * readable at a glance without adding another colour to the palette.
 */
.fity-availability {
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
	/* The card body is a column flex container, which would stretch the pill. */
	align-self: flex-start;
	width: fit-content;
	margin: 0 0 1rem;
	padding: 0.4rem 0.85rem 0.4rem 0.7rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.fity-availability::before {
	content: "";
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background-color: currentColor;
}

.fity-availability.is-many {
	background-color: #e3f1ea;
	color: #0a5239;
}

.fity-availability.is-last {
	background-color: #fdeadb;
	color: #8f3a05;
}

.fity-availability.is-soldout {
	background-color: #f0eeea;
	color: #5d5750;
}

.fity-availability.is-unknown {
	background-color: var( --fity-sand );
	color: var( --fity-muted );
}

/* --- Camp cards --------------------------------------------------------- */

.fity-camps-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media ( min-width: 30rem ) {
	.fity-camps-grid {
		gap: 1.5rem;
	}
}

@media ( min-width: 40rem ) {
	.fity-camps-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 62rem ) {
	.fity-camps-grid {
		grid-template-columns: repeat( 3, 1fr );
	}
}

.fity-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var( --fity-line );
	border-radius: var( --fity-radius-lg );
	background-color: var( --fity-surface );
	box-shadow: 0 1px 2px rgba( 20, 35, 31, 0.04 );
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fity-card:hover {
	border-color: #cfc7b6;
	box-shadow: 0 2px 4px rgba( 20, 35, 31, 0.06 ), 0 14px 32px rgba( 20, 35, 31, 0.09 );
	transform: translateY( -2px );
}

.fity-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background-color: var( --fity-sand );
}

.fity-card__media img,
.fity-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fity-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.1rem;
}

@media ( min-width: 40rem ) {
	.fity-card__body {
		padding: 1.5rem 1.5rem 1.25rem;
	}
}

.fity-card__title {
	margin: 0 0 0.85rem;
	font-size: 1.1875rem;
	line-height: 1.3;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.fity-card__title a {
	color: var( --fity-ink );
	text-decoration: none;
}

.fity-card__title a:hover {
	text-decoration: underline;
}

.fity-card__meta {
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
	color: var( --fity-muted );
	font-size: 0.9375rem;
}

.fity-card__meta-item {
	margin-bottom: 0.25rem;
	padding-left: 1.5rem;
	background-repeat: no-repeat;
	background-position: 0 0.15em;
	background-size: 1rem 1rem;
}

/* Inline SVG icons keep the card free of an icon-font dependency. */
.fity-card__meta-item[ data-icon="pin" ] {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356655f' stroke-width='2'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E" );
}

.fity-card__meta-item[ data-icon="calendar" ] {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356655f' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E" );
}

.fity-card__meta-item[ data-icon="age" ] {
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356655f' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/%3E%3C/svg%3E" );
}

.fity-card__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var( --fity-line );
}

/* Price and CTA never share a cramped line on a narrow phone. */
@media ( max-width: 24rem ) {
	.fity-card__footer .fity-button {
		flex: 1 0 100%;
	}
}

.fity-card__price {
	margin: 0;
	color: var( --fity-ink );
	font-size: 1.125rem;
	font-weight: 700;
}

.fity-card__price del {
	color: var( --fity-muted );
	font-weight: 400;
}

/* --- Adaptive catalogue layout ------------------------------------------ */
/*
 * A category/catalogue view with only one or two results would otherwise use
 * the same narrow multi-column grid as a full listing, leaving most of the
 * desktop viewport empty. These modifiers (applied by Blocks\Registry based
 * on the result count) keep the layout intentional instead.
 */

.fity-camps-grid--featured {
	grid-template-columns: 1fr;
	justify-items: center;
}

@media ( min-width: 40rem ) {
	.fity-camps-grid--featured {
		grid-template-columns: 1fr;
	}
}

@media ( min-width: 62rem ) {
	.fity-camps-grid--featured {
		grid-template-columns: 1fr;
	}

	.fity-camps-grid--pair {
		grid-template-columns: repeat( 2, 1fr );
		max-width: 56rem;
		margin-inline: auto;
	}
}

/* Large horizontal card for a single result: image on one side, information
   on the other. Stays a regular vertical .fity-card below the breakpoint. */
@media ( min-width: 48rem ) {
	.fity-card--featured {
		flex-direction: row;
		max-width: 68.75rem; /* ~1100px */
		width: 100%;
	}

	/*
	 * The row's height is set by the content side (title, meta, price, CTA),
	 * not by the image. A fixed aspect-ratio here would fight that stretched
	 * height and, combined with .fity-card's overflow: hidden, clip the
	 * content instead. Letting the image fill the stretched box with
	 * object-fit: cover keeps it photographic without imposing its own ratio.
	 */
	.fity-card--featured .fity-card__media {
		flex: 0 0 46%;
		aspect-ratio: auto;
		min-height: 20rem;
	}

	.fity-card--featured .fity-card__body {
		flex: 1;
		justify-content: center;
		padding: 2rem 2.5rem;
	}

	.fity-card--featured .fity-card__title {
		font-size: 1.75rem;
	}

	.fity-card--featured .fity-card__meta {
		font-size: 1rem;
	}
}

/* --- Category cards ----------------------------------------------------- */

.fity-category-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 40rem ) {
	.fity-category-cards {
		grid-template-columns: repeat( auto-fit, minmax( 14rem, 1fr ) );
		gap: 1.25rem;
	}
}

.fity-category-card {
	display: grid;
	min-width: 0;
}

.fity-category-card__link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	justify-content: center;
	min-height: 6.5rem;
	padding: 1.35rem 1.5rem;
	border: 1px solid var( --fity-line );
	border-radius: var( --fity-radius-lg );
	background-color: var( --fity-surface );
	color: var( --fity-ink );
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.fity-category-card__link:hover {
	border-color: var( --fity-forest );
	box-shadow: 0 2px 4px rgba( 20, 35, 31, 0.05 ), 0 12px 28px rgba( 20, 35, 31, 0.07 );
	transform: translateY( -2px );
}

.fity-category-card__name {
	font-size: 1.25rem;
	font-weight: 700;
}

.fity-category-card__count {
	color: var( --fity-muted );
	font-size: 0.9375rem;
}

/* --- Statistics --------------------------------------------------------- */

.fity-stats {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 1.5rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 48rem ) {
	.fity-stats {
		grid-template-columns: repeat( 4, 1fr );
	}
}

.fity-stats__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}

.fity-stats__value {
	font-size: clamp( 2.25rem, 1.4rem + 3vw, 3.5rem );
	font-weight: 700;
	line-height: 1;
	color: var( --fity-forest );
}

.fity-stats__label {
	color: var( --fity-muted );
	font-size: 0.9375rem;
}

/* --- Contact ------------------------------------------------------------ */

/*
 * These cards hold values nobody controls the length of - a long address or a
 * profile URL must wrap inside its own card instead of running into the next
 * one. Hence min-width: 0 on the tracks (grid items do not shrink below their
 * content by default) and hard wrapping on the value.
 *
 * The block renders in two very different places - a white section and the
 * dark footer column - so the border is derived from the inherited text colour
 * rather than fixed, and stays correct in both.
 */
.fity-contact {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 15rem ), 1fr ) );
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 40rem ) {
	.fity-contact {
		gap: 1rem;
	}
}

/*
 * The list item is the grid cell and does the stretching. A height: 100% on
 * the link instead would resolve against its own content and push the card
 * past its cell.
 */
.fity-contact__item {
	display: grid;
	min-width: 0;
}

.fity-contact__link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	justify-content: center;
	min-width: 0;
	min-height: 5rem;
	padding: 0.9rem 1.1rem;
	border: 1px solid var( --fity-line );
	border-color: color-mix( in srgb, currentColor 20%, transparent );
	border-radius: var( --fity-radius );
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

/*
 * The extra class raises specificity above the theme.json link :hover rule,
 * which repaints links forest-dark - invisible against the dark footer. The
 * card keeps the inherited colour and signals hover with its frame instead.
 */
.fity-contact .fity-contact__link:hover,
.fity-contact .fity-contact__link:focus {
	border-color: color-mix( in srgb, currentColor 45%, transparent );
	background-color: color-mix( in srgb, currentColor 6%, transparent );
	color: inherit;
}

.fity-contact__label {
	color: var( --fity-muted );
	color: color-mix( in srgb, currentColor 75%, transparent );
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fity-contact__value {
	min-width: 0;
	/* Small enough that a full e-mail address fits a narrow card unbroken. */
	font-size: clamp( 0.9375rem, 0.875rem + 0.3vw, 1.125rem );
	font-weight: 700;
	line-height: 1.35;
	/*
	 * `anywhere` rather than `break-word` so the value also shrinks the grid
	 * track's min-content size - that is what keeps a long address from
	 * forcing horizontal overflow at 360px. It only breaks a word that cannot
	 * fit on a line of its own, so ordinary words stay intact.
	 */
	overflow-wrap: anywhere;
}

/*
 * Footer variant. A narrow footer column cannot hold a bordered card without
 * breaking a phone number or an e-mail address across three lines, so there
 * the same block renders as a plain stacked list and marks hover with an
 * underline rather than a frame.
 */
.fity-contact-block--plain .fity-contact {
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

.fity-contact-block--plain .fity-contact__link {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	gap: 0.15rem;
}

.fity-contact-block--plain .fity-contact .fity-contact__link:hover,
.fity-contact-block--plain .fity-contact .fity-contact__link:focus {
	background-color: transparent;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Readable on white and on the dark footer alike - see the note above. */
.fity-contact__note {
	margin: 1rem 0 0;
	color: var( --fity-muted );
	color: color-mix( in srgb, currentColor 78%, transparent );
	font-size: 0.9375rem;
}

/* --- Camp detail -------------------------------------------------------- */

/*
 * On a phone the key facts read as a spec table - label left, value right, one
 * per line, so a long location or date range never has to wrap into a 140px
 * column. From 40rem they become the stacked grid the wider layout has room
 * for.
 */
.fity-facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0 0 1.25rem;
	padding: 0.5rem 1.15rem;
	border-radius: var( --fity-radius-lg );
	background-color: var( --fity-sand );
}

.fity-facts__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1rem;
	align-items: baseline;
	padding-block: 0.75rem;
	border-bottom: 1px solid color-mix( in srgb, var( --fity-muted ) 18%, transparent );
}

.fity-facts__item:last-child {
	border-bottom: 0;
}

.fity-facts__term {
	color: var( --fity-muted );
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fity-facts__value {
	margin: 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: right;
	overflow-wrap: anywhere;
}

@media ( min-width: 40rem ) {
	.fity-facts {
		grid-template-columns: repeat( auto-fit, minmax( 10rem, 1fr ) );
		gap: 1.25rem;
		padding: 1.35rem 1.5rem;
	}

	.fity-facts__item {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		padding-block: 0;
		border-bottom: 0;
	}

	.fity-facts__value {
		text-align: left;
	}
}

/* --- Camp gallery --------------------------------------------------------- */

.fity-gallery__slides {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	gap: 0.75rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	border-radius: var( --fity-radius-lg );
	-webkit-overflow-scrolling: touch;
}

.fity-gallery__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var( --fity-radius-lg );
	background-color: var( --fity-sand );
}

/* The slide's height comes from aspect-ratio, which a child's `height: 100%`
   does not resolve against - the image then renders at its natural height and
   the slide clips it. Filling the slide absolutely gives the image a definite
   box, so object-fit: contain can show the whole photo. */
.fity-gallery__link {
	position: absolute;
	inset: 0;
	display: block;
	cursor: zoom-in;
}

/* Two classes on purpose: WooCommerce's `.woocommerce-page img { height: auto }`
   is more specific than a single class and would otherwise win on product pages. */
.fity-gallery .fity-gallery__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	/* Show the whole photo inside the fixed 4:3 viewport; the slide's sand
	   background fills any letterbox space. Thumbnails keep "cover". */
	object-fit: contain;
	object-position: center;
}

.fity-gallery__thumbs {
	display: flex;
	gap: 0.6rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
}

.fity-gallery__thumb-item {
	flex: 0 0 auto;
}

.fity-gallery__thumb {
	display: block;
	overflow: hidden;
	width: 4rem;
	height: 4rem;
	border: 2px solid transparent;
	border-radius: var( --fity-radius );
	opacity: 0.7;
	transition: border-color 0.15s ease, opacity 0.15s ease;
}

.fity-gallery__thumb:hover,
.fity-gallery__thumb:focus-visible {
	opacity: 1;
}

.fity-gallery__thumb.is-active {
	border-color: var( --fity-forest );
	opacity: 1;
}

.fity-gallery__thumb-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media ( min-width: 40rem ) {
	.fity-gallery__thumb {
		width: 4.75rem;
		height: 4.75rem;
	}
}

/* From here a pointer is assumed: swipe-snapping stops fighting a mouse drag,
   and the thumbnail row is a real "more photos" strip rather than a hint. */
@media ( min-width: 62rem ) {
	.fity-gallery__slides {
		scroll-snap-type: none;
	}

	.fity-gallery__thumbs {
		overflow-x: visible;
		flex-wrap: wrap;
	}
}

.fity-gallery--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	aspect-ratio: 4 / 3;
	padding: 2rem;
	border-radius: var( --fity-radius-lg );
	outline: 2px dashed var( --fity-line );
	outline-offset: -2px;
	color: var( --fity-muted );
	text-align: center;
}

.fity-gallery__empty-icon {
	width: 2.5rem;
	height: 2.5rem;
}

.fity-gallery__empty-text {
	margin: 0;
	font-size: 0.9375rem;
}

/* --- Lightbox ------------------------------------------------------------- */

/*
 * A native <dialog> in top-layer, sized to the viewport: showModal() already
 * gives keyboard focus trapping and Escape-to-close for free, so this only
 * styles it and adds the close/prev/next controls' behaviour in gallery.js.
 */
.fity-lightbox {
	position: fixed;
	inset: 0;
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background-color: transparent;
}

.fity-lightbox::backdrop {
	background-color: rgba( 12, 20, 17, 0.92 );
}

.fity-lightbox[ open ] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.fity-lightbox__image {
	display: block;
	max-width: min( 92vw, 1400px );
	max-height: 88vh;
	border-radius: var( --fity-radius );
	object-fit: contain;
}

.fity-lightbox__close,
.fity-lightbox__nav {
	position: absolute;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 999px;
	background-color: rgba( 255, 255, 255, 0.14 );
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.fity-lightbox__close:hover,
.fity-lightbox__nav:hover {
	background-color: rgba( 255, 255, 255, 0.26 );
}

.fity-lightbox__close:focus-visible,
.fity-lightbox__nav:focus-visible {
	outline: 3px solid var( --fity-sun );
	outline-offset: 2px;
}

.fity-lightbox__close {
	top: 1rem;
	right: 1rem;
}

.fity-lightbox__prev {
	top: 50%;
	left: 1rem;
	transform: translateY( -50% );
}

.fity-lightbox__next {
	top: 50%;
	right: 1rem;
	transform: translateY( -50% );
}

/*
 * Price and CTA are the decision point of the page, so they sit in their own
 * panel rather than floating under the facts. On a phone the button takes the
 * full width; from 40rem the price sits beside it.
 */
.fity-camp-header__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.25rem;
	align-items: center;
	justify-content: space-between;
	padding-top: 1.25rem;
	border-top: 1px solid var( --fity-line );
}

.fity-camp-header__actions .fity-button {
	flex: 1 1 100%;
	min-height: 52px;
	font-size: 1.0625rem;
}

@media ( min-width: 40rem ) {
	.fity-camp-header__actions .fity-button {
		flex: 0 0 auto;
	}
}

.fity-camp-header__price {
	margin: 0;
	font-size: clamp( 1.625rem, 1.2rem + 1.4vw, 2.125rem );
	font-weight: 700;
	line-height: 1.1;
}

.fity-camp-header__map {
	margin: 1.1rem 0 0;
	font-size: 0.9375rem;
}

/*
 * A hairline above each section carries the hierarchy on a long camp page -
 * cheaper to read than another boxed card, and it keeps the rhythm even when a
 * section is only two lines long.
 */
.fity-camp-sections {
	margin-top: clamp( 2.5rem, 2rem + 2vw, 3.5rem );
}

.fity-section + .fity-section {
	padding-top: clamp( 2rem, 1.6rem + 1.6vw, 2.75rem );
	border-top: 1px solid var( --fity-line );
}

.fity-section {
	margin-bottom: clamp( 2rem, 1.6rem + 1.6vw, 2.75rem );
}

.fity-section:last-child {
	margin-bottom: 0;
}

.fity-section__heading {
	margin: 0 0 1rem;
	font-size: clamp( 1.375rem, 1.1rem + 1vw, 1.75rem );
	text-wrap: balance;
}

.fity-section__body > :first-child {
	margin-top: 0;
}

.fity-section__body > :last-child {
	margin-bottom: 0;
}

.fity-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: var( --fity-radius );
}

/* --- FAQ (native details/summary: keyboard accessible for free) --------- */

.fity-faq__item {
	padding: 1rem 0;
	border-bottom: 1px solid var( --fity-line );
}

.fity-faq__question {
	cursor: pointer;
	font-size: 1.0625rem;
	font-weight: 700;
	list-style: none;
}

.fity-faq__question::-webkit-details-marker {
	display: none;
}

.fity-faq__question::before {
	content: "+";
	display: inline-block;
	width: 1.25rem;
	color: var( --fity-forest );
	font-weight: 700;
}

.fity-faq__item[ open ] .fity-faq__question::before {
	content: "–";
}

.fity-faq__answer {
	padding-top: 0.5rem;
	padding-left: 1.25rem;
	color: var( --fity-muted );
}

/* --- Documents ---------------------------------------------------------- */

.fity-documents__list {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 100%, 16rem ), 1fr ) );
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media ( min-width: 40rem ) {
	.fity-documents__list {
		gap: 1rem;
	}
}

.fity-documents__item {
	display: grid;
	min-width: 0;
}

.fity-documents__link {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	justify-content: center;
	min-width: 0;
	min-height: 4.25rem;
	padding: 0.9rem 1.1rem 0.9rem 3rem;
	border: 1px solid var( --fity-line );
	border-radius: var( --fity-radius );
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e6b4f' stroke-width='2'%3E%3Cpath d='M14 3v5h5M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: 1rem center;
	background-size: 1.25rem;
	color: inherit;
	text-decoration: none;
}

.fity-documents__link:hover {
	border-color: var( --fity-forest );
}

.fity-documents__name {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.fity-documents__meta {
	color: var( --fity-muted );
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* --- Empty states ------------------------------------------------------- */

.fity-empty {
	padding: 2.5rem 1.5rem;
	border: 1px dashed var( --fity-line );
	border-radius: var( --fity-radius-lg );
	background-color: var( --fity-sand );
	text-align: center;
}

.fity-empty__title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.fity-empty__text {
	margin: 0 0 1.25rem;
	color: var( --fity-muted );
}

/* --- Sticky mobile CTA -------------------------------------------------- */

.fity-sticky-cta {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 50;
	display: flex;
	gap: 0.6rem;
	align-items: center;
	padding: 0.7rem 1rem calc( 0.7rem + env( safe-area-inset-bottom ) );
	border-top: 1px solid var( --fity-line );
	background-color: color-mix( in srgb, var( --fity-surface ) 92%, transparent );
	backdrop-filter: blur( 10px );
	box-shadow: 0 -2px 4px rgba( 20, 35, 31, 0.04 ), 0 -12px 28px rgba( 20, 35, 31, 0.08 );
}

.fity-sticky-cta .fity-button {
	flex: 1;
	min-height: 52px;
}

.fity-sticky-cta .fity-sticky-cta__call {
	flex: 0 0 auto;
	width: 52px;
	padding-inline: 0;
	font-size: 1.25rem;
}

/* Desktop has the CTA in the page; the bar is a mobile affordance only. */
@media ( min-width: 48rem ) {
	.fity-sticky-cta {
		display: none;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.fity-button,
	.fity-card,
	.fity-contact__link,
	.fity-category-card__link {
		transition: none;
	}

	.fity-card:hover {
		transform: none;
	}

	.fity-gallery__slides {
		scroll-behavior: auto;
	}
}
