﻿/* ==========================================================================
   OFSA â€” landing page.
   Layout after the approved Officina Sanitatis reference: warm paper,
   ink serif typography, ring icons, a stained-glass hero photograph
   behind a readability veil, walnut stat band and hairline rules.
   Content and section order are unchanged â€” only the dressing moved.
   ========================================================================== */

.ofsa-landing {
	margin: 0;
	font-family: var(--ofsa-font-body);
	color: var(--ofsa-ink-soft);
	background-color: var(--ofsa-paper);
}

.ofsa-landing h1,
.ofsa-landing h2,
.ofsa-landing h3,
.ofsa-landing h4 {
	margin: 0;
}

.ofsa-landing section {
	box-sizing: border-box;
}

/* ---------- Shared building blocks ---------- */

.ofsa-section-head {
	max-width: 780px;
	margin: 0 0 44px;
}

.ofsa-section-title {
	color: var(--ofsa-ink);
	font-size: var(--ofsa-h2);
	font-weight: 500;
	line-height: var(--ofsa-lh-head);
	letter-spacing: -0.005em;
	margin: 0;
}

.ofsa-section-intro {
	color: var(--ofsa-ink-muted);
	font-size: var(--ofsa-lead);
	line-height: 1.55;
	margin: 18px 0 0;
	max-width: 56ch;
}

.ofsa-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

/* Fleuron ornament separating major sections */
.ofsa-divider {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0 0 var(--ofsa-section-y);
}

.ofsa-divider::before,
.ofsa-divider::after {
	content: "";
	height: 1px;
	background: var(--ofsa-line);
	flex: 1;
}

.ofsa-divider svg {
	width: 44px;
	height: 30px;
	color: var(--ofsa-olive-soft);
	flex: none;
}

/* ---------- Hero ---------- */

.ofsa-hero {
	position: relative;
	background: var(--ofsa-cream);
	overflow: hidden;
}

.ofsa-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.ofsa-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 30%;
}

/* Readability veil â€” the stained glass stays visible on the right,
   the text side fades to cream. */
.ofsa-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg,
		#f5f2ec 0%,
		#f5f2ec 34%,
		rgba(245, 242, 236, 0.94) 44%,
		rgba(245, 242, 236, 0.55) 56%,
		rgba(245, 242, 236, 0) 72%);
}

.ofsa-hero > .ofsa-container,
.ofsa-hero .ofsa-hero-inner {
	position: relative;
	z-index: 1;
}

.ofsa-hero-content {
	max-width: 640px;
	padding-block: clamp(56px, 6vw, 96px);
	min-height: 420px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

.ofsa-hero-content h1 {
	color: var(--ofsa-ink);
	font-size: var(--ofsa-h1);
	line-height: var(--ofsa-lh-tight);
	text-wrap: balance;
	margin: 0 0 22px;
}

.ofsa-hero-lead {
	color: var(--ofsa-ink-muted);
	font-size: var(--ofsa-lead);
	line-height: 1.55;
	margin: 0 0 18px;
	max-width: 46ch;
}

.ofsa-hero-text,
.ofsa-hero-body p {
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-base);
	line-height: var(--ofsa-lh-body);
	margin: 0 0 14px;
	max-width: 58ch;
}

.ofsa-hero-body {
	margin-bottom: 8px;
}

.ofsa-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 28px;
}

.ofsa-hero-author {
	border-top: 1px solid var(--ofsa-line-strong);
	padding-top: 20px;
	margin-top: 34px;
}

.ofsa-hero-author strong {
	display: block;
	font-family: var(--ofsa-font-body);
	font-size: var(--ofsa-caps);
	font-weight: 600;
	letter-spacing: var(--ofsa-caps-ls);
	text-transform: uppercase;
	color: var(--ofsa-ink);
	margin-bottom: 6px;
}

.ofsa-hero-author span {
	display: block;
	font-size: var(--ofsa-base);
	line-height: 1.6;
	color: var(--ofsa-ink-muted);
	max-width: 52ch;
}

/* Hero entrance */
@keyframes ofsa-fade-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ofsa-hero-content > * {
	animation: ofsa-fade-up 0.6s ease both;
}

.ofsa-hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.ofsa-hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.ofsa-hero-content > *:nth-child(3) { animation-delay: 0.19s; }
.ofsa-hero-content > *:nth-child(4) { animation-delay: 0.26s; }
.ofsa-hero-content > *:nth-child(5) { animation-delay: 0.33s; }
.ofsa-hero-content > *:nth-child(6) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
	.ofsa-hero-content > * {
		animation: none;
	}
}

/* ---------- W czym mogÄ™ pomĂłc (feature tiles) ---------- */

