/*
Theme Name: NisProject
Description: Toiture, façade, rénovation — FR + NL, projets gérés dans l'admin.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: nisproject
*/

/* ==========================================================================
   Tokens — roof slate, logo gold, chalk
   ========================================================================== */
:root {
	--ink: #121315;
	--slate: #1a1c1f;
	--slate-2: #23262b;
	--chalk: #f3efe7;
	--paper: #f6f2ea;
	--paper-2: #ebe4d7;
	--stone: #a29d93;
	--text: #1b1c1e;
	--muted: #5d5850;
	--line: rgba(243, 239, 231, .13);
	--line-dark: rgba(18, 19, 21, .14);
	--gold: #caa24c;
	--gold-hi: #f0d488;
	--gold-lo: #94702a;
	--gold-grad: linear-gradient(105deg, #8c6726 0%, #d6b05c 28%, #f2d98f 46%, #c49638 68%, #ead07e 100%);
	--wa: #25d366;

	--f-display: "Big Shoulders Display", "Big Shoulders", "Oswald", "Arial Narrow", sans-serif;
	--f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 40px);
	--head-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	/* staggered slates, barely there */
	--slates: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='48'%3E%3Cg fill='none' stroke='%23f3efe7' stroke-opacity='.045'%3E%3Cpath d='M0 .5h72M0 24.5h72M36.5 0v24M.5 24v24'/%3E%3C/g%3E%3C/svg%3E");
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
	margin: 0;
	background: var(--slate);
	color: var(--chalk);
	font: 400 1.0625rem/1.65 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.ic { width: 1.2em; height: 1.2em; flex: none; }

/* Display type: tall, condensed, set in capitals like site signage. */
.hero-title, .sec-title, .ptitle, .band-title, .svc-title, .form-title, .nf-code {
	font-family: var(--f-display);
	font-weight: 800;
	text-transform: uppercase;
	line-height: .92;
	letter-spacing: .004em;
}
.hero-title em, .sec-title em, .ptitle em {
	font-style: normal;
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* the gradient only paints inside the box: give capital accents (Â, É) room above it */
	padding-top: .16em;
}
.hero-title em { margin-top: -.16em; }

.kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--f-mono);
	font-size: .76rem;
	font-weight: 500;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 22px;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 54px;
	padding: .9rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--f-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: background-position .6s var(--ease), background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.1em; height: 1.1em; }
.btn-gold { background: var(--gold-grad); background-size: 220% 100%; color: var(--ink); }
.btn-gold:hover { background-position: 100% 0; }
.btn-line { border-color: rgba(243, 239, 231, .32); color: var(--chalk); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: var(--slate-2); }
.btn-ink-line { border-color: rgba(18, 19, 21, .55); color: var(--ink); }
.btn-ink-line:hover { background: var(--ink); color: var(--chalk); }
.btn-sm { min-height: 42px; padding: .55rem 1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.link-arrow, .svc-more {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--f-mono);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gold);
}
.link-arrow .ic, .svc-more .ic { transition: transform .3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(5px); }

/* ==========================================================================
   Header
   ========================================================================== */
.head {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--head-h);
	background: linear-gradient(rgba(18, 19, 21, .82), rgba(18, 19, 21, 0));
	transition: background-color .3s, box-shadow .3s;
}
.head.is-scrolled, .menu-open .head { background: rgba(18, 19, 21, .97); box-shadow: 0 1px 0 var(--line); }
.head-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { flex: none; }
.brand-logo { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav a {
	position: relative;
	display: block;
	padding: 8px 0;
	font-size: .86rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(243, 239, 231, .86);
	transition: color .2s;
}
.nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--gold-hi); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.head-tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; color: var(--stone); }
.lang a { padding: 6px 2px; color: var(--stone); transition: color .2s; }
.lang a:hover { color: var(--chalk); }
.lang a[aria-current] { color: var(--gold); }
.burger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer; }
.burger-lines { position: relative; display: block; width: 20px; height: 10px; margin: 0 auto; }
.burger-lines i { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--chalk); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger-lines i:first-child { top: 0; }
.burger-lines i:last-child { top: 8.5px; }
.burger[aria-expanded="true"] .burger-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

