/**
 * STILVUD Landing styles. Loaded only on the template-stilvud-home.php page
 * (enqueued from functions.php). Self-contained: bypasses the Astra shell.
 */
:root {
	--ink: #0e0e10;
	--ink-2: #16161a;
	--ink-soft: #1d1d22;
	--paper: #f4f1ea;
	--paper-2: #e9e6dc;
	--line: rgba(255,255,255,.08);
	--gold: #c9a24b;
	--gold-2: #e2c578;
	--gold-3: #a9842f;
	--txt: #ece9e3;
	--txt-dim: #a7a39a;
	--ink-on-paper: #1a1916;
	--body: "Manrope", -apple-system, sans-serif;
	--maxw: 1160px;
}

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

html {
	scroll-behavior: smooth;
}

body.stilvud {
	margin: 0;
	font-family: var(--body), serif;
	background: var(--ink);
	color: var(--txt);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
	overflow-x: hidden;
}

body.stilvud a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
	text-transform: uppercase;
	letter-spacing: .28em;
	font-weight: 500;
	font-size: 13px;
	color: var(--gold);
}

.btn {
	display: inline-flex; align-items: center; gap: 10px;
	text-transform: uppercase;
	letter-spacing: .12em; font-weight: 600; font-size: 14px;
	padding: 12px 22px; border-radius: 8px; cursor: pointer;
	border: 1px solid transparent; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold {
	background: var(--gold);
	color: #1c1407; box-shadow: 0 10px 30px -10px rgba(201,162,75,.5);
}
.btn--gold:hover { background: var(--gold-3); box-shadow: 0 16px 38px -10px rgba(201,162,75,.75); }
.btn--ghost { border-color: rgba(255,255,255,.22); color: var(--txt); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ---------- Header ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(14,14,16,.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand-logo { height: 38px; width: auto; display: block; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
	text-transform: uppercase; letter-spacing: .14em;
	font-size: 13px; font-weight: 500; color: var(--txt-dim);
	padding-bottom: 4px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--txt); border-color: var(--gold); }
.head-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--txt); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.burger:hover, .burger:focus, .burger:active, .burger:focus-visible { background: none; outline: none; color: unset; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - 62px); display: flex; align-items: center; }
.hero .wrap { width: 100%; position: relative; z-index: 2; padding-block: 70px; }
.hero-copy { max-width: 620px; }
.hero-copy h1 {
	font-weight: 700; text-transform: uppercase; color: #fff;
	font-size: 64px; line-height: .98; letter-spacing: .01em; margin: 18px 0 0;
}
.hero-copy h1 .accent { color: transparent; background: linear-gradient(120deg,var(--gold-2),var(--gold-3)); -webkit-background-clip: text; background-clip: text; }
.hero-copy p.lead { color: var(--txt-dim); max-width: 44ch; margin: 22px 0 0; font-size: 17px; }
.hero-feats { display: flex; flex-wrap: wrap; gap: 26px; margin: 30px 0 0; }
.hero-feats .f { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hero-feats .f span { text-transform: uppercase; letter-spacing: .08em; color: var(--txt-dim); line-height: 1.15; }
.hero-feats .dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; flex: none; }
.hero-feats .dot svg { width: 15px; height: 15px; }
.hero-actions { display: flex; gap: 14px; margin: 34px 0 0; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; }
.avatars { display: flex; }
.avatars span {
	width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
	border: 2px solid var(--ink); background: linear-gradient(135deg,#3a3a40,#1d1d22);
	display: grid; place-items: center; font-size: 13px; color: var(--gold-2); font-weight: 700;
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--gold-2); letter-spacing: 2px; font-size: 14px; }
.hero-trust small { color: var(--txt-dim); display: block; }

/* Full-bleed background layer */
.hero-art {
	position: absolute; inset: 0; z-index: 0; overflow: hidden;
	background:
		radial-gradient(120% 90% at 75% 0%, rgba(201,162,75,.16), transparent 55%),
		linear-gradient(160deg,#23231f 0%, #141416 60%, #0c0c0e 100%);
}

.hero-art .hero-photo {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: contain; object-position: right center;
}
/* Readability overlay: dark on the copy side, fading toward the photo */
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.72) 30%, rgba(10,10,12,.25) 62%, rgba(10,10,12,.05) 100%),
		linear-gradient(0deg, rgba(10,10,12,.6), transparent 45%);
}

/* ---------- Feature strip ---------- */
.strip { background: var(--paper); color: var(--ink-on-paper); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 18px; padding-block: 26px; }
.strip .item { display: flex; align-items: center; gap: 12px; flex: 1 1 180px; }
.strip .item:not(:last-child) { border-right: 1px solid rgba(0,0,0,.1); padding-right: 18px; }
.strip .item svg { width: 26px; height: 26px; color: var(--gold-3); flex: none; }
.strip .item b { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 13.5px; line-height: 1.2; }

