/*
 * Inprodi Cards — scoped, self-contained section styles.
 *
 * Namespaced under .inprodi-cards, no global reset. Sky background (one unit with About Text above). The header
 * row has the title (left, capped at 790px) and a CTA button (right); it stacks
 * on mobile. Below, a Swiper carousel of fixed 356x446 cards, aligned to the
 * 1280px grid on the left and bleeding to the right edge (~3.5 on desktop).
 */

.inprodi-cards,
.inprodi-cards *,
.inprodi-cards *::before,
.inprodi-cards *::after {
	box-sizing: border-box;
}

.inprodi-cards {
	width: 100%;
	background-color: #f8eee7; /* brand cream — unified light home background */
	padding-top: 24px; /* merges with About Text above (one unit); 40px from md up */
	padding-bottom: 56px;
}

/* Outer container: matches the hero's 1280px grid. */
.inprodi-cards__container {
	width: 100%;
	max-width: 80rem; /* max-w-7xl */
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem; /* px-4 */
	padding-right: 1rem;
}

/* Optional heading above the carousel — same eyebrow + two-line Playfair title
   as the values/about-text sections, but left-aligned to the carousel's grid.
   Renders only when the widget has copy for it, so older placements keep their
   original top spacing. */
.inprodi-cards__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 28px;
}

.inprodi-cards__eyebrow {
	color: #cf8a44;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.inprodi-cards__title {
	margin: 0;
	display: flex;
	flex-direction: column;
	color: #3e2618;
	font-family: 'Playfair Display', serif;
	font-weight: 500;
	font-size: 2rem; /* 32px mobile */
	line-height: 1.15;
}

.inprodi-cards__title span { text-transform: none; letter-spacing: normal; }

.inprodi-cards__title .inprodi-cards__it {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 1.15em;
	line-height: 1.25;
	letter-spacing: 0;
	text-indent: 0;
	-webkit-text-stroke: 0.4px currentColor;
	color: #3e2618;
}

/* CTA — section-specific style: text with an underline (no pill, no chevron). */
.inprodi-cards__btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 0 0 6px; /* just enough room for the line under the text */
	background: transparent;
	border: 0;
	border-bottom: 1px solid #111827; /* the line below */
	border-radius: 0;
	color: #111827;
	font-family: var(--nk-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.inprodi-cards__btn:hover {
	color: #204782;
	border-color: #204782;
}

/* Chevron isn't used in the text+underline style. */
.inprodi-cards__btn-icon {
	display: none;
}

/* Button row below the carousel, centered. */
.inprodi-cards__actions {
	margin-top: 44px;
	text-align: center;
}

/* Carousel arrows — small circle buttons, top-right above the carousel. */
.inprodi-cards__controls {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 20px;
}

.inprodi-cards__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #e6d5c1;
	border-radius: 9999px;
	background: #fbf4ea;
	color: #111827;
	cursor: pointer;
	transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.inprodi-cards__nav:hover {
	border-color: #204782;
	color: #204782;
}

.inprodi-cards__nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.inprodi-cards__nav.swiper-button-disabled:hover {
	border-color: #e5e7eb;
	color: #111827;
}

/* Swiper locks navigation when all slides already fit — hide the arrows then. */
.inprodi-cards__nav.swiper-button-lock {
	display: none;
}

/* Carousel: full width, first card aligned to the content grid on the left,
   bleeding to the right edge. slidesPerView:'auto' keeps the fixed card width. */
.inprodi-cards__carousel {
	margin-top: 0;
	width: 100%;
	overflow: hidden;
	padding-left: 1rem; /* aligns with the container on small screens */
}

.inprodi-cards__carousel .swiper-wrapper {
	align-items: stretch;
}

/* Card */
.inprodi-card {
	position: relative;
	flex-shrink: 0;
	width: 356px;
	height: 446px;
	border-radius: 20px;
	overflow: hidden;
	background-color: #e5e7eb; /* fallback until an image is set */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end; /* title at the bottom */
}

/* Bottom gradient so the white title/route stay legible over any image. */
.inprodi-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 65%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
	pointer-events: none;
}

/* "Popular" / featured badge — top-left, solid so it reads over any photo. */
/* Whole-card link overlay — makes the card open the inspiración detail page. */
.inprodi-card__link {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
}

.inprodi-card__badge {
	position: absolute;
	z-index: 2;
	top: 16px;
	left: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: #204782;
	color: #ffffff;
	font-family: var(--nk-font-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Package title + destination route, both bottom-anchored over the gradient. */
.inprodi-card__text {
	position: relative;
	z-index: 1;
	padding: 24px;
}

.inprodi-card__title {
	margin: 0;
	color: #ffffff;
	/* Body font (matches the card route / paragraph text), not Playfair. */
	font-family: var(--nk-font-sans) !important;
	font-weight: 500; /* medium — lighter than before */
	font-size: 20px;
	line-height: 1.25;
	/* No forced capitalization — the title reads exactly as authored. */
}

.inprodi-card__route {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-family: var(--nk-font-sans);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.inprodi-card__route-icon {
	flex-shrink: 0;
	margin-top: 3px; /* optically aligns with the first line of text */
}

/* sm */
@media (min-width: 640px) {
	.inprodi-cards__container {
		padding-left: 1.5rem; /* sm:px-6 */
		padding-right: 1.5rem;
	}
	.inprodi-cards__carousel {
		padding-left: 1.5rem;
	}
}

/* md */
@media (min-width: 768px) {
	.inprodi-cards {
		padding-top: 40px;
		padding-bottom: 96px;
	}
	.inprodi-cards__head {
		margin-bottom: 36px;
	}
	.inprodi-cards__title {
		font-size: 3rem; /* 48px — matches the values/about-text scale */
	}
}

/* lg */
@media (min-width: 1024px) {
	.inprodi-cards__container {
		padding-left: 2rem; /* lg:px-8 */
		padding-right: 2rem;
	}
	/* Align the first card with the 1280px grid; bleed to the right edge. */
	.inprodi-cards__carousel {
		padding-left: max(2rem, calc((100% - 80rem) / 2 + 2rem));
	}
}
