/*
Theme Name: India Shrine Heritage
Theme URI: https://indiashriners.org/
Author: India Shrine of Oklahoma City
Description: A modern, accessible, WooCommerce-ready theme for India Shrine. Includes native block patterns and automatic compatibility with the existing Frontech/Kyma homepage settings, menus, widgets, shortcodes, PDF viewers, galleries, and payment pages.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: india-shrine-heritage
Tags: custom-logo, custom-menu, featured-images, full-width-template, block-styles, wide-blocks, accessibility-ready, e-commerce
*/

:root {
	--fez-900: #4a1018;
	--fez-800: #5d1420;
	--fez-700: #721b27;
	--fez-600: #9d2235;
	--gold-500: #d1b36b;
	--gold-300: #dfc98e;
	--gold-200: #e9d9af;
	--ink-950: #171513;
	--ink-900: #1d2020;
	--slate-700: #33403d;
	--slate-600: #53605c;
	--ivory-100: #f8f3ea;
	--ivory-50: #fcfaf6;
	--stone-200: #e6ded0;
	--stone-100: #eee8dd;
	--white: #fff;
	--shadow-sm: 0 8px 24px rgba(29, 18, 14, 0.07);
	--shadow-md: 0 20px 50px rgba(29, 18, 14, 0.13);
	--radius-sm: 0.5rem;
	--radius-md: 0.875rem;
	--radius-lg: 1.25rem;
	--shell: 76rem;
	--reading: 48rem;
	--gutter: clamp(1.25rem, 4vw, 4rem);
	--section-space: clamp(3.5rem, 7vw, 6.5rem);
	--serif: Georgia, "Times New Roman", serif;
	--sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ivory-100);
	color: var(--ink-900);
	font-family: var(--sans);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

body.navigation-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

figure {
	margin: 0 0 1.5rem;
}

a {
	color: var(--fez-700);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--fez-600);
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
[type="button"],
[type="submit"] {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid var(--gold-500);
	outline-offset: 3px;
	box-shadow: 0 0 0 2px var(--ink-950);
}

::selection {
	background: var(--gold-200);
	color: var(--ink-950);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.65em;
	color: var(--slate-700);
	font-family: var(--serif);
	font-weight: 600;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
	font-size: clamp(1.35rem, 2vw, 1.7rem);
}

p {
	margin: 0 0 1.35rem;
}

ul,
ol {
	padding-inline-start: 1.4em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--white);
	color: var(--ink-950);
	font-size: 0.95rem;
	font-weight: 700;
	white-space: normal;
}

.site-shell {
	width: min(100% - (2 * var(--gutter)), var(--shell));
	margin-inline: auto;
}

.icon-svg {
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
}

.eyebrow,
.footer-kicker {
	margin: 0 0 1rem;
	color: var(--fez-700);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.eyebrow--gold {
	color: var(--gold-500);
}

.button,
.wp-block-button__link {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	padding: 0.72rem 1.35rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--fez-700);
	color: var(--white);
	font-size: 0.88rem;
	font-weight: 800;
	letter-spacing: 0.025em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.wp-block-button__link:hover {
	background: var(--fez-600);
	color: var(--white);
	transform: translateY(-1px);
}

.button--gold {
	background: var(--gold-500);
	color: var(--ink-950);
}

.button--gold:hover {
	background: var(--gold-300);
	color: var(--ink-950);
}

.button--outline-light {
	border-color: rgba(255, 255, 255, 0.72);
	background: transparent;
	color: var(--white);
}

.button--outline-light:hover {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink-950);
}

.text-link,
.card-link,
.hero-tertiary {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.93rem;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-thickness: 0.09em;
	text-underline-offset: 0.25em;
}

.text-link--light,
.hero-tertiary {
	color: var(--white);
}

.text-link--light:hover,
.hero-tertiary:hover {
	color: var(--gold-300);
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 9990;
	box-shadow: 0 1px 0 rgba(23, 21, 19, 0.08);
}

.admin-bar .site-header {
	top: 32px;
}

.utility-bar {
	background: var(--fez-900);
	color: var(--white);
	font-size: 0.76rem;
}

.utility-bar__inner {
	display: flex;
	min-height: 2.35rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.utility-contact,
.social-links {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
}

.utility-contact a,
.utility-contact span,
.social-links a {
	color: inherit;
}

.utility-contact a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none;
}