.ofsa-help {
	padding: var(--ofsa-section-y) 0;
}

.ofsa-feature-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--ofsa-gap);
}

@media (min-width: 760px) {
	.ofsa-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1080px) {
	.ofsa-feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ofsa-feature {
	display: grid;
	grid-template-columns: var(--ofsa-ring) 1fr;
	grid-template-rows: auto;
	grid-template-areas:
		'icon title'
		'icon text';
	column-gap: 22px;
	row-gap: 12px;
	align-items: start;
	background: var(--ofsa-paper-2);
	border: 1px solid var(--ofsa-line);
	border-radius: var(--ofsa-radius);
	padding: 28px 26px;
	transition: border-color 0.2s ease;
}

.ofsa-feature:hover,
.ofsa-feature:focus-within {
	border-color: var(--ofsa-olive-soft);
}

.ofsa-feature-icon {
	grid-area: icon;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ofsa-ring);
	height: var(--ofsa-ring);
	border: 1.6px solid var(--ofsa-olive-soft);
	border-radius: 50%;
	color: var(--ofsa-olive);
	background: var(--ofsa-paper-2);
	margin: 0;
}

.ofsa-feature-icon svg {
	width: 34px;
	height: 34px;
}

.ofsa-feature h3 {
	grid-area: title;
	color: var(--ofsa-ink);
	font-size: var(--ofsa-h3);
	line-height: 1.3;
	font-weight: 500;
	margin: 0;
	align-self: end;
}

.ofsa-feature h3 + p {
	margin-bottom: 0;
}

.ofsa-feature p {
	grid-area: text;
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-small);
	line-height: 1.6;
	margin: 0;
	align-self: start;
}

/* Widget titles hidden by markup, kept safe if the attribute returns */
.ofsa-feature-no {
	display: none;
}

/* ---------- Stat band (walnut wood) ---------- */

.ofsa-stat {
	position: relative;
	background-color: var(--ofsa-brown);
	padding: clamp(56px, 6vw, 88px) 0;
	overflow: hidden;
}

.ofsa-stat::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, rgba(196, 41, 31, 0.6) 0 33.33%, rgba(14, 122, 73, 0.6) 33.33% 66.66%, rgba(198, 154, 51, 0.6) 66.66% 100%);
	opacity: 0.6;
}

.ofsa-stat-bottle {
	position: absolute;
	right: 4%;
	top: 50%;
	transform: translateY(-50%);
	width: clamp(160px, 18vw, 260px);
	height: auto;
	color: #f1e5c9;
	opacity: 0.14;
	pointer-events: none;
}

.ofsa-stat-inner {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
	position: relative;
}

.ofsa-stat-number {
	font-family: var(--ofsa-font-display);
	font-size: clamp(58px, 7vw, 100px);
	line-height: 1;
	font-weight: 500;
	color: var(--ofsa-gold-2);
	margin: 0;
	white-space: nowrap;
}

.ofsa-stat-text {
	font-size: var(--ofsa-lead);
	line-height: 1.6;
	color: rgba(248, 245, 239, 0.92);
	margin: 0;
	max-width: 56ch;
}

.ofsa-stat-text strong {
	color: #f8f5ef;
}

/* ---------- Moje podejĹ›cie ---------- */

.ofsa-approach {
	padding: var(--ofsa-section-y) 0;
}

.ofsa-approach-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(32px, 4vw, 64px);
	align-items: center;
}

.ofsa-approach-plate {
	margin: 0;
	max-height: 560px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--ofsa-sand);
	border: 1px solid var(--ofsa-line);
	box-sizing: border-box;
}

.ofsa-approach-plate img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 55% 50%;
	display: block;
}

.ofsa-approach .ofsa-section-title {
	margin-bottom: 28px;
}

.ofsa-approach-statement {
	font-family: var(--ofsa-font-display);
	font-size: var(--ofsa-h2);
	line-height: 1.3;
	font-weight: 500;
	color: var(--ofsa-ink);
	margin: 0 0 48px;
	max-width: 24ch;
	text-wrap: balance;
}

.ofsa-principles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ofsa-principles li {
	border-top: 2px solid var(--ofsa-gold);
	padding-top: 20px;
}

.ofsa-principles strong {
	display: block;
	font-family: var(--ofsa-font-display);
	font-size: 22px;
	font-weight: 500;
	color: var(--ofsa-ink);
	margin-bottom: 8px;
}

.ofsa-principles span {
	font-size: var(--ofsa-small);
	line-height: 1.6;
	color: var(--ofsa-ink-soft);
}

@media (min-width: 1080px) {
	.ofsa-approach-inner {
		grid-template-columns: minmax(280px, 34%) 1fr;
	}
}

