/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--bc-ink: #000000;
	--bc-paper: #f5f5ee;
	--bc-surface: #ffffff;
	--bc-muted: #666666;
	--bc-line: #e2e1d8;
	--bc-accent: #406595;
	--bc-accent-dark: #335177;
	--bc-badge: #406595;
	--bc-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--bc-font-heading: 'Noto Serif', Georgia, serif;
	--bc-container: 1200px;
	--bc-header-height: 84px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bc-paper);
	color: var(--bc-ink);
	font-family: var(--bc-font-body);
	font-size: 16px;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bc-accent-dark); }
a:hover { color: var(--bc-ink); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--bc-font-heading);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--bc-ink);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
p { margin: 0 0 1em; }

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	background: var(--bc-ink);
	color: #fff;
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	display: block;
	font-size: 0.9rem;
	padding: 0.75em 1.2em;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100000;
}

.bc-icon { vertical-align: -3px; margin-right: 4px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-block;
	padding: 0.85em 1.8em;
	border-radius: 2px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary {
	background: var(--bc-accent);
	color: #fff;
	border-color: var(--bc-accent);
}
.btn--primary:hover { background: var(--bc-accent-dark); border-color: var(--bc-accent-dark); color: #fff; }
.btn--outline {
	background: transparent;
	color: var(--bc-accent);
	border-color: var(--bc-accent);
}
.btn--outline:hover { background: var(--bc-accent); color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: var(--bc-surface);
	border-bottom: 1px solid var(--bc-line);
	min-height: var(--bc-header-height);
}
.site-header.is-stuck { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--bc-header-height);
}
.site-branding .custom-logo { max-height: 64px; width: auto; }
.site-logo-text {
	display: flex;
	align-items: center;
	gap: 0.7em;
	text-decoration: none;
	color: var(--bc-ink);
}
.site-logo-mark {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 4px;
	object-fit: cover;
}
.site-logo-words {
	font-family: var(--bc-font-heading);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	max-width: 6.5em;
}
.main-navigation { flex: 1; display: flex; justify-content: flex-end; }
.primary-menu {
	list-style: none;
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
}
.primary-menu a {
	text-decoration: none;
	color: var(--bc-ink);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	padding: 0.5em 0;
}
.primary-menu a:hover {
	color: var(--bc-accent);
}
.primary-menu .current-menu-item > a {
	color: var(--bc-accent);
	font-weight: 700;
}
.menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--bc-ink);
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}
.menu-toggle__bars {
	position: relative;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }

@media (max-width: 782px) {
	.main-navigation {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bc-surface);
		border-bottom: 1px solid var(--bc-line);
	}
	.main-navigation.is-open { display: block; }
	.primary-menu { flex-direction: column; gap: 0; padding: 1rem 24px; }
	.primary-menu a { display: block; padding: 0.75em 0; }
	.menu-toggle { display: block; }
	.site-header__inner { position: relative; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	background: linear-gradient(160deg, #1b2d42 0%, #0a1520 100%);
	color: #fff;
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 0;
	text-align: center;
	box-sizing: border-box;
}
@media (min-width: 900px) {
	/* A slightly shorter box means "cover" has less height difference to
	   make up, so it crops the photo less aggressively on wide screens. */
	.hero { min-height: 68vh; }
}
.hero--photo {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.hero--photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, rgba(27, 45, 66, 0.55) 0%, rgba(10, 21, 32, 0.75) 100%);
}
.hero--photo .hero__inner { position: relative; z-index: 1; }
.hero__title { color: #fff; margin-bottom: 0.3em; }
.hero__tagline { color: #cfd9e6; font-size: 1.1rem; }
.hero__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2rem;
}
/* The hero's dark background needs its own high-contrast button treatment
   rather than navy-on-near-black. */
.hero .btn--primary { background: #fff; color: var(--bc-accent); border-color: #fff; }
.hero .btn--primary:hover { background: var(--bc-accent); color: #fff; border-color: var(--bc-accent); }

/* ==========================================================================
   Split (two-column) sections
   ========================================================================== */
.split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
	padding: 4rem 24px;
}
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; padding: 5rem 24px; }
}
/* About page's variant: text card + stats stacked in the left column,
   with the photo stretching to match their combined height. */
