/**
 * OPENGRADIENT footer: HTML block 1731 "Footer Opengradient" (classes og-footer-*). See inc/og-footer.php.
 *
 * Layout: 1025 px and up, four columns (brand wider); 768–1024 px, brand on top and three link columns;
 * below 768 px, brand on top, Explore on the left, Company then Help on the right.
 * Selectors start with "footer.wd-footer .elementor-1731" so they outrank Elementor's per-element CSS for the block,
 * which loads after this file; its responsive values stay in the block but are overridden here.
 */

.elementor-1731 {
	--og-footer-ink: #241E1B;
	--og-footer-accent: #56152B;
	--og-footer-line: rgba(36, 30, 27, 0.16);
	/* WoodMart draws keyboard focus outlines (with !important) from these variables. */
	--wd-otl-color: #56152B;
	--wd-otl-style: solid;
	--wd-otl-width: 2px;
	--wd-otl-offset: 2px;
	color: var(--og-footer-ink);
}

footer.wd-footer:has(.og-footer-main) {
	background-color: #F7F3ED;
}

/* Columns */
footer.wd-footer .elementor-1731 .og-footer-main.e-con {
	padding-top: 56px;
	padding-bottom: 40px;
}

/* Elementor puts a boxed container's top/bottom padding on its inner wrapper; the padding is set on the container
   itself here, so the wrappers get none. */
footer.wd-footer .elementor-1731 .og-footer-main > .e-con-inner,
footer.wd-footer .elementor-1731 .og-footer-bottom > .e-con-inner {
	padding-block: 0;
}

footer.wd-footer .elementor-1731 .og-footer-main > .e-con-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	grid-template-areas: "brand explore company help";
	align-items: start;
	gap: 32px 48px;
}

footer.wd-footer .elementor-1731 .og-footer-main > .e-con-inner > .e-con {
	--width: auto;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

footer.wd-footer .elementor-1731 .og-footer-brand { grid-area: brand; }
footer.wd-footer .elementor-1731 .og-footer-explore { grid-area: explore; }
footer.wd-footer .elementor-1731 .og-footer-company { grid-area: company; }
footer.wd-footer .elementor-1731 .og-footer-help { grid-area: help; }

/* Headings: same line box in every column, so the wordmark and the three headings line up and the content below
   them starts at one height. */
footer.wd-footer .elementor-1731 .og-footer-main .wd-el-toggle-head {
	display: flex;
	align-items: center;
	min-height: 32px;
	padding: 0;
	cursor: default;
}

footer.wd-footer .elementor-1731 .og-footer-main .wd-el-toggle-title {
	color: var(--og-footer-ink);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
}

footer.wd-footer .elementor-1731 .og-footer-brand .wd-el-toggle-title {
	color: var(--og-footer-accent);
	font-size: 24px;
	letter-spacing: -0.01em;
}

footer.wd-footer .elementor-1731 .og-footer-main .wd-el-toggle-content {
	margin-top: 14px;
}

/* Company description, CIN / GSTIN, address */
footer.wd-footer .elementor-1731 .og-footer-brand .wd-text-block {
	max-width: 30rem;
	color: var(--og-footer-ink);
	font-size: 14px;
	line-height: 1.65;
}

footer.wd-footer .elementor-1731 .og-footer-brand .wd-text-block p {
	margin: 0 0 10px;
}

footer.wd-footer .elementor-1731 .og-footer-brand .wd-text-block p:last-child {
	margin-bottom: 0;
}

/* Link lists */
footer.wd-footer .elementor-1731 .og-footer-main .wd-list {
	--wd-row-gap: 4px;
}

footer.wd-footer .elementor-1731 .og-footer-main .wd-list-content {
	font-weight: 400;
	font-size: 15px;
	line-height: 1.45;
}

footer.wd-footer .elementor-1731 .og-footer-main li,
footer.wd-footer .elementor-1731 .og-footer-main li a {
	color: var(--og-footer-ink);
}

footer.wd-footer .elementor-1731 .og-footer-main li a {
	display: inline-block;
	padding-block: 3px;
	text-decoration: none;
}

/* Bottom row: thin divider; copyright + credit left, contact right */
footer.wd-footer .elementor-1731 .og-footer-bottom.e-con {
	padding: 20px 72px 24px 0; /* Right: clear of the back-to-top button (50 px, 20 px from the edge). */
	border-top: 1px solid var(--og-footer-line);
}

footer.wd-footer .elementor-1731 .og-footer-bottom > .e-con-inner {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 32px;
}

footer.wd-footer .elementor-1731 .og-footer-bottom .elementor-widget {
	--container-widget-width: auto;
	width: auto;
	max-width: 100%;
	margin: 0;
}

footer.wd-footer .elementor-1731 .og-footer-legal .wd-text-block,
footer.wd-footer .elementor-1731 .og-footer-contact .wd-text-block {
	color: var(--og-footer-ink);
	font-size: 13px;
	line-height: 1.5;
}

footer.wd-footer .elementor-1731 .og-footer-legal .og-copyright {
	gap: 2px 16px;
}

footer.wd-footer .elementor-1731 .og-footer-legal .og-credit {
	color: var(--og-footer-ink);
}

footer.wd-footer .elementor-1731 .og-footer-contact .wd-text-block {
	font-size: 14px;
}

footer.wd-footer .elementor-1731 .og-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0;
}

