/* ============================================================
   AMAR MURADNAGAR — At a Glance Page Stylesheet
   File: css/style.css
   Font: Hind Siliguri loaded in <head>
   ============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --orange:       #D94F2B;
  --orange-dark:  #B33A1A;
  --orange-light: #E8704A;
  --cream:        #F2EDE6;
  --cream-light:  #FAF7F3;
  --dark:         #1C1208;
  --dark2:        #2A1A0E;
  --mid:          #4A2E1A;
  --text:         #2A1A0E;
  --muted:        #8C7060;
  --white:        #FFFFFF;
  --line:         rgba(42, 26, 14, 0.1);
  --line-dark:    rgba(255, 255, 255, 0.06);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', sans-serif;
  background: var(--cream-light);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(28, 18, 8, 0.97);
  border-bottom: 1px solid var(--line-dark);
}

/* Force nav links white on dark navbar */
#mainNav .nav-link {
  color: rgba(250, 247, 243, 0.75);
}
#mainNav .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

/* Hamburger bars white on dark navbar */
#mainNav .nav-hamburger span {
  background: rgba(250, 247, 243, 0.9);
}
#mainNav .nav-hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 247, 243, 0.6);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
  font-family: 'Hind Siliguri', sans-serif;
}

.nav-back:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  margin-top: 68px;
  background:
    linear-gradient(rgba(18, 10, 4, 0.45), rgba(18, 10, 4, 0.55)),
    url('../../images/place3.jpg') center center / cover no-repeat;
  padding: 64px 40px 0;
  position: relative;
  overflow: hidden;
}

/* Grid texture overlay — disabled */
.page-hero::before {
  display: none;
}

/* Radial glow */
.page-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 79, 43, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(250, 247, 243, 0.35);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: rgba(250, 247, 243, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb-sep { opacity: 0.3; }

.page-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.page-title em {
  font-style: normal;
  color: var(--orange-light);
}

.page-desc {
  font-size: 1.05rem;
  color: rgba(250, 247, 243, 0.55);
  line-height: 1.7;
  max-width: 580px;
  font-weight: 300;
}

/* ── HERO STATS STRIP ────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: stretch;
  margin-top: 52px;
  position: relative;
  z-index: 1;
  background: rgba(10, 6, 2, 0.55);
  border: 1px solid rgba(217, 79, 43, 0.18);
  border-top: 2px solid var(--orange);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(217, 79, 43, 0.15) inset;
}

/* Anchor resets */
a.hero-stat {
  text-decoration: none;
  color: inherit;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px;
  flex: 1;
  position: relative;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
  /* animated left accent bar */
  isolation: isolate;
}

.hero-stat:last-child {
  border-right: none;
}

/* left accent bar slides in on hover */
.hero-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--orange), #f07a57);
  border-radius: 0 2px 2px 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.hero-stat:hover {
  background: rgba(217, 79, 43, 0.08);
}

.hero-stat:hover::before {
  transform: scaleY(1);
}

.hero-stat:hover .hs-num {
  color: #f07a57;
}

.hero-stat:hover .hs-tag {
  opacity: 1;
  color: var(--orange);
}

.hero-stat:hover .hs-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* # tag */
.hs-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.45;
  font-family: monospace;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  letter-spacing: 0;
  transition: opacity 0.25s, color 0.25s;
}

/* number + label stack */
.hs-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.hs-num {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.3s;
}

