/* Flip Services Grid — Styles */

.fsg-wrapper {
	width: 100%;
	--fsg-flip-duration: 700ms;
}

.fsg-section {
	background-color: #faf6ef;
	padding: 80px 0;
	box-sizing: border-box;
}

.fsg-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
	box-sizing: border-box;
}

/* ---------------- Header ---------------- */
.fsg-header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 48px auto;
}

.fsg-eyebrow {
	font-size: 12px;
	letter-spacing: 2px;
	font-weight: 700;
	color: #5c7a63;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.fsg-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	margin: 0 0 18px 0;
	line-height: 1.15;
}

.fsg-title-line {
	display: block;
	font-size: 40px;
}

.fsg-title-normal {
	font-weight: 700;
	color: #25352a;
}

.fsg-title-italic {
	font-style: italic;
	font-weight: 400;
	color: #6b8f74;
}

.fsg-subtitle {
	font-size: 16px;
	line-height: 1.7;
	color: #5c6b60;
	margin: 0 0 10px 0;
}

.fsg-hint {
	font-size: 13px;
	color: #8a9a8f;
	margin: 0;
}

/* ---------------- Grid ---------------- */
.fsg-grid {
	--fsg-cols: 3;
	--fsg-gap: 24px;
	display: grid;
	grid-template-columns: repeat(var(--fsg-cols), 1fr);
	gap: var(--fsg-gap);
	margin-bottom: 20px;
}

/* ---------------- Flip mechanics ---------------- */
.fsg-flip-card {
	perspective: 1600px;
}

.fsg-flip-inner {
	position: relative;
	width: 100%;
	height: 380px;
	--fsg-hover-lift: 0px;
	transform: translateY(0) rotateY(0deg);
	transform-style: preserve-3d;
	transition: transform var(--fsg-flip-duration) cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
	cursor: pointer;
}

.fsg-flip-card:hover .fsg-flip-inner,
.fsg-flip-card.fsg-flipped .fsg-flip-inner {
	transform: translateY(var(--fsg-hover-lift, 0px)) rotateY(180deg);
}

.fsg-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	border-radius: 10px;
	overflow: hidden;
	box-sizing: border-box;
}

.fsg-face-front {
	transform: rotateY(0deg);
}

.fsg-face-back {
	transform: rotateY(180deg);
	background-color: var(--fsg-accent, #25352a);
	padding: 30px 28px;
	display: flex;
	flex-direction: column;
}

/* ---------------- Front face ---------------- */
.fsg-front-image {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	object-position: center;
}

.fsg-front-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--fsg-accent, #25352a) 42%, rgba(0, 0, 0, 0) 92%);
	opacity: 0.92;
}

.fsg-front-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px 24px 18px 24px;
	box-sizing: border-box;
	color: #ffffff;
}

.fsg-front-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	font-size: 14px;
	margin-bottom: 10px;
}

.fsg-front-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.fsg-front-title {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 4px 0;
}

.fsg-front-subtitle {
	font-size: 10px;
	letter-spacing: 1px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
	text-transform: uppercase;
	margin-bottom: 12px;
}

.fsg-front-list,
.fsg-back-list {
	list-style: none;
	margin: 0 0 8px 0;
	padding: 0;
}

.fsg-front-list li,
.fsg-back-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.6;
	margin-bottom: 4px;
}

.fsg-front-list {
	color: rgba(255, 255, 255, 0.85);
}

.fsg-check {
	flex-shrink: 0;
	font-size: 11px;
	line-height: 1.6;
}

.fsg-flip-hint {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 8px;
}

/* ---------------- Back face ---------------- */
.fsg-back-specialty {
	font-size: 10px;
	letter-spacing: 1.5px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.65);
	text-transform: uppercase;
	margin-bottom: 10px;
}

.fsg-back-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 21px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 12px 0;
}

.fsg-back-desc {
	font-size: 13px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 16px 0;
}

.fsg-back-list {
	color: rgba(255, 255, 255, 0.85);
	flex: 1;
}

.fsg-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	text-decoration: none;
	padding: 12px 18px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	margin-top: auto;
	transition: background-color 0.3s ease;
}

.fsg-back-btn:hover {
	background-color: rgba(255, 255, 255, 0.28);
}

.fsg-back-btn-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.fsg-back-btn:hover .fsg-back-btn-arrow {
	transform: translateX(4px);
}

/* ---------------- Bottom hint & buttons ---------------- */
.fsg-bottom-hint {
	text-align: center;
	font-size: 13px;
	color: #7c8f81;
	margin: 0 0 28px 0;
}

.fsg-footer-buttons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.fsg-footer-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	padding: 16px 28px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	box-sizing: border-box;
	transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.fsg-btn-1 {
	background-color: #c9954e;
	color: #ffffff;
}

.fsg-btn-1:hover {
	background-color: #b5813a;
	box-shadow: 0 14px 32px -10px rgba(201, 149, 78, 0.4);
	transform: translateY(-3px);
}

.fsg-btn-2 {
	background-color: transparent;
	color: #25352a;
	border: 1px solid rgba(37, 53, 42, 0.25);
}

.fsg-btn-2:hover {
	background-color: rgba(37, 53, 42, 0.06);
}

.fsg-btn2-icon {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
}

.fsg-btn2-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.fsg-btn-arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.fsg-btn-1:hover .fsg-btn-arrow {
	transform: translateX(4px);
}

/* ---------------- Entrance animation ---------------- */
.fsg-wrapper[data-entrance="true"] .fsg-entrance-item {
	opacity: 0;
	transform: translateY(28px);
}

.fsg-wrapper[data-entrance="true"] .fsg-entrance-item.fsg-in-view {
	animation-name: fsgFadeUp;
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
	animation-fill-mode: forwards;
}

@keyframes fsgFadeUp {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 991px) {
	.fsg-grid { --fsg-cols: 2; }
	.fsg-title-line { font-size: 32px; }
	.fsg-container { padding: 0 24px; }
	.fsg-section { padding: 60px 0; }
}

@media (max-width: 600px) {
	.fsg-grid { --fsg-cols: 1; }
	.fsg-title-line { font-size: 28px; }
	.fsg-flip-inner { height: 420px; }
}
