/* JAS Real Estate — neutral starter styles (replaced when the brand design is approved). */
:root {
  --ink: #1d2433; --muted: #667085; --line: #e4e7ec; --bg: #ffffff; --soft: #f5f7fa;
  --brand: #1f3a5f; --brand-ink: #ffffff; --accent: #b08d57; --wa: #1fa855; --radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: .4em 0; }
h2 { font-size: 1.35rem; margin: 0 0 .7em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.block { margin: 2.2rem 0; }
.empty { padding: 2rem 0; color: var(--muted); }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--brand); text-decoration: none; letter-spacing: .02em; }
.main-nav { display: flex; gap: 18px; flex: 1; }
.main-nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 6px 0; }
.main-nav a.active, .main-nav a:hover { color: var(--brand); box-shadow: inset 0 -2px var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem; }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: 7px 12px; font-size: .85rem; }
.btn-outline { background: #fff; color: var(--brand); }
.btn-wa { background: var(--wa); border-color: var(--wa); }

.hero { background: linear-gradient(135deg, var(--brand), #2d5486); color: #fff; padding: 64px 0; }
.hero h1 { color: #fff; }
.intents { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; max-width: 640px; }
.intent { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); padding: 18px; color: #fff; text-decoration: none; }
.intent strong { display: block; font-size: 1.2rem; } .intent span { opacity: .85; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--soft); padding: 14px; border-radius: var(--radius); margin: 1rem 0; }
.filters label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 4px; }
.filters select { min-width: 150px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--soft); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; padding: 3px 8px; border-radius: 999px; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.price { font-weight: 700; color: var(--brand); } .price.big { font-size: 1.6rem; }
.card-title { font-size: 1rem; margin: 2px 0; } .card-title a { color: var(--ink); text-decoration: none; }
.facts { display: flex; gap: 12px; color: var(--muted); margin: 4px 0 8px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.pager { margin: 2rem 0; display: flex; gap: 18px; align-items: center; }

.crumbs { margin: 14px 0; color: var(--muted); } .crumbs a { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery a { display: block; background: var(--soft); } .gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main { grid-row: span 2; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; margin-top: 24px; }
.keyfacts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.keyfacts li { background: var(--soft); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.keyfacts span { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); }
.amenities { columns: 2; padding-left: 1.1em; }
.prose p { margin: 0 0 1em; }
.contact-box { position: sticky; top: 84px; align-self: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.agent { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.enquiry { display: flex; flex-direction: column; gap: 10px; }
.enquiry h3 { margin: 0; font-size: 1.05rem; }
.enquiry label { display: flex; flex-direction: column; font-size: .85rem; gap: 4px; }
.enquiry input, .enquiry textarea { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.enquiry label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 10px 12px; border-radius: 8px; font-size: .9rem; } .notice.ok { background: #e7f6ec; } .notice.err { background: #fdecec; }

.filters input[type=search] { min-width: 170px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.enquiry select { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.contact-box hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.project-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; background: var(--soft); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; font-size: .8rem; }
.plan-bar { display: flex; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.plan-bar > div { background: var(--brand); color: #fff; padding: 12px 10px; display: flex; flex-direction: column; min-width: 70px; }
.plan-bar > div:nth-child(even) { background: var(--accent); }
.plan-bar span { font-size: .75rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-list { list-style: none; padding: 0; } .plan-list li { padding: 4px 0; }
.tab-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab-buttons button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .85rem; }
.tab-buttons button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.thumbs a { display: block; border-radius: 8px; overflow: hidden; background: var(--soft); color: var(--ink); text-decoration: none; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs.plans span { display: block; padding: 6px 8px; }
.video { position: relative; aspect-ratio: 16 / 9; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; } .faq summary { cursor: pointer; font-weight: 600; }
.dev-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dev-card { align-items: center; text-align: center; padding: 20px; gap: 8px; text-decoration: none; color: var(--ink); }
.dev-card img { max-height: 60px; width: auto; object-fit: contain; }
.dev-head { display: flex; align-items: center; gap: 16px; margin: 16px 0; } .dev-head img { max-height: 64px; width: auto; }

.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 760px; }
.hero { background-size: cover; background-position: center; } .hero .lead { color: rgba(255,255,255,.85); }
.hero-link { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips a, .chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: .85rem; background: #fff; }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
a.chip { display: inline-block; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 14px 0; }
.stats > div { background: var(--soft); border-radius: var(--radius); padding: 16px; }
.stats strong { display: block; font-size: 1.5rem; color: var(--brand); } .stats span { color: var(--muted); font-size: .85rem; }
.stats.big strong { font-size: 2.2rem; }
.report-band { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; text-align: center; }
.awards img { max-height: 70px; margin: 0 auto 6px; object-fit: contain; } .awards figure { margin: 0; }
.testimonial { margin: 0; padding: 18px; } .testimonial p { margin: 8px 0; } .stars { color: var(--accent); letter-spacing: 2px; }
.area-card, .team-card { text-decoration: none; color: var(--ink); }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.team-card .card-img { aspect-ratio: 1; } .team-card .no-photo { font-size: 3rem; }
.agent-profile { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin: 16px 0; }
.agent-profile img { width: 220px; height: 220px; border-radius: var(--radius); object-fit: cover; }
.press-logo { max-height: 36px; width: auto; margin-bottom: 6px; }
.report-cover { border-radius: var(--radius); margin-top: 16px; max-width: 420px; }
.article { max-width: 820px; } .article .prose { font-size: 1.05rem; } .article .prose img { border-radius: 8px; margin: 12px 0; }
.share a { margin-right: 10px; }
.steps { padding-left: 1.2em; } .steps li { margin-bottom: 12px; }
.vacancy { border-bottom: 1px solid var(--line); padding: 14px 0; } .vacancy summary { cursor: pointer; }
.quiz { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 12px; } .quiz legend { font-weight: 600; margin-bottom: 8px; }
.chip-radio { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.newsletter { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.newsletter input { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.footer-grid > div > strong { display: block; margin: 10px 0 6px; } .footer-grid > div > a { display: block; padding: 2px 0; color: var(--ink); text-decoration: none; font-size: .9rem; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.socials a { margin-right: 12px; }
.consent { position: fixed; left: 16px; bottom: 16px; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 30; }
.consent p { margin: 0 0 10px; } .consent .btn { margin-right: 6px; }
.wa-float { position: fixed; right: 18px; bottom: 18px; background: var(--wa); color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); z-index: 20; }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0; background: var(--soft); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .9rem; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .contact-box { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; }
  .gallery .main { grid-column: span 2; grid-row: auto; }
  .gallery a:nth-child(n+4) { display: none; }
  .header-row .btn-small { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .agent-profile img { width: 140px; height: 140px; }
}
@media (min-width: 861px) and (max-width: 1100px) { .main-nav { gap: 12px; font-size: .9rem; } }
