/* =========================================================
   JV Welding - Industrial Precision design system
   Self-hosted fonts
   ========================================================= */

@font-face {
	font-family: 'Montserrat';
	src: url('fonts/montserrat-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Montserrat';
	src: url('fonts/montserrat-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('fonts/inter-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('fonts/inter-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('fonts/inter-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'JetBrains Mono';
	src: url('fonts/jetbrains-mono-500.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--bg: #121414;
	--surface: #1b1c1c;
	--surface-container: #1f2020;
	--surface-container-high: #292a2a;
	--surface-container-highest: #343535;
	--surface-lowest: #0d0e0f;
	--ink: #e3e2e2;
	--ink-variant: #c4c7c7;
	--outline: #8e9192;
	--outline-variant: #444748;
	--accent: #d4c790;
	--accent-strong: #f1e3aa;
	--on-accent: #383008;
	--spark-orange: #ff8c00;
	--ghost-border: rgba(255, 255, 255, 0.08);

	--font-heading: 'Montserrat', Georgia, serif;
	--font-body: 'Inter', -apple-system, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;

	--max-width: 1440px;
	--margin-desktop: 64px;
	--margin-mobile: 20px;
	--gutter: 24px;
	--radius-sm: 0.25rem;
	--radius-lg: 0.5rem;
}

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

:where(html) {
	scroll-behavior: smooth;
}

:where(body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol) {
	margin: 0;
	padding: 0;
}

:where(ul, ol) {
	list-style: none;
}

:where(img, picture, video) {
	display: block;
	max-width: 100%;
	height: auto;
}

:where(a) {
	color: inherit;
	text-decoration: none;
}

:where(button, input, textarea, select) {
	font: inherit;
	color: inherit;
}

html {
	background: var(--bg);
}

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
	max-width: var(--max-width);
	margin-inline: auto;
	padding-inline: var(--margin-mobile);
}

@media (min-width: 900px) {
	.container {
		padding-inline: var(--margin-desktop);
	}
}

.section {
	padding-block: 80px;
}

@media (min-width: 900px) {
	.section {
		padding-block: 120px;
	}
}

.section-tight {
	padding-block: 60px;
}

/* Drafting-paper grid-pattern background - signature motif */
.grid-bg {
	position: relative;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 32px 32px;
}

.eyebrow {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	border-bottom: 1px solid rgba(212, 199, 144, 0.3);
	padding-bottom: 8px;
}

.eyebrow--plain {
	border-bottom: none;
	padding-bottom: 0;
}

.section-head {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
	margin-bottom: 64px;
}

.section-head h2 {
	font-size: 32px;
	margin-bottom: 16px;
	text-transform: uppercase;
}

.section-head p {
	color: var(--ink-variant);
	font-size: 16px;
}

@media (min-width: 900px) {
	.section-head h2 {
		font-size: 40px;
	}
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.1s ease;
	white-space: nowrap;
}

.btn:active {
	transform: scale(0.97);
}

.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
}

.btn-primary:hover {
	background: var(--accent-strong);
}

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

.btn-ghost:hover {
	background: var(--surface-container);
	border-color: var(--accent);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(18, 20, 20, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--outline-variant);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 16px;
}

.site-logo {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink);
}

.site-logo img {
	height: 44px;
	width: auto;
}

.nav-list {
	display: none;
	align-items: center;
	gap: 32px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.nav-list a {
	color: var(--ink-variant);
	padding: 4px 2px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover {
	color: var(--ink);
}

.nav-list a.is-active {
	color: var(--accent);
	border-color: var(--accent);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-actions .btn {
	display: none;
}

.nav-toggle {
	display: inline-flex;
	background: none;
	border: none;
	color: var(--ink);
	padding: 8px;
	cursor: pointer;
}

.nav-toggle svg {
	width: 24px;
	height: 24px;
}

@media (min-width: 900px) {
	.nav-list {
		display: flex;
	}
	.header-actions .btn {
		display: inline-flex;
	}
	.nav-toggle {
		display: none;
	}
}

.mobile-nav {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 16px var(--margin-mobile) 24px;
	border-top: 1px solid var(--outline-variant);
	background: var(--surface-lowest);
}

.mobile-nav.is-open {
	display: flex;
}

.mobile-nav a {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-variant);
	padding: 12px 4px;
	border-bottom: 1px solid var(--outline-variant);
}

.mobile-nav a.is-active {
	color: var(--accent);
}

.mobile-nav .btn {
	margin-top: 12px;
}

@media (min-width: 900px) {
	.mobile-nav {
		display: none !important;
	}
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
	position: relative;
	min-height: 100svh;
	max-height: 820px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

@media (min-width: 900px) {
	.hero {
		min-height: 88vh;
		max-height: none;
	}
}

.hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-media video,
.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero-logo {
	width: 148px;
	height: auto;
	margin-bottom: 0;
	filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

@media (min-width: 480px) {
	.hero-logo {
		width: 172px;
	}
}

@media (min-width: 900px) {
	.hero-logo {
		width: 200px;
	}
}

.hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 20, 20, 0.2) 0%, rgba(18, 20, 20, 0.35) 45%, rgba(18, 20, 20, 0.82) 100%);
}

.hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 820px;
	margin-inline: auto;
	padding-inline: var(--margin-mobile);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hero-inner h1 {
	font-size: 34px;
	text-transform: uppercase;
	line-height: 1.15;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.hero-title-line {
	display: block;
	text-align: center;
}

.hero-inner h1 .divider {
	color: var(--accent);
	opacity: 0.6;
	margin-inline: 4px;
}

.hero-inner p {
	font-size: 17px;
	color: var(--ink-variant);
	max-width: 560px;
}

.hero-actions {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: 360px;
}

.hero-actions .btn-ghost {
	display: none;
}

@media (min-width: 640px) {
	.hero-actions {
		flex-direction: row;
		max-width: none;
		width: auto;
	}
	.hero-actions .btn-ghost {
		display: inline-flex;
	}
}

@media (min-width: 900px) {
	.hero-inner h1 {
		font-size: 60px;
	}
	.hero-inner p {
		font-size: 18px;
	}
}

/* Page (non-home) header banner, smaller than the home hero */
.page-hero {
	position: relative;
	padding-block: 140px 80px;
	overflow: hidden;
	border-bottom: 1px solid var(--outline-variant);
}

.page-hero-inner {
	position: relative;
	z-index: 2;
	max-width: 720px;
}

.page-hero h1 {
	font-size: 32px;
	text-transform: uppercase;
	margin-top: 16px;
}

.page-hero p {
	margin-top: 16px;
	color: var(--ink-variant);
	font-size: 17px;
	max-width: 560px;
}

@media (min-width: 900px) {
	.page-hero h1 {
		font-size: 48px;
	}
}

/* =========================================================
   Services grid
   ========================================================= */
.services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 640px) {
	.services-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.services-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.service-card {
	background: var(--surface-container);
	border: 1px solid var(--ghost-border);
	border-radius: var(--radius-lg);
	padding: 32px;
	transition: border-color 0.3s ease, background 0.3s ease;
	position: relative;
	overflow: hidden;
}

.service-card:hover {
	border-color: var(--accent);
}

.service-card:hover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.service-card .icon {
	width: 40px;
	height: 40px;
	color: var(--accent);
	margin-bottom: 24px;
}

.service-card h3 {
	font-size: 20px;
	margin-bottom: 12px;
	text-transform: none;
	transition: color 0.2s ease;
}

.service-card:hover h3 {
	color: var(--accent);
}

.service-card p {
	color: var(--ink-variant);
	font-size: 15px;
	line-height: 1.6;
}

.service-card .chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 20px;
}

.chip {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-variant);
	border: 1px solid var(--outline-variant);
	padding: 6px 10px;
	border-radius: 2px;
}

/* =========================================================
   Bento / featured projects grid
   ========================================================= */
.section-head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	border-bottom: 1px solid var(--outline-variant);
	padding-bottom: 16px;
	margin-bottom: 48px;
	gap: 16px;
	flex-wrap: wrap;
}