.ofsa-approach-body {
	padding: 0;
	box-sizing: border-box;
}

/* ---------- Jak to dziaĹ‚a (process) ---------- */

.ofsa-process {
	padding: var(--ofsa-section-y) 0;
	background: var(--ofsa-paper-2);
	border-top: 1px solid var(--ofsa-line);
	border-bottom: 1px solid var(--ofsa-line);
}

.ofsa-step-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ofsa-gap);
	margin: 0;
	padding: 0;
}

.ofsa-step {
	background: var(--ofsa-paper-2);
	border: 1px solid var(--ofsa-line);
	border-radius: var(--ofsa-radius);
	padding: 28px 26px;
	transition: border-color 0.2s ease;
}

.ofsa-step:hover {
	border-color: var(--ofsa-olive-soft);
}

.ofsa-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1.6px solid var(--ofsa-olive-soft);
	border-radius: 50%;
	background: var(--ofsa-paper-2);
	color: var(--ofsa-olive);
	font-family: var(--ofsa-font-display);
	font-size: 22px;
	line-height: 1;
	margin-bottom: 18px;
}

.ofsa-step h3 {
	color: var(--ofsa-ink);
	font-size: var(--ofsa-h3);
	line-height: 1.3;
	font-weight: 500;
	margin: 0 0 10px;
}

.ofsa-step p {
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-small);
	line-height: 1.6;
	margin: 0;
}

.ofsa-process-note {
	display: flex;
	align-items: center;
	gap: 14px;
	background: transparent;
	border: 0;
	border-top: 1px solid var(--ofsa-line-strong);
	border-radius: 0;
	padding: 24px 0 0;
	margin-top: 44px;
}

.ofsa-process-note svg {
	width: 22px;
	height: 22px;
	color: var(--ofsa-glass);
	flex-shrink: 0;
}

.ofsa-process-note p {
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-base);
	line-height: 1.6;
	margin: 0;
}

.ofsa-process-note strong {
	color: var(--ofsa-glass);
}

.ofsa-process .ofsa-cta-row {
	justify-content: center;
}

/* ---------- O mnie ---------- */

.ofsa-about {
	padding: var(--ofsa-section-y) 0;
}

.ofsa-about-inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 64px;
	align-items: start;
}

.ofsa-about-media {
	background: var(--ofsa-paper-2);
	border: 1px solid var(--ofsa-line-strong);
	padding: 12px;
	box-shadow: var(--ofsa-shadow-sm);
}

.ofsa-about-media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.ofsa-about-meta {
	margin: 14px 0 0;
	font-size: var(--ofsa-caps);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ofsa-ink-muted);
}

.ofsa-about-copy .ofsa-section-title {
	margin-bottom: 24px;
}

.ofsa-about-copy p {
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-base);
	line-height: 1.7;
	margin: 0 0 20px;
	max-width: var(--ofsa-measure);
}

.ofsa-about-why {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--ofsa-line-strong);
	border-radius: 0;
	padding: 22px 0 0;
	margin: 28px 0 0;
	color: var(--ofsa-ink-soft) !important;
}

.ofsa-about-why strong {
	color: var(--ofsa-glass);
}

/* ---------- UsĹ‚ugi i cennik ---------- */

.ofsa-services {
	padding: var(--ofsa-section-y) 0;
}

.ofsa-services-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 44px;
}

.ofsa-services-head .ofsa-section-head {
	margin-bottom: 0;
}

.ofsa-services-cta {
	flex: 0 0 auto;
}

.ofsa-pricing {
	display: grid;
	gap: var(--ofsa-gap);
}

/* Featured card â€” 2 px burgundy border, larger ring, no colour fill */
.ofsa-price-featured {
	position: relative;
	background: var(--ofsa-paper-2);
	border: 2px solid var(--ofsa-accent);
	border-radius: var(--ofsa-radius);
	padding: 40px;
}

.ofsa-price-featured-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: 28px;
	margin-bottom: 28px;
}

.ofsa-price-featured-icon,
.ofsa-price-card-icon {
	color: var(--ofsa-olive);
	margin: 0;
}

.ofsa-price-featured-icon svg,
.ofsa-price-card-icon svg {
	display: block;
	width: 96px;
	height: 96px;
}

.ofsa-price-tag {
	display: inline-block;
	font-size: var(--ofsa-caps);
	font-weight: 600;
	letter-spacing: var(--ofsa-caps-ls);
	text-transform: uppercase;
	color: var(--ofsa-olive);
	margin-bottom: 12px;
}