.utility-address {
	opacity: 0.82;
}

.social-links a {
	display: grid;
	width: 1.75rem;
	height: 1.75rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	font-weight: 800;
	text-decoration: none;
}

.main-header {
	position: relative;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(12px);
}

.main-header__inner {
	display: flex;
	min-height: 5.5rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-branding {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.9rem;
}

.custom-logo-link {
	flex: 0 0 auto;
}

.custom-logo {
	width: auto;
	max-width: 8.5rem;
	max-height: 4rem;
}

.brand-copy {
	min-width: 0;
}

.site-title,
.site-description {
	margin: 0;
}

.site-title {
	font-family: var(--serif);
	font-size: clamp(1.05rem, 2vw, 1.42rem);
	font-weight: 700;
	line-height: 1.1;
}

.site-title a {
	display: block;
	color: var(--ink-950);
	text-decoration: none;
}

.site-description {
	margin-top: 0.22rem;
	color: var(--fez-700);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.055em;
	line-height: 1.25;
	text-transform: uppercase;
}

.menu-toggle {
	display: inline-flex;
	min-width: 3rem;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink-950);
	font-size: 0.85rem;
	font-weight: 800;
}

.menu-toggle__icon {
	display: grid;
	width: 1.25rem;
	gap: 0.24rem;
}

.menu-toggle__icon span {
	display: block;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
	transition: transform 160ms ease, opacity 160ms ease;
}

.menu-is-open .menu-toggle__icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.menu-is-open .menu-toggle__icon span:nth-child(2) {
	opacity: 0;
}

.menu-is-open .menu-toggle__icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.site-navigation {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
}

.primary-menu-wrapper {
	display: none;
	max-height: calc(100vh - 8rem);
	padding: 0.75rem var(--gutter) 1.25rem;
	overflow-y: auto;
	border-top: 1px solid var(--stone-200);
	background: var(--white);
	box-shadow: var(--shadow-md);
}

.menu-is-open .primary-menu-wrapper {
	display: block;
}

.nav-menu,
.nav-menu .sub-menu,
.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu > li,
.nav-menu .sub-menu > li {
	position: relative;
}

.nav-menu a {
	display: block;
	min-height: 2.9rem;
	padding: 0.78rem 2.8rem 0.78rem 0.2rem;
	border-bottom: 1px solid var(--stone-100);
	color: var(--ink-950);
	font-size: 0.9rem;
	font-weight: 750;
	text-decoration: none;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
	color: var(--fez-700);
}

.nav-menu .sub-menu {
	display: none;
	padding-left: 1rem;
}

.nav-menu .submenu-is-open > .sub-menu {
	display: block;
}

.submenu-toggle {
	position: absolute;
	top: 0.35rem;
	right: 0;
	display: grid;
	width: 2.3rem;
	height: 2.3rem;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--ivory-100);
	color: var(--fez-700);
	font-weight: 800;
}

.submenu-toggle[aria-expanded="true"] > span[aria-hidden="true"] {
	transform: rotate(180deg);
}

.header-action {
	display: flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	margin-top: 1rem;
	padding: 0.65rem 1.15rem;
	border: 2px solid var(--fez-700);
	border-radius: 999px;
	color: var(--fez-700);
	font-size: 0.84rem;
	font-weight: 800;
	text-decoration: none;
}

.header-action:hover {
	background: var(--fez-700);
	color: var(--white);
}

/* Homepage hero */
.home-hero {
	position: relative;
	display: grid;
	min-height: clamp(35rem, 68vh, 42rem);
	isolation: isolate;
	background: var(--ink-950);
	color: var(--white);
}

.home-hero__media,
.home-hero__shade {
	position: absolute;
	inset: 0;
}

.home-hero__media {
	z-index: -2;
	background-position: 50% 45%;
	background-repeat: no-repeat;
	background-size: cover;
}

.home-hero__media--left {
	background-position: 32% 45%;
}

.home-hero__media--right {
	background-position: 69% 45%;
}

.home-hero__shade {
	z-index: -1;
	background: linear-gradient(90deg, rgba(17, 13, 12, 0.95) 0%, rgba(17, 13, 12, 0.82) 38%, rgba(17, 13, 12, 0.24) 70%, rgba(17, 13, 12, 0.42) 100%);
}

