/*
Theme Name: NSW VGPS
Theme URI: https://nswvaluations.com
Author: Insight IT
Description: One page website for NSW Valuation Group & Property Services. Includes the quote request form (sends with WP Mail SMTP), auto reply, privacy policy page and Customizer image slots.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nswvgps
License: Proprietary
*/

/* ---------- Tokens ---------- */
:root {
	--navy: #000483;
	--orange: #F64701;
	--orange-text: #B83500;
	--orange-on-navy: #FF8A5B;
	--ink: #33354D;
	--ink-strong: #1E2050;
	--muted: #4A4C66;
	--muted-2: #5A5C73;
	--tint: #F4F5FA;
	--tint-2: #E6E9F3;
	--line: #DCDEEA;
	--line-2: #E3E5EF;
	--field: #8A8EAD;
	--on-navy: #D5D7EE;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gutter: clamp(20px, 5vw, 80px);
	--section: clamp(56px, 8vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--orange-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--navy); margin: 0; }
p { margin: 0; }
section[id] { scroll-margin-top: 16px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	background: #fff; color: var(--navy); padding: 12px 16px; font-weight: 600;
}

.wrap { max-width: 1200px; margin: 0 auto; }
.section { padding: var(--section) var(--gutter); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.eyebrow {
	display: flex; align-items: center; gap: 12px;
	font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--orange-text);
}
.eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--orange); flex: none; }
.section--navy .eyebrow { color: var(--orange-on-navy); }

.h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -0.01em; }
.section--navy .h2 { color: #fff; }
.lead { font-size: 18px; color: var(--muted); max-width: 32em; }
.section--navy .lead { color: var(--on-navy); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 26px; border-radius: 2px;
	font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
	border: 1.5px solid var(--navy);
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #00036A; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--tint); color: var(--navy); }
.btn svg { flex: none; }
.link-arrow {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
	font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line-2); padding: 12px var(--gutter); background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.site-logo { display: flex; align-items: center; min-height: 44px; }
.site-logo img { height: 44px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 44px; min-height: 44px; padding: 0 10px; border-radius: 2px;
	background: none; border: 1px solid var(--line); color: var(--navy);
	font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.site-nav { flex: 1 1 100%; display: none; }
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0 4px; display: flex; flex-direction: column; }
.site-nav a {
	display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 2px;
	color: var(--navy); text-decoration: none; font-weight: 500; font-size: 16px;
	border-top: 1px solid var(--line-2);
}
.site-nav .nav-phone { font-weight: 600; }
.site-nav .nav-cta {
	margin-top: 10px; justify-content: center; background: var(--navy); color: #fff; border: 0; border-radius: 2px; font-weight: 600;
}
.site-nav .nav-cta:hover { color: #fff; background: #00036A; }

@media (min-width: 1000px) {
	.site-header { padding-top: 14px; padding-bottom: 14px; }
	.site-logo img { height: 54px; }
	.header-actions { display: none; }
	.site-nav, .site-nav.is-open { display: block; flex: 0 1 auto; }
	.site-nav ul { flex-direction: row; align-items: center; gap: 0 26px; padding: 0; }
	.site-nav a { border: 0; min-height: 44px; font-size: 15px; }
	.site-nav .nav-cta { margin: 0; padding: 0 18px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 104px) var(--gutter) clamp(48px, 7vw, 104px); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 80px); }
.hero__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.06; letter-spacing: -0.015em; }
.hero__sub { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero__call { font-size: 15px; color: var(--muted-2); }
.hero__call a { font-weight: 600; }
.hero__media { flex: 1 1 440px; min-width: 0; position: relative; padding: 0 0 20px 20px; }
.hero__media::before {
	content: ""; position: absolute; left: 0; bottom: 0; width: 42%; height: 46%;
	background: var(--orange); clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.hero__media .photo { position: relative; aspect-ratio: 4 / 3; }

/* ---------- Photos and fallbacks ---------- */
.photo { overflow: hidden; background: var(--tint-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--fallback {
	display: flex; align-items: center; justify-content: center;
	background: var(--tint-2) url("assets/img/mark-tint.svg") no-repeat center / 38% auto;
}
.section--navy .photo--fallback {
	background: rgba(255, 255, 255, 0.06) url("assets/img/mark-navy.svg") no-repeat center / 38% auto;
}

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 0 var(--gutter); }
.trust__list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; }
.trust__item { flex: 1 1 220px; padding: 24px 24px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.trust__big { font-family: var(--serif); font-size: 34px; line-height: 1.1; color: var(--navy); font-weight: 500; }
.trust__small { font-size: 14px; color: var(--muted-2); }

/* ---------- Valuations ---------- */
.val__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(32px, 5vw, 80px); margin-bottom: clamp(32px, 4vw, 56px); }
.val__head .stack { flex: 1 1 420px; min-width: 0; }
.val__head .photo { flex: 1 1 380px; min-width: 0; aspect-ratio: 16 / 10; }

.cgt {
	background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px);
	display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); margin-bottom: clamp(24px, 3vw, 32px);
}
.cgt__body { flex: 3 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cgt__kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-text); }
.cgt h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.cgt__body p { font-size: 18px; }
.cgt__note { font-size: 13px !important; color: var(--muted-2); }
.keydate {
	flex: 1 1 240px; min-width: 0; align-self: flex-start; position: relative; overflow: hidden;
	background: var(--navy); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.keydate::after {
	content: ""; position: absolute; right: 0; top: 0; width: 72px; height: 72px;
	background: var(--orange); clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.keydate__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-on-navy); }
