/* ============================================================
   Joe Jenkins Realtor — Theme Styles
   ============================================================ */

:root {
	--navy: #0a2540;
	--navy-700: #102e4f;
	--navy-100: #e7edf5;
	--gold: #c9a35d;
	--gold-dark: #a8854a;
	--ink: #0f172a;
	--text: #334155;
	--muted: #64748b;
	--bg: #ffffff;
	--bg-alt: #f7f9fc;
	--line: #e2e8f0;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
	--shadow-md: 0 4px 6px rgba(15, 23, 42, 0.06), 0 10px 20px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
	--radius: 12px;
	--radius-lg: 18px;
	--font-head: "Playfair Display", Georgia, serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
	font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
	transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy-100); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.btn-search { white-space: nowrap; }

/* Eyebrow + section heads */
.eyebrow {
	display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--gold-dark); margin-bottom: 0.6rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section { padding: 4.5rem 0; }
.section.featured { padding-top: 5rem; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand-mark {
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--navy); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.brand-tag { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dark); }
.primary-nav { position: relative; }
.nav-list { display: flex; align-items: center; gap: 1.5rem; }
.nav-list a { font-weight: 500; color: var(--text); }
.nav-list a:hover { color: var(--navy); }
.nav-toggle {
	display: none; background: transparent; border: 0; color: var(--ink); font-size: 1.4rem; padding: 0.5rem;
}

/* Hero */
.hero {
	position: relative; isolation: isolate; min-height: 640px;
	display: flex; align-items: center; padding: 5rem 0 4rem; color: #fff; overflow: hidden;
}
.hero-bg {
	position: absolute; inset: 0; z-index: -2;
	background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
	transform: scale(1.05);
}
.hero-overlay {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(135deg, rgba(10, 37, 64, 0.85) 0%, rgba(10, 37, 64, 0.55) 60%, rgba(10, 37, 64, 0.75) 100%);
}
.hero-inner { width: 100%; }
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem;
	background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff; padding: 0.4rem 0.9rem; border-radius: 999px;
	font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero-eyebrow i { color: var(--gold); }
.hero-title { color: #fff; margin-bottom: 1rem; }
.hero-sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 620px; margin-bottom: 2rem; }

.hero-search {
	background: #fff; color: var(--ink);
	border-radius: 14px; box-shadow: var(--shadow-lg);
	padding: 0.6rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 0.4rem;
	max-width: 1000px;
}
.hero-search .field { position: relative; display: flex; align-items: center; padding: 0.4rem 0.6rem; border-radius: 10px; }
.hero-search .field + .field { border-left: 1px solid var(--line); }
.hero-search .field-grow { flex: 1; }
.hero-search label { color: var(--muted); margin-right: 0.5rem; display: inline-flex; }
.hero-search input, .hero-search select {
	width: 100%; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); padding: 0.5rem 0;
}
.btn-search { padding: 0.85rem 1.2rem; }

