/* FirmaJet — Decorative patterns across the site. Flat SVG tiles, no gradients. */

:root {
	--fj-pattern-dots: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.25' fill='%234f46e5'/%3E%3C/svg%3E");
	--fj-pattern-dots-light: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1.25' fill='%23ffffff'/%3E%3C/svg%3E");
	--fj-pattern-grid: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 0H0v24' fill='none' stroke='%2394a3b8' stroke-width='0.6'/%3E%3C/svg%3E");
	--fj-pattern-grid-light: url("data:image/svg+xml,%3Csvg width='24' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 0H0v24' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.35'/%3E%3C/svg%3E");
	--fj-pattern-diagonal: url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-1 1l2-2M0 12L12 0M11 13l2-2' stroke='%2394a3b8' stroke-width='0.75'/%3E%3C/svg%3E");
	--fj-pattern-diagonal-light: url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-1 1l2-2M0 12L12 0M11 13l2-2' stroke='%23ffffff' stroke-width='0.6' opacity='0.3'/%3E%3C/svg%3E");
	--fj-pattern-plus: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234f46e5'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
	--fj-pattern-plus-light: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.9'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
	--fj-pattern-rings: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='9' fill='none' stroke='%234f46e5' stroke-width='0.6'/%3E%3C/svg%3E");
	--fj-pattern-rings-light: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='9' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.25'/%3E%3C/svg%3E");
	--fj-pattern-diamond: url("data:image/svg+xml,%3Csvg width='18' height='18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 0L18 9L9 18L0 9Z' fill='none' stroke='%2394a3b8' stroke-width='0.6'/%3E%3C/svg%3E");
	--fj-pattern-waves: url("data:image/svg+xml,%3Csvg width='48' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8c8-6 16-6 24 0s16 6 24 0' fill='none' stroke='%2394a3b8' stroke-width='0.6'/%3E%3C/svg%3E");
}

/* ── Pattern layer utility ── */
.fj-pattern {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-repeat: repeat;
	z-index: 0;
}

.fj-pattern--dots {
	background-image: var(--fj-pattern-dots);
	background-size: 20px 20px;
	opacity: 0.055;
}

.fj-pattern--dots-light {
	background-image: var(--fj-pattern-dots-light);
	background-size: 20px 20px;
	opacity: 0.1;
}

.fj-pattern--grid {
	background-image: var(--fj-pattern-grid);
	background-size: 24px 24px;
	opacity: 0.06;
}

.fj-pattern--grid-light {
	background-image: var(--fj-pattern-grid-light);
	background-size: 24px 24px;
	opacity: 0.12;
}

.fj-pattern--diagonal {
	background-image: var(--fj-pattern-diagonal);
	background-size: 12px 12px;
	opacity: 0.05;
}

.fj-pattern--diagonal-light {
	background-image: var(--fj-pattern-diagonal-light);
	background-size: 12px 12px;
	opacity: 0.1;
}

.fj-pattern--plus {
	background-image: var(--fj-pattern-plus);
	background-size: 48px 48px;
	opacity: 0.04;
}

.fj-pattern--plus-light {
	background-image: var(--fj-pattern-plus-light);
	background-size: 48px 48px;
	opacity: 0.1;
}

.fj-pattern--rings {
	background-image: var(--fj-pattern-rings);
	background-size: 40px 40px;
	opacity: 0.045;
}

.fj-pattern--rings-light {
	background-image: var(--fj-pattern-rings-light);
	background-size: 40px 40px;
	opacity: 0.1;
}

.fj-pattern--diamond {
	background-image: var(--fj-pattern-diamond);
	background-size: 18px 18px;
	opacity: 0.05;
}

.fj-pattern--waves {
	background-image: var(--fj-pattern-waves);
	background-size: 48px 16px;
	opacity: 0.05;
}

/* Optional bundled JPG texture overlay */
.fj-pattern--photo {
	background-image: var(--fj-bg-pattern, none);
	background-size: cover;
	background-position: center;
	opacity: 0.06;
	mix-blend-mode: multiply;
}

/* Pseudo-element helper for surfaces without extra markup */
.fj-surface-pattern {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-surface-pattern--dots::after,
.fj-surface-pattern--grid::after,
.fj-surface-pattern--diagonal::after,
.fj-surface-pattern--plus::after,
.fj-surface-pattern--rings::after,
.fj-surface-pattern--diamond::after,
.fj-surface-pattern--waves::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-repeat: repeat;
}

