/* ============================================================
   MAX TOWERS — Delhi One, Sector 16B, Noida
   Warm white. Inter. Centered. Bold. No boxes.
   One bronze accent, in the WorkWell spirit.
   ============================================================ */

:root {
  --base: #fbfaf7;        /* warm white page */
  --panel: #f4f0ea;       /* faint warm tint band */
  --ink: #1c1d21;         /* near-black text */
  --grey: #6e6a62;        /* warm grey */
  --grey-soft: #9a948a;   /* faintest warm grey */
  --hairline: #e7e2da;    /* warm hairline */
  --bronze: #a9743a;      /* accent */
  --bronze-dark: #8a5e2e; /* accent, hover */
  --bronze-light: #d8a86a;/* accent on dark */
  --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(--base);
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection { background: #f1e7d8; color: var(--ink); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  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: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: #fff;
}

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

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

.nav.scrolled {
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
.nav.scrolled .nav__brand { color: var(--ink); }
.nav.scrolled .nav__brand em { color: var(--grey); }
.nav.scrolled .nav__link { color: var(--grey); }
.nav.scrolled .nav__link:hover { color: var(--ink); }
.nav.scrolled .nav__toggle span { background: var(--ink); }

/* ---------- Hero (building image in the background) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 150px 0 96px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('assets/photos/hero.jpg') center 30% / cover no-repeat;
  transform: scale(1.02);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 21, 25, 0.62) 0%, rgba(20, 21, 25, 0.42) 38%, rgba(20, 21, 25, 0.72) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; }
.hero__meta {
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bronze-light);
}
.hero__title {
  margin-top: 16px;
  font-size: clamp(46px, 10vw, 132px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  color: #fff;
}
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char {
  display: inline-block; opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero__title .char.in { opacity: 1; transform: translateY(0); }
.hero__sub {
  max-width: 620px; margin: 22px auto 0;
  font-size: clamp(18px, 2.2vw, 21px); font-weight: 400; line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Hero form (open, underline fields — no box) ---------- */
.hero__form { max-width: 680px; margin: 46px auto 0; }
.hero__form-flag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--bronze-light);
  margin-bottom: 22px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.field { margin-bottom: 22px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.field input, .field select {
  width: 100%; padding: 8px 2px;
  font-family: var(--sans); font-size: 16px; text-align: center; color: #fff;
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  transition: border-color 0.2s ease;
}
.field input::placeholder { color: rgba(255, 255, 255, 0.5); }
.field input:focus, .field select:focus {
  outline: none; border-bottom-color: var(--bronze-light);
}
.field select { color: rgba(255, 255, 255, 0.92); }
.field select option { color: var(--ink); }
.field--hidden { display: none; }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; text-align: center;
  color: #fff; background: var(--bronze);
  border: 1px solid var(--bronze); border-radius: 999px;
  padding: 14px 34px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--bronze-dark); border-color: var(--bronze-dark); }
.btn--full { width: 100%; margin-top: 8px; }
.btn--line { background: transparent; color: var(--bronze); }
.btn--line:hover { background: var(--bronze); color: #fff; }

.contact__note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.8); min-height: 20px; }
.contact__note.ok { color: var(--bronze-light); }
.contact__note.err { color: #f0a58f; }

/* Hero scroll cue */
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.hero__scroll::after {
  content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.5);
}

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

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section--tint { background: var(--panel); }
.section__head { margin-bottom: 52px; }
.section__tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  color: var(--bronze); margin-bottom: 14px;
}
.section__head h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
}
.section__lede {
  max-width: 660px; margin: 0 auto 52px;
  font-size: clamp(19px, 2.4vw, 23px); font-weight: 400; color: var(--grey);
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px;
  margin-bottom: 64px;
}
.stat::before {
  content: ""; display: block; width: 28px; height: 3px;
  background: var(--bronze); margin: 0 auto 18px;
}
.stat__num {
  display: block; white-space: nowrap;
  font-size: clamp(34px, 4.6vw, 52px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.stat p { margin-top: 12px; font-size: 14.5px; color: var(--grey); }

/* ---------- Specs (centered, no boxes) ---------- */
.specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px;
  max-width: 940px; margin: 0 auto;
}
.specs--loc { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.spec b {
  display: block; font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--ink);
}
.spec span { display: block; margin-top: 6px; font-size: 13px; color: var(--grey); }

/* ---------- Context band (full-bleed image) ---------- */
.band {
  position: relative; overflow: hidden;
  padding: 128px 0;
  display: flex; align-items: center;
  color: #fff;
}
.band__bg {
  position: absolute; inset: 0;
  background: var(--ink);
}
.band__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 25, 0.55), rgba(20, 21, 25, 0.7));
}
.band__content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.band__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--bronze-light); margin-bottom: 16px;
}
.band__head { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.band__text { margin-top: 20px; font-size: clamp(17px, 2.2vw, 20px); color: rgba(255, 255, 255, 0.9); }

/* ---------- WorkWell (open, no cards) ---------- */
.wwgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; max-width: 980px; margin: 0 auto; }
.ww h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.ww h3::before {
  content: ""; display: block; width: 30px; height: 3px;
  background: var(--bronze); margin: 0 auto 16px;
}
.ww p { font-size: 15.5px; color: var(--grey); }

