/**
 * Lindex Footer Styles
 * --------------------------------------------------------------
 * Storefront footer matching the lindex.com layout:
 *   - Info blocks (left) + Newsletter (right)
 *   - Payments (left) + Social (right)
 *   - Centered accordion sections
 *   - Bottom: logo, contact line, country pill
 *   - Sub-footer: copyright + powered by
 */

:root {
	--lindex-footer-bg: #f6f3ee;
	--lindex-footer-ink: #1a1a1a;
	--lindex-footer-muted: #4a4a4a;
	--lindex-footer-divider: #d8d3ca;
	--lindex-footer-pad-x: clamp(20px, 5vw, 80px);
	--lindex-footer-pad-y: clamp(40px, 6vw, 80px);
	--lindex-footer-max: 1440px;
}

/* =============================================================================
   WRAPPER
   ========================================================================== */
.lindex-footer {
	background: var(--lindex-footer-bg);
	color: var(--lindex-footer-ink);
	font-family: var(--cb-font-body, "Manrope", -apple-system, "Helvetica Neue", sans-serif);
	font-size: 14px;
	line-height: 1.6;
	border-top: 1px solid var(--lindex-footer-divider);
}

/* Kill global accent-color hover from main.css for all footer links
   EXCEPT social icons and logo which need their own colors */
.lindex-footer a:not(.lindex-social__link):not(.lindex-footer__logo),
.lindex-footer a:not(.lindex-social__link):not(.lindex-footer__logo):hover,
.lindex-footer a:not(.lindex-social__link):not(.lindex-footer__logo):focus,
.lindex-footer a:not(.lindex-social__link):not(.lindex-footer__logo):active,
.lindex-footer a:not(.lindex-social__link):not(.lindex-footer__logo):visited {
	color: var(--lindex-footer-ink);
	text-decoration: none;
	transition: none;
}

/* Social icons: force white on all states */
.lindex-footer a.lindex-social__link,
.lindex-footer a.lindex-social__link:hover,
.lindex-footer a.lindex-social__link:focus,
.lindex-footer a.lindex-social__link:active,
.lindex-footer a.lindex-social__link:visited {
	color: #fff;
}

.lindex-footer__inner {
	max-width: var(--lindex-footer-max);
	margin: 0 auto;
	padding: var(--lindex-footer-pad-y) var(--lindex-footer-pad-x);
}

/* Heading reset */
.lindex-footer__heading {
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--lindex-footer-ink);
}

.lindex-footer__lede {
	margin: 0 0 18px;
	color: var(--lindex-footer-ink);
	font-size: 14px;
}

/* =============================================================================
   ROW 1 — INFO + NEWSLETTER
   ========================================================================== */
.lindex-footer__row {
	display: grid;
	gap: clamp(32px, 5vw, 80px);
}

.lindex-footer__row--top {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	padding-bottom: clamp(28px, 4vw, 48px);
}

@media (max-width: 900px) {
	.lindex-footer__row--top {
		grid-template-columns: 1fr;
	}
}

/* Info blocks ------------------------------------------------------------- */
.lindex-info {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.lindex-info__item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.lindex-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--lindex-footer-ink);
	margin-top: 2px;
}

.lindex-info__body { min-width: 0; }

.lindex-info__title {
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
	color: var(--lindex-footer-ink);
}

.lindex-info__text {
	margin: 0;
	font-size: 13.5px;
	color: var(--lindex-footer-ink);
	line-height: 1.55;
	max-width: 56ch;
}

/* Newsletter -------------------------------------------------------------- */
.lindex-newsletter {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lindex-newsletter__label {
	font-size: 13.5px;
	color: var(--lindex-footer-ink);
	margin-bottom: 2px;
}

.lindex-newsletter__req {
	color: var(--lindex-logo-red, #d6253b);
	margin-left: 2px;
}

.lindex-newsletter__input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--lindex-footer-ink);
	border-radius: 0;
	padding: 14px 16px;
	font: inherit;
	font-size: 15px;
	color: var(--lindex-footer-ink);
	outline: 0;
	transition: box-shadow 150ms ease;
}
.lindex-newsletter__input:focus {
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}

.lindex-newsletter__submit {
	margin-top: 8px;
	width: 100%;
	background: #1a1a1a;
	color: #fff;
	border: 0;
	border-radius: 9999px;
	padding: 16px 24px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 150ms ease;
}
.lindex-newsletter__submit:hover { background: #000; }

/* =============================================================================
   ROW 2 — PAYMENTS + SOCIAL
   ========================================================================== */
.lindex-footer__row--mid {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	padding: clamp(20px, 3vw, 40px) 0;
}

@media (max-width: 900px) {
	.lindex-footer__row--mid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* Payments ---------------------------------------------------------------- */
.lindex-payments__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-bottom: 16px;
}

.lindex-payments__title {
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: var(--lindex-footer-ink);
}

.lindex-payments__link {
	font-size: 14px;
	color: var(--lindex-footer-ink);
	text-decoration: none;
}
.lindex-payments__link:hover { text-decoration: none; }

.lindex-payments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.lindex-payments__item {
	display: inline-flex;
	align-items: center;
	height: 28px;
}

.lindex-payments__item svg,
.lindex-payments__item img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 56px;
}

