/* ============================================================
   Jainx Studio Apartments — Shared Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   Design tokens
   ---------------------------------------------------------- */
:root {
  --bg: #f8fafc;
  --text: #111827;
  --brand: #0f172a;
  --accent: #ea580c;
  --accent-2: #0f766e;
  --card: #ffffff;
  --line: #e5e7eb;
}

/* ----------------------------------------------------------
   Base reset & global
   ---------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #e0f2fe 0%, var(--bg) 40%);
  line-height: 1.6;
  padding-bottom: 72px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 10px;
  line-height: 1.3;
}

h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

p { margin: 0 0 14px; }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   Top bar
   ---------------------------------------------------------- */
.top-bar {
  background: var(--brand);
  border-bottom: 2px solid #1e3a5f;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
}

.top-bar-logo {
  height: 44px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.top-bar a.top-bar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
}

.rera-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.rera-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #bae6fd;
  font-weight: 700;
}

.rera-number {
  font-size: 0.88rem;
  font-weight: 700;
  color: #facc15;
}

/* ----------------------------------------------------------
   Breadcrumb bar
   ---------------------------------------------------------- */
.breadcrumb-bar {
  background: var(--brand);
  padding: 8px 0;
  font-size: 0.82rem;
}

.breadcrumb-bar a {
  color: #bae6fd;
  text-decoration: none;
}

.breadcrumb-bar span { color: #94a3b8; }

.breadcrumb-bar .current { color: #fff; }

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 72px 0 56px;
  border-bottom: 4px solid #0ea5e9;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #bae6fd;
  margin-bottom: 8px;
  font-weight: 700;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  font-weight: 600;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #facc15;
  flex: 0 0 8px;
}

/* ----------------------------------------------------------
   Snapshot card & facts grid
   ---------------------------------------------------------- */
.snapshot-card {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  border-radius: 14px;
  border: 1px solid #dbeafe;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.25);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.fact strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 4px;
}

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */
.section { padding: 56px 0; }

.section-alt {
  background: #eef2ff;
  border-top: 1px solid #dbeafe;
  border-bottom: 1px solid #dbeafe;
}

/* ----------------------------------------------------------
   Panel / accordion card
   ---------------------------------------------------------- */
.panel {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);

}

details.panel {
  padding: 0;
  overflow: hidden;
}

details.panel summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.panel summary::after {
  content: "\f067";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  color: var(--brand);
  flex: 0 0 auto;
}

details.panel[open] summary::after { content: "\f068"; }

details.panel p {
  padding: 0 18px 18px;
  margin: 0;
}

.panel ul, .section ul {
  margin: 0;
  padding-left: 18px;
}

/* ----------------------------------------------------------
   Label
   ---------------------------------------------------------- */
.label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #334155;
  margin-bottom: 8px;
  font-weight: 700;
}

/* ----------------------------------------------------------
   Calc card
   ---------------------------------------------------------- */
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.calc-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label span.hint {
  font-family: "Nunito", sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7280;
}

/* ----------------------------------------------------------
   Table wrapper
   ---------------------------------------------------------- */
.table-wrap {
  overflow: hidden;
  background: #fff;
}

.table-wrap .table { margin-bottom: 0; }

/* ----------------------------------------------------------
   Blockquote
   ---------------------------------------------------------- */
blockquote {
  border-left: 8px solid var(--accent);
  background: #fff;
  padding: 14px;
  margin: 10px 0;
}

/* ----------------------------------------------------------
   Step rows (checklist)
   ---------------------------------------------------------- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  flex: 0 0 36px;
  margin-right: 12px;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.step-row:last-child { border-bottom: none; }

.step-body h3 { margin-bottom: 4px; }

/* ----------------------------------------------------------
   Links cluster
   ---------------------------------------------------------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.links a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #93c5fd;
}

/* ----------------------------------------------------------
   Sticky CTA bar
   ---------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0;
  background: #0b1220;
  color: #fff;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  z-index: 999;
  border-top: 1px solid #1e293b;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
footer {
  border-top: 3px solid #1e3a5f;
}

.footer-main {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 40px;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  display: block;
}

.footer-tagline {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-contact {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: #94a3b8;
}

.footer-contact li i {
  color: #facc15;
  margin-top: 3px;
  flex: 0 0 14px;
  font-size: 0.82rem;
}

.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover { color: #facc15; }

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #1e293b;
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #334155;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: #facc15;
  color: #0f172a;
  border-color: #facc15;
}

.footer-heading {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #facc15;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.footer-links li a:hover { color: #f8fafc; }

.footer-links li a i { font-size: 0.78rem; }

.footer-rera {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 22px;
  padding: 12px 14px;
  background: #1e293b;
  border-radius: 10px;
  border: 1px solid #334155;
}

.footer-rera-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  font-weight: 700;
}

.footer-rera-number {
  font-size: 0.88rem;
  font-weight: 700;
  color: #facc15;
  font-family: "Montserrat", sans-serif;
}

.footer-bottom {
  background: #070d19;
  padding: 14px 0 88px;
  border-top: 1px solid #1e293b;
}

.footer-disclaimer {
  font-size: 0.76rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.footer-disclaimer i { color: #334155; }

.footer-copy {
  font-size: 0.76rem;
  color: #475569;
  margin: 0;
}

/* ----------------------------------------------------------
   404 error page
   ---------------------------------------------------------- */
body.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.error-page footer { margin-top: auto; }

.error-hero {
  background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  padding: 72px 0 56px;
  border-bottom: 4px solid #0ea5e9;
  text-align: center;
}

.error-code {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px #facc15;
  margin: 0 0 12px;
  letter-spacing: -4px;
}

.error-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}

.error-sub {
  font-size: 1.05rem;
  color: #bae6fd;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 980px) {
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sticky-cta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sticky-cta a {
    min-width: unset;
    padding: 10px 8px;
    font-size: 0.86rem;
  }
}