/* Mobile menu */
.mnav {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: var(--ink) var(--slates);
	padding-top: calc(var(--head-h) + 20px);
	overflow-y: auto;
	opacity: 0;
	transition: opacity .3s;
}
.mnav.is-open { opacity: 1; }
.mnav-in { display: flex; flex-direction: column; min-height: calc(100% - 40px); gap: 36px; padding-bottom: 40px; }
.mnav-list a {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--f-display);
	font-size: clamp(2.2rem, 9vw, 3.2rem);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
}
.mnav-list .mono { color: var(--gold); font-size: .75rem; }
.mnav-foot { display: grid; gap: 12px; margin-top: auto; }
.lang-big { justify-content: center; gap: 24px; margin-top: 8px; font-size: .85rem; }

/* ==========================================================================
   Dark surfaces share the slate texture
   ========================================================================== */
.hero, .phead, .works, .foot, .contact, .proj, .nf { position: relative; background: var(--slate) var(--slates); isolation: isolate; }
.hero::after, .phead::after, .contact::after, .nf::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--grain);
	pointer-events: none;
}

/* Gable edge: the paper section below "rises" into the dark one as a roof. */
.phead-roof { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 7vw, 104px); z-index: 2; }
.phead-roof path { fill: var(--paper); stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	min-height: min(100svh, 940px);
	display: flex;
	align-items: center;
	padding: calc(var(--head-h) + 48px) 0 clamp(90px, 12vw, 160px);
	background-image: radial-gradient(52% 58% at 78% 40%, rgba(202, 162, 76, .16), transparent 70%), var(--slates);
	overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero-title { font-size: clamp(3.2rem, 7.6vw, 7rem); margin-bottom: 28px; }
.hero-title em { display: block; }
.hero-lead { max-width: 54ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(243, 239, 231, .78); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-call { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; color: var(--stone); }
.hero-call a { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; letter-spacing: .03em; color: var(--chalk); transition: color .2s; }
.hero-call a:hover { color: var(--gold-hi); }

.hero-art { position: relative; justify-self: end; width: 100%; max-width: 540px; }
.house path { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.house .l1 { stroke-width: 3; animation-delay: .3s; }
.house .l2 { animation-delay: 1.1s; }
.house .l3 { stroke-width: 1.4; opacity: .8; animation-delay: .6s; }
.house .l4 { stroke-width: 1; opacity: .45; animation-duration: 2.2s; animation-delay: .9s; }
.house .l5 { animation-delay: .8s; }
.house .l6 { stroke-width: 1.4; opacity: .85; animation-duration: 2s; animation-delay: 1.3s; }
.house .l7 { stroke: var(--stone); stroke-width: 1; opacity: .6; animation-delay: .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-coords { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--stone); font-size: .7rem; }

.hero-in { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Section scaffolding (paper)
   ========================================================================== */
.services, .process, .offer, .others, .prose-wrap { background: var(--paper); color: var(--text); }
.services { padding: clamp(56px, 7vw, 96px) 0 clamp(70px, 9vw, 120px); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 820px; }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-title { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
.services .kicker, .process .kicker, .offer .kicker, .others .kicker { color: var(--gold-lo); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.svc {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 360px;
	padding: clamp(26px, 3vw, 40px);
	border-right: 1px solid var(--line-dark);
	border-bottom: 1px solid var(--line-dark);
	background: var(--paper);
	transition: background-color .45s var(--ease), color .45s var(--ease);
	overflow: hidden;
}
.svc-num {
	position: absolute;
	top: 12px;
	right: 20px;
	font-family: var(--f-display);
	font-size: clamp(4.5rem, 8vw, 7rem);
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px rgba(18, 19, 21, .18);
	transition: -webkit-text-stroke-color .45s;
}
.svc-ic { width: 48px; height: 48px; color: var(--gold-lo); margin-bottom: 18px; transition: color .45s; }
.svc-title { font-size: clamp(2rem, 3vw, 2.6rem); }
.svc p { color: var(--muted); max-width: 34ch; transition: color .45s; }
.svc-more { margin-top: auto; color: var(--gold-lo); }
.svc:hover { background: var(--ink); color: var(--chalk); }
.svc:hover p { color: rgba(243, 239, 231, .7); }
.svc:hover .svc-num { -webkit-text-stroke-color: rgba(202, 162, 76, .55); }
.svc:hover .svc-ic, .svc:hover .svc-more { color: var(--gold); }
.svc:hover .svc-more .ic { transform: translateX(6px); }

/* Projects */
.works { padding: clamp(80px, 9vw, 130px) 0; }
.works-tight { padding-top: clamp(60px, 7vw, 90px); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-2); }
.pcard-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.92); }
.pcard:hover .pcard-img img { transform: scale(1.05); filter: saturate(1.05); }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--stone); }
.pcard-meta .mono + .mono::before { content: "/"; margin-right: 14px; color: var(--gold-lo); }
.pcard-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; font-family: var(--f-display); font-size: 1.65rem; font-weight: 700; line-height: 1.02; text-transform: uppercase; }
.pcard-title .ic-go { margin-top: .15em; color: var(--gold); transition: transform .35s var(--ease); }
.pcard:hover .pcard-title .ic-go { transform: translateX(6px); }

