/*
 * Azurra — base styles (FR-007, mobile-first).
 * NEUTRAL SKELETON: structure, spacing, and responsiveness only. The visual design
 * (palette, type, imagery treatment) is replaced when the approved HTML/CSS mockup
 * is integrated. Keep class names stable: tests and analytics hooks rely on
 * data-cta / ids, not on styling.
 */

:root {
	--c-bg: #ffffff;
	--c-surface: #f4f6f8;
	--c-text: #1b2430;
	--c-muted: #55606e;
	--c-primary: #0b5d7a;
	--c-primary-ink: #ffffff;
	--c-wa: #1a7f4b;          /* WhatsApp green, darkened for AA contrast with white */
	--c-border: #d9dee4;
	--c-focus: #f5a524;

	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--fs-base: 1rem;
	--fs-h1: clamp(2rem, 6vw, 3.5rem);
	--fs-h2: clamp(1.6rem, 4vw, 2.4rem);
	--fs-h3: 1.2rem;

	--radius: 12px;
	--gap: clamp(1rem, 3vw, 2rem);
	--section-y: clamp(3.5rem, 9vw, 6.5rem);
	--container: 1180px;
	--header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .75rem 1rem; background: var(--c-text); color: #fff; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 640px; }

.section { padding-block: var(--section-y); }
.section__header { max-width: 720px; margin-bottom: var(--gap); }
.section__title { font-size: var(--fs-h2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--c-primary); margin-bottom: .5rem; }
.prose > :last-child { margin-bottom: 0; }

/* Buttons — min 44px tap targets. */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
	font-weight: 600; text-decoration: none; border: 2px solid transparent;
	cursor: pointer; font: inherit; font-weight: 600; line-height: 1.2;
	transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-wa); color: #fff; }
.btn--primary:hover { background: #146a3e; }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--sm { min-height: 44px; padding: .5rem 1rem; }
.btn--lg { min-height: 52px; padding: .9rem 1.8rem; font-size: 1.05rem; }

/* Placeholder for images not yet supplied by the client. */
.az-placeholder {
	display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3;
	background: repeating-linear-gradient(45deg, #e6eaee 0 12px, #eef1f4 12px 24px);
	border: 2px dashed #9aa5b1; color: var(--c-muted); font-size: .9rem; text-align: center; padding: 1rem;
	border-radius: var(--radius);
}

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
	border-bottom: 1px solid var(--c-border); backdrop-filter: saturate(1.2) blur(6px);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { text-decoration: none; color: var(--c-text); font-weight: 700; font-size: 1.15rem; }
.brand__logo { max-height: 44px; width: auto; }

.nav-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 0; background: transparent; color: var(--c-text); cursor: pointer;
}
.site-nav { display: none; }
.site-nav.is-open {
	display: block; position: absolute; inset: var(--header-h) 0 auto 0;
	background: var(--c-bg); border-bottom: 1px solid var(--c-border); padding: 1rem;
}
.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li a { display: block; padding: .75rem .25rem; color: var(--c-text); text-decoration: none; font-weight: 500; }
/* No-JS: the toggle cannot work, so show the menu inline. */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.site-nav, .site-nav.is-open { display: flex; position: static; align-items: center; gap: 1.5rem; padding: 0; border: 0; }
	.site-nav ul { display: flex; gap: 1.5rem; margin: 0; }
	.site-nav li a { padding: .5rem 0; }
}

/* Hero */
.hero { position: relative; display: grid; min-height: min(88vh, 760px); color: #fff; isolation: isolate; }
.hero__media, .hero__content { grid-area: 1 / 1; }
.hero__media { position: relative; z-index: -1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,30,.25) 0%, rgba(10,20,30,.7) 100%); }
.hero__img, .hero .az-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.hero__content { align-self: end; padding-block: 3rem; }
.hero__title { font-size: var(--fs-h1); max-width: 18ch; }
.hero__text { font-size: 1.15rem; max-width: 52ch; }
.hero .eyebrow { color: #e6f3f8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero .btn--ghost { color: #fff; }

/* About */
.about__grid, .property__grid, .contact__grid { display: grid; gap: var(--gap); }
.about__img, .property__img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4 / 3; }
.stat { display: inline-flex; flex-direction: column; margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--c-primary); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.stat__label { font-size: .85rem; color: var(--c-muted); }
.stat__value { font-size: 2rem; font-weight: 700; line-height: 1.1; }

/* Property */
.property { background: var(--c-surface); }
.property__gallery { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.property__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.property__facts-title { font-size: var(--fs-h3); margin-top: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.5rem; }
.facts__item { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: .75rem 1rem; }
.facts dt { font-size: .8rem; color: var(--c-muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.property__note { color: var(--c-muted); margin: 1.5rem 0; }

/* Highlights */
.highlights__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card { padding: 1.5rem; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); }
.card .icon { color: var(--c-primary); margin-bottom: .75rem; }
.card__title { font-size: var(--fs-h3); }
.card p { color: var(--c-muted); margin: 0; }

/* Contact */
.contact { background: #0f2230; color: #eef3f6; }
.contact .eyebrow { color: #9fd3e6; }
.contact a { color: #fff; }
.contact__details { margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__details dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #a9bac6; }
.contact__details dd { margin: 0; }
.contact__form { background: var(--c-bg); color: var(--c-text); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); }
.contact__form a { color: var(--c-primary); }
.contact__form-title { font-size: var(--fs-h3); }

@media (min-width: 900px) {
	.about__grid { grid-template-columns: 1fr 1fr; align-items: center; }
	.property__grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
	.contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Lead form (markup from mu-plugins/azurra-leads.php) */
.lead-form { display: grid; gap: 1rem; }
.lead-form__field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.lead-form__field .req { color: #b42318; }
.lead-form__field .opt { color: var(--c-muted); font-weight: 400; font-size: .9rem; }
.lead-form input, .lead-form textarea {
	width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; font-size: 1rem;
	border: 1px solid #aab4bf; border-radius: 8px; background: #fff; color: var(--c-text);
}
.lead-form textarea { min-height: 130px; resize: vertical; }
.lead-form [aria-invalid="true"] { border-color: #b42318; border-width: 2px; }
.lead-form__error { color: #b42318; font-size: .9rem; margin: .35rem 0 0; }
.lead-form__error:empty { display: none; }
.lead-form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form__status { padding: .85rem 1rem; border-radius: 8px; font-weight: 600; }
.lead-form__status:empty { display: none; }
.lead-form__status[data-state="success"] { background: #e7f6ed; color: #0f5132; border: 1px solid #9bd3b0; }
.lead-form__status[data-state="error"] { background: #fdecea; color: #7a1c14; border: 1px solid #f1aca5; }
.lead-form__privacy { font-size: .85rem; color: var(--c-muted); margin: 0; }
.lead-form button[disabled] { opacity: .7; cursor: progress; }

/* Footer */
.site-footer { background: #0a1822; color: #b8c6d0; padding: 2rem 0 6rem; font-size: .9rem; }
.site-footer__inner { display: grid; gap: .5rem; }
.site-footer__brand { color: #fff; font-weight: 700; margin: 0; }
.site-footer__social { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.site-footer__social a { color: #fff; }
.site-footer__copy { margin: 0; }
@media (min-width: 900px) { .site-footer { padding-bottom: 2rem; } }

/* Floating WhatsApp button (mobile-first; smaller on desktop). */
.wa-float {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
	display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .8rem 1.1rem;
	border-radius: 999px; background: var(--c-wa); color: #fff; text-decoration: none; font-weight: 600;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float .icon { width: 24px; height: 24px; }
@media (max-width: 420px) { .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); } }
