/*
Theme Name: Jagdamba
Theme URI: https://jagdambaengineeringworks.com.np
Author: Jagdamba Engineering Works
Description: Information and product-display theme for Jagdamba Engineering Works — improved cooking stoves, grills and steel fabrication. Custom post types for products, projects and gallery, with all site copy editable in the Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jagdamba
Tags: business, custom-logo, custom-menu, featured-images, translation-ready, two-columns
*/

/* ---------------------------------------------------------------
   1. Tokens
--------------------------------------------------------------- */
:root {
	--jew-primary: #1f2933;
	--jew-accent: #e05a1f;
	--jew-flame: #f2a93b;
	--jew-accent-soft: rgba(224, 90, 31, 0.12);

	--jew-ink: #1b2229;
	--jew-body: #4a5561;
	--jew-muted: #78838f;
	--jew-line: #e2e6ea;
	--jew-surface: #ffffff;
	--jew-tint: #f6f7f9;
	--jew-dark-tint: #2c3a46;
	--jew-snow: #f4f7fa;
	--jew-sky: #eef4f8;
	--jew-cream: #fff8f1;

	--jew-radius: 10px;
	--jew-radius-lg: 16px;
	--jew-wrap: 1180px;
	--jew-gap: clamp(1.25rem, 3vw, 2rem);
	--jew-section: clamp(3.5rem, 7vw, 6rem);

	--jew-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans",
		"Noto Sans Devanagari", "Mangal", "Kalimati", Helvetica, Arial, sans-serif;
	--jew-display: "Helvetica Neue", var(--jew-sans);

	--jew-shadow: 0 1px 2px rgba(27, 34, 41, 0.04), 0 8px 24px rgba(27, 34, 41, 0.06);
}

/* ---------------------------------------------------------------
   2. Reset / base
--------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--jew-sans);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--jew-body);
	background: var(--jew-surface);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
iframe,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: var(--jew-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--jew-ink);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-family: var(--jew-display);
	color: var(--jew-ink);
	line-height: 1.2;
	letter-spacing: -0.015em;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.4em 0 0.4em 1.2em;
	border-left: 3px solid var(--jew-accent);
	color: var(--jew-ink);
	font-size: 1.05rem;
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--jew-tint);
	border-radius: var(--jew-radius);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5em;
}

th, td {
	padding: 0.65rem 0.8rem;
	border-bottom: 1px solid var(--jew-line);
	text-align: left;
	vertical-align: top;
}

th { color: var(--jew-ink); font-weight: 600; }

:focus-visible {
	outline: 3px solid var(--jew-accent);
	outline-offset: 2px;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 0.7rem 1.2rem;
	background: var(--jew-ink);
	color: #fff;
	border-radius: 0 0 var(--jew-radius) 0;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

/* ---------------------------------------------------------------
   3. Layout primitives
--------------------------------------------------------------- */
.jew-wrap {
	width: 100%;
	max-width: var(--jew-wrap);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.jew-section--tint { background: var(--jew-tint); }

.jew-section--sky { background: var(--jew-sky); }

.jew-grid { display: grid; gap: var(--jew-gap); }

.jew-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.jew-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.jew-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.jew-sec-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.jew-sec-head--center { text-align: center; max-width: 46rem; margin-inline: auto; }

.jew-eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--jew-accent);
}

.jew-sec-title { margin-bottom: 0.5rem; }

.jew-sec-text {
	margin: 0;
	font-size: 1.05rem;
	color: var(--jew-body);
}

/* ---------------------------------------------------------------
   4. Buttons & pills
--------------------------------------------------------------- */
.jew-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.4rem;
	border: 1px solid transparent;
	border-radius: var(--jew-radius);
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.jew-btn:hover { transform: translateY(-1px); }

.jew-btn--primary {
	background: var(--jew-accent);
	color: #fff;
}

.jew-btn--primary:hover,
.jew-btn--primary:focus {
	background: #c74a15;
	color: #fff;
}

.jew-btn--ghost {
	background: transparent;
	color: var(--jew-ink);
	border-color: var(--jew-line);
}

.jew-btn--ghost:hover,
.jew-btn--ghost:focus {
	border-color: var(--jew-ink);
	color: var(--jew-ink);
}

.jew-btn--light {
	background: #fff;
	color: var(--jew-ink);
	border-color: var(--jew-line);
}

.jew-btn--light:hover,
.jew-btn--light:focus {
	border-color: var(--jew-ink);
	color: var(--jew-ink);
}