/* Process */
.process { padding: clamp(80px, 9vw, 130px) 0; background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.step { position: relative; padding-top: 34px; border-top: 1px solid rgba(18, 19, 21, .25); }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.step-n { display: block; color: var(--gold-lo); margin-bottom: 14px; }
.step h3 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin-bottom: 12px; }
.step p { color: var(--muted); }

/* Gold band */
.band { background: var(--gold-grad); background-size: 140% 100%; color: var(--ink); padding: clamp(56px, 7vw, 92px) 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px 60px; flex-wrap: wrap; }
.band-title { font-size: clamp(2.2rem, 4.6vw, 3.9rem); max-width: 16ch; margin-bottom: 14px; }
.band-title em { font-style: normal; color: rgba(18, 19, 21, .55); }
.band-text { max-width: 48ch; font-size: 1.1rem; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { background-color: var(--ink); color: var(--stone); padding: clamp(60px, 7vw, 90px) 0 0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; padding-bottom: 50px; }
.foot-logo { height: 46px; width: auto; margin-bottom: 18px; }
.foot-h { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-list { display: grid; gap: 9px; }
.foot-list a { color: var(--chalk); transition: color .2s; }
.foot-list a:hover { color: var(--gold-hi); }
.foot-legal { display: grid; gap: 6px; align-content: start; }
.foot-legal .mono { font-size: .72rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--gut) 28px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot-bottom a:hover { color: var(--chalk); }

.wa-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--wa);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	transition: transform .3s var(--ease);
}
.wa-fab .ic { width: 30px; height: 30px; stroke-width: 1.8; }
.wa-fab:hover { transform: scale(1.07); }
.route-contact .wa-fab { display: none; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.phead { padding: calc(var(--head-h) + clamp(60px, 8vw, 110px)) 0 clamp(110px, 13vw, 190px); }
.ptitle { font-size: clamp(3rem, 7vw, 6rem); margin-bottom: 24px; }
.plead { max-width: 58ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(243, 239, 231, .76); margin-bottom: 30px; }
.phead-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.phead-ic { justify-self: end; color: var(--gold); opacity: .9; }
.phead-ic .ic { width: clamp(140px, 18vw, 240px); height: auto; stroke-width: .7; }

.offer { padding: clamp(60px, 7vw, 100px) 0 clamp(70px, 8vw, 110px); }
.offer-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 5vw, 80px); }
.offer-list li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 10px; padding: 30px 0; border-top: 1px solid var(--line-dark); }
.offer-list .mono { color: var(--gold-lo); padding-top: .55em; grid-row: span 2; }
.offer-list h3 { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 800; text-transform: uppercase; line-height: 1; }
.offer-list p { color: var(--muted); }

.others { padding: 0 0 clamp(70px, 8vw, 110px); }
.others-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.other { display: flex; align-items: center; gap: 18px; padding: 26px 28px; border: 1px solid var(--line-dark); font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; transition: background-color .35s, color .35s; }
.other .ic { width: 38px; height: 38px; color: var(--gold-lo); }
.other .ic-go { margin-left: auto; width: 26px; height: 26px; transition: transform .35s var(--ease); }
.other:hover { background: var(--ink); color: var(--chalk); }
.other:hover .ic { color: var(--gold); }
.other:hover .ic-go { transform: translateX(6px); }

