/* New East Residence — static rebuild (HTML + CSS only) */

:root {
  --dark: #353535;
  --darker: #222222;
  --light: #f1f1f1;
  --white: #ffffff;
  --text: #666666;
  --heading: #333333;
  --muted: #8a8a8a;
  --line: #dddddd;
  --sold: #c0392b;
  --available: #2e8b57;
  --header-h: 84px;
  --container: 1180px;
  --shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 2px 18px rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.5em; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--dark); color: var(--white);
  padding: 8px 14px; z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--dark);
}
.brand svg { width: 110px; height: auto; flex: none; }
.brand span {
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 17px;
  line-height: 1.1;
}

.nav-toggle-btn { display: none; }

.main-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}
.main-nav li { margin: 0; position: relative; }
.main-nav a {
  display: block;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -1px;
  color: rgba(0, 0, 0, 0.6);
  padding: 8px 0;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: #000; }

.has-sub > a::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  position: absolute;
  top: 100%;
  left: -20px;
  width: 250px;
  background: var(--white);
  border-top: 3px solid var(--dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.sub-menu a {
  padding: 6px 20px;
  font-size: 14px;
  letter-spacing: -0.3px;
  color: rgba(53, 53, 53, 0.75);
}
.sub-menu a:hover { background: rgba(0, 0, 0, 0.03); }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
  min-height: 62vh;
  padding: 90px 20px 120px;
  background: var(--dark) url("../images/intro5.jpg") center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.45));
  z-index: -1;
}
.hero--full { min-height: calc(100vh - var(--header-h)); }

