/**
 * Vataly sitewide footer.
 *
 * Enqueued with a dependency on the `konte-child` handle, so these rules land
 * after style.css and win on source order — no !important needed except where a
 * parent rule is itself !important or uses a heavier selector.
 *
 * Breakpoints follow both themes: 991px is the desktop/tablet break, 767px is
 * mobile. Desktop = the wide reference; mobile = the accordion reference.
 *
 * Palette (matching the child theme's existing hardcoded-hex convention — there
 * is no :root token system in either theme):
 *   cream var(--bg_clr1)   ink #161619   sand/divider var(--b_clr)   muted var(--h_clr)
 */

/* -------------------------------------------------------------------------
 * Shell
 * ---------------------------------------------------------------------- */

 .vataly-footer__band--brand
 {
	border-top: 1px solid var(--b_clr);
 }

@media (max-width: 767px) {
/*all mobile rules goes here*/

	.vataly-footer__band--brand
	{
		padding-top: 38px !important;
		margin-bottom:30px;
	}

	.vataly-footer__group--policy
	{
		border-bottom: 1px solid var(--b_clr);
	}

	.vataly-footer__group .vataly-footer__menu li + li 
	{
    margin-top: 24px !important;
}

	.vataly-footer__group--col-1
	{
		border-top: 1px solid var(--b_clr) !important;
	}

	.vataly-footer__menu a
	{
		    font-size: 0.750rem !important;
	}

	.vataly-footer__newsletter-note
	{
		margin-top:27px !important;
	}

	.vataly-footer__newsletter-heading
	{
		margin-bottom:20px !important;
	}

}



 .vataly-footer__newsletter-form input[type="email"]:hover {
      border-color: var(--ink_text);
}

.vataly-footer__newsletter-form input[type="email"]:hover::placeholder {
    color: var(--ink_text);
}

.site-footer {
	background-color: var(--bg_clr1);
	color: var(--ink_text);
}

/* The theme paints .site-footer.light with a grey top border; the design's top
   rule is the same line in the brand's sand tone. */
.site-footer.light {
	border-top: 0px solid var(--b_clr) !important;
}

.vataly-footer__band {
	padding: 40px 0;
	text-align: center;
}

/* Rule between bands. Drawn on the band rather than with <hr> so it always spans
   the container regardless of which bands are present. */
.vataly-footer__band + .vataly-footer__band {
	/*border-top: 1px solid var(--b_clr);*/
}

/* -------------------------------------------------------------------------
 * Shared link idiom — uppercase, small, ink, subtle hover
 * ---------------------------------------------------------------------- */

.vataly-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vataly-footer__newsletter-submit {
	font-size: 0.875rem;
	
	text-transform: uppercase;
	color: var(--ink_text);
	font-family: var(--font2);
	font-style: normal;
	font-weight: 300;
	line-height: normal;
}


