/* ==========================================================================
   Ambees Catalogue Display
   Palette lifted from ambeesengraving.com:
   deep forest green, cyan highlight, teal accent, white cards.
   ========================================================================== */

.ambcat {
	--ambcat-green:        #0b4a33;
	--ambcat-green-deep:   #073522;
	--ambcat-green-mid:    #11654a;
	--ambcat-cyan:         #3fa8c4;   /* "View More" button, "Trusted Nationwide" */
	--ambcat-teal:         #2fa79a;   /* "Engraved." */
	--ambcat-ink:          #231f1e;
	--ambcat-muted:        #55625c;
	--ambcat-line:         #e3eae6;
	--ambcat-surface:      #ffffff;
	--ambcat-radius:       16px;
	--ambcat-radius-sm:    10px;
	--ambcat-shadow:       0 8px 28px rgba(11, 74, 51, .08);
	--ambcat-shadow-hover: 0 14px 34px rgba(11, 74, 51, .14);
	--ambcat-font:         inherit;   /* follows the theme's body font */

	font-family: var(--ambcat-font);
	color: var(--ambcat-ink);
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */

.ambcat-section {
	position: relative;
	margin: 0 0 64px;
}

.ambcat-section:last-child {
	margin-bottom: 0;
}

.ambcat-section__head {
	margin-bottom: 28px;
	max-width: 640px;
}

/* Pill label, same shape as "About us" / "Our Statistic" on the site */
.ambcat-badge {
	display: inline-block;
	padding: 6px 18px;
	margin-bottom: 16px;
	border: 1px solid rgba(11, 74, 51, .45);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ambcat-green);
	background: transparent;
}

.ambcat-section__title {
	margin: 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ambcat-green);
	text-transform: capitalize;
}

.ambcat-section__desc {
	margin-top: 12px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ambcat-muted);
}

.ambcat-section__desc p:last-child {
	margin-bottom: 0;
}

.ambcat-empty {
	color: var(--ambcat-muted);
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */

.ambcat-carousel-wrap {
	position: relative;
}

/* Owl gives each item a flex box so cards stretch to equal height */
.ambcat-carousel .owl-stage {
	display: flex;
}

.ambcat-carousel .owl-item {
	display: flex;
	height: auto;
}

.ambcat-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 14px 14px 6px;
	background: var(--ambcat-surface);
	border: 1px solid var(--ambcat-line);
	border-radius: var(--ambcat-radius);
	box-shadow: var(--ambcat-shadow);
	transition: box-shadow .3s ease, transform .3s ease;
}

.ambcat-card:hover,
.ambcat-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--ambcat-shadow-hover);
}

.ambcat-card__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--ambcat-radius-sm);
	background: #f2f5f3;
}

.ambcat-card__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ambcat-radius-sm);
	transition: transform .5s ease;
}

.ambcat-card:hover .ambcat-card__img {
	transform: scale(1.04);
}

.ambcat-card__img--empty {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: repeating-linear-gradient(45deg, #eef2f0, #eef2f0 10px, #e6ece9 10px, #e6ece9 20px);
}

.ambcat-card__title {
	margin: 16px 0 4px;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--ambcat-green);
}

.ambcat-card__actions {
	margin-top: auto;
	padding-top: 6px;
}

.ambcat-card__empty {
	margin: auto 0 12px;
	padding-top: 10px;
	font-size: 13px;
	color: var(--ambcat-muted);
}

/* Action rows: label left, icon right, hairline underneath */
.ambcat-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 2px 9px;
	font-size: 13.5px;
	line-height: 1.3;
	text-decoration: none;
	color: var(--ambcat-ink);
	border-bottom: 1px solid rgba(11, 74, 51, .25);
	transition: color .25s ease, border-color .25s ease;
}

.ambcat-action:last-child {
	border-bottom: 0;
}

.ambcat-action__icon {
	display: inline-flex;
	color: var(--ambcat-teal);
	transition: transform .25s ease, color .25s ease;
}

.ambcat-action:hover,
.ambcat-action:focus-visible {
	color: var(--ambcat-green);
	border-color: var(--ambcat-green);
}

.ambcat-action:hover .ambcat-action__icon {
	color: var(--ambcat-green);
	transform: translateX(2px);
}

.ambcat-action:focus-visible,
.ambcat-nav__btn:focus-visible {
	outline: 2px solid var(--ambcat-cyan);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Navigation arrows
   -------------------------------------------------------------------------- */

.ambcat-nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	pointer-events: none;
}

.ambcat-nav[hidden] {
	display: none;
}

.ambcat-nav__btn {
	pointer-events: auto;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1.5px solid var(--ambcat-green);
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--ambcat-green);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(11, 74, 51, .12);
	transition: background .25s ease, color .25s ease, transform .25s ease;
	/* script.js measures the cover image and centres the arrows on it */
	transform: translateY(var(--ambcat-nav-offset, 90px));
}

.ambcat-prev {
	margin-left: -23px;
}

.ambcat-next {
	margin-right: -23px;
}

.ambcat-nav__btn:hover {
	background: var(--ambcat-green);
	color: #fff;
}

.ambcat-nav__btn:active {
	transform: translateY(var(--ambcat-nav-offset, 90px)) scale(.95);
}

/* --------------------------------------------------------------------------
   Dark variant, for placing the block on the green band
   -------------------------------------------------------------------------- */

.ambcat--dark {
	padding: 64px clamp(20px, 5vw, 64px);
	border-radius: 0;
	background: linear-gradient(120deg, var(--ambcat-green-deep) 0%, var(--ambcat-green-mid) 100%);
	color: #fff;
}

.ambcat--dark .ambcat-section__title {
	color: #fff;
}

.ambcat--dark .ambcat-section__desc {
	color: rgba(255, 255, 255, .82);
}

.ambcat--dark .ambcat-badge {
	color: #fff;
	border-color: rgba(255, 255, 255, .5);
}

.ambcat--dark .ambcat-card {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .16);
	box-shadow: none;
	backdrop-filter: blur(2px);
}

.ambcat--dark .ambcat-card__title {
	color: #fff;
}

.ambcat--dark .ambcat-action {
	color: rgba(255, 255, 255, .88);
	border-color: rgba(255, 255, 255, .28);
}

.ambcat--dark .ambcat-action:hover {
	color: #fff;
	border-color: var(--ambcat-cyan);
}

.ambcat--dark .ambcat-action__icon {
	color: var(--ambcat-cyan);
}

.ambcat--dark .ambcat-nav__btn {
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .5);
	color: #fff;
}

.ambcat--dark .ambcat-nav__btn:hover {
	background: #fff;
	color: var(--ambcat-green);
}

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

@media (max-width: 1024px) {
	.ambcat-nav__btn { --ambcat-nav-offset: 80px; }
}

@media (max-width: 767px) {
	.ambcat-section { margin-bottom: 44px; }
	.ambcat-nav__btn {
		width: 40px;
		height: 40px;
		--ambcat-nav-offset: 70px;
	}
	.ambcat-prev { margin-left: -10px; }
	.ambcat-next { margin-right: -10px; }
	.ambcat--dark { padding: 44px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.ambcat-card,
	.ambcat-card__img,
	.ambcat-action,
	.ambcat-action__icon,
	.ambcat-nav__btn {
		transition: none !important;
	}
	.ambcat-card:hover { transform: none; }
	.ambcat-card:hover .ambcat-card__img { transform: none; }
}
