/* ==========================================================================
   Special and plain pages (about, contact, FAQ, freight, generic) — page-specific parts only.
   Generic parts (page-header, breadcrumb, faq, accordion, prose, request-form, logo-strip,
   lightbox) have their own CSS. Logical properties only (RTL-safe).
   ========================================================================== */

.ahan-page {
	padding-block: var(--gap) calc(var(--gap-lg) * 2);
}

.ahan-page__inner {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	max-width: var(--container-box);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

/* Plain page (plugin content): width, space around, background; the plugin draws everything else. */
.ahan-page--plain {
	min-height: 60vh;
	background: var(--c-bg);
	padding-block: var(--gap-lg) calc(var(--gap-lg) * 2);
}

.ahan-page--plain .ahan-page__inner {
	display: block;
}

.ahan-page__pages {
	display: flex;
	gap: 8px;
	margin-top: var(--gap);
}

/* FAQ: the page h1 already names the page, the section heading stays for the outline only. */
.ahan-page__faq .ahan-faq__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------- Freight ---------- */

.ahan-freight {
	display: grid;
	gap: var(--gap-lg);
}

.ahan-freight__calc {
	min-width: 0;
}

.ahan-freight__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--gap);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

.ahan-freight__img {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: contain;
}

@media (min-width: 768px) {
	.ahan-freight {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
	}
}

/* ---------- Contact ---------- */

.ahan-contact {
	display: grid;
	gap: var(--gap-lg);
}

.ahan-contact__form,
.ahan-contact__info {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	min-width: 0;
}

.ahan-contact__intro {
	color: var(--c-primary-ink);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
}

.ahan-contact-form .ahan-contact-form__wide {
	grid-column: 1 / -1;
}

.ahan-contact__map {
	width: 100%;
	height: 275px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--c-border);
}

.ahan-contact__rows {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ahan-contact__row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-sm);
}

.ahan-contact__row a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}

.ahan-contact__row a:hover {
	color: var(--c-primary-ink);
}

.ahan-contact__icon {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--c-primary-ink);
}

/* Social / messenger buttons: square tiles in one wrapping row, as many as the admin adds. Each tile
   has its network colour (--ahan-net), the logo on a white disc at the top and the label below. */
.ahan-contact__messengers {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ahan-contact__btn {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	box-sizing: border-box;
	width: 82px;
	min-height: 118px;
	padding: 10px;
	border-radius: var(--radius-sm);
	background: var(--ahan-net, var(--c-primary));
	color: #fff;
	font-size: var(--fs-xs);
	line-height: 1.7;
	text-decoration: none;
	transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.ahan-contact__btn:hover,
.ahan-contact__btn:focus-visible {
	filter: brightness(1.1);
	transform: translateY(-2px);
}

.ahan-contact__btn-icon {
	flex: none;
	box-sizing: content-box;
	width: 24px;
	height: 24px;
	padding: 3px;
	border-radius: 50%;
	background: #fff;
	object-fit: contain;
}

.ahan-contact__btn--whatsapp {
	--ahan-net: #25d366;
}

.ahan-contact__btn--telegram {
	--ahan-net: #26a5e4;
}

.ahan-contact__btn--bale {
	--ahan-net: #2ea58a;
}

.ahan-contact__btn--rubika {
	--ahan-net: #a335c8;
}

.ahan-contact__btn--eitaa {
	--ahan-net: #e37600;
}

.ahan-contact__btn--instagram {
	background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888);
}

@media (prefers-reduced-motion: reduce) {
	.ahan-contact__btn {
		transition-duration: .01ms;
	}
}

@media (min-width: 768px) {
	.ahan-contact:has(.ahan-contact__form) {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

/* ---------- About (breakpoints: 1024 = tablet, 880 = one column) ---------- */

/* The extra pictures bleed out of the container; clip them at the viewport edge (clip: no scroll container). */
.ahan-about {
	overflow-x: clip;
}

.ahan-about__block {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px 45px;
	justify-items: center;
	padding-bottom: 8px; /* room for the offset frame of the photo */
	align-items: center;
}

.ahan-about__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--gap);
	width: 100%;
	min-width: 0;
}

.ahan-about__title {
	color: var(--c-text);
	font-size: var(--t-h2-size);
	font-weight: var(--t-h2-weight);
	line-height: var(--t-h2-lh);
}

.ahan-about__title--center {
	text-align: center;
}

.ahan-about__body .ahan-prose {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	font-size: var(--t-body-size);
	line-height: var(--t-body-lh);
	text-align: start;
}

.ahan-about__body .ahan-prose strong {
	color: var(--c-primary);
	font-weight: var(--fw-bold);
}

.ahan-about__body .ahan-prose > * + * {
	margin-top: 0;
}

.ahan-about__body .ahan-prose ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	padding: 0;
}

