/* ===================================================
   IGS Convention Centre — Design System & Styles
   =================================================== */

/* 1. TOKENS & RESET */
:root {
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --gold-dark: #8A6E2F;
  --black: #0D0D0D;
  --black-2: #1A1A1A;
  --charcoal: #2C2C2C;
  --off-white: #F5F0E8;
  --white: #FFFFFF;
  --text-muted: rgba(245,240,232,0.6);
  --font-display: 'Cormorant Garamond', serif;
  --font-accent: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --max-w: 1280px;
  --transition: 0.35s ease;
  --radius: 4px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 2. TYPOGRAPHY */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.section-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--off-white);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  font-weight: 300;
}
.gold-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 20px 0 36px;
}

/* 3. LAYOUT */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.section { padding: 90px 0; }
.section-center { text-align: center; }
.section-center .gold-line { margin: 20px auto 36px; }
.section-center .section-sub { margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* 4. BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none; cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.35); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }
.btn-lg { padding: 18px 44px; font-size: 0.78rem; }

/* 5. NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 28px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; flex-direction: column; }
.brand-main {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.navbar-links { display: flex; align-items: center; gap: 36px; }
.navbar-links a {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.navbar-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--gold); }
.navbar-links a:hover::after,
.navbar-links a.active::after { width: 100%; }
.navbar-cta { margin-left: 16px; }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--off-white); transition: var(--transition); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  top: 0; right: -100%; bottom: 0;
  width: 280px; z-index: 999;
  background: var(--black-2);
  border-left: 1px solid rgba(201,168,76,0.2);
  padding: 100px 40px 40px;
  flex-direction: column; gap: 32px;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--off-white);
  transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }

/* 5.5 SPA ROUTING UTILS */
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 6. PAGE HERO (inner pages) */
.page-hero {
  height: 420px;
  background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/images/igs1.png') center/cover no-repeat;
  opacity: 0.18;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem,5vw,4rem); color: var(--off-white); }
.page-hero .page-hero-sub {
  font-size: 0.8rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold); font-family: var(--font-accent);
  margin-bottom: 14px;
}

/* 7. CARDS */
.card {
  background: var(--black-2);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: var(--transition);
}
.card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 24px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; margin-bottom: 12px;
  color: var(--off-white);
}
.card p { font-size: 0.92rem; color: var(--text-muted); font-weight: 300; }

/* 8. HERO SECTION (Home) */
.hero {
  height: 100vh; min-height: 680px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/images/igs1.png') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.55) 60%, rgba(13,13,13,0.3) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-label {
  font-family: var(--font-accent);
  font-size: 0.7rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.hero-label::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  font-size: clamp(3rem,6vw,5.5rem);
  color: var(--white); line-height: 1.05; margin-bottom: 28px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  font-weight: 300; margin-bottom: 44px; max-width: 520px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span {
  font-family: var(--font-accent);
  font-size: 0.6rem; letter-spacing: 0.25em; color: var(--text-muted);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* 9. STATS BAR */
.stats-bar {
  background: var(--black-2);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center; padding: 16px 20px;
  border-right: 1px solid rgba(201,168,76,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem; color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-accent);
  font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* 10. SPLIT SECTION */
.split-img {
  width: 100%; height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-img-frame {
  position: relative;
}
.split-img-frame::before {
  content: '';
  position: absolute; top: -18px; left: -18px;
  right: 18px; bottom: 18px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  z-index: 0;
}
.split-img-frame img { position: relative; z-index: 1; }

/* 11. GALLERY TEASER */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); position: relative; cursor: pointer; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay-icon { font-size: 2rem; color: var(--gold); }

/* 12. GALLERY PAGE GRID */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-thumb {
  overflow: hidden; border-radius: var(--radius);
  cursor: pointer; position: relative;
  aspect-ratio: 4/3;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb .g-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,13,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.gallery-thumb:hover .g-overlay { opacity: 1; }

/* 13. LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 0 80px rgba(201,168,76,0.2); }
.lightbox-close {
  position: absolute; top: 28px; right: 36px;
  font-size: 2rem; color: var(--gold);
  cursor: pointer; transition: var(--transition);
  background: none; border: none;
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-size: 1.5rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%; transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(201,168,76,0.3); }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

/* 14. CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  padding: 70px 0; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); color: var(--black); margin-bottom: 14px; }
.cta-banner p { color: rgba(13,13,13,0.75); font-size: 1rem; margin-bottom: 36px; }
.cta-banner .btn-gold { background: var(--black); color: var(--gold); }
.cta-banner .btn-gold:hover { background: var(--charcoal); }

/* 15. CONTACT */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--font-accent);
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--black-2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.95rem; padding: 14px 18px;
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.form-group select option { background: var(--black-2); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-error { color: #e07070; font-size: 0.8rem; margin-top: 4px; }
.form-success {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center; color: var(--gold);
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-card {
  background: var(--black-2);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.contact-info-card h3 {
  font-family: var(--font-accent);
  font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.contact-info-card p { color: var(--text-muted); font-size: 0.95rem; }
.contact-info-card a { color: var(--gold); transition: var(--transition); }
.contact-info-card a:hover { color: var(--gold-light); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(201,168,76,0.2); }
.map-frame iframe { width: 100%; height: 280px; border: none; filter: grayscale(0.3) contrast(1.1); }

/* 16. FOOTER */
.footer {
  background: var(--black-2);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .brand-main { font-size: 1.3rem; margin-bottom: 8px; }
.footer-desc { font-size: 0.88rem; color: var(--text-muted); max-width: 280px; margin-top: 14px; line-height: 1.8; }
.footer-heading {
  font-family: var(--font-accent);
  font-size: 0.68rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact p { font-size: 0.88rem; color: var(--text-muted); line-height: 2; }
.footer-contact a { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,168,76,0.1);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* 17. ABOUT */
.about-text { font-size: 1.05rem; color: var(--text-muted); font-weight: 300; line-height: 1.9; }
.about-text + .about-text { margin-top: 18px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  font-size: 0.9rem;
}
.info-table td:first-child { color: var(--gold); font-family: var(--font-accent); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; width: 40%; }
.info-table td:last-child { color: var(--off-white); }
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }

/* 18. EVENTS */
.event-card {
  background: var(--black-2);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.event-card:hover { border-color: rgba(201,168,76,0.35); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,0.35); }
.event-card-icon {
  height: 140px;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--black-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; border-bottom: 1px solid rgba(201,168,76,0.12);
}
.event-card-body { padding: 28px 24px; }
.event-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.event-card p { font-size: 0.88rem; color: var(--text-muted); font-weight: 300; }

/* 19. SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.revealed { 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; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 20. RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-links, .navbar-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-grid .gallery-item:first-child { grid-row: auto; grid-column: 1 / -1; }
  .gallery-page-grid { grid-template-columns: 1fr 1fr; }
  .mission-vision { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-page-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.1); }
}
