/* ==========================================================================
   Hei Realty & Tech — corporate website
   Design tokens are aligned with the HeiConnect design system so the two
   properties read as one company.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #1f6fe5;
  --brand-d: #1458c6;
  --brand-ink: #1447a6;
  --brand-soft: #eaf1ff;
  --navy: #0b2a6b;
  --navy-deep: #061a45;

  /* Kept as names for existing components; now near-solid fills so the site
     reads calm and premium rather than gradient-heavy. */
  --grad-brand: linear-gradient(180deg, #2373e8 0%, #1f6fe5 100%);
  --grad-hero: linear-gradient(160deg, #061a45 0%, #0b2a6b 100%);

  /* Property accent: a warm clay that sits beside the technology blue so the
     two halves of the business are distinguishable at a glance. */
  --clay: #a8521f;
  --clay-ink: #8a4114;
  --clay-bg: #fbefe6;
  --clay-line: #f1d6c2;

  /* Ink + neutrals */
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e7edf5;
  --line-2: #eef2f8;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f8;

  /* Accents */
  --green: #16a34a;
  --green-ink: #0f7a3d;
  --green-bg: #e7f8ee;
  --amber: #c2680c;
  --amber-bg: #fdf1e3;
  --indigo: #4f46e5;
  --indigo-ink: #4338ca;
  --indigo-bg: #eef0fe;

  /* Radii */
  --r-card: 20px;
  --r-btn: 14px;
  --r-img: 18px;
  --r-chip: 999px;

  /* Elevation */
  --sh-soft: 0 6px 18px rgba(2, 12, 40, .06);
  --sh-card: 0 12px 30px rgba(2, 12, 40, .08);
  --sh-lift: 0 20px 44px rgba(2, 12, 40, .14);

  --container-pad: 1.25rem;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }

img { max-width: 100%; height: auto; }

.container { padding-inline: var(--container-pad); max-width: 1180px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  --bs-btn-focus-box-shadow: none;
  font-weight: 700;
  border-radius: var(--r-btn);
  padding: .8rem 1.4rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, color .2s ease;
}
.btn i { font-size: .95em; }

.btn-brand {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(20, 88, 198, .22);
}
.btn-brand:hover, .btn-brand:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 88, 198, .3);
}

.btn-ghost {
  background: #fff;
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: var(--sh-soft);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); transform: translateY(-2px); }

.btn-outline-light-brand {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  backdrop-filter: blur(6px);
}
.btn-outline-light-brand:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  transform: translateY(-2px);
}

.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(2, 12, 40, .05);
}

.navbar { padding-block: .7rem; }

.navbar-brand { display: flex; align-items: center; gap: .7rem; padding: 0; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--grad-hero);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  box-shadow: 0 8px 18px rgba(11, 42, 107, .28);
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; letter-spacing: -.02em; }
.brand-name-accent { color: var(--brand); }
.brand-tagline {
  font-size: .66rem; color: var(--muted); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .35rem .6rem;
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
}
.navbar-toggler:focus { box-shadow: none; }

.navbar-nav { gap: .15rem; }

.nav-link {
  font-weight: 600;
  color: var(--ink-2);
  padding: .55rem .9rem !important;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--brand); background: var(--brand-soft); }

/* Current page: tinted pill + underline bar, so the active tab is obvious at a
   glance rather than relying on a subtle colour shift alone. */