/* Projects page */
.works-page { padding-top: clamp(40px, 5vw, 70px); background-color: var(--paper); background-image: none; color: var(--text); }
.works-page .pcard-meta { color: var(--muted); }
.works-page .pcard-img { background: var(--paper-2); }
.works-page .pcard-img::after { box-shadow: inset 0 0 0 1px var(--line-dark); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters a { padding: 10px 18px; border: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; transition: background-color .2s, border-color .2s; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--gold-hi); }
.empty { display: grid; justify-items: center; gap: 20px; text-align: center; padding: clamp(50px, 7vw, 90px) 24px; border: 1px dashed rgba(18, 19, 21, .25); color: var(--muted); }
.empty-ic { width: 54px; height: 54px; color: var(--gold-lo); }
.empty p { max-width: 46ch; font-size: 1.1rem; }

/* Single project */
.proj { padding-bottom: clamp(60px, 8vw, 110px); }
.proj-head { padding: calc(var(--head-h) + clamp(40px, 6vw, 80px)) 0 clamp(36px, 5vw, 56px); }
.link-back { display: inline-flex; align-items: center; gap: 10px; color: var(--stone); margin-bottom: 34px; transition: color .2s; }
.link-back:hover { color: var(--gold-hi); }
.proj .ptitle { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 18ch; }
.proj-desc { max-width: 64ch; color: rgba(243, 239, 231, .8); font-size: 1.1rem; }
.proj-desc p + p { margin-top: 1em; }
.proj-cover img { width: 100%; max-height: 82vh; object-fit: cover; }
.ba-wrap, .gal-wrap { margin-top: clamp(50px, 6vw, 80px); }

.ba { position: relative; overflow: hidden; background: var(--slate-2); user-select: none; touch-action: pan-y; }
.ba-img { width: 100%; display: block; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { width: 100%; height: 100%; object-fit: cover; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.ba-handle::after {
	content: "‹ ›";
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--gold);
	color: var(--ink);
	font: 700 1.1rem/1 var(--f-mono);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-handle, .ba:focus-within .ba-handle { box-shadow: 0 0 0 3px rgba(240, 212, 136, .4); }
.ba-tag { position: absolute; top: 16px; padding: 6px 10px; background: rgba(18, 19, 21, .75); color: var(--chalk); pointer-events: none; }
.ba-tag-l { left: 16px; }
.ba-tag-r { right: 16px; }

.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gal-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-2); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }

.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(60px, 7vw, 90px); padding-top: 28px; border-top: 1px solid var(--line); }
.proj-nav-link { display: grid; gap: 8px; color: var(--stone); }
.proj-nav-link .mono { display: inline-flex; align-items: center; gap: 8px; }
.proj-nav-link strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; line-height: 1.05; color: var(--chalk); transition: color .2s; }
.proj-nav-link:hover strong { color: var(--gold-hi); }
.proj-nav-next { text-align: right; justify-items: end; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(12, 13, 14, .94); opacity: 0; transition: opacity .25s; }
.lb.is-open { opacity: 1; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 2px; background: rgba(18, 19, 21, .6); color: var(--chalk); cursor: pointer; }
.lb button:hover { border-color: var(--gold); color: var(--gold-hi); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--stone); }