.ahan-about__media,
.ahan-about__extra {
	width: 100%;
	min-width: 0;
}

/* Brand outline offset 8px towards the bottom-right behind the photo. */
.ahan-about__media {
	position: relative;
	isolation: isolate;
	height: 100%;
}

.ahan-about__media::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	translate: 8px 8px;
	border: 1.7px solid var(--c-primary);
	border-radius: var(--radius);
	pointer-events: none;
}

/* "Why us" cards. */
.ahan-about__cards {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	margin-block-start: -16px;
}

.ahan-about__card {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	min-height: 74px;
	padding: var(--space-2);
	border: 1.6px solid var(--c-border);
	border-radius: 12px;
	background: var(--c-surface);
	flex-direction: row-reverse;
	justify-content: space-between;
}

.ahan-about__card-icon {
	flex: none;
	width: 24px;
	height: 24px;
}

.ahan-about__card-icon img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.ahan-about__card-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ahan-about__card-title {
	color: var(--c-text);
	font-size: var(--t-body-size);
	font-weight: var(--fw-bold);
}

.ahan-about__card-text {
	color: var(--c-text-muted);
	font-size: var(--t-body-sm-size);
}

.ahan-about__img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: var(--radius);
	object-fit: cover;
	object-position: right;
}

.ahan-about__img--extra {
	border-radius: 0;
}

/* Clients: the 3-column logo grid on desktop only, a 3-per-view slider on phones. */
.ahan-about__logos {
	display: none;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.ahan-about__logos img {
	width: 100%;
	height: auto;
}

.ahan-about__logos-slider {
	width: 100%;
	min-width: 0;
}

/* Line between sections: the uploaded picture, else a hairline with a dot at each end. Desktop only. */
.ahan-about__line {
	position: relative;
	display: none;
	width: 1px;
	height: 140px;
	margin-inline: auto;
	background: var(--c-primary);
}

.ahan-about__line--img {
	width: auto;
	height: auto;
	background: none;
}

.ahan-about__line-img {
	display: block;
	width: auto;
	height: auto;
	max-height: 120px;
	margin-inline: auto;
}

.ahan-about__line:not(.ahan-about__line--img)::before,
.ahan-about__line:not(.ahan-about__line--img)::after {
	content: '';
	position: absolute;
	inset-inline-start: 50%;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--c-primary);
	translate: -50% 0;
}

.ahan-about__line::before {
	top: -3px;
}

.ahan-about__line::after {
	bottom: -3px;
}

.ahan-about__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: var(--btn-radius);
	background: var(--btn-bg);
	color: var(--btn-color);
	font-size: var(--fs-sm);
	font-weight: var(--fw-medium);
	text-decoration: none;
	transition: filter var(--dur) var(--ease);
}

.ahan-about__btn:hover,
.ahan-about__btn:focus-visible {
	filter: brightness(1.15);
}

.ahan-about__btn-icon {
	width: 16px;
	height: 16px;
	rotate: 90deg; /* chevron points left in RTL, as the arrow of the export */
}

.ahan-about__btn--wide {
	width: 100%;
}

/* Certificates: slider, 3 per view (1 on phones), 50px side room. */
.ahan-about__certs {
	display: flex;
	flex-direction: column;
	gap: var(--gap-lg);
	padding-inline: 10px;
}

.ahan-about__certs-slider {
	padding-inline: 50px;
}

.ahan-about__cert-img {
	display: block;
	width: 100%;
	height: auto;
	border: 1.6px solid var(--c-primary);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* Catalogue band: 600px wide, mockup on each side (the far one mirrored), button links differ by device. */
.ahan-about__catalog {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 13px;
	width: min(100%, 600px);
	margin-inline: auto;
	padding: 24px;
}

.ahan-about__catalog-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	width: 100%;
	text-align: center;
}

.ahan-about__catalog-kicker,
.ahan-about__catalog-title {
	color: var(--c-primary-ink);
	font-size: var(--t-h2-size);
	line-height: var(--lh-tight);
}