.section-head-row h2 {
	font-size: 28px;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.section-head-row h2 {
		font-size: 36px;
	}
}

.link-arrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.link-arrow:hover {
	color: var(--accent-strong);
}

.bento-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 900px) {
	.bento-grid {
		grid-template-columns: repeat(4, 1fr);
		grid-template-rows: repeat(2, 340px);
	}
	.bento-item--lead {
		grid-column: span 2;
		grid-row: span 2;
	}
	.bento-item--wide {
		grid-column: span 2;
	}
}

.bento-item {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ghost-border);
	background: var(--surface-container);
	min-height: 280px;
}

.bento-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: filter 0.7s ease, transform 0.7s ease;
}

.bento-caption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 24px;
	background: linear-gradient(0deg, rgba(18, 20, 20, 0.92) 0%, transparent 100%);
	transform: translateY(8px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Desktop / mouse: reveal color on hover. */
@media (hover: hover) and (pointer: fine) {
	.bento-item:hover img {
		filter: grayscale(0%);
		transform: scale(1.03);
	}

	.bento-item:hover .bento-caption {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Touch devices: reveal color as the item scrolls into view (see main.js). */
.bento-item.in-view img {
	filter: grayscale(0%);
	transform: scale(1.03);
}

.bento-item.in-view .bento-caption {
	transform: translateY(0);
	opacity: 1;
}

.bento-caption .chip {
	background: rgba(18, 20, 20, 0.8);
	margin-bottom: 8px;
	display: inline-block;
}

.bento-caption h4 {
	font-size: 18px;
}

/* Simple photo grid (Gallery page) */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (min-width: 700px) {
	.photo-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.photo-grid .bento-item {
	min-height: 260px;
}

.gallery-category {
	margin-bottom: 80px;
}

.gallery-category:last-child {
	margin-bottom: 0;
}

.gallery-category-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 32px;
	border-bottom: 1px solid var(--outline-variant);
	padding-bottom: 12px;
}

.gallery-category-head h2 {
	font-size: 24px;
	text-transform: uppercase;
}

.gallery-category-head span {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--ink-variant);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* =========================================================
   Split / feature section (welding repairs)
   ========================================================= */
.split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: center;
}

@media (min-width: 1000px) {
	.split {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}
}

.split-media {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ghost-border);
	min-height: 320px;
}

@media (min-width: 1000px) {
	.split-media {
		min-height: 460px;
	}
}

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

.split-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.split-content h2 {
	font-size: 30px;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.split-content h2 {
		font-size: 38px;
	}
}

.split-content p {
	color: var(--ink-variant);
	font-size: 17px;
	line-height: 1.7;
}

.check-list {
	display: flex;
	flex-direction: column;
	margin-top: 8px;
}

.check-list li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding-block: 16px;
	border-bottom: 1px solid var(--outline-variant);
	color: var(--ink-variant);
}