.home-hero__inner {
	display: flex;
	align-items: center;
	padding-block: clamp(4rem, 8vw, 7rem);
}

.home-hero__content {
	width: min(100%, 44rem);
}

.home-hero .eyebrow {
	color: var(--gold-300);
}

.home-hero h1 {
	max-width: 11ch;
	margin-bottom: 1.25rem;
	color: var(--white);
	font-size: clamp(3rem, 7vw, 6rem);
	letter-spacing: -0.035em;
	line-height: 0.98;
}

.home-hero__text {
	max-width: 37rem;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.home-hero__text p:last-child {
	margin-bottom: 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 2rem;
}

.hero-tertiary {
	margin-top: 1.4rem;
	font-size: 0.84rem;
}

.home-facts {
	border-bottom: 1px solid var(--stone-200);
	background: var(--white);
}

.home-facts__grid {
	display: grid;
	grid-template-columns: 0.7fr 1fr 1.6fr;
}

.home-facts__grid > div {
	display: grid;
	align-content: center;
	padding: 1.35rem clamp(1rem, 3vw, 2.5rem);
	border-right: 1px solid var(--stone-200);
}

.home-facts__grid > div:first-child {
	padding-left: 0;
}

.home-facts__grid > div:last-child {
	padding-right: 0;
	border-right: 0;
}

.home-facts__label {
	margin-bottom: 0.15rem;
	color: var(--slate-600);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.home-facts strong,
.home-facts a,
.home-facts span:last-child {
	color: var(--ink-950);
	font-size: 0.92rem;
	font-weight: 750;
	line-height: 1.35;
	text-decoration: none;
}

.home-section {
	padding-block: var(--section-space);
}

.section-heading {
	max-width: 48rem;
	margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-heading--centered {
	margin-inline: auto;
	text-align: center;
}

.section-heading h2 {
	margin-bottom: 0;
}

.announcement-section {
	background: var(--ivory-50);
}

.legacy-feature-content {
	width: min(100%, 68rem);
	margin-inline: auto;
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-lg);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}

.legacy-feature-content > :first-child {
	margin-top: 0;
}

.legacy-feature-content > :last-child {
	margin-bottom: 0;
}

.mission-section {
	position: relative;
	padding-block: var(--section-space);
	overflow: hidden;
	background: var(--ink-950);
	color: rgba(255, 255, 255, 0.84);
}

.mission-section::after {
	position: absolute;
	top: -7rem;
	right: -6rem;
	width: 22rem;
	height: 22rem;
	border: 1px solid rgba(209, 179, 107, 0.22);
	border-radius: 50%;
	box-shadow: 0 0 0 3rem rgba(209, 179, 107, 0.04), 0 0 0 6rem rgba(209, 179, 107, 0.03);
	content: "";
}

.mission-section__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 7vw, 7rem);
}

.mission-section h2 {
	max-width: 13ch;
	margin: 0;
	color: var(--white);
}

.mission-section__copy {
	align-self: end;
	font-size: 1.07rem;
}

.mission-section__copy > :last-child {
	margin-bottom: 0;
}

