/* ==========================================================================
   SWAMISAMARTH BUILDCORP — GLOBAL DESIGN SYSTEM
   Step 1: Tokens, Reset, Typography, Header, Footer
   ========================================================================== */

:root {
  /* --- Brand gradient (locked from logo) --- */
  --brand-red: #E33E2B;
  --brand-orange: #F37024;
  --brand-gold: #FBB040;
  --brand-gradient: linear-gradient(100deg, var(--brand-red) 0%, var(--brand-orange) 52%, var(--brand-gold) 100%);

  /* --- Secondary / structural (locked from logo wordmark "BUILDCORP") --- */
  --slate: #707070;
  --slate-soft: #9A9A9A;

  /* --- Grounding anchors: construction-site materials, not decoration ---
     Bronze reads as brass fittings / structural hardware; ink reads as
     site blueprints and steel. These keep the palette from being "just
     an orange gradient on white" like every other builder microsite. */
  --ink: #15151A;
  --ink-soft: #23232B;
  --ivory: #FAF7F1;
  --paper: #FFFFFF;
  --bronze: #8C5A34;
  --blueprint-line: rgba(112, 112, 112, 0.14);

  /* --- Type --- */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace; /* used for RERA numbers, specs, pricing tags */

  /* --- Layout --- */
  --header-height: 84px;
  --max-width: 1240px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-soft: 0 10px 30px rgba(21, 21, 26, 0.08);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   BASE TYPOGRAPHY
   ========================================================================== */

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.eyebrow,
.rera-number,
.spec-value {
  font-family: var(--font-mono);
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   SHARED: GRADIENT TEXT + TILAK SIGNATURE MOTIF
   The U-shaped tilak with its central dot (from the logo's "i") becomes the
   site's recurring structural glyph — used as the dropdown caret and as a
   divider mark, rather than repeating the logo itself.
   ========================================================================== */

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tilak-caret {
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.tilak-caret::before {
  content: '';
  position: absolute;
  inset: 0 0 3px 0;
  border: 2px solid var(--brand-orange);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tilak-caret::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-red);
  transform: translateX(-50%);
}

.has-dropdown[aria-expanded="true"] .tilak-caret,
.has-dropdown:hover .tilak-caret {
  transform: rotate(180deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(227, 62, 43, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(227, 62, 43, 0.36);
}

.btn-ghost {
  border: 1.5px solid var(--slate-soft);
  color: var(--ink);
  background: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blueprint-line);
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.brand-logo {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-item > a,
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 0;
  position: relative;
}

.nav-item > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--brand-gradient);
  transition: right 0.25s var(--ease);
}

.nav-item > a:hover::after {
  right: 0;
}

.nav-item.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.dropdown-menu li a:hover {
  background: var(--ivory);
  color: var(--brand-orange);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.82);
  padding-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
}

.footer-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(250, 247, 241, 0.55);
  max-width: 240px;
}

.footer-heading {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
}

.footer-list li {
  margin-bottom: 10px;
}

.footer-list a {
  font-size: 0.92rem;
  color: rgba(250, 247, 241, 0.75);
  transition: color 0.2s var(--ease);
}

.footer-list a:hover {
  color: var(--brand-gold);
}

.bank-partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bank-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border: 1px solid rgba(250, 247, 241, 0.18);
  border-radius: var(--radius-sm);
  color: rgba(250, 247, 241, 0.85);
}

.rera-list li {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(250, 247, 241, 0.14);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rera-project {
  font-size: 0.85rem;
  color: rgba(250, 247, 241, 0.55);
}

.rera-number {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-gold);
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease);
}

.rera-number:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.rera-disclaimer {
  font-size: 0.8rem;
  color: rgba(250, 247, 241, 0.5);
  margin-top: 10px;
}

.rera-disclaimer a {
  color: rgba(250, 247, 241, 0.75);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(250, 247, 241, 0.1);
  padding: 24px 32px;
}

.footer-legal p {
  max-width: var(--max-width);
  margin: 0 auto 10px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(250, 247, 241, 0.42);
}