/* Social ------------------------------------------------------------------ */
.lindex-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.lindex-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 9999px;
	transition: opacity 150ms ease, transform 150ms ease;
}
.lindex-social__link:hover {
	color: #fff;
	opacity: 0.7;
	transform: translateY(-1px);
}
.lindex-social__link svg {
	display: block;
	color: #fff;
}

/* =============================================================================
   ROW 3 — ACCORDION
   ========================================================================== */
.lindex-footer__row--accordion {
	display: block;
	padding: clamp(20px, 3vw, 32px) 0;
}

.lindex-accordion {
	max-width: 720px;
	margin: 0 auto;
}

.lindex-accordion__item {
	border-bottom: 1px solid var(--lindex-footer-divider);
}

.lindex-accordion__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	background: none;
	border: 0;
	padding: 22px 4px;
	margin: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: var(--lindex-footer-ink);
	cursor: pointer;
	text-align: left;
}

.lindex-accordion__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--lindex-footer-ink);
}

.lindex-accordion__icon-v {
	transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
	transform-origin: center;
}

.lindex-accordion__head[aria-expanded="true"] .lindex-accordion__icon-v {
	transform: scaleY(0);
}

.lindex-accordion__panel {
	padding: 0 4px 24px;
}

.lindex-accordion__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lindex-accordion__link {
	display: inline-block;
	color: var(--lindex-footer-ink);
	text-decoration: none;
	font-size: 14.5px;
	padding: 4px 0;
}
.lindex-accordion__link:hover {
	text-decoration: none;
}

/* =============================================================================
   ROW 4 — BOTTOM
   ========================================================================== */
.lindex-footer__row--bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding-top: clamp(24px, 4vw, 48px);
	text-align: center;
}

.lindex-footer__logo {
	display: inline-flex;
	align-items: center;
	color: var(--lindex-logo-red, #d6253b);
	text-decoration: none;
	line-height: 1;
}
.lindex-footer__logo:hover {
	color: var(--lindex-logo-red, #d6253b);
}
.lindex-footer__logo img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 220px;
}
.lindex-footer__logo-text {
	font-family: var(--cb-font-display, "Cormorant Garamond", Georgia, serif);
	font-weight: 700;
	font-size: 44px;
	letter-spacing: 0.04em;
	color: var(--lindex-logo-red, #d6253b);
	line-height: 1;
}

.lindex-footer__contact {
	margin: 0;
	font-size: 14.5px;
	color: var(--lindex-footer-ink);
}
.lindex-footer .lindex-footer__contact a:not(.lindex-footer__logo),
.lindex-footer .lindex-footer__contact a:not(.lindex-footer__logo):hover,
.lindex-footer .lindex-footer__contact a:not(.lindex-footer__logo):focus,
.lindex-footer .lindex-footer__contact a:not(.lindex-footer__logo):active {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	margin: 0 4px;
}
.lindex-footer .lindex-footer__contact a:not(.lindex-footer__logo):hover { opacity: 0.6; }
.lindex-footer__contact span + span,
.lindex-footer__contact span + a,
.lindex-footer__contact a + span {
	margin-left: 0;
}

.lindex-footer__country {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 0;
	padding: 6px 4px;
	font: inherit;
	font-size: 14.5px;
	color: var(--lindex-footer-ink);
	cursor: pointer;
	text-decoration: none;
}

.lindex-footer__country-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--lindex-footer-ink);
}

.lindex-footer__copyright {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--lindex-footer-muted);
}

/* =============================================================================
   SUB-FOOTER — COPYRIGHT (centered) + POWERED BY (right)
   ========================================================================== */
.lindex-subfooter {
	background: #1a1a1a;
	color: #fff;
	font-family: 'Lindex Sans', var(--cb-font-body, "Manrope", -apple-system, sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

.lindex-subfooter__inner {
	max-width: var(--lindex-footer-max, 1440px);
	margin: 0 auto;
	padding: 16px var(--lindex-footer-pad-x, clamp(20px, 5vw, 80px));
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
}

.lindex-subfooter__copy {
	color: #fff;
	text-align: center;
	grid-column: 2;
}

a.lindex-subfooter__powered,
a.lindex-subfooter__powered:hover,
a.lindex-subfooter__powered:focus,
a.lindex-subfooter__powered:active,
a.lindex-subfooter__powered:visited {
	color: #fff;
	text-align: right;
	grid-column: 3;
	text-decoration: none;
	font-weight: 400;
}

.lindex-subfooter__powered strong {
	font-weight: 700;
}

@media (max-width: 480px) {
	.lindex-subfooter__inner {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 14px 20px;
		gap: 6px;
	}
	.lindex-subfooter__copy { grid-column: 1; }
	a.lindex-subfooter__powered { grid-column: 1; text-align: center; }
}

/* =============================================================================
   MOBILE TWEAKS
   ========================================================================== */
@media (max-width: 480px) {
	.lindex-footer__inner {
		padding: 40px 20px;
	}
	.lindex-info__title { font-size: 14.5px; }
	.lindex-info__text  { font-size: 13px; }
	.lindex-footer__logo-text { font-size: 36px; }
}