/* =========================================================================
   AFAAQ Real Estate — main stylesheet
   Gold / Bronze + Black luxury system. Hand-written, no build step.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	--gold: #A67C2E;
	--gold-light: #C9A227;
	--gold-dark: #8A6624;
	--gold-soft: #EFE6D3;
	--dark: #17130D;
	--dark-2: #221C14;
	--ink: #2A2620;
	--muted: #6E675C;
	--line: #E7E1D6;
	--light: #F7F5F0;
	--cream: #FBFAF6;
	--white: #ffffff;

	--font-head: "Playfair Display", Georgia, serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--container: 1200px;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow-sm: 0 2px 10px rgba(23,19,13,.06);
	--shadow: 0 14px 40px rgba(23,19,13,.10);
	--shadow-lg: 0 26px 60px rgba(23,19,13,.16);
	--ease: cubic-bezier(.4, 0, .2, 1);
	--header-h: 84px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: #d8d2c6; }
.section--dark .section__title, .section--dark h2, .section--dark h3 { color: #fff; }

.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 { position: absolute; left: -999px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 10px 16px; border-radius: 6px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
	display: inline-block; font-family: var(--font-body); font-weight: 600;
	font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.eyebrow--light { color: var(--gold-light); }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: .3em; }
.section__intro { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.section__head { margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--center { text-align: center; flex-direction: column; align-items: center; }
.section__head--center .section__intro { margin-inline: auto; }

.prose { color: var(--ink); }
.prose h2 { font-size: 1.9rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.2em; }
.prose p { margin-bottom: 1.1rem; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.1rem; }
.prose ul li { margin-bottom: .4em; }
.prose--wide { max-width: 900px; margin-inline: auto; }
.prose--normal { max-width: 760px; margin-inline: auto; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

/* ---------- Icons ---------- */
.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
	padding: 14px 30px; border-radius: 50px; border: 1.5px solid transparent;
	cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(166,124,46,.32); }
