/**
 * Other Services Section — extracted from other-services-export.txt
 *
 * Source: Elementor JSON export (settings translated to CSS)
 * Usage: Ready for Path 1 (PHP shortcode) or as a reference for Path 2 (Loop Grid)
 *
 * Primary color uses the Elementor global CSS variable so it stays in sync
 * with the site kit: var(--e-global-color-primary)
 *
 * Breakpoints mirror Elementor defaults:
 *   Tablet  : max-width 1024px
 *   Mobile  : max-width 767px
 */

/* ============================================================
   Section wrapper
   Outer container (_title: "Other Services")
   flex-direction: column | gap: 50px | padding: 5% all sides
   ============================================================ */
.other-services-section {
	display: flex;
	flex-direction: column;
	gap: 50px;
	padding: 1% 5% 1% 5%;
	box-sizing: border-box;
}

/* ============================================================
   Section heading  (H2/H3 — "Explore Our other services" / category name)
   Services section: white text (dark-background context)
   Equipment for hire section: black text (light-background context)
   ============================================================ */
.other-services-section .other-services-heading {
	font-family: "New Science Extended", "New Science", sans-serif;
	font-size: 24px;
	color: #000000;
	text-align: center;
	text-transform: uppercase;
	margin: 0;
}

/* ============================================================
   Cards grid
   3 columns desktop/tablet | 50px gap | 1 column mobile
   ============================================================ */
.other-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px;
	margin: 0;
	padding: 0;
}

/* ============================================================
   4. Other Offices hub variant — [megavar_other_offices home="true"]
   Overrides the default 3-col other-services-grid to show all 4 offices
   on a single row.
   ============================================================ */

.other-services-grid--4col {
	grid-template-columns: repeat(4, 1fr);
}

/* ============================================================
   Card container
   background-image: set per-card via inline style
   background-position: center center | background-size: cover
   overlay: black 70% opacity (::before pseudo-element)
   border-top: 5px solid primary color
   padding: 10% all sides | flex-direction: column | gap: 50px
   ============================================================ */
.other-services-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 50px;
	padding: 10%;
	box-sizing: border-box;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	border-top: 5px solid var(--e-global-color-primary);
	border-right: 0;
	border-bottom: 0;
	border-left: 0;
	border-style: solid;
	min-height: 400px;
}

/* Dark overlay — matches Elementor background overlay: #000000 at 0.7 opacity */
.other-services-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 0;
}

/* Ensure all direct children sit above the overlay */
.other-services-card>* {
	position: relative;
	z-index: 1;
}

/* ============================================================
   Card row  (heading+arrow row & description+arrow row)
   flex-direction: row | align-items: center | gap: 12px column
   flex-wrap: nowrap
   ============================================================ */
.other-services-card-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-wrap: nowrap;
	column-gap: 12px;
	row-gap: 0;
	margin: 0;
	padding: 0;
}

/* ============================================================
   Card title  (H3 heading widget)
   font-family: "New Science" | size: 20px | weight: 600
   uppercase | line-height: 28px | color: #ffffff
   align: left | width: 80% | flex-order: first (-1)
   ============================================================ */
.other-services-card-title {
	font-family: "New Science", sans-serif;
	font-size: 20px;
	font-weight: 600;
	text-transform: uppercase;
	line-height: 28px;
	color: #ffffff;
	text-align: left;
	width: 80%;
	flex-shrink: 0;
	margin: 0;
}

.other-services-card-title a {
	color: #ffffff;
	text-decoration: none;
}

.other-services-card-title a:hover {
	text-decoration: underline;
}

/* ============================================================
   Card description  (text editor widget)
   color: #ffffff (inherited from kit — set explicitly here)
   typography: inherits kit body style (no custom values set)
   ============================================================ */
.other-services-card-description {
	color: #ffffff;
	flex: 1;
	margin: 0;
}

.other-services-card-description p {
	margin: 0 0 0.75em;
}

.other-services-card-description p:last-child {
	margin-bottom: 0;
}

.other-services-card-description a {
	color: #ffffff;
	text-decoration: none;
}

/* ============================================================
   Arrow image  (right arrow SVG — 31 x 20 px, both rows)
   flex-shrink: 0 so it never squashes
   ============================================================ */
.other-services-card-arrow {
	width: 31px;
	height: 20px;
	display: block;
	flex-shrink: 0;
}

.other-services-card-arrow img {
	width: 31px;
	height: 20px;
	display: block;
}

/* ============================================================
   Product card variant — [megavar_equipment_for_hire]
   Image sits above the content area instead of as a bg overlay.
   Applied via .other-services-card--product modifier class.
   ============================================================ */

/* Reset the background/overlay behaviour for product cards */
.other-services-card--product {
	padding: 0;
	gap: 0;
	background-image: none !important;
}

.other-services-card--product::before {
	display: none;
}

/* Product image — fixed aspect ratio, covers the full card width */
.other-services-card-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	flex-shrink: 0;
}

.other-services-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Content area below the image — dark background, matching site palette */
.other-services-card--product .other-services-card-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 10%;
	background-color: #111111;
	flex: 1;
}

/* Rows inside the body sit naturally (no z-index needed without overlay) */
.other-services-card--product .other-services-card-row {
	position: static;
}

/* ============================================================
   Responsive — Mobile  (Elementor default: max-width 767px)
   grid: 1 column | H3 line-height drops to 24px
   ============================================================ */
@media (max-width: 767px) {
	.other-services-grid {
		grid-template-columns: 1fr;
	}

	.other-services-card-title {
		font-size: 20px;
		/* unchanged — same as desktop per export */
		line-height: 24px;
	}
}