footer.wd-footer .elementor-1731 .og-contact a {
	display: inline-block;
	padding-block: 3px;
	color: var(--og-footer-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

/* Hover and keyboard focus: maroon (the focus outline colour comes from --wd-otl-color above). */
footer.wd-footer .elementor-1731 a:hover,
footer.wd-footer .elementor-1731 a:focus-visible,
footer.wd-footer .elementor-1731 .og-footer-main li a:hover,
footer.wd-footer .elementor-1731 .og-footer-main li a:focus-visible,
footer.wd-footer .elementor-1731 .og-contact a:hover,
footer.wd-footer .elementor-1731 .og-contact a:focus-visible {
	color: var(--og-footer-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

footer.wd-footer .elementor-1731 a:focus-visible {
	border-radius: 2px;
}

/* Tablet: brand across the top, three link columns below */
@media (max-width: 1024px) {
	footer.wd-footer .elementor-1731 .og-footer-main.e-con {
		padding-top: 48px;
		padding-bottom: 32px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main > .e-con-inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-areas:
			"brand brand brand"
			"explore company help";
		gap: 28px 32px;
	}

	footer.wd-footer .elementor-1731 .og-footer-brand .wd-el-toggle-title {
		font-size: 22px;
	}

	footer.wd-footer .elementor-1731 .og-footer-brand .wd-text-block {
		max-width: 40rem;
	}

	/* The mobile toolbar is shown here; its back-to-top button is 40 px, 12 px from the edge. */
	footer.wd-footer .elementor-1731 .og-footer-bottom.e-con {
		padding-right: 60px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	footer.wd-footer:has(.og-footer-main) .main-footer {
		padding-inline: 16px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main.e-con {
		padding-top: 32px;
		padding-bottom: 24px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main > .e-con-inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"brand brand"
			"explore company"
			"explore help";
		gap: 22px 16px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main .wd-el-toggle-head {
		min-height: 0;
	}

	footer.wd-footer .elementor-1731 .og-footer-main .wd-el-toggle-title {
		font-weight: 700;
		font-size: 14px;
	}

	footer.wd-footer .elementor-1731 .og-footer-brand .wd-el-toggle-title {
		font-weight: 600;
		font-size: 18px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main .wd-el-toggle-content {
		margin-top: 8px;
	}

	footer.wd-footer .elementor-1731 .og-footer-brand .wd-text-block {
		font-size: 13px;
		line-height: 1.55;
	}

	footer.wd-footer .elementor-1731 .og-footer-brand .wd-text-block p {
		margin-bottom: 6px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main .wd-list {
		--wd-row-gap: 0px;
	}

	footer.wd-footer .elementor-1731 .og-footer-main .wd-list-content {
		font-size: 13px;
		line-height: 1.35;
	}

	/* Tap areas: about 28 px per link. */
	footer.wd-footer .elementor-1731 .og-footer-main li a {
		padding-block: 5px;
	}

	/* Bottom: contact first, then copyright and credit. The bottom padding keeps the last line above the
	   back-to-top button (which sits 12–52 px above the 55 px toolbar the page already pads for) and the safe area. */
	footer.wd-footer .elementor-1731 .og-footer-bottom.e-con {
		padding: 16px 0 calc(72px + env(safe-area-inset-bottom, 0px));
	}

	footer.wd-footer .elementor-1731 .og-footer-bottom > .e-con-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	footer.wd-footer .elementor-1731 .og-footer-contact {
		order: -1;
	}

	footer.wd-footer .elementor-1731 .og-footer-contact .wd-text-block {
		font-size: 13px;
	}

	footer.wd-footer .elementor-1731 .og-contact {
		gap: 0 20px;
	}

	footer.wd-footer .elementor-1731 .og-contact a {
		padding-block: 5px;
	}

	footer.wd-footer .elementor-1731 .og-footer-legal .wd-text-block {
		font-size: 12px;
	}

	footer.wd-footer .elementor-1731 .og-footer-legal .og-copyright {
		flex-direction: column;
		gap: 2px;
	}
}
