/* =========================================================================
   Dev Developers Infra Group — stylesheet
   A calm, architectural look: deep ink blue + brass, blueprint-grid
   texture, a warm serif for headings. No framework, no build step.
   ========================================================================= */

:root {
	/* Colour */
	--ink: #16233F;
	--ink-2: #0F1830;
	--brass: #A9782C;
	--brass-light: #C79A4B;
	--maroon: #7B2D2D;
	--paper: #F6F1E6;
	--paper-2: #EEE4CE;
	--white: #FFFFFF;
	--text: #201C14;
	--text-muted: #635C4C;
	--line: rgba(22, 35, 63, 0.14);
	--line-light: rgba(255, 255, 255, 0.16);

	/* Type */
	--font-display: 'Fraunces', Georgia, serif;
	--font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Layout */
	--container: 1180px;
	--radius-sm: 3px;
	--radius: 6px;
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2.5rem;
	--space-5: 4rem;
	--space-6: 6rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.15;
	margin: 0 0 var(--space-2);
	font-weight: 600;
}
p { margin: 0 0 var(--space-2); max-width: 62ch; }
p:last-child { margin-bottom: 0; }
button { font-family: inherit; }

.sr-only {
	position: absolute; 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; top: 0; background: var(--ink); color: var(--white);
	padding: 0.75em 1.25em; z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.5em;
	padding: 0.85em 1.6em; border-radius: var(--radius-sm);
	font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
	cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--brass { background: var(--brass); color: var(--white); }
.btn--brass:hover { background: var(--brass-light); }
.btn--outline { background: transparent; border-color: var(--line-light); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--outline-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline-dark:hover { background: rgba(22,35,63,0.06); }
.btn--maroon { background: var(--maroon); color: var(--white); }
.btn--maroon:hover { background: #6a2626; }
.btn--small { padding: 0.6em 1.2em; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ink); border-bottom: 1px solid var(--line-light);
}
.site-header__inner {
	max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3);
	display: flex; align-items: center; justify-content: space-between; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white); }
.brand__sub { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--brass-light); }

.nav-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; }

.site-nav > ul { display: flex; align-items: center; gap: var(--space-3); }
.site-nav a {
	color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem;
	padding: 0.5em 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--white); border-bottom-color: var(--brass); }
.nav-cta a { border-bottom: none; }

.has-submenu { position: relative; }
.submenu-trigger { display: flex; align-items: center; }
.submenu-toggle {
	display: none; align-items: center; justify-content: center;
	background: none; border: none; color: rgba(255,255,255,0.85); cursor: pointer;
	padding: 0.5em; margin-left: 0.15rem;
}
.submenu-toggle svg { transition: transform 0.2s ease; }
.has-submenu.is-open .submenu-toggle svg { transform: rotate(180deg); }
.submenu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--ink-2); border: 1px solid var(--line-light); border-radius: var(--radius-sm);
	padding: 0.4rem 0; margin-top: 0.6rem; box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 0.6em 1em; border-bottom: none; font-size: 0.9rem; }
.submenu a:hover { background: rgba(255,255,255,0.06); }

/* ---------- Hero ---------- */
.hero {
	background: var(--ink); color: var(--white); position: relative; overflow: hidden;
}
.hero__inner {
	max-width: var(--container); margin: 0 auto; padding: var(--space-6) var(--space-3) var(--space-5);
	display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-4); align-items: center;
	position: relative; z-index: 1;
}
.hero__eyebrow { color: var(--brass-light); font-weight: 600; margin-bottom: var(--space-2); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.4rem); max-width: 14ch; }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.1rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 1rem; margin-top: var(--space-3); flex-wrap: wrap; }

.hero__blueprint {
	position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line-light); border-radius: var(--radius);
	background-image:
		linear-gradient(rgba(201,154,75,0.14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(201,154,75,0.14) 1px, transparent 1px);
	background-size: 28px 28px;
}
.hero__blueprint-img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; border-radius: var(--radius);
}

