/* Footer layout (Figma: DOZ — Landing Page / Group 24).
   Rows: about | download, then social | contact | newsletter, then the two link
   columns. Areas are placed by name, so the DOM keeps reading order on mobile. */
.main-footer .footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"about about download"
		"social contact newsletter"
		"nav nav nav";
	gap: 56px 40px;
	align-items: start;
}

.main-footer .footer-about { grid-area: about; }
.main-footer .footer-download { grid-area: download; }
.main-footer .footer-social { grid-area: social; }
.main-footer .footer-contact { grid-area: contact; }
.main-footer .footer-newsletter-form { grid-area: newsletter; }
.main-footer .footer-nav { grid-area: nav; }

.main-footer .footer-title {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.7;
	text-transform: capitalize;
	color: var(--primary-color);
	margin-bottom: 30px;
}

.main-footer .footer-logo { margin-bottom: 8px; }

.main-footer .footer-about p {
	max-width: 590px;
	font-size: 20px;
	line-height: 1.7;
	margin: 0;
}

.main-footer .footer-download .footer-title { margin-bottom: 12px; }

.main-footer .footer-store-badges { gap: 9px; font-size: 12px; }

.main-footer .footer-social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 56px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-footer .footer-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: 18px;
	color: var(--accent-color);
	transition: color 0.3s ease-in-out;
}

.main-footer .footer-social a:hover { color: var(--primary-color); }

.main-footer .footer-contact {
	display: flex;
	flex-direction: column;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-footer .footer-contact a {
	display: inline-flex;
	align-items: center;
	font-size: 22px;
	line-height: 1.7;
	color: var(--primary-color);
	transition: color 0.3s ease-in-out;
}

.main-footer .footer-contact a:hover { color: var(--accent-color); }

.main-footer .footer-contact .contact-icon {
	width: 25px;
	height: 25px;
	margin-inline-end: 10px;
}

.main-footer .footer-newsletter-form .form-group { gap: 12px; }

.main-footer .footer-newsletter-form .form-group .form-control {
	flex: 1;
	width: auto;
	min-width: 0;
}

.main-footer .footer-newsletter-form .form-group .newsletter-btn { flex-shrink: 0; }

/* Figma: three equal columns 68px apart; one divider, 40px off the first column */
.main-footer .footer-nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 68px;
}

.main-footer .footer-nav-col:first-child { position: relative; }

.main-footer .footer-nav-col:first-child::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: -40px;
	width: 1px;
	background-color: var(--divider-color);
}

.main-footer .footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-footer .footer-nav li {
	font-size: 20px;
	line-height: 1.7;
	text-transform: capitalize;
	margin-bottom: 15px;
}

.main-footer .footer-nav li:last-child { margin-bottom: 0; }

.main-footer .footer-nav a {
	color: inherit;
	transition: color 0.3s ease-in-out;
}

.main-footer .footer-nav a:hover { color: var(--accent-color); }

/* Operator details: name | role, then term | value rows */
.main-footer .footer-copyright-text {
	border-top: 1px solid #ffffff30;
	margin-top: 60px;
	padding: 28px 0 35px;
}

.main-footer .operator-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
}

.main-footer .operator-details p { margin: 0; }

.main-footer .operator-details dl {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 24px;
	margin: 0;
}

.main-footer .operator-details dd { margin: 0; }

.main-footer .footer-copyright-text > p {
	text-align: center;
	margin: 24px 0 0;
}

@media only screen and (max-width: 1199px) {
	.main-footer .footer-title { font-size: 20px; margin-bottom: 20px; }
	.main-footer .footer-about p { font-size: 18px; }
	.main-footer .footer-contact a { font-size: 20px; }
	.main-footer .footer-contact { gap: 20px; }
	.main-footer .footer-social ul { gap: 12px 32px; }
	.main-footer .footer-nav li { margin-bottom: 10px; }
}

@media only screen and (max-width: 991px) {
	.main-footer .footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"about about"
			"download newsletter"
			"social contact"
			"nav nav";
		gap: 40px 30px;
	}

	.main-footer .footer-copyright-text { margin-top: 30px; padding-bottom: 30px; }
}

@media only screen and (max-width: 767px) {
	.main-footer .footer-grid {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"about"
			"download"
			"contact"
			"social"
			"newsletter"
			"nav";
		gap: 30px;
	}

	.main-footer .footer-title { font-size: 18px; margin-bottom: 15px; }
	.main-footer .footer-about p { font-size: 16px; }
	.main-footer .footer-contact a { font-size: 16px; }
	.main-footer .footer-contact { gap: 15px; }
	.main-footer .footer-contact .contact-icon { width: 20px; height: 20px; margin-inline-end: 8px; }
	.main-footer .footer-store-badges { font-size: 11px; }
	.main-footer .footer-nav { gap: 30px 32px; }
	.main-footer .footer-nav-col:first-child::after { inset-inline-end: -16px; }
	.main-footer .footer-nav li { font-size: 16px; }
	.main-footer .footer-copyright-text { padding-bottom: 15px; }
}

@media only screen and (max-width: 575px) {
	.main-footer .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.main-footer .footer-nav-col:first-child::after { display: none; }
	.main-footer .operator-details,
	.main-footer .operator-details dl { grid-template-columns: minmax(0, 1fr); }
	.main-footer .operator-details dd { margin-bottom: 12px; }
}

/* App store buttons (Figma: DOZ — Landing Page), used by the footer and the
   landing sections. Sizes are in em, so a container's font-size scales them:
   16px = the 58px-tall buttons of the hero, 12px = the footer's. */
.store-badges { display: flex; flex-wrap: wrap; gap: 1.44em; font-size: 16px; }
.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.53em;
	height: 3.64em;
	padding: 0 0.74em;
	border: 1px solid #fff;
	border-radius: 0.59em;
	background: #000;
	color: #fff;
	line-height: 1;
	white-space: nowrap;
	transition: border-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.store-badge:hover { color: #fff; border-color: #ffdd00; transform: translateY(-2px); }
.store-badge:focus-visible { outline: 2px solid #ffdd00; outline-offset: 3px; }
/* Figma widths at 16px: Google Play 196px, App Store 168px (both 58px tall) */
.store-badge--google { width: 12.26em; border-color: #a6a6a6; }
.store-badge--apple { width: 10.49em; }
.store-badge__icon { flex-shrink: 0; width: auto; height: 1.92em; }
.store-badge--google .store-badge__icon { height: 2.1em; }
.store-badge__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.12em; }
.store-badge__text[lang="ar"] { align-items: flex-end; }
.store-badge__prompt { font-size: 0.77em; font-weight: 500; }
.store-badge__text[lang="en"] .store-badge__prompt { font-size: 0.7em; }
.store-badge__store { font-size: 1.63em; font-weight: 500; letter-spacing: -0.07em; }