/*
Theme Name: Sardar Pagri House
Theme URI: https://sardarpagrihouse.com
Author: Bhavjot
Description: Royal, proud and simple. Built for Sardar Pagri House, Hall Bazar, Amritsar, estd. 1947.
Version: 1.2.3
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: sardar-pagri-house
License: GNU General Public License v2 or later
*/

:root {
	--sph-royal: #284183;
	--sph-navy: #213152;
	--sph-midnight: #141e33;
	--sph-gold: #c2a15b;
	--sph-gold-soft: #e9dcc0;
	--sph-ivory: #fbf8f2;
	--sph-ink: #1b2232;
	--sph-muted: #646b7a;
	--sph-line: #e7e1d4;
	--sph-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sph-body: Jost, "Helvetica Neue", Arial, sans-serif;
	--sph-gur: "Noto Serif Gurmukhi", serif;
	--sph-gutter: clamp(20px, 4vw, 48px);
	--sph-topbar: 38px;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
html, body { overflow-x: clip; } /* the swatch plugin's hover labels poke past the right edge */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks > * { margin-block: 0; }
.sph-main > * { margin-block: 0 !important; }
.sph-wrap { width: min(1240px, 100% - 2 * var(--sph-gutter)); margin-inline: auto; }
.sph-gurmukhi { font-family: var(--sph-gur); }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sph-gold); outline-offset: 3px; }