.jew-pill {
	display: inline-block;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: var(--jew-accent-soft);
	color: var(--jew-accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jew-pill--steel {
	background: rgba(74, 98, 116, 0.12);
	color: #3c5060;
}

/* ---------------------------------------------------------------
   5. Header
--------------------------------------------------------------- */
.jew-topbar {
	background: var(--jew-snow);
	border-bottom: 1px solid var(--jew-line);
	color: var(--jew-body);
	font-size: 0.85rem;
}

.jew-topbar .jew-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	align-items: center;
	justify-content: space-between;
	padding-block: 0.5rem;
}

.jew-topbar-items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.2rem;
	align-items: center;
}

.jew-topbar a {
	color: var(--jew-body);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.jew-topbar a:hover { color: var(--jew-accent); }

.jew-topbar .jew-icon { opacity: 0.7; }

.jew-social {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.jew-social a {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--jew-line);
}

.jew-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--jew-line);
}

.jew-header .jew-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.85rem;
}

.jew-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--jew-ink);
	min-width: 0;
}

.jew-brand img { max-height: 56px; width: auto; }

.jew-brand-mark {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: var(--jew-primary);
	color: var(--jew-flame);
}

.jew-brand-text { min-width: 0; }

.jew-brand-name {
	display: block;
	font-family: var(--jew-display);
	font-weight: 700;
	font-size: 1.08rem;
	line-height: 1.2;
	color: var(--jew-ink);
	letter-spacing: -0.01em;
}

.jew-brand-tag {
	display: block;
	font-size: 0.76rem;
	color: var(--jew-muted);
	line-height: 1.3;
}

.jew-nav-toggle {
	display: none;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 0.7rem;
	background: transparent;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius);
	color: var(--jew-ink);
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

.jew-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.jew-nav a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	color: var(--jew-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
}

.jew-nav a:hover,
.jew-nav a:focus { background: var(--jew-tint); }

.jew-nav .current-menu-item > a,
.jew-nav .current_page_item > a,
.jew-nav .current-menu-parent > a {
	color: var(--jew-accent);
}

.jew-nav li { position: relative; }

.jew-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0.4rem;
	background: #fff;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius);
	box-shadow: var(--jew-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

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

.jew-header-cta { display: flex; align-items: center; gap: 0.6rem; }

@media (max-width: 960px) {
	.jew-nav-toggle { display: inline-flex; }

	.jew-nav {
		position: absolute;
		inset: 100% 0 auto;
		display: none;
		background: #fff;
		border-bottom: 1px solid var(--jew-line);
		box-shadow: var(--jew-shadow);
		padding: 0.6rem clamp(1rem, 4vw, 2rem) 1rem;
	}

	.jew-nav.is-open { display: block; }

	.jew-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

	.jew-nav a { padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--jew-line); border-radius: 0; }

	.jew-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		padding: 0 0 0 1rem;
	}

	.jew-header-cta .jew-btn { display: none; }
}

/* ---------------------------------------------------------------
   6. Hero
--------------------------------------------------------------- */
.jew-hero {
	position: relative;
	background: linear-gradient(180deg, var(--jew-cream) 0%, #fff 55%, var(--jew-sky) 100%);
	color: var(--jew-body);
	overflow: hidden;
}

/* Soft Himalayan ridge along the bottom edge. */
.jew-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: clamp(90px, 14vw, 180px);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath fill='%23e3ecf3' d='M0 180V120l120-50 90 35 140-85 110 70 90-40 160 90 120-60 130 45 150-100 130 80 100-30 100 40v65z'/%3E%3Cpath fill='%23eef4f8' d='M0 180v-30l160-40 140 30 170-55 150 50 180-35 160 45 170-40 150 30 160-20v65z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.jew-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: 1fr;
	align-items: center;
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

@media (min-width: 900px) {
	.jew-hero-inner { grid-template-columns: 1.05fr 0.95fr; }
}

.jew-hero h1 {
	color: var(--jew-ink);
	font-size: clamp(2rem, 4.6vw, 3.15rem);
	margin-bottom: 0.7rem;
	text-wrap: balance;
}

.jew-hero-text {
	font-size: 1.08rem;
	max-width: 34rem;
	color: var(--jew-body);
}

.jew-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.jew-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1.8rem;
	padding: 0.55rem 0.9rem;
	background: #fff;
	border: 1px solid var(--jew-line);
	border-radius: 999px;
	font-size: 0.84rem;
	color: var(--jew-ink);
}

