/* ==========================================================================
   Service Section
   ========================================================================== */

.service-section {
	background: #fff;
	padding: 44px 20px 40px;
}

.service-section__inner {
	display: flex;
	flex-direction: column;
	max-width: 1240px;
	margin: 0 auto;
}

.service-section__title {
	margin: 0 0 24px;
	color: #000;
	text-align: center;
	font-family: "EB Garamond", serif;
	font-size: 35px;
	font-weight: 500;
	line-height: 1.2;
}

.service-section__title-accent {
	color: #897c50;
}

.service-section__intro {
	margin: 0 0 32px;
	color: #3a3a3b;
	text-align: center;
	font-size: 16px;
	line-height: 24px;
}

.service-section__intro a,
.service-section__intro a:visited {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.service-section__intro p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.service-section__subheading {
	margin: 0 0 32px;
	color: #002345;
	text-align: center;
	font-family: "EB Garamond", serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.3;
}

/* ---- Cards ---- */

.service-section__cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

.service-section__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: 16px;
	overflow: hidden;
}

.service-section__card-media {
	position: relative;
}

.service-section__card-img {
	display: block;
}

.service-section__card-img--desktop {
	display: none;
}

.service-section__card-title {
	margin: 0;
	color: #fff;
	font-family: "EB Garamond", serif;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.3;
}

.service-section__card-title--photo {
	display: none;
}

.service-section__card-panel {
	background: #002345;
	padding: 26px 20px 30px;
}

.service-section__conditions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.service-section__condition {
	position: relative;
	padding-left: 24px;
}

.service-section__condition::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffc500;
}

.service-section__condition-link,
.service-section__condition-link:visited {
	color: #fff;
	font-size: 15px;
	line-height: 1.55;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.service-section__condition-link:hover {
	color: #ffc500;
}

/* ---- CTA box ---- */

.service-section__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	padding: 40px 20px;
	background: #fff3dc;
	border: 1px solid #c19500;
	border-radius: 16px;
	text-align: center;
}

.service-section__cta-title {
	margin: 0 0 12px;
	color: #000;
	font-family: "EB Garamond", serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
}

.service-section__cta-copy {
	margin: 0;
	color: #3a3a3b;
	font-size: 16px;
	line-height: 24px;
  font-family: 'Lato', sans-serif;
}

.service-section__cta-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.service-section__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 56px;
	padding: 0 24px;
	border-radius: 999px;
	color: #fff;
	font-family: "Lato", sans-serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.service-section__btn:visited {
	color: #fff;
}

.service-section__btn--primary {
	background: #002345;
}

.service-section__btn--primary:hover {
	background: #0e3a6b;
}

.service-section__btn--whatsapp {
	background: #25c552;
}

.service-section__btn--whatsapp:hover {
	background: #1fa847;
}

.service-section__wa-icon {
	display: block;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
}

/* ---- Tablet and up ---- */

@media screen and (min-width: 768px) {
	.service-section {
		padding: 64px 20px;
	}

	.service-section__title {
		margin-bottom: 24px;
		font-size: 44px;
	}

	.service-section__intro {
		max-width: 970px;
		margin: 0 auto 56px;
		font-size: 18px;
		line-height: 28px;
	}

	.service-section__subheading {
		margin-bottom: 26px;
		font-size: 36px;
	}

	.service-section__cards {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 20px;
		margin-bottom: 52px;
	}

	.service-section__card-media {
		aspect-ratio: 4 / 5;
	}

	/* Fill the 4:5 media box; the !important overrides the shared helper's
	   inline height:auto so the photo crops to the box on tablet/desktop. */
	.service-section__card-media img {
		position: absolute;
		inset: 0;
		width: 100% !important;
		height: 100% !important;
		object-fit: cover;
	}

	.service-section__card-img--mobile {
		display: none;
	}

	.service-section__card-img--desktop {
		display: block;
	}

	.service-section__card-title {
		font-size: 22px;
    line-height: 30px;
	}

	.service-section__cta {
		padding: 40px 48px;
	}

	.service-section__cta-title {
		font-size: 26px;
    line-height: 36px;
	}

	.service-section__cta-copy {
		font-size: 18px;
		line-height: 26px;
	}
}

/* ---- Desktop ---- */

@media screen and (min-width: 1280px) {
	.service-section {
		padding: 100px 20px;
	}

	.service-section__cards {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}

	.service-section__card {
		position: relative;
	}

	.service-section__card-title--photo {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		padding: 24px;
		background: linear-gradient(360deg, #000000 -43%, rgba(0, 0, 0, 0) 100%);

	}

	/* The condition list follows the same text as mobile, revealed as a
	   hover/focus overlay so every condition link stays reachable. */
	.service-section__card-panel {
		position: absolute;
		inset: 0;
		z-index: 2;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		padding: 24px 20px;
		background: rgba(0, 35, 69, 0.96);
		overflow-y: auto;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	.service-section__card:hover .service-section__card-panel,
	.service-section__card:focus-within .service-section__card-panel {
		opacity: 1;
		pointer-events: auto;
	}

	.service-section__conditions {
		gap: 7px;
	}

	.service-section__condition-link {
		font-size: 15px;
		line-height: 1.45;
	}
}

/* ---- CTA row layout once the text and buttons fit side by side ---- */

@media screen and (min-width: 1024px) {
	.service-section__cta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
		padding: 40px 60px;
		text-align: left;
	}

	.service-section__cta-text {
		max-width: 430px;
	}

	.service-section__cta-title {
		margin-bottom: 14px;
	}

	.service-section__cta-actions {
		flex: 0 0 340px;
		width: 340px;
	}

	.service-section__btn {
		height: 66px;
		font-size: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.service-section__card-panel,
	.service-section__btn {
		transition: none;
	}
}
