/* Elangeni Properties. Light look taken from portal.epjhb.com, orange from the logo. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #203864;
  --navy-2: #40547A;
  --slate: #5A6888;
  --slate-light: #8A96AE;
  --ink: #374151;
  --page: #F3F4F6;
  --sky: #EEF4FB;
  --white: #FFFFFF;
  --line: #E5E7EB;
  --orange: #F39200;
  --orange-light: #F49C1F;
  --amber-bg: #FEF3C7;
  --amber-ink: #92400D;
  --red: #B3261E;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 39, 0.05), 0 8px 24px rgba(32, 56, 100, 0.07);
  --strap: 8px;
  --header-h: 88px;
  --header-total: calc(var(--strap) + var(--header-h) + 1px);
  --wrap: 1140px;
  --gutter: 16px;
  --heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-total) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }

a { color: var(--navy); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }

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

h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--heading); line-height: 1.15; }
h2 { font-size: clamp(1.625rem, 5.6vw, 2.125rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 800; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  margin: 0 0 6px;
  color: var(--slate);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.muted { color: var(--slate); }
.placeholder-note { color: var(--slate-light); font-style: italic; font-size: 0.9375rem; }
.placeholder-inline { color: var(--slate-light); }
.loading { color: var(--slate); list-style: none; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; }

.preview-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0; padding: 6px var(--gutter);
  background: var(--amber-bg); color: var(--amber-ink);
  font-size: 0.8125rem; text-align: center;
}
.preview-bar span {
  font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px;
}

/* Buttons and chips */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-family: var(--heading); font-weight: 700; font-size: 1rem;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-light); }
.btn-ghost { background: var(--white); border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--sky); }
.btn-block { width: 100%; }
.btn-small { min-height: 46px; padding: 10px 20px; font-size: 0.9375rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--page); color: var(--ink);
  font-size: 0.875rem; line-height: 1.3;
}

/* Header and menu: stays at the top while you scroll */

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; display: block; height: var(--strap);
  background: repeating-linear-gradient(-60deg, var(--orange) 0 16px, var(--orange-light) 16px 22px);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(1.4) blur(10px); }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.brand img { width: auto; height: 72px; }

.menu-button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--navy);
  font: inherit; font-family: var(--heading); font-weight: 700; font-size: 0.9375rem;
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.2s, background-color 0.2s;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 10px var(--gutter) 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(32, 56, 100, 0.12);
}
.site-nav.is-open { display: grid; gap: 6px; }
.site-nav a {
  display: block; padding: 14px 18px; border-radius: var(--radius-sm);
  color: var(--navy); font-family: var(--heading); font-weight: 700; font-size: 1.125rem; text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] { background: var(--sky); }
.site-nav a.nav-cta { margin-top: 6px; border-radius: 999px; background: var(--orange); text-align: center; }

@media (min-width: 760px) {
  :root { --strap: 10px; --header-h: 104px; }
  .menu-button { display: none; }
  .site-nav {
    display: flex; align-items: center; gap: 6px;
    position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .site-nav a { padding: 9px 18px; border-radius: 999px; font-size: 0.9375rem; color: var(--navy-2); }
  .site-nav a:hover { background: var(--page); color: var(--navy); }
  .site-nav a[aria-current="true"] { background: var(--navy); color: var(--white); }
  .site-nav a.nav-cta { margin: 0 0 0 10px; background: var(--orange); color: var(--navy); }
  .site-nav a.nav-cta:hover { background: var(--orange-light); }
  .brand img { height: 88px; }
}

/* Hero: black and white building slices, white gaps, light card over them */

/* overflow-x: clip keeps the wider photo strip from making the page scroll sideways */
.hero { position: relative; padding-bottom: 8px; overflow-x: clip; }
.hero-photos {
  display: flex; gap: 7px;
  height: clamp(240px, 44vh, 520px);
  margin: 0 -48px;
  overflow: hidden;
  background: var(--white);
}
.slice {
  flex: 1 1 0; min-width: 0;
  overflow: hidden;
  transform: skewX(-10deg);
  background: #C9CDD4;
}
.slice img {
  width: calc(100% + 110px); max-width: none; height: 100%;
  margin-left: -55px;
  object-fit: cover;
  transform: skewX(10deg);
  filter: grayscale(1) contrast(1.06) brightness(1.04);
}

.hero-card-wrap { position: relative; margin-top: -56px; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.hero-card h1 { font-size: clamp(1.875rem, 8.4vw, 3rem); font-weight: 800; letter-spacing: -0.015em; }
.hero-line { margin: 8px 0 18px; color: var(--navy-2); font-size: clamp(1.125rem, 4.6vw, 1.375rem); }
.hero-actions { display: grid; gap: 10px; margin-top: 22px; }

@media (min-width: 560px) {
  .hero-actions { grid-auto-flow: column; justify-content: start; }
}

@media (min-width: 900px) {
  .hero { padding-bottom: 0; }
  .hero-photos { height: 560px; gap: 9px; }
  .hero-card-wrap { position: absolute; left: 0; right: 0; bottom: 44px; margin: 0 auto; }
  .hero-card { max-width: 540px; padding: 32px; }
}

/* Sections and panels */

.section { padding: 40px 0; }
.section-head { margin-bottom: 20px; }

.panel {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

.about h2 { margin-bottom: 12px; }
.about p { margin: 0 0 12px; }
.about p:last-child { margin-bottom: 0; }

@media (min-width: 760px) {
  .section { padding: 56px 0; }
  .panel { padding: 32px; }
}

/* Building cards */

.building-grid { display: grid; gap: 18px; }

.building-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.building-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--page); }
.building-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--navy);
  font-size: 0.8125rem; font-weight: 700;
}
.photo-tag-bottom { top: auto; bottom: 12px; color: var(--slate); }
.building-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 18px 20px; }
.building-body h3 { font-size: 1.25rem; }
.building-area { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 0; color: var(--navy-2); font-size: 0.9375rem; }
.building-area svg { flex: none; margin-top: 3px; color: var(--orange); }
.features { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: 0.9375rem; font-weight: 600; }
.features svg { flex: none; color: var(--orange); }
.manager {
  display: grid; gap: 2px;
  margin: 2px 0 4px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--sky);
  font-size: 0.9375rem;
}
.manager dt { color: var(--slate); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.manager dd { margin: 0; color: var(--navy); }
.manager .placeholder-inline { color: var(--slate-light); font-style: italic; }
.manager a { font-weight: 600; }
/* Manager box and button sit at the bottom, so they line up across a row of cards */
.building-body .manager { margin-top: auto; }
.building-body .btn { align-self: flex-start; }

@media (min-width: 640px) {
  .building-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .building-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* Available units: navy bar like the portal's section bars. It stays under the
   header while you scroll the list; the page-grey ring hides cards sliding under it. */

.bar {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-total) + 8px); z-index: 20;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 8px var(--page), 0 10px 18px -6px rgba(32, 56, 100, 0.35);
}
.bar h2 { color: var(--white); font-size: clamp(1.25rem, 5vw, 1.5rem); }
.bar-count {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px;
  background: var(--orange); color: var(--navy);
  font-family: var(--heading); font-weight: 800;
}
.filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  min-height: 40px; padding: 6px 14px;
  border: 0; border-radius: 999px;
  background: var(--navy-2); color: var(--white);
  font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}