/* Contact */
.contact { padding: calc(var(--head-h) + clamp(50px, 7vw, 90px)) 0 clamp(70px, 8vw, 120px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact .ptitle { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.cinfo { display: grid; gap: 12px; margin-top: 10px; }
.cinfo a, .cinfo-row { display: flex; align-items: center; gap: 18px; }
.cinfo .ic { width: 26px; height: 26px; color: var(--gold); }
.cinfo-big { padding: 18px 22px; border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.cinfo-big > span, .cinfo-row > span { display: grid; gap: 2px; }
.cinfo-big > span { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.05; }
.cinfo-big .mono, .cinfo-row .mono { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; color: var(--stone); }
.cinfo-big:hover { border-color: var(--gold); background: rgba(202, 162, 76, .06); }
.cinfo-wa .ic { color: var(--wa); }
.cinfo-wa:hover { border-color: var(--wa); background: rgba(37, 211, 102, .06); }
.cinfo-row { padding: 10px 4px; color: rgba(243, 239, 231, .85); }
.cinfo-legal { margin-top: 26px; color: var(--stone); font-size: .7rem; }

.form-card { background: var(--paper); color: var(--text); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); position: relative; }
.form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold-grad); }
.form-title { font-size: 2.4rem; margin-bottom: 22px; }
.lead-form { display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { display: grid; gap: 7px; }
.f-l { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.f-l em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .8; }
.f input, .f select, .f textarea {
	width: 100%;
	min-height: 50px;
	padding: .8rem .95rem;
	border: 1px solid rgba(18, 19, 21, .22);
	border-radius: 2px;
	background: #fff;
	color: var(--text);
	transition: border-color .2s, box-shadow .2s;
}
.f textarea { resize: vertical; min-height: 130px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--gold-lo); box-shadow: 0 0 0 3px rgba(202, 162, 76, .25); }
.f select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 26px 18px;
	border: 1.5px dashed rgba(18, 19, 21, .28);
	border-radius: 2px;
	background: rgba(255, 255, 255, .5);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.is-over { border-color: var(--gold-lo); background: rgba(202, 162, 76, .08); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop .ic { width: 34px; height: 34px; color: var(--gold-lo); }
.drop-t { font-weight: 600; }
.drop-h { color: var(--muted); font-size: .68rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; width: 74px; height: 74px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px var(--line-dark); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(18, 19, 21, .75); color: #fff; line-height: 22px; cursor: pointer; }
.drop-err { color: #a3281f; font-size: .9rem; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--gold-lo); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-left: 3px solid; }
.notice .ic { width: 24px; height: 24px; }
.notice-ok { border-color: #2f7d4a; background: rgba(47, 125, 74, .1); color: #1f5b34; }
.notice-err { border-color: #a3281f; background: rgba(163, 40, 31, .08); color: #7d1f18; }
.lead-form.is-sending button[type=submit] { opacity: .7; pointer-events: none; }

/* Privacy */
.prose-wrap { padding: clamp(50px, 6vw, 90px) 0 clamp(70px, 8vw, 110px); }
.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.nf { min-height: 80vh; display: flex; align-items: center; padding: calc(var(--head-h) + 60px) 0 100px; }
.nf-code { font-size: clamp(7rem, 22vw, 16rem); color: transparent; -webkit-text-stroke: 1px rgba(202, 162, 76, .5); line-height: .85; margin-bottom: 10px; }

/* ==========================================================================
   Scroll reveal (only when JS runs; content is visible without it)
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .rv, .hero-in { opacity: 1; transform: none; }
	.house path { stroke-dashoffset: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
	.nav { display: none; }
	.head-tools { margin-left: auto; }
	.burger { display: block; }
	.svc-grid { grid-template-columns: 1fr 1fr; }
	.svc:last-child { grid-column: 1 / -1; min-height: 0; }
	.pgrid { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; row-gap: 46px; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	:root { --head-h: 66px; }
	.brand-logo { height: 34px; }
	.hero { min-height: 0; padding-top: calc(var(--head-h) + 36px); }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-art { justify-self: center; max-width: 340px; margin-top: 10px; }
	.hero-coords { font-size: .62rem; }
	.phead-grid { grid-template-columns: 1fr; }
	.phead-ic { display: none; }
	.contact-grid { grid-template-columns: 1fr; }
	.offer-list { grid-template-columns: 1fr; }
	.others-row { grid-template-columns: 1fr; }
	.gal { grid-template-columns: 1fr 1fr; }
	.lang:not(.lang-big) { display: none; }
}

@media (max-width: 600px) {
	.head-call span { display: none; }
	.head-call { min-height: 46px; width: 46px; padding: 0; }
	.hero-title { font-size: clamp(2.9rem, 13.5vw, 4rem); }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-art { max-width: 250px; }
	.hero-coords { display: none; }
	.svc-grid { grid-template-columns: 1fr; }
	.svc { min-height: 0; }
	.svc:last-child { grid-column: auto; }
	.pgrid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.f-row { grid-template-columns: 1fr; }
	.band-actions .btn { flex: 1 1 100%; }
	.foot-grid { grid-template-columns: 1fr; gap: 30px; }
	.proj-nav { grid-template-columns: 1fr; }
	.proj-nav-next { text-align: left; justify-items: start; }
	.lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
	.wa-fab { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}