.check-list li:last-child {
	border-bottom: none;
}

.check-list svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--accent);
	margin-top: 2px;
}

/* =========================================================
   About page body content
   ========================================================= */
.prose {
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	color: var(--ink-variant);
	font-size: 17px;
	line-height: 1.8;
}

.prose strong {
	color: var(--ink);
}

.about-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: start;
}

@media (min-width: 1000px) {
	.about-layout {
		grid-template-columns: 1fr 1fr;
		gap: 64px;
	}
}

.about-media {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--ghost-border);
	min-height: 420px;
}

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

.about-badge {
	position: absolute;
	bottom: 24px;
	left: 24px;
	background: rgba(18, 20, 20, 0.85);
	border: 1px solid var(--outline-variant);
	padding: 12px 16px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
}

/* =========================================================
   Contact / Estimate
   ========================================================= */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 64px;
}

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

.contact-copy h2 {
	font-size: 30px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

@media (min-width: 900px) {
	.contact-copy h2 {
		font-size: 38px;
	}
}

.contact-copy p {
	color: var(--ink-variant);
	font-size: 17px;
	max-width: 460px;
	margin-bottom: 32px;
}

.contact-cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.contact-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--surface-container);
	border: 1px solid var(--ghost-border);
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	transition: border-color 0.2s ease;
}

.contact-card:hover {
	border-color: var(--accent);
}

.contact-card svg {
	width: 20px;
	height: 20px;
	color: var(--accent);
	flex-shrink: 0;
}

.social-row {
	display: flex;
	gap: 16px;
	margin-top: 32px;
}

.social-row a {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--outline-variant);
	border-radius: var(--radius-sm);
	color: var(--ink-variant);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.social-row a:hover {
	color: var(--accent);
	border-color: var(--accent);
}

.social-row svg {
	width: 18px;
	height: 18px;
}

/* Estimate form */
.estimate-form-wrap {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--outline-variant);
	border-radius: var(--radius-lg);
	padding: 32px;
}

.estimate-form-wrap h3 {
	font-size: 22px;
	text-transform: uppercase;
	border-bottom: 1px solid var(--outline-variant);
	padding-bottom: 16px;
	margin-bottom: 24px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 560px) {
	.form-row.two-col {
		grid-template-columns: 1fr 1fr;
	}
}

.field {
	display: flex;
	flex-direction: column;
	margin-bottom: 24px;
}

.field label {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-variant);
	margin-bottom: 8px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
	background: var(--surface-container);
	border: none;
	border-bottom: 1px solid var(--outline-variant);
	color: var(--ink);
	padding: 12px 8px;
	transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
}

.field textarea {
	resize: vertical;
	min-height: 96px;
}

.checkbox-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	font-size: 14px;
	color: var(--ink-variant);
}

.checkbox-grid label {
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: none;
	font-family: var(--font-body);
	letter-spacing: normal;
}

.checkbox-grid input[type="checkbox"] {
	accent-color: var(--accent);
	width: 16px;
	height: 16px;
}

.form-notice {
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	margin-bottom: 24px;
	border: 1px solid var(--outline-variant);
}

.form-notice.success {
	border-color: var(--accent);
	color: var(--accent);
}

.form-notice.error {
	border-color: #ffb4ab;
	color: #ffb4ab;
}

.estimate-form-wrap .btn {
	width: 100%;
	margin-top: 8px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
	background: var(--surface-lowest);
	border-top: 1px solid var(--outline-variant);
	padding-top: 24px;
}

.footer-watermark {
	font-family: var(--font-heading);
	font-size: 48px;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	color: var(--ink);
	opacity: 0.08;
}

@media (min-width: 900px) {
	.footer-watermark {
		font-size: 72px;
	}
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	padding-block: 24px;
	border-top: 1px solid var(--outline-variant);
	margin-top: 24px;
	text-align: center;
}

@media (min-width: 900px) {
	.footer-bottom {
		flex-direction: row;
		text-align: left;
	}
}

.footer-legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

@media (min-width: 900px) {
	.footer-legal {
		align-items: flex-end;
	}
}

.footer-links {
	display: flex;
	gap: 16px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-variant);
}

.footer-links a:hover {
	color: var(--accent);
}

.footer-copy {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--ink-variant);
	text-transform: uppercase;
}

/* =========================================================
   Motion accessibility
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================
   Category teaser cards (Services / Gallery hub pages)
   ========================================================= */
.category-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 640px) {
	.category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.category-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--ghost-border);
	background: var(--surface-container);
	overflow: hidden;
	transition: border-color 0.3s ease;
}

.category-card:hover {
	border-color: var(--accent);
}

.category-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	filter: grayscale(100%);
	transition: filter 0.5s ease, transform 0.5s ease;
}

.category-card:hover img {
	filter: grayscale(0%);
	transform: scale(1.03);
}

.category-card-body {
	padding: 24px;
}

