/**
 * Footer Component — Deepak Sales
 *
 * Mobile-first. Depends on tokens.css + base.css.
 * Premium deep charcoal layout with gold accents.
 */

/* ==========================================================================
   1. Shell & Backdrops
   ========================================================================== */
.ds-footer {
	position: relative;
	overflow: hidden;
	background-color: #181614; /* Deep charcoal per requirements */
	color: var(--ds-paper);
	padding-top: var(--ds-section-y); /* shared section rhythm, was its own clamp (max 96px) */
	padding-bottom: clamp(2rem, 4vw, 3rem);
	z-index: 10;
}

.ds-footer__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ds-footer__top-line {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ds-gold), transparent);
	opacity: 0.6;
	pointer-events: none;
}

.ds-footer__glow {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	max-width: 900px;
	height: 500px;
	background: radial-gradient(ellipse at top, color-mix(in srgb, var(--ds-gold) 15%, transparent), transparent 60%);
	pointer-events: none;
	z-index: -1;
}

.ds-footer__container {
	position: relative;
	z-index: 1;
}

/* ==========================================================================
   2. Layout Grids
   ========================================================================== */
.ds-footer__layout {
	display: flex;
	flex-direction: column;
	gap: clamp(3rem, 5vw, 5rem);
}

.ds-footer__menus {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(2rem, 4vw, 3rem);
}

/* Mobile only: the footer stacks to a single column on phones (5-6 blocks:
   brand, visit-us, wholesale, categories, customer, quick-actions), so the
   desktop-tuned padding/gaps compound into a long scroll. Tighter here;
   tablet/desktop values (the clamp()s above) are untouched. padding-top no
   longer needs an override here — --ds-section-y already resolves to a
   comparable mobile value on its own. */
@media (max-width: 48em) {
	.ds-footer {
		padding-bottom: 1.75rem;
	}

	.ds-footer__layout {
		gap: 2rem;
	}

	.ds-footer__menus {
		gap: 1.75rem;
	}
}

@media (min-width: 40em) {
	.ds-footer__menus {
		grid-template-columns: repeat(2, 1fr);
	}
	.ds-footer__col--visit {
		grid-column: 1 / -1;
	}
}

/* 62em (992px) — the theme's formal desktop tier (see header.css/hero.css),
   replacing the previous 64em guess. */
@media (min-width: 62em) {
	.ds-footer__layout {
		flex-direction: row;
		justify-content: space-between;
	}
	.ds-footer__brand {
		flex: 0 0 320px;
	}
	.ds-footer__menus {
		flex: 1;
		grid-template-columns: 1.2fr 1fr 1fr 1fr 1.2fr;
		grid-column-gap: 2rem;
		grid-row-gap: 3rem;
	}
	.ds-footer__col--visit {
		grid-column: auto;
	}
}

/* ==========================================================================
   3. Brand Section (Section 1)
   ========================================================================== */
.ds-footer__logo {
	display: block;
	margin-bottom: var(--ds-space-md);
	color: var(--ds-gold);
	text-decoration: none;
}

.ds-footer__logo svg {
	display: block;
	max-width: 200px;
	height: auto;
}

.ds-footer__logo-text {
	font-family: var(--ds-font-display);
	font-size: var(--ds-fs-h2);
	font-weight: var(--ds-fw-section);
	letter-spacing: -0.02em;
	color: var(--ds-paper);
}

.ds-footer__tagline {
	margin-bottom: var(--ds-space-sm);
	font-family: var(--ds-font-mono);
	font-size: var(--ds-fs-eyebrow);
	font-weight: var(--ds-fw-label);
	letter-spacing: var(--ds-ls-wide);
	text-transform: uppercase;
	color: var(--ds-gold);
}

.ds-footer__desc {
	font-family: var(--ds-font-body);
	font-size: var(--ds-fs-body);
	line-height: var(--ds-lh-body);
	color: rgba(255, 255, 255, 0.7);
	max-width: 320px;
}

.ds-footer__gstin {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 1.25rem;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: var(--ds-radius-pill);
	background: rgba(255, 255, 255, 0.03);
}