.sph-eyebrow {
	font: 500 0.72rem/1.4 var(--sph-body);
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--sph-gold);
	margin: 0 0 1.1rem;
}
.sph-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.sph-head h2, .sph-section h2, .sph-intro h2, .sph-heritage h2, .sph-orders h2 {
	font: italic 300 clamp(2.3rem, 4.4vw, 3.7rem)/1.08 var(--sph-display);
	color: var(--sph-navy);
	margin: 0 0 1.1rem;
}
.sph-head p { color: var(--sph-muted); font-size: 1.05rem; margin: 0; }
.sph-head--light h2 { color: #fff; }
.sph-head--light p { color: rgba(255, 255, 255, 0.72); }
.sph-head .sph-eyebrow, .sph-intro .sph-eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.sph-head .sph-eyebrow::before, .sph-head .sph-eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- buttons ---------- */
.sph-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
	padding: 1.1em 2.3em;
	font: 500 0.74rem/1 var(--sph-body);
	letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
	color: #fff; background: var(--sph-royal); border: 1px solid var(--sph-royal);
	transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.sph-btn:hover { background: var(--sph-navy); border-color: var(--sph-navy); color: #fff; transform: translateY(-1px); }
.sph-btn--gold { background: var(--sph-gold); border-color: var(--sph-gold); color: var(--sph-midnight); }
.sph-btn--gold:hover { background: #d4b675; border-color: #d4b675; color: var(--sph-midnight); }
.sph-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.sph-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--sph-navy); }
.sph-btn--outline { background: transparent; color: var(--sph-royal); }
.sph-btn--outline:hover { background: var(--sph-royal); color: #fff; }
.sph-btn--sm { padding: 0.95em 1.7em; }

/* ---------- header ---------- */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:has(.sph-header) {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--sph-topbar));
	/* Above WooCommerce's photo zoom button (99), which otherwise shows through the menus and the scrolled header. */
	z-index: 100;
}
.sph-topbar { background: var(--sph-royal); color: var(--sph-gold-soft); }
.sph-topbar__in {
	height: var(--sph-topbar); display: flex; align-items: center; justify-content: space-between; gap: 20px;
	font: 400 0.7rem/1 var(--sph-body); letter-spacing: 0.18em; text-transform: uppercase;
}
.sph-topbar a { color: var(--sph-gold-soft); text-decoration: none; }
.sph-topbar a:hover { color: #fff; }

.sph-header { position: relative; background: var(--sph-navy); box-shadow: 0 1px 0 rgba(194, 161, 91, 0.35); }
.sph-header__in {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	min-height: 108px; transition: min-height 0.3s;
}
.sph-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.sph-nav--right { justify-self: end; padding-right: 132px; }
.sph-nav a {
	font: 400 0.74rem/1 var(--sph-body); letter-spacing: 0.22em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86); text-decoration: none; padding: 8px 0; position: relative;
}
.sph-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sph-gold); transform: scaleX(0); transition: transform 0.3s; }
.sph-nav a:hover { color: #fff; }
.sph-nav a:hover::after { transform: scaleX(1); }
/* Rubia and Voile open a list of their fabrics, on hover or on click */
.sph-drop { position: relative; display: flex; align-items: center; }
.sph-drop__btn {
	font: 400 0.74rem/1 var(--sph-body); letter-spacing: 0.22em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.86); background: none; border: 0; padding: 8px 0; cursor: pointer;
	display: inline-flex; align-items: center; gap: 7px;
}
.sph-drop__btn svg { width: 11px; height: 11px; transition: transform 0.3s; }
.sph-drop.is-open .sph-drop__btn { color: #fff; }
.sph-drop.is-open .sph-drop__btn svg { transform: rotate(180deg); }
.sph-drop__menu {
	position: absolute; top: 100%; left: -26px; padding-top: 22px; z-index: 70;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s;
}
.sph-drop.is-open .sph-drop__menu {
	opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.25s, transform 0.25s, visibility 0s;
}
/* Hover only where there is a real mouse. On touch screens a tap opens and closes it, so it never sticks open. */
@media (hover: hover) {
	.sph-drop:hover .sph-drop__btn { color: #fff; }
	.sph-drop:hover .sph-drop__btn svg { transform: rotate(180deg); }
	.sph-drop:hover .sph-drop__menu {
		opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.25s, transform 0.25s, visibility 0s;
	}
}
.sph-drop__panel { width: 360px; background: #fff; padding: 10px; border-top: 2px solid var(--sph-gold); box-shadow: 0 26px 52px rgba(20, 30, 51, 0.3); display: grid; gap: 2px; }
.sph-nav .sph-drop__item {
	display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 10px;
	color: var(--sph-navy); letter-spacing: 0; text-transform: none; white-space: normal; transition: background 0.2s;
}
.sph-nav .sph-drop__item::after, .sph-nav .sph-drop__all::after { display: none; }
.sph-nav .sph-drop__item:hover { background: var(--sph-ivory); color: var(--sph-navy); }
.sph-drop__item img { width: 76px; height: 51px; object-fit: cover; display: block; }
.sph-drop__item strong { display: block; font: italic 400 1.4rem/1.1 var(--sph-display); }
.sph-drop__item small { display: block; margin-top: 4px; font: 400 0.76rem/1.4 var(--sph-body); color: var(--sph-muted); }
.sph-nav .sph-drop__all { margin: 6px 10px 4px; padding: 12px 0 6px; border-top: 1px solid var(--sph-line); color: var(--sph-royal); font-size: 0.68rem; }
.sph-nav .sph-drop__all:hover { color: var(--sph-navy); }
.sph-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.sph-brand__face {
	width: 86px; height: 86px; border-radius: 50%;
	box-shadow: 0 0 0 2px var(--sph-gold), 0 6px 18px rgba(0, 0, 0, 0.35);
	transition: width 0.3s, height 0.3s;
}
.sph-brand__word { width: 196px; height: auto; transition: width 0.3s; }
.sph-header__icons {
	position: absolute; top: 50%; right: max(var(--sph-gutter), calc((100% - 1240px) / 2));
	transform: translateY(-50%); gap: 14px !important; margin: 0 !important;
}
.sph-header__icons, .sph-header__icons a, .sph-header__icons button { color: #fff !important; }
.sph-header__icons svg { fill: currentColor; }
.sph-header__icons .wc-block-mini-cart__badge { background: var(--sph-gold); color: var(--sph-midnight); border-color: var(--sph-navy); font-weight: 600; }
.is-scrolled .sph-header__in { min-height: 76px; }
.is-scrolled .sph-brand__face { width: 56px; height: 56px; }
.is-scrolled .sph-brand__word { width: 150px; }
.sph-burger { display: none; }
.sph-mobile { display: none; }

/* ---------- hero ---------- */
.sph-hero {
	position: relative; overflow: hidden; background: var(--sph-midnight); color: #fff;
	min-height: 600px; height: calc(100svh - 146px); max-height: 900px; /* 146px = top bar 38 + header 108, so the arrows sit on the first screen */
	display: flex; align-items: center;
}
.sph-hero__slides, .sph-hero__slide, .sph-hero__shade { position: absolute; inset: 0; margin: 0; }
.sph-hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.sph-hero__slide img {
	width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 50%);
	transform: scale(1.08); transition: transform 9s ease-out;
}
.sph-hero__slide.is-active { opacity: 1; }
.sph-hero__slide.is-active img { transform: scale(1); }
.sph-hero__shade {
	background:
		linear-gradient(90deg, rgba(20, 30, 51, 0.88) 0%, rgba(20, 30, 51, 0.6) 42%, rgba(20, 30, 51, 0.12) 78%, rgba(20, 30, 51, 0.05) 100%),
		linear-gradient(0deg, rgba(20, 30, 51, 0.65) 0%, rgba(20, 30, 51, 0) 38%);
}
.sph-hero__content { position: relative; z-index: 2; padding-block: 60px 90px; }
.sph-hero__content > * { max-width: 640px; }
.sph-hero__gurmukhi { font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: var(--sph-gold-soft); margin: 0 0 0.6rem; letter-spacing: 0.04em; }
.sph-hero__title {
	font: italic 300 clamp(3.1rem, 7.4vw, 6.6rem)/0.98 var(--sph-display);
	color: #fff; margin: 0 0 1.5rem; letter-spacing: -0.005em;
}
.sph-hero__lead { font: 300 clamp(1.02rem, 1.4vw, 1.18rem)/1.7 var(--sph-body); color: rgba(255, 255, 255, 0.86); margin: 0 0 2.4rem; max-width: 520px; }
.sph-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.sph-hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sph-hero__dots { display: flex; gap: 10px; }
.sph-hero__dots button { width: 34px; height: 22px; padding: 10px 0; border: 0; background: rgba(255, 255, 255, 0.35); background-clip: content-box; cursor: pointer; transition: background 0.3s, width 0.3s; }
.sph-hero__dots button.is-active { background-color: var(--sph-gold); width: 56px; }
.sph-hero__arrows { display: flex; gap: 10px; }
.sph-hero__arrow {
	width: 48px; height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	color: #fff; background: rgba(20, 30, 51, 0.28); border: 1px solid rgba(255, 255, 255, 0.45);
	transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.sph-hero__arrow svg { width: 20px; height: 20px; display: block; }
.sph-hero__arrow:hover { color: var(--sph-gold); border-color: var(--sph-gold); background: rgba(20, 30, 51, 0.5); }

/* the logo slide: the Sardar ji, the name and (Regd.), on the right, clear of the headline */
.sph-hero__slide--brand {
	background:
		radial-gradient(circle at 70% 44%, rgba(194, 161, 91, 0.18) 0, rgba(194, 161, 91, 0) 30%),
		radial-gradient(ellipse at 70% 50%, #2c478c 0%, var(--sph-navy) 58%, var(--sph-midnight) 100%);
}
.sph-hero__slide.sph-hero__slide--brand img { width: auto; height: auto; object-fit: contain; transform: none; transition: none; }
.sph-brandslide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 22px); padding-left: 44%; padding-bottom: 40px; }
.sph-hero__slide.sph-hero__slide--brand .sph-brandslide__face { width: clamp(170px, 18vw, 290px); border-radius: 50%; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.sph-hero__slide.sph-hero__slide--brand .sph-brandslide__word { width: clamp(240px, 29vw, 460px); }
.sph-brandslide__regd { margin: 0; font: 500 0.8rem/1 var(--sph-body); letter-spacing: 0.34em; text-transform: uppercase; color: var(--sph-gold); }

/* ---------- intro ---------- */
.sph-intro { background: var(--sph-ivory); padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 8vw, 110px); text-align: center; }
.sph-intro__in { max-width: 860px; }
.sph-ornament { width: 120px; height: 16px; color: var(--sph-gold); display: block; margin: 0 auto 26px; }
.sph-intro h2 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
.sph-intro__lead { font: 300 clamp(1.08rem, 1.5vw, 1.25rem)/1.85 var(--sph-body); color: var(--sph-muted); max-width: 720px; margin: 0 auto; }

/* ---------- sections ---------- */
.sph-section { padding: clamp(72px, 10vw, 130px) 0; }

/* fabrics */
.sph-fabrics { background: var(--sph-ivory); padding-top: 0; }
.sph-fabrics__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.sph-card {
	display: flex; flex-direction: column; background: #fff; text-decoration: none; color: inherit;
	border: 1px solid var(--sph-line); transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.sph-card:hover { transform: translateY(-4px); border-color: var(--sph-gold); box-shadow: 0 18px 40px rgba(33, 49, 82, 0.12); }
.sph-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; }
.sph-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.sph-card:hover .sph-card__img img { transform: scale(1.04); }
.sph-card__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; flex: 1; }
.sph-card__title { font: italic 400 1.75rem/1.1 var(--sph-display); color: var(--sph-navy); }
.sph-card__text { font-size: 0.9rem; line-height: 1.6; color: var(--sph-muted); margin-bottom: 8px; }
.sph-card__price { font: 500 1.4rem/1 var(--sph-display); color: var(--sph-royal); margin-top: auto; }
.sph-card__price small { font: 400 0.7rem var(--sph-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sph-muted); margin-left: 4px; }
.sph-card__full { font-size: 0.8rem; color: var(--sph-muted); }
.sph-card__more { margin-top: 12px; font: 500 0.7rem/1 var(--sph-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sph-royal); }

/* colours */
.sph-colours { background: #fff; }
.sph-colours__in { display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.6fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.sph-colours__intro p { color: var(--sph-muted); margin: 0 0 2rem; }
.sph-colours__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sph-swatch { text-decoration: none; color: var(--sph-ink); }
.sph-swatch img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px var(--sph-line), 0 8px 20px rgba(33, 49, 82, 0.1); transition: transform 0.35s, box-shadow 0.35s; }
.sph-swatch:hover img { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--sph-gold), 0 14px 28px rgba(33, 49, 82, 0.16); }
.sph-swatch span { display: block; text-align: center; margin-top: 12px; font: 400 0.74rem/1 var(--sph-body); letter-spacing: 0.16em; text-transform: uppercase; }

/* heritage */
.sph-heritage { background: linear-gradient(180deg, var(--sph-ivory) 0%, #f4efe4 100%); padding: clamp(80px, 11vw, 150px) 0; }
.sph-heritage__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.sph-heritage__photo { margin: 0; position: relative; }
.sph-heritage__photo img { display: block; width: 100%; box-shadow: 0 24px 60px rgba(20, 30, 51, 0.22); position: relative; z-index: 1; }
.sph-heritage__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--sph-gold); }
.sph-heritage__photo figcaption { margin-top: 38px; font: 400 0.72rem var(--sph-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--sph-muted); }
.sph-heritage__face { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 2px var(--sph-gold); margin-bottom: 22px; }
.sph-heritage__text p { color: #3d4456; }
.sph-heritage h2 { font-size: clamp(2.2rem, 3.5vw, 3.2rem); }
.sph-header__icons .wc-block-customer-account img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px var(--sph-gold); }
.sph-facts { display: flex; gap: clamp(22px, 4vw, 48px); list-style: none; padding: 26px 0 0; margin: 30px 0 0; border-top: 1px solid var(--sph-line); }
.sph-facts strong { display: block; font: italic 300 2.6rem/1 var(--sph-display); color: var(--sph-royal); }
.sph-facts span { display: block; margin-top: 8px; font: 400 0.7rem var(--sph-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sph-muted); }

/* awards */
.sph-awards { background: radial-gradient(120% 90% at 50% 0%, #26385f 0%, var(--sph-navy) 45%, var(--sph-midnight) 100%); color: #fff; }
.sph-awards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sph-award, .sph-awards__wide { margin: 0; }
.sph-award img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(194, 161, 91, 0.55); padding: 6px; background: rgba(255, 255, 255, 0.03); }
.sph-award figcaption, .sph-awards__wide figcaption { margin-top: 14px; font: italic 400 1.15rem/1.35 var(--sph-display); color: var(--sph-gold-soft); text-align: center; }
.sph-awards__wide { max-width: 860px; margin: 48px auto 0; }
.sph-awards__wide img { display: block; width: 100%; border: 1px solid rgba(194, 161, 91, 0.55); padding: 6px; }
/* the headline award: Ravinder ji with Shri Nitin Gadkari ji */
.sph-awards__feature { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1040px; margin: 0 auto clamp(48px, 6vw, 80px); }
.sph-awards__feature figure { margin: 0; }
.sph-awards__feature img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(194, 161, 91, 0.7); padding: 8px; background: rgba(255, 255, 255, 0.04); }
.sph-awards__feature h3 { font: italic 300 clamp(2rem, 3.4vw, 3rem)/1.1 var(--sph-display); color: #fff; margin: 0 0 1rem; }
.sph-awards__feature p { color: rgba(255, 255, 255, 0.78); margin: 0 0 1rem; }
.sph-awards__feature .sph-eyebrow { color: var(--sph-gold); }

/* the viral video, played from Instagram */
.sph-viral { background: var(--sph-ivory); }
.sph-viral__in { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: clamp(36px, 6vw, 90px); align-items: center; }
.sph-viral__text p { color: var(--sph-muted); }
.sph-viral__embed { display: flex; justify-content: center; }
.sph-viral__embed .instagram-media { margin: 0 auto !important; min-width: 300px !important; max-width: 420px !important; width: 100% !important; }

/* shop all button under the fabric cards */
.sph-fabrics__all { text-align: center; margin-top: 40px; }

/* promise */
.sph-promise { background: #fff; padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--sph-line); }
.sph-promise__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.sph-promise__item { text-align: center; }
.sph-promise__item svg { width: 40px; height: 40px; color: var(--sph-gold); stroke-width: 1.2; }
.sph-promise__item h3 { font: italic 400 1.45rem/1.2 var(--sph-display); color: var(--sph-navy); margin: 14px 0 8px; }
.sph-promise__item p { font-size: 0.88rem; color: var(--sph-muted); margin: 0; }

/* orders */
.sph-orders {
	position: relative; color: #fff; padding: clamp(80px, 10vw, 130px) 0;
	background: linear-gradient(90deg, rgba(20, 30, 51, 0.92) 0%, rgba(20, 30, 51, 0.78) 55%, rgba(20, 30, 51, 0.55) 100%), var(--sph-band) center 60% / cover no-repeat;
}
.sph-orders__in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.sph-orders h2 { color: #fff; }
.sph-orders p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 620px; }
.sph-orders__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* visit */
.sph-visit { background: var(--sph-ivory); }
.sph-visit__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.sph-visit address { font: italic 400 1.5rem/1.5 var(--sph-display); color: var(--sph-navy); margin: 0 0 1.2rem; }
.sph-visit__contact { margin: 0 0 2rem; }
.sph-visit__contact a { color: var(--sph-royal); text-decoration: none; }
.sph-visit__map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--sph-line); background: #e9e4d8; }
.sph-visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.02); }

/* footer */
.sph-footer { background: var(--sph-midnight); color: rgba(255, 255, 255, 0.7); padding: clamp(64px, 8vw, 96px) 0 0; font-size: 0.92rem; }
.sph-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.sph-footer__logo { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.sph-footer__logo img:first-child { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px var(--sph-gold); }
.sph-footer__logo img:last-child { width: 170px; height: auto; }
.sph-footer h4 { font: 500 0.72rem/1 var(--sph-body); letter-spacing: 0.26em; text-transform: uppercase; color: var(--sph-gold); margin: 6px 0 20px; }
.sph-footer a { display: block; color: rgba(255, 255, 255, 0.78); text-decoration: none; padding: 5px 0; }
.sph-footer a:hover { color: #fff; }
.sph-footer p { margin: 0 0 14px; }
.sph-footer p a { display: inline; padding: 0; }
.sph-footer .sph-btn { display: inline-flex; margin-top: 6px; padding: 0.95em 1.7em; color: var(--sph-midnight); }
.sph-footer .sph-btn:hover { color: var(--sph-midnight); }
.sph-footer__bottom {
	display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 26px;
	border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.78rem; letter-spacing: 0.06em;
}
.sph-footer__bottom .sph-gurmukhi { color: var(--sph-gold-soft); }

/* ---------- pages ---------- */
.sph-page { padding-block: clamp(48px, 7vw, 90px); }
.sph-page__title { text-align: center; }

/* contact page */
.sph-contact { text-align: center; }
.sph-contact__lead { font: 300 clamp(1.05rem, 1.5vw, 1.2rem)/1.8 var(--sph-body); color: var(--sph-muted); max-width: 620px; margin: 0 auto 28px; }
.sph-contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: clamp(48px, 7vw, 80px); }
.sph-contact__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-align: left; }
.sph-contact__grid h2 { font: italic 300 clamp(2rem, 3.4vw, 2.8rem)/1.1 var(--sph-display); color: var(--sph-navy); margin: 0 0 1rem; }
.sph-contact__grid address { font: italic 400 1.35rem/1.55 var(--sph-display); color: var(--sph-navy); margin: 0 0 1.2rem; }
.sph-contact__grid a { color: var(--sph-royal); }
@media (max-width: 760px) {
	.sph-contact__grid { grid-template-columns: 1fr; }
	.sph-contact__actions .sph-btn { flex: 1 1 100%; }
}

/* questions and answers that open and close */
.sph-page .wp-block-details { border-top: 1px solid var(--sph-line); padding: 18px 0; margin: 0; }
.sph-page .wp-block-details:last-of-type { border-bottom: 1px solid var(--sph-line); }
.sph-page .wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; font: italic 400 clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--sph-display); color: var(--sph-navy); }
.sph-page .wp-block-details summary::-webkit-details-marker { display: none; }
.sph-page .wp-block-details summary::after { content: "+"; font: 300 1.6rem/1 var(--sph-body); color: var(--sph-gold); flex: none; }
.sph-page .wp-block-details[open] summary::after { content: "\2212"; }
.sph-page .wp-block-details > :not(summary) { margin: 12px 0 0; color: #3d4456; }

/* ---------- WooCommerce, styled to match ---------- */
.woocommerce .wp-block-post-title,
.wp-block-woocommerce-single-product .wp-block-post-title,
.single-product main .wp-block-post-title { font: italic 300 clamp(2.2rem, 4vw, 3.4rem)/1.08 var(--sph-display); color: var(--sph-navy); }
.wc-block-components-product-price, .woocommerce div.product p.price, .woocommerce div.product span.price,
.wp-block-woocommerce-product-price { font-family: var(--sph-display); color: var(--sph-royal) !important; }
.single-product .wp-block-woocommerce-product-price { font-size: 1.9rem; }
.woocommerce .single_add_to_cart_button, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link),
.woocommerce a.button, .woocommerce button.button, .wp-block-button__link.add_to_cart_button {
	background: var(--sph-royal) !important; color: #fff !important; border-radius: 0 !important; border: 1px solid var(--sph-royal) !important;
	font: 500 0.75rem/1 var(--sph-body) !important; letter-spacing: 0.2em !important; text-transform: uppercase !important; padding: 1.15em 2.3em !important;
}
.woocommerce .single_add_to_cart_button:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: var(--sph-navy) !important; border-color: var(--sph-navy) !important; }
.wc-block-product-template .wp-block-post-title, .wc-block-grid__product-title, .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font: italic 400 1.45rem/1.15 var(--sph-display) !important; color: var(--sph-navy);
}
.wc-block-product-template .wp-block-post-title a { color: var(--sph-navy); text-decoration: none; }
.wc-block-product-template li, .wc-block-grid__product { background: #fff; border: 1px solid var(--sph-line); padding-bottom: 20px; transition: box-shadow 0.3s, border-color 0.3s; }
.wc-block-product-template li:hover, .wc-block-grid__product:hover { border-color: var(--sph-gold); box-shadow: 0 16px 36px rgba(33, 49, 82, 0.1); }
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font: 400 0.72rem var(--sph-body) !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sph-muted); }
.woocommerce div.product div.images img, .wp-block-woocommerce-product-image-gallery img { background: #fff; }
.woocommerce table.variations label { font: 500 0.74rem var(--sph-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sph-navy); }
.sph-chosen { display: block; margin-top: 8px; font: italic 400 1.45rem/1.15 var(--sph-display); color: var(--sph-royal); letter-spacing: 0; text-transform: none; min-width: 7em; }
.mwb_swatch-vm-swatch-wrapper img, .mwb_swatch-vm-swatch-wrapper-without-circle img { object-fit: cover; }
/* Every product photo sits in the same 3:2 frame. A tall photo used to stretch the gallery and push
   the small photos under it out of sight, because the colour boxes plugin forces the frame's height. */
.woocommerce-product-gallery .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 3 / 2; background: #fff; }
.woocommerce-product-gallery .woocommerce-product-gallery__image > a > img { width: 100% !important; height: 100% !important; object-fit: contain; }
.woocommerce-product-gallery .flex-control-thumbs li { cursor: pointer; }
.woocommerce-tabs .tabs li a { font-family: var(--sph-body); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.wp-block-woocommerce-product-collection .wc-block-product-template { gap: 22px; }

/* The colour picker: the label and the chosen colour on top, every colour box below it across the full
   width. It used to sit in two table columns, which squeezed the boxes into a thin strip on phones. */
.woocommerce div.product table.variations, .woocommerce div.product table.variations tbody { display: block; width: 100%; }
.woocommerce div.product table.variations tr { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.woocommerce div.product table.variations td, .woocommerce div.product table.variations th { display: block; width: 100%; padding: 0; text-align: left; }
.woocommerce div.product table.variations td.label { display: flex !important; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.woocommerce div.product table.variations td.label .sph-chosen { margin-top: 0; min-width: 0; }
.woocommerce div.product .mwb_swatch-vm-attr-name-label { display: block; }
.woocommerce div.product .mwb_swatch-vm-attr-name-label > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.woocommerce div.product .mwb_swatch-vm-attr-name-label > ul > li { margin: 0 !important; display: flex; justify-content: center; }
.woocommerce div.product .reset_variations { display: inline-block; margin-top: 10px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* Plain dropdowns (metres, sorting) look like the rest of the shop */
.woocommerce div.product form.cart select, .woocommerce-ordering select, .wc-block-catalog-sorting select, .woocommerce .woocommerce-ordering .orderby {
	min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid #cfc6b4; border-radius: 0; background-color: #fff;
	font: 400 0.95rem/1.2 var(--sph-body); color: var(--sph-ink);
}

/* Shop grid buttons: one clean button, never split over two lines */
.wc-block-product-template .wp-block-button__link, .wc-block-product-template a.button, .wc-block-grid__product a.button {
	display: inline-flex !important; align-items: center; justify-content: center; white-space: nowrap; max-width: 100%;
	box-sizing: border-box; text-decoration: none !important;
}
.wc-block-product-template .wp-block-woocommerce-product-button, .wc-block-product-template .wp-block-button { display: flex; justify-content: center; padding: 0 12px; }
/* Product grids: 4 across on a computer, 3 on a tablet, 2 on a phone. WooCommerce's own sizing fell back
   to 2 huge cards on a computer once the gap between cards was widened. */
.wc-block-product-template.wc-block-product-template__responsive { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .wc-block-product-template.wc-block-product-template__responsive { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 700px) { .wc-block-product-template.wc-block-product-template__responsive { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; } }
/* Some cards use WooCommerce's block button inside its own wrapper, which forces wrapping text */
.wc-block-product-template li .wp-block-button { width: 100%; box-sizing: border-box; }
.wc-block-product-template li .wp-block-button .wp-block-button__link { white-space: nowrap !important; }
/* every card's button sits on the same line, whatever the length of the name above it */
.wc-block-product-template li { display: flex; flex-direction: column; }
.wc-block-product-template li > a.button, .wc-block-product-template li > .wp-block-button, .wc-block-product-template li > .wp-block-woocommerce-product-button { margin-top: auto !important; align-self: center; }

/* The phone menu sits right under the header. A block gap from WordPress pushed it 22px down, and its
   gold top line then ran across the photo under the header even with the menu closed. */
.sph-header .sph-mobile { margin: 0 !important; }
.sph-mobile:not(.is-open) { border-top-color: transparent; }

/* The small gold line and the headline stay readable on every photo of the slider */
.sph-hero .sph-eyebrow { color: var(--sph-gold-soft); text-shadow: 0 1px 8px rgba(10, 15, 28, 0.8); }
.sph-hero__gurmukhi, .sph-hero__title, .sph-hero__lead { text-shadow: 0 2px 16px rgba(10, 15, 28, 0.45); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sph-hero__slide, .sph-hero__slide img, .sph-card, .sph-card img { transition: none !important; }
	.sph-hero__slide img { transform: none !important; }
}

/* ---------- header: the split menu needs about 1120px, below that use the menu button ---------- */
.sph-nav a { white-space: nowrap; }
@media (max-width: 1120px) {
	.sph-header__in { grid-template-columns: 48px 1fr 48px; min-height: 88px; }
	.sph-nav { display: none; }
	.sph-brand { justify-self: center; }
	.sph-burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
	.sph-burger span { display: block; height: 1px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
	.sph-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.sph-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.sph-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.sph-mobile { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--sph-navy); border-top: 1px solid rgba(194, 161, 91, 0.35); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
	.sph-mobile.is-open { max-height: 80vh; overflow-y: auto; }
	.sph-mobile nav { display: flex; flex-direction: column; padding: 10px 0 24px; }
	.sph-mobile a { color: #fff; text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: italic 400 1.35rem/1.2 var(--sph-display); }
	.sph-mobile__wa { color: var(--sph-gold) !important; font: 500 0.75rem/1 var(--sph-body) !important; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 0 !important; padding-top: 22px !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
	.sph-fabrics__grid { grid-template-columns: repeat(3, 1fr); }
	.sph-awards__grid { grid-template-columns: repeat(2, 1fr); }
	.sph-colours__in { grid-template-columns: 1fr; }
	.sph-colours__intro { text-align: center; max-width: 640px; margin: 0 auto; }
	.sph-colours__grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- phone and small tablet ---------- */
@media (max-width: 900px) {
	:root { --sph-topbar: 34px; }
	html { scroll-padding-top: 90px; }
	.sph-topbar__in { justify-content: center; font-size: 0.68rem; }
	.sph-hide-m { display: none; }
	.sph-header__in { grid-template-columns: 48px 1fr 48px; min-height: 76px; }
	.sph-nav { display: none; }
	.sph-brand { justify-self: center; gap: 10px; }
	.sph-brand__face, .is-scrolled .sph-brand__face { width: 50px; height: 50px; }
	.sph-brand__word, .is-scrolled .sph-brand__word { width: 128px; }
	.is-scrolled .sph-header__in { min-height: 68px; }
	.sph-header__icons { gap: 6px !important; }
	.sph-header__icons .wp-block-woocommerce-customer-account { display: none; }
	.sph-burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
	.sph-burger span { display: block; height: 1px; background: #fff; transition: transform 0.3s, opacity 0.3s; }
	.sph-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.sph-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.sph-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.sph-mobile { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--sph-navy); border-top: 1px solid rgba(194, 161, 91, 0.35); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
	.sph-mobile.is-open { max-height: 80vh; overflow-y: auto; }
	.sph-mobile nav { display: flex; flex-direction: column; padding: 10px 0 24px; }
	.sph-mobile a { color: #fff; text-decoration: none; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: italic 400 1.35rem/1.2 var(--sph-display); }
	.sph-mobile__wa { color: var(--sph-gold) !important; font: 500 0.75rem/1 var(--sph-body) !important; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 0 !important; padding-top: 22px !important; }

	.sph-hero { height: auto; min-height: 640px; max-height: none; align-items: flex-end; }
	.sph-hero__slide img { object-position: var(--focus-m, 50% 50%); }
	.sph-hero__shade { background: linear-gradient(0deg, rgba(20, 30, 51, 0.94) 0%, rgba(20, 30, 51, 0.78) 50%, rgba(20, 30, 51, 0.5) 78%, rgba(20, 30, 51, 0.3) 100%); }
	.sph-hero__content { padding-block: 160px 96px; }
	.sph-hero__controls { bottom: 24px; }
	.sph-hero__arrow { width: 42px; height: 42px; }
	/* phones: the headline fills the lower part, so only the Sardar ji shows, above it. The header
	   right above already carries the name. */
	.sph-brandslide { padding: 22px 24px 0; justify-content: flex-start; }
	.sph-hero__slide.sph-hero__slide--brand .sph-brandslide__face { width: 104px; }
	.sph-hero__slide.sph-hero__slide--brand .sph-brandslide__word, .sph-brandslide__regd { display: none; }
	.sph-awards__feature, .sph-viral__in { grid-template-columns: 1fr; }
	.sph-awards__feature figure { max-width: 420px; }
	.sph-fabrics__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.sph-card__body { padding: 16px; }
	.sph-card__title { font-size: 1.45rem; }
	.sph-card__text { display: none; }
	.sph-card__price small { display: block; margin: 6px 0 0; }
	/* five fabrics in two columns: the last card sits in the middle, not alone on the left */
	.sph-fabrics__grid > .sph-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
	.sph-heritage__photo::before { display: none; }
	.sph-colours__grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
	.sph-heritage__in, .sph-visit__in, .sph-orders__in { grid-template-columns: 1fr; }
	.sph-heritage__photo::before { inset: 14px -10px -14px 10px; }
	.sph-orders__actions { justify-content: flex-start; }
	.sph-promise__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
	.sph-footer__grid { grid-template-columns: 1fr 1fr; }
	.sph-footer__brand { grid-column: 1 / -1; }
	.sph-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
	.sph-hero__title { font-size: 3rem; }
	.sph-hero__actions .sph-btn { flex: 1 1 100%; }
	/* two product cards per row: a smaller button that fits the card */
	.wc-block-product-template .wp-block-button__link, .wc-block-product-template a.button {
		width: calc(100% - 24px); margin: 0 12px; padding: 1.05em 0.6em !important; letter-spacing: 0.1em !important; font-size: 0.66rem !important;
	}
	.wc-block-product-template li .wp-block-button .wp-block-button__link { width: 100% !important; margin: 0 !important; }
	.sph-colours__grid { grid-template-columns: repeat(3, 1fr); }
	.sph-awards__grid { gap: 12px; }
	.sph-facts strong { font-size: 2.1rem; }
	.sph-footer__grid { grid-template-columns: 1fr; }
}