.nav-link.active {
  color: var(--brand-ink);
  background: var(--brand-soft);
  font-weight: 700;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav-cta { margin-left: .6rem; }
.nav-cta .btn { padding: .6rem 1.1rem; font-size: .9rem; }

@media (max-width: 1199.98px) {
  .navbar-collapse {
    margin-top: .85rem;
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: var(--sh-card);
    max-height: calc(100dvh - 5.5rem);
    overflow-y: auto;
  }
  /* Full-width rows with a comfortable tap target. */
  .navbar-nav { gap: .1rem; }
  .nav-link { padding: .75rem .9rem !important; }
  /* An underline reads as an underline only on a short label — across a
     full-width row an inset left bar is clearer. */
  .nav-link.active::after {
    left: 0; right: auto;
    top: .45rem; bottom: .45rem;
    width: 3px; height: auto;
    border-radius: 0 3px 3px 0;
  }
  .nav-cta { margin: .5rem 0 .25rem; }
  .nav-cta .btn { width: 100%; }
  .brand-tagline { display: none; }
}

/* ---------- Section scaffolding ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-alt { background: var(--surface-2); }
.section-line { border-top: 1px solid var(--line-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-soft);
  border: 1px solid #d5e4ff;
  padding: .4rem .85rem;
  border-radius: var(--r-chip);
  margin-bottom: 1rem;
}
.eyebrow-light {
  color: #cfe0ff;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
}

.section-title { font-size: clamp(1.75rem, 4vw, 2.6rem); margin-bottom: .9rem; }
.section-lead {
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 0;
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.text-center .section-lead { margin-inline: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--grad-hero);
  color: #e8eefb;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 78%);
  z-index: -1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  letter-spacing: -.035em;
  margin-bottom: .6rem;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 700;
  color: #8fb6ff;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c3d3f2;
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-page { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero-page h1 { font-size: clamp(2rem, 5vw, 3.1rem); }

.hero-breadcrumb {
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: #b4c5e6;
  margin: 0 0 1rem;
  padding: 0;
}
.hero-breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: #7f95c1; }
.hero-breadcrumb a { color: #b4c5e6; text-decoration: underline; text-underline-offset: 3px; }
.hero-breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */

.card-hei {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-soft);
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hei:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); border-color: #dbe6f5; }

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.card-icon.accent-green { background: var(--green-bg); color: var(--green-ink); }
.card-icon.accent-indigo { background: var(--indigo-bg); color: var(--indigo-ink); }
.card-icon.accent-amber { background: var(--amber-bg); color: var(--amber); }

.card-hei h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card-hei p { color: var(--muted); margin-bottom: 0; font-size: .95rem; }

/* Feature list (icon + text rows) */
.feature-row { display: flex; gap: 1rem; align-items: flex-start; }
.feature-row .feature-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 1.15rem;
}
.feature-row h3 { font-size: 1.02rem; margin: 0 0 .3rem; }
.feature-row p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Tag pills */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-pill {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .84rem;
  font-weight: 600;
  padding: .45rem .9rem;
  border-radius: var(--r-chip);
  box-shadow: var(--sh-soft);
}

/* ---------- Split feature block ---------- */

.split-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-card);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.panel-dark {
  background: var(--grad-hero);
  color: #c3d3f2;
  border: 0;
}
.panel-dark h2, .panel-dark h3 { color: #fff; }

/* ---------- Timeline (roadmap) ---------- */

.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }

.timeline-stage { position: relative; padding-bottom: 2.5rem; }
.timeline-stage:last-child { padding-bottom: 0; }

.stage-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; }
.stage-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: 14px;
  font-size: 1.2rem;
  background: var(--brand-soft); color: var(--brand-ink);
}
.stage-icon.badge-green { background: var(--green-bg); color: var(--green-ink); }
.stage-icon.badge-amber { background: var(--amber-bg); color: var(--amber); }
.stage-icon.badge-indigo { background: var(--indigo-bg); color: var(--indigo-ink); }
.stage-head h2 { font-size: 1.35rem; margin: 0; }

