/* ============================================
   GURKHA GATHERINGS — CSS
   Palette: Midnight Navy · Warm Gold · Crimson
   ============================================ */

:root {
  --navy:      #0B1426;
  --navy-mid:  #132040;
  --navy-soft: #1C2E52;
  --gold:      #C9973A;
  --gold-light:#E8B96A;
  --gold-pale: #F5E8C8;
  --crimson:   #8B1A1A;
  --off-white: #F5F0E8;
  --text-dark: #1A1A2E;
  --text-mid:  #4A4A6A;
  --text-light:#9A9AB0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:  12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

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

/* CONTAINER */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(11, 20, 38, 0.97);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--off-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-bar-logo{
  width: 10%;
}

.logo-mark {
  font-size: 1.3rem;
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201,151,58,0.5));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(245,240,232,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(11, 20, 38, 0.98);
  padding: 16px 24px 24px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--off-white);
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-weight: 500;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 55%, transparent 55%);
  z-index: 0;
}
.hero-bg-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, var(--navy-mid) 55%);
  z-index: 0;
}
/* Subtle texture/pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(201,151,58,0.08) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(139,26,26,0.06) 0%, transparent 50%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--off-white);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 1rem;
  color: rgba(245,240,232,0.65);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(201,151,58,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201,151,58,0.5);
}
.btn-ghost {
  border: 1.5px solid rgba(245,240,232,0.3);
  color: var(--off-white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,151,58,0.1);
}
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.hero-card {
  background: linear-gradient(135deg, var(--navy-soft), #243560);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(201,151,58,0.15);
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-tag {
  background: rgba(201,151,58,0.15);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid rgba(201,151,58,0.25);
}
.card-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}
.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--off-white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-card-title span {
  color: var(--gold-light);
  font-style: italic;
}
.hero-card-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-card-footer span {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.6);
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 6px;
}
.hero-founded {
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0.35;
}
.founded-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.founded-year {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.35);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,151,58,0.5), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
.section { padding: 96px 0; }
.section-header { margin-bottom: 56px; }
.section-header--light .section-eyebrow { color: var(--gold-light); }
.section-header--light .section-title { color: var(--off-white); }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }
.vision-mission {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.vm-block {
  background: white;
  border-radius: var(--radius);
  padding: 28px 32px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.vm-block.visible { opacity: 1; transform: translateY(0); }
.vm-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.vm-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.vm-block p {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
}
.mission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mission-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.mission-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ============================================
   EVENTS
   ============================================ */
.events-section { background: #F0EBE0; }
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 56px;
}
.event-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold-pale);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.3s ease;
}
.event-card.visible { opacity: 1; transform: translateY(0); }
.event-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.12); transform: translateY(-4px); }
.event-card--featured {
  border-top-color: var(--gold);
  background: linear-gradient(160deg, white 70%, rgba(201,151,58,0.06));
}
.event-year {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: 12px;
}
.event-card--featured .event-year { color: rgba(201,151,58,0.25); }
.event-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.event-body p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.event-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,151,58,0.1);
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(201,151,58,0.25);
}
.event-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}
.future-plans {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
}
.fp-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 28px;
}
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.fp-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fp-item.visible { opacity: 1; transform: translateY(0); }
.fp-icon { font-size: 1.5rem; }
.fp-item p {
  font-size: 0.88rem;
  color: rgba(245,240,232,0.65);
  line-height: 1.65;
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
  background: var(--navy);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, border-color 0.3s ease;
}
.service-item.visible { opacity: 1; transform: translateY(0); }
.service-item:hover {
  background: rgba(201,151,58,0.1);
  border-color: rgba(201,151,58,0.3);
  transform: translateY(-3px) !important;
}
.service-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.service-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--off-white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.service-item p {
  font-size: 0.87rem;
  color: rgba(245,240,232,0.55);
  line-height: 1.65;
}
/* Last service item spans if odd count */
.services-grid .service-item:last-child:nth-child(3n+2) {
  grid-column: span 1;
}
.services-grid .service-item:nth-child(4),
.services-grid .service-item:nth-child(5) {
  grid-column: span 1;
}
.services-grid {
  grid-template-columns: repeat(3, 1fr);
}
/* Re-layout last row to center */
.service-item:nth-child(4) { grid-column: 1 / 2; }
.service-item:nth-child(5) { grid-column: 2 / 3; }

/* ============================================
   PARTNERS
   ============================================ */
.partners-section { background: white; }
.partners-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}
.partner-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}
.partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.partner-badge {
  background: var(--off-white);
  border: 1.5px solid rgba(201,151,58,0.25);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color var(--transition), background var(--transition);
}
.partner-badge:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}
.partner-badge--main {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--gold-light);
  border-color: var(--gold);
  font-size: 1.05rem;
  padding: 16px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.partners-note {
  font-size: 0.92rem;
  color: var(--text-light);
  font-style: italic;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 24px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--navy);
}
.contact-section .section-eyebrow { color: var(--gold); }
.contact-section .section-title { color: var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-sub {
  font-size: 0.97rem;
  color: rgba(245,240,232,0.6);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 380px;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.contact-card.visible { opacity: 1; transform: translateY(0); }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.ci-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.ci-value {
  font-size: 0.97rem;
  color: var(--off-white);
  font-weight: 500;
}
.ci-link {
  transition: color var(--transition);
}
.ci-link:hover { color: var(--gold-light); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #070E1C;
  padding: 36px 0;
  border-top: 1px solid rgba(201,151,58,0.15);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer .nav-logo,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--off-white);
}
.footer .logo-text { color: var(--off-white); }
.footer-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(4) { grid-column: auto; }
  .service-item:nth-child(5) { grid-column: auto; }
  .fp-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 40px;
  }
  .hero-right { align-items: stretch; }
  .hero-card { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .fp-grid { grid-template-columns: 1fr; }
  .partners-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .future-plans { padding: 32px 24px; }
  .section { padding: 72px 0; }

  .hero-bg-left,
  .hero-bg-right { display: none; }
  .hero { background: var(--navy); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
