/* =====================================================
   WISU – Layout Styles
   Header, footer, sections, grids, and containers
   ===================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(26,71,49,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  padding: .6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url('../assets/images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .02em;
}

.nav-logo-sub {
  font-size: .7rem;
  color: var(--gold-light);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1001;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--green) !important;
  padding: .45rem 1.25rem;
  border-radius: 50px;
  font-weight: 700 !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =====================================================
   HERO
   ===================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/cheer.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(26,71,49,.88) 0%,
    rgba(26,71,49,.65) 50%,
    rgba(26,71,49,.45) 100%
  );
}

.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-geo::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: conic-gradient(
    var(--flag-red) 0deg 60deg,
    var(--flag-blue) 60deg 120deg,
    var(--flag-orange) 120deg 180deg,
    var(--flag-teal) 180deg 240deg,
    var(--flag-purple) 240deg 300deg,
    var(--flag-yellow) 300deg 360deg
  );
  opacity: .13;
}

.hero-geo::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: conic-gradient(
    var(--flag-yellow) 0deg 60deg,
    var(--flag-teal) 60deg 120deg,
    var(--flag-red) 120deg 180deg,
    var(--flag-blue) 180deg 240deg,
    var(--flag-orange) 240deg 300deg,
    var(--flag-purple) 300deg 360deg
  );
  opacity: .1;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 8rem 0 5rem;
}

.hero-greetings {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-bottom: 1.5rem;
}

.greeting-tag {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(201,165,55,.15);
  border: 1px solid rgba(201,165,55,.3);
  border-radius: 50px;
  padding: .25rem .75rem;
  letter-spacing: .04em;
  transition: var(--transition);
}

.greeting-tag.active {
  background: var(--gold);
  color: var(--green);
  border-color: var(--gold);
  transform: scale(1.05);
}

.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--gold);
}

.hero-heading {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero-heading span { color: var(--gold); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}

.stat-item { text-align: center; display: flex; flex-direction: column-reverse; align-items: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .2rem;
}

.stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65);
}

.luojia-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================
   ABOUT – WHO WE ARE
   ===================================================== */
#about {
  padding: 6rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--green);
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: var(--green);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  line-height: 1.3;
}

.about-badge span {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: 1.75rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

/* =====================================================
   WHAT WE DO
   ===================================================== */
#services {
  padding: 6rem 0;
  background: var(--off-white);
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-header .section-sub { margin-inline: auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* =====================================================
   EVENTS
   ===================================================== */
#events {
  padding: 6rem 0;
  background: var(--white);
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.events-tabs {
  display: flex;
  gap: .5rem;
  background: var(--off-white);
  border-radius: 50px;
  padding: .25rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  display: none;
}

.event-card.show { display: block; }

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  overflow: hidden;
}

.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.event-card:hover .event-img img {
  transform: scale(1.05);
}

.event-body { padding: 1.5rem; }

.event-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.event-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-attendees {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--gray);
}

.avatar-stack { display: flex; }

.avatar-stack span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--green);
  margin-left: -6px;
  font-size: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.avatar-stack span:first-child { margin-left: 0; }

/* =====================================================
   GALLERY STRIP
   ===================================================== */
#gallery {
  padding: 5rem 0;
  background: var(--green);
  overflow: hidden;
  position: relative;
}

.gallery-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-header .section-label { color: var(--gold-light); }
.gallery-header .section-title { color: var(--white); }

.gallery-container {
  overflow: hidden;
  width: 100%;
  padding: 0;
  margin: 0;
}

.gallery-track {
  display: inline-flex;
  gap: 1rem;
  animation: scroll-left 28s linear infinite;
  white-space: nowrap;
}

.gallery-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.gallery-item {
  width: 240px;
  height: 180px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* =====================================================
   CONTACT
   ===================================================== */
#contact {
  padding: 6rem 0;
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--green);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-style: normal;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  color: var(--dark);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item a { color: var(--green); font-weight: 600; }
.contact-item a:hover { text-decoration: underline; }

/* Form Layout */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form-fieldset-name {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand p {
  font-size: .875rem;
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: .65rem;
}

.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom a { color: var(--gold-light); }

/* =====================================================
   DECORATIVE STRIPE
   ===================================================== */
.flag-stripe {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--flag-red)    0%   16.67%,
    var(--flag-blue)   16.67% 33.33%,
    var(--flag-orange) 33.33% 50%,
    var(--flag-teal)   50%   66.67%,
    var(--flag-purple) 66.67% 83.33%,
    var(--flag-yellow) 83.33% 100%
  );
}

/* =====================================================
   MOBILE NAV OVERLAY
   ===================================================== */
@media (max-width: 768px) {
  html { font-size: 90%; }
  
  .hamburger { display: flex; }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100%;
    width: min(320px, 80vw);
    height: 100%;
    background: var(--green);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,.2);
    z-index: 9999 !important;
    margin: 0;
    list-style: none;
  }

  .nav-links.open { 
    right: 0; 
  }
  .nav-links a { 
    font-size: 1.1rem; 
    color: var(--white); 
    display: block;
    padding: 0.75rem 0;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav-overlay.hide {
    opacity: 0;
    pointer-events: none;
  }

  .nav-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-content { padding: 6rem 0 4rem; }
  .hero-heading { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; }
  .hero-desc { font-size: 1rem; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { right: 1rem; }
  .about-image-wrap { height: 280px; }

  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .gallery-item { width: 180px; height: 140px; }

  .events-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { gap: 1.25rem; }
  
  section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  html { font-size: 85%; }
  
  .hero-content { padding: 5rem 0 3rem; }
  .hero-heading { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .hero-eyebrow::before { width: 20px; }
  
  .gallery-item { width: 140px; height: 110px; }
  .about-image-wrap { height: 220px; }
  
  .btn { padding: .6rem 1.25rem; font-size: .9rem; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  .events-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  
  section { padding: 3rem 0; }
  .container { width: 92%; }
}