.timeline-items { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; }
.timeline-items::before {
  content: "";
  position: absolute; left: 6px; top: .5rem; bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--line) 0%, var(--line-2) 100%);
}
.timeline-item { position: relative; padding: 0 0 1.35rem 1.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -1px; top: .5rem;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 111, 229, .12);
}
.timeline-item.done::before { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .12); }
.timeline-item.upcoming::before { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(194, 104, 12, .12); }
.timeline-item.future::before { border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.timeline-item h3 { font-size: 1.03rem; margin: 0 0 .25rem; }
.timeline-item h3 .chip { vertical-align: middle; margin-left: .45rem; position: relative; top: -1px; }
.timeline-item p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Founder ---------- */

.founder-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  box-shadow: var(--sh-card);
  /* Keeps a white-background / cut-out portrait framed against the white section. */
  background: var(--brand-soft);
  border: 1px solid var(--line);
}
.founder-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .55);
  box-shadow: var(--sh-card);
  text-align: center;
  padding: 1.5rem;
}
.founder-placeholder i { font-size: 3.5rem; display: block; margin-bottom: .6rem; }
.founder-placeholder span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.founder-name { font-size: 1.5rem; margin-bottom: .2rem; }
.founder-role { color: var(--brand); font-weight: 700; font-size: .95rem; margin-bottom: 1.25rem; }

/* ---------- Property units ---------- */

.unit-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.unit-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dfe8f6 0%, #eef2f8 100%);
  display: grid;
  place-items: center;
  color: var(--faint);
  position: relative;
}
.unit-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-media .placeholder-note { text-align: center; }
.unit-media .placeholder-note i { font-size: 2.5rem; display: block; margin-bottom: .35rem; }
.unit-media .placeholder-note span { font-size: .78rem; font-weight: 600; }
.unit-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.unit-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.unit-body > p { color: var(--muted); font-size: .93rem; }
.amenity-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: .35rem 0 1.4rem; padding: 0; list-style: none; }
.amenity-list li {
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: .35rem .7rem; border-radius: var(--r-chip);
}
.unit-body .unit-cta { margin-top: auto; }

/* ---------- Contact ---------- */

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.form-label { font-weight: 700; font-size: .85rem; color: var(--ink); margin-bottom: .4rem; }
.form-control, .form-select {
  border-radius: 12px;
  border-color: var(--line);
  padding: .75rem .9rem;
  font-size: .95rem;
  color: var(--ink);
  background-color: var(--surface-2);
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31, 111, 229, .12);
  background-color: #fff;
}
.form-control::placeholder { color: var(--faint); }
.invalid-feedback { font-size: .82rem; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line-2);
  font-size: .92rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list span:first-child { color: var(--ink-2); font-weight: 600; }
.hours-list span:last-child { color: var(--muted); }

/* ---------- Legal pages ---------- */

.legal-body { max-width: 78ch; }
.legal-body h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
}
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: .96rem; }
.legal-body ul { padding-left: 1.25rem; }
.legal-body li { margin-bottom: .45rem; }