.footer-copyright {
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE — TABLET / MOBILE
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.main-nav-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--blueprint-line);
    box-shadow: var(--shadow-soft);
    padding: 16px 24px 24px;
  }

  .main-nav-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav-open .nav-item {
    width: 100%;
  }

  .main-nav-open .nav-item > a,
  .main-nav-open .nav-dropdown-toggle {
    width: 100%;
    padding: 12px 0;
  }

  .main-nav-open .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    display: none;
    width: 100%;
    margin-top: 4px;
  }

  .main-nav-open .has-dropdown[aria-expanded="true"] .dropdown-menu {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.nav-toggle-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.nav-toggle-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.nav-toggle-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 20px 40px;
  }

  .footer-legal {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   STEP 2: HOMEPAGE BODY SECTIONS
   Hero Corridor, Active Projects Grid, Trust Counter Module, Mobile Dock
   ========================================================================== */

/* --- Shared section scaffolding --- */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.btn-large {
  padding: 16px 34px;
  font-size: 1rem;
}

.btn-ghost-dark {
  border-color: rgba(250, 247, 241, 0.4);
  color: var(--ivory);
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* ==========================================================================
   HERO SECTION CORRIDOR
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #1d1d24 0%, var(--ink) 55%, #0d0d10 100%);
  overflow: hidden;
  padding: 80px 32px;
}

.hero-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 247, 241, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-tilak-ambient {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 340px;
  opacity: 0.14;
  pointer-events: none;
}

.hero-tilak-ambient svg {
  width: 100%;
  height: auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.hero-eyebrow {
  color: var(--brand-gold);
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero-subline {
  font-size: 1.08rem;
  color: rgba(250, 247, 241, 0.72);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(250, 247, 241, 0.4);
  border-radius: 20px;
  z-index: 1;
}

.hero-scroll-indicator span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-gold);
  transform: translateX(-50%);
  animation: scrollIndicatorMove 1.8s var(--ease) infinite;
}

@keyframes scrollIndicatorMove {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ==========================================================================
   DYNAMIC ACTIVE PROJECTS GRID
   ========================================================================== */

.projects-section {
  background: var(--paper);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--ivory);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--blueprint-line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

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

.project-card-media {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.project-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-title {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.project-card-location {
  color: var(--slate);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.project-config-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.config-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--blueprint-line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  background: var(--paper);
}

.project-card-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--blueprint-line);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
}

.meta-label {
  color: var(--slate);
}

.meta-value {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.rera-number-inline {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.price-value {
  font-family: var(--font-mono);
  color: var(--bronze);
}

.project-card-cta {
  margin-top: auto;
  text-align: center;
}

/* ==========================================================================
   TRUST COUNTER MODULE
   ========================================================================== */

.trust-section {
  background: var(--ink);
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 160px;
}

.trust-number {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
}

.trust-label {
  font-size: 0.88rem;
  color: rgba(250, 247, 241, 0.6);
  letter-spacing: 0.02em;
}

.trust-divider {
  width: 1px;
  height: 64px;
  background: rgba(250, 247, 241, 0.14);
}

/* ==========================================================================
   CORPORATE PORTFOLIO MODAL
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 21, 26, 0.6);
  backdrop-filter: blur(4px);
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  box-shadow: 0 30px 60px rgba(21, 21, 26, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--slate);
  border-radius: 50%;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.modal-close:hover {
  background: var(--ivory);
  color: var(--ink);
}

.modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.modal-copy {
  font-size: 0.94rem;
  color: var(--slate);
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field input {
  padding: 12px 14px;
  border: 1.5px solid var(--blueprint-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--ivory);
  transition: border-color 0.2s var(--ease);
}

.form-field input:focus {
  border-color: var(--brand-orange);
  outline: none;
}

.form-field input.field-invalid {
  border-color: var(--brand-red);
}

.field-error {
  min-height: 16px;
  font-size: 0.78rem;
  color: var(--brand-red);
}

.modal-submit {
  margin-top: 6px;
}

.modal-success {
  text-align: center;
}

.modal-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.modal-success .btn-ghost {
  margin-top: 8px;
}

/* ==========================================================================
   PERSISTENT MOBILE CONVERSION DOCK
   ========================================================================== */

.mobile-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--blueprint-line);
  box-shadow: 0 -8px 20px rgba(21, 21, 26, 0.08);
  gap: 12px;
}

.mobile-dock-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}

.mobile-dock-call {
  border: 1.5px solid var(--slate-soft);
  color: var(--ink);
  background: var(--paper);
}

.mobile-dock-visit {
  background: var(--brand-gradient);
  color: var(--paper);
}

.dock-icon {
  font-size: 1rem;
  transform: rotate(-10deg);
  display: inline-block;
}

/* ==========================================================================
   STEP 2 — RESPONSIVE
   ========================================================================== */

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

  .trust-inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .trust-divider {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-dock {
    display: flex;
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 640px) {
  .section-inner {
    padding: 64px 20px;
  }

  .hero {
    padding: 64px 20px;
  }

  .hero-tilak-ambient {
    width: 220px;
    right: -80px;
  }
}

/* ==========================================================================
   STEP 3: PROJECT MICRO-SITE DEEP DIVES
   Router views, configuration matrix, gated blueprints, connectivity
   timeline, progress roadmap
   ========================================================================== */

.sr-only-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-detail-section {
  background: var(--ivory);
}

.project-detail-inner {
  padding-top: 48px;
}

.back-to-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid transparent;
  border-image: var(--brand-gradient) 1;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 40px;
  transition: transform 0.2s var(--ease);
}

.back-to-projects-link:hover {
  transform: translateX(-3px);
}

.project-detail-header {
  margin-bottom: 56px;
}

.project-detail-header h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 10px;
}