.jew-hero-media {
	position: relative;
	border-radius: var(--jew-radius-lg);
	overflow: hidden;
	background: #fff;
	aspect-ratio: 4 / 3;
	border: 6px solid #fff;
	box-shadow: 0 20px 50px rgba(31, 41, 51, 0.12);
}

.jew-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jew-placeholder {
	display: grid;
	place-items: center;
	gap: 0.4rem;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background: linear-gradient(135deg, rgba(224, 90, 31, 0.12), rgba(31, 41, 51, 0.06));
	color: var(--jew-muted);
	font-style: normal;
}

.jew-placeholder em { font-size: 0.8rem; font-style: normal; }

/* ---------------------------------------------------------------
   7. Highlights / cards
--------------------------------------------------------------- */
.jew-usp {
	background: #fff;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius-lg);
	padding: 1.5rem;
	height: 100%;
}

.jew-usp-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 1rem;
	border-radius: 12px;
	background: var(--jew-accent-soft);
	color: var(--jew-accent);
}

.jew-usp h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.jew-usp p { margin: 0; font-size: 0.95rem; }

.jew-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius-lg);
	overflow: hidden;
	height: 100%;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.jew-card:hover {
	transform: translateY(-3px);
	border-color: #cfd6dd;
	box-shadow: var(--jew-shadow);
}

.jew-card-media {
	aspect-ratio: 4 / 3;
	background: var(--jew-tint);
	overflow: hidden;
}

.jew-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.jew-card:hover .jew-card-media img { transform: scale(1.04); }

.jew-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.25rem;
	flex: 1 1 auto;
}

.jew-card-title { margin: 0; font-size: 1.15rem; }

.jew-card-title a { color: var(--jew-ink); text-decoration: none; }
.jew-card-title a:hover { color: var(--jew-accent); }

.jew-card-excerpt { margin: 0; font-size: 0.94rem; }

.jew-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: var(--jew-muted);
}

.jew-card-meta strong { color: var(--jew-ink); font-weight: 600; }

.jew-card-foot {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.jew-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	font-size: 0.92rem;
	text-decoration: none;
}

.jew-card-link .jew-icon { transition: transform 0.18s ease; }
.jew-card-link:hover .jew-icon { transform: translateX(3px); }

.jew-price { font-weight: 700; color: var(--jew-ink); }

.jew-sec-actions { margin-top: clamp(2rem, 4vw, 2.75rem); text-align: center; }

/* ---------------------------------------------------------------
   8. About & stats
--------------------------------------------------------------- */
.jew-about {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.jew-about { grid-template-columns: 1fr 1fr; }
}

.jew-about-media {
	border-radius: var(--jew-radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--jew-tint);
}

.jew-about-media img { width: 100%; height: 100%; object-fit: cover; }

.jew-checklist {
	list-style: none;
	margin: 1.4rem 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.jew-checklist li {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
}

.jew-checklist .jew-icon {
	flex: 0 0 auto;
	margin-top: 0.2rem;
	color: var(--jew-accent);
}

.jew-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	background: var(--jew-line);
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius-lg);
	overflow: hidden;
}

.jew-stat {
	background: #fff;
	padding: 1.4rem 1.2rem;
	text-align: center;
}

.jew-stat-value {
	display: block;
	font-family: var(--jew-display);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	color: var(--jew-ink);
	line-height: 1.1;
}

.jew-stat-label {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.85rem;
	color: var(--jew-muted);
}

/* ---------------------------------------------------------------
   9. Projects
--------------------------------------------------------------- */
.jew-project-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius-lg);
	height: 100%;
}

.jew-project-card h3 { font-size: 1.12rem; margin: 0; }
.jew-project-card h3 a { color: var(--jew-ink); text-decoration: none; }
.jew-project-card h3 a:hover { color: var(--jew-accent); }

.jew-project-card p { margin: 0; font-size: 0.94rem; color: var(--jew-body); }

.jew-dl {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.3rem 0.9rem;
	font-size: 0.88rem;
}

.jew-dl dt { color: var(--jew-muted); }
.jew-dl dd { margin: 0; color: var(--jew-ink); }

.jew-note {
	margin: 2rem 0 0;
	font-size: 0.9rem;
	color: var(--jew-muted);
	text-align: center;
}

/* ---------------------------------------------------------------
   10. Gallery + lightbox
--------------------------------------------------------------- */
.jew-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-bottom: 2rem;
}

