/* =======================================================
   Vian Properties — main stylesheet
   CSS variables --vian-primary / --vian-accent are overridden
   inline by functions.php from the Customizer color pickers.
   ======================================================= */

:root {
	--vian-primary: #0a2342;
	--vian-primary-dark: #071730;
	--vian-accent: #8a8d91;
	--vian-light: #f5f6f8;
	--vian-white: #ffffff;
	--vian-text: #1c2733;
	--vian-radius: 6px;
	--vian-max-width: 1200px;
}

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

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--vian-text);
	background: var(--vian-white);
	line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: var(--vian-primary); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; color: var(--vian-primary); }

.container {
	max-width: var(--vian-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px; width: 1px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--vian-primary);
	color: #fff;
	padding: 10px 16px;
	z-index: 10000;
}
.skip-link:focus { top: 0; }

/* ---------- Sticky footer layout ----------
   #page is the flex column that wraps header + main + footer (see header.php / footer.php).
   .site-main grows to fill any leftover space so the footer always sits at the
   bottom of the viewport, even on short pages. */
html, body { height: 100%; }
#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.site-masthead,
.site-footer-wrap {
	flex-shrink: 0;
}
.site-main {
	flex: 1 0 auto;
	width: 100%;
}

/* ---------- Sticky header (toggle in Customizer > Vian Properties Theme Options > Header) ---------- */
.has-sticky-header .site-masthead {
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--vian-radius);
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
	background: var(--vian-primary);
	color: #fff;
}
.btn--primary:hover { background: var(--vian-primary-dark); }
.btn--secondary {
	background: #fff;
	color: var(--vian-primary);
}
.btn--secondary:hover { background: var(--vian-light); }
.btn--outline {
	background: transparent;
	color: var(--vian-primary);
	border-color: var(--vian-primary);
}
.btn--outline:hover { background: var(--vian-primary); color: #fff; }

/* ---------- Header ---------- */
.site-masthead--code {
	background: var(--vian-primary);
	color: #fff;
}
.site-masthead--elementor {
	background: transparent;
}
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 24px;
	flex-wrap: wrap;
}
.vian-logo--text {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #fff;
}
.vian-logo--image img { max-height: 56px; width: auto; }

.site-header__nav { flex: 1; }
.primary-menu {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.primary-menu a {
	color: #fff;
	font-weight: 500;
	opacity: .9;
}
.primary-menu a:hover { opacity: 1; text-decoration: underline; }

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}
.site-header__phone {
	color: #fff;
	font-weight: 600;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 6px;
}
.menu-toggle span {
	width: 24px;
	height: 2px;
	background: #fff;
}

@media (max-width: 782px) {
	.site-header__nav {
		flex-basis: 100%;
		display: none;
	}
	.site-header__nav.is-open { display: block; }
	.primary-menu { flex-direction: column; gap: 12px; }
	.menu-toggle { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer-wrap {
	/*background: var(--vian-primary-dark);*/
	color: #cfd6e0;
	margin-top: 60px;
}
.site-footer { padding: 48px 24px 24px; }
.site-footer__top {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer__brand .vian-logo--text { color: #fff; font-size: 20px; font-weight: 800; }
.site-footer__columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.site-footer .widget-title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; }
.footer-menu {
	list-style: none;
	display: flex;
	gap: 20px;
	margin: 16px 0 0;
	padding: 0;
	flex-wrap: wrap;
}
.footer-menu a { color: #cfd6e0; }
.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 20px;
	font-size: 14px;
}
.site-footer__social { display: flex; gap: 16px; }
.site-footer__social a { color: #cfd6e0; }

@media (max-width: 782px) {
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__columns { grid-template-columns: 1fr; }
}

/* ---------- Post grid / cards ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
}
.post-card {
	border: 1px solid #e6e8ec;
	border-radius: var(--vian-radius);
	overflow: hidden;
	background: #fff;
}
.post-card__body { padding: 18px; }
.post-card__meta { color: var(--vian-accent); font-size: 13px; margin: 6px 0 10px; }

.page-header { margin-bottom: 24px; }
.pagination { margin-top: 32px; }

/* ---------- Vian CTA Banner widget ---------- */
.vian-cta-banner {
	background: var(--vian-primary);
	color: #fff;
	padding: 64px 32px;
	border-radius: var(--vian-radius);
}
.vian-cta-banner__inner { max-width: 700px; margin: 0 auto; }
.vian-cta-banner--center { text-align: center; }
.vian-cta-banner--left { text-align: left; margin-left: 0; }
.vian-cta-banner--right { text-align: right; margin-right: 0; }
.vian-cta-banner__heading { color: #fff; font-size: 32px; margin-bottom: 12px; }
.vian-cta-banner__subheading { opacity: .9; margin-bottom: 24px; }

/* ---------- Vian Stats Counter widget ---------- */
.vian-stats-counter {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px;
	text-align: center;
	padding: 32px 0;
}
.vian-stat__number {
	font-size: 42px;
	font-weight: 800;
	color: var(--vian-primary);
}
.vian-stat__label {
	color: var(--vian-accent);
	font-weight: 600;
	margin-top: 6px;
}