.category-card-body h3 {
	font-size: 20px;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.category-card-body p {
	color: var(--ink-variant);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 16px;
}

/* =========================================================
   File upload (Request Estimate form: project photo)
   ========================================================= */
.file-drop {
	position: relative;
	border: 1px dashed var(--outline-variant);
	background: var(--surface-container);
	padding: 24px 16px;
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover,
.file-drop.is-dragover {
	border-color: var(--accent);
	background: var(--surface-container-high, var(--surface-container));
}

.file-drop .file-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.file-drop-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.file-drop-icon {
	width: 28px;
	height: 28px;
	color: var(--accent);
	margin-bottom: 4px;
}

.file-drop-text {
	font-size: 14px;
	color: var(--ink);
}

.file-drop-hint {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-variant);
}

.file-preview-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}

.file-preview-item {
	position: relative;
	width: 80px;
}

.file-preview-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 1px solid var(--outline-variant);
	display: block;
}

.file-preview-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--outline-variant);
	color: var(--ink-variant);
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.file-preview-remove:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.file-drop.is-full .file-drop-inner {
	opacity: 0.4;
	pointer-events: none;
}

/* Admin dashboard: submission photo thumbnail */
.jvw-submission-photo-thumb {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: 1px solid #ddd;
	display: block;
}

/* =========================================================
   Estimate form: in-place success panel (AJAX submit, no page reload)
   ========================================================= */
.form-success-panel {
	text-align: center;
	padding: 28px 8px;
}

.form-success-panel .icon {
	width: 48px;
	height: 48px;
	color: var(--accent);
	margin-bottom: 16px;
}

.form-success-panel h3 {
	font-size: 22px;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.form-success-panel p {
	color: var(--ink-variant);
	font-size: 15px;
	line-height: 1.6;
	max-width: 380px;
	margin-inline: auto;
}

/* =========================================================
   Service area map embed (Contact page)
   ========================================================= */
.map-embed {
	border: 1px solid var(--ghost-border);
	overflow: hidden;
	filter: grayscale(65%) contrast(1.05) brightness(0.92);
	transition: filter 0.4s ease;
}

.map-embed:hover {
	filter: grayscale(15%) contrast(1) brightness(1);
}

.map-embed iframe {
	width: 100%;
	height: 380px;
	display: block;
	border: 0;
}

@media (min-width: 900px) {
	.map-embed iframe {
		height: 440px;
	}
}

/* =========================================================
   Testimonials (real Google reviews) - horizontal carousel
   ========================================================= */
.testimonial-carousel-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.testimonial-carousel {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 4px 4px 12px;
	scrollbar-width: none;
	flex: 1;
}

.testimonial-carousel::-webkit-scrollbar {
	display: none;
}

.carousel-arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--outline-variant);
	background: var(--surface-container);
	color: var(--ink);
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover {
	border-color: var(--accent);
	color: var(--accent);
}

@media (max-width: 699px) {
	.carousel-arrow {
		display: none;
	}
}

.testimonial-card {
	flex: 0 0 auto;
	width: 85%;
	max-width: 340px;
	scroll-snap-align: start;
	background: #fff;
	color: #202124;
	border: 1px solid #dadce0;
	border-radius: var(--radius-md, 8px);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.testimonial-card:hover {
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
	transform: translateY(-2px);
}

@media (min-width: 700px) {
	.testimonial-card {
		width: 320px;
	}
}

.testimonial-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.testimonial-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--accent);
	color: #121414;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 16px;
	flex-shrink: 0;
}

.testimonial-headtext {
	min-width: 0;
}

.testimonial-headtext .name {
	color: #202124;
	font-size: 14px;
	font-weight: 500;
	font-family: Arial, Helvetica, sans-serif;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.testimonial-headtext .meta {
	color: #70757a;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
}

.testimonial-rating-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.testimonial-stars {
	color: #fbbc04;
	display: flex;
	gap: 1px;
}

.testimonial-stars svg {
	width: 14px;
	height: 14px;
}

.testimonial-rating-row .time {
	color: #70757a;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
}

.testimonial-quote {
	color: #3c4043;
	font-size: 13.5px;
	line-height: 1.6;
	font-family: Arial, Helvetica, sans-serif;
	flex: 1;
}

.testimonial-footer {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px solid #f1f3f4;
}

.testimonial-footer svg {
	width: 16px;
	height: 16px;
}

.testimonial-footer span {
	color: #70757a;
	font-size: 11.5px;
	font-family: Arial, Helvetica, sans-serif;
}

/* =========================================================
   Owner Portal (mobile lead management)
   ========================================================= */
.portal-shell {
	min-height: 70vh;
	padding-block: 140px 80px;
}

.portal-login {
	max-width: 380px;
	margin-inline: auto;
	padding-inline: var(--margin-mobile);
	text-align: center;
}

.portal-login h1 {
	font-size: 28px;
	text-transform: uppercase;
	margin: 16px 0 8px;
}

.portal-login p {
	color: var(--ink-variant);
	margin-bottom: 24px;
}

.portal-login form p {
	text-align: left;
	margin-bottom: 16px;
}

.portal-login label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-variant);
	margin-bottom: 8px;
}