@media (min-width: 900px) {
	.split--about { align-items: stretch; }
	.split--about .split__media { height: 100%; }
	.split--about .image-placeholder { height: 100%; aspect-ratio: auto; }
}
.split__column {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2.5rem;
}
.split__content--card {
	background: var(--bc-surface);
	padding: 2.5rem;
	border-radius: 6px;
}
@media (min-width: 900px) {
	/* Only the homepage's card (a direct child of .split) tucks under the
	   photo — the About page's nested version (inside .split__column)
	   shouldn't overlap. */
	.split > .split__content--card { margin-right: -2.5rem; position: relative; z-index: 1; }
}
.image-placeholder {
	background: repeating-linear-gradient(135deg, #ece7dc, #ece7dc 10px, #e4ded0 10px, #e4ded0 20px);
	border: 1px solid var(--bc-line);
	border-radius: 4px;
	aspect-ratio: 4 / 5;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bc-muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.image-placeholder--wide { aspect-ratio: 16 / 9; }
.split__media-image {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 4px;
}

/* ==========================================================================
   Stats row (About page)
   ========================================================================== */
.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.stats__number { font-family: var(--bc-font-heading); font-size: 2.2rem; font-weight: 600; color: var(--bc-accent); line-height: 1; }
.stats__label { color: var(--bc-accent); font-size: 0.85rem; margin-top: 0.4em; }
.stats__item--placeholder { opacity: 0.55; }

/* ==========================================================================
   Services & Areas (About page)
   ========================================================================== */
.services-areas {
	padding: 5rem 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}
@media (min-width: 900px) {
	.services-areas { grid-template-columns: 1fr 1fr; }
}
.services-areas__media { border-radius: 0; aspect-ratio: auto; min-height: 320px; }
.services-areas__media-image {
	width: 100%;
	height: 100%;
	min-height: 320px;
	object-fit: cover;
	display: block;
}
.services-areas__panel {
	background: var(--bc-paper);
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}
.services-areas__lists {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.services-areas__lists h2 { font-size: 1.4rem; margin-bottom: 0.6em; }

.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li {
	padding: 0.4em 0;
	color: var(--bc-ink);
	font-size: 0.95rem;
}
.icon-list .bc-icon { color: var(--bc-ink); }

.get-in-touch-card {
	background: var(--bc-accent);
	color: #fff;
	padding: 1.5rem 2rem;
	border-radius: 8px;
	align-self: flex-end;
}
.get-in-touch-card h3 { color: #fff; margin-bottom: 0.5em; }
.get-in-touch-card p { margin: 0; }
.get-in-touch-card a { color: #fff; text-decoration: none; }
.get-in-touch-card a:hover { text-decoration: underline; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { padding: 1rem 24px 5rem; }
.testimonials__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.testimonials__list { grid-template-columns: 1fr 1fr; }
}
.testimonial {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.testimonial p { font-style: normal; color: var(--bc-ink); margin: 0.4em 0 0; }
.testimonial cite {
	order: -1;
	display: block;
	font-style: normal;
	font-weight: 700;
	color: var(--bc-ink);
}

/* ==========================================================================
   Property grid / cards
   ========================================================================== */
.featured-properties,
.listing-page { padding: 4rem 24px; }
.listing-page__title { text-align: center; margin-bottom: 0.4rem; }
.listing-page__intro { text-align: center; max-width: 640px; margin: 0 auto 3rem; color: var(--bc-muted); }
.featured-properties h2 { text-align: center; margin-bottom: 0.4rem; }
.featured-properties__subtitle { text-align: center; color: var(--bc-muted); margin-bottom: 2.5rem; }
.featured-properties__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

.property-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}
@media (min-width: 640px) {
	.property-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.property-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.property-card {
	background: var(--bc-surface);
	border: 1px solid var(--bc-line);
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.property-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.property-card__link { display: block; color: inherit; text-decoration: none; }
.property-card__media { position: relative; aspect-ratio: 4 / 3; background: #eee; overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; }
.property-card__placeholder {
	width: 100%; height: 100%;
	background: repeating-linear-gradient(135deg, #ece7dc, #ece7dc 10px, #e4ded0 10px, #e4ded0 20px);
}
.property-card__badge {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	background: var(--bc-badge);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
}
.property-card__body { padding: 1.25rem; }
.property-card__price { font-weight: 700; color: var(--bc-accent-dark); margin-bottom: 0.2em; }
.property-card__title { font-size: 1.05rem; margin: 0 0 0.3em; }
.property-card__address { color: var(--bc-muted); font-size: 0.9rem; margin-bottom: 0.6em; }
.property-card__meta {
	display: flex;
	gap: 1.25rem;
	font-size: 0.85rem;
	color: var(--bc-ink);
	border-top: 1px solid var(--bc-line);
	padding-top: 0.6em;
}
.bcp-no-properties, .listing-page p.bcp-no-properties { text-align: center; color: var(--bc-muted); }

/* ==========================================================================
   Single property
   ========================================================================== */
.property-single { padding: 3rem 24px 4rem; max-width: 960px; }
.property-single__header { margin-bottom: 1.5rem; }
.property-single__header h1 { margin-bottom: 0.2em; }
.property-single__summary { color: var(--bc-muted); margin: 0 0 0.4em; }
.property-single__price { font-size: 1.2rem; font-weight: 700; color: var(--bc-accent); }
.property-single__media { position: relative; margin-bottom: 1.25rem; border-radius: 4px; overflow: hidden; }
.property-single__meta { margin-bottom: 2rem; border-top: none; padding-top: 0; font-size: 0.95rem; }
.property-single__content { border-top: 1px solid var(--bc-line); padding-top: 1.5rem; }
.property-single__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }

.related-properties { padding: 1rem 24px 4rem; max-width: var(--bc-container); margin: 0 auto; }
.related-properties h2 { text-align: center; margin-bottom: 2rem; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-banner {
	width: 100%;
	height: 320px;
	aspect-ratio: auto;
	border-radius: 0;
	border: none;
	margin: 0;
}
.contact-banner__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.contact-form-section {
	max-width: 760px;
	margin: -160px auto 4rem;
	position: relative;
	background: var(--bc-paper);
	border-radius: 8px;
	padding: 3rem 3rem 3.5rem;
	text-align: center;
}
@media (max-width: 640px) {
	.contact-form-section { margin: -80px 16px 3rem; padding: 2rem 1.5rem 2.5rem; }
}
.contact-form-section .form-notice { text-align: left; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; text-align: left; }
.form-row { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.4em; }
.form-row--half { grid-column: span 1; }
@media (max-width: 560px) {
	.form-row--half { grid-column: 1 / -1; }
}
.form-row label { font-size: 0.85rem; font-weight: 600; }
.form-row input,
.form-row select,
.form-row textarea {
	font-family: var(--bc-font-body);
	font-size: 1rem;
	padding: 0.7em 0.9em;
	border: 1px solid var(--bc-line);
	border-radius: 3px;
	background: var(--bc-surface);
	color: var(--bc-ink);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--bc-accent);
}
.bc-hp-field { position: absolute; left: -9999px; }
.form-notice { padding: 0.9em 1.2em; border-radius: 3px; margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-notice--success { background: #eaf3ee; color: #2e6b4f; border: 1px solid #bfd8ca; }
.form-notice--error { background: #fbeceb; color: #8a2b23; border: 1px solid #f0c2bd; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #efeae0; margin-top: 4rem; }
.footer-ctas {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 4rem 24px 3rem;
}
@media (min-width: 700px) {
	.footer-ctas { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
	.footer-ctas { grid-template-columns: repeat(4, 1fr); }
}
.footer-cta { position: relative; }
.footer-cta h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.footer-cta p { color: #444; font-size: 0.92rem; }
@media (min-width: 1024px) {
	.footer-cta + .footer-cta { border-left: 1px solid var(--bc-line); padding-left: 2rem; }
}
.get-in-touch {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--bc-accent);
	text-decoration: none;
}
.get-in-touch::after { content: '\2192'; transition: transform 0.15s ease; }
.get-in-touch:hover { color: var(--bc-accent-dark); }
.get-in-touch:hover::after { transform: translateX(3px); }

.footer-info {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding: 2rem 24px 3rem;
	border-top: 1px solid #ddd5c2;
}
@media (min-width: 700px) {
	.footer-info { grid-template-columns: repeat(3, 1fr); }
}
.footer-info__col h4 { font-size: 1rem; margin-bottom: 0.6em; }
.footer-info__col p { margin: 0 0 0.6em; font-size: 0.92rem; display: flex; align-items: center; gap: 0.6em; }
.footer-info__col a { color: var(--bc-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 0.6em; }
.footer-info__col a[href^="tel:"] { color: var(--bc-accent); font-weight: 600; }
.footer-info__col a:hover { color: var(--bc-accent-dark); }
.phone-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	border-radius: 50%;
	background: var(--bc-accent);
	color: #fff;
	flex-shrink: 0;
}
.phone-badge .bc-icon { margin-right: 0; }

.footer-copyright {
	border-top: 1px solid #ddd5c2;
	padding: 1.25rem 24px;
	font-size: 0.82rem;
	color: #555;
}
.footer-copyright p { margin: 0; }

/* ==========================================================================
   Generic page fallback
   ========================================================================== */
.generic-page { padding: 4rem 24px; max-width: 800px; }
