/* Ave Maria Properties
   Palette: deep midnight navy + antique champagne gold on pearl white.
   Signature: arched (church-window) frames. */

:root {
  --blue: #10264a;        /* midnight navy */
  --blue-deep: #0a1830;   /* deeper navy for hero, band, footer */
  --blue-soft: #f1f2f5;   /* pearl */
  --gold: #b8955a;        /* antique champagne gold */
  --gold-light: #d9c08e;  /* gold on dark backgrounds */
  --gold-soft: #f5efe3;
  --ink: #131b2c;
  --muted: #5b6475;
  --line: #e2e1dc;
  --white: #ffffff;
  --wa: #1a6a4a;          /* deep emerald, still reads as WhatsApp */
  --wa-hover: #13553b;
  --sale: #10264a;
  --rent: #8a6a2f;

  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --arch: 50% 50% 8px 8px / 34% 34% 8px 8px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--blue-deep); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--blue-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.lede { color: var(--muted); max-width: 58ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); color: var(--gold-light); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn .ico, .ico { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: inset 0 -1px 0 rgba(184,149,90,.35); backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-deep); margin-right: auto; }
.brand-mark { width: 54px; height: auto; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--blue); letter-spacing: .01em; }
.brand-name small { display: block; font-family: var(--display); font-size: .78rem; color: var(--gold); letter-spacing: .32em; margin-top: 4px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.header-cta { min-height: 42px; padding: 0 16px; font-size: .95rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-cta .label { display: none; }
  .header-cta { width: 44px; padding: 0; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); background: radial-gradient(120% 90% at 85% 10%, #1a3460 0%, var(--blue-deep) 60%); color: #d6dbe6; }
.hero h1 { color: var(--white); }
.hero .lede { color: #c3cad8; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero .lede { font-size: 1.15rem; }
.hero-window { position: relative; aspect-ratio: 4 / 5; border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; overflow: hidden; background: var(--blue); box-shadow: 0 0 0 10px var(--blue-deep), 0 0 0 11px var(--gold); margin: 11px; }
.hero-window svg, .hero-window img { width: 100%; height: 100%; object-fit: cover; }
.hero-window .hero-photo { position: absolute; inset: 0; }
.hero-badge { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--blue-deep); color: var(--gold-light); border: 1px solid var(--gold); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap; box-shadow: 0 6px 20px rgba(18, 38, 80, .18); }

.search { margin-top: 28px; background: var(--white); border: 1px solid rgba(184,149,90,.5); border-radius: 18px; padding: 20px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); }
.deal-switch { display: inline-flex; padding: 4px; background: var(--blue-soft); border-radius: 999px; margin-bottom: 16px; border: 0; }
.deal-switch legend { padding: 0; }
.deal-switch label { position: relative; }
.deal-switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.deal-switch span { display: block; padding: 8px 20px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.deal-switch input:checked + span { background: var(--blue); color: var(--white); }
.deal-switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.search-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
.search-fields .btn { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
select, input[type="text"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2356627a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
select:disabled { color: #9aa3b5; background-color: #f4f6fa; }
textarea { min-height: 110px; resize: vertical; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue-soft); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-window { max-width: 360px; justify-self: center; order: -1; aspect-ratio: 5 / 4; width: calc(100% - 22px); }
}
@media (max-width: 560px) { .search-fields { grid-template-columns: 1fr; } }

/* ---------- notice ---------- */
.notice { background: var(--gold-soft); border: 1px solid #e3d3b0; color: #5e4a22; border-radius: var(--radius); padding: 12px 16px; font-size: .95rem; margin-bottom: 24px; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.card { background: var(--white); }
.card-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.card-media { position: relative; }
.card-img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--arch); background: var(--blue-soft); }
.ph { display: flex; align-items: center; justify-content: center; color: #b9ab8c; background: linear-gradient(180deg, #ecebe6, var(--blue-soft)); }
.ph svg { width: 26%; max-width: 80px; }
.card .tag { position: absolute; left: 12px; bottom: 12px; }
.card-body { padding: 16px 4px 4px; }
.card-price { font-weight: 800; font-size: 1.2rem; color: var(--ink); margin: 0 0 2px; }
.card-title { font-family: var(--body); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin: 0 0 8px; }
.card-link:hover .card-title { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); }
.card-link:hover .card-img { filter: brightness(1.04); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.facts li + li { position: relative; }
.facts li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.card.is-closed .card-img { filter: grayscale(.8) opacity(.7); }
.card.is-closed .card-price { color: var(--muted); }

.tag { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--white); }
.tag-sale { color: var(--sale); box-shadow: inset 0 0 0 1.5px var(--sale); }
.tag-rent { color: var(--rent); box-shadow: inset 0 0 0 1.5px var(--gold); }
.tag-closed { color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }

.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--muted); max-width: 60ch; }
.empty p:first-child { font-weight: 700; color: var(--ink); }

/* ---------- areas ---------- */
.areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.areas a { display: inline-block; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--blue-deep); font-weight: 700; }
.areas a:hover { border-color: var(--gold); background: var(--gold-soft); }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 52px; height: 62px; margin-bottom: 16px; border-radius: 50% 50% 6px 6px / 40% 40% 6px 6px; background: var(--blue); color: var(--gold-light); font-family: var(--display); font-size: 1.5rem; }
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- owners band ---------- */
.band { background: var(--blue-deep); color: #c3cad8; border-top: 1px solid rgba(184,149,90,.4); border-bottom: 1px solid rgba(184,149,90,.4); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 48px var(--gutter); }
.band h2 { color: var(--white); margin-bottom: .2em; }
.band p { margin: 0; max-width: 52ch; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px; overflow: hidden; background: var(--blue-soft); box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--gold); display: flex; align-items: center; justify-content: center; color: #8ea3c6; text-align: center; font-size: .9rem; padding: 24px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait:has(img) { padding: 0; }
.rera { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--gold-soft); font-size: .95rem; margin-top: 8px; }
.rera strong { color: var(--blue-deep); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 300px; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.contact form { display: grid; gap: 16px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list span:first-child { color: var(--muted); font-weight: 700; font-size: .92rem; }
.map { width: 100%; height: 280px; border: 0; border-radius: 14px; background: var(--blue-soft); }
.form-error { color: #a12a2a; font-weight: 700; margin: 0; }
.form-note { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-list li { grid-template-columns: 1fr; gap: 0; } }

/* ---------- listings page ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 28px; background: var(--blue-deep); color: #c3cad8; }
.page-head h1 { color: var(--white); }
.page-head .lede { color: #c3cad8; }
.page-head .field label { color: var(--gold-light); }
.page-head .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.3); }
.page-head .btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.page-head h1 { margin-bottom: .25em; font-size: clamp(2rem, 4vw, 2.8rem); }
.filters { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; margin-top: 24px; }
.filters .btn { min-height: 48px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 20px; color: var(--muted); font-weight: 700; }
@media (max-width: 1000px) { .filters { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr 1fr; } .filters .btn { grid-column: 1 / -1; } }

/* ---------- detail page ---------- */
.crumbs { margin: 28px 0 20px; font-weight: 700; }
.crumbs a::before { content: "‹ "; }
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 72px; }
.detail-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 50% 50% 12px 12px / 22% 22% 12px 12px; }
.detail-img.ph svg { width: 18%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--gold); }
.detail-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 14px 0 8px; }
.detail-price { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; }
.spec { margin: 0 0 20px; border-top: 1px solid var(--line); }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; text-align: right; }
.detail-desc { color: var(--ink); }
.h-small { font-family: var(--body); font-weight: 800; font-size: 1rem; color: var(--ink); margin: 20px 0 10px; }
.amenities { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.amenities li { padding: 6px 14px; background: var(--blue-soft); border-radius: 999px; font-size: .92rem; }
.enquire { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); position: sticky; top: 92px; }
.enquire p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .enquire { position: static; } }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-deep); color: #b9c1d1; border-top: 3px solid var(--gold); padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #e4e7ee; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--display); font-size: 1.4rem; color: var(--gold-light); margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #8e98ab; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp (mobile) ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa-float .ico { width: 28px; height: 28px; }
@media (max-width: 860px) { .wa-float { display: flex; } }

/* ---------- property types ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.type-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.type-img { display: block; aspect-ratio: 3 / 3.6; border-radius: var(--arch); overflow: hidden; background: linear-gradient(180deg, #ecebe6, var(--blue-soft)); }
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.type-body { display: block; padding: 16px 4px 0; }
.type-title { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--blue-deep); margin-bottom: 4px; }
.type-text { display: block; color: var(--muted); font-size: .95rem; }
.type-card:hover .type-title { color: var(--blue); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.type-card:hover img { filter: brightness(1.05) saturate(1.05); }
.photo-note { margin: 28px 0 0; font-size: .85rem; color: var(--muted); }
.empty-lead { padding: 56px 0 24px; }
.empty-lead .btn { margin-top: 8px; }
@media (max-width: 960px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .types { grid-template-columns: 1fr 1fr; gap: 14px; } .type-title { font-size: 1.1rem; } .type-text { font-size: .85rem; } }