.portal-login input[type="text"],
.portal-login input[type="password"] {
	width: 100%;
	background: var(--surface-container);
	border: none;
	border-bottom: 1px solid var(--outline-variant);
	color: var(--ink);
	padding: 12px 8px;
}

.portal-login .login-submit {
	margin-top: 8px;
}

.portal-login button {
	width: 100%;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 16px 32px;
	border-radius: var(--radius-sm);
	border: none;
	background: var(--accent);
	color: var(--on-accent);
	cursor: pointer;
}

.portal-app {
	max-width: 640px;
	margin-inline: auto;
	padding-inline: var(--margin-mobile);
}

.portal-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.portal-logout {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-variant);
	border-bottom: 1px solid var(--outline-variant);
}

.portal-app h1 {
	font-size: 28px;
	text-transform: uppercase;
	margin-bottom: 24px;
}

.portal-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
}

.portal-filter {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-variant);
	background: var(--surface-container);
	border: 1px solid var(--outline-variant);
	padding: 8px 16px;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.portal-filter.is-active {
	border-color: var(--accent);
	color: var(--accent);
}

.portal-loading,
.portal-empty {
	color: var(--ink-variant);
	text-align: center;
	padding: 40px 0;
}

.portal-card {
	background: var(--surface-container);
	border: 1px solid var(--ghost-border);
	border-radius: var(--radius-lg);
	padding: 20px;
	margin-bottom: 16px;
}

.portal-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.portal-card-head h3 {
	font-size: 17px;
	text-transform: none;
}

.portal-date {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--ink-variant);
}

.portal-status-toggle {
	flex-shrink: 0;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 2px;
	border: none;
	cursor: pointer;
}

.portal-status-toggle.status-new {
	background: var(--accent);
	color: var(--on-accent);
}

.portal-status-toggle.status-contacted {
	background: var(--surface-container-high);
	color: var(--ink-variant);
}

.portal-contact-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--accent);
	margin-bottom: 10px;
}

.portal-services {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink-variant);
	margin-bottom: 8px;
}

.portal-message {
	color: var(--ink-variant);
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
}

.portal-photos {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.portal-photos img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border: 1px solid var(--outline-variant);
}

.portal-manage summary {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-variant);
	cursor: pointer;
	padding-top: 8px;
	border-top: 1px solid var(--outline-variant);
}

.portal-manage-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 12px;
}

.portal-manage label {
	display: block;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-variant);
	margin-bottom: 6px;
	margin-top: 12px;
}

.portal-manage input,
.portal-manage textarea {
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--outline-variant);
	color: var(--ink);
	padding: 8px;
	font-size: 13px;
}

.portal-save {
	margin-top: 14px;
	width: 100%;
}

/* =========================================================
   Brand Refinement & Mobile Polish (restored from prior build)
   ========================================================= */
/* =========================================================
   JV Welding - Mobile Layout Redesign & Sophisticated Brand Refinement
   ========================================================= */

/* --- Brand Typography Refinements --- */
:root {
	--font-heading: 'Cormorant Garamond', Georgia, serif;
}

/* Luxury brand heading styles */
h1, h2, h3, h4 {
	font-family: var(--font-heading) !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em !important;
}

h1 {
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
}

h2 {
	font-weight: 400 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.08em !important;
	font-size: 36px !important;
}

@media (max-width: 767px) {
	h2 {
		font-size: 28px !important;
	}
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.22em;
	color: var(--accent);
	border-bottom-color: rgba(214, 199, 144, 0.4);
}

/* --- Sophisticated Custom SVG/CSS Logo in Hero --- */
.jvw-brand-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 28px;
	width: 100%;
	max-width: 360px; /* from 320px */
	margin-inline: auto;
}

.jvw-brand-logo .monogram {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 96px; /* from 84px */
	font-weight: 300;
	letter-spacing: -0.02em;
	line-height: 0.8;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	color: #ffffff;
	margin-bottom: 8px;
}

.jvw-brand-logo .monogram .letter-j {
	font-style: italic;
	transform: translateY(10px) translateX(-2px); /* adjusted from 8px for larger scale */
	color: var(--accent); /* distinct signature gold */
}

.jvw-brand-logo .logo-line {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, #ffffff 25%, #ffffff 75%, transparent 100%);
	margin-bottom: 10px;
}

.jvw-brand-logo .tagline {
	font-family: var(--font-body);
	font-size: 12px; /* from 10.5px */
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 10px;
	line-height: 1;
	text-align: center;
	padding-left: 0.3em; /* offset letter-spacing centring */
}

.jvw-brand-logo .logo-subdivider {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 75%;
	gap: 12px;
}

.jvw-brand-logo .logo-subdivider .line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 100%);
}

.jvw-brand-logo .logo-subdivider .line:last-child {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
}

.jvw-brand-logo .logo-subdivider .spark {
	width: 12px;
	height: 12px;
	color: var(--accent);
	flex-shrink: 0;
	filter: drop-shadow(0 0 4px rgba(212, 199, 144, 0.6));
}

/* Adjust hero layout spacing */
.hero-inner {
	gap: 8px;
}

/* --- Sophisticated Text Logo in Header --- */
.site-logo {
	display: flex;
	align-items: center;
}

.header-logo-container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #ffffff;
	text-decoration: none;
	transition: opacity 0.2s ease;
	line-height: 1;
}

