/* ============================================================
   GKBJ Kelapa Gading — Design System
   Dark, minimalist, warm-gold. Shared by index & about pages.
   ============================================================ */

:root {
  --bg:        #0e0e0f;
  --bg-2:      #131315;
  --surface:   #1a1a1c;
  --surface-2: #202023;
  --line:      rgba(255, 255, 255, .08);
  --line-2:    rgba(255, 255, 255, .14);
  --text:      #f4f2ef;
  --muted:     #a4a29c;
  --gold:      #c9a15a;              /* luminous brand gold */
  --gold-deep: #ae834d;             /* original brand gold */
  --gold-soft: rgba(201, 161, 90, .14);
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, .8);
  --maxw:      1200px;
  --nav-h:     72px;
  --radius:    18px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

.title-font { font-family: 'Aboreto', 'Bricolage Grotesque', serif; letter-spacing: .04em; }
.text-font  { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
.gold { color: var(--gold); }

a { color: inherit; }

section[id] { scroll-margin-top: 90px; }

.container-x {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Reveal on scroll (progressive enhancement) */
.has-js .reveal { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal { opacity: 1; transform: none; }
  .reveal { transition: none; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  opacity: .7;
}

.section-heading {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 .35em;
}
.section-sub {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
}

.btn-gold, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
  font-size: .98rem;
}
.btn-gold {
  background: var(--gold);
  color: #171206;
  border: 1px solid var(--gold);
}
.btn-gold:hover { background: #d9b268; border-color: #d9b268; color: #171206; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  background: rgba(12, 12, 13, .55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
  min-height: var(--nav-h);
}
.navbar.scrolled {
  background: rgba(10, 10, 11, .92);
  border-bottom: 1px solid var(--line);
}
.navbar .container { max-width: var(--maxw); }
.navbar-brand {
  font-family: 'Aboreto', serif;
  letter-spacing: .06em;
  color: #fff !important;
  font-size: 1.05rem;
}
.navbar-brand img { width: 38px; margin-right: 12px; }
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, .82) !important;
  font-weight: 500;
  position: relative;
  padding: 6px 2px;
  transition: color .25s ease;
}
.navbar-nav > li { margin-left: 14px; margin-right: 14px; }
.navbar-dark .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .28s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus { color: #fff !important; }
.navbar-dark .navbar-nav .nav-link:hover::after { width: 100%; }
.navbar-toggler { border-color: var(--line-2); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('/img/main.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.35) 40%, rgba(10,10,11,.92) 100%),
    radial-gradient(120% 90% at 50% 20%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: calc(var(--nav-h) + 40px) 0 90px; }
.hero__logo { width: clamp(72px, 9vw, 120px); margin-bottom: 26px; filter: drop-shadow(0 6px 24px rgba(0,0,0,.5)); }
.hero__welcome {
  font-family: 'Aboreto', serif;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  letter-spacing: .35em;
  color: var(--gold);
  margin: 0 0 10px;
}
.hero__title {
  font-family: 'Aboreto', serif;
  font-size: clamp(2.6rem, 8.5vw, 6.6rem);
  line-height: 1;
  margin: 0 0 22px;
  text-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.hero__tagline {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 640px;
  margin: 0 0 38px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  font-size: 1.6rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }
@media (prefers-reduced-motion: reduce){ .hero__scroll{ animation: none; } }

/* ============================================================
   Poster Carousel  (This Week at GKBJ — from Firebase)
   ============================================================ */
.poster-section { padding: clamp(64px, 9vw, 110px) 0 clamp(56px, 8vw, 96px); background: var(--bg); }
.poster-head { text-align: center; margin-bottom: clamp(30px, 5vw, 54px); }
.poster-head .section-sub { margin-inline: auto; }

.poster-carousel .carousel-inner { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }

/* Full photo — fills the frame at its natural aspect ratio (no crop, no bars) */
.poster-slide { display: block; background: #000; }
.poster-slide__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Controls & indicators */
.poster-carousel .carousel-control-prev,
.poster-carousel .carousel-control-next { width: 8%; opacity: 0; transition: opacity .3s ease; }
.poster-carousel:hover .carousel-control-prev,
.poster-carousel:hover .carousel-control-next { opacity: .9; }
.poster-carousel .carousel-control-prev-icon,
.poster-carousel .carousel-control-next-icon {
  background-color: rgba(0,0,0,.4);
  border-radius: 50%;
  padding: 22px;
  background-size: 44%;
}
.poster-carousel .carousel-indicators { margin-bottom: 14px; z-index: 4; }
.poster-carousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; background-color: rgba(255,255,255,.45);
  transition: background .25s ease, transform .25s ease;
}
.poster-carousel .carousel-indicators .active {
  background-color: var(--gold); transform: scale(1.25);
}

/* Skeleton while loading (matches typical poster ratio to minimise layout shift) */
.poster-skeleton {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce){ .poster-skeleton{ animation: none; } }

@media (max-width: 575px) {
  .poster-carousel .carousel-inner { border-radius: 12px; }
}

/* ============================================================
   Join Us — activity card grid
   ============================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .section-sub { margin-inline: auto; }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.activity-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow);
}
.activity-card__media { position: relative; overflow: hidden; }
.activity-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.activity-card:hover .activity-card__media img { transform: scale(1.06); }
.activity-card__body { padding: 24px 24px 28px; text-align: center; }
.activity-card__title {
  font-family: 'Aboreto', serif;
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: .05em;
  margin: 0 0 14px;
}
.activity-card__when { font-size: 1rem; color: var(--text); margin: 0 0 6px; }
.activity-card__when .time { color: var(--gold); font-weight: 500; }
.activity-card__where { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============================================================
   Contact + Footer
   ============================================================ */
.contact { background: var(--bg-2); padding: clamp(60px, 8vw, 100px) 0 0; border-top: 1px solid var(--line); }
.contact__title { display: flex; align-items: center; gap: 16px; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 46px; }
.contact__title img { width: 46px; }
.contact-col h5 {
  color: var(--gold);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-col p, .contact-col a { color: var(--muted); text-decoration: none; }
.contact-col a.redirect-link { color: #d8d6d1; transition: color .25s ease; }
.contact-col a.redirect-link:hover { color: var(--gold); }
.contact-col .row-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-col .row-line i { color: var(--gold); font-size: 1.05rem; width: 20px; text-align: center; }

.social-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icons a {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: #d8d6d1;
  font-size: 1.15rem;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}
.social-icons a:hover { color: #171206; background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

.footer {
  margin-top: clamp(56px, 7vw, 90px);
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
}
.footer .footer-keywords { max-width: 780px; margin: 0 auto 10px; opacity: .55; font-size: .8rem; line-height: 1.6; }

/* ============================================================
   About page
   ============================================================ */
.about-hero {
  position: relative;
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.about-hero__title { font-size: clamp(2.6rem, 9vw, 6rem); margin: 0; }

.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.vm-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 52px);
  text-align: center;
  position: relative;
}
.vm-card__icon {
  width: 58px; height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.vm-card h2 { font-family: 'Aboreto', serif; font-size: 2rem; margin: 0 0 18px; }
.vm-card p { color: var(--muted); font-size: 1.12rem; line-height: 1.7; margin: 0; }
