/* =========================================================
   SV Property Renewal — design system (theme layer)
   Tokens, fonts, base typography, buttons, header, footer.
   Section components live in sv-renewal-core/assets/sv-core.css.
   ========================================================= */

/* ---------- Fonts (self-hosted, variable, latin + cyrillic) ---------- */
@font-face {
	font-family: "Cormorant Garamond";
	src: url(../fonts/cormorant-cyrillic.woff2) format("woff2");
	font-weight: 300 700; font-style: normal; font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url(../fonts/cormorant-latin.woff2) format("woff2");
	font-weight: 300 700; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url(../fonts/cormorant-cyrillic-italic.woff2) format("woff2");
	font-weight: 300 700; font-style: italic; font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Cormorant Garamond";
	src: url(../fonts/cormorant-latin-italic.woff2) format("woff2");
	font-weight: 300 700; font-style: italic; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Manrope";
	src: url(../fonts/manrope-cyrillic.woff2) format("woff2");
	font-weight: 200 800; font-style: normal; font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Manrope";
	src: url(../fonts/manrope-latin.woff2) format("woff2");
	font-weight: 200 800; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
	--sv-ink: #101112;          /* deep charcoal */
	--sv-graphite: #17191B;     /* graphite */
	--sv-surface: #222426;      /* elevated dark surface */
	--sv-gold: #C9AD70;         /* champagne gold — accents only */
	--sv-gold-deep: #7A6334;    /* gold for text on ivory (AA contrast) */
	--sv-ivory: #F4F1EA;
	--sv-ivory-2: #EAE5DA;
	--sv-mute: #A7A7A3;
	--sv-text-dark: #2A2C2E;    /* body text on ivory */

	--sv-line: rgba(201, 173, 112, .28);
	--sv-line-soft: rgba(201, 173, 112, .12);
	--sv-hair: rgba(244, 241, 234, .08);

	--sv-serif: "Cormorant Garamond", "Times New Roman", serif;
	--sv-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--sv-container: 1320px;
	--sv-gutter: clamp(20px, 5vw, 72px);
	--sv-section-y: clamp(88px, 12vw, 168px);
	--sv-header-h: 88px;
	--sv-header-h-compact: 68px;

	--sv-ease: cubic-bezier(.22, .61, .36, 1);

	/* Type scale (fluid) */
	--sv-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem);
	--sv-h2: clamp(2.1rem, 1.4rem + 2.8vw, 3.75rem);
	--sv-h3: clamp(1.45rem, 1.2rem + .9vw, 1.9rem);
	--sv-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
	--sv-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
	--sv-small: .875rem;
	--sv-label-size: .72rem;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--sv-header-h); }
body {
	margin: 0;
	background: var(--sv-graphite);
	color: var(--sv-ivory);
	font-family: var(--sv-sans);
	font-size: var(--sv-body);
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* lang="bg" switches Manrope to Bulgarian-style Cyrillic (cursive-like в, д, т).
	   Keep standard forms for the sans; the serif headings keep their Bulgarian forms. */
	font-feature-settings: "locl" 0;
}
h1, h2, h3, h4, .sv-serif { font-feature-settings: "locl" 1; }
body.sv-solid-header .sv-main { padding-top: var(--sv-header-h); }

h1, h2, h3, h4 {
	font-family: var(--sv-serif);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -.01em;
	margin: 0;
	color: inherit;
	text-wrap: balance;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--sv-gold); color: var(--sv-ink); }

:focus-visible {
	outline: 1px solid var(--sv-gold);
	outline-offset: 4px;
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 20px;
	background: var(--sv-ivory); color: var(--sv-ink);
}

/* Labels: the "PROPERTY RENEWAL" voice of the logo */
.sv-label {
	display: inline-flex; align-items: center; gap: 14px;
	font-family: var(--sv-sans);
	font-size: var(--sv-label-size);
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--sv-gold);
	line-height: 1.4;
	margin: 0 0 22px;
}
.sv-label--rule::before {
	content: ""; width: 40px; height: 1px; background: currentColor; opacity: .7;
}

.sv-placeholder {
	color: var(--sv-mute);
	font-size: var(--sv-small);
	font-style: italic;
}