.hero--page {
	padding: var(--space-5) 0 var(--space-4);
}
.hero--page .hero__inner { grid-template-columns: 1fr; text-align: left; padding-top: 0; padding-bottom: 0; }
.hero--page h1 { max-width: 100%; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--ink-2); color: var(--white); }
.stats-bar__inner {
	max-width: var(--container); margin: 0 auto; padding: var(--space-4) var(--space-3);
	display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat { text-align: center; padding: 0 var(--space-2); border-left: 1px solid var(--line-light); }
.stat:first-child { border-left: none; }
.stat__value { font-family: var(--font-display); font-size: 2.4rem; color: var(--brass-light); font-weight: 600; }
.stat__label { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-top: 0.25rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section--tight { padding: var(--space-5) 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head p { color: var(--text-muted); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature / icon grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.feature-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	padding: var(--space-3); border-top: 3px solid var(--brass);
}
.feature-card__icon { color: var(--brass); margin-bottom: var(--space-2); }
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Story / two-column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split figure { margin: 0; }
.value-list li {
	display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line);
	color: var(--text-muted);
}
.value-list li:last-child { border-bottom: none; }
.value-list strong { color: var(--ink); }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); counter-reset: step; }
.process-step { position: relative; padding-top: var(--space-4); }
.process-step::before {
	counter-increment: step; content: counter(step);
	font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
	color: var(--white); background: var(--ink); width: 48px; height: 48px;
	border-radius: 50%; display: flex; align-items: center; justify-content: center;
	position: absolute; top: 0; left: 0;
}
.process-step h3 { font-size: 1.05rem; margin-top: 0.75rem; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Spec strip (price / plot size / status) ---------- */
.spec-strip { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.spec-strip__inner {
	display: flex; flex-wrap: wrap; gap: var(--space-4);
	padding-top: var(--space-3); padding-bottom: var(--space-3);
}
.spec-item { display: flex; flex-direction: column; gap: 0.2rem; }
.spec-item__label { font-size: 0.78rem; color: var(--text-muted); }
.spec-item__value { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); font-weight: 600; }

/* ---------- Amenities checklist ---------- */
.amenities-list li {
	display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0;
	color: var(--text-muted);
}
.amenities-list li::before {
	content: ''; flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15rem;
	border-radius: 50%; background: rgba(169,120,44,0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9782C' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: center; background-size: 11px;
}

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.project-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
}
.project-card__media {
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
	position: relative; overflow: hidden;
}
.project-card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.project-card h3 { font-size: 1.2rem; margin-bottom: 0; }
.project-card__tagline { color: var(--text-muted); font-size: 0.92rem; }
.project-card__facts { color: var(--brass); font-size: 0.85rem; font-weight: 600; margin: 0; }
.project-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.75rem; }
.project-card__location { font-size: 0.85rem; color: var(--text-muted); }
.status-pill {
	font-size: 0.75rem; font-weight: 600; padding: 0.25em 0.75em; border-radius: 999px;
	background: rgba(169,120,44,0.14); color: var(--brass);
}
.status-pill--completed { background: rgba(22,35,63,0.1); color: var(--ink); }
.status-pill--upcoming { background: rgba(123,45,45,0.12); color: var(--maroon); }
.project-card__link {
	display: block; text-align: center; padding: 0.85em; font-weight: 600; font-size: 0.9rem;
	border-top: 1px solid var(--line); color: var(--ink); transition: background 0.2s;
}
.project-card__link:hover { background: var(--paper-2); }

/* ---------- Project detail page ---------- */
.project-detail__highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.project-detail__highlights li { display: flex; gap: 0.6rem; color: var(--text-muted); padding: 0.35rem 0; }
.project-detail__highlights li::before { content: '—'; color: var(--brass); flex-shrink: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.project-gallery__tile {
	aspect-ratio: 4/3; border-radius: var(--radius); background: var(--paper-2);
	border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center;
	color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: var(--space-2);
}
.project-gallery__tile--photo {
	border: 1px solid var(--line); padding: 0; overflow: hidden;
}
.project-gallery__tile--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA banner ---------- */
.cta-banner {
	background: var(--maroon); color: var(--white); border-radius: var(--radius);
	padding: var(--space-4); display: flex; align-items: center; justify-content: space-between;
	gap: var(--space-3); flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.25rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,0.82); }
