
:root {
  --ivory: #f8f3e9;
  --ivory-2: #fffdf8;
  --green: #123d36;
  --green-soft: #234f47;
  --gold: #c99a3e;
  --gold-dark: #a97920;
  --gold-light: #e4c77f;
  --text: #263b37;
  --muted: #7a7770;
  --line: rgba(169, 121, 32, .30);
  --shadow: 0 18px 50px rgba(66, 48, 20, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

h1, h2, h3, .brand {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
}

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 7vw, 120px);
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid rgba(169,121,32,.14);
  position: relative;
  z-index: 10;
}

.brand {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border: 1px solid var(--gold-dark);
  border-radius: 5px;
  background: linear-gradient(180deg, #d7ad59, #bd8b2c);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(169,121,32,.20);
}

/* =========================
   HERO / HERITAGE ARCH
   ========================= */

.hero {
  min-height: 590px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 35px 20px 0;
  background: var(--ivory);
}

/* Architecture visible at the sides */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(248,243,233,.02) 0%,
      rgba(248,243,233,.06) 14%,
      rgba(248,243,233,.96) 20%,
      rgba(248,243,233,.98) 80%,
      rgba(248,243,233,.06) 86%,
      rgba(248,243,233,.02) 100%
    ),
    url("assets/niwaas-hero-architecture.jpg") center top / cover no-repeat;
  opacity: .95;
}

/* Pale jaali texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    radial-gradient(circle at 25% 25%, transparent 0 9px, rgba(169,121,32,.18) 10px 11px, transparent 12px);
  background-size: 34px 34px;
}

.hero-card {
  width: min(920px, 92vw);
  min-height: 530px;
  position: relative;
  z-index: 2;
  padding: 68px 55px 45px;
  text-align: center;
  background: rgba(255,253,248,.91);
  border: 1px solid var(--gold-light);
  border-radius: 120px 120px 24px 24px;
  box-shadow: 0 25px 70px rgba(65,47,18,.10);
}

/* Decorative inner arch */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201,154,62,.42);
  border-radius: 105px 105px 16px 16px;
  pointer-events: none;
}

.ornament {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 15px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.055em;
}

.hero-subtitle {
  max-width: 620px;
  margin: 22px auto 28px;
  color: #5f625e;
  font-size: 16px;
  line-height: 1.65;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 30px;
  color: var(--gold);
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--gold-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.step {
  padding: 0 28px;
  border-right: 1px solid var(--line);
}

.step:last-child { border-right: 0; }

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--green);
  font-size: 20px;
}

.step h3 {
  margin: 0 0 7px;
  font: 600 15px Georgia, serif;
  color: var(--green);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* =========================
   FEATURES
   ========================= */

.features {
  position: relative;
  z-index: 3;
  width: min(970px, 92vw);
  margin: -20px auto 0;
}

.section-label {
  margin: 0 0 18px;
  text-align: center;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.feature-card {
  min-height: 125px;
  padding: 22px 24px;
  background: rgba(255,253,248,.97);
  border: 1px solid var(--line);
  border-radius: 9px;
  position: relative;
  box-shadow: 0 8px 25px rgba(65,47,18,.04);
}

.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--gold-light);
  border-style: solid;
}

.feature-card::before {
  top: 7px;
  left: 7px;
  border-width: 1px 0 0 1px;
}

.feature-card::after {
  right: 7px;
  bottom: 7px;
  border-width: 0 1px 1px 0;
}

.feature-icon {
  color: var(--gold-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 7px;
  font: 600 15px Georgia, serif;
  color: var(--green);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* =========================
   APP + DASHBOARD SHOWCASE
   ========================= */

.showcase {
  margin-top: 70px;
  padding: 70px max(7vw, 30px);
  background:
    linear-gradient(rgba(248,243,233,.94), rgba(248,243,233,.94)),
    /* niwaas-hero-architecture.jpg has the full hero mockup (text, buttons,
       labels) flattened into its pixels — invisible through .hero's heavy
       gradient mask, but it bleeds through visibly at this section's flat
       94%-opacity overlay. Swapped to a clean architecture crop with no
       baked-in UI; same treatment, same visual language, no ghosting. */
    url("assets/niwaas-right-architecture.jpg") center / cover;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.showcase-inner {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.showcase h2 {
  max-width: 540px;
  margin: 14px 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.05;
}

.showcase p {
  max-width: 510px;
  color: var(--muted);
  line-height: 1.7;
}

.device-showcase {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.device-showcase img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 30px rgba(50,40,20,.18));
}

.app-phone {
  width: 220px;
}

.dashboard {
  width: min(620px, 100%);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .hero-card {
    padding: 55px 25px 35px;
    border-radius: 80px 80px 18px 18px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child { border-bottom: 0; }

  .feature-grid {
    gap: 10px;
  }

  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 62px;
    padding: 0 18px;
  }

  .nav {
    gap: 12px;
    font-size: 11px;
  }

  .nav a:nth-child(-n+2) {
    display: none;
  }

  .hero {
    min-height: 620px;
    padding-top: 20px;
  }

  .hero-card {
    width: 96vw;
    min-height: 575px;
    padding: 48px 18px 25px;
    border-radius: 55px 55px 14px 14px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .showcase {
    padding: 50px 20px;
  }

  .device-showcase {
    flex-direction: column;
    align-items: center;
  }

  .app-phone {
    width: 190px;
  }

  .dashboard {
    width: 100%;
  }
}