/* ---------- Buttons ---------- */
.sv-btn {
	--btn-fg: var(--sv-ivory);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px;
	padding: 0 30px;
	font-family: var(--sv-sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--btn-fg);
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	transition: color .35s var(--sv-ease), background-color .35s var(--sv-ease), border-color .35s var(--sv-ease);
	white-space: nowrap;
}
.sv-btn--gold {
	--btn-fg: var(--sv-ink);
	background: var(--sv-gold);
	border-color: var(--sv-gold);
}
.sv-btn--gold:hover { background: #D8C08A; border-color: #D8C08A; }
.sv-btn--outline { border-color: var(--sv-line); }
.sv-btn--outline:hover { border-color: var(--sv-gold); color: var(--sv-gold); }
.sv-btn--dark { --btn-fg: var(--sv-ivory); background: var(--sv-ink); border-color: var(--sv-ink); }
.sv-btn--dark:hover { background: var(--sv-surface); }
.sv-btn__arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .35s var(--sv-ease); }
.sv-btn__arrow::after {
	content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
	border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.sv-btn:hover .sv-btn__arrow { width: 32px; }

.sv-link-gold {
	color: var(--sv-gold);
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size .4s var(--sv-ease);
}
.sv-link-gold:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.sv-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--sv-header-h);
	transition: height .4s var(--sv-ease), background-color .4s var(--sv-ease), border-color .4s var(--sv-ease);
	border-bottom: 1px solid transparent;
}
body.admin-bar .sv-header { top: 32px; }
.sv-solid-header .sv-header,
.sv-header.is-scrolled {
	background: rgba(16, 17, 18, .88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--sv-hair);
}
.sv-header.is-scrolled { height: var(--sv-header-h-compact); }

.sv-header__inner {
	height: 100%;
	max-width: calc(var(--sv-container) + 2 * var(--sv-gutter));
	margin: 0 auto;
	padding: 0 var(--sv-gutter);
	display: flex; align-items: center; gap: 28px;
}
.sv-header__brand { flex: 0 0 auto; }
.sv-header__brand .custom-logo { max-height: 52px; width: auto; transition: max-height .4s var(--sv-ease); }
.sv-header.is-scrolled .custom-logo { max-height: 42px; }

/* Typographic placeholder until the real logo file is uploaded */
.sv-wordmark { display: inline-flex; align-items: center; gap: 12px; color: var(--sv-gold); }
.sv-wordmark__sv {
	font-family: var(--sv-serif); font-size: 2.2rem; font-weight: 500; line-height: 1; letter-spacing: -.02em;
	padding-right: 12px; border-right: 1px solid var(--sv-line);
}
.sv-wordmark__rest {
	font-family: var(--sv-sans); font-size: .6rem; font-weight: 500; letter-spacing: .32em;
	text-transform: uppercase; line-height: 1.55; color: var(--sv-ivory);
}

.sv-header__home {
	display: grid; place-items: center;
	width: 42px; height: 42px;
	margin-left: auto;
	color: var(--sv-gold);
}
.sv-house { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: square; }
.sv-house__guide { opacity: .45; }
.sv-header__home:hover .sv-house { stroke-width: 1.5; }

.sv-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.2vw, 36px); }
.sv-nav__list a {
	position: relative;
	font-size: .8rem; font-weight: 500; letter-spacing: .08em;
	color: rgba(244, 241, 234, .82);
	padding: 8px 0;
	transition: color .3s var(--sv-ease);
}
.sv-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: var(--sv-gold); transform: scaleX(0); transform-origin: left;
	transition: transform .4s var(--sv-ease);
}
.sv-nav__list a:hover,
.sv-nav__list .current-menu-item > a { color: var(--sv-ivory); }
.sv-nav__list a:hover::after,
.sv-nav__list .current-menu-item > a::after { transform: scaleX(1); }
.sv-nav__cta-mobile { display: none; }

.sv-header__cta { min-height: 44px; padding: 0 22px; font-size: .72rem; }