.ahan-about__catalog-title {
	font-weight: var(--fw-bold);
}

.ahan-about__catalog-img {
	display: none;
	flex: none;
	width: 130px;
	height: 192px;
	object-fit: cover;
}

.ahan-about__catalog-img--flip {
	scale: -1 1;
}

.ahan-about__btn--desktop {
	display: none;
}

@media (min-width: 881px) {
	.ahan-about__catalog {
		flex-direction: row;
		padding-inline: 10px;
		padding-block: 0;
	}

	.ahan-about__catalog-img {
		display: block;
	}

	.ahan-about__catalog-kicker,
	.ahan-about__catalog-title {
		font-size: var(--t-h2-size);
	}
}

@media (min-width: 881px) and (max-width: 1024px) {
	.ahan-about__block {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ahan-about__logos-slider {
		display: none;
	}

	/* Even sections: the photo first, the text beside it. */
	.ahan-about__line ~ .ahan-about__block:nth-of-type(even) .ahan-about__body {
		order: 2;
	}
}

@media (min-width: 881px) {
	.ahan-about__logos-slider {
		display: none;
	}
}

@media (min-width: 1025px) {
	.ahan-about__block {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ahan-about__logos {
		display: grid;
	}

	.ahan-about__line {
		display: block;
		margin-block: var(--space-4);
	}

	.ahan-about__line--img {
		display: block;
	}

	/* Odd sections: text on the reading side, photo in the middle, extra on the far side;
	   even sections mirror this (the extra picture comes first). */
	.ahan-about__line ~ .ahan-about__block:nth-of-type(even) .ahan-about__extra {
		order: -1;
	}

	.ahan-about__line ~ .ahan-about__block:nth-of-type(even) .ahan-about__body {
		order: 1;
	}

	.ahan-about__line ~ .ahan-about__block:nth-of-type(even) .ahan-about__media {
		order: 0;
	}

	/* Extra picture: keeps its own width, hangs from the edge next to the photo and runs towards the
	   viewport edge, so a narrower viewport crops it while the section width stays the same. */
	.ahan-about__extra {
		position: relative;
		align-self: stretch;
	}

	.ahan-about__img--extra {
		position: absolute;
		inset-inline-start: 0;
		top: 50%;
		translate: 0 -50%;
		width: var(--about-extra-w, 1328px);
		max-width: none;
		height: auto;
		pointer-events: none;
	}

	.ahan-about__line ~ .ahan-about__block:nth-of-type(even) .ahan-about__img--extra {
		inset-inline-start: auto;
		inset-inline-end: 0;
	}

	.ahan-about__btn--desktop {
		display: inline-flex;
	}

	.ahan-about__btn--mobile {
		display: none;
	}
}

@media (max-width: 1024px) {
	.ahan-about__extra {
		display: none;
	}

	.ahan-about__btn--desktop {
		display: none;
	}

	.ahan-about__btn--mobile {
		display: inline-flex;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ahan-about__btn,
	.ahan-contact__btn,
	.ahan-contact__row a {
		transition-duration: .01ms;
	}
}

/* ---------- Freight plugin (asp-freight-calculator): fit its card into ours, plugin untouched ---------- */

.ahan-freight .bc-wrap {
	max-width: none;
}

.ahan-freight .bc-head {
	display: none; /* The page header already names the tool. */
}

.ahan-freight .bc-label {
	margin-bottom: 6px;
}

/* ---------- Inquiry ----------
   The shared form is built for the grey home band (white fields, no border). On the white card the
   fields get a border; buttons match the home band. Specificity matches inquiry-form.css. */

.ahan-v2 .ahan-page .ahan-inquiry .ahan-inquiry__field .ahan-inquiry__input,
.ahan-v2 .ahan-page .ahan-inquiry .ahan-ms .ahan-ms__trigger {
	border: 1px solid var(--form-border);
}

.ahan-v2 .ahan-page .ahan-inquiry .ahan-inquiry__actions .ahan-inquiry__btn {
	background: var(--c-primary);
	color: var(--c-primary-contrast);
}

.ahan-page .ahan-inquiry__upload {
	color: var(--c-primary-ink);
}

.ahan-v2 .ahan-page .ahan-inquiry .ahan-inquiry__actions .ahan-inquiry__upload .ahan-upload__btn {
	background: transparent;
	color: var(--c-primary-ink);
}