.filter:hover { background: #4D6189; }
.filter[aria-pressed="true"] { background: var(--white); color: var(--navy); }

@media (min-width: 760px) {
  .bar { grid-template-columns: auto auto 1fr; padding: 14px 18px 14px 22px; }
  .filters { grid-column: auto; justify-content: flex-end; }
}

.flat-list { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.flat {
  display: grid; gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.flat-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.flat-title h3 { font-size: 1.125rem; }
.flat-size { margin: 2px 0 0; color: var(--navy-2); font-weight: 600; }
.flat-address { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 0; color: var(--slate); font-size: 0.9375rem; }
.flat-address svg { flex: none; margin-top: 4px; color: var(--orange); }
.flat-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.flat-facts div { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--page); }
.flat-facts dt { color: var(--slate); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.flat-facts dd { margin: 0; color: var(--navy); font-weight: 700; font-size: 1.0625rem; }
.flat .btn { width: 100%; }
.sample-tag {
  padding: 2px 8px; border-radius: 999px;
  background: var(--amber-bg); color: var(--amber-ink);
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.empty { padding: 20px; background: var(--white); border: 1px dashed #C9CED8; border-radius: var(--radius); list-style: none; }

@media (min-width: 760px) {
  .flat { grid-template-columns: 1.2fr 1.6fr auto; align-items: center; padding: 14px 16px 14px 22px; }
  .flat .btn { width: auto; }
}

/* Enquire */

.enquire-layout { display: grid; gap: 18px; }
.form-panel h2 { margin-bottom: 6px; }
.form-panel > .muted { margin: 0 0 22px; }
.enquire-aside { display: grid; gap: 18px; align-content: start; }
.enquire-aside h3 { margin-bottom: 14px; }

@media (min-width: 960px) {
  .enquire-layout { grid-template-columns: 1.55fr 1fr; align-items: start; gap: 22px; }
  .enquire-aside { position: sticky; top: calc(var(--header-total) + 24px); }
}

.enquiry-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--navy); font-weight: 600; font-size: 0.9375rem; }
.optional { color: var(--slate); font-weight: 400; }
.field-row { display: grid; gap: 18px; }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid #CDD3DD; border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy);
  font: inherit; font-size: 1.0625rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
::placeholder { color: #9AA3B5; }
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23203864' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.28); }
.is-invalid { border-color: var(--red) !important; }
.field-error { margin: 0; color: var(--red); font-size: 0.875rem; font-weight: 600; }

/* Building tick boxes */
.field-choices { display: block; margin: 0; padding: 0; border: 0; }
.field-choices legend { margin-bottom: 6px; padding: 0; color: var(--navy); font-weight: 600; font-size: 0.9375rem; }
.field-choices .field-error { margin-top: 6px; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 10px 14px;
  border: 1px solid #CDD3DD; border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy); line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.choice input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.choice-area { color: var(--slate); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(243, 146, 0, 0.28); }
.field-choices.is-invalid .choice { border-color: var(--red); }

@media (min-width: 560px) {
  .choices { grid-template-columns: 1fr 1fr; }
}

.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--page); }
.field-check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--navy); }
.field-check .field-error { grid-column: 2; }

.privacy-note { margin: -4px 0 0; color: var(--slate); font-size: 0.875rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-info { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber-ink); }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.steps strong { display: block; color: var(--navy); }
.steps span:not(.step-num) { color: var(--ink); font-size: 0.9375rem; }
.step-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--orange); color: var(--navy);
  font-family: var(--heading); font-weight: 800; font-size: 0.9375rem;
}

.office p { margin: 0 0 4px; }
.office a { font-weight: 600; }

/* Footer */

.site-footer { margin-top: 16px; background: var(--navy); color: #D5DBE7; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; font-size: 0.9375rem; }
.footer-inner p { margin: 0; }
.footer-inner strong { color: var(--white); }