.sv-header__toggle {
	display: none;
	width: 44px; height: 44px; margin-left: 4px;
	background: none; border: 0; padding: 0; cursor: pointer;
	flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px;
}
.sv-header__toggle-bar { width: 26px; height: 1px; background: var(--sv-ivory); transition: transform .35s var(--sv-ease), width .35s var(--sv-ease); }
.sv-header__toggle-bar + .sv-header__toggle-bar { width: 18px; }
.sv-header__toggle[aria-expanded="true"] .sv-header__toggle-bar { width: 24px; transform: translateY(4px) rotate(45deg); }
.sv-header__toggle[aria-expanded="true"] .sv-header__toggle-bar + .sv-header__toggle-bar { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1080px) {
	.sv-header__cta { display: none; }
	.sv-header__toggle { display: flex; }
	.sv-header__home { margin-left: auto; }
	.sv-nav {
		position: fixed; inset: 0; z-index: -1;
		display: flex; flex-direction: column; justify-content: center; gap: 40px;
		padding: calc(var(--sv-header-h) + 20px) var(--sv-gutter) 40px;
		background:
			linear-gradient(var(--sv-line-soft) 1px, transparent 1px) 0 0 / 100% 64px,
			var(--sv-ink);
		opacity: 0; visibility: hidden;
		transition: opacity .35s var(--sv-ease), visibility .35s;
	}
	.sv-nav.is-open { opacity: 1; visibility: visible; }
	.sv-nav__list { flex-direction: column; gap: 6px; }
	.sv-nav__list a { font-family: var(--sv-serif); font-size: clamp(2rem, 8vw, 2.8rem); letter-spacing: 0; font-weight: 500; }
	.sv-nav__list a::after { display: none; }
	.sv-nav__cta-mobile { display: inline-flex; align-self: flex-start; }
	body.sv-nav-open { overflow: hidden; }
}

/* ---------- Footer ---------- */
.sv-footer {
	position: relative;
	background: var(--sv-ink);
	border-top: 1px solid var(--sv-hair);
	padding: clamp(72px, 9vw, 120px) var(--sv-gutter) 32px;
	color: var(--sv-mute);
	font-size: var(--sv-small);
}
.sv-footer__grid, .sv-footer__bottom { max-width: var(--sv-container); margin: 0 auto; }
.sv-footer__grid {
	display: grid; gap: 48px;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	padding-bottom: 64px;
	border-bottom: 1px solid var(--sv-hair);
}
.sv-footer__claim { margin-top: 24px; max-width: 30ch; line-height: 1.7; }
.sv-footer .sv-label { margin-bottom: 18px; font-size: .66rem; }
.sv-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-footer__list a { color: var(--sv-ivory); opacity: .8; transition: opacity .3s, color .3s; }
.sv-footer__list a:hover { opacity: 1; color: var(--sv-gold); }
.sv-footer__bottom {
	display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center;
	padding-top: 28px; font-size: .78rem;
}
.sv-footer__bottom p { margin: 0; }
.sv-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; }
.sv-footer__legal a:hover { color: var(--sv-gold); }

@media (max-width: 960px) {
	.sv-footer__grid { grid-template-columns: 1fr 1fr; }
	.sv-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	.sv-footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Mobile contact bar ---------- */
.sv-mobilebar { display: none; }
@media (max-width: 767px) {
	.sv-mobilebar {
		position: fixed; inset: auto 0 0; z-index: 90;
		display: grid; grid-template-columns: 1fr 1fr;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		gap: 8px;
		background: rgba(16, 17, 18, .94);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border-top: 1px solid var(--sv-hair);
	}
	.sv-mobilebar__btn {
		display: flex; align-items: center; justify-content: center; gap: 10px;
		min-height: 48px;
		font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
		color: var(--sv-ivory);
		border: 1px solid var(--sv-line);
	}
	.sv-mobilebar__btn svg { width: 16px; height: 16px; fill: none; stroke: var(--sv-gold); stroke-width: 1.4; }
	.sv-mobilebar__btn--gold { background: var(--sv-gold); border-color: var(--sv-gold); color: var(--sv-ink); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	body.sv-nav-open .sv-mobilebar { display: none; }
}

/* ---------- Elementor resets for full-bleed sections ---------- */
.elementor-widget[class*="elementor-widget-sv-"] { width: 100%; }
.e-con.sv-stack { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 0; --row-gap: 0; --column-gap: 0; }

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