/**
 * Structural styles for the Fresh Platform Foundation Components.
 * Brand-specific presentation belongs to the project layer.
 */

.fresh-section {
	box-sizing: border-box;
	inline-size: 100%;
	padding-block: var(--fresh-spacing-section-md);
}

.fresh-container {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: var(--fresh-container-max-width-default);
	margin-inline: auto;
	padding-inline: var(--fresh-container-gutter-current);
}

.fresh-container--narrow {
	max-inline-size: var(--fresh-container-max-width-narrow);
}

.fresh-container--default {
	max-inline-size: var(--fresh-container-max-width-default);
}

.fresh-container--wide {
	max-inline-size: var(--fresh-container-max-width-wide);
}

.fresh-container--full {
	max-inline-size: var(--fresh-container-max-width-full);
}

.fresh-heading {
	max-inline-size: 100%;
	margin-block: 0;
	color: var(--fresh-color-text-primary);
	font-family: var(--fresh-typography-font-family-heading);
	font-weight: var(--fresh-typography-font-weight-bold);
	letter-spacing: var(--fresh-typography-letter-spacing-tight);
	overflow-wrap: anywhere;
	text-wrap: balance;
}

h1.fresh-heading {
	font-size: var(--fresh-typography-heading-h1-font-size);
	line-height: var(--fresh-typography-heading-h1-line-height);
}

h2.fresh-heading {
	font-size: var(--fresh-typography-heading-h2-font-size);
	line-height: var(--fresh-typography-heading-h2-line-height);
}

h3.fresh-heading {
	font-size: var(--fresh-typography-heading-h3-font-size);
	line-height: var(--fresh-typography-heading-h3-line-height);
}

h4.fresh-heading {
	font-size: var(--fresh-typography-heading-h4-font-size);
	line-height: var(--fresh-typography-heading-h4-line-height);
}

h5.fresh-heading {
	font-size: var(--fresh-typography-heading-h5-font-size);
	line-height: var(--fresh-typography-heading-h5-line-height);
}

h6.fresh-heading {
	font-size: var(--fresh-typography-heading-h6-font-size);
	line-height: var(--fresh-typography-heading-h6-line-height);
}

.fresh-text {
	max-inline-size: 100%;
	margin-block: 0;
	color: var(--fresh-color-text-secondary);
	font-family: var(--fresh-typography-font-family-body);
	font-size: var(--fresh-typography-body-default-font-size);
	font-weight: var(--fresh-typography-font-weight-regular);
	line-height: var(--fresh-typography-body-default-line-height);
	overflow-wrap: anywhere;
}

.fresh-button {
	display: inline-flex;
	box-sizing: border-box;
	min-block-size: 44px;
	max-inline-size: 100%;
	align-items: center;
	justify-content: center;
	padding-block: var(--fresh-spacing-control-block);
	padding-inline: var(--fresh-spacing-control-inline);
	border: 1px solid var(--fresh-color-action-primary);
	border-radius: var(--fresh-radius-md);
	background: var(--fresh-color-action-primary);
	color: var(--fresh-color-text-inverse);
	font-family: var(--fresh-typography-font-family-body);
	font-size: var(--fresh-typography-label-default-font-size);
	font-weight: var(--fresh-typography-font-weight-semibold);
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition:
		background-color var(--fresh-motion-duration-fast) var(--fresh-motion-easing-standard),
		border-color var(--fresh-motion-duration-fast) var(--fresh-motion-easing-standard),
		transform var(--fresh-motion-duration-fast) var(--fresh-motion-easing-standard);
}

.fresh-button:hover:not(:disabled):not([aria-disabled="true"]) {
	border-color: var(--fresh-color-action-primary-hover);
	background: var(--fresh-color-action-primary-hover);
	transform: translateY(-1px);
}

.fresh-button:active:not(:disabled):not([aria-disabled="true"]) {
	border-color: var(--fresh-color-action-primary-active);
	background: var(--fresh-color-action-primary-active);
	transform: translateY(0);
}

.fresh-button:focus-visible {
	outline: 3px solid var(--fresh-color-focus-ring);
	outline-offset: 3px;
}

.fresh-button:disabled,
.fresh-button[aria-disabled="true"] {
	border-color: var(--fresh-color-action-disabled);
	background: var(--fresh-color-action-disabled);
	color: var(--fresh-color-text-secondary);
	cursor: not-allowed;
	opacity: 0.7;
}

.fresh-button[aria-disabled="true"] {
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.fresh-button {
		transition-duration: 0.01ms;
	}

	.fresh-button:hover:not(:disabled):not([aria-disabled="true"]),
	.fresh-button:active:not(:disabled):not([aria-disabled="true"]) {
		transform: none;
	}
}

/* Experimental composite component library. */

.fresh-hero,
.fresh-cta,
.fresh-card,
.fresh-feature-list,
.fresh-logo-cloud,
.fresh-grid {
	box-sizing: border-box;
	min-inline-size: 0;
}