.info-section {
	background: var(--ivory-100);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.info-card {
	display: flex;
	min-height: 19rem;
	flex-direction: column;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-sm);
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.info-card:hover {
	border-color: var(--gold-500);
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.info-card__icon {
	display: grid;
	width: 3.25rem;
	height: 3.25rem;
	margin-bottom: 2.1rem;
	place-items: center;
	border-radius: 50%;
	background: var(--gold-200);
	color: var(--fez-900);
}

.info-card__icon .icon-svg {
	width: 1.55rem;
	height: 1.55rem;
}

.info-card h3 {
	margin-bottom: 0.55rem;
}

.info-card p {
	color: var(--slate-600);
	font-size: 0.96rem;
}

.info-card .card-link {
	margin-top: auto;
}

/* Inner pages */
.page-hero {
	position: relative;
	padding-block: clamp(3rem, 6vw, 5.25rem);
	overflow: hidden;
	background: linear-gradient(122deg, var(--fez-900), var(--fez-700));
	color: var(--white);
}

.page-hero::after {
	position: absolute;
	right: -6rem;
	bottom: -9rem;
	width: 24rem;
	height: 24rem;
	border: 1px solid rgba(209, 179, 107, 0.28);
	transform: rotate(45deg);
	content: "";
}

.page-hero__inner {
	position: relative;
	z-index: 1;
}

.page-hero .page-title {
	max-width: 20ch;
	margin-bottom: 1rem;
	color: var(--white);
	font-size: clamp(2.35rem, 5vw, 4.4rem);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.82rem;
}

.breadcrumbs a {
	color: var(--white);
}

.archive-description {
	max-width: var(--reading);
	color: rgba(255, 255, 255, 0.82);
}

.archive-description > :last-child {
	margin-bottom: 0;
}

.entry-meta {
	color: var(--slate-600);
	font-size: 0.8rem;
	font-weight: 650;
}

.page-hero .entry-meta {
	color: rgba(255, 255, 255, 0.72);
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.content-layout--full,
.no-sidebar .content-layout {
	grid-template-columns: minmax(0, 1fr);
}

.content-card,
.post-card,
.site-sidebar .widget,
.no-results {
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}

.content-card {
	min-width: 0;
	padding: clamp(1.4rem, 4vw, 3.5rem);
}

.content-layout--full .content-card,
.no-sidebar .content-card {
	width: 100%;
}

.entry-content {
	min-width: 0;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content li {
	max-width: 72ch;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.6em;
}

.entry-content a:not(.button):not(.wp-block-button__link):not(.woocommerce-button) {
	text-decoration: underline;
}

.entry-content blockquote {
	margin: 2rem 0;
	padding: 1rem 0 1rem 1.5rem;
	border-left: 4px solid var(--gold-500);
	color: var(--slate-700);
	font-family: var(--serif);
	font-size: 1.2rem;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.75rem;
	border: 1px solid var(--stone-200);
	text-align: left;
}

.entry-content th {
	background: var(--ivory-100);
}

.entry-content .alignwide {
	width: min(100vw - (2 * var(--gutter)), var(--shell));
	max-width: none;
	margin-inline: max(calc((100% - min(100vw - (2 * var(--gutter)), var(--shell))) / 2), calc(-1 * var(--gutter)));
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: calc(50% - 50vw);
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
	color: var(--slate-600);
	font-size: 0.82rem;
}

.sticky {
	border-color: var(--gold-500);
}

.bypostauthor {
	display: block;
}

.site-sidebar {
	position: sticky;
	top: 9rem;
	display: grid;
	gap: 1rem;
}

.site-sidebar .widget {
	padding: 1.4rem;
}

.widget-title,
.footer-heading {
	font-family: var(--sans);
	font-size: 0.76rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li + li {
	margin-top: 0.65rem;
}

.sidebar-left .content-layout {
	grid-template-columns: minmax(15rem, 18rem) minmax(0, 1fr);
}

.sidebar-left .site-sidebar {
	grid-column: 1;
	grid-row: 1;
}

.post-list {
	display: grid;
	gap: 1.5rem;
}

.post-card {
	overflow: hidden;
}

.post-card__image {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--stone-100);
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__content {
	padding: clamp(1.4rem, 3vw, 2.2rem);
}

.post-card .entry-title {
	margin-top: 0.45rem;
}

.post-card .entry-title a {
	color: var(--ink-950);
	text-decoration: none;
}

.featured-image {
	margin: calc(-1 * clamp(1.4rem, 4vw, 3.5rem)) calc(-1 * clamp(1.4rem, 4vw, 3.5rem)) 2rem;
}

.featured-image img {
	width: 100%;
	max-height: 36rem;
	object-fit: cover;
}

.entry-footer,
.comments-area {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--stone-200);
}

.tag-links a {
	display: inline-flex;
	margin: 0.2rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	background: var(--ivory-100);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1.2rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-sm);
}

.navigation.pagination,
.posts-navigation,
.comment-navigation {
	margin-top: 2rem;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers {
	display: grid;
	min-width: 2.75rem;
	min-height: 2.75rem;
	place-items: center;
	padding: 0.5rem;
	border: 1px solid var(--stone-200);
	border-radius: 50%;
	background: var(--white);
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--fez-700);
	background: var(--fez-700);
	color: var(--white);
}

.search-form {
	display: flex;
	width: min(100%, 32rem);
	gap: 0.5rem;
}

.search-form label {
	flex: 1;
}

.search-field,
.entry-content input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.entry-content select,
.entry-content textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #b8b3aa;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink-950);
}

.entry-content textarea {
	min-height: 8rem;
}

.search-submit,
.entry-content input[type="submit"] {
	min-height: 3rem;
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--fez-700);
	color: var(--white);
	font-weight: 800;
}

.error-page__inner {
	padding-block: clamp(5rem, 12vw, 10rem);
	text-align: center;
}

.error-page__inner > * {
	margin-inline: auto;
}

.error-page__inner p:not(.eyebrow) {
	max-width: 42rem;
}

.error-page .search-form {
	margin-block: 2rem;
}

/* Current plugin bridges: scoped to content, never global plugin resets. */
.entry-content .metaslider,
.legacy-feature-content .metaslider {
	width: min(100%, 46rem) !important;
	max-width: 100% !important;
	margin-inline: auto !important;
}

.entry-content .metaslider img,
.legacy-feature-content .metaslider img {
	max-height: min(72rem, 82vh);
	object-fit: contain;
}

.entry-content .ngg-galleryoverview,
.entry-content .wp-block-pdfp-pdf-poster,
.entry-content .pdfp_wrapper,
.entry-content .df-container,
.entry-content ._3d-flip-book,
.legacy-feature-content ._3d-flip-book,
.legacy-feature-content .df-container {
	max-width: 100%;
}

.entry-content .wp-block-pdfp-pdf-poster,
.entry-content .pdfp_wrapper {
	min-height: min(52rem, 78vh);
}

.entry-content iframe,
.legacy-feature-content iframe {
	max-width: 100%;
}

.entry-content .wpapp_widget {
	width: min(100%, 36rem);
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-md);
	background: var(--ivory-50);
}