.hero-stats {
	display: flex; gap: 2.5rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 2rem; color: #fff; line-height: 1; }
.hero-stats span { color: rgba(255, 255, 255, 0.78); font-size: 0.85rem; letter-spacing: 0.05em; }

/* Section backgrounds */
.featured { background: var(--bg); }
.listings { background: var(--bg-alt); }
.about { background: var(--bg); }
.services { background: var(--bg-alt); }
.testimonials { background: var(--bg); }
.contact { background: var(--navy); color: rgba(255, 255, 255, 0.92); }
.contact h2, .contact .eyebrow { color: #fff; }
.contact .eyebrow { color: var(--gold); }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Property card */
.property-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.property-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-media img { transform: scale(1.04); }
.property-media .badge {
	position: absolute; top: 1rem; left: 1rem;
	background: var(--gold); color: var(--ink); font-weight: 700; font-size: 0.7rem;
	letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px;
}
.property-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.property-price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.property-title { font-size: 1.15rem; margin: 0; color: var(--ink); }
.property-address { font-size: 0.9rem; color: var(--muted); margin: 0; }
.property-address i { color: var(--gold-dark); margin-right: 0.25rem; }
.property-meta {
	display: flex; gap: 1rem; margin: 0.5rem 0 1rem;
	padding: 0.75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	font-size: 0.9rem; color: var(--text);
}
.property-meta i { color: var(--navy); margin-right: 0.25rem; }
.property-body .btn { margin-top: auto; }

/* Filter bar */
.filter-bar {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
	gap: 0.75rem; background: #fff; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 1.5rem;
}
.filter { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.filter label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.filter select, .filter input {
	width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.75rem;
	font: inherit; color: var(--ink); background: #fff;
}
.filter select:focus, .filter input:focus { outline: 2px solid rgba(10, 37, 64, 0.15); border-color: var(--navy); }
.filter-grow { grid-column: span 2; }
#filter-reset { align-self: end; }
.results-meta { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1.5rem; }
.empty-state {
	text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed var(--line);
	border-radius: var(--radius-lg); color: var(--muted);
}
.empty-state i { font-size: 2.5rem; color: var(--gold-dark); margin-bottom: 1rem; }
.empty-state h3 { color: var(--ink); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.about-badge {
	position: absolute; bottom: 1.25rem; left: 1.25rem;
	background: var(--gold); color: var(--ink); padding: 0.5rem 0.9rem; border-radius: 999px;
	font-weight: 700; font-size: 0.8rem;
}
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin: 1.25rem 0 1.75rem; }
.about-points li { display: flex; gap: 0.5rem; align-items: center; color: var(--ink); font-weight: 500; }
.about-points i { color: var(--gold-dark); }

/* Services */
.service-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 2rem 1.75rem; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-icon {
	width: 56px; height: 56px; border-radius: 14px; background: var(--navy-100); color: var(--navy);
	display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem;
}
.service-card h3 { margin-bottom: 0.5rem; }
.service-card ul { margin-top: 1rem; }
.service-card li { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; color: var(--text); }
.service-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Testimonials */
.testimonial {
	margin: 0; padding: 2rem; background: var(--bg-alt); border-radius: var(--radius-lg);
	border-left: 4px solid var(--gold);
}
.testimonial .stars { color: var(--gold); letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.testimonial p { color: var(--ink); font-size: 1.05rem; font-style: italic; }
.testimonial cite { color: var(--muted); font-style: normal; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-text p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }
.contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-list a { color: inherit; }
.contact-list.big li { font-size: 1.05rem; }
.contact-list i { color: var(--gold); margin-right: 0.6rem; }
.contact-form {
	background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 2rem;
	box-shadow: var(--shadow-lg);
}
.contact-form label { display: block; margin-bottom: 1rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-form input, .contact-form select, .contact-form textarea {
	width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem;
	margin-top: 0.4rem; font: inherit; color: var(--ink); background: #fff; text-transform: none; letter-spacing: normal;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
	outline: 2px solid rgba(10, 37, 64, 0.15); border-color: var(--navy);
}
.contact-form textarea { resize: vertical; }
.contact-form .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; }
.form-status.success { color: #047857; }
.form-status.error { color: #b91c1c; }

/* Footer */
.site-footer { background: #06192e; color: rgba(255, 255, 255, 0.78); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer h3 { color: #fff; margin: 0.5rem 0; }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: var(--gold); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.socials a {
	width: 38px; height: 38px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	display: inline-flex; align-items: center; justify-content: center;
}
.socials a:hover { background: var(--gold); color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

/* Modal */
.modal {
	position: fixed; inset: 0; z-index: 100;
	display: none; align-items: flex-start; justify-content: center;
	padding: 2rem 1rem; overflow-y: auto;
}
.modal.open { display: flex; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(10, 37, 64, 0.7); backdrop-filter: blur(4px); }
.modal-dialog {
	position: relative; z-index: 1; width: min(900px, 100%);
	background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.modal-close {
	position: absolute; top: 1rem; right: 1rem; z-index: 2;
	width: 40px; height: 40px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.92); color: var(--ink); border: 0;
	display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
	box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: #fff; }
.modal-body { padding: 0; }
.detail-hero { aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; position: relative; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: 1.75rem 2rem 2rem; }
.detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.detail-price { font-family: var(--font-head); font-size: 2rem; color: var(--navy); font-weight: 700; }
.detail-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; padding: 1.25rem; background: var(--bg-alt); border-radius: var(--radius); }
.detail-meta div { display: flex; flex-direction: column; gap: 0.15rem; }
.detail-meta span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.detail-meta strong { font-size: 1.1rem; color: var(--ink); }
.detail-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; margin: 1rem 0 1.5rem; }
.detail-features li { display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.detail-features i { color: var(--gold-dark); }
.detail-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; }
.detail-gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.detail-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* Responsive */
@media (max-width: 1024px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.about-grid, .contact-grid { grid-template-columns: 1fr; }
	.hero-search { grid-template-columns: 1fr 1fr; }
	.hero-search .field { border-left: 0; }
	.btn-search { grid-column: span 2; }
	.filter-bar { grid-template-columns: repeat(3, 1fr); }
	.filter-grow { grid-column: span 3; }
	.detail-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.section { padding: 3.5rem 0; }
	.nav-toggle { display: inline-flex; }
	.nav-list {
		position: absolute; top: calc(100% + 8px); right: 0;
		background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
		flex-direction: column; align-items: stretch; padding: 0.5rem; min-width: 220px;
		box-shadow: var(--shadow-md); display: none;
	}
	.nav-list.open { display: flex; }
	.nav-list a { padding: 0.6rem 0.75rem; border-radius: 8px; }
	.nav-list a:hover { background: var(--bg-alt); }
	.grid-3 { grid-template-columns: 1fr; }
	.filter-bar { grid-template-columns: 1fr 1fr; }
	.filter-grow, #filter-reset { grid-column: span 2; }
	.hero-search { grid-template-columns: 1fr; }
	.btn-search { grid-column: auto; }
	.contact-form .row.two { grid-template-columns: 1fr; }
	.detail-gallery { grid-template-columns: repeat(2, 1fr); }
	.about-points { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
}
