/* ==========================================================================
   Nakshathra Residency — the apartments page

   Page-specific only. Everything structural (spine, band, buttons, taglist,
   speclist, block, jaali, reveal) comes from style.css, and every colour here
   is one of its custom properties so both themes carry.
   ========================================================================== */

/* --- page head ----------------------------------------------------------- */

.pagehead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.pagehead h1 {
  font-size: var(--step-4);
  margin-bottom: 1.5rem;
}

/* three plain pills down to the unit blocks below */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.jump a:hover { color: var(--text); border-color: var(--gold); }

.jump .star { width: 0.6rem; height: 0.6rem; }

/* --- one unit type ------------------------------------------------------- */

.unitpage--alt { background: var(--surface); }

.unithead {
  border-top: 3px solid var(--gold);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.unithead h2 { font-size: var(--step-3); }

.unithead .lede { max-width: 54ch; }

/* the photographs: a lead shot two columns wide, the rest beside and under it */
.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: start;
}

.shot { margin: 0; }

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: var(--surface-2);
}

.shot--tall img { aspect-ratio: 4 / 5; object-position: 50% 40%; }

.shot figcaption {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* spans only once there is more than one column to span */
@media (min-width: 46rem) {
  .shot--lead,
  .shot--wide { grid-column: span 2; }

  .shot--lead img { aspect-ratio: 3 / 2; }
}

/* --- what is in it, who it suits ----------------------------------------- */

.unitbody {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 5vw, 3.5rem);
  align-items: start;
}

.panel h3 {
  font-family: "Karla", sans-serif;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

/* the shared speclist splits into columns on its own; in half a page it should
   stay in one */
.speclist--single { grid-template-columns: 1fr; }

.panel .prose { max-width: 46ch; }

.panel .taglist { margin-top: 1.75rem; }

@media (max-width: 54rem) {
  .unitbody { grid-template-columns: 1fr; }
}

/* --- ask ----------------------------------------------------------------- */

.ask__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.ask__note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.75rem;
  max-width: 54ch;
  font-size: 0.94rem;
  color: var(--text-3);
}

.ask__note .star { margin-top: 0.4em; }

.ask__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--gold);
}

.ask__actions .btn { width: auto; }

.ask__actions .address { margin-top: 0.75rem; font-size: var(--step-1); }

@media (max-width: 54rem) {
  .ask__grid { grid-template-columns: 1fr; }
}

@media (max-width: 38rem) {
  .ask__actions { align-self: stretch; }
  .ask__actions .btn { width: 100%; justify-content: center; }
}

/* The arch is reserved for the homepage niche, where a portrait composition
   carries it. These are landscape room photographs: cropping one to an arch
   or to 4/5 cuts the room away, so the figure stays a plain rectangle. */
.niche__frame {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2);
}

.niche__frame img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
