/*
Theme Name: Sujhaya
Theme URI: https://sujhaya.com
Author: Sujhaya
Description: Image-led editorial WordPress block theme.
Version: 0.2.8
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: sujhaya
*/

:root {
	--sujhaya-ink: #271e21;
	--sujhaya-plum: #53172e;
	--sujhaya-paper: #fffdf9;
	--sujhaya-ivory: #fff8ee;
	--sujhaya-line: #e6ddd4;
	--sujhaya-shadow: 0 18px 50px rgb(57 35 42 / 12%);
}

@font-face {
	font-family: "Outfit";
	src: url("assets/fonts/Outfit-Medium.ttf") format("truetype");
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Outfit";
	src: url("assets/fonts/Outfit-SemiBold.ttf") format("truetype");
	font-style: normal;
	font-weight: 600 800;
	font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: var(--sujhaya-ivory);
	color: var(--sujhaya-ink);
	font-family: Outfit, Aptos, "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a { text-underline-offset: .2em; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--sujhaya-plum);
	outline-offset: 3px;
}
.wp-site-blocks { overflow: clip; }
.wp-site-blocks > main { margin-block-start: 0 !important; }

/* Header */
.sujhaya-header {
	display: grid !important;
	grid-template-columns: minmax(10.75rem, 12rem) minmax(0, 1fr) minmax(14rem, 24rem);
	align-items: center;
	column-gap: clamp(.85rem, 2vw, 2.25rem);
	min-height: 76px;
	padding: .8rem clamp(1.25rem, 4vw, 4.5rem) !important;
	border-bottom: 1px solid var(--sujhaya-line);
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 3px 18px rgb(39 26 31 / 4%);
}
.admin-bar .sujhaya-header { top: 32px; }
.sujhaya-brand {
	display: block;
	width: clamp(8.8rem, 10vw, 10.75rem);
	margin: 0 !important;
	line-height: 0;
}
.sujhaya-brand img {
	display: block;
	width: 100%;
	height: auto;
}
.sujhaya-primary-nav {
	justify-self: center;
	min-width: 0;
	margin: 0 !important;
}
.sujhaya-primary-nav .wp-block-navigation__container { flex-wrap: nowrap; }
.sujhaya-primary-nav .wp-block-navigation-item__content {
	padding: .45rem .15rem;
	text-decoration: none;
}
.sujhaya-primary-nav .wp-block-navigation-item__content:hover {
	color: var(--sujhaya-plum);
}
.sujhaya-search {
	justify-self: end;
	width: min(100%, 390px);
	margin: 0 !important;
}
.sujhaya-search .wp-block-search__inside-wrapper {
	min-height: 42px;
	border: 1px solid #d9d0c7;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}
.sujhaya-search .wp-block-search__input {
	padding-left: 1.1rem;
	font-size: .86rem;
}
.sujhaya-search .wp-block-search__button {
	margin: 0;
	padding: .55rem 1rem;
	background: transparent;
	color: var(--sujhaya-ink);
}

/* Hero */
.sujhaya-hero-split {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 !important;
	margin: 0 !important;
}
.sujhaya-hero-split > .wp-block-column {
	min-width: 0;
	width: auto !important;
}
.sujhaya-hero-panel {
	min-height: clamp(32rem, 43vw, 42rem) !important;
	position: relative;
	overflow: hidden;
}
.sujhaya-hero-panel .wp-block-cover__image-background {
	object-position: center;
	transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.sujhaya-hero-panel:hover .wp-block-cover__image-background {
	transform: scale(1.015);
}
.sujhaya-hero-panel .wp-block-cover__background {
	background: linear-gradient(90deg, rgb(255 250 243 / 95%) 0%, rgb(255 250 243 / 76%) 35%, transparent 68%);
	opacity: 1;
}
.sujhaya-hero-panel .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
	padding: clamp(2rem, 5vw, 5rem);
}
.sujhaya-hero-copy {
	width: min(32rem, 80%);
	margin: 0 !important;
}
.sujhaya-hero-copy h1 {
	margin: .55rem 0 1rem;
	font-size: clamp(2.8rem, 4vw, 4.4rem) !important;
	line-height: .97;
}
.sujhaya-hero-copy > p:not(.sujhaya-eyebrow) {
	max-width: 25rem;
	font-size: clamp(1rem, 1.2vw, 1.16rem);
	line-height: 1.55;
}
.sujhaya-eyebrow {
	margin: 0;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.wp-block-button__link {
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	background: #4f172d;
	box-shadow: 0 9px 22px rgb(65 21 37 / 22%);
}

/* Homepage sections */
.sujhaya-section {
	width: min(calc(100% - clamp(2rem, 6vw, 6rem)), 1440px);
	max-width: 1440px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	padding-top: clamp(3rem, 6vw, 6rem);
	padding-bottom: clamp(2.5rem, 5vw, 5rem);
}
.sujhaya-section--compact { padding-top: 1rem; }
.sujhaya-section > .sujhaya-section-heading,
.sujhaya-section > .sujhaya-category-grid,
.sujhaya-section > .sujhaya-collection-rail,
.sujhaya-section > .sujhaya-tools-grid {
	width: 100%;
	max-width: none !important;
}
.sujhaya-section-heading { margin-bottom: 1.4rem; }
.sujhaya-section-heading h2 { margin: 0; }
.sujhaya-section-heading a,
.sujhaya-card-link {
	color: inherit;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-decoration: none;
	text-transform: uppercase;
}
.sujhaya-category-grid { gap: 1rem !important; }
.sujhaya-image-card {
	position: relative;
	min-height: 250px;
	border-radius: 10px;
	background: #ddd2c7;
	overflow: hidden;
	box-shadow: 0 8px 24px rgb(57 35 42 / 8%);
}
.sujhaya-image-card .wp-block-image,
.sujhaya-image-card .wp-block-image a { height: 100%; margin: 0; }
.sujhaya-image-card img {
	display: block;
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.sujhaya-image-card--women img { object-position: 70% 62%; }
.sujhaya-image-card--commute img { object-position: 82% 60%; }
.sujhaya-image-card--cabin img { object-position: 60% 45%; }
.sujhaya-image-card--style img { object-position: 92% 45%; }
.sujhaya-image-card::after {
	content: "";
	position: absolute;
	inset: 42% 0 0;
	pointer-events: none;
	background: linear-gradient(transparent, rgb(22 14 17 / 72%));
}
.sujhaya-image-card h3 {
	position: absolute;
	right: 1.2rem;
	bottom: 1rem;
	left: 1.2rem;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-size: clamp(1.2rem, 1.8vw, 1.65rem);
	letter-spacing: -.02em;
}
.sujhaya-image-card:hover img { transform: scale(1.04); }

.sujhaya-collection-rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
.sujhaya-collection-rail > .sujhaya-product-card {
	margin-block-start: 0 !important;
}
.sujhaya-product-card {
	height: 100%;
	border: 1px solid var(--sujhaya-line);
	border-radius: 10px;
	background: var(--sujhaya-paper);
	overflow: hidden;
	box-shadow: 0 8px 25px rgb(48 30 37 / 6%);
}
.sujhaya-product-card .wp-block-image { margin: 0; background: #eee7df; }
.sujhaya-product-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
.sujhaya-product-card .wp-block-button { margin-top: auto; }
.sujhaya-product-card .wp-block-button__link { width: 100%; }
.sujhaya-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .65rem;
	min-height: 15rem;
	padding: 1.35rem;
}
.sujhaya-card-body > * { margin-block: 0; }
.sujhaya-tool-card {
	position: relative;
	height: 100%;
	min-height: 315px;
	padding: clamp(1.6rem, 3vw, 3rem);
	border: 1px solid #dfd1c5;
	border-radius: 12px;
	background: linear-gradient(135deg, #f4e7df, #fbf5ef);
	overflow: hidden;
}
.sujhaya-tool-card--travel { background: linear-gradient(135deg, #e8ded2, #f7f2eb); }
.sujhaya-tool-card > *:not(.sujhaya-tool-number) { max-width: 34rem; }
.sujhaya-tool-number {
	position: absolute;
	right: 1.75rem;
	top: 1.1rem;
	margin: 0;
	color: rgb(100 31 57 / 13%);
	font-family: var(--wp--preset--font-family--serif);
	font-size: 5.5rem;
	line-height: 1;
}
.sujhaya-text-link a {
	color: var(--sujhaya-plum);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}
.sujhaya-guide-card {
	height: 100%;
	border-radius: 10px;
	background: #f0e8df;
	overflow: hidden;
}
.sujhaya-guide-card img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
.sujhaya-disclosure {
	border-left: 3px solid var(--sujhaya-plum);
	border-radius: 0 10px 10px 0;
	background: #fffaf5;
	padding: clamp(1.75rem, 4vw, 3.5rem);
}
.sujhaya-trust {
	margin-top: clamp(2rem, 5vw, 5rem);
	padding: clamp(3rem, 7vw, 7rem) clamp(1.25rem, 4vw, 4rem);
	background: #eee5dc;
}
.sujhaya-trust .wp-block-columns { gap: clamp(2rem, 6vw, 6rem); }
.sujhaya-footer {
	border-top: 1px solid var(--sujhaya-line);
	/* Keep the background full-bleed, while aligning its content to site sections. */
	padding-inline: clamp(1rem, 3vw, 3rem) !important;
}
.sujhaya-footer > .wp-block-columns,
.sujhaya-footer > .wp-block-separator,
.sujhaya-footer > p {
	width: min(100%, 1440px);
	margin-right: auto !important;
	margin-left: auto !important;
}
.sujhaya-footer-brand { display: inline-block; width: min(12rem, 100%); line-height: 0; }
.sujhaya-footer-brand img { display: block; width: 100%; height: auto; }
.sujhaya-affiliate-disclosure {
	border-left: 3px solid var(--sujhaya-plum);
	border-radius: 0 .6rem .6rem 0;
	background: #fffaf5;
	padding: 1rem 1.15rem;
}
.sujhaya-product-card {
	display: grid;
	grid-template-columns: minmax(10rem, .8fr) minmax(0, 1.2fr);
	overflow: hidden;
	border: 1px solid var(--sujhaya-line);
	border-radius: 1rem;
	background: #fffdf9;
	box-shadow: 0 12px 30px rgb(49 27 39 / 7%);
}
.sujhaya-product-card-image { min-height: 100%; background: #eee7df; }
.sujhaya-product-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sujhaya-product-card-body { display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.25rem, 3vw, 2rem); }
.sujhaya-product-card-body > * { margin: 0; }
.sujhaya-product-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.sujhaya-product-card h3 a { color: inherit; text-decoration: none; }
.sujhaya-product-card h3 a:hover { color: var(--sujhaya-plum); }
.sujhaya-product-eyebrow,
.sujhaya-guide-kicker { color: var(--sujhaya-plum); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.sujhaya-product-best-for { color: var(--sujhaya-muted); }
.sujhaya-product-features,
.sujhaya-product-limitations { display: grid; gap: .45rem; margin: 0; padding-left: 1.1rem; }
.sujhaya-product-features li::marker { color: var(--sujhaya-plum); }
.sujhaya-product-limitations li::marker { color: #9d5f50; }
.sujhaya-product-cta { margin-top: auto !important; padding-top: .4rem; }
.sujhaya-product-cta .wp-element-button { display: inline-flex; align-items: center; gap: .5rem; }
.sujhaya-product-summary { border: 1px solid var(--sujhaya-line); border-radius: 1rem; background: #f7f0ea; padding: clamp(1.35rem, 4vw, 2.25rem); }
.sujhaya-product-summary > *:first-child { margin-top: 0; }
.sujhaya-product-summary > *:last-child { margin-bottom: 0; }
.sujhaya-product-summary h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.sujhaya-product-summary h3 { margin-top: 1.5rem; font-size: 1rem; }
.sujhaya-product-reviewed { color: var(--sujhaya-muted); font-size: .86rem; }
.sujhaya-product-card-notice { color: var(--sujhaya-muted); font-size: .86rem; }

@media (max-width: 1100px) {
	.sujhaya-header {
		grid-template-columns: auto 1fr auto;
		column-gap: 1.5rem;
	}
	.sujhaya-brand { width: 9.4rem; }
	.sujhaya-search { width: 48px; }
	.sujhaya-search .wp-block-search__input { display: none; }
	.sujhaya-search .wp-block-search__inside-wrapper { justify-content: center; }
	.sujhaya-hero-copy { width: min(29rem, 78%); }
}

@media (max-width: 781px) {
	.admin-bar .sujhaya-header { top: 46px; }
	.sujhaya-header {
		grid-template-columns: 1fr auto auto;
		min-height: 66px;
		padding: .65rem 1rem !important;
		position: sticky;
	}
	.sujhaya-primary-nav { justify-self: end; order: 2; }
	.sujhaya-search { order: 3; width: 42px; }
	.sujhaya-hero-split { grid-template-columns: 1fr; gap: 0 !important; }
	.sujhaya-hero-panel { min-height: 31rem !important; }
	.sujhaya-hero-panel .wp-block-cover__inner-container { padding: 2rem 1.35rem; }
	.sujhaya-hero-panel .wp-block-cover__background {
		background: linear-gradient(90deg, rgb(255 250 243 / 94%) 0%, rgb(255 250 243 / 68%) 58%, transparent 90%);
	}
	.sujhaya-hero-copy { width: 78%; }
	.sujhaya-hero-copy h1 { font-size: clamp(2.75rem, 13vw, 4.25rem) !important; }
	.sujhaya-category-grid {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: .7rem !important;
	}
	.sujhaya-category-grid > .wp-block-column { width: auto !important; }
	.sujhaya-collection-rail {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(17rem, 84vw);
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: .8rem;
		overscroll-behavior-inline: contain;
		scroll-snap-type: inline mandatory;
	}
	.sujhaya-collection-rail > * { scroll-snap-align: start; }
	.sujhaya-image-card,
	.sujhaya-image-card img { min-height: 205px; height: 205px; }
	.sujhaya-image-card h3 { right: .8rem; bottom: .75rem; left: .8rem; font-size: 1.05rem; }
	.sujhaya-product-card { grid-template-columns: 1fr; }
	.sujhaya-product-card-image { min-height: 13rem; }
}

@media (max-width: 520px) {
	.sujhaya-brand { width: 8.4rem; }
	.sujhaya-hero-panel { min-height: 29rem !important; }
	.sujhaya-hero-copy { width: 86%; }
	.sujhaya-section { padding-right: 1rem; padding-left: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
