/* ==========================================================================
   Dholera — Inner pages (About, Contact, Why Dholera, Projects, Legal)
   Brings every page onto the same dark-glass, gold-accent system as the
   home page. Loaded after premium.css on every page except index.html.
   ========================================================================== */

/* ---- Header: dark glass, same as home ---------------------------------- */
.site-header { background: rgba(4,6,31, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.site-header[data-scrolled="true"] { background: rgba(4,6,31, .92); box-shadow: 0 10px 30px -18px #000; }
.site-header .brand { color: #fff; }
.site-header .nav-toggle span { background: #fff; }
@media (min-width: 1024px) {
  .site-header .nav a:not(.btn) { color: rgba(255, 255, 255, .78); }
  .site-header .nav a:not(.btn):hover,
  .site-header .nav a[aria-current="page"] { color: #fff; }
}

/* ---- Page hero (About / Contact / Why Dholera / Projects / Legal) ------- */
.page-hero {
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 2rem + 6vw, 7rem));
  padding-bottom: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  min-height: clamp(380px, 52vh, 560px);
  display: flex; align-items: flex-end;
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero::before {
  content: "PROPVIDER"; position: absolute; right: -.04em; bottom: -.2em; z-index: 1; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-size: clamp(4rem, 1.5rem + 13vw, 16rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(212,175,74, .2);
}
.page-hero h1 { max-width: 16ch; }
.page-hero p { color: #dde2f3; max-width: 46ch; font-size: var(--step-1); line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero .eyebrow, .page-hero h1, .page-hero p { animation: rise .9s var(--ease) both; }
  .page-hero h1 { animation-delay: .08s; }
  .page-hero p { animation-delay: .16s; }
}

/* ---- Breadcrumb on project pages: dark band continuing the header ------- */
main > .container:has(> .breadcrumb) { max-width: none; padding: 0; background: #04061f; }
main > .container > .breadcrumb {
  max-width: var(--w-wide); margin-inline: auto; padding: 1.1rem var(--gutter) 1.4rem;
  color: var(--c-ondark-ink-soft); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.breadcrumb a { transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb [aria-current="page"] { color: var(--c-accent); }
.breadcrumb li:not(:last-child)::after { color: rgba(255, 255, 255, .25); }

/* ---- Project hero ------------------------------------------------------------ */
.project-hero { min-height: min(84vh, 780px); padding-bottom: clamp(6rem, 5rem + 5vw, 9rem); }
.project-hero h1 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6rem); max-width: 14ch; }

/* ---- Facts bar: one floating card, like the home stats ------------------------- */
.facts-bar {
  position: relative; z-index: 3; margin: -4.2rem auto 0; max-width: calc(var(--w-wide) - var(--gutter) * 2);
  width: calc(100% - var(--gutter) * 2);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-deep); overflow: hidden;
}
.fact { position: relative; padding: 1.7rem 1.5rem; border: 0; border-radius: 0; box-shadow: none; background: transparent; justify-content: center; gap: .45rem; min-width: 0; }
.fact + .fact::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--c-line); }
.fact b { font-size: var(--step-2); line-height: 1.1; overflow-wrap: anywhere; }
.fact b:not(.serif-num) { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 960px) {
  .facts-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-bottom: 1px solid var(--c-line); }
  .fact:nth-child(odd)::before { display: none; }
  .fact:last-child { grid-column: span 2; border-bottom: 0; }
}

/* ---- Project body: sticky enquiry card (aside must be as tall as the column) - */
.project-body { max-width: var(--w-wide); }
.project-body > aside { align-self: stretch; }
.project-section > h2 { font-size: var(--step-4); }
.project-section + .project-section { padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--c-line); }
.project-body .lede { font-size: var(--step-1); }

/* ---- About ---------------------------------------------------------------------- */
.container--mid:has(.value-list) { max-width: var(--w-wide); }
.value-list { counter-reset: val; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.value-list > div, .value-list > div:last-child {
  counter-increment: val; position: relative; display: block; padding: 2.4rem 2.2rem 2.5rem; border: 1px solid var(--c-line); border-radius: 26px;
  background: var(--c-surface); box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.value-list > div:hover { transform: translateY(-5px); box-shadow: var(--shadow-deep); }
.value-list > div::before {
  content: counter(val, decimal-leading-zero); display: block; margin-bottom: 1.2rem; font-family: var(--font-display); font-size: var(--step-4); line-height: 1;
  background: var(--g-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value-list h3 { margin-bottom: .6rem; }
@media (max-width: 760px) { .value-list { grid-template-columns: 1fr; } }
.team-grid { align-items: stretch; }
.team-card { align-self: stretch; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-deep); }
.team-card__body { text-align: center; }
.stat-band .stat b { background: var(--g-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section.on-dark { background: var(--g-night); }

/* ---- Contact ---------------------------------------------------------------------- */
.contact-grid > :first-child {
  padding: clamp(1.6rem, 1rem + 2.5vw, 3rem); border: 1px solid var(--c-line); border-radius: 28px;
  background: var(--c-surface); box-shadow: var(--shadow-soft);
}
.contact-grid h2 { font-size: var(--step-3); margin-bottom: .6rem; }
.contact-detail { gap: 0; }
.contact-detail > div { padding: 1.2rem 0; border-bottom: 1px solid var(--c-line); }
.contact-detail > div:first-child { border-top: 1px solid var(--c-line); }
.map-embed { border-radius: 24px; box-shadow: var(--shadow-soft); }

/* ---- Prose pages: sticky table of contents (built by main.js) ------------------- */
.prose.has-toc { max-width: var(--w-wide); display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: start; }
@media (max-width: 900px) { .prose.has-toc { grid-template-columns: 1fr; } }
.prose__toc { position: sticky; top: calc(var(--header-h) + 2rem); padding: 1.6rem; border: 1px solid var(--c-line); border-radius: 24px; background: var(--c-surface); box-shadow: var(--shadow-soft); }
@media (max-width: 900px) { .prose__toc { position: static; } }
.prose__toc h4 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-strong); margin-bottom: 1rem; }
.prose__toc a { display: block; padding: .5rem 0 .5rem .9rem; border-left: 2px solid var(--c-line); font-size: var(--step--1); color: var(--c-ink-soft); text-decoration: none; transition: all var(--dur-fast) var(--ease); }
.prose__toc a:hover { color: var(--c-brand-deep); border-color: var(--c-accent); }
.prose__toc a.is-on { color: var(--c-brand-deep); font-weight: 600; border-color: var(--c-accent-strong); background: linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 14%, transparent), transparent); }
.prose__body { max-width: 72ch; }
.prose h2 { font-size: var(--step-3); margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--c-line); }
.prose__body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose li { font-size: var(--step-0); line-height: 1.75; }
.prose ul { gap: .6rem; }
.prose li::marker { color: var(--c-accent-strong); }

/* ---- Why Dholera: metric cards + feature cards ------------------------------------ */
.feature { border-radius: 24px; padding: 2.2rem 2rem; box-shadow: var(--shadow-soft); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-deep); }
.feature__icon { width: 3.2rem; height: 3.2rem; border-radius: 14px; background: var(--g-gold); }

/* ---- Projects listing -------------------------------------------------------------- */
.filter-bar { align-items: center; }
.projects-grid { align-items: stretch; }
.project-card { height: 100%; }

/* ---- CTA band inside on-dark sections: keep contained & centred ---------------------- */
.on-dark .cta-band { background: rgba(255, 255, 255, .04); border-color: rgba(212,175,74, .4); }

/* ---- Polish ---- */
.prose .form__note { font-size: .85rem; line-height: 1.6; margin-top: 1rem; padding: .9rem 1.1rem; border-left: 2px solid var(--c-accent); background: color-mix(in srgb, var(--c-accent) 10%, transparent); border-radius: 0 12px 12px 0; }
.data-table caption { padding: 1rem 1.2rem .4rem; }
.table-scroll .data-table { min-width: 560px; }
/* ---- Fixes: facts bar wrapping, header tone on light pages ---- */
.site-header { background: rgba(4,6,31, .95); }
.site-header[data-scrolled="true"] { background: rgba(4,6,31, .97); }
.facts-bar { grid-template-columns: 1fr 1fr 1fr 1.45fr 1fr; }
.fact b { font-size: var(--step-1); white-space: nowrap; overflow-wrap: normal; }
.fact b:not(.serif-num) { font-size: .95rem; letter-spacing: .01em; }
@media (max-width: 960px) { .facts-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact b { white-space: normal; overflow-wrap: anywhere; } }
/* ---- Alignment: contact right column lines up with the form card; listing titles ---- */
@media (min-width: 861px) { .contact-grid > :last-child { padding-top: clamp(1.6rem, 1rem + 2.5vw, 3rem); } }
.projects-grid .project-card__title { font-size: var(--step-2); }
/* ---- Contact: full-width map row under the two columns ---- */
.map-wide { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.map-wide .map-embed { position: relative; margin-top: 0; aspect-ratio: 21 / 8; min-height: 280px; border-radius: 28px; box-shadow: var(--shadow-deep); border: 1px solid var(--c-line); }
.map-wide .map-embed > .ph-img, .map-wide .map-embed > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__card {
  position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 2; display: grid; gap: .4rem; max-width: 20rem; padding: 1.3rem 1.5rem;
  border-radius: 20px; background: rgba(4,6,31, .82); border: 1px solid rgba(212,175,74, .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff;
}
.map-embed__card b { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.map-embed__card .arrow-link { color: var(--c-accent); border-color: rgba(212,175,74, .5); justify-self: start; margin-top: .3rem; }
@media (max-width: 700px) { .map-wide .map-embed { aspect-ratio: 4 / 3; } }

.map-wide .map-embed .ph-img::after { display: none; }
/* ---- Brand: solid navy header (no grey wash over light sections), footer list text ---- */
.site-header, .site-header[data-scrolled="true"] { background: #05083a; }
.footer-col li { font-size: var(--step--1); }