.hs-label {
  font-size: 0.68rem;
  color: rgba(250, 247, 243, 0.45);
  line-height: 1.3;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* arrow icon — slides in from bottom-left on hover */
.hs-arrow {
  font-size: 0.85rem;
  color: var(--orange);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s, transform 0.25s;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Wrapper for number + label stack (kept for compat) */
.hs-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── PAGE BODY ───────────────────────────────────────────── */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ── SECTION BLOCKS ──────────────────────────────────────── */
.info-section { margin-bottom: 60px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-label-icon {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}

.section-label-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-divider {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── DATA GRID ───────────────────────────────────────────── */
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.data-grid.two-col   { grid-template-columns: repeat(2, 1fr); }
.data-grid.four-col  { grid-template-columns: repeat(4, 1fr); }
.data-grid.one-col   { grid-template-columns: 1fr; }

.data-cell {
  background: white;
  padding: 20px 24px;
  transition: background 0.2s;
}

.data-cell:hover { background: var(--cream-light); }

/* First/last cell radius when grid has one column */
.data-grid.one-col .data-cell:first-child { border-radius: 14px 14px 0 0; }
.data-grid.one-col .data-cell:last-child  { border-radius: 0 0 14px 14px; }

.dc-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}

.dc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.dc-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.dc-value.large {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.dc-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── INFO CARD (text blocks) ─────────────────────────────── */
.info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 16px;
}

.info-card:last-child { margin-bottom: 0; }

.info-card p {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.info-card p:last-child { margin-bottom: 0; }

.info-card strong {
  color: var(--dark);
  font-weight: 600;
}

/* ── DATA TABLE ──────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.data-table th {
  background: var(--dark);
  color: white;
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  font-family: 'Hind Siliguri', sans-serif;
}

.data-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream-light); }
.data-table .serial { color: var(--muted); font-size: 0.8rem; }

/* ── UNION GRID ──────────────────────────────────────────── */
.union-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.union-tag {
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  transition: all 0.2s;
  cursor: default;
}

.union-tag:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(217, 79, 43, 0.04);
}

/* ── SPLIT GRID (two-panel layouts) ─────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── HIGHLIGHT BOXES ─────────────────────────────────────── */
.highlight-box {
  background: var(--dark);
  border-radius: 16px;
  padding: 32px;
  color: white;
}

.highlight-box .hb-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-light);
  margin-bottom: 10px;
}

.highlight-box .hb-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
}

.highlight-box .hb-sub {
  font-size: 0.85rem;
  color: rgba(250, 247, 243, 0.4);
  margin-top: 6px;
  line-height: 1.5;
}

/* Orange accent variant */
.highlight-box.accent { background: var(--orange); }
.highlight-box.accent .hb-label { color: rgba(255, 255, 255, 0.6); }
.highlight-box.accent .hb-sub   { color: rgba(255, 255, 255, 0.65); }

/* ── NUMBERED LIST ───────────────────────────────────────── */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nl-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--line);
  transition: background 0.2s;
}

.nl-item:first-child { border-radius: 14px 14px 0 0; border-bottom: none; }
.nl-item:last-child  { border-radius: 0 0 14px 14px; }
.nl-item:not(:first-child):not(:last-child) { border-bottom: none; }
.nl-item:hover { background: var(--cream-light); }

.nl-n {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(217, 79, 43, 0.1);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

.nl-text { flex: 1; }

.nl-key {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.nl-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

/* ── TAG ROW (rivers, crops etc.) ────────────────────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
  transition: all 0.2s;
  cursor: default;
}

.tag:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── OFFICE LIST ─────────────────────────────────────────── */
.office-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.office-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s;
}

.office-item:hover {
  border-color: var(--orange);
  background: rgba(217, 79, 43, 0.03);
}

.office-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── PAGE FOOTER ─────────────────────────────────────────── */
.page-footer {
  background: var(--dark);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line-dark);
}

.pf-logo {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange-light);
}

.pf-copy {
  font-size: 0.75rem;
  color: rgba(250, 247, 243, 0.25);
  text-align: center;
  flex: 1;
}

.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--orange);
  padding: 10px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.pf-back:hover { background: var(--orange-dark); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  #mainNav { padding: 0 20px; }

  .page-hero { padding: 48px 20px 0; }
  .page-body { padding: 40px 20px 60px; }

  /* stats: wrap into 2-3 per row on tablet */
  .hero-stats {
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .hero-stat {
    flex: 1 1 calc(33.333% - 1px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hero-stat:nth-child(3),
  .hero-stat:last-child { border-right: none; }

  .data-grid           { grid-template-columns: 1fr 1fr; }
  .data-grid.four-col  { grid-template-columns: 1fr 1fr; }

  .union-grid  { grid-template-columns: 1fr 1fr; }
  .split-grid  { grid-template-columns: 1fr; }
  .office-list { grid-template-columns: 1fr; }

  .page-footer {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
}

@media (max-width: 600px) {
  /* stats: 2 per row on mobile */
  .hero-stats {
    flex-wrap: wrap;
    border-radius: 10px;
  }
  .hero-stat {
    flex: 1 1 calc(50% - 1px);
    padding: 18px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hero-stat:nth-child(2n),
  .hero-stat:last-child { border-right: none; }
  .hs-num { font-size: 1.25rem; }
  .hs-label { font-size: 0.65rem; }
  .hs-arrow { display: none; }

  .data-grid  { grid-template-columns: 1fr; }
  .data-grid.two-col { grid-template-columns: 1fr; }
  .union-grid { grid-template-columns: 1fr 1fr; }

  .page-hero { padding: 36px 16px 0; }
  .page-body { padding: 32px 16px 60px; }

  #mainNav { padding: 0 16px; }
  .nav-logo-text { display: none; }
}