.vataly-footer__menu a,
.vataly-footer__region {
	font-size: 0.875rem;
	
	text-transform: uppercase;
	color: var(--ink_text);
	font-family: var(--font2);
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.vataly-footer__menu a {
	display: inline-block;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.vataly-footer__menu a:hover,
.vataly-footer__menu a:focus {
	/*opacity: 0.6;*/
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * Newsletter
 * ---------------------------------------------------------------------- */

.vataly-footer__newsletter {
	max-width: 420px;
	margin: 0 auto;
}

.vataly-footer__newsletter-heading {
	margin: 0 0 18px;
	color: var(--ink_text);
	font-family: var(--font2);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.vataly-footer__newsletter-form {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

/* Konte styles every text-like input globally as an underline field
   (`input[type=email]{border:0;border-bottom:2px solid #e3e7e8}`). That attribute
   selector outranks a plain class, so the boxed field in the design needs the
   type in the selector too — cheaper and safer than !important. */
.vataly-footer__newsletter-form input[type="email"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--b_clr);
	border-radius: 0;
	background: transparent;
	font-size: 14px;
	color: var(--ink_text);
	transition: border-color 0.25s ease;
}

.vataly-footer__newsletter-form input[type="email"]::placeholder {
	opacity: 1;
	color: var(--h_clr);
	font-family: var(--font2);
	font-size: 14px;
	font-style: normal;
	font-weight: 300;
	line-height: normal;
	
}

.vataly-footer__newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: var(--ink_text);
}

.vataly-footer__newsletter-submit {
	line-height: normal;
	flex: 0 0 auto;
	height: 42px;
	padding: 0 22px;
	border: 1px solid var(--ink_text);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.vataly-footer__newsletter-submit:hover,
.vataly-footer__newsletter-submit:focus {
	background-color: var(--ink_text);
	color: var(--bg_clr1);
}

.vataly-footer__newsletter-note {
	margin: 14px 0 0;
	font-size: 0.75rem;
	color: var(--ink_text);
	font-family: var(--font2);
	font-style: normal;
	font-weight: 300;
	line-height: normal;
}

.vataly-footer__newsletter-note a {
	color: var(--ink_text);
	font-weight: 700;
	text-decoration: none;
}

.vataly-footer__newsletter-note a:hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Region + socials
 * ---------------------------------------------------------------------- */

.vataly-footer__region {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 18px;
	color: var(--ink_text);
	font-family: var(--font2);
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.vataly-footer__region-arrow {
	font-size: 13px;
	line-height: 1;
}

.vataly-footer__socials .vataly-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}

/* -------------------------------------------------------------------------
 * Link groups — desktop: 4-column grid, headings hidden, Policy hidden
 * ---------------------------------------------------------------------- */

.vataly-footer__groups {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

/* The group titles are real <h2>s for structure, but the design sets them in the
   UI sans, not the heading serif. css/typography.css maps every h1-h6 to
   'Cormorant Garamond' with !important, so matching it here needs !important too —
   the same escape hatch that file already uses. */
.vataly-footer__group-title {
	margin: 0;
	font-family: var(--font2) !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink_text);
}

.vataly-footer__group .vataly-footer__menu li + li {
	margin-top: 14px;
}

/* The desktop design shows links only. Keep the headings in the accessibility
   tree (they are real group labels) rather than display:none — this is Konte's
   own .screen-reader-text recipe. */
@media (min-width: 992px) {
	.vataly-footer__group-title {
		border: 0;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		height: 1px;
		width: 1px;
		margin: -1px;
		padding: 0;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
	}

	/* Policy lives in the bottom bar on desktop — see .footer-main below. */
	.vataly-footer__group--policy {
		display: none;
	}
}

/* -------------------------------------------------------------------------
 * Brand
 * ---------------------------------------------------------------------- */

.vataly-footer__brand-link {
	display: inline-block;
	line-height: 0;
}

.vataly-footer__brand-logo {
	display: block;
	height: auto;
	max-width: 100%;
}

/* -------------------------------------------------------------------------
 * Bottom bar (Konte's own `main` section, restyled)
 * ---------------------------------------------------------------------- */

.site-footer .footer-main {
	padding: 26px 0;
	border-top: 1px solid var(--b_clr);
	font-size: 10px;
}


.site-footer .footer-main .footer-menu a {
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink_text);
	font-family: var(--font2);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.site-footer .footer-main .copyright{
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink_text);
	font-family: var(--font2);
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 300;
	line-height: normal;

}

.site-footer .footer-main .footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The parent spaces .footer-menu items with per-item padding; we use gap. */
.site-footer .footer-main .footer-menu > li {
	padding: 0;
}

.site-footer .footer-main .footer-menu a {
	text-decoration: none;
	transition: color 0.25s ease;
}

.site-footer .footer-main .footer-menu a:hover {
	color: var(--ink_text);
}

/* -------------------------------------------------------------------------
 * Mobile (<= 991px)
 *
 * Groups become accordions; Policy joins the stack and the bottom bar drops its
 * menu; groups 3 and 4 swap so the order reads Customer Care, Company,
 * Factories, Our Story, Policy.
 * ---------------------------------------------------------------------- */

@media (max-width: 991px) {
	.vataly-footer__band {
		padding-top: 66px;
		padding-bottom:0px;
		padding-left:0px;
		padding-right:0px;
		text-align: left;
	}

	.vataly-footer__band--newsletter,
	.vataly-footer__band--brand {
		text-align: center;
	}

	.vataly-footer__newsletter {
		max-width: none;
	}

	.vataly-footer__newsletter-form {
		flex-direction: column;
		gap: 7px;
	}

	.vataly-footer__newsletter-submit {
		width: 100%;
	}

	.vataly-footer__region {
		justify-content: flex-start;
	}

	.vataly-footer__socials .vataly-footer__menu {
		justify-content: flex-start;
	}

	/* Stack, and reorder to the mobile sequence. DOM order is desktop order. */
	.vataly-footer__groups {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.vataly-footer__group--col-1 { order: 1; }
	.vataly-footer__group--col-2 { order: 2; }
	.vataly-footer__group--col-4 { order: 3; }
	.vataly-footer__group--col-3 { order: 4; }
	.vataly-footer__group--policy { order: 5; }

	.vataly-footer__group + .vataly-footer__group {
		border-top: 1px solid var(--b_clr);
	}

	.vataly-footer__group-title {
		margin: 0;
		padding-top: 23px;
        padding-right: 0px;
        padding-bottom: 28px;
        padding-left: 0px;
	}

	/* Accordion affordance. site-footer.js promotes the heading text into this
	   button; without JS the heading stays plain text and every link is visible. */
	.vataly-footer__group-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
		color: var(--ink_text);
font-family: var(--font2);
font-size: 14px;
font-style: normal;
font-weight: 700;
line-height: normal;
		letter-spacing: inherit;
		text-transform: inherit;
		
		text-align: left;
	}

	.vataly-footer__group-chevron {
		flex: 0 0 auto;
		width: 10px;
		height: 10px;
		border-right: 1.5px solid var(--ink_text);
		border-bottom: 1.5px solid var(--ink_text);
		transform: translateY(-2px) rotate(45deg);
		transition: transform 0.25s ease;
	}

	.vataly-footer__group-toggle[aria-expanded="true"] .vataly-footer__group-chevron {
		transform: translateY(2px) rotate(-135deg);
	}

	.vataly-footer__group-panel {
		padding-bottom: 20px;
	}

	.vataly-footer__group-panel[hidden] {
		display: none;
	}

	.vataly-footer__group .vataly-footer__menu a {
		color: var(--h_clr);
	}

	/* Policy is shown here, so the bottom bar keeps only the copyright. */
	.site-footer .footer-main .footer-menu {
		display: none;
	}

	/* Konte centres .footer-main items below 991px; the design left-aligns them. */
	.site-footer .footer-main .footer-container {
		flex-direction: column;
	}

	.site-footer .footer-main .footer-items,
	.site-footer .footer-main .footer-right {
		justify-content: flex-start;
		text-align: left;
		padding: 0;
	}
}