.keydate__date { font-family: var(--serif); font-size: 34px; line-height: 1.1; font-weight: 500; }
.keydate__text { font-size: 15px; color: var(--on-navy); }

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.type { background: #fff; border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.type h3 { font-size: 23px; line-height: 1.25; }
.type p { font-size: 15px; }
.type--cta {
	position: relative; overflow: hidden; background: var(--navy); color: #fff; border-color: var(--navy);
	justify-content: space-between; gap: 16px; text-decoration: none;
}
.type--cta::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: 56px; height: 56px;
	background: var(--orange); clip-path: polygon(100% 0, 0 100%, 100% 100%);
}
.type--cta:hover { color: #fff; background: #00036A; }
.type--cta .type__title { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.25; }
.type--cta .type__link { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Inspections ---------- */
.insp { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); }
.insp__intro { flex: 1 1 400px; min-width: 0; }
.insp__intro .photo { margin-top: 16px; aspect-ratio: 4 / 3; }
.steps { flex: 1 1 460px; min-width: 0; list-style: none; margin: 0; padding: 0; align-self: center; counter-reset: step; }
.steps li {
	counter-increment: step; display: flex; gap: 24px; align-items: baseline;
	padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: #fff;
}
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.steps li::before {
	content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 28px; line-height: 1;
	color: var(--orange); min-width: 40px;
}

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); }
.about__text { flex: 1 1 380px; min-width: 0; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.ticks svg { flex: none; margin-top: 4px; }
.clients {
	flex: 1 1 440px; min-width: 0; align-self: flex-start; background: var(--tint); border: 1px solid var(--line);
	padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 18px;
}
.clients h3, .area h3 { font-size: 26px; line-height: 1.2; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; background: #fff; border: 1px solid var(--line); color: var(--ink-strong); font-size: 15px; font-weight: 500; }
.area .chips li { background: var(--tint); }

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 24px; margin: clamp(32px, 4vw, 48px) 0 24px; }
.area { flex: 1 1 340px; min-width: 0; background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.area__head { display: flex; align-items: center; gap: 12px; }
.areas-note { font-size: 15px; color: var(--muted); }

/* ---------- Request form ---------- */
.request { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.request__intro { flex: 1 1 300px; min-width: 0; }
.contact-list { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.contact-list div { display: flex; flex-direction: column; gap: 2px; }
.contact-list .label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.contact-list a { font-weight: 600; }
.contact-list .big { font-size: 18px; }
.request__panel { flex: 2 1 520px; min-width: 0; background: var(--tint); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }

.form { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field--full { flex-basis: 100%; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-strong); }
.field .req { color: var(--orange-text); }
.field .opt { font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea {
	width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: 2px;
	font: inherit; font-size: 16px; color: var(--ink-strong); background: #fff;
}
.field select { padding: 0 12px; }
.field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__consent { flex-basis: 100%; font-size: 14px; color: var(--muted-2); }
.form__consent a { font-weight: 600; }
.form__foot { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__req { font-size: 14px; color: var(--muted-2); }
.form__req span { color: var(--orange-text); }
.form__foot .btn { padding: 14px 32px; }
.form-alert { flex-basis: 100%; padding: 14px 16px; border: 1px solid #B42318; background: #FEF3F2; color: #7A271A; font-size: 15px; }
.thanks { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }
.thanks h3 { font-size: 28px; }
.thanks p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding: clamp(48px, 6vw, 80px) var(--gutter) 32px; font-size: 15px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange-on-navy); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.footer__brand { flex: 2 1 280px; min-width: 0; }
.footer__brand img { height: 64px; width: auto; }
.footer__col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.footer__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-on-navy); }
.footer__bottom {
	margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 24px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}

/* ---------- Standard pages (Privacy Policy) ---------- */
.page-main { padding: clamp(48px, 7vw, 104px) var(--gutter); }
.page-article { max-width: 760px; margin: 0 auto; line-height: 1.7; }
.page-article h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.08; margin: 12px 0 24px; }
.page-article h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 12px; }
.page-article p { margin: 0 0 16px; }
.page-article ul { margin: 0 0 16px; padding-left: 22px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }
