/* Aparna Constructions project pages - styles
   Brand colors: primary #E60105 (Aparna red), accent #B00004 (deep red), light tint #FDF2F1 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-var.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/playfair-var.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/playfair-var.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-var.woff2") format("woff2");
}

:root {
  /* Canonical 3+3+3+2 brand tokens. Source of truth:
     builders/aparna-constructions/aparna-constructions.json -> branding.colors */
  --brand-primary:   #E60105;   /* Aparna red - main brand (buttons carry white text) */
  --brand-secondary: #B00004;   /* deep red - hover, accents, accessible text on white (7.4:1) */
  --brand-tertiary:  #fdf2f1;   /* light red tint - section bands, table headers, hero wash */
  --brand-on-dark:   #ff6b6e;   /* lightened red for links/accents on dark surfaces (AA >6:1) */
  --dark-primary:    #171717;   /* body text, headlines */
  --dark-secondary:  #3f3f3f;   /* secondary text */
  --dark-tertiary:   #6b6b6b;   /* muted text */
  --light-primary:   #faf7f6;   /* warm off-white page background */
  --light-secondary: #ffffff;   /* card / elevated surface */
  --light-tertiary:  #efe7e6;   /* alt panel / nested surface */
  --state-success:   #176A2C;   /* form success */
  --state-error:     #861123;   /* form error */
  /* Derived border tint between light-tertiary and dark-tertiary */
  --brand-line: #ecdedd;
  --shadow-soft: 0 16px 48px rgba(20, 20, 20, 0.08);
  --shadow-card: 0 6px 22px rgba(20, 20, 20, 0.07);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--dark-primary);
  background: var(--light-secondary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--dark-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--dark-primary);
}

p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--dark-primary);
}

h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.4em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-updated {
  margin: 0.6rem 0 1.2rem;
  color: var(--dark-primary);
  font-size: 0.92rem;
  font-family: var(--font-sans);
}

.page-updated time {
  font-weight: 600;
}

/* ---------- NAV ---------- */
.ba-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--light-secondary);
  border-bottom: 1px solid var(--brand-line);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}

.ba-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.ba-nav__brand {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dark-primary);
}

.ba-nav__brand img {
  height: 34px;
  width: auto;
  border-radius: 4px;
}

.ba-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ba-nav__brand-developer {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-secondary);
}

.ba-nav__brand-project {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark-primary);
}

.ba-nav__links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.ba-nav__link {
  color: var(--dark-secondary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ba-nav__link:hover {
  color: var(--dark-secondary);
}

.ba-nav__cta {
  background: var(--brand-primary);
  color: var(--light-secondary);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ba-nav__cta:hover {
  color: var(--light-secondary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-primary) 45%, transparent);
}

.ba-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.ba-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark-primary);
  margin: 4px 0;
  border-radius: 2px;
}

@media (max-width: 1024px) {
  .ba-nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--light-secondary);
    border-bottom: 1px solid var(--brand-line);
    padding: 0.5rem 0;
  }
  .ba-nav.is-open .ba-nav__links {
    display: flex;
  }
  .ba-nav__link, .ba-nav__cta {
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    text-align: left;
    width: 100%;
  }
  .ba-nav__cta {
    margin: 0.4rem 1.25rem;
    width: auto;
    border-radius: 999px;
    text-align: center;
  }
  .ba-nav__toggle {
    display: inline-block;
  }
}

/* ---------- HERO (split layout: image left, content right) ---------- */
.ba-hero {
  background: linear-gradient(180deg, var(--brand-tertiary) 0%, var(--light-secondary) 100%);
  border-bottom: 1px solid var(--brand-line);
}

.ba-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2.4rem, 5vw, 4.2rem) 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.ba-hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--light-tertiary);
}

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

.ba-hero__tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-secondary);
  background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.ba-hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.ba-hero__lede {
  font-size: 1.05rem;
  color: var(--dark-secondary);
  max-width: 56ch;
}

.ba-hero__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.ba-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--brand-line);
}

.ba-hero__stat-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-tertiary);
  margin-bottom: 0.25rem;
}

.ba-hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark-primary);
}

@media (max-width: 1024px) {
  .ba-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .ba-hero__media {
    order: -1;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--light-secondary);
}

.btn-primary:hover {
  color: var(--light-secondary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary) 40%, transparent);
}

.btn-outline {
  background: transparent;
  color: var(--dark-primary);
  border-color: var(--dark-secondary);
}

.btn-outline:hover {
  background: var(--dark-primary);
  color: var(--light-secondary);
}

.btn-dark {
  background: var(--dark-primary);
  color: var(--light-secondary);
}

.btn-dark:hover {
  color: var(--light-secondary);
  background: var(--dark-secondary);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--cream {
  background: var(--brand-tertiary);
}

.section--dark {
  background: var(--dark-primary);
  color: var(--brand-tertiary);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--light-secondary);
}

.section--dark a {
  color: var(--brand-on-dark);
}

.section__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-secondary);
  margin-bottom: 0.5rem;
}

.section__title {
  margin: 0 0 1rem;
}

.section__lede {
  font-size: 1.05rem;
  color: var(--dark-secondary);
  max-width: 60ch;
  margin: 0 0 1.8rem;
}

.section--dark .section__lede {
  color: var(--light-tertiary);
}

.section__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---------- Highlights grid ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-card {
  background: var(--light-secondary);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
}

.section--cream .highlight-card {
  background: var(--light-secondary);
}

.highlight-card__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-secondary);
  display: block;
  margin-bottom: 0.2rem;
}

.highlight-card__label {
  font-size: 0.94rem;
  color: var(--dark-secondary);
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.two-col__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ---------- Gallery (6 cards) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light-tertiary);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
  padding: 0;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

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

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--dark-primary);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px var(--dark-primary);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--light-secondary);
  color: var(--dark-primary);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- Floor plans (3 cards) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.plan-card {
  background: var(--light-secondary);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.plan-card__media {
  background: var(--light-tertiary);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.plan-card__body {
  padding: 1.1rem 1.3rem 1.4rem;
}

.plan-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.plan-card__meta {
  color: var(--dark-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.plan-card__desc {
  color: var(--dark-secondary);
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.amenity-chip {
  background: var(--light-secondary);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  color: var(--dark-secondary);
}

.section--cream .amenity-chip {
  background: var(--light-secondary);
}

/* ---------- Data table ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  background: var(--light-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--brand-line);
  font-size: 0.95rem;
}

.data-table th {
  background: var(--brand-tertiary);
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--dark-primary);
}

.data-table tr:last-child td {
  border-bottom: 0;
}
.rera-id { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--light-secondary);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-md);
  padding: 0.2rem 1.2rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-primary);
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-size: 1.4rem;
  color: var(--dark-secondary);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 0 1rem;
  color: var(--dark-secondary);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Contact form ---------- */
.form-card {
  background: var(--light-secondary);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--dark-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--dark-primary);
  background: var(--light-secondary);
  transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

.field-error {
  display: block;
  color: var(--state-error);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1em;
}

.form-submit {
  background: var(--brand-primary);
  color: var(--light-secondary);
  border: 0;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-primary) 45%, transparent);
}

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-status.success, #form-message.success {
  background: color-mix(in srgb, var(--state-success) 12%, transparent);
  color: var(--state-success);
  border: 1px solid color-mix(in srgb, var(--state-success) 35%, transparent);
}

.form-status.error, #form-message.error {
  background: color-mix(in srgb, var(--state-error) 12%, transparent);
  color: var(--state-error);
  border: 1px solid color-mix(in srgb, var(--state-error) 35%, transparent);
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.ba-footer {
  background: var(--dark-primary);
  color: var(--light-tertiary);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
}

.ba-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.ba-footer__brand img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.6rem;
  border-radius: 6px;
}

.ba-footer__brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.9rem;
}

.ba-footer__brand-lockup img {
  margin-bottom: 0;
  flex-shrink: 0;
}

.ba-footer__brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.08;
  min-width: 0;
}

.ba-footer__brand-developer {
  color: var(--light-tertiary);
}

.ba-footer__brand-project {
  color: var(--light-secondary);
}

.ba-footer__brand p {
  color: var(--light-tertiary);
  font-size: 0.9rem;
}

.ba-footer__col h4,
.ba-footer__col p.footer-heading {
  font-family: var(--font-sans);
  color: var(--light-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.ba-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ba-footer__col li {
  margin-bottom: 0.5rem;
}

.ba-footer__col a {
  color: var(--light-tertiary);
  font-size: 0.92rem;
}

.ba-footer__col a:hover {
  color: var(--brand-on-dark);
}

.ba-footer__disclaimer {
  border-top: 1px solid var(--light-secondary);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--brand-tertiary) 65%, transparent);
  line-height: 1.6;
}

.ba-footer__copy {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--brand-tertiary) 65%, transparent);
}

@media (max-width: 1024px) {
  .ba-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ba-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--brand-tertiary) 0%, var(--light-secondary) 100%);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--brand-line);
}

.page-hero__breadcrumb {
  font-size: 0.85rem;
  color: var(--dark-tertiary);
  margin-bottom: 0.6rem;
}

.page-hero__breadcrumb a {
  color: var(--dark-secondary);
}

.page-hero__title {
  margin: 0 0 0.4rem;
}

.page-hero__lede {
  font-size: 1.05rem;
  color: var(--dark-secondary);
  max-width: 60ch;
}

.page-hero--with-form .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.page-hero--with-form .form-card {
  margin: 0;
}

@media (max-width: 1024px) {
  .page-hero--with-form .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--dark-primary);
  color: var(--light-secondary);
  border-radius: 6px;
  z-index: 99;
}

/* ---------- Closing CTA ---------- */
.closing-cta {
  background: var(--dark-primary);
  color: var(--light-secondary);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}

.closing-cta h2 {
  color: var(--light-secondary);
  margin-bottom: 0.6rem;
}

.closing-cta p {
  color: var(--light-tertiary);
  max-width: 50ch;
  margin: 0 auto 1.4rem;
}

/* ---------- Map embed ---------- */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  background: var(--light-tertiary);
}

.map-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* fleet: nav links title-case + 12px (2026-06-05) */
.ba-nav__link{font-size:12px !important;text-transform:none !important}

/* fleet: nav collapses at tablet 1024 (2026-06-05) */
@media(min-width:1025px){.ba-nav__links{display:flex !important}.ba-nav__toggle{display:none !important}}
@media(max-width:1024px){.ba-nav__links{display:none !important}.ba-nav__toggle{display:inline-block !important}.ba-nav__links.is-open,.is-open .ba-nav__links,.ba-nav__links.open,.open .ba-nav__links,.ba-nav__links.active,.active .ba-nav__links,.ba-nav__links.w--open,.w--open .ba-nav__links,.ba-nav__links.on,.on .ba-nav__links,.ba-nav__links.visible,.visible .ba-nav__links,.ba-nav__links.is-visible,.is-visible .ba-nav__links,.ba-nav__links.expanded,.expanded .ba-nav__links,.ba-nav__links.show,.show .ba-nav__links,.ba-nav__links.shown,.shown .ba-nav__links,.ba-nav__links.opened,.opened .ba-nav__links,.ba-nav__links.menu-open,.menu-open .ba-nav__links,.ba-nav__links.nav-open,.nav-open .ba-nav__links,.ba-nav__links[data-nav-menu-open]{display:flex !important;flex-direction:column !important}}

/* fleet: nav brand text size cap — brand NAME <=15px so no logo text exceeds 16px (2026-06-06) */
[class*="brand-project"],[class*="brand-name"],[class*="brand-title"],[class*="brand-lockup__name"]{font-size:15px !important}
[class*="brand-developer"]{font-size:11px !important}
/* Brand lockup split-line convention */
.brand-text,
.footer-brand-text,
.sow-nav__brand-text,
.sow-footer__brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.08;
  min-width: 0;
}
/* Brand lockup hierarchy convention */
[class*="brand-developer"],
[class*="brand-title"],
[class*="brand-lockup__eyebrow"] {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
  text-transform: none !important;
}

[class*="brand-project"],
[class*="brand-subtitle"],
[class*="brand-name"],
[class*="brand-lockup__name"] {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.08 !important;
  text-transform: none !important;
}


/* ==== contact-modal ==== */
.cm-modal {
    /* Re-assert the UA's dialog centering: universal `* { margin: 0 }` resets
       (sattva/purva families and others) strip it, pinning the dialog top-left. */
    margin: auto;
    width: min(100%, 28rem);
    padding: 1rem;
    border: 0;
    background: transparent;
    overscroll-behavior: contain;
    --cm-accent: var(--brand-primary, #E60105);
    --cm-ink: #ffffff;
}

/* Browsers without <dialog> ignore [open] and would render the form inline. */
.cm-modal:not([open]) {
    display: none;
}

/* Literal scrim: ::backdrop cannot reliably see page custom properties. */
.cm-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.cm-modal__panel {
    position: relative;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    box-shadow: 0 20px 25px rgba(15, 23, 42, 0.15);
}

.cm-modal__title {
    margin: 0 0 1.25rem;
    padding-right: 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

.cm-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

.cm-modal__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.cm-modal__close:focus-visible {
    outline: 2px solid var(--cm-accent);
    outline-offset: 2px;
}

.cm-form {
    display: grid;
    gap: 1rem;
}

.cm-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.cm-form__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
}

/* Form controls don't inherit fonts — font: inherit closes the gap. */
.cm-form input,
.cm-form textarea {
    width: 100%;
    min-width: 0;
    font: inherit;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}

.cm-form input:focus-visible,
.cm-form textarea:focus-visible {
    outline: 2px solid var(--cm-accent);
    outline-offset: 1px;
}

.cm-form textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.cm-form__submit {
    border: 0;
    border-radius: 6px;
    background: var(--cm-accent);
    color: var(--cm-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.cm-form__submit:hover {
    opacity: 0.92;
}

.cm-form__submit:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
}

.cm-form__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: #64748b;
}

.cm-form__hint a {
    color: inherit;
    text-decoration: underline;
}

/* Class-based, so it cannot fight any inline body.style.overflow use. */
body.has-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .cm-modal[open] {
        animation: cm-modal-in 160ms ease-out;
    }

    .cm-modal[open]::backdrop {
        animation: cm-modal-backdrop-in 160ms ease-out;
    }
}

@keyframes cm-modal-in {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
}

@keyframes cm-modal-backdrop-in {
    from {
        opacity: 0;
    }
}

/* ---------- Phone widths: nothing may push the page wider than the screen ---------- */
/* Tables scroll sideways inside their own box; margin, radius and shadow move onto the wrapper. */
.data-table-wrap {
  margin: 1.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.data-table-wrap > .data-table {
  margin: 0;
  box-shadow: none;
}

.table-wrap,
.sow-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Long unbroken words (the RERA number, a web address) wrap instead of running off the screen. */
body {
  overflow-wrap: break-word;
}

/* Table cells keep whole words and the table scrolls in its wrapper (a rounding error let a heading's full stop drop to its own line). */
th,
td {
  overflow-wrap: normal;
}

/* A 1fr grid column otherwise grows to fit its longest word. */
.ba-hero__inner > *,
.two-col > *,
.gallery-grid > *,
.plan-grid > *,
.faq-list > *,
.form-row > *,
.ba-footer__grid > *,
.page-hero--with-form .container > * {
  min-width: 0;
}

/* Browsers indent <figure> 40px on each side, which pushed the map past its column.
   :where() keeps this at zero specificity, so a site that sets its own map margins keeps them. */
:where(figure.map-frame) {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 640px) {
  .data-table th,
  .data-table td {
    padding: 0.65rem 0.7rem;
    font-size: 0.9rem;
  }

  /* A RERA number or web address in a table cell may break anywhere, so its column need not be wider than the screen. */
  .long-token {
    overflow-wrap: anywhere;
  }
}

/* Three hero stats side by side only fit from about 480px; below that they stack. */
@media (max-width: 480px) {
  .ba-hero__stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
}

/* ==== build: aparna theme additions ==== */
/* The injected related-projects block reads --font-headline / --font-display / --font-body: alias them to the theme fonts
   (the earlier design never defined --font-body or --font-headline, so that block's heading fell back to Georgia). */
:root { --font-body: var(--font-sans); --font-headline: var(--font-display); }
html { scroll-padding-top: 84px; }
main:focus { outline: none; }
.skip-link { transition: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* The injected block's primary button fades to 92% on hover (white on red 4.81:1 -> 4.4:1): darken the fill instead. */
.related-projects__btn--primary:hover { opacity: 1; background: var(--brand-secondary); border-color: var(--brand-secondary); }

/* ---- focus: the earlier design relied on the UA ring and removed none, so state it where the surface is dark ---- */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 2px; }
.ba-footer a:focus-visible, .closing-cta a:focus-visible, .lightbox button:focus-visible { outline-color: var(--light-secondary); }
.form-group input:focus-visible, .form-group textarea:focus-visible { outline: none; }

/* ---- nav: the current page is marked, and an open phone menu scrolls inside the viewport ---- */
.ba-nav__link[aria-current="page"] { color: var(--dark-primary); text-decoration: underline; text-decoration-color: var(--brand-primary); text-decoration-thickness: 2px; text-underline-offset: 8px; }
@media (max-width: 1024px) {
  .ba-nav__links { max-height: calc(100vh - 66px); overflow-y: auto; }
  .ba-nav__link[aria-current="page"] { text-underline-offset: 6px; }
  /* the panel scrolls, so a ring drawn outside a full-width link is clipped on three sides: draw it inside */
  .ba-nav__link:focus-visible { outline-offset: -3px; }
}

/* ---- links: the earlier design underlines a link only inside a <p>; one inside a list item or a table cell was the same colour as
   the words around it and carried no underline, so it read as plain text (WCAG 1.4.1) ---- */
.section li a, .section td a, .section th a, .not-found-links a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- gallery: a caption under each picture ---- */
.gallery-item { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.gallery-item .gallery-card { display: block; width: 100%; }
.gallery-caption { font-size: 0.88rem; line-height: 1.45; color: var(--dark-secondary); }

/* ---- readable measure: the earlier design let a paragraph run the full 1180px container ---- */
.section .container > p, .section .container > ul, .section .container > ol, .section .two-col > div > p, .section .two-col > div > ul, .section .two-col > div > ol { max-width: 78ch; }
.section .container > h3, .section .two-col > div > h3 { margin-top: 1.8rem; }
.section li { color: var(--dark-secondary); }
.section strong, .page-hero strong { color: var(--dark-primary); }

/* ---- status card: the docs' "Upcoming - Aparna Constructions has not yet named this project ..." sentence, every page ---- */
.status-card { background: var(--brand-tertiary); border: 1px solid var(--brand-line); border-left: 4px solid var(--brand-primary); border-radius: var(--radius-md); padding: 0.85rem 1.15rem 0.95rem; margin: 0 0 1.2rem; max-width: 62ch; }
.status-card .section__label { display: block; margin-bottom: 0.2rem; font-size: 0.72rem; color: var(--brand-secondary); }
.status-card p { margin: 0; font-weight: 600; font-size: 0.97rem; line-height: 1.5; color: var(--dark-primary); }
.ba-hero .status-card, .page-hero .status-card { background: var(--light-secondary); box-shadow: var(--shadow-card); }
.status-card--center { margin-left: auto; margin-right: auto; text-align: left; }
.page-hero__title + .status-card, .container--center h1 + .status-card { margin-top: 1rem; }

/* ---- callouts: the docs' block quotes ---- */
.section .container blockquote, .page-hero blockquote { margin: 1.4rem 0; padding: 0.9rem 1.15rem; max-width: 82ch; background: var(--light-primary); border: 1px solid var(--brand-line); border-left: 4px solid var(--dark-secondary); border-radius: var(--radius-md); }
.section blockquote p, .page-hero blockquote p { margin: 0; color: var(--dark-secondary); }
.section--cream blockquote, .page-hero blockquote { background: var(--light-secondary); }
.page-hero blockquote { margin-top: 1rem; }

/* ---- hero detail ---- */
.ba-hero__lede + .ba-hero__lede, .page-hero__lede + .page-hero__lede { margin-top: -0.2rem; }
.ba-hero__tag { max-width: 100%; }
.ba-hero__content > .status-card { margin-top: 0.2rem; }
.page-hero__lede { max-width: 72ch; }
@media (max-width: 640px) { .ba-hero__actions .btn { flex: 1 1 100%; } }

/* ---- intro paragraphs under the homepage hero ---- */
.section--intro { padding-bottom: 0; }
.section--intro + .section { padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.section--intro + .section--cream { padding-top: clamp(3rem, 6vw, 5rem); }
.section--intro:has(+ .section--cream) { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* ---- tables: first column reads as the label; a wide table keeps a floor width and scrolls in its wrapper ---- */
.data-table td:first-child { font-weight: 600; color: var(--dark-primary); }
.data-table td { color: var(--dark-secondary); vertical-align: top; }
.data-table-wrap[data-cols="4"] .data-table { min-width: 620px; }
.data-table-wrap[data-cols="5"] .data-table { min-width: 720px; }
.data-table-wrap[data-cols="6"] .data-table, .data-table-wrap[data-cols="7"] .data-table { min-width: 860px; }
.data-table-wrap:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 2px; }
/* a table that scrolls fades out on the side that still has columns, and says so once underneath (the table's own opaque
   cells would hide an inset shadow on the wrapper) */
.data-table-wrap.can-scroll-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.data-table-wrap.can-scroll-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.data-table-wrap.can-scroll-left.can-scroll-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.data-table-wrap.can-scroll-left:focus-visible, .data-table-wrap.can-scroll-right:focus-visible { -webkit-mask-image: none; mask-image: none; }
.table-hint { margin: -0.7rem 0 1.2rem; font-size: 0.8rem; color: var(--dark-tertiary); transition: opacity 0.2s ease; }
.table-hint.is-off { opacity: 0; }
.data-table-wrap + .data-table-wrap, .table-hint + .data-table-wrap { margin-top: 1.6rem; }
.section--cream .data-table { background: var(--light-secondary); }
@media (max-width: 640px) {
  .data-table-wrap[data-cols="3"][data-long] .data-table { min-width: 520px; }
  .data-table-wrap[data-cols="4"] .data-table { min-width: 720px; }
  .data-table-wrap[data-cols="5"] .data-table { min-width: 900px; }
  .data-table-wrap[data-cols="6"] .data-table, .data-table-wrap[data-cols="7"] .data-table { min-width: 1100px; }
  .data-table th, .data-table td { padding-left: 0.6rem; padding-right: 0.6rem; }
}
.data-table td.num { white-space: nowrap; }

/* ---- pictures: master plan, location map, plan zoom ---- */
.figure-media { margin: 0; background: var(--light-secondary); }
.figure-zoom { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; }
.figure-media .figure-zoom img { width: 100%; height: auto; object-fit: contain; background: var(--light-secondary); }
.figure-caption { padding: 0.65rem 1rem; font-size: 0.88rem; line-height: 1.5; color: var(--dark-secondary); border-top: 1px solid var(--brand-line); background: var(--light-secondary); }
.map-solo { max-width: 560px; margin: 1.4rem 0 1.6rem; }
@media (min-width: 1025px) and (min-height: 700px) { .two-col__media--stick { position: sticky; top: 92px; } }

/* ---- plan grid: three across (the earlier design), two across for two or four plans, a pair on a tablet ---- */
.plan-note { background: var(--light-secondary); border: 1px solid var(--brand-line); border-left: 4px solid var(--dark-tertiary); border-radius: var(--radius-md); padding: 0.85rem 1.15rem; margin: 1.6rem 0 0; max-width: 82ch; }
.plan-note .section__label { display: block; margin-bottom: 0.15rem; font-size: 0.72rem; }
.plan-note p { margin: 0; font-size: 0.95rem; color: var(--dark-secondary); }
.plan-note + .plan-grid { margin-top: 1.2rem; }
.plan-card__media { aspect-ratio: 1 / 1; }
.plan-card__media .figure-zoom { height: 100%; }
.plan-card__media img { object-fit: contain; }
.plan-card__title { font-size: 1.15rem; }
.plan-card__desc { margin: 0; }
@media (min-width: 641px) and (max-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .plan-grid[data-count="3"] .plan-card__body { padding: 0.9rem 1rem 1.1rem; }
}
@media (min-width: 1025px) { .plan-grid[data-count="2"], .plan-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- the card rows ---- */
.amenity-chip { border-radius: var(--radius-md); }
.highlights-grid { margin-bottom: 1.4rem; }

/* ---- FAQ answers carry paragraphs and lists, not one <p> ---- */
.faq-item > ul, .faq-item > ol { margin: 0 0 1rem; padding-left: 1.3rem; color: var(--dark-secondary); font-size: 0.96rem; }
.faq-item__answer + .faq-item__answer { margin-top: -0.4rem; }
.faq-item summary { padding-right: 2.2rem; }
.faq-list + .section__actions { margin-top: 1.6rem; }

/* ---- the 404 and the closing band ---- */
.container--center { text-align: center; }
.container--center > p { margin-left: auto; margin-right: auto; }
.container--center .section__actions { justify-content: center; }
.not-found-links { text-align: left; max-width: 62ch; margin: 1.8rem auto 0; }
.not-found-links ul { padding-left: 1.3rem; }
.closing-cta__label { display: block; margin-bottom: 0.4rem; color: var(--light-tertiary); }
.closing-cta p a { color: var(--light-secondary); }

/* ---- footer ---- */
.ba-footer__disclaimer a { color: var(--light-secondary); text-decoration: underline; text-underline-offset: 2px; }
.ba-footer__disclaimer a:hover { color: var(--brand-on-dark); }

/* ---- enquiry form: two required fields say so; a status message reads as a notice ---- */
.form-group textarea { resize: vertical; }
/* An inline error must not move the Send button: the error appears on blur, which a mousedown on the button triggers, so
   the earlier design's 1em reserve (13px for a 22px line) let the button slide out from under the pointer and the click was lost.
   Reserve exactly one line, and in the narrow beside-the-copy card (two 216px columns wrap "valid phone number" to two
   lines) stack name and phone so every message stays on one line. */
.field-error { line-height: 1.65; min-height: calc(0.82rem * 1.65); }
@media (min-width: 1025px) { .page-hero--with-form .form-row { grid-template-columns: 1fr; gap: 0; } }
.page-hero__content { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery-card, .ba-nav__cta, .form-submit, .faq-item summary::after { transition: none; }
  .btn:hover, .gallery-card:hover, .ba-nav__cta:hover { transform: none; }
}