.hero h1 {
  color: var(--white);
  font-size: clamp(36px, 7vw, 70px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.3em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.hero p {
  font-size: 20px;
  margin-bottom: 1.6em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero .buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Divi "arrow3" bottom divider */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M0 140l640-70 640 70V0L640 70 0 0v140z' fill-opacity='.5'/%3E%3Cpath d='M0 140h1280L640 70 0 140z'/%3E%3C/g%3E%3C/svg%3E") bottom / 100% 50px no-repeat;
}
.hero--to-light::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cg fill='%23f1f1f1'%3E%3Cpath d='M0 140l640-70 640 70V0L640 70 0 0v140z' fill-opacity='.5'/%3E%3Cpath d='M0 140h1280L640 70 0 140z'/%3E%3C/g%3E%3C/svg%3E");
}

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

.btn {
  display: inline-block;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  color: var(--dark);
  background: transparent;
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 0.35em 1.1em;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
}
.btn::after {
  content: "→";
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: top;
  transition: width 0.3s, opacity 0.3s, margin 0.3s;
}
.btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: transparent;
}
.btn:hover::after { width: 1em; opacity: 1; margin-left: 0.3em; }
.btn--light { color: var(--white); }
.btn--light:hover { background: rgba(255, 255, 255, 0.15); }
.btn--solid {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.btn--solid:hover { background: #000; border-color: #000; }
.btn-row { text-align: center; margin-top: 1.2em; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section--light { background: var(--light); }
.section--title { padding: 34px 0 30px; box-shadow: inset 0 -10px 12px -12px rgba(0, 0, 0, 0.15); }
.section--title h1,
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
}

.eyebrow {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 6px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split > *,
.apt-layout > *,
.pf-grid > *,
.grid-3 > *,
.grid-4 > * { min-width: 0; }
.split h2 { font-size: clamp(26px, 3.4vw, 36px); }

.note { font-size: 13px; color: var(--muted); }

.framed {
  border: 3px double var(--dark);
  box-shadow: var(--shadow);
  background: var(--white);
}

.alert {
  text-align: center;
  color: #e02b20;
  font-size: clamp(26px, 4vw, 42px);
  margin: 0;
}

/* ---------- Stats (circle counters) ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 40px;
  font-weight: 700;
  color: var(--dark);
}
.stat-label { font-weight: 600; color: var(--heading); font-size: 15px; }

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

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.building-card {
  text-decoration: none;
  display: block;
  text-align: center;
}
.building-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.35s, box-shadow 0.35s;
}
.building-card:hover img { transform: translateY(-4px); box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4); }
.building-card h3 { margin: 18px 0 0; font-size: 18px; }

.project-card { text-align: center; }
.project-card h3 { font-size: 22px; margin-bottom: 18px; }
.project-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 22px; }

/* ---------- Apartment portfolio ---------- */

.pf-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 34px;
}
.pf-tabs label {
  cursor: pointer;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.pf-tabs label:hover { background: #f7f7f7; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.apt-card {
  display: block;
  text-decoration: none;
  text-align: center;
  background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
}
.apt-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }
.apt-card .thumb {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
}
.apt-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.apt-card h3 { font-size: 16px; margin: 14px 12px 4px; }
.apt-card .meta { display: block; font-size: 13px; color: var(--muted); padding: 0 12px 16px; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--sold);
  border-radius: 2px;
}
.badge--available { background: var(--available); }

/* ---------- Apartment detail ---------- */

.apt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.plan-link { display: block; cursor: zoom-in; }
.plan-link img { width: 100%; }
.plan-hint { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

.info-box {
  margin-top: 28px;
  background: var(--white);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.info-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  margin: 0 0 12px;
}
.info-box dt { font-weight: 700; color: var(--heading); }
.info-box dd { margin: 0; }
.status-sold { color: var(--sold); font-weight: 700; }
.status-available { color: var(--available); font-weight: 700; }
.info-box .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.info-box .btn { font-size: 15px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}
.spec-table th,
.spec-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #ececec;
  text-align: left;
}
.spec-table td + td,
.spec-table th + th { text-align: right; white-space: nowrap; }
.spec-table thead th {
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
}
.spec-table tr.total td { font-weight: 700; color: var(--heading); background: #fafafa; }
.spec-table tr.grand td { font-weight: 700; color: var(--white); background: var(--dark); }

/* CSS-only lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
}
.lightbox:target { display: grid; }
.lightbox img { max-height: calc(100vh - 48px); width: auto; background: var(--white); }
.lightbox .close {
  position: absolute;
  inset: 0;
  font-size: 0;
  cursor: zoom-out;
}
.lightbox .close-x {
  position: absolute;
  top: 14px;
  right: 22px;
  color: var(--white);
  font-size: 40px;
  line-height: 1;
  text-decoration: none;
}

/* ---------- CSS-only gallery slider ---------- */

.gallery { position: relative; }
.g-view {
  overflow: hidden;
  border: 3px double var(--dark);
  box-shadow: var(--shadow);
  background: var(--dark);
}
.g-track { display: flex; transition: transform 0.6s ease; }
.g-slide { flex: 0 0 100%; position: relative; margin: 0; }
.g-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.g-prev,
.g-next {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  font-size: 26px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  transition: background 0.2s;
}
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-prev:hover,
.g-next:hover { background: rgba(0, 0, 0, 0.6); }
.g-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.g-dots label {
  flex: 1 1 0;
  min-width: 40px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.g-dots label:hover { opacity: 0.85; }
.g-dots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Map + location/contact card ---------- */

.map iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
  filter: grayscale(0.25);
}

.loc-card {
  position: relative;
  width: min(760px, 100% - 40px);
  margin: -75px auto 60px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 34px 30px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: center;
}
.loc-card h2 { font-size: 26px; margin-bottom: 10px; }
.bar {
  width: 20%;
  max-width: 70px;
  height: 3px;
  background: var(--dark);
  border: 0;
  margin: 0 auto 18px;
}
.loc-card a { text-decoration: none; }
.loc-card a:hover { text-decoration: underline; }

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

.contact-details p { margin: 0 0 0.35em; font-weight: 700; color: var(--heading); }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: #333;
  background: #eeeeee;
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--dark); outline-offset: 0; background: #e8e8e8; }
.form .submit { justify-self: end; }
.form-note { font-size: 12px; color: var(--muted); margin: 0; }

.jobs h3 { font-size: 20px; }
.jobs ul ul { margin-top: 0.5em; }

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

.site-footer { background: var(--darker); color: #9a9a9a; font-size: 14px; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 50px 0 36px;
}
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c8c8c8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand svg rect.fill { fill: #d8d8d8; }
.bottom-bar { background: rgba(0, 0, 0, 0.32); color: #666; padding: 14px 0; font-size: 13px; }
.bottom-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.bottom-bar a { color: #8a8a8a; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .main-nav > ul { gap: 20px; }
  .pf-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 70px; }
  .brand svg { width: 86px; }

  .nav-toggle-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
  }
  .nav-toggle-btn span,
  .nav-toggle-btn span::before,
  .nav-toggle-btn span::after {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    position: relative;
    transition: transform 0.25s, background 0.25s;
  }
  .nav-toggle-btn span::before,
  .nav-toggle-btn span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-btn span::before { top: -8px; }
  .nav-toggle-btn span::after { top: 8px; }
  #nav-toggle:checked ~ .nav-toggle-btn span { background: transparent; }
  #nav-toggle:checked ~ .nav-toggle-btn span::before { transform: translateY(8px) rotate(45deg); }
  #nav-toggle:checked ~ .nav-toggle-btn span::after { transform: translateY(-8px) rotate(-45deg); }
  #nav-toggle:focus-visible ~ .nav-toggle-btn { outline: 2px solid var(--dark); }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--dark);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  #nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; padding: 10px 20px 20px; }
  .main-nav a { padding: 10px 6px; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .sub-menu {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    columns: 2;
  }
  .has-sub > a::after { display: none; }

  .split,
  .split--even,
  .apt-layout { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 14px; }
  .brand span { font-size: 15px; }
  .section { padding: 46px 0; }
  .hero p { font-size: 17px; }
  .btn { font-size: 16px; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .stat-num { width: 120px; height: 120px; font-size: 32px; }
  .loc-card { grid-template-columns: 1fr; margin-top: 20px; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .map iframe { height: 320px; }
  .sub-menu { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