.jew-filter {
	padding: 0.45rem 0.95rem;
	border: 1px solid var(--jew-line);
	border-radius: 999px;
	background: #fff;
	color: var(--jew-body);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.jew-filter:hover { border-color: var(--jew-ink); color: var(--jew-ink); }

.jew-filter.is-active {
	background: var(--jew-ink);
	border-color: var(--jew-ink);
	color: #fff;
}

.jew-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 0.9rem;
}

.jew-shot {
	position: relative;
	display: block;
	padding: 0;
	border: 0;
	background: var(--jew-tint);
	border-radius: var(--jew-radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	cursor: zoom-in;
}

.jew-shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.jew-shot:hover img { transform: scale(1.05); }

.jew-shot-cap {
	position: absolute;
	inset: auto 0 0;
	padding: 1.6rem 0.8rem 0.6rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	color: #fff;
	font-size: 0.82rem;
	text-align: left;
	line-height: 1.35;
}

.jew-hidden { display: none !important; }

.jew-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	place-items: center;
	padding: clamp(1rem, 4vw, 3rem);
	background: rgba(15, 20, 25, 0.94);
}

.jew-lightbox.is-open { display: grid; }

.jew-lightbox figure {
	margin: 0;
	max-width: min(1100px, 100%);
	max-height: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.jew-lightbox img {
	max-height: 78vh;
	width: auto;
	max-width: 100%;
	margin-inline: auto;
	border-radius: var(--jew-radius);
	object-fit: contain;
}

.jew-lightbox figcaption {
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	font-size: 0.92rem;
}

.jew-lb-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
}

.jew-lb-btn:hover { background: rgba(255, 255, 255, 0.2); }

.jew-lb-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.jew-lb-next { right: clamp(0.5rem, 2vw, 1.5rem); }

.jew-lb-close {
	position: absolute;
	top: clamp(0.5rem, 2vw, 1.5rem);
	right: clamp(0.5rem, 2vw, 1.5rem);
	transform: none;
}

/* ---------------------------------------------------------------
   11. CTA band
--------------------------------------------------------------- */
.jew-cta {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding: clamp(2rem, 5vw, 3rem);
	border-radius: var(--jew-radius-lg);
	background: linear-gradient(120deg, var(--jew-cream), var(--jew-accent-soft));
	border: 1px solid var(--jew-accent-soft);
	color: var(--jew-body);
}

@media (min-width: 820px) {
	.jew-cta { grid-template-columns: 1fr auto; }
}

.jew-cta h2 { margin-bottom: 0.4rem; }
.jew-cta p { margin: 0; max-width: 44rem; }

.jew-cta .jew-btn {
	background: var(--jew-accent);
	color: #fff;
}

.jew-cta .jew-btn:hover { background: var(--jew-ink); color: #fff; }

/* ---------------------------------------------------------------
   12. Page / single
--------------------------------------------------------------- */
.jew-page-head {
	padding-block: clamp(2.5rem, 5vw, 3.75rem);
	background: var(--jew-tint);
	border-bottom: 1px solid var(--jew-line);
}

.jew-page-head h1 { margin-bottom: 0.35rem; }
.jew-page-head p { margin: 0; color: var(--jew-body); }

.jew-crumbs {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	color: var(--jew-muted);
}

.jew-crumbs a { color: var(--jew-muted); text-decoration: none; }
.jew-crumbs a:hover { color: var(--jew-accent); }

.jew-main { padding-block: var(--jew-section); }

.jew-layout { display: grid; gap: clamp(2rem, 5vw, 3rem); }

@media (min-width: 900px) {
	.jew-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
}

.jew-prose { max-width: 44rem; }
.jew-prose > *:last-child { margin-bottom: 0; }

.jew-prose img,
.entry-content img { border-radius: var(--jew-radius); }

.jew-single-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }

@media (min-width: 900px) {
	.jew-single-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

.jew-figure {
	border-radius: var(--jew-radius-lg);
	overflow: hidden;
	background: var(--jew-tint);
	aspect-ratio: 4 / 3;
}

.jew-figure img { width: 100%; height: 100%; object-fit: cover; }

.jew-thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 0.5rem;
	margin-top: 0.6rem;
}

.jew-thumbs .jew-shot { aspect-ratio: 1 / 1; border-radius: 8px; }

.jew-spec-table { margin-top: 1.5rem; }
.jew-spec-table th { width: 42%; color: var(--jew-muted); font-weight: 500; }
.jew-spec-table td { color: var(--jew-ink); font-weight: 600; }

