/* Joluvian Blocks — front-end styles. Clean modern take on the Bridge look. */

:root {
	--jl-accent: #f2635d;
	--jl-accent-hover: #fa6b65;
	--jl-blue: #0399c8;
	--jl-dark: #393945;
	--jl-text: #646464;
	--jl-line: #e6e6e6;
	--jl-grid-gap: 30px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	color: var(--jl-text);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Montserrat", "Raleway", Helvetica, Arial, sans-serif;
	color: var(--jl-dark);
	font-weight: 400;
	line-height: 1.2;
}

a { color: var(--jl-accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--jl-blue); }
img { max-width: 100%; height: auto; }

.jl-main { padding-top: 50px; padding-bottom: 80px; }
.jl-page-title { text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1em; }

/* ---------------- Header ---------------- */
.jl-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--jl-line);
	padding: 14px 20px;
}
.jl-header__inner { gap: 24px; }
.jl-logo img { width: 150px; height: auto; }
.jl-nav { gap: 26px; }
.jl-nav a,
.jl-nav .wp-block-navigation-item__content {
	color: var(--jl-dark);
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 500;
}
.jl-nav a:hover { color: var(--jl-accent); }

/* ---------------- Social icons ---------------- */
.jl-social { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }
.jl-social__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	color: var(--jl-dark); border: 1px solid var(--jl-line);
	font-size: 11px; text-transform: uppercase;
}
.jl-social__link span {
	overflow: hidden; width: 1px; height: 1px;
	position: absolute; clip: rect(0 0 0 0);
}
.jl-social__link::before { font-weight: 700; }
.jl-social--facebook::before { content: "f"; }
.jl-social--twitter::before { content: "t"; }
.jl-social--instagram::before { content: "in"; font-size: 9px; }
.jl-social--youtube::before { content: "yt"; font-size: 9px; }
.jl-social--behance::before { content: "Be"; font-size: 9px; }
.jl-social--dribbble::before { content: "dr"; font-size: 9px; }
.jl-social--pinterest::before { content: "P"; }
.jl-social--link::before { content: "↗"; }
.jl-social__link:hover { background: var(--jl-accent); color: #fff; border-color: var(--jl-accent); }

/* ---------------- Portfolio grid ---------------- */
.jl-portfolio { margin-top: 10px; }
.jl-filter {
	list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
	gap: 6px 28px; padding: 0; margin: 0 0 40px;
}
.jl-filter__btn {
	background: none; border: 0; cursor: pointer;
	font-family: inherit; color: var(--jl-dark);
	text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 500;
	padding: 6px 2px; position: relative;
}
.jl-filter__btn::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
	background: var(--jl-accent); transition: width .25s ease;
}
.jl-filter__btn:hover, .jl-filter__btn.is-active { color: var(--jl-accent); }
.jl-filter__btn.is-active::after { width: 100%; }