.fresh-hero {
	padding: var(--fresh-spacing-section-lg) var(--fresh-container-gutter-current);
	border-radius: var(--fresh-radius-lg);
	background: var(--fresh-color-background-surface);
}

.fresh-hero__content {
	display: grid;
	max-inline-size: var(--fresh-container-max-width-narrow);
	gap: var(--fresh-spacing-content-gap);
	margin-inline: auto;
}

.fresh-hero--align-center .fresh-hero__content,
.fresh-cta--align-center {
	justify-items: center;
	text-align: center;
}

.fresh-hero__eyebrow,
.fresh-card__eyebrow {
	color: var(--fresh-color-action-primary);
	font-weight: var(--fresh-typography-font-weight-semibold);
	letter-spacing: var(--fresh-typography-letter-spacing-wide);
	text-transform: uppercase;
}

.fresh-hero__actions,
.fresh-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fresh-spacing-scale-3);
}

.fresh-hero__action--secondary,
.fresh-cta__action--secondary {
	border-color: currentColor;
	background: transparent;
	color: var(--fresh-color-text-inverse);
}

.fresh-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.fresh-grid--gap-sm {
	gap: var(--fresh-spacing-scale-3);
}

.fresh-grid--gap-md {
	gap: var(--fresh-spacing-content-gap);
}

.fresh-grid--gap-lg {
	gap: var(--fresh-spacing-scale-7);
}

.fresh-grid--align-stretch {
	align-items: stretch;
}

.fresh-grid--align-start {
	align-items: start;
}

.fresh-grid--align-center {
	align-items: center;
}

.fresh-card {
	display: grid;
	align-content: start;
	gap: var(--fresh-spacing-scale-4);
	padding: var(--fresh-spacing-scale-6);
	border: 1px solid transparent;
	border-radius: var(--fresh-radius-lg);
	background: var(--fresh-color-background-surface);
}

.fresh-card--outlined {
	border-color: var(--fresh-color-border-default);
	background: var(--fresh-color-background-canvas);
}

.fresh-card--elevated {
	box-shadow: var(--fresh-shadow-md);
}

.fresh-card__action {
	justify-self: start;
}

.fresh-cta {
	display: grid;
	gap: var(--fresh-spacing-content-gap);
	padding: var(--fresh-spacing-section-sm);
	border-radius: var(--fresh-radius-lg);
	background: var(--fresh-color-background-surface);
}

.fresh-hero.fresh-hero--theme-dark,
.fresh-cta.fresh-cta--theme-dark {
	background: var(--fresh-color-background-inverse);
}

.fresh-hero--theme-dark .fresh-heading,
.fresh-hero--theme-dark .fresh-text,
.fresh-cta--theme-dark .fresh-heading,
.fresh-cta--theme-dark .fresh-text {
	color: var(--fresh-color-text-inverse);
}

.fresh-feature-list,
.fresh-logo-cloud {
	display: grid;
	gap: var(--fresh-spacing-content-gap);
	padding-block: var(--fresh-spacing-section-sm);
}

.fresh-feature-list__items,
.fresh-logo-cloud__items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--fresh-spacing-scale-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fresh-feature-list__item {
	display: grid;
	gap: var(--fresh-spacing-scale-2);
	padding-inline-start: var(--fresh-spacing-scale-4);
	border-inline-start: 3px solid var(--fresh-color-action-primary);
}

.fresh-feature-list__item-title,
.fresh-feature-list__item-text,
.fresh-logo-cloud__name {
	font-family: var(--fresh-typography-font-family-body);
	overflow-wrap: anywhere;
}

.fresh-feature-list__item-title {
	color: var(--fresh-color-text-primary);
}

.fresh-feature-list__item-text {
	color: var(--fresh-color-text-secondary);
}

.fresh-logo-cloud__items {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.fresh-logo-cloud__item {
	display: flex;
	min-block-size: 44px;
	align-items: center;
	justify-content: center;
	padding: var(--fresh-spacing-scale-4);
	border: 1px solid var(--fresh-color-border-subtle);
	border-radius: var(--fresh-radius-md);
	text-align: center;
}

.fresh-logo-cloud__link {
	display: inline-flex;
	min-block-size: 44px;
	align-items: center;
	color: var(--fresh-color-text-primary);
	text-decoration: none;
}

.fresh-logo-cloud__link:focus-visible {
	border-radius: var(--fresh-radius-sm);
	outline: 3px solid var(--fresh-color-focus-ring);
	outline-offset: 3px;
}

.fresh-logo-cloud__image {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
	max-block-size: 48px;
	object-fit: contain;
}

@media (min-width: 48em) {
	.fresh-grid--columns-2,
	.fresh-grid--columns-3,
	.fresh-grid--columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (min-width: 64em) {
	.fresh-grid--columns-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fresh-grid--columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

}