.fj-surface-pattern--dots::after {
	background-image: var(--fj-pattern-dots);
	background-size: 20px 20px;
	opacity: 0.05;
}

.fj-surface-pattern--grid::after {
	background-image: var(--fj-pattern-grid);
	background-size: 24px 24px;
	opacity: 0.055;
}

.fj-surface-pattern--diagonal::after {
	background-image: var(--fj-pattern-diagonal);
	background-size: 12px 12px;
	opacity: 0.045;
}

.fj-surface-pattern--plus::after {
	background-image: var(--fj-pattern-plus);
	background-size: 48px 48px;
	opacity: 0.04;
}

.fj-surface-pattern--rings::after {
	background-image: var(--fj-pattern-rings);
	background-size: 40px 40px;
	opacity: 0.04;
}

.fj-surface-pattern--diamond::after {
	background-image: var(--fj-pattern-diamond);
	background-size: 18px 18px;
	opacity: 0.045;
}

.fj-surface-pattern--waves::after {
	background-image: var(--fj-pattern-waves);
	background-size: 48px 16px;
	opacity: 0.045;
}

.fj-surface-pattern > * {
	position: relative;
	z-index: 1;
}

/* ── Hero ── */
.fj-hero {
	isolation: isolate;
}

.fj-hero__bg .fj-pattern {
	z-index: 1;
}

.fj-hero__pattern-grid {
	opacity: 0.14;
}

.fj-hero__pattern-dots {
	opacity: 0.08;
}

/* ── Header & mobile nav ── */
.fj-header {
	position: relative;
	isolation: isolate;
}

.fj-header > .fj-container {
	position: relative;
	z-index: 1;
}

.fj-header__pattern {
	inset: auto 0 0;
	height: 100%;
	opacity: 0.035;
}

.fj-mobile-nav__inner {
	position: relative;
	isolation: isolate;
}

.fj-mobile-nav__pattern {
	opacity: 0.05;
}

/* ── Footer ── */
.fj-footer {
	isolation: isolate;
}

.fj-footer > .fj-container {
	position: relative;
	z-index: 1;
}

.fj-footer__pattern {
	opacity: 0.08;
}

.fj-footer__pattern--grid {
	opacity: 0.06;
}

/* ── Home sections ── */
.fj-section {
	position: relative;
	isolation: isolate;
}

.fj-section--categories::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-plus);
	background-size: 48px 48px;
	background-repeat: repeat;
	opacity: 0.035;
}

.fj-section--featured::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 20px 20px;
	background-repeat: repeat;
	opacity: 0.045;
}

.fj-section--cities::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-grid);
	background-size: 24px 24px;
	background-repeat: repeat;
	opacity: 0.05;
}

.fj-section--how::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-diagonal);
	background-size: 12px 12px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-section--blog::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-rings);
	background-size: 40px 40px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-section--map-browse::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-grid-light);
	background-size: 24px 24px;
	background-repeat: repeat;
	opacity: 0.1;
}

.fj-section .fj-container {
	position: relative;
	z-index: 1;
}

/* ── CTA band ── */
.fj-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-plus-light);
	background-size: 48px 48px;
	background-repeat: repeat;
	opacity: 0.12;
}

/* ── Cards & tiles ── */
.fj-category-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 16px 16px;
	background-repeat: repeat;
	opacity: 0.035;
}

.fj-city-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-city-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-waves);
	background-size: 48px 16px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-city-card > * {
	position: relative;
	z-index: 1;
}

.fj-step {
	isolation: isolate;
}

.fj-step::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-diamond);
	background-size: 18px 18px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-step:nth-child(2)::after {
	background-image: var(--fj-pattern-grid);
	background-size: 20px 20px;
}

.fj-step:nth-child(3)::after {
	background-image: var(--fj-pattern-rings);
	background-size: 36px 36px;
}

.fj-step > * {
	position: relative;
	z-index: 1;
}

.fj-blog-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-blog-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 18px 18px;
	background-repeat: repeat;
	opacity: 0.03;
}

.fj-blog-card__body,
.fj-blog-card__thumb {
	position: relative;
	z-index: 1;
}

.fj-company-card__body::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 55%;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 16px 16px;
	background-repeat: repeat;
	opacity: 0.03;
}