/* ---------- Services ---------- */
.services { padding-block: 86px; }
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head h2 {
	text-transform: uppercase; font-weight: 700;
	font-size: clamp(30px, 4vw, 46px); margin: 12px 0 0; letter-spacing: .02em;
}
.sec-head .rule { width: 60px; height: 3px; background: var(--gold); margin: 18px auto 0; border-radius: 2px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.card {
	position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
	background: linear-gradient(180deg, var(--ink-2), var(--ink));
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.45); box-shadow: 0 30px 60px -30px #000; }
.card .thumb {
	height: 190px; position: relative; overflow: hidden;
	border-bottom: 1px solid var(--line);
}
.card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 22px 22px 26px; }
.card .body h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 19px; font-weight: 600; margin: 0; }
.card .body p { color: var(--txt-dim); font-size: 14.5px; margin: 10px 0 18px; min-height: 44px; }
.card .more { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--gold-2); display: inline-flex; gap: 8px; align-items: center; }
.card .more svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Works band ---------- */
.works { background: #0a0a0c; border-block: 1px solid var(--line); padding-block: 30px; }
.works .wrap { }
.works-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.works-top h2 { text-transform: uppercase; letter-spacing: .06em; font-size: 22px; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery .g {
	display: block; cursor: pointer;
	aspect-ratio: 4/3; border-radius: 8px; border: 1px solid var(--line);
	background-size: cover; background-position: center;
	position: relative; overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	will-change: transform;
	backface-visibility: hidden;
	transform: translate3d(0,0,0);
}
.gallery .g:hover { transform: translate3d(0,-3px,0); border-color: rgba(201,162,75,.5); }

/* ---------- CTA / footer ---------- */
.foot { background: linear-gradient(180deg,#101012,#0a0a0c); padding-block: 70px 40px; }
.foot .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px; align-items: start; }
.foot h2 { text-transform: uppercase; font-size: 30px; line-height: 1.05; margin: 8px 0 16px; }
.foot p { color: var(--txt-dim); max-width: 38ch; }
.foot .contacts { display: flex; flex-direction: column; gap: 12px; }
.foot .contacts a { display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 6px; letter-spacing: .08em; font-size: 13px; transition: border-color .2s, color .2s; }
.foot .contacts a:hover { border-color: var(--gold); color: var(--gold-2); }
.foot .contacts a svg { width: 18px; height: 18px; color: var(--gold); }
.foot .points { display: flex; flex-direction: column; gap: 14px; }
.foot .points .p { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.foot .points .p svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.foot-brand { display:flex; align-items:center; gap: 14px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.foot-brand .brand-logo { height: 40px; }
.foot-brand small { color: var(--txt-dim); margin-left: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }

/* ---------- Desktop hero: two-column split (copy | photo) ---------- */
@media (min-width: 941px) {
	/* Photo confined to the right half, cover-cropped. Left edge feathered
	   so it dissolves into the dark panel instead of a hard seam. */
	.hero-art {
		left: 42%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 15%);
	}
	.hero-art .hero-photo { object-fit: cover; object-position: center; }
	/* Solid dark left panel + soft seam blending into the photo. */
	.hero::after {
		background: linear-gradient(90deg,
			var(--ink) 0%, var(--ink) 44%,
			rgba(14,14,16,.7) 50%, rgba(14,14,16,.22) 70%, rgba(14,14,16,.22) 100%);
	}
	/* Keep copy inside the left half — never crosses the seam. */
	.hero-copy { max-width: min(600px, 45vw); }
	.hero-copy h1 { overflow-wrap: break-word; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
	.nav, .head-cta { display: none; }
	.burger { display: inline-flex; }

	/* Mobile dropdown menu (shown when burger toggles .nav-open). */
	.site-head.nav-open .nav {
		display: flex; flex-direction: column; gap: 0;
		position: absolute; left: 0; right: 0; top: 62px;
		margin-left: 0; padding: 8px 0;
		background: rgba(14,14,16,.98);
		border-bottom: 1px solid var(--line);
		backdrop-filter: blur(14px);
	}
	.site-head.nav-open .nav a {
		padding: 14px 22px; border-bottom: 0; font-size: 15px;
	}

	/* Restack hero: photo becomes a top banner, copy flows below on a solid
	   dark panel. Stops the headline/buttons overlapping the cover photo. */
	.hero { display: block; min-height: 0; isolation: auto; }
	.hero-art {
		position: relative; inset: auto; z-index: 0;
		height: 48vw; max-height: 360px; min-height: 220px;
	}
	.hero-art .hero-photo { object-fit: cover; object-position: center; }
	.hero::after { display: none; }
	.hero .wrap { padding-block: 40px 30px; }
	.hero-copy { max-width: none; }
	.hero-copy h1 { font-size: 44px; }

	.gallery { grid-template-columns: repeat(3,1fr); }
	.foot .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.gallery { grid-template-columns: repeat(2,1fr); }
	.hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============ LIGHT THEME below the hero ============ */
:root { --light-line: #e6e1d6; --light-dim: #6b675f; }

.services, .foot { background: #ffffff; color: var(--ink-on-paper); }
.works { background: var(--paper); color: var(--ink-on-paper); border-block: 1px solid var(--light-line); }

/* Service cards */
.services .card { background: #ffffff; border: 1px solid var(--light-line); }
.services .card:hover { border-color: rgba(201,162,75,.6); box-shadow: 0 26px 50px -28px rgba(40,32,10,.35); }
.services .card .thumb { border-bottom: 1px solid var(--light-line); }
.services .card .body p { color: var(--light-dim); }
.services .card .more { color: var(--gold-3); }

/* Footer / CTA */
.foot p { color: var(--light-dim); }
.foot .contacts a { border-color: var(--light-line); color: var(--ink-on-paper); }
.foot .contacts a:hover { border-color: var(--gold-3); color: var(--gold-3); }
.foot .contacts a svg { color: var(--gold-3); }
.foot .points .p { color: var(--ink-on-paper); }
.foot .points .p svg { color: var(--gold-3); }
.foot-brand { border-top: 1px solid var(--light-line); }
.foot-brand small { color: var(--light-dim); }
