/* ==========================================================================
   Footer — layout only. Accordion, off-canvas and the app card are generic
   components with their own CSS. One DOM order, three grid layouts.
   ========================================================================== */

.ahan-footer {
	--ahan-footer-band-h: 155px; /* the shape image shows its bottom 155px */
	--ahan-footer-lift: 85px;

	position: relative;
	margin-top: var(--gap-lg);
	background: linear-gradient(to bottom, transparent var(--ahan-footer-band-h), var(--c-surface) var(--ahan-footer-band-h));
	color: var(--c-text);
	font-size: var(--fs-sm);
}

/* Transparent band: the shape image (white body with the raised tab for the logo, soft shadow
   included) is anchored to its bottom edge and centred; tablets and phones crop it to fill. */
.ahan-footer__top {
	height: var(--ahan-footer-band-h);
	background: url("../img/footer-top.png") no-repeat center bottom / auto;
}

@media (max-width: 1023px) {
	.ahan-footer__top {
		background-size: cover;
	}
}

/* ---- Grid (mobile first: one column) ----------------------------------- */

.ahan-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		'about'
		'menu-1'
		'menu-2'
		'contact'
		'enamad'
		'app';
	column-gap: var(--gap);
	width: 100%;
	max-width: var(--container-box);
	margin-inline: auto;
	padding-inline: var(--container-pad);
}

.ahan-footer__about { grid-area: about; }
.ahan-footer__section--menu-1 { grid-area: menu-1; }
.ahan-footer__section--menu-2 { grid-area: menu-2; }
.ahan-footer__section--contact { grid-area: contact; }
.ahan-footer__enamad { grid-area: enamad; }
.ahan-footer__inner > .ahan-app { grid-area: app; }

@media (min-width: 768px) {
	.ahan-footer__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			'about about'
			'menu-1 menu-2'
			'contact enamad'
			'app app';
	}
}

@media (min-width: 1024px) {
	.ahan-footer__inner {
		grid-template-columns: 17fr 17fr 32fr 34fr;
		grid-template-areas:
			'menu-1 menu-2 about contact'
			'menu-1 menu-2 enamad contact'
			'app app app app';
	}

	.ahan-footer {
		--ahan-footer-lift: 95px;
	}
}

/* ---- About ------------------------------------------------------------- */

.ahan-footer__about {
	position: relative;
	z-index: 1;
	margin-top: calc(-1 * var(--ahan-footer-lift));
	padding-bottom: var(--gap);
}

.ahan-footer__logo {
	display: flex;
	justify-content: center;
}

.ahan-footer__logo img {
	width: auto;
	height: 90px;
}

.ahan-footer__about-text {
	margin: var(--gap) 0 0;
	text-align: justify;
	line-height: var(--lh-body);
}

.ahan-footer__more {
	color: var(--c-primary);
	font-weight: var(--fw-bold);
	text-decoration: none;
}

.ahan-footer__more:hover {
	text-decoration: underline;
}

@media (min-width: 1024px) {
	.ahan-footer__logo img {
		height: 120px;
	}
}

/* ---- Menu + contact columns (headings are accordion triggers) ---------- */

.ahan-footer__section .ahan-accordion__heading {
	font-size: var(--fs-base);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-tight);
}

@media (min-width: 768px) {
	.ahan-footer__section {
		padding-top: 20px;
	}

	.ahan-footer__section .ahan-accordion__heading {
		margin-bottom: 12px;
	}
}

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

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

@media (min-width: 768px) {
	.ahan-footer__links a {
		padding: 5px 0;
	}
}

.ahan-footer__contact {
	font-style: normal;
}

.ahan-footer__contact-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
}

.ahan-footer__contact-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--c-primary);
}

.ahan-footer__contact a {
	color: inherit;
	text-decoration: none;
}

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

/* ---- E-Namad ------------------------------------------------------------ */

.ahan-footer__enamad {
	display: flex;
	justify-content: center;
}

.ahan-footer__enamad img {
	width: 80px;
	height: auto;
}

@media (min-width: 768px) {
	.ahan-footer__enamad {
		align-items: flex-start;
	}
}

/* ---- App card + bottom line --------------------------------------------- */

.ahan-footer__inner > .ahan-app {
	margin-top: var(--gap-lg);
}

.ahan-footer__bottom {
	padding: 15px var(--container-pad);
	text-align: center;
	font-size: var(--fs-sm);
}

/* Keep the copyright clear of the fixed call button (mobile only). */
@media (max-width: 767.98px) {
	.ahan-footer__bottom {
		padding-bottom: 59px;
	}
}

/* ---- Figma refinements (colours, sizes, rhythm) ------------------------------------------------ */
.ahan-footer {
	--ahan-footer-ink: #1e1e1e;
	--ahan-footer-muted: #8e8e93;
	--ahan-footer-soft: #aeaeb2;
}

.ahan-footer__section .ahan-accordion__heading {
	color: var(--ahan-footer-ink);
	font-weight: var(--fw-medium);
}

.ahan-footer__section--contact .ahan-accordion__heading {
	font-weight: var(--fw-bold);
}

/* Link columns: 14px medium grey, 12px between rows. */
.ahan-footer__links a {
	color: var(--ahan-footer-muted);
	font-weight: var(--fw-medium);
}

.ahan-footer__links li + li {
	margin-top: 12px;
}

@media (min-width: 768px) {
	.ahan-footer__links a {
		padding: 0;
	}
	.ahan-footer__section .ahan-accordion__heading {
		margin-bottom: 12px;
	}
}

/* Contact rows: 20px icon, grey label, lighter value, 16px between rows. */
.ahan-footer__contact-item {
	padding: 0;
	color: var(--ahan-footer-muted);
	font-weight: var(--fw-medium);
}

.ahan-footer__contact-item + .ahan-footer__contact-item {
	margin-top: 16px;
}

.ahan-footer__contact-icon {
	width: 20px;
	height: 20px;
}

.ahan-footer__contact-value,
.ahan-footer__contact-value a {
	color: var(--ahan-footer-soft);
}

.ahan-footer__about-text {
	color: var(--ahan-footer-muted);
	font-weight: var(--fw-medium);
}

.ahan-footer__bottom {
	color: var(--ahan-footer-muted);
}

/* Figma: the text uses the font's normal line height (tight rows), on desktop. */
@media (min-width: 768px) {
	.ahan-footer__links a,
	.ahan-footer__contact-item {
		line-height: 1.4;
	}

}

/* Contact column: 50px of air on the side facing the about column (desktop), as in the old footer. */
@media (min-width: 1024px) {
	.ahan-footer__section--contact {
		padding-inline-start: 70px;
	}
}

.ahan-footer__enamad img {
	width: 65px;
}

/* hover-states */
@media (prefers-reduced-motion: reduce) {
	.ahan-footer__links a,
	.ahan-footer__more {
		transition-duration: 0.01ms;
	}
}