/* ---------- Occupiers (plain, no pills) ---------- */
.occ__names {
  max-width: 900px; margin: 0 auto;
  font-size: clamp(22px, 3vw, 34px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.35; color: var(--ink);
}
.occ__note { max-width: 620px; margin: 30px auto 0; font-size: 18px; color: var(--grey); }

/* ---------- Gallery (images, no boxes) ---------- */
.gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: stretch;
}
.gallery__item { margin: 0; display: flex; flex-direction: column; }
.gallery__item img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.gallery__item figcaption { margin-top: 14px; font-size: 13px; color: var(--grey); }

/* ---------- Single labeled photo ---------- */
.photo-single { max-width: 620px; margin: 0 auto; }
.photo-single img { width: 100%; display: block; }
.photo-single figcaption { margin-top: 14px; font-size: 13px; color: var(--grey); }

/* ---------- Location button ---------- */
.section .btn--line.reveal { margin-top: 44px; }

/* ---------- Contact ---------- */
.contactrow { max-width: 620px; margin: 0 auto; }
.contactrow__big { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.contactrow__big a { color: var(--ink); text-decoration: none; }
.contactrow__big a:hover { color: var(--bronze); }
.contactrow__sub { margin-top: 16px; font-size: 15px; color: var(--grey); }
.contactrow__cta { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 48px;
}
.footer__logo { height: 46px; width: auto; margin: 0 auto 24px; display: block; }
.footer__brand { font-size: 15px; font-weight: 700; 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: var(--grey-soft); }
.footer__legal a { color: var(--grey); }

/* ---------- Chat ---------- */
.chat { position: fixed; right: 26px; bottom: 26px; z-index: 120; text-align: left; }
.chat__fab {
  cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: #fff; background: var(--bronze);
  border: none; border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 12px 32px rgba(169, 116, 58, 0.32);
  transition: background 0.2s ease;
}
.chat__fab:hover { background: var(--bronze-dark); }
.chat__panel {
  position: absolute; right: 0; bottom: 64px;
  width: min(380px, calc(100vw - 52px));
  background: var(--base);
  border: 1px solid var(--hairline); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(28, 29, 33, 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: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bronze);
}
.chat__panel h3 { font-size: 18px; font-weight: 700; 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(--bronze-dark); }
.chat__msg--assistant { text-align: left; 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(--panel); border: 1px solid transparent; border-radius: 10px;
}
.chat__form input:focus { outline: none; border-color: var(--bronze); background: #fff; }
.chat__send {
  cursor: pointer; background: var(--bronze); color: #fff;
  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(--base); color: var(--ink);
  border: 1px solid var(--hairline); text-decoration: none; font-size: 17px;
  box-shadow: 0 8px 24px rgba(28, 29, 33, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, color 0.2s ease, border-color 0.2s ease;
}
.to-top:hover { border-color: var(--bronze); color: var(--bronze); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .specs, .specs--loc { grid-template-columns: repeat(2, 1fr); }
  .wwgrid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item img { min-height: 300px; }
}

@media (max-width: 760px) {
  .nav__inner { padding: 16px 20px; }
  .nav__links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(12px);
    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: 14px 0; color: var(--ink); }
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__brand em { display: none; }
  .container { padding: 0 22px; }
  .hero { padding: 112px 0 72px; }
  .hero__bg { background-position: 58% 30%; }
  .hero__scroll { display: none; }
  .hero__form { margin-top: 34px; }
  .field { margin-bottom: 20px; }
  .field input, .field select { padding: 13px 4px; font-size: 16px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 36px; }
  .band { padding: 84px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 20px; margin-bottom: 44px; }
  .stat__num { font-size: clamp(24px, 7.5vw, 38px); }
  .stat::before { margin-bottom: 14px; }
  .specs, .specs--loc { grid-template-columns: 1fr; gap: 26px; }
  .wwgrid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { gap: 18px; }
  .gallery__item img { min-height: 260px; }
  .occ__names { font-size: clamp(21px, 6vw, 30px); }
  .contactrow__cta { flex-direction: column; }
  .contactrow__cta .btn { width: 100%; }
  .chat { right: 14px; bottom: 14px; }
  .chat__fab { padding: 13px 20px; }
  .chat__panel { width: calc(100vw - 28px); max-height: calc(100svh - 110px); }
  .to-top { left: 14px; bottom: 14px; }
}