.jl-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--jl-grid-gap);
}
.jl-grid__item.is-hidden { display: none; }
.jl-grid__link { display: block; position: relative; overflow: hidden; }
.jl-grid__media { display: block; position: relative; }
.jl-grid__img {
	display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
	transition: transform .5s ease;
}
.jl-grid__link:hover .jl-grid__img { transform: scale(1.06); }
.jl-grid__overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 10px; text-align: center;
	background: rgba(57, 57, 69, 0); opacity: 0; transition: background .35s ease, opacity .35s ease;
}
.jl-grid__link:hover .jl-grid__overlay { background: rgba(57, 57, 69, 0.55); opacity: 1; }
.jl-grid__plus { color: #fff; font-size: 34px; font-weight: 300; line-height: 1; }
.jl-grid__title {
	color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 13px;
	font-family: "Montserrat", sans-serif; padding: 0 12px;
}
.jl-new {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	background: var(--jl-accent); color: #fff;
	font-size: 10px; font-weight: 700; letter-spacing: 1px;
	padding: 3px 8px; text-transform: uppercase;
}

/* ---------------- Portfolio single ---------------- */
.jl-single { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.jl-single__images { display: flex; flex-direction: column; gap: 20px; }
.jl-single__img { display: block; width: 100%; height: auto; }
.jl-single__detail { align-self: start; position: sticky; top: 100px; }
.jl-single__title { text-transform: uppercase; letter-spacing: 1px; font-size: 26px; margin: 0 0 24px; }
.jl-single__field { margin-bottom: 18px; }
.jl-single__field h6 {
	margin: 0 0 2px; text-transform: uppercase; letter-spacing: 1px;
	font-size: 11px; color: var(--jl-dark); font-weight: 700;
}
.jl-single__field p { margin: 0; }
.jl-single__about { color: var(--jl-text); }
.jl-single__nav {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--jl-line);
	text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
}
.jl-single__all { font-weight: 700; }

/* ---------------- Lightbox ---------------- */
.jl-lightbox-overlay {
	position: fixed; inset: 0; z-index: 9999;
	background: rgba(20, 20, 24, 0.94);
	display: none; align-items: center; justify-content: center;
}
.jl-lightbox-overlay.is-open { display: flex; }
.jl-lightbox-overlay img { max-width: 92vw; max-height: 88vh; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.jl-lightbox-overlay button {
	position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
	font-size: 30px; line-height: 1; padding: 16px;
}
.jl-lb-close { top: 6px; right: 10px; }
.jl-lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.jl-lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------------- Newsletter ---------------- */
.jl-newsletter { border-top: 1px solid var(--jl-accent); padding-top: 40px; margin-top: 40px; }
.jl-newsletter__title { text-transform: uppercase; letter-spacing: 1px; font-size: 20px; margin-bottom: 20px; }
.jl-newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.jl-newsletter__form input { flex: 1 1 220px; padding: 12px 14px; border: 1px solid var(--jl-line); background: #f8f8f8; }
.jl-newsletter__form button,
.jl-contact__form button {
	background: var(--jl-accent); color: #fff; border: 0; cursor: pointer;
	text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: 13px;
	padding: 12px 28px; transition: background .2s ease;
}
.jl-newsletter__form button:hover,
.jl-contact__form button:hover { background: var(--jl-accent-hover); }

/* ---------------- Contact form ---------------- */
.jl-contact { margin-top: 30px; }
.jl-contact__form { display: flex; flex-direction: column; gap: 12px; }
.jl-contact__row { display: flex; gap: 12px; flex-wrap: wrap; }
.jl-contact__row input { flex: 1 1 220px; }
.jl-contact__form input,
.jl-contact__form textarea {
	padding: 12px 14px; border: 1px solid var(--jl-line); background: #f8f8f8;
	font-family: inherit; font-size: 15px; width: 100%;
}
.jl-contact__form button { align-self: flex-start; }
.jl-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.jl-contact__notice { padding: 12px 16px; margin-bottom: 16px; font-weight: 500; }
.jl-contact__notice--ok { background: #e8f6ee; color: #1d7a46; }
.jl-contact__notice--err { background: #fdecea; color: #b3261e; }

/* ---------------- Footer ---------------- */
.jl-footer { padding: 40px 20px; }
.jl-footer a { color: #fff; }
.jl-footer .jl-social__link { color: #fff; border-color: rgba(255,255,255,.3); }
.jl-footer__copy { margin: 0; font-size: 13px; letter-spacing: .5px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
	.jl-grid { grid-template-columns: repeat(3, 1fr); }
	.jl-single { grid-template-columns: 1fr; }
	.jl-single__detail { position: static; }
}
@media (max-width: 680px) {
	.jl-grid { grid-template-columns: repeat(2, 1fr); --jl-grid-gap: 16px; }
	.jl-header__inner { flex-wrap: wrap; gap: 12px; }
}