.header-logo-container:hover {
	opacity: 0.95;
}

.header-logo-container .logo-top-row {
	display: flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
}

.header-logo-container .logo-jvw {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 30px; /* from 24px */
	font-weight: 400;
	letter-spacing: 0.05em;
	line-height: 1;
}

.header-logo-container .logo-spark {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent);
}

.header-logo-container .logo-spark svg {
	width: 12px; /* from 10px */
	height: 12px; /* from 10px */
	filter: drop-shadow(0 0 2px rgba(212, 199, 144, 0.5));
}

.header-logo-container .logo-business-name {
	font-family: var(--font-body);
	font-size: 10.5px; /* from 8.5px */
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent);
	margin-top: 2px;
	line-height: 1;
}

/* --- Section Spark Dividers --- */
.section-spark-divider {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-block: 40px;
	color: var(--outline-variant);
}

.section-spark-divider svg {
	width: 16px;
	height: 16px;
	color: rgba(214, 199, 144, 0.3);
}

/* --- Hero Redesign & SVG Wave --- */
.hero-wave {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	line-height: 0;
	z-index: 3;
	pointer-events: none;
}

.hero-wave svg {
	position: relative;
	display: block;
	width: calc(100% + 1.3px);
	height: 40px;
}

@media (min-width: 768px) {
	.hero-wave svg {
		height: 90px;
	}
}

.hero-wave path {
	fill: var(--bg);
}

.hero-inner h1 {
	font-size: 40px;
	text-transform: uppercase;
	font-weight: 500;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
	line-height: 1.1;
}

.hero-tagline {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 12px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-tagline .divider {
	opacity: 0.5;
	margin-inline: 6px;
}

.hero-description {
	font-size: 15px;
	color: var(--ink-variant);
	max-width: 520px;
	line-height: 1.6;
	margin-bottom: 24px;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
	.hero-inner h1 {
		font-size: 68px;
		margin-bottom: 12px;
	}
	.hero-tagline {
		font-size: 16px;
		margin-bottom: 20px;
	}
	.hero-description {
		font-size: 18px;
		margin-bottom: 32px;
	}
}

/* --- Mobile Service Grid Layout (Horizontal Checkmark Style) --- */
@media (max-width: 639px) {
	.services-grid {
		gap: 16px;
	}
	
	.service-card {
		display: grid;
		grid-template-columns: 36px 1fr;
		gap: 4px 16px;
		align-items: start;
		padding: 24px 20px;
	}
	
	.service-card .icon {
		grid-row: span 2;
		width: 28px;
		height: 28px;
		margin-bottom: 0 !important;
		margin-top: 2px;
	}
	
	.service-card h3 {
		grid-column: 2;
		margin-bottom: 0;
		font-size: 20px !important;
		line-height: 1.3;
	}
	
	.service-card p {
		grid-column: 2;
		font-size: 14px;
		margin-bottom: 0;
		line-height: 1.5;
	}
}

/* Premium Card hover glow effect */
.service-card {
	transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
	border-color: var(--accent) !important;
	box-shadow: 0 0 25px rgba(212, 199, 144, 0.12);
	background-color: var(--surface-container-high) !important;
}

/* --- Bento / Featured Projects Styling --- */
.bento-item {
	border-radius: var(--radius-lg) !important;
	overflow: hidden;
	border: 1px solid var(--outline-variant) !important;
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
	border-color: var(--accent) !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 899px) {
	.bento-grid {
		gap: 20px;
	}
	.bento-item {
		min-height: 220px;
	}
}

/* --- Contact Form / Estimate Form Checkboxes Option Cards --- */
@media (max-width: 639px) {
	.checkbox-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.checkbox-grid label {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 14px 16px;
		background: var(--surface-container);
		border: 1px solid var(--outline-variant);
		border-radius: var(--radius-sm);
		cursor: pointer;
		transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.1s ease;
		-webkit-tap-highlight-color: transparent;
	}
	
	.checkbox-grid label:active {
		transform: scale(0.98);
	}
	
	/* When checked, light up the card border and background */
	.checkbox-grid label:has(input:checked) {
		border-color: var(--accent);
		background-color: rgba(214, 199, 144, 0.06);
		color: var(--accent-strong);
	}
}

/* --- Mobile Menu Polishing & Micro-animations --- */
.mobile-nav {
	border-bottom: 3px solid var(--accent);
	transition: max-height 0.3s ease-in-out;
}

.mobile-nav a {
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active {
	color: var(--accent);
	padding-left: 8px; /* micro-interaction slide-in */
}

/* --- Refined Button Borders & Glows --- */
.btn {
	border-width: 1px !important;
	border-radius: 2px !important; /* premium sharp corners */
}

.btn-primary:hover {
	box-shadow: 0 0 15px rgba(212, 199, 144, 0.35);
}

/* --- Footer Brand Watermark --- */
.site-footer .footer-watermark {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 64px !important;
	font-weight: 300 !important;
	letter-spacing: 0.15em !important;
	color: var(--accent) !important;
	opacity: 0.05 !important;
	text-align: center;
	display: block;
	margin-bottom: 12px;
	text-transform: uppercase;
}

@media (min-width: 900px) {
	.site-footer .footer-watermark {
		font-size: 96px !important;
	}
}

/* --- Transformation Tool Visualizer --- */
.visualizer-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	margin-top: 36px;
}

@media (min-width: 900px) {
	.visualizer-container {
		grid-template-columns: 1.25fr 1fr;
		gap: 40px;
		align-items: start;
	}
}

.visualizer-preview {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--outline-variant);
	position: relative;
	background: #0b0c0c;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.visualizer-preview .image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
}