.fj-company-card__body > * {
	position: relative;
	z-index: 1;
}

.fj-company-card__cover-pattern {
	background-image: var(--fj-pattern-plus-light);
	opacity: 0.2;
}

/* ── Archive & pages ── */
.fj-page {
	position: relative;
	isolation: isolate;
}

.fj-page::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 22px 22px;
	background-repeat: repeat;
	opacity: 0.03;
}

.fj-page > * {
	position: relative;
	z-index: 1;
}

.fj-search-page {
	position: relative;
	isolation: isolate;
}

.fj-search-page::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	border-radius: var(--fj-radius-md);
	background-image: var(--fj-pattern-grid);
	background-size: 20px 20px;
	background-repeat: repeat;
	opacity: 0.035;
}

.fj-search-page > * {
	position: relative;
	z-index: 1;
}

.fj-filters {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-filters::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-diagonal);
	background-size: 12px 12px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-filters > * {
	position: relative;
	z-index: 1;
}

/* ── Company single ── */
.fj-company-single__section {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-company-single__section::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 20px 20px;
	background-repeat: repeat;
	opacity: 0.03;
}

.fj-company-single__section > * {
	position: relative;
	z-index: 1;
}

.fj-company-single__section:nth-child(even)::after {
	background-image: var(--fj-pattern-grid);
	opacity: 0.025;
}

.fj-contact-box {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-contact-box .fj-pattern {
	opacity: 0.05;
}

.fj-contact-box > *:not(.fj-pattern) {
	position: relative;
	z-index: 1;
}

.fj-hours--sidebar,
.fj-reviews {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-hours--sidebar::after,
.fj-reviews::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-waves);
	background-size: 48px 16px;
	background-repeat: repeat;
	opacity: 0.035;
}

.fj-hours--sidebar > *,
.fj-reviews > * {
	position: relative;
	z-index: 1;
}

.fj-info-list__item {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-info-list__item::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 14px 14px;
	background-repeat: repeat;
	opacity: 0.03;
}

.fj-info-list__item > * {
	position: relative;
	z-index: 1;
}

.fj-map-browse {
	position: relative;
	isolation: isolate;
}

.fj-map-browse::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background-image: var(--fj-pattern-grid-light);
	background-size: 20px 20px;
	background-repeat: repeat;
	opacity: 0.06;
}

.fj-map-browse__canvas,
.fj-map-browse__list {
	position: relative;
	z-index: 1;
}

/* ── Stats & hero cards ── */
.fj-stat {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-stat::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots-light);
	background-size: 14px 14px;
	background-repeat: repeat;
	opacity: 0.08;
}

.fj-stat > * {
	position: relative;
	z-index: 1;
}

.fj-hero__card-float {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-hero__card-float::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 14px 14px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-hero__card-float > * {
	position: relative;
	z-index: 1;
}

/* ── Dashboard ── */
.fj-dashboard__nav,
.fj-dashboard__stat {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-dashboard__nav::after,
.fj-dashboard__stat::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 18px 18px;
	background-repeat: repeat;
	opacity: 0.04;
}

.fj-dashboard__stat:nth-child(2)::after {
	background-image: var(--fj-pattern-grid);
}

.fj-dashboard__stat:nth-child(3)::after {
	background-image: var(--fj-pattern-rings);
}

.fj-dashboard__nav > *,
.fj-dashboard__stat > * {
	position: relative;
	z-index: 1;
}

/* ── 404 ── */
.fj-404 {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 2rem 1.25rem;
	border: 1px solid var(--fj-color-border-light);
	border-radius: var(--fj-radius-lg);
	background: var(--fj-color-bg-alt);
}

.fj-404::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-rings);
	background-size: 48px 48px;
	background-repeat: repeat;
	opacity: 0.05;
}

.fj-404 > * {
	position: relative;
	z-index: 1;
}

/* ── Post cards (archive/blog) ── */
.fj-post-card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.fj-post-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background-image: var(--fj-pattern-dots);
	background-size: 18px 18px;
	background-repeat: repeat;
	opacity: 0.03;
}

.fj-post-card > * {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.fj-pattern,
	.fj-surface-pattern::after,
	.fj-section::after,
	.fj-cta::after,
	.fj-page::before,
	.fj-404::after {
		opacity: 0.02 !important;
	}
}
