/* ============================================================
   MAX TOWERS — Delhi One, Sector 16B, Noida
   Ultra-minimal white. Inter. Hairlines. One cobalt accent.
   Apple-like calm, in the WorkWell spirit.
   ============================================================ */

:root {
  --white: #ffffff;
  --tint: #f7f8fa;
  --ink: #16181d;
  --grey: #6e7480;
  --hairline: #e5e7eb;
  --cobalt: #0043ce;
  --cobalt-dark: #00339e;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

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

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__mark {
  font-size: 21px; font-weight: 300; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--ink);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--cobalt); z-index: 150;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 32px;
}
.nav__brand {
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav__brand em {
  font-style: normal; font-weight: 400; color: var(--grey);
  margin-left: 10px; font-size: 13px;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__link {
  font-size: 14px; color: var(--grey); text-decoration: none;
  transition: color 0.2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__cta {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--white); background: var(--cobalt);
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  transition: background 0.2s ease;
}
.nav__cta:hover { background: var(--cobalt-dark); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 160px 0 100px; text-align: center; }
.hero__meta {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cobalt);
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(52px, 8.5vw, 108px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.02;
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char {
  display: inline-block; opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero__title .char.in { opacity: 1; transform: translateY(0); }
.hero__sub {
  max-width: 640px; margin: 24px auto 0;
  font-size: 20px; font-weight: 300; line-height: 1.6; color: var(--grey);
}

.hero__grid {
  margin-top: 64px;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px;
  align-items: stretch; text-align: left;
}

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.photo figcaption { margin-top: 14px; font-size: 13px; color: var(--grey); text-align: center; }
.photo--hero { display: flex; }
.photo--hero img { min-height: 380px; }
.photo--wide { max-width: 860px; margin: 56px auto 0; }

/* ---------- Fade / reveal ---------- */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.show { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Enquiry panel ---------- */
.panel--hero {
  background: var(--white);
  border: 1px solid var(--hairline); border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(22, 24, 29, 0.06);
}
.panel__flag {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cobalt);
}
.panel__head { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 6px 0 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 12px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--grey);
}
.field input, .field select {
  width: 100%; padding: 11px 12px;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--tint); border: 1px solid transparent; border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--cobalt); background: var(--white);
}
.field--hidden { display: none; }

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-decoration: none; text-align: center;
  color: var(--white); background: var(--cobalt);
  border: 1px solid var(--cobalt); border-radius: 999px;
  padding: 13px 28px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); }
.btn--full { width: 100%; }
.btn--line { background: transparent; color: var(--cobalt); }
.btn--line:hover { background: var(--cobalt); color: var(--white); }

.contact__note { margin-top: 10px; font-size: 14px; color: var(--grey); min-height: 20px; }
.contact__note.ok { color: var(--cobalt); }
.contact__note.err { color: #c2402a; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--tint { background: var(--tint); }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 22px; margin-bottom: 52px;
}
.section__head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 300; letter-spacing: -0.02em;
}
.section__tag { font-size: 13px; color: var(--grey); }
.section__lede {
  max-width: 620px; margin: -22px 0 46px;
  font-size: 20px; font-weight: 300; color: var(--grey);
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-bottom: 60px;
}
.stat { border-top: 1px solid var(--hairline); padding-top: 18px; }
.stat__num {
  font-size: clamp(30px, 3.8vw, 46px); font-weight: 300;
  letter-spacing: -0.02em; color: var(--cobalt);
}
.stat p { margin-top: 6px; font-size: 14.5px; color: var(--grey); }

/* ---------- Table ---------- */
.table { border-top: 1px solid var(--hairline); }
.table__row {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  padding: 16px 2px; border-bottom: 1px solid var(--hairline);
}
.table__row span { font-size: 13.5px; color: var(--grey); padding-top: 3px; }
.table__row b { font-weight: 500; font-size: 17px; }
.table__row b a { color: var(--cobalt); }
.section .btn--line.reveal { margin-top: 36px; }

/* ---------- WorkWell grid ---------- */
.wwgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ww {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 28px 26px;
}
.section--tint .ww { border-color: transparent; }
.ww h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; }
.ww p { font-size: 15.5px; color: var(--grey); }

/* ---------- Occupiers ---------- */
.occ { max-width: 860px; }
.occ__names { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.occ__names span {
  font-size: 14px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 9px 18px;
}
.occ__note { margin-top: 24px; font-size: 18px; font-weight: 300; color: var(--grey); }

/* ---------- Contact ---------- */
.contactrow {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.contactrow__big { font-size: clamp(24px, 3.4vw, 34px); font-weight: 300; letter-spacing: -0.01em; }
.contactrow__big a { color: var(--ink); text-decoration: none; }
.contactrow__big a:hover { color: var(--cobalt); }
.contactrow__sub { margin-top: 10px; font-size: 15px; color: var(--grey); }
.contactrow__cta { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 48px; text-align: center;
}
.footer__brand { font-size: 15px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.footer__meta { margin-top: 10px; font-size: 14.5px; color: var(--grey); }
.footer__legal { margin-top: 16px; font-size: 13px; color: #9aa0ab; }
.footer__legal a { color: var(--grey); }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 26px; bottom: 26px; z-index: 120; }
.chat__fab {
  cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--white); background: var(--cobalt);
  border: none; border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 12px 32px rgba(0, 67, 206, 0.3);
  transition: background 0.2s ease;
}
.chat__fab:hover { background: var(--cobalt-dark); }
.chat__panel {
  position: absolute; right: 0; bottom: 64px;
  width: min(380px, calc(100vw - 52px));
  background: var(--white);
  border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(22, 24, 29, 0.16);
  padding: 22px;
  display: none; flex-direction: column; max-height: 560px;
}
.chat.open .chat__panel { display: flex; }
.chat__close {
  position: absolute; top: 8px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--grey);
}
.chat__flag {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cobalt);
}
.chat__panel h3 { font-size: 18px; font-weight: 600; margin: 4px 0 12px; }
.chat__msgs { flex: 1; overflow-y: auto; min-height: 120px; max-height: 330px; margin-bottom: 12px; }
.chat__msg { margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
.chat__msg--user { text-align: right; color: var(--cobalt); }
.chat__msg--assistant { color: var(--ink); }
.chat__msg--typing { color: var(--grey); font-style: italic; }
.chat__form { display: flex; gap: 8px; }
.chat__form input {
  flex: 1; padding: 10px 12px;
  font-family: var(--sans); font-size: 15px;
  background: var(--tint); border: 1px solid transparent; border-radius: 10px;
}
.chat__form input:focus { outline: none; border-color: var(--cobalt); background: var(--white); }
.chat__send {
  cursor: pointer; background: var(--cobalt); color: var(--white);
  border: none; border-radius: 10px; font-size: 17px; padding: 0 15px;
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; left: 26px; bottom: 26px; z-index: 110;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--hairline); text-decoration: none; font-size: 17px;
  box-shadow: 0 8px 24px rgba(22, 24, 29, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .photo--hero img { min-height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .wwgrid { grid-template-columns: repeat(2, 1fr); }
  .contactrow { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column; align-items: center; gap: 0;
    padding: 10px 0; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 12px 0; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__brand em { display: none; }
  .hero { padding: 130px 0 72px; }
  .section { padding: 72px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .wwgrid { grid-template-columns: 1fr; }
  .table__row { grid-template-columns: 1fr; gap: 2px; }
  .chat { right: 16px; bottom: 16px; }
  .to-top { left: 16px; bottom: 16px; }
}