.entry-content .wpapp_widget select,
.entry-content .wpapp_widget input {
	max-width: 100% !important;
	margin-block: 0.35rem 1rem;
}

.entry-content .wpcf7-form > p {
	max-width: 40rem;
}

.entry-content .wpcf7-not-valid-tip {
	color: #a31919;
	font-size: 0.86rem;
	font-weight: 700;
}

.entry-content [class*="iscts-"] {
	max-width: 100%;
}

/* WooCommerce */
.commerce-content {
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 2rem;
	color: var(--slate-600);
	font-size: 0.82rem;
}

.woocommerce .woocommerce-breadcrumb a {
	color: var(--fez-700);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
	margin-bottom: 2rem;
}

.woocommerce .woocommerce-ordering select {
	min-height: 2.8rem;
	padding: 0.5rem 2.5rem 0.5rem 0.75rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-sm);
	background: var(--white);
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	clear: both;
	gap: 1.25rem;
	margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	display: flex;
	width: auto !important;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	margin: 0 !important;
	padding: 1rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 4 / 3;
	margin: 0 0 1rem;
	border-radius: calc(var(--radius-md) - 0.25rem);
	background: var(--ivory-50);
	object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0;
	color: var(--ink-950);
	font-family: var(--serif);
	font-size: 1.25rem;
	line-height: 1.25;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--fez-700);
	font-weight: 800;
}

.woocommerce ul.products li.product .button {
	align-self: flex-start;
	margin-top: auto;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	min-height: 2.9rem;
	padding: 0.72rem 1.1rem;
	border-radius: 999px;
	background: var(--fez-700);
	color: var(--white);
	font-size: 0.86rem;
	font-weight: 800;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--fez-600);
	color: var(--white);
}

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
	gap: clamp(2rem, 6vw, 5rem);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce div.product div.images img {
	border-radius: var(--radius-md);
	background: var(--white);
}

.woocommerce div.product .product_title {
	color: var(--ink-950);
	font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.woocommerce div.product form.cart {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.woocommerce .quantity .qty {
	min-height: 2.9rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-sm);
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
	grid-column: 1 / -1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-color: var(--stone-200);
	background: var(--ivory-100);
}

.woocommerce table.shop_table {
	border-color: var(--stone-200);
	border-radius: var(--radius-sm);
	background: var(--white);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.9rem;
	border-color: var(--stone-200);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-checkout-review-order {
	padding: 1.25rem;
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-md);
	background: var(--white);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
	min-height: 3rem;
	padding: 0.65rem 0.75rem;
	border: 1px solid #aaa59d;
	border-radius: var(--radius-sm);
	background: var(--white);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.6;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
	border-top-color: var(--fez-700);
	border-radius: var(--radius-sm);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--fez-700);
}

