/* Site footer — Figma node 6182:3254 */
.site-footer {
	margin-top: var(--sp-80);
	padding-top: 60px; /* Figma: 72px from the top edge, minus the 12px strip */
	border-top: 12px solid var(--blue);
	color: var(--n-80);
	background: var(--dark-bg);
	font-size: var(--fs-body-m);
	line-height: var(--lh-body-m);
}
/* Links inherit the footer colours. These selectors also outrank Elementor's kit
   a/a:hover colours while Elementor is still active (this file loads after it). */
.site-footer a { color: inherit; transition: color .15s; }
.site-footer a:hover { color: var(--n-100); }

/* Row 1: three titled cards (about, links, contact) */
.site-footer__cols {
	display: grid;
	grid-template-columns: 1.1fr .8fr 1.3fr;
	gap: var(--sp-24);
	padding-bottom: var(--sp-24);
}

.footer-col { display: flex; flex-direction: column; gap: var(--sp-24); min-width: 0; }

.site-footer .footer-col__title { /* .site-footer prefix outranks Elementor's kit h2 colour */
	padding-bottom: var(--sp-12);
	color: var(--n-100);
	font-size: var(--fs-title-m);
	line-height: var(--lh-title-m);
	font-weight: 700;
	/* Double underline at the start edge: orange, gap, white */
	background:
		linear-gradient(var(--orange), var(--orange)) right bottom / 24px 2px no-repeat,
		linear-gradient(var(--n-100), var(--n-100)) right 32px bottom / 24px 2px no-repeat;
}

.footer-col__box {
	flex: 1;
	margin: 0;
	padding: var(--sp-24);
	border-radius: var(--r-16);
	background: var(--dark-card);
}

/* About */
.footer-col--about .footer-col__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--sp-24);
	text-align: center;
}
.footer-col--about .custom-logo { width: auto; height: 50px; }
.footer-col--about p { margin: 0; color: var(--n-100); font-size: 18px; line-height: 1.6; font-weight: 800; } /* the slogan */
/* Short line under the slogan */
.site-footer .footer-col--about .footer-about__sub { margin-top: -10px; color: var(--n-70); font-size: 13px; line-height: 1.8; font-weight: 400; text-wrap: balance; }

/* Useful links */
/* Links fill their card: each row takes an equal share of the height, so the card never looks half empty */
.footer-links { display: flex; flex-direction: column; padding-block: var(--sp-8); }
.footer-links li { flex: 1; display: flex; align-items: center; }
.footer-links li a { width: 100%; }
.footer-links a:hover { color: var(--n-100); }
.footer-links a:hover::before { background: var(--orange); }
.footer-links li + li { border-top: 1px solid var(--dark-line); }
.footer-links a,
.footer-menu__list a { display: flex; align-items: center; gap: var(--sp-8); }
.footer-links a { padding-block: var(--sp-12); }
.footer-links a::before,
.footer-menu__list a::before {
	content: "";
	flex: none;
	width: 4px;
	height: 4px;
	background: var(--n-60);
}

/* Contact */
.footer-contact { display: flex; flex-direction: column; justify-content: center; gap: var(--sp-24); }
.footer-contact li { display: flex; align-items: center; gap: var(--sp-12); color: var(--n-100); font-size: var(--fs-body-l); line-height: var(--lh-body-l); font-weight: 500; }
.footer-contact small { color: var(--n-60); font-size: var(--fs-body-s); font-weight: 400; }
.footer-contact .icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 6px;
	border-radius: var(--r-8);
	color: var(--n-80);
	background: var(--dark-raised);
	font-size: 20px;
}
/* Phones: stacked; number in groups (0938 457 3571) with its label right under it */
.footer-contact .footer-contact__phones { flex-direction: column; align-items: flex-start; row-gap: 18px; }
.footer-contact__phones a { display: grid; grid-template-columns: auto 1fr; column-gap: var(--sp-12); align-items: center; }
.footer-contact__phones .icon { grid-row: 1 / 3; color: var(--n-100); background: var(--orange); }
.footer-contact__num { color: var(--n-100); font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: .04em; word-spacing: .25em; justify-self: start; }
.footer-contact .footer-contact__label { grid-column: 2; margin-top: 2px; color: var(--n-60); font-size: 12px; line-height: 1.3; font-weight: 400; }