.jew-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.jew-tax-links { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ---------------------------------------------------------------
   13. Forms
--------------------------------------------------------------- */
.jew-form { max-width: 40rem; }

.jew-form-grid { display: grid; gap: 0 1rem; }

@media (min-width: 600px) {
	.jew-form-grid { grid-template-columns: 1fr 1fr; }
}

.jew-form-row { display: grid; gap: 0.35rem; margin-bottom: 1rem; }

.jew-form-row label {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--jew-ink);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 0.7rem 0.85rem;
	font: inherit;
	color: var(--jew-ink);
	background: #fff;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--jew-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--jew-accent-soft);
}

textarea { resize: vertical; min-height: 8rem; }

.jew-hp { position: absolute; left: -9999px; }

.jew-notice {
	padding: 0.85rem 1.1rem;
	border-radius: var(--jew-radius);
	border-left: 3px solid;
	font-size: 0.95rem;
	margin-bottom: 1.5rem;
}

.jew-notice--ok { background: #edf7f0; border-color: #2f9e5f; color: #1d6b40; }
.jew-notice--bad { background: #fdf0ed; border-color: #d9452a; color: #97301c; }

.jew-contact-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }

@media (min-width: 900px) {
	.jew-contact-grid { grid-template-columns: 1fr 1fr; }
}

.jew-contact-list {
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.jew-contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.jew-contact-list .jew-icon { flex: 0 0 auto; margin-top: 0.15rem; color: var(--jew-accent); }
.jew-contact-list strong { display: block; color: var(--jew-ink); font-size: 0.9rem; }
.jew-contact-list a { text-decoration: none; }

.jew-map {
	border-radius: var(--jew-radius-lg);
	overflow: hidden;
	border: 1px solid var(--jew-line);
	line-height: 0;
}

.jew-map iframe { width: 100%; min-height: 320px; border: 0; }

/* ---------------------------------------------------------------
   14. Sidebar / widgets / pagination
--------------------------------------------------------------- */
.widget {
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--jew-line);
}

.widget:last-child { border-bottom: 0; margin-bottom: 0; }
.widget-title { font-size: 1rem; margin-bottom: 0.75rem; }
.widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.widget a { text-decoration: none; }

.jew-pagination {
	margin-top: clamp(2rem, 4vw, 3rem);
	display: flex;
	justify-content: center;
}

.jew-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.6rem;
	margin: 0 0.15rem;
	border: 1px solid var(--jew-line);
	border-radius: var(--jew-radius);
	text-decoration: none;
	color: var(--jew-ink);
	font-weight: 600;
}

.jew-pagination .page-numbers.current,
.jew-pagination .page-numbers:hover {
	background: var(--jew-ink);
	border-color: var(--jew-ink);
	color: #fff;
}

.jew-empty {
	padding: clamp(2rem, 5vw, 3rem);
	border: 1px dashed var(--jew-line);
	border-radius: var(--jew-radius-lg);
	text-align: center;
	color: var(--jew-muted);
}

/* ---------------------------------------------------------------
   15. Footer
--------------------------------------------------------------- */
.jew-footer {
	background: var(--jew-snow);
	border-top: 1px solid var(--jew-line);
	color: var(--jew-body);
	padding-block: clamp(2.5rem, 5vw, 4rem) 0;
	font-size: 0.94rem;
}

.jew-footer h2,
.jew-footer h3 { color: var(--jew-ink); font-size: 1rem; margin-bottom: 0.9rem; }

.jew-footer a { color: var(--jew-body); text-decoration: none; }
.jew-footer a:hover { color: var(--jew-accent); }

.jew-footer-grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	padding-bottom: 2.5rem;
}

.jew-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.jew-footer-bar {
	border-top: 1px solid var(--jew-line);
	padding-block: 1.2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	font-size: 0.86rem;
	color: var(--jew-muted);
}

.jew-footer-bar ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
}

/* ---------------------------------------------------------------
   16. WordPress core classes
--------------------------------------------------------------- */
.alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }

.wp-caption { max-width: 100%; }

.wp-caption-text,
.wp-block-image figcaption {
	font-size: 0.85rem;
	color: var(--jew-muted);
	text-align: center;
	margin-top: 0.5rem;
}

.sticky .jew-card-title::after {
	content: " ★";
	color: var(--jew-flame);
}

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.gallery-item { margin: 0; }
.gallery-item img { border-radius: var(--jew-radius); }

@media print {
	.jew-topbar, .jew-header, .jew-footer, .jew-cta, .jew-lightbox { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