.legal-toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.5rem;
  position: sticky;
  top: 110px;
}
.legal-toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .85rem; }
.legal-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.legal-toc li { counter-increment: toc; margin-bottom: .5rem; }
.legal-toc a { font-size: .88rem; font-weight: 600; color: var(--ink-2); display: flex; gap: .5rem; }
.legal-toc a::before { content: counter(toc) "."; color: var(--faint); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { color: var(--brand); }

.updated-note { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  text-align: center;
  box-shadow: var(--sh-card);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
.cta-band p { color: #d4e0f8; max-width: 58ch; margin: 0 auto 1.75rem; }
.cta-band .btn-ghost { background: #fff; color: var(--brand-ink); border-color: transparent; }
.cta-band .btn-ghost:hover { background: #f1f5f9; color: var(--brand-ink); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #9db1d8;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  font-size: .93rem;
}
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; }
.footer-brand .brand-mark {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: none;
}
.footer-brand .brand-name { color: #fff; font-size: 1.05rem; }
.footer-brand .brand-name-accent { color: #8fb6ff; }
.footer-blurb { color: #8ea4cd; font-size: .9rem; max-width: 42ch; margin-bottom: 1.35rem; }

.footer-heading {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.footer-links li, .footer-contact li { margin-bottom: .65rem; }
.footer-links a, .footer-contact a { color: #9db1d8; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact i { color: #8fb6ff; margin-top: .2rem; }

.footer-social { display: flex; gap: .6rem; margin: 0; }
.footer-social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #c3d3f2;
  font-size: 1.05rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); border-color: transparent; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: #7f95c1;
}
.footer-bottom ul { display: flex; gap: 1.25rem; }
.footer-bottom a { color: #7f95c1; }
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp FAB ---------- */

.whatsapp-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1040;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); box-shadow: 0 14px 32px rgba(37, 211, 102, .5); }

/* ---------- Alerts ---------- */

.alert-success-hei {
  background: var(--green-bg);
  border: 1px solid #bbeccd;
  color: var(--green-ink);
  border-radius: var(--r-card);
  padding: 1.15rem 1.35rem;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-weight: 600;
  font-size: .95rem;
}
.alert-success-hei i { font-size: 1.25rem; margin-top: .05rem; }

/* ---------- Reveal on scroll ---------- */

/* Only hide content when JavaScript is available to reveal it again — without
   JS (or if the script fails) every section stays visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Error pages ---------- */

.error-page { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.error-code {
  font-size: clamp(4rem, 16vw, 8rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}

/* ==========================================================================
   Redesign components
   ========================================================================== */

.text-muted-ink { color: var(--muted); }
.anchor-alias { position: absolute; margin-top: -96px; }
.mini-heading {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: .5rem 0 0; font-weight: 800;
}

/* Underline links inside running text so they are not colour-only. */
.text-muted-ink a, .path-compact a, .flagship-note a, .cta-alt a, .form-hint a, .note-panel p a {
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Buttons ---------- */

.btn-property { background: var(--clay); color: #fff; box-shadow: 0 6px 16px rgba(138, 65, 20, .22); }
.btn-property:hover, .btn-property:focus { background: var(--clay-ink); color: #fff; transform: translateY(-2px); }

.btn-light-solid { background: #fff; color: var(--navy); }
.btn-light-solid:hover, .btn-light-solid:focus { background: #eaf1ff; color: var(--navy-deep); transform: translateY(-2px); }

.eyebrow-property { color: var(--clay-ink); background: var(--clay-bg); border-color: var(--clay-line); }

/* ---------- Home hero ---------- */

.hero-home { padding-block: clamp(3rem, 8vw, 6rem); }

.hero-kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #d4e0f8; margin-bottom: 1.1rem;
}
.kicker-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.kicker-property { background: #e59a6a; }
.kicker-tech { background: #8fb6ff; }
.kicker-sep { color: #7f95c1; margin-inline: .2rem; }

.hero-home h1 { max-width: 22ch; }
.hero-sublink { margin: 1.25rem 0 0; font-weight: 700; }
.hero-sublink a { color: #cfe0ff; text-decoration: underline; text-underline-offset: 4px; }
.hero-sublink a:hover { color: #fff; }

.hero-areas { display: grid; gap: 1rem; }
.hero-area {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-left: 4px solid #8fb6ff;
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
}
.hero-area-property { border-left-color: #e59a6a; }
.hero-area-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.hero-area-icon {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff;
}
.hero-area-label { color: #fff; font-weight: 800; font-size: 1.05rem; }
.hero-area-items { margin: 0; padding-left: 1.1rem; color: #c3d3f2; font-size: .92rem; }
.hero-area-items li { padding: .12rem 0; }

/* ---------- Path cards (Property / Technology) ---------- */

.path-card {
  height: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--r-card);
  box-shadow: var(--sh-soft);
  padding: 2rem;
}
.path-card.path-property { border-top-color: var(--clay); }
.path-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.path-card > p { color: var(--muted); }
.path-label {
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-ink); margin-bottom: .4rem;
}
.path-property .path-label { color: var(--clay-ink); }
.path-icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 14px; font-size: 1.3rem; margin-bottom: 1rem;
  background: var(--brand-soft); color: var(--brand-ink);
}
.path-property .path-icon { background: var(--clay-bg); color: var(--clay-ink); }
.path-card .btn { margin-top: auto; }
.path-compact { padding: 1.4rem; border-top-width: 3px; }
.path-compact p:last-child { color: var(--ink-2); font-size: .95rem; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { display: flex; gap: .6rem; padding: .25rem 0; color: var(--ink-2); font-size: .95rem; }
.check-list i { color: var(--green-ink); font-size: 1.1rem; line-height: 1.4; flex: none; }

/* ---------- Flagship (HeiConnect) panel ---------- */

.flagship {
  background: var(--navy-deep);
  color: #c3d3f2;
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.flagship::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.flagship .section-title { color: #fff; }
.flagship-lead { font-size: clamp(1.02rem, 2vw, 1.15rem); color: #d4e0f8; }
.flagship-note { font-size: .9rem; color: #a8bde6; }
.flagship-note a { color: #fff; }
.flagship-subhead {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #8fb6ff; margin-bottom: .85rem;
}

.category-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.category-list li {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: .86rem; font-weight: 600;
  padding: .4rem .8rem; border-radius: var(--r-chip);
}
.category-list i { color: #8fb6ff; }

.flagship-features li { display: flex; gap: .75rem; padding: .45rem 0; font-size: .93rem; }
.flagship-features i { color: #8fb6ff; font-size: 1.1rem; flex: none; line-height: 1.5; }
.flagship-features strong { color: #fff; }

.category-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  margin: 0;
}
.category-grid li {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: .9rem 1rem; font-weight: 700; color: var(--ink);
}
.category-grid i {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink);
}
.category-grid .category-more { color: var(--muted); font-weight: 600; border-style: dashed; }

/* ---------- Steps ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 1.25rem 1.2rem 4.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.15rem; top: 1.15rem;
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.steps-light li { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.steps-light li::before { background: #fff; color: var(--navy); }
.steps-light h3 { color: #fff; }
.steps-light p { color: #c3d3f2; }

/* ---------- Technology services ---------- */

.service-list { display: grid; gap: 1.25rem; }
.service-block {
  display: grid; gap: 1.5rem 2.5rem;
  grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--sh-soft);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
@media (min-width: 992px) { .service-block { grid-template-columns: 5fr 6fr; } }
.service-intro h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.service-intro p:last-child { color: var(--muted); margin: 0; }
.service-detail h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 .4rem; font-weight: 800; }
.service-detail > p { color: var(--ink-2); margin-bottom: 1.1rem; }

.note-panel {
  background: var(--brand-soft); border: 1px solid #d5e4ff;
  border-radius: var(--r-card); padding: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink-2);
}
.note-panel h2, .note-panel h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.note-property { background: var(--clay-bg); border-color: var(--clay-line); }

/* ---------- Property ---------- */

.feature-photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-img); box-shadow: var(--sh-card);
}

.jump-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.jump-links a {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px;
  padding: .55rem 1rem; border-radius: var(--r-chip);
  background: var(--clay-bg); border: 1px solid var(--clay-line);
  color: var(--clay-ink); font-weight: 700; font-size: .92rem;
}
.jump-links a:hover { background: #f7e1d1; color: var(--clay-ink); }

.booking-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1rem; }

/* ---------- Founder ---------- */

.founder-initials { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 800; color: rgba(255, 255, 255, .85); letter-spacing: -.03em; }

/* ---------- Enquiry CTA ---------- */

.enquiry-options {
  display: grid; gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  max-width: 820px; margin: 0 auto 1.4rem;
}
.enquiry-options a {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .75rem 1rem;
  background: #fff; color: var(--navy); border-radius: var(--r-btn);
  font-weight: 700;
  transition: transform .18s ease, background .2s ease;
}
.enquiry-options a:hover { background: #eaf1ff; color: var(--navy-deep); transform: translateY(-2px); }
.cta-band .cta-alt { font-size: .92rem; margin-bottom: 0; }
.cta-band .cta-alt a { color: #fff; font-weight: 700; }

/* ---------- Contact form ---------- */

.form-hint { font-size: .85rem; color: var(--muted); margin: 0 0 .45rem; }
.req { color: #b42318; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #b42318; background-color: #fff; }
.invalid-feedback { color: #b42318; }

.error-summary {
  border: 2px solid #b42318; border-radius: 14px;
  background: #fef3f2; padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.error-summary h3 { font-size: 1rem; color: #7a1a12; margin: 0 0 .5rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: #b42318; font-weight: 600; text-decoration: underline; }

.contact-list li { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list li:first-child { padding-top: 0; }
.contact-icon {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink);
}
.contact-icon-wa { background: var(--green-bg); color: var(--green-ink); }
.contact-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 800; }
.contact-list a, .contact-list span:not(.contact-label):not(.contact-icon) { font-weight: 600; overflow-wrap: anywhere; }
.btn-sm-wide { padding: .65rem 1.1rem; }

/* ==========================================================================
   Small screens
   Most of the layout is fluid already (clamp() type, Bootstrap columns). What
   follows tightens the things that fluid sizing alone does not fix on a phone:
   tap targets, edge padding, stacked buttons and iOS input zoom.
   ========================================================================== */

/* Tablet portrait and below */
@media (max-width: 767.98px) {
  :root {
    --container-pad: 1.1rem;
    --r-card: 18px;
  }

  /* Bootstrap's g-5 gutter (3rem) is wider than the mobile container padding,
     which pushes rows past the viewport edge. Keep it within the padding. */
  .row.g-5 { --bs-gutter-x: 2rem; }

  /* The header is shorter on mobile, so anchored sections land correctly. */
  html { scroll-padding-top: 76px; }

  .navbar { padding-block: .55rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; font-size: 1.05rem; }
  .brand-name { font-size: .98rem; }

  /* Side-by-side buttons become slivers at this width — stack them full width. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: .85rem 1.3rem; font-size: .95rem; }

  .card-hei, .form-panel, .path-card, .service-block { padding: 1.35rem; }
  .flagship { padding: 1.6rem 1.25rem; }
  .unit-body { padding: 1.25rem; }
  .split-panel, .note-panel { padding: 1.4rem; }

  /* 16px minimum stops iOS Safari zooming in when a field is focused. */
  .form-control, .form-select { font-size: 1rem; }

  .legal-body h2 { margin-top: 2rem; }
  .timeline-stage { padding-bottom: 2rem; }
  .stage-head { margin-bottom: 1.15rem; }

  .footer-blurb { max-width: none; }
  .footer-contact a, .footer-links a { overflow-wrap: anywhere; }
  .footer-bottom { margin-top: 2.25rem; }
  .footer-bottom ul { flex-wrap: wrap; gap: .5rem 1.1rem; }
  /* Room for the floating WhatsApp button to sit clear of the last footer row. */
  .site-footer { padding-bottom: 5rem; }

  .whatsapp-fab {
    width: 50px; height: 50px;
    font-size: 1.4rem;
    right: .85rem; bottom: .85rem;
  }
}

/* Small phones */
@media (max-width: 400px) {
  :root { --container-pad: .95rem; }

  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
  .brand-name { font-size: .9rem; }
  .navbar-brand { gap: .55rem; }

  .amenity-list li { font-size: .74rem; padding: .3rem .6rem; }
  .footer-bottom { font-size: .8rem; }
}

/* ---------- Motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .whatsapp-fab, .hero-actions, .enquiry-options { display: none !important; }
  body { color: #000; }
}