.visualizer-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.02);
	transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.visualizer-img.active {
	opacity: 1;
	transform: scale(1);
}

/* Scanner Overlay */
.scanner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(18, 20, 20, 0.45);
	backdrop-filter: blur(3px);
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.scanner-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.scanner-line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--accent);
	box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
	z-index: 6;
	top: 0;
	animation: none;
}

.scanner-overlay.active .scanner-line {
	animation: scan-animation 2.2s linear infinite;
}

@keyframes scan-animation {
	0% { top: 0%; }
	50% { top: 100%; }
	100% { top: 0%; }
}

.scanner-status {
	background: rgba(18, 20, 20, 0.9);
	border: 1px solid var(--accent);
	border-radius: 4px;
	padding: 20px 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	min-width: 240px;
	z-index: 7;
}

.scanner-status .status-text {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	color: #ffffff;
	text-align: center;
}

.scanner-status .status-percent {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 40px;
	font-weight: 300;
	color: var(--accent);
	line-height: 1;
}

/* Controls Panel */
.visualizer-controls {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.design-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.design-option-card {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--surface-container);
	border: 1px solid var(--outline-variant);
	border-radius: var(--radius-md);
	padding: 16px 20px;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.1s ease;
	width: 100%;
	color: inherit;
	-webkit-tap-highlight-color: transparent;
}

.design-option-card:hover {
	border-color: rgba(214, 199, 144, 0.5);
	background: var(--surface-container-high);
}

.design-option-card:active {
	transform: scale(0.99);
}

.design-option-card.active {
	border-color: var(--accent);
	background: rgba(214, 199, 144, 0.04);
}

.design-option-card .radio-indicator {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid var(--outline);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color 0.25s ease;
}

.design-option-card.active .radio-indicator {
	border-color: var(--accent);
}

.design-option-card .radio-indicator::after {
	content: '';
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--accent);
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.design-option-card.active .radio-indicator::after {
	opacity: 1;
	transform: scale(1);
}

.design-option-card .option-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.design-option-card h4 {
	font-family: var(--font-body) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #ffffff;
	margin: 0;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.design-option-card.active h4 {
	color: var(--accent-strong);
}

.design-option-card p {
	font-size: 13px;
	color: var(--ink-variant);
	margin: 0;
	line-height: 1.4;
}

/* =========================================================
   ACCESSIBILITY & LEGIBILITY: ESTIMATE FORM TYPOGRAPHY OVERRIDES
   ========================================================= */

.estimate-form-wrap h3,
#jvw-estimate-form-wrap h3 {
	font-size: 32px !important;
	font-weight: 600 !important;
	letter-spacing: 0.08em !important;
	color: #ffffff !important;
	margin-bottom: 24px !important;
}

/* Field Labels (FIRST NAME *, EMAIL *, PHONE *, etc.) */
.estimate-form-wrap .field > label,
#jvw-estimate-form-wrap .field > label,
.estimate-form-wrap label,
#jvw-estimate-form-wrap label {
	font-family: var(--font-mono) !important;
	font-size: 14px !important; /* Increased from 11px for high visibility */
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	color: #ffffff !important; /* Crisp white contrast */
	text-transform: uppercase !important;
	margin-bottom: 10px !important;
	display: block !important;
}

/* Input Fields & Textarea Typography */
.estimate-form-wrap input[type="text"],
.estimate-form-wrap input[type="email"],
.estimate-form-wrap input[type="tel"],
.estimate-form-wrap textarea,
#jvw-estimate-form-wrap input[type="text"],
#jvw-estimate-form-wrap input[type="email"],
#jvw-estimate-form-wrap input[type="tel"],
#jvw-estimate-form-wrap textarea {
	font-size: 16px !important; /* 16px ensures easy reading and prevents mobile auto-zoom */
	color: #ffffff !important;
	background-color: #121414 !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	padding: 14px 16px !important;
	border-radius: 4px !important;
}

/* Checkbox Grid Labels (Gate Install, Gate Repair, etc.) */
.estimate-form-wrap .checkbox-grid label,
#jvw-estimate-form-wrap .checkbox-grid label {
	font-family: var(--font-body) !important;
	font-size: 16px !important; /* Increased from 12px for clear readability */
	font-weight: 500 !important;
	color: #ffffff !important; /* Crisp high-contrast white */
	text-transform: none !important;
	letter-spacing: 0.02em !important;
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 12px 14px !important;
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 4px !important;
}

.estimate-form-wrap .checkbox-grid input[type="checkbox"],
#jvw-estimate-form-wrap .checkbox-grid input[type="checkbox"] {
	width: 22px !important; /* Larger touch target and visually distinct box */
	height: 22px !important;
	accent-color: var(--accent) !important;
	cursor: pointer !important;
}

