/* ==========================================================================
   Expertise Page plugin — stylesheet
   Reproduces the "Expertise and services" design from expertise-copy.html.
   All selectors are prefixed with .exp- so they never clash with the active
   theme (the site keeps its own header, navigation and footer).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page wrapper
   -------------------------------------------------------------------------- */
.exp-page {
	margin: 0;
	padding: 0;
}

/* Hero banner: force full viewport width (matches About page layout) */
.exp-page .about-hero-banner,
.exp-page .about-hero-banner__inner {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
}

/* Hero title override — expertise page only */
.about-hero-banner__title {
	font-family: var(--font-heading);
	font-size: 25px;
}

.exp-container {
	max-width: 1328px;
	margin: 0 auto;
	padding: 0 20px 120px;
}

.exp-title {
	margin: 0 0 24px;
	font-size: clamp(28px, 4vw, 48px);
	line-height: 1.1;
	color: #0d0d0d;
}

/* Content above the grid — matches .about-intro__description style */
.exp-intro {
	margin: 0 0 64px;
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
	color: #111;
}

.exp-intro p,
 {
	font-family: var(--font-primary);
    font-size: 22px;
    line-height: 1.45;
    color: var(--color-white);
    margin-bottom: 60px;
	margin-top: 60px !important;
	TEXT-ALIGN: justify;
}

.exp-intro
 {
	font-family: var(--font-primary);
    font-size: 22px;
    line-height: 1.45;
    color: var(--color-white);
    margin-bottom: 60px;
	margin-top: 60px !important;
	TEXT-ALIGN: justify;
}


/* Content below the grid — same typography */
.exp-below {
	margin: 64px 0 0;
	font-family: Inter, sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
	color: #111;
}

.exp-below p,
.exp-below h2,
.exp-below h3,
.exp-below li {
	max-width: 656px;
}

.exp-below h2,
.exp-intro h2 {

	color: #0d0d0d;
	margin: 0 0 16px;
	    display: block;
    font-size: 25px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 20px;
    margin-top: 50px !important;
    font-family: var(--font-primary);
}

.exp-below ul {
	list-style: none;
	padding: 0;
	margin: 16px 0;
}

.exp-below li {
	padding: 4px 0 4px 24px;
	position: relative;
}

.exp-below li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #0d0d0d;
}

.exp-intro > *:first-child {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Card grid — 3 columns desktop, 2 tablet, 1 mobile
   -------------------------------------------------------------------------- */
.exp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	grid-auto-rows: 280px;
}

@media (max-width: 1024px) {
	.exp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.exp-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.exp-intro {
		max-width: 100%;
	}
}

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.exp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 16px 32px;
	border-radius: 30px;
	overflow: hidden;
	/* Branded fallback: shown when no featured image is set.
	   If a card has a background image, the inline style overrides it. */
	background-color: #0d0d0d;
	background-image: linear-gradient(160deg, #1c2a3a 0%, #0d0d0d 55%, #17324e 100%);
	background-size: cover;
	background-position: center;
	cursor: pointer;
	color: #fff;
	text-decoration: none;
}

/* Always-on dim over the image */
.exp-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	pointer-events: none;
	transition: opacity 0.5s;
	z-index: 1;
}

/* Gradient that fades in on hover (image overlay lightens) */
.exp-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
	opacity: 0;
	transition: opacity 0.5s;
	pointer-events: none;
	z-index: 1;
}

.exp-card:hover::before {
	opacity: 0;
}

.exp-card:hover::after {
	opacity: 1;
}

/* Description that slides up on hover (the .vslider behaviour) */
.exp-card-desc {
	position: relative;
	z-index: 2;
	max-height: 0;
	opacity: 0;
	transform: translateY(18px);
	overflow: hidden;
	transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.exp-card:hover .exp-card-desc {
	max-height: 150px;
	opacity: 1;
	transform: translateY(0);
}

.exp-card-desc p {
	margin: 0 0 16px;
	font-size: 18px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

/* Bottom row: title + arrow button */
.exp-card-bottom {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.exp-card-title {
	margin: 0;
	max-width: 70%;
	font-size: 25px;
	line-height: 100%;
	font-weight: 400;
	transition: opacity 0.3s;
}

.exp-card:hover .exp-card-title {
	opacity: 0;
}

/* Hero button inside card — transparent bg, no border, just the icon */
.exp-card-btn.hero__button {
	position: relative;
	background: transparent;
	border: none;
	padding: 0;
	width: 32px;
	height: 32px;
	min-width: 0;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.exp-card-btn.hero__button:hover {
	background: transparent;
	transform: none;
}

/* White circle behind icon on card hover */
.exp-card-btn.hero__button::before {
	content: "";
	position: absolute;
	width: 44px;
	height: 44px;
	top: 50%;
	left: 50%;
	margin-left: -22px;
	margin-top: -22px;
	border-radius: 50%;
	background: #ffffff;
	transform: scale(0);
	transition: transform 0.3s ease-out;
	z-index: 0;
}

.exp-card:hover .exp-card-btn.hero__button::before {
	transform: scale(1);
}

.exp-card-btn.hero__button .hero__button-icon {
	position: relative;
	z-index: 1;
	margin-left: 0;
}

.exp-card-btn.hero__button .hero__button-icon svg path {
	transition: stroke 0.3s;
}

/* --------------------------------------------------------------------------
   Touch devices: show the description (no hover available)
   -------------------------------------------------------------------------- */
@media (hover: none) {
	.exp-card-desc {
		max-height: none;
		opacity: 1;
		transform: none;
		margin-bottom: 8px;
	}
}

.exp-empty {
	padding: 40px;
	border: 1px dashed #ccc;
	border-radius: 16px;
	color: #666;
}

/* --------------------------------------------------------------------------
   Block editor helpers
   -------------------------------------------------------------------------- */
.exp-block-hint {
	margin: 12px 0 0 !important;
	font-size: 13px !important;
	color: #777 !important;
}