/* Trust strip: official badges + other stores. Each badge link is a white tile (badges are made for white backgrounds).
   Desktop: one slim bar with both groups; mobile: two titled rows of four. */
.footer-trust { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24); margin-bottom: var(--sp-24); padding: 14px 22px; border-radius: var(--r-16); background: var(--dark-card); }
.footer-trust__group { display: flex; align-items: center; gap: var(--sp-16); min-width: 0; }
.footer-trust__group + .footer-trust__group { padding-inline-start: var(--sp-24); border-inline-start: 1px solid var(--dark-line); }
.site-footer .footer-trust__title { margin: 0; max-width: 120px; color: var(--n-80); font-size: 13px; line-height: 1.6; font-weight: 700; }
.footer-trust__row { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.footer-trust__row a { display: grid; place-items: center; width: 64px; height: 64px; padding: 7px; border-radius: 12px; background: #fff; transition: transform .15s; }
.footer-trust__row a:hover { transform: translateY(-2px); }
@media (min-width: 1025px) { .footer-trust__row a.is-wide { width: 104px; padding-inline: 10px; } } /* wordmark logos (Technolife, Digikala…) and the business licence */
.footer-trust__row a.is-zoom { cursor: zoom-in; }
.footer-trust__row a.is-wide img { max-height: 34px; } /* a wordmark at full tile height looks much bigger than the badges */
.footer-trust__row a.is-zoom img { max-height: 50px; border-radius: 3px; } /* the licence is a landscape document, not a wordmark */

/* Licence viewer (opened by an .is-zoom badge) */
.footer-zoom { width: min(1040px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: #fff; overflow: auto; }
.footer-zoom::backdrop { background: rgb(7 20 28 / .78); }
.footer-zoom img { display: block; width: 100%; height: auto; }
.footer-zoom__close { position: absolute; top: 10px; inset-inline-start: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #072C3D; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; }
.footer-trust__row img { width: auto; height: auto; max-width: 100%; max-height: 50px; object-fit: contain; }

/* Row 2: brand + menu, social */
.site-footer__nav {
	display: grid;
	grid-template-columns: 892fr 404fr;
	gap: var(--sp-24);
	padding-block: var(--sp-24);
	border-block: 1px solid var(--dark-line);
}

.footer-menu {
	display: flex;
	align-items: center;
	min-height: 98px;
	overflow: hidden;
	border-radius: var(--r-16);
	background: var(--dark-card);
}
.footer-menu__brand {
	position: relative;
	display: grid;
	place-items: center;
	align-self: stretch;
	flex: none;
	width: 220px;
	color: var(--n-100);
	background: var(--orange);
	font-size: var(--fs-title-m);
	line-height: var(--lh-title-m);
	font-weight: 700;
}
.footer-menu__name {
	padding-bottom: var(--sp-8);
	background:
		linear-gradient(var(--n-100), var(--n-100)) left bottom / 24px 2px no-repeat,
		linear-gradient(var(--n-100), var(--n-100)) right bottom / 24px 2px no-repeat;
}
.footer-menu__arrow {
	position: absolute;
	inset-inline-end: -24px;
	top: 50%;
	translate: 0 -50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: var(--r-pill);
	color: var(--n-10);
	background: var(--n-100);
	font-size: 24px;
	transition: translate .2s;
}
.site-footer .footer-menu__brand,
.site-footer .footer-menu__brand:hover { color: var(--n-100); } /* beats .site-footer a { inherit } */
.footer-menu__brand { transition: background-color .3s; }
.footer-menu__brand:hover { background: var(--orange-hover); }
.footer-menu__brand:hover .footer-menu__arrow { translate: -4px -50%; }
.footer-menu__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-12) var(--sp-40);
	padding-inline: var(--sp-64) var(--sp-24);
}

.footer-social {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-16);
	padding: var(--sp-16) var(--sp-32);
	border-radius: var(--r-16);
	background: var(--dark-card);
}
.footer-social__title { color: var(--n-100); font-size: var(--fs-title-m); line-height: var(--lh-title-m); font-weight: 700; }
.social-links--round { gap: var(--sp-12); }
.social-links--round .social-links__link { width: 40px; height: 40px; border-radius: var(--r-pill); color: var(--n-80); background: var(--n-20); }
.social-links--round .social-links__link:hover { color: var(--n-100); background: var(--blue); }
/* Footer: each network in its own brand colour. Hover keeps the colour: the circle lifts and a soft ring
   in the same colour grows around it, so every network (blue Telegram included) reacts the same way. */
.social-links--brand { flex-wrap: wrap; }
.social-links--brand .social-links__link { --sl-bg: var(--n-20); --sl-ring: rgba(255, 255, 255, .35); display: grid; place-items: center; background: var(--sl-bg); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.social-links--brand .social-links__link .icon { width: 22px; height: 22px; padding: 0; background: none; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.social-links--round.social-links--brand .social-links__link:hover,
.social-links--round.social-links--brand .social-links__link:focus-visible { background: var(--sl-bg); transform: translateY(-3px); box-shadow: 0 0 0 4px var(--sl-ring), 0 10px 18px -6px var(--sl-ring); outline: none; }
.social-links--brand .social-links__link:hover .icon { transform: scale(1.12); }
.social-links--brand .social-links__link--instagram { --sl-bg: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); --sl-ring: rgba(214, 36, 159, .38); }
.social-links--brand .social-links__link--telegram { --sl-bg: #229ED9; --sl-ring: rgba(34, 158, 217, .4); }
.social-links--brand .social-links__link--whatsapp { --sl-bg: #25D366; --sl-ring: rgba(37, 211, 102, .38); }
.social-links--brand .social-links__link--youtube { --sl-bg: #FF0033; --sl-ring: rgba(255, 0, 51, .38); }
.social-links--brand .social-links__link--aparat { --sl-bg: transparent; --sl-ring: rgba(223, 15, 80, .38); }
.social-links--brand .social-links__link--aparat .icon { width: 40px; height: 40px; } /* the pink reel itself is the circle */
.social-links--brand .social-links__link--twitter { --sl-bg: #000; --sl-ring: rgba(255, 255, 255, .28); box-shadow: inset 0 0 0 1px #4a4a4a; }
@media (prefers-reduced-motion: reduce) { .social-links--brand .social-links__link, .social-links--brand .social-links__link .icon { transition: none; } }

/* Row 3: copyright */
.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-16);
	min-height: 100px;
	margin-top: var(--sp-24);
	padding: var(--sp-24) var(--sp-32);
	border-radius: var(--r-16) var(--r-16) 0 0;
	background: var(--dark-card);
}

/* Credit: same type as the copyright line beside it; the name is a link with a faint underline */
.footer-credits { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.site-footer .footer-credits a { color: inherit; font-weight: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: color .15s, border-color .15s; }
.site-footer .footer-credits a:hover { color: var(--n-100); border-bottom-color: var(--n-100); }

@media (max-width: 1024px) {
	.site-footer__cols { grid-template-columns: repeat(2, 1fr); }
	.site-footer__nav { grid-template-columns: 1fr; }
	.footer-trust { flex-direction: column; align-items: stretch; padding: 0; background: none; gap: 22px; }
	.footer-trust__group { flex-direction: column; align-items: stretch; gap: 12px; }
	.footer-trust__group + .footer-trust__group { padding-inline-start: 0; border: 0; }
	.site-footer .footer-trust__title { max-width: none; color: var(--n-100); font-size: 14px; }
	.footer-trust__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.footer-trust__row a { width: auto; height: 84px; padding: 10px; }
	.footer-trust__row img { max-height: 64px; }
}

@media (max-width: 769px) {
	.site-footer { margin-top: var(--sp-48); padding-top: var(--sp-32); }
	.site-footer__cols { grid-template-columns: 1fr; }
	.footer-contact__num { font-size: 19px; }
	.footer-trust__row a { height: 78px; border-radius: 12px; }
	.footer-trust__row img { max-height: 58px; }
	.footer-menu { flex-direction: column; align-items: stretch; }
	.footer-menu__brand { min-height: 64px; width: auto; }
	.footer-menu__arrow { display: none; }
	.footer-menu__list { justify-content: center; padding: var(--sp-24); gap: var(--sp-12) var(--sp-24); }
	.footer-social { flex-direction: column; padding: var(--sp-24); }
	.site-footer__bottom { flex-direction: column; text-align: center; padding: var(--sp-24) var(--sp-16); }
	.footer-credits { justify-content: center; }
}