.site-footer__grid {
	max-width: var(--container); margin: 0 auto; padding: var(--space-5) var(--space-3) var(--space-4);
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-4);
}
.footer-about { color: rgba(255,255,255,0.65); font-size: 0.92rem; margin-top: var(--space-2); }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-2); }
.footer-social a {
	width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.footer-social a:hover { background: var(--brass); }
.footer-heading { color: var(--white); font-size: 1rem; margin-bottom: var(--space-2); }
.footer-links li, .footer-contact li { margin-bottom: 0.6rem; font-size: 0.92rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--brass-light); }
.site-footer__bottom {
	border-top: 1px solid var(--line-light); padding: var(--space-2) var(--space-3);
	text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
	position: fixed; bottom: 20px; right: 20px; width: 58px; height: 58px; border-radius: 50%;
	background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 20px rgba(0,0,0,0.25); z-index: 200; transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Forms ---------- */
.form-message { padding: 1em 1.25em; border-radius: var(--radius-sm); margin-bottom: var(--space-3); font-size: 0.95rem; }
.form-message--success { background: rgba(46,125,50,0.12); color: #1f5c22; border: 1px solid rgba(46,125,50,0.3); }
.form-message--error { background: rgba(123,45,45,0.1); color: var(--maroon); border: 1px solid rgba(123,45,45,0.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-group { margin-bottom: var(--space-2); }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink); }
.form-group input,
.form-group select,
.form-group textarea {
	width: 100%; padding: 0.8em 1em; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font-family: inherit; font-size: 0.95rem; background: var(--white); color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
	outline: none; border-color: var(--brass);
}
.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-4); align-items: start; }
.contact-card {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3);
}
.contact-card h3 { font-size: 1.05rem; }
.contact-card + .contact-card { margin-top: var(--space-3); }
.contact-info-list li { display: flex; gap: 0.6rem; padding: 0.4rem 0; color: var(--text-muted); }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- 404 / not found ---------- */
.not-found { text-align: center; padding: var(--space-6) 0; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__blueprint { max-width: 480px; }
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.process { grid-template-columns: repeat(2, 1fr); }
	.projects-grid { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; }
	.split--reverse { direction: ltr; }
	.stats-bar__inner { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-3); }
	.stat:nth-child(3) { border-left: none; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.contact-grid { grid-template-columns: 1fr; }
	.project-detail__highlights { grid-template-columns: 1fr; }
	.project-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
	.nav-toggle { display: flex; }
	.site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: var(--ink); border-top: 1px solid var(--line-light);
		padding: var(--space-2) var(--space-3) var(--space-3);
	}
	.site-nav.is-open { display: block; }
	.site-nav > ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.site-nav li { width: 100%; }
	.site-nav a { display: block; padding: 0.9em 0; border-bottom: 1px solid var(--line-light); }
	.has-submenu .submenu-trigger { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-light); }
	.has-submenu .submenu-trigger a { border-bottom: none; flex: 1; }
	.submenu-toggle { display: flex; }
	.has-submenu .submenu {
		position: static; display: none; box-shadow: none; border: none;
		margin: 0 0 0 1em; background: transparent;
	}
	.has-submenu.is-open .submenu { display: block; }
	.nav-cta { margin-top: var(--space-2); }
	.nav-cta a { display: inline-flex; }

	.feature-grid { grid-template-columns: 1fr; }
	.process { grid-template-columns: 1fr; }
	.projects-grid { grid-template-columns: 1fr; }
	.project-gallery { grid-template-columns: 1fr; }
	.form-row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.cta-banner { flex-direction: column; text-align: center; }
	.stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
}