/* Block-pattern presentation */
.india-pattern-split {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.india-pattern-card {
	height: 100%;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--stone-200);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: var(--shadow-sm);
}

.india-pattern-contact {
	padding: clamp(2rem, 5vw, 4rem);
	border-radius: var(--radius-lg);
	background: var(--fez-900);
	color: var(--white);
}

.india-pattern-contact h2,
.india-pattern-contact a {
	color: var(--white);
}

/* Footer */
.site-footer {
	background: var(--ink-950);
	color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr 0.8fr;
	gap: clamp(2.5rem, 6vw, 6rem);
	padding-block: clamp(3.5rem, 7vw, 6rem);
}

.footer-grid h2,
.footer-grid .footer-heading {
	color: var(--white);
}

.footer-brand h2 {
	max-width: 17ch;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.footer-brand > p:not(.footer-kicker) {
	max-width: 34rem;
}

.footer-social {
	color: var(--gold-300);
	font-size: 0.85rem;
	font-weight: 750;
}

.footer-contact address {
	display: grid;
	gap: 0.65rem;
	font-style: normal;
}

.footer-contact a,
.footer-menu a,
.legacy-footer-widgets a {
	color: rgba(255, 255, 255, 0.82);
}

.footer-menu {
	display: grid;
	gap: 0.55rem;
}

.footer-menu a {
	font-size: 0.9rem;
}

.legacy-footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 2rem;
	padding-block: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-footer-widgets ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.75rem;
}