/* Project Photos Dropzone Typography */
.estimate-form-wrap .file-drop-text,
#jvw-estimate-form-wrap .file-drop-text {
	font-size: 17px !important; /* Increased from 13px */
	font-weight: 600 !important;
	color: #ffffff !important;
	display: block !important;
	margin-top: 8px !important;
	margin-bottom: 6px !important;
}

.estimate-form-wrap .file-drop-hint,
#jvw-estimate-form-wrap .file-drop-hint {
	font-size: 13px !important; /* Increased from 10px */
	font-family: var(--font-mono) !important;
	color: var(--accent) !important; /* Signature gold color */
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}

.estimate-form-wrap .file-drop-icon,
#jvw-estimate-form-wrap .file-drop-icon {
	width: 36px !important;
	height: 36px !important;
	color: var(--accent) !important;
}

/* Submit Inquiry Button Typography */
.estimate-form-wrap button[type="submit"],
#jvw-estimate-form-wrap button[type="submit"] {
	font-size: 17px !important; /* Larger readable font */
	font-weight: 700 !important;
	letter-spacing: 0.15em !important;
	padding: 18px 36px !important;
	margin-top: 16px !important;
	width: 100% !important;
	background: var(--accent) !important; /* Gold CTA */
	color: #000000 !important;
	border: none !important;
	border-radius: 4px !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
}

/* Owner Portal: PIN entry form */
.portal-login input[type="password"] {
	margin-bottom: 20px;
	text-align: center;
	letter-spacing: 0.3em;
	font-size: 20px;
}

.portal-pin-error {
	color: #ffb4ab;
	font-size: 13px;
	margin-bottom: 16px;
	text-align: left;
}

/* Estimate form: submitting overlay (shown while photos upload / request sends) */
/* Fixed to the viewport (not the form) so it stays visible no matter where
   the visitor is scrolled when they hit submit -- on a tall form with photo
   previews, an in-form overlay can land above the fold at the point someone
   actually clicks Submit, near the bottom, making the page look stuck. */
.form-submitting-overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 32px;
	text-align: center;
	background: rgba(27, 28, 28, 0.94);
}

.form-submitting-overlay[hidden] {
	display: none;
}

.form-submitting-overlay p {
	color: var(--ink-variant);
	font-size: 14px;
	max-width: 280px;
	line-height: 1.6;
}

.form-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 3px solid var(--outline-variant);
	border-top-color: var(--accent);
	animation: jvw-spin 0.8s linear infinite;
}

@keyframes jvw-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.form-spinner {
		animation-duration: 1.6s;
	}
}

/* =========================================================
   Premium upsell badge (Interactive Patio Visualizer)
   Remove alongside the badge markup in front-page.php once purchased.
   ========================================================= */

.premium-section {
	position: relative;
	background: var(--bg);
	border-top: 3px solid var(--spark-orange);
	border-bottom: 1px solid var(--outline-variant);
	box-shadow: inset 0 1px 0 rgba(255, 140, 0, 0.5);
}

#transformation-tool {
	border-left: 1px solid rgba(255, 140, 0, 0.35);
	border-right: 1px solid rgba(255, 140, 0, 0.35);
}

#transformation-tool::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at top, rgba(255, 140, 0, 0.14) 0%, transparent 55%);
}

/* Premium upsell corner ribbon (Interactive Patio Visualizer) */
.premium-ribbon {
	position: absolute;
	top: 0;
	left: 28px;
	width: 88px;
	height: 108px;
	z-index: 3;
	filter:
		drop-shadow(0 0 6px rgba(255, 140, 0, 0.85))
		drop-shadow(0 0 16px rgba(255, 140, 0, 0.55))
		drop-shadow(0 0 28px rgba(255, 140, 0, 0.3));
}

@media (min-width: 640px) {
	.premium-ribbon {
		left: 44px;
		width: 100px;
		height: 124px;
	}
}

.premium-ribbon svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ribbon-shape {
	fill: var(--spark-orange);
	fill-opacity: 0.28;
	stroke: var(--spark-orange);
	stroke-width: 3;
	stroke-linejoin: round;
}

.ribbon-shape-inner {
	fill: none;
	stroke: #ffffff;
	stroke-width: 1.5;
	stroke-linejoin: round;
	opacity: 0.85;
}

.ribbon-label {
	font-family: var(--font-mono);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	fill: #ffffff;
}

/* Premium upsell banner (Request Estimate form: photo upload + portal bundle) */
.premium-banner {
	position: relative;
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--spark-orange);
	background: rgba(255, 140, 0, 0.16);
	border: 2px solid var(--spark-orange);
	outline: 1.5px solid rgba(255, 255, 255, 0.85);
	outline-offset: -5px;
	text-align: center;
	filter:
		drop-shadow(0 0 5px rgba(255, 140, 0, 0.7))
		drop-shadow(0 0 14px rgba(255, 140, 0, 0.4));
}

.premium-banner-text {
	display: block;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.5;
}

@media (min-width: 480px) {
	.premium-banner {
		padding: 14px 20px;
	}
	.premium-banner-text {
		font-size: 13px;
	}
}

@media (min-width: 900px) {
	.premium-banner-text {
		font-size: 14px;
	}
}

.premium-banner-link {
	display: inline-block;
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--accent);
	border-bottom: 1px solid rgba(212, 199, 144, 0.5);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.premium-banner-link:hover {
	color: var(--accent-strong);
	border-color: var(--accent-strong);
}