.btn--primary:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(166,124,46,.42); }
.btn--outline { background: transparent; color: var(--dark); border-color: var(--line); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--lg { padding: 17px 38px; font-size: 1.02rem; }
.btn--sm { padding: 11px 22px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #c9c1b3; font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 16px; }
.topbar__msg { margin: 0; letter-spacing: .02em; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__contact a { color: #c9c1b3; display: inline-flex; align-items: center; gap: 7px; }
.topbar__contact a:hover { color: var(--gold-light); }
.topbar__contact .icon { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
	backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
	transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand__logo { height: 54px; width: auto; }
.brand__text { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--dark); }

.site-nav .nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
	display: block; padding: 10px 16px; color: var(--ink); font-weight: 500; font-size: .97rem;
	border-radius: 8px; position: relative;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { color: var(--gold-dark); }
.nav-menu .current-menu-item > a::after, .nav-menu a:hover::after {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff;
	box-shadow: var(--shadow); border-radius: var(--radius-sm); padding: 8px; opacity: 0; visibility: hidden;
	transform: translateY(8px); transition: all .2s var(--ease);
}
.nav-menu li { position: relative; }
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a::after { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.nav-mobile-extra { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--dark); padding: 6px; }
.nav-toggle .icon--close { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: min(88vh, 820px); display: flex; align-items: center;
	background: var(--dark-2) var(--hero-bg, none) center/cover no-repeat;
	color: #fff; padding: 90px 0 70px;
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(15,12,8,.86) 0%, rgba(15,12,8,.55) 55%, rgba(15,12,8,.35) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 720px; }
.hero__title { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.08; margin-bottom: .35em; }
.hero__title em, .hero__title span { color: var(--gold-light); font-style: normal; }
.hero__sub { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #e4ddce; max-width: 600px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__search { margin-top: 44px; }
.hero__stats { display: flex; gap: 44px; margin-top: 48px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-size: 2.2rem; color: var(--gold-light); line-height: 1; }
.hero__stats span { font-size: .9rem; color: #cfc7b7; margin-top: 6px; letter-spacing: .03em; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); animation: bob 2s var(--ease) infinite; }
.hero__scroll .icon { transform: rotate(90deg); }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Property search ---------- */
.property-search {
	display: flex; gap: 10px; background: #fff; padding: 12px; border-radius: var(--radius);
	box-shadow: var(--shadow); flex-wrap: wrap;
}
.property-search__field { flex: 1 1 160px; display: flex; }
.property-search__field--kw { flex: 2 1 240px; }
.property-search input, .property-search select {
	width: 100%; border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius-sm);
	padding: 13px 15px; font-family: inherit; font-size: .95rem; color: var(--ink); appearance: none;
}
.property-search select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A67C2E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.property-search input:focus, .property-search select:focus { outline: none; border-color: var(--gold); }
.property-search__submit { flex: 0 0 auto; }
.property-search--bar { box-shadow: var(--shadow-sm); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.about__img--overlap {
	position: absolute; bottom: -34px; right: -26px; width: 46%; border: 6px solid #fff;
	box-shadow: var(--shadow-lg);
}
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin: 22px 0 30px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.checklist .icon { color: #fff; background: var(--gold); border-radius: 50%; padding: 4px; margin-top: 2px; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
	display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 36px 30px; transition: all .3s var(--ease); position: relative; overflow: hidden;
}
a.service-card { color: inherit; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
	border-radius: 16px; background: var(--gold-soft); color: var(--gold-dark); margin-bottom: 20px;
	transition: all .3s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--gold); color: #fff; }
.service-card__title { font-size: 1.28rem; margin-bottom: 10px; }
.service-card__text { color: var(--muted); font-size: .98rem; margin: 0; }
.service-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--gold-dark); font-weight: 600; font-size: .9rem; }

/* ---------- Stats band ---------- */
.stats-band { position: relative; background: var(--dark); color: #fff; padding: clamp(46px, 6vw, 76px) 0; }
.stats-band--image { background: var(--dark) var(--stats-bg) center/cover fixed no-repeat; }
.stats-band__overlay { position: absolute; inset: 0; background: rgba(15,12,8,.82); }
.stats-band .container { position: relative; z-index: 2; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--gold-light); line-height: 1; display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat__suffix { font-size: .7em; }
.stat__label { margin-top: 10px; font-size: .95rem; color: #cfc7b7; letter-spacing: .03em; }
.stat--sm .stat__num { color: var(--gold-dark); font-size: 2rem; }
.stat--sm .stat__label { color: var(--muted); }

/* ---------- Featured / property grid ---------- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.property-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	transition: all .3s var(--ease); display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.property-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; display: block; }
.property-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property-card:hover .property-card__img { transform: scale(1.06); }
.property-card__img--ph { display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); }
.badge {
	position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; color: #fff; background: var(--gold);
}
.badge--ready { background: #2f7d5b; }
.badge--off-plan { background: var(--gold-dark); }
.badge--resale { background: #3d6ea5; }
.property-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.property-card__price { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 6px; }
.property-card__title { font-size: 1.18rem; margin-bottom: 8px; line-height: 1.3; }
.property-card__title a { color: var(--dark); }
.property-card__title a:hover { color: var(--gold-dark); }
.property-card__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.property-card__loc .icon { color: var(--gold); }
.property-card__specs { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: auto; }
.property-card__specs li { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink); }
.property-card__specs .icon { color: var(--gold); }
.property-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.property-card__dev { font-size: .85rem; color: var(--muted); font-weight: 500; }
.property-card__link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--gold-dark); }

/* ---------- Partners ---------- */
.partners__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dev-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center;
	transition: all .3s var(--ease); display: flex; flex-direction: column; align-items: center;
}
.dev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.dev-card__logo { height: 76px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.dev-card__logo img { max-height: 76px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: all .3s var(--ease); }
.dev-card:hover .dev-card__logo img { filter: grayscale(0); opacity: 1; }
.dev-card__title { font-size: 1.15rem; margin-bottom: 6px; }
.dev-card__tag { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.dev-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: .88rem; }
.dev-logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--dark); }
.partners__logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.dev-logo { display: flex; align-items: center; justify-content: center; height: 100px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.dev-logo img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: all .3s var(--ease); }
.dev-logo:hover img { filter: grayscale(0); opacity: 1; }
.partners__cta { text-align: center; margin-top: 46px; }

/* ---------- Why us ---------- */
.why__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.why__grid--nomedia { grid-template-columns: 1fr; }
.why__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.why__list { display: grid; gap: 26px; margin-top: 10px; }
.why__grid--nomedia .why__list { grid-template-columns: 1fr 1fr; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item__icon { flex: none; width: 54px; height: 54px; border-radius: 14px; background: rgba(201,162,39,.15); color: var(--gold-light); display: flex; align-items: center; justify-content: center; }
.why-item__title { font-size: 1.18rem; color: #fff; margin-bottom: 6px; }
.why-item__text { color: #b8b1a3; margin: 0; font-size: .96rem; }

/* ---------- Testimonials ---------- */
.testimonials__slider { position: relative; }
.testimonials__track { display: flex; gap: 26px; overflow: hidden; scroll-behavior: smooth; }
.testimonials__slide { flex: 0 0 calc(33.333% - 17.3px); }
.testimonial {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; height: 100%;
	position: relative; display: flex; flex-direction: column;
}
.testimonial__quote-mark { color: var(--gold-soft); position: absolute; top: 22px; right: 26px; }
.testimonial__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.testimonial__text { font-size: 1.05rem; line-height: 1.7; color: var(--ink); margin: 0 0 22px; font-style: italic; }
.testimonial__author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.testimonial__avatar--ph { display: flex; align-items: center; justify-content: center; background: var(--gold); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.testimonial__name { display: block; font-family: var(--font-head); font-size: 1.08rem; color: var(--dark); }
.testimonial__role { color: var(--muted); font-size: .88rem; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.slider-nav__btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--dark); display: flex; align-items: center; justify-content: center; transition: all .25s var(--ease); }
.slider-nav__btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.slider-nav__btn[data-slide="prev"] .icon { transform: rotate(180deg); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); padding: 0; transition: all .25s var(--ease); }
.slider-dots button.is-active { background: var(--gold); width: 26px; border-radius: 5px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%); color: #fff; padding: clamp(50px, 7vw, 90px) 0; overflow: hidden; }
.cta-band--image { background: var(--dark) var(--cta-bg) center/cover no-repeat; }
.cta-band__overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,12,8,.9), rgba(15,12,8,.6)); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%); }
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-bottom: .35em; }
.cta-band__sub { color: #d8d2c6; margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-weight: 600; font-size: 1.1rem; }
.cta-band__phone .icon { color: var(--gold-light); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.contact__cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-card__icon { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; }
.contact-card h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 5px; }
.contact-card p { margin: 0; font-weight: 500; color: var(--ink); }
.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--gold-dark); }
.contact__map { margin-top: 44px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact__map iframe { display: block; }

/* ---------- Lead form ---------- */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.lead-form__title { font-size: 1.4rem; margin-bottom: 22px; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form__field { margin-bottom: 16px; display: flex; flex-direction: column; }
.lead-form__field label { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.lead-form__field label span { color: var(--gold-dark); }
.lead-form__field input, .lead-form__field select, .lead-form__field textarea {
	border: 1px solid var(--line); background: var(--cream); border-radius: var(--radius-sm);
	padding: 13px 15px; font-family: inherit; font-size: .96rem; color: var(--ink); width: 100%; transition: border-color .2s;
}
.lead-form__field input:focus, .lead-form__field select:focus, .lead-form__field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.lead-form__field textarea { resize: vertical; }
.lead-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.lead-form__submit { margin-top: 6px; position: relative; }
.lead-form__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.lead-form.is-loading .lead-form__spinner { display: inline-block; }
.lead-form.is-loading .lead-form__submit { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.lead-form__message { margin: 14px 0 0; font-size: .92rem; font-weight: 500; display: none; padding: 12px 16px; border-radius: var(--radius-sm); }
.lead-form__message.is-success { display: block; background: #e9f5ef; color: #1f6b47; }
.lead-form__message.is-error { display: block; background: #fbeaea; color: #a93838; }
.lead-form--compact { padding: 24px; margin-top: 20px; }
.lead-form--compact .lead-form__row { grid-template-columns: 1fr; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--light); padding: clamp(48px, 7vw, 90px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-banner--slim { padding: clamp(40px, 5vw, 64px) 0; }
.page-banner--image { position: relative; background: var(--dark) var(--banner) center/cover no-repeat; border-bottom: 0; color: #fff; }
.page-banner--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,8,.55), rgba(15,12,8,.8)); }
.page-banner--image .container { position: relative; z-index: 2; }
.page-banner--image .page-banner__title { color: #fff; }
.page-banner__title { font-size: clamp(2rem, 4vw, 3.2rem); margin: 8px 0 0; }
.page-banner__sub { color: var(--muted); font-size: 1.08rem; margin: 12px 0 0; max-width: 640px; }
.page-banner--image .page-banner__sub { color: #e4ddce; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs span[aria-hidden] { color: var(--line); }
.breadcrumbs--light, .breadcrumbs--light a { color: #cfc7b7; }

/* ---------- Property archive ---------- */
.property-archive__filter { margin-bottom: 40px; }

/* ---------- Single property ---------- */
.property-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; background: var(--dark-2) var(--hero-bg, none) center/cover no-repeat; color: #fff; padding: 60px 0 46px; }
.property-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,12,8,.4), rgba(15,12,8,.85)); }
.property-hero__inner { position: relative; z-index: 2; width: 100%; }
.property-hero .badge { position: static; display: inline-block; margin: 14px 0; }
.property-hero__title { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 6px 0; }
.property-hero__loc { display: flex; align-items: center; gap: 8px; color: #e4ddce; margin-bottom: 12px; }
.property-hero__loc .icon { color: var(--gold-light); }
.property-hero__price { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; color: var(--gold-light); }
.property-single__layout { display: grid; grid-template-columns: 1fr 380px; gap: 44px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); align-items: start; }
.property-specs { display: flex; flex-wrap: wrap; gap: 14px; padding: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 34px; }
.property-specs li { display: flex; align-items: center; gap: 10px; font-weight: 600; padding-right: 22px; border-right: 1px solid var(--line); }
.property-specs li:last-child { border-right: 0; }
.property-specs .icon { color: var(--gold); }
.property-section { margin-bottom: 40px; }
.property-section__title { font-size: 1.5rem; padding-bottom: 12px; border-bottom: 2px solid var(--gold-soft); margin-bottom: 22px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list .icon { color: var(--gold); }
.payment-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.payment-step { text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; }
.payment-step__pct { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--gold-dark); }
.payment-step__lbl { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.property-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }
.property-sidebar__price { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 18px; }
.property-meta { margin-bottom: 20px; }
.property-meta li { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.property-meta li:last-child { border-bottom: 0; }
.property-meta span { color: var(--muted); }
.property-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid__item { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid__item:hover img { transform: scale(1.08); }

/* ---------- Developer single ---------- */
.developer-banner__head { display: flex; align-items: center; gap: 24px; margin-top: 16px; }
.developer-banner__logo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; height: 100px; display: flex; align-items: center; }
.developer-banner__logo img { max-height: 68px; width: auto; }
.developer-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.developer-stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.developer-layout__aside .property-meta { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; margin-bottom: 18px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post-card__media { aspect-ratio: 16/10; overflow: hidden; display: block; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img { transform: scale(1.05); }
.post-card__img--ph { display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-size: .82rem; color: var(--muted); }
.post-card__cat { background: var(--gold-soft); color: var(--gold-dark); padding: 4px 11px; border-radius: 20px; font-weight: 600; }
.post-card__title { font-size: 1.25rem; margin-bottom: 10px; line-height: 1.3; }
.post-card__title a { color: var(--dark); }
.post-card__title a:hover { color: var(--gold-dark); }
.post-card__excerpt { color: var(--muted); font-size: .96rem; margin-bottom: 16px; }
.post-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.single-post__meta { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; }
.single-post__body { max-width: 800px; margin-inline: auto; padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.single-post__tags { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.single-post__tags a { background: var(--light); padding: 6px 14px; border-radius: 20px; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a8a193; padding-top: clamp(52px, 6vw, 80px); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 20px; }
.footer-logo--text { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: #fff; display: inline-block; }
.footer-about { font-size: .95rem; line-height: 1.7; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: #cfc7b7; font-weight: 600; font-size: .95rem; transition: all .25s var(--ease); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-col__title { color: #fff; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 20px; }
.footer-menu li, .footer-contact li { margin-bottom: 12px; }
.footer-menu a { color: #a8a193; font-size: .95rem; }
.footer-menu a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.footer-contact .icon { color: var(--gold-light); flex: none; margin-top: 3px; }
.footer-contact a { color: #a8a193; }
.footer-contact a:hover { color: var(--gold-light); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; }
.site-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 26px; flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; font-size: .88rem; color: #85806f; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.legal-menu li { position: relative; }
.legal-menu li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 1px; height: 12px; background: rgba(255,255,255,.18); }
.legal-menu a { color: #a8a193; font-size: .85rem; }
.legal-menu a:hover { color: var(--gold-light); }
@media (max-width: 620px) {
	.site-footer__bottom-inner { flex-direction: column; text-align: center; }
	.legal-menu { justify-content: center; }
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
	position: fixed; bottom: 26px; right: 26px; z-index: 200; width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px rgba(37,211,102,.45); transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Pagination / empty ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.pagination .page-numbers:hover, .pagination .current { background: var(--gold); border-color: var(--gold); color: #fff; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .icon { color: var(--gold-soft); margin-bottom: 18px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-state .btn { margin-top: 20px; }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; max-width: 480px; margin-inline: auto; }
.search-form__input { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; font-family: inherit; font-size: 1rem; }
.search-form__input:focus { outline: none; border-color: var(--gold); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; }
.error-404__inner { max-width: 560px; margin-inline: auto; }
.error-404__code { font-family: var(--font-head); font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; color: var(--gold-soft); line-height: 1; display: block; }
.error-404__title { font-size: 2rem; margin: 10px 0; }
.error-404__text { color: var(--muted); margin-bottom: 28px; }
.error-404__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__scroll { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Admin lead status pills ---------- */
.lead-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.lead-status--new { background: #e9f5ef; color: #1f6b47; }
.lead-status--contacted { background: #eef3fb; color: #3d6ea5; }
.lead-status--qualified { background: #fdf3e3; color: #8A6624; }
.lead-status--closed { background: #f0eeea; color: #6E675C; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
	.partners__cards { grid-template-columns: repeat(3, 1fr); }
	.partners__logos { grid-template-columns: repeat(4, 1fr); }
	.property-single__layout { grid-template-columns: 1fr 320px; gap: 30px; }
}

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.topbar__msg { display: none; }
	.topbar__inner { justify-content: center; }

	/* backdrop-filter on the header would trap the fixed off-canvas nav inside it;
	   drop it on mobile so the panel is positioned against the viewport. */
	.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

	.site-nav {
		position: fixed; top: 0; right: 0; bottom: 0; left: auto;
		height: 100vh; height: 100dvh;
		width: min(340px, 86vw); background: #fff; z-index: 120;
		padding: calc(var(--header-h) + 22px) 24px 30px; transform: translateX(100%);
		transition: transform .35s var(--ease);
		box-shadow: var(--shadow-lg); overflow-y: auto; -webkit-overflow-scrolling: touch;
	}
	body.nav-open .site-nav { transform: translateX(0); }
	/* Lift the header's stacking context above the backdrop so the fixed nav
	   (which lives inside the header) paints over the overlay and stays clickable. */
	body.nav-open .site-header { z-index: 130; }
	body.nav-open { overflow: hidden; }
	.site-nav .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .nav-menu > li { border-bottom: 1px solid var(--line); }
	.site-nav .nav-menu > li:last-child { border-bottom: 0; }
	.site-nav .nav-menu a { display: flex; align-items: center; padding: 16px 6px; border-radius: 0; font-size: 1.08rem; font-weight: 500; }
	.site-nav .nav-menu .current-menu-item > a { color: var(--gold-dark); }
	.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { display: none; }
	.nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding-left: 14px; }
	/* CTA + contact shown at the bottom of the mobile menu */
	.nav-mobile-extra { margin-top: 26px; display: block; }
	.nav-mobile-extra .btn { display: flex; width: 100%; margin-bottom: 20px; }
	.nav-mobile-extra__contact { display: grid; gap: 12px; }
	.nav-mobile-extra__contact a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .96rem; }
	.nav-mobile-extra__contact .icon { color: var(--gold); }
	.nav-toggle { display: inline-flex; z-index: 130; position: relative; }
	body.nav-open .nav-toggle .icon--menu { display: none; }
	body.nav-open .nav-toggle .icon--close { display: block; }
	.header-cta { display: none; }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(15,12,8,.5); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .3s; }
	body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

	.about__grid, .why__grid, .contact__grid, .property-single__layout, .developer-layout { grid-template-columns: 1fr; }
	.why__grid--nomedia .why__list { grid-template-columns: 1fr; }
	.about__img--overlap { display: none; }
	.services__grid, .property-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-band__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
	.testimonials__slide { flex-basis: calc(50% - 13px); }
	.property-sidebar { position: static; }
	.property-single__layout { padding-top: 40px; }
	.developer-layout__aside { order: -1; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.section { padding: 52px 0; }
	.container { padding-inline: 18px; }
	.property-search { flex-direction: column; }
	.property-search__field { flex-basis: auto; }
	.hero__stats { gap: 28px; }
	.hero__stats strong { font-size: 1.8rem; }
	.services__grid, .property-grid, .post-grid, .partners__cards, .partners__logos, .feature-list, .checklist, .gallery-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr 1fr; }
	.stats-band__grid { grid-template-columns: 1fr 1fr; }
	.testimonials__slide { flex-basis: 100%; }
	.lead-form__row { grid-template-columns: 1fr; }
	.lead-form { padding: 24px; }
	.cta-band__inner { flex-direction: column; align-items: flex-start; }
	.section__head { flex-direction: column; align-items: flex-start; }
	.property-specs li { border-right: 0; padding-right: 0; }
	.btn { padding: 13px 24px; }
}