.ofsa-price-featured-head h3 {
	color: var(--ofsa-ink);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	line-height: 1.2;
	font-weight: 500;
}

.ofsa-price-featured-head > div > p {
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-base);
	line-height: 1.6;
	margin: 12px 0 0;
	max-width: 52ch;
}

.ofsa-price-amount {
	font-family: var(--ofsa-font-display);
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 500;
	line-height: 1;
	color: var(--ofsa-ink);
	white-space: nowrap;
	margin: 0;
}

.ofsa-price-featured h4 {
	color: var(--ofsa-ink);
	font-family: var(--ofsa-font-body);
	font-size: var(--ofsa-base);
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 0 0 18px;
}

.ofsa-price-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px 40px;
	margin: 0 0 26px;
	padding: 0;
}

.ofsa-price-list li {
	position: relative;
	padding-left: 24px;
	font-size: var(--ofsa-base);
	line-height: 1.6;
	color: var(--ofsa-ink-soft);
}

.ofsa-price-list li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 10px;
	width: 7px;
	height: 7px;
	transform: rotate(45deg);
	background: var(--ofsa-gold);
}

.ofsa-price-note {
	font-size: var(--ofsa-small);
	line-height: 1.6;
	color: var(--ofsa-glass);
	margin: 0 0 8px;
}

/* Service cards */
.ofsa-price-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--ofsa-gap);
}

.ofsa-price-card {
	display: flex;
	flex-direction: column;
	background: var(--ofsa-paper-2);
	border: 1px solid var(--ofsa-line);
	border-radius: var(--ofsa-radius);
	padding: 28px 26px;
	transition: border-color 0.2s ease;
}

.ofsa-price-card:hover {
	border-color: var(--ofsa-olive-soft);
}

.ofsa-price-card-icon {
	margin: 0 0 18px;
}

.ofsa-price-card-icon svg {
	width: var(--ofsa-ring);
	height: var(--ofsa-ring);
}

.ofsa-price-card h3 {
	color: var(--ofsa-ink);
	font-size: var(--ofsa-h3);
	line-height: 1.3;
	font-weight: 500;
	margin: 0 0 10px;
}

.ofsa-price-card .ofsa-price-amount {
	font-size: 32px;
	margin: 0 0 14px;
}

.ofsa-price-card p {
	color: var(--ofsa-ink-soft);
	font-size: var(--ofsa-small);
	line-height: 1.6;
	margin: 0 0 14px;
}

.ofsa-price-card ul {
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
}

.ofsa-price-card ul li {
	position: relative;
	padding-left: 22px;
	font-size: var(--ofsa-small);
	line-height: 1.55;
	color: var(--ofsa-ink-soft);
	margin-bottom: 8px;
}

.ofsa-price-card ul li::before {
	content: '';
	position: absolute;
	left: 3px;
	top: 9px;
	width: 6px;
	height: 6px;
	transform: rotate(45deg);
	background: var(--ofsa-gold);
}

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

@media (max-width: 1024px) {
	.ofsa-step-grid,
	.ofsa-price-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ofsa-about-inner {
		gap: 44px;
	}
}

@media (max-width: 899px) {
	.ofsa-hero-media img {
		object-position: 60% 25%;
	}

	.ofsa-hero-media::after {
		background: linear-gradient(180deg,
			rgba(245, 242, 236, 0.97) 0%,
			rgba(245, 242, 236, 0.93) 55%,
			rgba(245, 242, 236, 0.8) 100%);
	}
}

@media (max-width: 768px) {
	.ofsa-hero-actions,
	.ofsa-cta-row {
		flex-direction: column;
		align-items: stretch;
	}

	.ofsa-hero-actions .ofsa-btn,
	.ofsa-cta-row .ofsa-btn {
		width: 100%;
	}

	.ofsa-section-head {
		margin-bottom: 40px;
	}

	.ofsa-services-head {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 40px;
	}

	.ofsa-services-cta {
		width: 100%;
	}

	.ofsa-step-grid,
	.ofsa-price-grid,
	.ofsa-principles {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ofsa-feature {
		grid-template-columns: 1fr;
		grid-template-areas:
			'icon'
			'title'
			'text';
		justify-items: start;
	}

	.ofsa-stat-inner {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ofsa-stat-bottle {
		display: none;
	}

	.ofsa-approach-statement {
		margin-bottom: 36px;
	}

	.ofsa-price-featured {
		padding: 28px 22px;
	}

	.ofsa-price-featured-head {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.ofsa-price-featured-icon svg {
		width: 76px;
		height: 76px;
	}

	.ofsa-price-list {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.ofsa-price-card-icon svg {
		width: 64px;
		height: 64px;
	}

	.ofsa-process-note {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}