.ds-footer__gstin-label {
	font-family: var(--ds-font-mono);
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--ds-gold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ds-footer__gstin-val {
	font-family: var(--ds-font-mono);
	font-size: 0.8rem;
	color: var(--ds-paper);
	letter-spacing: 0.02em;
}

.ds-footer__social {
	display: flex;
	gap: var(--ds-space-sm);
	margin-top: 2rem;
}

.ds-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.7);
	background: transparent;
	transition: all var(--ds-dur) var(--ds-ease);
}

.ds-footer__social-link:hover,
.ds-footer__social-link:focus-visible {
	outline: none;
	background-color: var(--ds-gold);
	border-color: var(--ds-gold);
	color: #181614;
	transform: translateY(-3px);
}

/* ==========================================================================
   4. Columns & Navigation
   ========================================================================== */
.ds-footer__heading {
	margin-bottom: 1.25rem;
	font-family: var(--ds-font-display);
	font-size: var(--ds-fs-body);
	font-weight: 600;
	color: var(--ds-paper);
	letter-spacing: 0.01em;
}

.ds-footer__address {
	font-style: normal;
	display: flex;
	flex-direction: column;
	gap: var(--ds-space-sm);
}

.ds-footer__text {
	font-family: var(--ds-font-body);
	font-size: var(--ds-fs-small);
	line-height: var(--ds-lh-snug);
	color: rgba(255, 255, 255, 0.7);
}

.ds-footer__contact-links {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.ds-footer__hours-heading {
	margin-top: 0.5rem;
	font-family: var(--ds-font-mono);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ds-gold);
}

.ds-footer__hours {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ds-footer__hours-row {
	display: flex;
	justify-content: space-between;
	gap: var(--ds-space-sm);
	font-family: var(--ds-font-body);
	font-size: var(--ds-fs-small);
	color: rgba(255, 255, 255, 0.7);
}

.ds-footer__hours-time {
	color: var(--ds-paper);
	font-weight: 600;
	white-space: nowrap;
}

.ds-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--ds-space-sm);
}

.ds-footer__link {
	font-family: var(--ds-font-body);
	font-size: var(--ds-fs-small);
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	transition: color var(--ds-dur) var(--ds-ease);
}

.ds-footer__link:hover {
	color: var(--ds-gold);
}

/* Keep the global :focus-visible outline (base.css) here instead of
   overriding it — a color-only change was too subtle against the dark
   footer background and was visually identical to :hover. */
.ds-footer__link:focus-visible {
	color: var(--ds-gold);
	outline-offset: 3px;
}

/* ==========================================================================
   5. Quick Actions
   ========================================================================== */
.ds-footer__actions-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--ds-space-sm);
}

/* .ds-footer__btn / --outline / --solid removed: dead CSS — the actual
   markup (footer.php) uses .ds-btn .ds-btn--ghost / .ds-btn--primary for
   these buttons, not this class, so nothing in the page referenced these
   rules. */

/* ==========================================================================
   6. Bottom Bar
   ========================================================================== */
.ds-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-top: clamp(3rem, 5vw, 4.5rem);
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-family: var(--ds-font-body);
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.5);
	text-align: center;
}

/* Mobile only: unlike .ds-footer/.ds-footer__layout/.ds-footer__menus above,
   this margin/padding previously had no breakpoint override at all. */
@media (max-width: 48em) {
	.ds-footer__bottom {
		margin-top: 1.75rem;
		padding-top: 1.25rem;
	}
}

.ds-footer__bottom-divider {
	margin-inline: 0.4rem;
	opacity: 0.3;
}

.ds-footer__bottom-center {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}

.ds-footer__trust-dot {
	color: var(--ds-gold);
	opacity: 0.5;
}

.ds-footer__heart {
	color: var(--ds-oxblood);
	font-size: 1.1em;
}

/* 62em (992px) — the theme's formal desktop tier. */
@media (min-width: 62em) {
	.ds-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
	
	.ds-footer__bottom-left {
		flex: 1;
	}
	
	.ds-footer__bottom-center {
		flex: 1;
		justify-content: center;
	}
	
	.ds-footer__bottom-right {
		flex: 1;
		text-align: right;
	}
}

/* ==========================================================================
   7. Accessibility / Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.ds-footer__social-link,
	.ds-footer__link {
		transition: none;
	}
	.ds-footer__social-link:hover {
		transform: none;
	}
}