/**
 * C-Persian — Footer
 *
 * Mobile-first footer with native accordion on small screens.
 */


/* ==========================================================================
   Footer shell
   ========================================================================== */

.cp-footer {
	padding-block: 38px 20px;

	background: var(--cp-navy);
	color: #fff;
}


/* ==========================================================================
   Shared brand
   ========================================================================== */

.cp-footer__brand {
	max-width: 520px;
}

.cp-footer__brand-row {
	display: flex;
	align-items: center;

	gap: 10px;

	margin-block-end: 10px;
}

.cp-footer__logo,
.cp-footer__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;

	line-height: 0;
}

.cp-footer__logo .custom-logo {
	display: block;

	width: 36px;
	height: 36px;

	object-fit: contain;
}

.cp-footer__brand-name {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.cp-footer__description {
	margin: 0;

	max-width: 460px;

	color: rgba(255, 255, 255, 0.68);

	font-size: 13px;
	line-height: 1.85;
}


/* ==========================================================================
   Mobile brand
   ========================================================================== */

.cp-footer__brand--mobile {
	display: block;

	margin-block-end: 24px;
}


/* ==========================================================================
   Mobile accordion
   ========================================================================== */

.cp-footer__mobile {
	display: grid;

	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}

.cp-footer-accordion {
	margin: 0;

	border-block-end: 1px solid rgba(255, 255, 255, 0.12);
}

.cp-footer-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 12px;

	padding-block: 13px;

	color: #fff;

	font-size: 14px;
	font-weight: 800;
	line-height: 1.6;

	cursor: pointer;

	list-style: none;
}

.cp-footer-accordion__summary::-webkit-details-marker {
	display: none;
}

.cp-footer-accordion__summary::marker {
	display: none;
	content: '';
}

.cp-footer-accordion__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 20px;
	height: 20px;

	color: rgba(255, 255, 255, 0.72);

	font-size: 20px;
	font-weight: 400;
	line-height: 1;

	transition: transform 180ms ease;
}

.cp-footer-accordion[open] .cp-footer-accordion__icon {
	transform: rotate(45deg);
}

.cp-footer-accordion__content {
	padding: 0 0 16px;
}

.cp-footer__mobile .cp-footer__links {
	display: grid;

	gap: 5px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.cp-footer__mobile .cp-footer__links a {
	display: inline-flex;

	padding-block: 3px;

	color: rgba(255, 255, 255, 0.68);

	font-size: 13px;
	line-height: 1.7;

	text-decoration: none;

	transition: color var(--cp-transition);
}

.cp-footer__mobile .cp-footer__links a:hover {
	color: var(--cp-coral);
}


/* ==========================================================================
   Desktop / tablet main footer
   ========================================================================== */

.cp-footer__main {
	display: none;
}

.cp-footer__group {
	border-block-start: 0;
	padding-block-start: 0;
}

.cp-footer__title {
	margin: 0 0 14px;

	color: #fff;

	font-size: 15px;
	font-weight: 800;
	line-height: 1.6;
}

.cp-footer__links {
	display: grid;

	gap: 10px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.cp-footer__links a {
	color: rgba(255, 255, 255, 0.68);

	font-size: 14px;
	line-height: 1.8;

	text-decoration: none;

	transition: color var(--cp-transition);
}

.cp-footer__links a:hover {
	color: var(--cp-coral);
}


/* ==========================================================================
   Footer bottom
   ========================================================================== */

.cp-footer__copyright {
	margin: 0;

	color: rgba(255, 255, 255, 0.5);

	font-size: 11px;
	line-height: 1.7;
}

.cp-footer__contact {
	display: inline-flex;
	align-items: center;

	width: fit-content;

	color: #fff;

	font-size: 12px;
	font-weight: 800;

	text-decoration: none;

	transition: color var(--cp-transition);
}

.cp-footer__contact:hover {
	color: var(--cp-coral);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {

	.cp-footer {
		padding-block: 72px 28px;
	}

	.cp-footer__brand--mobile,
	.cp-footer__mobile {
		display: none;
	}

	.cp-footer__main {
		display: grid;

		grid-template-columns: repeat(2, minmax(0, 1fr));

		gap: 36px 48px;
	}

	.cp-footer__brand {
		grid-column: 1 / -1;
	}

	.cp-footer__description {
		font-size: 15px;
	}

	.cp-footer__bottom {
		margin-block-start: 44px;
		padding-block-start: 20px;
	}

}


/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1024px) {

	.cp-footer {
		padding-block: 88px 32px;
	}

	.cp-footer__main {
		grid-template-columns:
			minmax(0, 1.4fr)
			repeat(3, minmax(0, 0.7fr));

		align-items: start;

		gap: 48px;
	}

	.cp-footer__brand {
		grid-column: auto;
	}

	.cp-footer__logo .custom-logo {
		width: 42px;
		height: 42px;
	}

	.cp-footer__brand-name {
		font-size: 20px;
	}

	.cp-footer__title {
		font-size: 16px;
	}

	.cp-footer__links a {
		font-size: 14px;
	}

	.cp-footer__bottom {
		margin-block-start: 56px;
		padding-block-start: 24px;
	}

}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.cp-footer-accordion__icon,
	.cp-footer__links a,
	.cp-footer__contact {
		transition: none !important;
	}

}

/* ==========================================================================
   Footer search
   ========================================================================== */

.cp-footer-search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.cp-footer-search__label {
	color: rgba(255, 255, 255, 0.58);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.7;
	white-space: nowrap;
}

.cp-footer-search__field {
	display: flex;
	align-items: center;
	width: 270px;
	height: 42px;
	padding-inline: 14px 7px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.055);
	transition:
		border-color 160ms ease,
		background-color 160ms ease;
}

.cp-footer-search__field:focus-within {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.085);
}

.cp-footer-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.7;
}

.cp-footer-search__input::placeholder {
	color: rgba(255, 255, 255, 0.42);
}

.cp-footer-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	transition:
		background-color 160ms ease,
		color 160ms ease;
}

.cp-footer-search__submit:hover,
.cp-footer-search__submit:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.cp-footer-search__submit svg {
	display: block;
	width: 17px;
	height: 17px;
}


/* ==========================================================================
   Footer bottom row
   ========================================================================== */

.cp-footer__bottom {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	margin-block-start: 28px;
	padding-block-start: 16px;

	border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}

.cp-footer__contact {
	justify-self: start;
}

.cp-footer-search {
	justify-self: center;
}

.cp-footer__copyright {
	justify-self: end;
	margin: 0;
}


/* ==========================================================================
   Footer search — Mobile
   ========================================================================== */

@media (max-width: 767px) {

	.cp-footer__bottom {
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		margin-block-start: 18px;
		padding-block-start: 14px;
	}

	.cp-footer__contact {
		order: 1;
		width: auto;
		align-self: flex-start;
	}

	.cp-footer-search {
		order: 2;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 7px;
		width: 100%;
	}

	.cp-footer-search__label {
		font-size: 10px;
		color: rgba(255, 255, 255, 0.58);
	}

	.cp-footer-search__field {
		width: 100%;
		height: 46px;
		padding-inline: 15px 8px;
	}

	.cp-footer-search__input {
		font-size: 12px;
	}

	.cp-footer__copyright {
		order: 3;
		align-self: flex-start;
		margin-top: 6px;
	}
}