/* Propvista landing pages — shared styles (all projects) */
:root {
  --navy: #1E3A8A;
  --navy-dark: #172E6E;
  --blue: #3B82F6;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --ink: #1F2937;
  --muted: #4B5563;
  --line: #E5E7EB;
  --soft: #F4F7FC;
  --wa: #0E7C3A;       /* WhatsApp green, dark enough for white text (AA) */
  --wa-hover: #0B6630;
  --radius: 12px;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 76px; /* room for sticky WhatsApp bar on mobile */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { background: var(--navy); color: var(--white); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand span { color: var(--gold); }
.lang { display: flex; gap: 4px; }
.lang a {
  color: var(--white); text-decoration: none; font-size: 15px; padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
.lang a[aria-current="page"] { background: var(--white); color: var(--navy); font-weight: 600; }

/* Hero */
.hero { position: relative; background: var(--navy-dark); color: var(--white); overflow: hidden; }
.hero-img { width: 100%; height: 62vh; min-height: 380px; max-height: 640px; object-fit: cover; object-position: center 30%; }
.hero-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 72px 0 24px;
  background: linear-gradient(to top, rgba(15,30,75,.96) 0%, rgba(15,30,75,.85) 55%, rgba(15,30,75,0) 100%);
}
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
.hero .sub { margin: 0 0 12px; font-size: 16px; color: #E8EEFB; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--gold); color: var(--white); border-radius: 999px; padding: 4px 12px; font-size: 15px; }

.ai-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: rgba(0,0,0,.6); color: var(--white); font-size: 12px; line-height: 1.3;
  padding: 4px 8px; border-radius: 6px; pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 700; text-decoration: none; text-align: center; border: 0; cursor: pointer;
}
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--soft); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Sections */
section { padding: 40px 0; }
section.alt { background: var(--soft); }
h2 { font-size: 24px; line-height: 1.3; color: var(--navy); margin: 0 0 16px; }
h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin-top: 10px; }
h3 { font-size: 18px; line-height: 1.4; color: var(--navy); margin: 0 0 6px; }
p { margin: 0 0 14px; }
.updated { color: var(--muted); font-size: 15px; }

/* Tables */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--white); font-weight: 600; }
tbody th { width: 34%; color: var(--navy); font-weight: 600; background: #FAFBFE; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.nowrap-first td:first-child { white-space: nowrap; }

/* Figures */
figure { margin: 20px 0 0; position: relative; }
figure img { border-radius: var(--radius); width: 100%; background: var(--line); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; gap: 16px; }
.gallery figure { margin: 0; }

/* Facilities list */
.facilities { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facilities li { background: var(--white); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 14px; }
.facilities strong { color: var(--navy); display: block; }

/* About */
.about { background: var(--navy); color: var(--white); }
.about h2 { color: var(--white); }
.about p { color: #E8EEFB; }

/* FAQ */
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item p { margin: 0; }

.cta { margin-top: 20px; }

/* Footer */
footer { background: #0F1E4B; color: #CBD5E1; font-size: 14px; padding: 28px 0; }
footer strong { color: var(--white); }
footer p { margin: 0 0 10px; }

/* Sticky WhatsApp bar (mobile) */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); box-shadow: 0 -2px 10px rgba(0,0,0,.12);
}
.wa-bar .btn { width: 100%; }

@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 18px; }
  .wa-bar { left: auto; right: 24px; bottom: 24px; background: none; box-shadow: none; padding: 0; }
  .wa-bar .btn { width: auto; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .hero-img { height: 78vh; max-height: 760px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 18px; }
  section { padding: 64px 0; }
  h2 { font-size: 30px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .facilities { grid-template-columns: repeat(3, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
}
