/*
Theme Name: Advent 2026
Description: Custom theme for Advent Property Advisors. Black and gold, built around the existing logo.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: advent-2026
*/

:root {
	--black: #000;
	--ink: #0d0d0e;
	--charcoal: #17171a;
	--line-dark: #2a2a2e;
	--gold: #d9b81c;
	--gold-deep: #b8990f;
	--gold-pale: #f3e7b0;
	--paper: #f7f5ef;
	--white: #fff;
	--text: #1c1c1e;
	--muted: #5f5f66;
	--line: #e3dfd3;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1180px;
	--radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 14px; }

.eyebrow {
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow-dark { color: var(--black); opacity: .7; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .4em;
	padding: 15px 26px;
	font: 700 .82rem/1 var(--sans);
	letter-spacing: .12em; text-transform: uppercase;
	text-decoration: none;
	border: 1.5px solid transparent;
	border-radius: var(--radius);
	transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: .74rem; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-pale); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-black { background: var(--black); color: var(--gold); }
.btn-black:hover { background: var(--charcoal); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--gold); }

/* Header */
.site-header { background: var(--black); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #1d1d1f; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand img { width: 190px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-menu { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-menu a {
	color: #d8d8dc; text-decoration: none;
	font-size: .86rem; font-weight: 600; letter-spacing: .04em;
	padding: 6px 0; border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.nav-menu a:hover, .nav-menu .current a, .nav-menu .current-menu-item a { color: var(--white); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--gold); transition: transform .25s, opacity .25s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
	position: relative;
	background: linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 48%, rgba(0,0,0,.2) 100%), var(--hero) center/cover no-repeat, var(--black);
	color: var(--white);
	min-height: min(78vh, 720px);
	display: flex; align-items: center;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.hero-inner { padding-top: 96px; padding-bottom: 96px; }
.hero h1 { max-width: 12ch; color: var(--white); }
.lede { font-size: 1.2rem; max-width: 34rem; color: #e4e4e7; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats */
.stats { background: var(--ink); color: var(--white); padding: 56px 0 40px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats-grid div { border-left: 2px solid var(--gold); padding-left: 20px; }
.stats-grid strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stats-grid span { color: #b9b9c0; font-size: .92rem; }
.stats-note { color: #7d7d85; font-size: .8rem; margin: 28px auto 0; }

/* Sections */
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
	display: flex; flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--black);
	padding: 32px 26px 28px;
	text-decoration: none;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-top-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.card-num { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 18px; }
.card h3 { margin-bottom: .6em; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card-link { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--black); }

/* Listings band */
.listings-band { background: var(--gold); color: var(--black); padding: 72px 0; }
.listings-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.listings-band h2 { margin-bottom: .6em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chips li { border: 1.5px solid rgba(0,0,0,.75); padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; }

/* About split */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); z-index: 0; }
.split-media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-copy p { color: var(--muted); }
.split-copy .btn { margin-top: 12px; }

/* Contact band */
.contact-band { background: var(--charcoal); color: var(--white); padding: 72px 0; text-align: center; }
.contact-band h2 { color: var(--white); }
.contact-band p { color: #c9c9cf; font-size: 1.15rem; margin: 0; }
.contact-band a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(217,184,28,.4); }

/* Inner pages */
.page-hero { background: var(--black); color: var(--white); padding: 84px 0 64px; border-bottom: 4px solid var(--gold); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0; }
.page-body { padding: 80px 0 104px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }

.entry { font-size: 1.04rem; }
.entry h2, .entry h3 { margin-top: 1.4em; }
.entry a { color: var(--black); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry img { border: 0 !important; border-radius: var(--radius); margin: 0 0 1.2em 2em !important; max-width: 220px; }
.entry img[align="right"] { float: right; }
.entry table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
.entry td { padding: 0 0 36px; vertical-align: top; }
.entry td:first-child { width: 190px; padding-right: 32px; font-size: .92rem; color: var(--muted); }
.entry td:first-child img { margin: 0 0 12px !important; max-width: 160px; }
.entry td:first-child span { color: var(--text); font-family: var(--sans); }
/* Legacy content was written for a black background: neutralize forced white text. */
.entry [style*="color: #ffffff"], .entry [style*="color:#ffffff"], .entry [style*="color: #fff"] { color: inherit !important; }

.sidebar { display: grid; gap: 20px; position: sticky; top: 120px; }
.side-card { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.side-card h2 { font-size: 1.7rem; }
.side-card p { font-size: .95rem; color: var(--muted); }
.side-card a:not(.btn) { color: var(--black); }
.side-card-gold { background: var(--gold); border-color: var(--gold); }
.side-card-gold p { color: rgba(0,0,0,.78); }

/* Footer */
.site-footer { background: var(--black); color: #b4b4bb; padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 170px; margin-bottom: 18px; }
.footer-head { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 24px; font-size: .82rem; color: #77777f; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Responsive */
@media (max-width: 1080px) {
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.nav-menu { gap: 18px; }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--black); border-bottom: 3px solid var(--gold);
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px 24px 24px;
		display: none;
	}
	.nav-open .site-nav { display: flex; }
	.nav-menu { flex-direction: column; gap: 0; }
	.nav-menu a { display: block; padding: 14px 0; border-bottom: 1px solid #1d1d1f; font-size: 1rem; }
	.site-nav .btn { margin-top: 18px; justify-content: center; }
	.header-inner { min-height: 76px; }
	.brand img { width: 150px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.split { grid-template-columns: 1fr; gap: 56px; }
	.split-media { margin-right: 18px; }
	.page-grid { grid-template-columns: 1fr; gap: 40px; }
	.sidebar { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.section { padding: 72px 0; }
	.hero { min-height: auto; }
	.hero-inner { padding-top: 72px; padding-bottom: 72px; }
	.card-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-base { flex-direction: column; }
	.entry img, .entry img[align="right"] { float: none; margin: 0 0 1.2em !important; }
	.entry table, .entry tbody, .entry tr, .entry td { display: block; width: 100% !important; }
	.entry td:first-child { padding: 0 0 16px; }
}
/* Keep the sticky header below the WordPress admin bar for logged-in users */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }