/**
 * Shared UI atoms: eyebrow lined, section header, compass divider,
 * icons, pagination dots, Sina Content Slider dots.
 */

/* Lined eyebrow: sand rules on both sides */
.hbn-eyebrow--lined {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: center;
}

.hbn-eyebrow--lined::before,
.hbn-eyebrow--lined::after {
	background-color: var(--hbn-color-sand);
	content: "";
	flex: 0 0 auto;
	height: 2px;
	width: 32px;
}

.hbn-section-header {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 650px;
	text-align: center;
}

.hbn-section-header__title {
	/* PROVISIONAL spacing under title */
	padding-bottom: 30px;
}

/*
 * FAQ accordion (Elementor Nested Accordion).
 * Class goes on the Accordion widget (Advanced > CSS Classes).
 *
 * Two-class root beats widget-nested-accordion.min.css (.elementor-widget-n-accordion,
 * (0,1,0), enqueued at render after theme CSS). Still loses to per-widget page CSS.
 */
.elementor-widget-n-accordion.hbn-faq {
	--n-accordion-border-width: 0px;
	--n-accordion-border-color: transparent;
	--n-accordion-padding: var(--hbn-faq-item-py) 0;
	--n-accordion-icon-size: 12px;
	--n-accordion-icon-gap: 0 16px;
	--n-accordion-title-font-size: var(--hbn-faq-title-size);
	--n-accordion-title-normal-color: var(--hbn-color-navy);
	--n-accordion-title-hover-color: var(--hbn-color-navy);
	--n-accordion-title-active-color: var(--hbn-color-navy);
	--n-accordion-icon-normal-color: var(--hbn-faq-icon);
	--n-accordion-icon-hover-color: var(--hbn-faq-icon);
	--n-accordion-icon-active-color: var(--hbn-faq-icon);
	--n-accordion-title-justify-content: space-between;
	--n-accordion-title-flex-grow: 1;
	--n-accordion-title-icon-order: initial;
	max-width: var(--hbn-faq-max);
	width: 100%;
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion {
	width: 100%;
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item {
	border-bottom: 1px solid var(--hbn-faq-rule);
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item-title {
	border: 0;
	border-radius: 0;
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item-title-header {
	flex: 1 1 auto;
	min-width: 0;
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item-title-text {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item > .e-con,
.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item .e-con {
	border: 0;
	padding-block: 8px 20px;
}

.elementor-widget-n-accordion.hbn-faq .e-n-accordion-item .e-con p {
	color: var(--hbn-color-text);
	margin: 0;
}

/* Width cap on the wrapper container (class on Advanced > CSS Classes). */
.hbn-faq-wrap {
	max-width: var(--hbn-faq-max);
	width: 100%;
}

.hbn-divider-compass {
	align-items: center;
	display: flex;
	gap: 4px;
	justify-content: center;
}

.hbn-divider-compass::before,
.hbn-divider-compass::after {
	background-color: var(--hbn-color-sand);
	content: "";
	flex: 0 0 auto;
	height: 2px;
	width: 50px;
}

/* Center image is an Elementor Image widget (PNG 120x120 shown at 40x40) */
.hbn-divider-compass :where(.elementor-widget-image),
.hbn-divider-compass :where(img) {
	display: block;
	height: 40px;
	width: 40px;
}

.hbn-divider-compass :where(img) {
	height: 40px;
	object-fit: contain;
	width: 40px;
}

.hbn-icon {
	display: inline-block;
	flex: none;
	height: auto;
	width: var(--hbn-icon-size, 16px);
}

/* Image widget: class sits on the wrapper, size the rendered img too */
.hbn-icon :where(img) {
	display: block;
	height: auto;
	width: var(--hbn-icon-size, 16px);
}

/* Short sand rule next to the star ornament */
.e-con.hbn-rule-box {
	flex: none;
	width: 32px;
}

.elementor-widget-divider.hbn-rule {
	flex: none;
	width: 100%;
}

.elementor-widget-divider.hbn-rule :where(.elementor-divider) {
	width: 100%;
}

.elementor-widget-image.hbn-cta-photo :where(img) {
	border-radius: var(--hbn-radius-card);
	display: block;
	width: 100%;
}

.hbn-cta-eye {
	max-width: 100%;
}

.elementor-widget-heading.hbn-eyebrow {
	min-width: 0;
}

@media (max-width: 767px) {
	.e-con.hbn-rule-box {
		width: 20px;
	}
}

.hbn-icon--pin {
	--hbn-icon-size: 16px;
}

.hbn-icon--check {
	/* PROVISIONAL check icon size (open decision) */
	--hbn-icon-size: 20px;
}

.hbn-dots {
	align-items: center;
	display: flex;
	gap: 8px;
}

.hbn-dots__dot {
	background-color: rgba(61, 70, 75, 0.8);
	border-radius: 50%;
	display: block;
	flex: 0 0 auto;
	height: 12px;
	opacity: 0.2;
	width: 12px;
}

.hbn-dots__dot.is-active,
.hbn-dots__dot[aria-current="true"] {
	background-color: var(--hbn-color-teal-on-light);
	opacity: 1;
}

.hbn-dots--centered {
	justify-content: center;
	margin-top: 24px;
	width: 100%;
}

/*
 * Sina Content Slider uses Owl Carousel.
 * Verified on Mac wp-env (plugin sina-widgets.min.css + live DOM):
 *   Markup: .hbn-sina-dots.elementor-widget > … > .sina-content-slider.owl-carousel
 *           > .owl-dots > button.owl-dot(.active) > span
 *   Plugin: .sina-content-slider .owl-dot → (0,2,0); .owl-dot.active → (0,3,0)
 * Put .hbn-sina-dots on the Elementor widget wrapper (Advanced > CSS Classes).
 *
 * Selectors include .sina-content-slider so we beat plugin (0,2,0)/(0,3,0) at
 * (0,3,0)/(0,4,0). Still under typical Elementor page CSS
 * (.elementor-N .elementor-element-XXXX .sina-content-slider .owl-dot ≈ 0,4,0+).
 */
.hbn-sina-dots .sina-content-slider .owl-dots {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: center;
}

.hbn-sina-dots .sina-content-slider .owl-dot {
	background-color: rgba(61, 70, 75, 0.8);
	border: 0;
	border-radius: 50%;
	height: 12px;
	margin: 0;
	opacity: 0.2;
	padding: 0;
	width: 12px;
}

.hbn-sina-dots .sina-content-slider .owl-dot.active,
.hbn-sina-dots .sina-content-slider .owl-dot.is-active {
	background-color: var(--hbn-color-teal-on-light);
	opacity: 1;
	width: 12px;
}

/* -------------------------------------------------------------------------
 * B2B: What We Handle (service grid)
 * ---------------------------------------------------------------------- */

.hbn-services {
	display: grid;
	gap: 40px 48px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
}

.hbn-service {
	align-items: center;
	display: flex;
	gap: 16px;
	min-width: 0;
}

.hbn-service__icon {
	--hbn-icon-size: 48px;
	flex: none;
	height: auto;
	width: var(--hbn-icon-size);
}

.hbn-service__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * B2B: How It Works (numbered steps)
 * ---------------------------------------------------------------------- */

.hbn-steps {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
	padding: 0;
	width: 100%;
}

.hbn-step {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	min-width: 0;
	position: relative;
}

.hbn-step:not(:last-child)::before {
	background-color: var(--hbn-color-teal-on-light);
	bottom: calc(-28px + 4px);
	content: "";
	left: 19px;
	opacity: 0.45;
	position: absolute;
	top: 44px;
	width: 2px;
}

.hbn-step__num {
	align-items: center;
	border: 1.5px solid var(--hbn-color-teal-on-light);
	border-radius: 50%;
	box-sizing: border-box;
	color: var(--hbn-color-teal-on-light);
	display: flex;
	flex: none;
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 600;
	height: 40px;
	justify-content: center;
	line-height: 1;
	width: 40px;
	z-index: 1;
}

.hbn-step__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding-top: 6px;
}

.hbn-step__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.hbn-step__text {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * B2B: mid-page CTA banner
 * ---------------------------------------------------------------------- */

.hbn-cta-banner {
	align-items: stretch;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	display: flex;
	justify-content: flex-end;
	min-height: 280px;
	overflow: hidden;
	width: 100%;
}

.hbn-cta-banner__panel {
	align-items: flex-start;
	background-color: rgba(4, 23, 38, 0.82);
	box-sizing: border-box;
	color: var(--hbn-color-cream);
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: center;
	max-width: 520px;
	min-width: 0;
	padding: 48px 40px;
	width: 42%;
}

/* -------------------------------------------------------------------------
 * B2B: team cards
 * ---------------------------------------------------------------------- */

.hbn-team-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
}

.hbn-team-card {
	align-items: stretch;
	background-color: var(--hbn-color-white);
	border-radius: var(--hbn-radius-card);
	box-shadow: var(--hbn-shadow-card);
	display: flex;
	min-width: 0;
	overflow: hidden;
}

.hbn-team-card__media {
	aspect-ratio: 1 / 1;
	flex: none;
	object-fit: cover;
	width: 42%;
}

.hbn-team-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	min-width: 0;
	padding: 20px 24px;
}

.hbn-team-card__name {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.hbn-team-card__role {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.hbn-team-card__email {
	align-items: center;
	color: var(--hbn-color-navy);
	display: flex;
	font-family: var(--hbn-font-body);
	font-size: 15px;
	gap: 12px;
	line-height: 1.5;
	margin-top: 8px;
	text-decoration: none;
	word-break: break-word;
}

.hbn-team-card__email::before {
	background-color: var(--hbn-color-teal-on-light);
	content: "";
	flex: none;
	height: 28px;
	width: 2px;
}

/* -------------------------------------------------------------------------
 * B2B: partner logo row
 * ---------------------------------------------------------------------- */

.hbn-logo-row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 56px;
	justify-content: center;
	width: 100%;
}

.hbn-logo-row__item {
	display: block;
	height: auto;
	max-height: 48px;
	object-fit: contain;
	opacity: 0.85;
	width: auto;
}

.hbn-why-grid {
	display: grid;
	gap: 32px 48px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
}

.hbn-why-points {
	display: grid;
	gap: 24px 40px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	width: 100%;
}

.hbn-why-point {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	min-width: 0;
}

.hbn-why-point__icon {
	--hbn-icon-size: 40px;
	flex: none;
	width: var(--hbn-icon-size);
}

.hbn-why-point__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.hbn-testimonials-row {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
}

@media (max-width: 767px) {
	.hbn-services {
		gap: 24px;
		grid-template-columns: 1fr;
	}

	.hbn-cta-banner {
		justify-content: stretch;
		min-height: 0;
	}

	.hbn-cta-banner__panel {
		max-width: none;
		padding: 40px 24px;
		width: 100%;
	}

	.hbn-team-grid,
	.hbn-why-grid,
	.hbn-testimonials-row {
		grid-template-columns: 1fr;
	}

	.hbn-why-points {
		grid-template-columns: 1fr;
	}

	.hbn-team-card__media {
		width: 38%;
	}

	.hbn-logo-row {
		gap: 24px 32px;
	}
}

/* -------------------------------------------------------------------------
 * B2C review card (shortcode). Do not restyle .hbn-testimonial (B2B).
 * ---------------------------------------------------------------------- */

.hbn-review {
	align-items: flex-start;
	background-color: var(--hbn-color-white);
	border-radius: var(--hbn-radius-card);
	box-shadow: var(--hbn-shadow-card);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	min-height: 239px;
	min-width: 0;
	padding: 24px;
	width: 100%;
}

.hbn-review__rating {
	color: var(--hbn-color-star);
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	gap: 4px;
}

.hbn-review__star {
	display: block;
	flex: none;
	height: 20px;
	width: 20px;
}

.hbn-review__quote {
	color: var(--hbn-color-navy);
	flex: 1 1 auto;
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
	quotes: none;
}

.hbn-review__quote::before,
.hbn-review__quote::after {
	content: none;
}

.hbn-review__quote p {
	margin: 0 0 0.75em;
}

.hbn-review__quote p:last-child {
	margin-bottom: 0;
}

.hbn-review__author {
	align-items: center;
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	gap: 12px;
	margin-top: auto;
	width: 100%;
}

.hbn-review__author-text {
	border-left: 2px solid var(--hbn-color-teal-on-light);
	display: flex;
	flex-direction: column;
	gap: 0;
	padding-left: 12px;
}

.hbn-review__name {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-style: normal;
	font-weight: 500;
	line-height: 1.5;
	margin: 0;
}

.hbn-review__country {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
	opacity: 0.7;
}
