/* Urban Investment Holding — public site */
:root {
  --ink: #0e0e0e;
  --ink-2: #1a1a1a;
  --paper: #f4f2ef;
  --paper-2: #ebe8e3;
  --gold: #b49a73;
  --gold-hi: #c7ae88;
  --muted: #8a8a84;
  --muted-dark: #9a9892;
  --line: #d5d3d0;
  --line-dark: #2c2c2c;
  --white: #f5f3f0;
  --container: 968px;
  --gutter: max(16px, calc((100vw - var(--container)) / 2));
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0; }
address { font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 34px; padding: 6px 26px;
  font: 500 13px/1.2 var(--font); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 0; background: none;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-sm { min-height: 30px; padding: 4px 24px; }
.btn-ico { width: 15px; height: 10px; flex: none; }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold-hi); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 20px; }
.link-gold { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #8f7754; font-size: 13px; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-gold:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: block; color: var(--white); }
.logo { width: 140px; height: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 36px; }
.site-nav ul a { font-size: 13px; color: #b9b7b2; text-decoration: none; padding: 6px 0; transition: color .2s; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { color: #fff; }
.site-nav ul a[aria-current] { font-weight: 500; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px;
  border: 1px solid #6b6b6b; font-size: 11px; color: #cfcdc8; text-decoration: none;
}
.lang-switch::after { content: ""; width: 4px; height: 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 3px; }
.lang-switch:hover { border-color: var(--gold); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Common type ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.eyebrow::after { content: ""; width: 112px; height: 1px; background: var(--line); }
.eyebrow-dark::after { background: #3c3c3c; }
.h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; }
.h2 { font-size: clamp(30px, 3.4vw, 40px); }
.text { font-size: 13px; line-height: 1.55; text-align: justify; hyphens: auto; color: #2b2b2b; }
.lead { font-size: 15.5px; line-height: 1.45; text-align: justify; color: #2b2b2b; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.section { padding: clamp(56px, 7vw, 88px) 0; }
.notice { padding: 14px 18px; margin: 18px 0; font-size: 14px; border-left: 3px solid var(--gold); background: #fff; }
.notice-error { border-color: #b4573f; }

/* ---------- Home hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  background: var(--ink); color: var(--white);
  min-height: min(560px, calc(100vh - var(--header-h)));
}
.hero-text { display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); }
.hero-top { flex: 1.15; display: flex; flex-direction: column; justify-content: center; padding: 48px 32px 48px var(--gutter); border-bottom: 1px solid var(--line-dark); }
.hero-title { font-size: clamp(30px, 3.1vw, 40px); line-height: 1.17; letter-spacing: -.005em; }
.hero-sub { margin-top: 14px; max-width: 420px; color: var(--muted-dark); font-size: 13px; line-height: 1.55; }
.hero-bottom { flex: 1; padding: 40px 32px 48px var(--gutter); }
.hero-bottom p { color: var(--muted-dark); font-size: 13px; margin-bottom: 16px; }
.hero-media { position: relative; overflow: hidden; margin: 14px 0 0 14px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }

/* ---------- About (home) ---------- */
.section-about { border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; align-items: start; }
.about-grid .h2 { margin-top: 2px; }
.about-grid > .text { padding-top: 42px; }
.about-grid > div:last-child { padding-top: 38px; }

/* ---------- Areas ---------- */
.section-areas { border-bottom: 1px solid var(--line); }
.areas-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
  max-width: calc(var(--container) + 32px + 2 * 22px); margin: 0 auto;
}
.areas-intro { padding: clamp(56px, 7vw, 76px) 22px clamp(56px, 7vw, 76px) 16px; }
.areas-intro .lead { margin-top: 36px; max-width: 280px; }
.areas-list {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  padding: clamp(56px, 7vw, 100px) 22px 64px 20px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.area-icon { width: 38px; height: 38px; color: var(--gold); margin-bottom: 28px; }
.areas-list h3 { font-size: 12.5px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.areas-list p { font-size: 12.5px; line-height: 1.35; color: #3a3a3a; }

/* ---------- CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 53.5%) minmax(0, 46.5%); background: var(--ink); color: var(--white); }
.cta-media { position: relative; min-height: 460px; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-body { display: flex; flex-direction: column; border-left: 1px solid var(--line-dark); margin-left: 20px; }
.cta-body::before { content: ""; display: block; height: 70px; border-bottom: 1px solid var(--line-dark); }
.cta-main { padding: 70px max(16px, calc(var(--gutter) - 20px)) 70px 20px; flex: 1; }
.cta-title { font-size: clamp(28px, 2.9vw, 38px); line-height: 1.18; margin-bottom: 26px; max-width: 420px; }
.cta-title em { font-style: normal; color: var(--gold-hi); }
.cta-text { color: var(--muted-dark); font-size: 12.5px; line-height: 1.6; max-width: 420px; }
.cta-foot { border-top: 1px solid var(--line-dark); padding: 72px max(16px, calc(var(--gutter) - 20px)) 70px 20px; }
.cta-foot p { color: var(--muted-dark); font-size: 12.5px; max-width: 320px; margin-bottom: 18px; }

/* ---------- Latest projects ---------- */
.section-latest { border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- Project cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; }
.project-card a { display: block; text-decoration: none; }
.project-thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #dcd8d2; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15); transition: transform .6s ease, filter .4s; }
.project-card a:hover .project-thumb img { transform: scale(1.04); filter: none; }
.project-thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gold); }
.project-thumb-ph svg { width: 54px; height: 54px; }
.project-stage { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--white); font-size: 11px; padding: 5px 12px; }
.project-cat { margin-top: 16px; font-size: 12px; color: #8f7754; }
.project-title { margin-top: 2px; font-size: 19px; line-height: 1.25; }
.project-card a:hover .project-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.project-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters a { font-size: 12.5px; text-decoration: none; padding: 6px 16px; border: 1px solid var(--line); color: #444; }
.filters a:hover { border-color: var(--ink); }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.empty .area-icon { margin: 0 auto 16px; width: 48px; height: 48px; }

/* ---------- Page heroes ---------- */
.page-hero { background: var(--ink); color: var(--white); }
.page-hero-plain { padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 6vw, 72px); }
.page-hero-plain .hero-sub { max-width: 460px; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: end; gap: 0; }
.page-hero-text { padding: 80px 0 72px; position: relative; z-index: 1; }
.page-hero-media { align-self: end; margin-left: -10%; }
.page-hero-media img { width: 100%; height: auto; }
.page-hero-about { overflow: hidden; }

/* ---------- About page ---------- */
.about-page { padding: 72px 0 96px; }
.about-row { display: grid; gap: 40px 60px; }
.about-row-1 { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr); }
.about-row-2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr); margin-top: 40px; align-items: end; }
.quote { margin: 0 0 38px; padding: 4px 0 4px 22px; border-left: 1px solid var(--gold); font-size: clamp(20px, 2vw, 23px); line-height: 1.52; max-width: 300px; }
.about-photo { margin: 0; position: relative; max-width: 287px; }
.about-photo::after { content: ""; position: absolute; top: 0; right: -22px; width: 1px; height: 27%; background: var(--line); }
.about-photo-right { justify-self: end; }
.about-photo-right::after { height: 27%; background: var(--line); }
.about-items { display: flex; flex-direction: column; }
.about-item { display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 20px; align-items: start; padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); margin-right: calc(-1 * (var(--gutter) - 16px)); padding-right: calc(var(--gutter) - 16px); }
.about-item:last-child { border-bottom: 0; }
.about-items-left .about-item { grid-template-columns: 145px minmax(0, 1fr); margin-right: 0; padding-right: 0; margin-left: calc(-1 * (var(--gutter) - 16px)); padding-left: calc(var(--gutter) - 16px); }
.about-items-left .about-item:last-of-type { border-bottom: 0; }
.tag {
  position: relative; font-size: 12px; font-weight: 400; color: #8f7754; text-align: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--gold); line-height: 1.3;
}
.tag::after { content: ""; position: absolute; left: -2px; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.tag-plain { display: inline-block; text-align: left; padding-right: 30px; margin-bottom: 22px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 14px; padding-left: calc(145px + 20px); }

/* ---------- Project page ---------- */
.draft-bar { background: var(--gold); color: var(--ink); text-align: center; padding: 8px 16px; font-size: 13px; }
.project-hero { background: var(--ink); color: var(--white); }
.project-hero-inner { padding: 56px 16px 56px; }
.back-link { display: inline-block; font-size: 12.5px; color: var(--muted-dark); text-decoration: none; margin-bottom: 36px; }
.back-link:hover { color: #fff; }
.project-hero .hero-sub { max-width: 560px; font-size: 14px; }
.project-cover { max-width: calc(var(--container) + 32px + 160px); margin: 0 auto; padding: 0 16px; position: relative; }
.project-cover::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: var(--paper); }
.project-cover img { position: relative; width: 100%; max-height: 72vh; object-fit: cover; }
.project-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose p { font-size: 14.5px; line-height: 1.75; margin-bottom: 1.1em; color: #2b2b2b; max-width: 640px; }
.project-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.project-cta p { margin: 0; font-size: 15px; }
.project-body .container + .container { margin-top: 72px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: fixed; background: none; border: 0; color: #fff; font: 300 44px/1 var(--font); cursor: pointer; padding: 12px 18px; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 48px 80px; }
.contact-info address { font-size: 14px; line-height: 1.8; margin-bottom: 26px; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; font-size: 12.5px; color: #555; }
.field input, .field textarea {
  width: 100%; font: 400 14.5px/1.5 var(--font); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 154, 115, .18); }
.field.has-error input, .field.has-error textarea { border-color: #b4573f; }
.field.has-error span { color: #a24a33; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { font-size: 12.5px; color: #555; margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; background: #fff; }
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.footer-col { padding: 26px 22px 26px; border-right: 1px solid var(--line); }
.footer-col:first-child { padding-left: var(--gutter); }
.footer-col:nth-child(2) { padding-left: clamp(22px, 10%, 140px); }
.footer-col:last-child { border-right: 0; padding-right: var(--gutter); display: flex; align-items: center; justify-content: flex-end; }
.footer-h { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.site-footer address { font-size: 12.5px; line-height: 1.65; color: #3a3a3a; }
.site-footer address a { text-decoration: none; }
.footer-logo .logo { width: 138px; color: var(--ink); }
.socials { display: flex; gap: 8px; }
.social-ph { width: 28px; height: 28px; background: var(--line); }
.social { width: 30px; height: 30px; display: grid; place-items: center; background: var(--line); color: var(--ink); transition: background .2s, color .2s; }
.social:hover { background: var(--gold); color: #fff; }
.social svg { width: 15px; height: 15px; }
.copyright { text-align: center; font-size: 11px; color: #b5b3ae; padding: 14px 16px; border-top: 1px solid var(--line); margin: 0; }

.site-footer.is-dark { background: var(--ink); color: var(--white); border-top-color: var(--line-dark); }
.site-footer.is-dark .footer-col { border-color: var(--line-dark); }
.site-footer.is-dark address { color: var(--muted-dark); }
.site-footer.is-dark .footer-logo .logo { color: var(--white); }
.site-footer.is-dark .social-ph, .site-footer.is-dark .social { background: #d5d3d0; }
.site-footer.is-dark .copyright { border-top-color: var(--line-dark); color: #cfcdc8; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-nav ul { gap: 22px; }
  .site-nav { gap: 18px; }
  .areas-grid { grid-template-columns: 1fr; }
  .areas-intro { padding-bottom: 0; }
  .areas-list { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; padding: 40px 16px 64px; gap: 36px 22px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-row-1, .about-row-2 { grid-template-columns: 1fr; }
  .about-item, .about-items-left .about-item { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .about-photo-right { justify-self: start; }
  .about-row-1 .about-photo { display: none; }
  .project-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --header-h: 70px; }
  .logo { width: 118px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: #fff; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .2s; }
  .bars { position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-open .bars { background: transparent; }
  .nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    background: var(--ink); padding: 12px 16px 28px; border-top: 1px solid var(--line-dark);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav ul a { display: block; font-size: 18px; padding: 10px 0; }

  .hero { grid-template-columns: 1fr; }
  .hero-text { border-right: 0; }
  .hero-top { padding: 48px 16px 36px; }
  .hero-bottom { padding: 28px 16px 40px; }
  .hero-media { margin: 0; aspect-ratio: 4 / 3; }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-grid > .text, .about-grid > div:last-child { padding-top: 0; }

  .cta { grid-template-columns: 1fr; }
  .cta-media { min-height: 0; aspect-ratio: 4 / 3; }
  .cta-body { margin-left: 0; border-left: 0; }
  .cta-body::before { display: none; }
  .cta-main { padding: 48px 16px 40px; }
  .cta-foot { padding: 36px 16px 48px; }

  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-text { padding: 48px 0 28px; }
  .page-hero-media { margin: 0 -16px; }

  .about-item, .about-items-left .about-item { grid-template-columns: 1fr; gap: 12px; }
  .about-item .tag { order: -1; justify-self: start; padding-right: 26px; }
  .about-cta { padding-left: 0; }
  .about-photo::after { display: none; }

  .project-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-col, .footer-col:first-child, .footer-col:nth-child(2), .footer-col:last-child { padding: 22px 16px; border-right: 0; border-bottom: 1px solid var(--line); justify-content: flex-start; }
  .site-footer.is-dark .footer-col { border-bottom-color: var(--line-dark); }
}

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