.footer-legal__inner {
	display: flex;
	min-height: 4rem;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.footer-legal p {
	margin: 0;
}

.footer-legal a {
	color: var(--white);
}

@media (min-width: 1280px) {
	body.navigation-open {
		overflow: visible;
	}

	.main-header__inner {
		gap: clamp(0.75rem, 1.2vw, 1rem);
	}

	.site-branding {
		flex: 0 1 15.5rem;
	}

	.menu-toggle {
		display: none;
	}

	.site-navigation {
		position: static;
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		margin-left: auto;
	}

	.primary-menu-wrapper,
	.menu-is-open .primary-menu-wrapper {
		display: flex;
		max-height: none;
		align-items: center;
		justify-content: flex-end;
		gap: 0.5rem;
		padding: 0;
		overflow: visible;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.nav-menu {
		display: flex;
		min-width: 0;
		align-items: stretch;
		gap: clamp(0rem, 0.3vw, 0.35rem);
		flex-wrap: nowrap;
	}

	.nav-menu > li {
		display: flex;
		flex: 0 0 auto;
		align-items: stretch;
	}

	.nav-menu > li > a {
		display: flex;
		min-height: 5.5rem;
		align-items: center;
		padding: 0 clamp(0.3rem, 0.45vw, 0.5rem);
		border: 0;
		font-size: clamp(0.7rem, 0.7vw, 0.78rem);
		letter-spacing: 0.02em;
		line-height: 1.2;
		white-space: nowrap;
	}

	.nav-menu > .current-menu-item > a::after,
	.nav-menu > .current-menu-ancestor > a::after {
		position: absolute;
		right: 0.5rem;
		bottom: 1.3rem;
		left: 0.5rem;
		height: 2px;
		background: var(--gold-500);
		content: "";
	}

	.submenu-toggle {
		display: none;
	}

	.nav-menu .sub-menu {
		position: absolute;
		top: calc(100% - 0.5rem);
		left: 0;
		display: block;
		width: 16.5rem;
		padding: 0.55rem;
		border: 1px solid var(--stone-200);
		border-radius: var(--radius-sm);
		opacity: 0;
		visibility: hidden;
		background: var(--white);
		box-shadow: var(--shadow-md);
		transform: translateY(0.5rem);
		transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
	}

	.nav-menu li:hover > .sub-menu,
	.nav-menu li:focus-within > .sub-menu,
	.nav-menu li.submenu-is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-menu li.submenu-is-dismissed > .sub-menu {
		opacity: 0;
		visibility: hidden;
		transform: translateY(0.5rem);
	}

	.nav-menu .sub-menu .sub-menu {
		top: 0;
		left: calc(100% + 0.4rem);
	}

	.nav-menu > li:nth-last-child(-n + 2) > .sub-menu {
		right: 0;
		left: auto;
	}

	.nav-menu .sub-menu a {
		min-height: auto;
		padding: 0.7rem 0.8rem;
		border: 0;
		border-radius: 0.35rem;
		font-size: 0.82rem;
	}

	.nav-menu .sub-menu a:hover,
	.nav-menu .sub-menu .current-menu-item > a {
		background: var(--ivory-100);
	}

	.header-action {
		min-height: 2.65rem;
		margin: 0;
		padding-inline: 0.9rem;
		white-space: nowrap;
	}
}

@media (max-width: 1279.98px) {
	.site-branding {
		flex: 1 1 auto;
	}

	.menu-toggle {
		flex: 0 0 auto;
	}

	.nav-menu a {
		padding-right: 3.35rem;
	}

	.submenu-toggle {
		top: 0.1rem;
		width: 2.75rem;
		height: 2.75rem;
	}

	.utility-address {
		display: none;
	}

	.content-layout,
	.sidebar-left .content-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-sidebar,
	.sidebar-left .site-sidebar {
		position: static;
		grid-column: auto;
		grid-row: auto;
	}

	.info-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.utility-email,
	.utility-address {
		display: none !important;
	}

	.home-facts__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.home-facts__grid > div {
		border-bottom: 1px solid var(--stone-200);
	}

	.home-facts__grid > div:nth-child(2) {
		padding-right: 0;
		border-right: 0;
	}

	.home-facts__grid > div:last-child {
		grid-column: 1 / -1;
		padding-left: 0;
		border-bottom: 0;
	}

	.mission-section__grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		gap: 2.5rem;
	}

	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce div.product .woocommerce-tabs,
	.woocommerce div.product .related,
	.woocommerce div.product .upsells {
		grid-column: auto;
	}
}

@media (max-width: 599px) {
	:root {
		--gutter: 1.25rem;
		--section-space: 3.5rem;
	}

	.utility-bar__inner {
		min-height: 2.2rem;
	}

	.social-links {
		gap: 0.4rem;
	}

	.social-links a {
		width: 1.55rem;
		height: 1.55rem;
	}

	.main-header__inner {
		min-height: 4.65rem;
		gap: 0.75rem;
	}

	.custom-logo {
		max-width: 4rem;
		max-height: 3rem;
	}

	.site-title {
		font-size: 0.98rem;
	}

	.site-description {
		display: none;
	}

	.menu-toggle__label {
		display: none;
	}

	.home-hero {
		display: block;
		min-height: 0;
	}

	.home-hero__media {
		position: relative;
		inset: auto;
		width: 100%;
		aspect-ratio: 5 / 4;
		background-position: 69% 42%;
	}

	.home-hero__shade {
		display: none;
	}

	.home-hero__inner {
		padding-block: 2.6rem 3.2rem;
	}

	.home-hero h1 {
		font-size: clamp(2.65rem, 14vw, 4rem);
	}

	.hero-actions {
		display: grid;
	}

	.hero-actions .button {
		width: 100%;
	}

	.home-facts__grid {
		grid-template-columns: 1fr;
	}

	.home-facts__grid > div,
	.home-facts__grid > div:first-child,
	.home-facts__grid > div:nth-child(2),
	.home-facts__grid > div:last-child {
		grid-column: auto;
		padding: 1rem 0;
		border-right: 0;
		border-bottom: 1px solid var(--stone-200);
	}

	.home-facts__grid > div:last-child {
		border-bottom: 0;
	}

	.info-grid,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.info-card {
		min-height: 16rem;
	}

	.content-card {
		padding: 1.2rem;
	}

	.entry-content .wp-block-pdfp-pdf-poster,
	.entry-content .pdfp_wrapper {
		min-height: 26rem;
	}

	.entry-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce div.product form.cart {
		align-items: stretch;
		flex-direction: column;
	}

	.footer-legal__inner {
		align-items: flex-start;
		justify-content: center;
		flex-direction: column;
		padding-block: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.utility-bar,
	.site-navigation,
	.menu-toggle,
	.site-footer,
	.home-hero__media,
	.home-hero__shade,
	.site-sidebar {
		display: none !important;
	}

	.site-header {
		position: static;
	}

	body,
	.home-hero,
	.page-hero {
		background: #fff !important;
		color: #000 !important;
	}

	.content-layout {
		display: block;
	}

	a {
		color: #000 !important;
	}
}