.project-detail-sub {
  color: var(--slate);
  font-size: 1rem;
}

.project-detail-sub .rera-number-inline {
  color: var(--bronze);
  font-weight: 600;
}

/* --- Configuration Matrix --- */

.config-matrix {
  margin-bottom: 72px;
}

.config-matrix-heading,
.blueprint-section-heading,
.connectivity-heading,
.progress-heading {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: var(--paper);
  border: 1px solid var(--blueprint-line);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.config-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-metric-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.config-metric-value {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--slate);
}

.cost-sheet-trigger {
  flex-shrink: 0;
}

/* --- Gated Blueprint Container --- */

.blueprint-section {
  margin-bottom: 72px;
}

.blueprint-gate {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--blueprint-line);
  background: var(--paper);
}

.blueprint-graphic {
  width: 100%;
  height: auto;
  background: var(--paper);
  filter: blur(14px);
  transition: filter 0.4s var(--ease);
  overflow: hidden;
}

.blueprint-graphic svg {
  width: 100%;
  height: auto;
  display: block;
}

.blueprint-graphic.blueprint-blurred {
  filter: blur(14px);
}

.blueprint-graphic.blueprint-unlocked {
  filter: blur(0);
}

.blueprint-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px;
  background: rgba(21, 21, 26, 0.35);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.blueprint-overlay-heading {
  max-width: 380px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
  background: rgba(21, 21, 26, 0.65);
  padding: 18px 24px;
  border-radius: var(--radius-md);
}

.blueprint-gate-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.blueprint-gate-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--paper);
  color: var(--ink);
}

.blueprint-gate-input:focus {
  outline: 2px solid var(--brand-gold);
}

.blueprint-gate-input.field-invalid {
  outline: 2px solid var(--brand-red);
}

.blueprint-gate-submit {
  flex-shrink: 0;
}

.blueprint-gate-error {
  flex-basis: 100%;
  text-align: center;
  color: var(--brand-gold);
  font-weight: 600;
}

.blueprint-overlay.blueprint-overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* --- Connectivity Index Timeline --- */

.connectivity-section {
  margin-bottom: 72px;
}

.connectivity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--blueprint-line);
  padding-left: 28px;
}

.connectivity-item {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--blueprint-line);
}

.connectivity-item:last-child {
  border-bottom: none;
}

.connectivity-marker {
  position: absolute;
  left: -34px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.connectivity-label {
  font-weight: 600;
  color: var(--ink);
}

.connectivity-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--bronze);
  white-space: nowrap;
}

/* --- Progress Tracker Vertical Roadmap --- */

.progress-section {
  margin-bottom: 24px;
}

.progress-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.progress-roadmap {
  position: relative;
  padding-left: 34px;
}

.progress-roadmap::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--blueprint-line);
}

.roadmap-node {
  position: relative;
  padding-bottom: 36px;
}

.roadmap-node:last-child {
  padding-bottom: 0;
}

.roadmap-marker {
  position: absolute;
  left: -34px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--blueprint-line);
}

.roadmap-node-complete .roadmap-marker {
  background: #2E9E5B;
  box-shadow: 0 0 0 2px rgba(46, 158, 91, 0.3);
}

.roadmap-node-active .roadmap-marker {
  background: var(--brand-gradient);
  box-shadow: 0 0 0 6px rgba(243, 112, 36, 0.18);
  animation: roadmapPulse 2s ease-in-out infinite;
}

@keyframes roadmapPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(243, 112, 36, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(243, 112, 36, 0.28); }
}

.roadmap-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

.roadmap-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
}

.roadmap-node-complete .roadmap-status {
  color: #1E7A45;
  background: rgba(46, 158, 91, 0.12);
}

.roadmap-node-active .roadmap-status {
  color: var(--brand-orange);
  background: rgba(243, 112, 36, 0.12);
}

.drone-feed-slot {
  border: 1px solid var(--blueprint-line);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--paper);
}

