/* ═══════════════════════════════════════════════════
   TOKEN SYSTEM & DESIGN SYSTEM
═══════════════════════════════════════════════════ */
:root {
  --navy:       #01236a;
  --navy-deep:  #010f2e;
  --navy-mid:   #0d3885;
  --cobalt:     #1A5EB8;
  --cobalt-lt:  #3575d4;
  --gold:       #C9922A;
  --gold-lt:    #E8B84B;
  --gold-pale:  #FBF4E8;
  --amber:      #f5a623;
  --cream:      #FAF8F4;
  --white:      #FFFFFF;
  --ink:        #0D0E1A;
  --ink-mid:    #3B3C50;
  --ink-soft:   #6B6C80;
  --rule:       rgba(201,146,42,0.18);
  --rule-hard:  #E2DDD5;

  --ff-display: 'DM Sans', system-ui, sans-serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-mono:    'DM Mono', monospace;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 10px rgba(1,35,106,.06);
  --shadow-md:  0 8px 30px rgba(1,35,106,.09);
  --shadow-lg:  0 18px 50px rgba(1,35,106,.14);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

/* [Navbar CSS moved to navbar.css] */
.hero-banner {
  width: 100%;
  overflow: hidden;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.page-masthead {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, var(--cobalt) 100%);
  padding: 55px 24px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at center, rgba(201,146,42,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-tagline {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-lt);
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 18px;
  border: 1px solid rgba(201,146,42,.4);
  border-radius: 30px;
  background: rgba(201,146,42,.12);
}
.page-masthead h1 {
  font-family: var(--ff-body);
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.page-masthead p {
  font-size: 17.5px;
  color: rgba(255,255,255,.85);
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════
   OVERVIEW METRICS STRIP
═══════════════════════════════════════════════════ */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1180px;
  margin: -32px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.metric-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(1,35,106,.10);
  border: 1px solid rgba(201,146,42,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(1,35,106,.15);
}
.metric-icon {
  font-size: 26px;
  margin-bottom: 6px;
}
.metric-title {
  font-family: var(--ff-body);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.metric-sub {
  font-size: 12px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

@media (max-width: 900px) {
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }
}
@media (max-width: 540px) {
  .metrics-strip {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
}

/* ═══════════════════════════════════════════════════
   QUICK FILTER BAR
═══════════════════════════════════════════════════ */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--rule-hard);
  position: sticky;
  top: 76px;
  z-index: 900;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
  padding: 12px 20px;
}
.filter-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.filter-container::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  transition: .25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ═══════════════════════════════════════════════════
   SHELL & SECTION HEADERS
═══════════════════════════════════════════════════ */
.shell {
  max-width: 1240px;
  margin: 45px auto 40px;
  padding: 0 24px 80px;
}

.section-head {
  display: flex;
  align-items: center;
  margin: 55px 0 35px;
}
.section-head-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,146,42,0.45), transparent);
}
.section-head-label {
  padding: 9px 26px;
  font-family: var(--ff-body);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  margin: 0 16px;
  box-shadow: 0 4px 18px rgba(201,146,42,.12);
  text-align: center;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   INSTALLATION CARDS (DRR, INNER WHEEL & CLUBS)
═══════════════════════════════════════════════════ */
.install-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 45px rgba(1,35,106,.09);
  border: 1px solid rgba(201,146,42,.25);
  margin-bottom: 50px;
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.install-card:hover {
  box-shadow: 0 18px 55px rgba(1,35,106,.13);
}

/* Card Top Header */
.card-top {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 60%, var(--cobalt) 100%);
  padding: 32px 40px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 4px solid var(--gold);
  position: relative;
}
.card-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 20%, rgba(201,146,42,.22) 0%, transparent 60%);
  pointer-events: none;
}
.card-club-meta {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 2;
}
.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold) 0%, #b38420 100%);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(201,146,42,.35);
}
.card-club-name {
  font-family: var(--ff-body);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: .01em;
}
.card-project-title {
  font-size: 18px;
  color: var(--gold-lt);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick Info Pills on Top */
.card-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.info-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.info-pill strong {
  color: var(--gold-lt);
}

/* Card Body */
.card-body {
  padding: 40px;
}
.card-lead {
  font-size: 17px;
  line-height: 1.9;
  color: #2e3040;
  margin-bottom: 24px;
  text-align: justify;
}

/* Leader layout with Portrait (For DRR) */
.leader-split {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 30px;
}
@media (max-width: 860px) {
  .leader-split {
    grid-template-columns: 1fr;
  }
}
.leader-portrait {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(1,35,106,.15);
  border: 4px solid #fff;
  position: relative;
}
.leader-portrait img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Dual Info Boxes */
.info-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.info-box-item {
  background: linear-gradient(135deg, #fcfbf8 0%, #f7f9fc 100%);
  border: 1px solid #e7ecf5;
  border-left: 5px solid var(--gold);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(1,35,106,.04);
}
.info-box-item h5 {
  font-family: var(--ff-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.info-box-item ul {
  padding-left: 20px;
  color: #4b5161;
}
.info-box-item li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Blockquote */
blockquote {
  background: linear-gradient(135deg, rgba(1,35,106,.97), rgba(12,61,145,.97));
  border-left: 5px solid var(--gold);
  padding: 24px 32px;
  margin: 30px 0;
  border-radius: 16px;
  font-style: italic;
  color: #fff;
  font-size: 18px;
  line-height: 1.8;
  box-shadow: 0 12px 30px rgba(1,35,106,.12);
}

/* Photo Gallery Grid */
.photo-gallery {
  margin-top: 35px;
  border-top: 1px solid #ede8df;
  padding-top: 26px;
}
.photo-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.photo-gallery h4 {
  font-family: var(--ff-body);
  font-size: 25px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.gallery-count-badge {
  font-family: var(--ff-mono);
  font-size: 12px;
  padding: 4px 12px;
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid rgba(201,146,42,.3);
  border-radius: 20px;
  font-weight: 700;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-grid.single-photo {
  grid-template-columns: minmax(280px, 480px);
}
.gallery-grid.dual-photo {
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
}

.gallery-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201,146,42,.22);
  box-shadow: 0 8px 24px rgba(1,35,106,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(1,35,106,.13);
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
  cursor: zoom-in;
}
.gallery-card:hover .gallery-item img {
  transform: scale(1.05);
}
.gallery-item::after {
  content: '🔍 Zoom';
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(1,35,106,.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.gallery-card:hover .gallery-item::after {
  opacity: 1;
}
.gallery-caption {
  padding: 14px 16px;
  background: #fdfcf9;
  border-top: 1px solid #f0ede6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gallery-caption h6 {
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-caption p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  background: var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 13.5px;
  line-height: 1.8;
  border-top: 3px solid var(--gold);
}
.footer strong { color: #fff; }
.footer em { color: var(--gold-lt); font-style: normal; }

/* ═══════════════════════════════════════════════════
   LIGHTBOX MODAL
═══════════════════════════════════════════════════ */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  cursor: zoom-out;
}
#lightbox.active {
  display: flex;
}
#lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border: 2px solid rgba(201,146,42,.4);
  animation: zoomFade .25s ease-out;
}
@keyframes zoomFade {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .card-top { padding: 24px 20px; }
  .card-body { padding: 24px 20px; }
  .page-masthead { padding: 40px 18px; }
  .section-head-label { font-size: 17px; padding: 7px 18px; }
}