.drone-feed-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.drone-feed-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--ink-soft), var(--ink));
  color: rgba(250, 247, 241, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.86rem;
  padding: 16px;
}

.drone-feed-placeholder span {
  font-size: 1.8rem;
}

/* ==========================================================================
   STEP 3 — RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .progress-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .config-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cost-sheet-trigger {
    width: 100%;
  }

  .connectivity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==========================================================================
   STEP 4: CONTACT NEXUS & AUTOMATED SALES DESK CAPTURE
   ========================================================================== */

.contact-section {
  background: var(--ink);
  color: rgba(250, 247, 241, 0.85);
}

.contact-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.contact-heading .eyebrow {
  color: var(--brand-gold);
}

.contact-heading h2 {
  color: var(--ivory);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 14px;
}

.contact-subline {
  color: rgba(250, 247, 241, 0.6);
  font-size: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(250, 247, 241, 0.12);
  border-radius: var(--radius-md);
  background: rgba(250, 247, 241, 0.03);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

a.contact-channel-card:hover {
  border-color: var(--brand-orange);
  background: rgba(250, 247, 241, 0.06);
  transform: translateX(4px);
}

.contact-channel-static {
  cursor: default;
}

.contact-channel-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--brand-gradient);
  color: var(--paper);
}

.contact-channel-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-channel-label {
  font-size: 0.8rem;
  color: rgba(250, 247, 241, 0.55);
}

.contact-channel-value {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ivory);
}

.contact-form-panel {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 40px;
  color: var(--ink);
}

.contact-form-view h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.site-visit-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-visit-form select {
  padding: 12px 14px;
  border: 1.5px solid var(--blueprint-line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--ivory);
  transition: border-color 0.2s var(--ease);
}

.site-visit-form select:focus {
  border-color: var(--brand-orange);
  outline: none;
}

.site-visit-form select.field-invalid {
  border-color: var(--brand-red);
}

.site-visit-submit {
  margin-top: 6px;
  width: 100%;
}

.contact-success-view {
  text-align: center;
  padding: 20px 0;
}

.contact-success-view .modal-success-icon {
  margin: 0 auto 18px;
}

.contact-success-view .btn-ghost {
  margin-top: 8px;
}

/* ==========================================================================
   STEP 4 — RESPONSIVE
   ========================================================================== */

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

@media (max-width: 640px) {
  .contact-form-panel {
    padding: 28px 24px;
  }
}

/* ==========================================================================
   3D WALKTHROUGH PLAYER + STRUCTURAL GALLERY CAROUSEL
   ========================================================================== */

.gallery-section {
  margin-bottom: 72px;
}

.gallery-section-heading {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.gallery-walkthrough-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

/* --- Walkthrough panel --- */

.walkthrough-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.walkthrough-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 30% 30%, var(--ink-soft), var(--ink) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.walkthrough-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(250, 247, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 247, 241, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.walkthrough-play-btn {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(227, 62, 43, 0.35);
  transition: transform 0.2s var(--ease);
}

.walkthrough-play-btn:hover {
  transform: scale(1.06);
}

.walkthrough-play-btn svg {
  margin-left: 3px;
}

.walkthrough-media.walkthrough-active .walkthrough-play-btn {
  animation: walkthroughPulse 1.6s ease-in-out infinite;
}

@keyframes walkthroughPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 112, 36, 0.35); }
  50% { box-shadow: 0 0 0 16px rgba(243, 112, 36, 0); }
}

.walkthrough-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.7);
}

.walkthrough-caption {
  font-size: 0.86rem;
  color: var(--slate);
}

/* --- Gallery carousel --- */

.gallery-carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
}

.carousel-placeholder-img {
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.carousel-tone-a {
  background: linear-gradient(135deg, var(--ink-soft), var(--bronze));
}

.carousel-tone-b {
  background: linear-gradient(135deg, var(--bronze), var(--brand-orange));
}

.carousel-tone-c {
  background: linear-gradient(135deg, var(--ink), var(--slate));
}

.carousel-tone-d {
  background: var(--brand-gradient);
}

.carousel-tone-blueprint {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(112, 112, 112, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 112, 112, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(21, 21, 26, 0.55);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s var(--ease);
}

.carousel-btn:hover {
  background: var(--brand-orange);
}

.carousel-prev {
  left: 12px;
}

.carousel-next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blueprint-line);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.carousel-dot.carousel-dot-active {
  background: var(--brand-gradient);
  transform: scale(1.2);
}

/* ==========================================================================
   GALLERY / WALKTHROUGH — RESPONSIVE
   ========================================================================== */

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