/* =====================================================
   WISU – Wuhan University International Student Union
   Color Palette: WHU Forest Green + Gold + Flag Accents
   ===================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --green:        #1A4731;
  --green-mid:    #245C3E;
  --green-light:  #2E7D52;
  --gold:         #C9A537;
  --gold-light:   #E0BC5A;
  --gold-pale:    #F5E9C0;
  --white:        #FFFFFF;
  --off-white:    #F8F6F2;
  --dark:         #111714;
  --gray:         #5A6B62;
  --gray-light:   #DCE6DF;

  /* International flag accent colors */
  --flag-red:     #D4283C;
  --flag-blue:    #003087;
  --flag-orange:  #FF8200;
  --flag-teal:    #009B77;
  --flag-purple:  #7B2D8B;
  --flag-yellow:  #FFD100;

  --radius:       12px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(26,71,49,.12);
  --shadow-lg:    0 12px 48px rgba(26,71,49,.18);
  --transition:   .3s cubic-bezier(.4,0,.2,1);
  --font-sans:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- 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; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--green);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--green);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,165,55,.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--green);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}
.btn-green:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,71,49,.35);
}

/* =====================================================
   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: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
}

.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;
}

.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);
}

/* Luojia Hill inspired SVG scene fills the full hero */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  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%
  );
  z-index: 1;
}

/* Geometric flag-color accents */
.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;
}

/* Multi-language greetings carousel */
.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);
}

/* Hero SVG scene */
.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-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;
}

.value-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

.value-text h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0;
  line-height: 1.4;
}
.value-text p { font-size: .9rem; color: var(--gray); margin-top: .15rem; }

/* =====================================================
   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;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.service-card:nth-child(1)::before { background: var(--flag-red); }
.service-card:nth-child(2)::before { background: var(--flag-blue); }
.service-card:nth-child(3)::before { background: var(--flag-orange); }
.service-card:nth-child(4)::before { background: var(--flag-teal); }
.service-card:nth-child(5)::before { background: var(--flag-purple); }
.service-card:nth-child(6)::before { background: var(--gold); }

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

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.15rem;
  color: var(--green);
  margin-bottom: .5rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.service-card p {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* =====================================================
   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;
}

.tab-btn {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--green);
  color: var(--white);
}

.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;
  object-fit: cover;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
}

.event-body {
  padding: 1.5rem;
}

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

.event-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 50px;
}

.tag-upcoming { background: #e3f2ed; color: var(--green-light); }
.tag-ongoing  { background: #fff3cd; color: #856404; }
.tag-past     { background: var(--gray-light); color: var(--gray); }

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

.event-body h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: .5rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.event-body p {
  font-size: .875rem;
  color: var(--gray);
  line-height: 1.6;
}

.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; }

.event-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition);
}

.event-link:hover { gap: .6rem; }

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

.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-track {
  display: flex;
  gap: 1rem;
  animation: scroll-left 28s linear infinite;
  width: max-content;
}

.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;
  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; /* <address> resets to italic in browsers */
}

.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 */
.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-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,71,49,.1);
}

.form-group textarea { min-height: 130px; }

.form-submit {
  width: 100%;
  padding: .9rem;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
}

.form-submit:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,71,49,.3);
}

.form-note {
  font-size: .78rem;
  color: var(--gray);
  text-align: center;
  margin-top: .85rem;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show { display: block; }

.form-success-icon {
  width: 64px; height: 64px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
  color: var(--white);
}

.form-success h4 {
  font-size: 1.2rem;
  color: var(--green);
  margin-bottom: .5rem;
}

.form-success p { color: var(--gray); font-size: .9rem; }

/* =====================================================
   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;
}

.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--green);
  transform: translateY(-2px);
}

.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-flags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.flag-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.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); }

/* =====================================================
   SCROLL-TO-TOP
   ===================================================== */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--green);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}

#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* =====================================================
   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) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; 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: 1001;
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: 1.1rem; color: var(--white); }

  .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.show {
    opacity: 1;
    pointer-events: auto;
  }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { right: 1rem; }

  .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; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .events-header { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   FADE-IN ANIMATIONS
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

/* ------ Screen-reader-only utility ------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------ Skip link ------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .65rem 1.25rem;
  background: var(--gold);
  color: var(--green);
  font-weight: 700;
  font-size: .95rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ------ Focus-visible styles ------ */
/* Remove default outline only when not using keyboard */
:focus:not(:focus-visible) { outline: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Invert focus ring on dark backgrounds */
#navbar :focus-visible,
#hero :focus-visible,
#gallery :focus-visible,
#footer :focus-visible {
  outline-color: var(--gold-light);
}

/* Form input focus (use box-shadow instead of outline so it works inside rounded inputs) */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26,71,49,.18);
}

/* Tab buttons – keyboard focus */
.tab-btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

/* ------ Form required note & error messages ------ */
.form-required-note {
  font-size: .82rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.form-required-note abbr {
  color: #C0392B;
  text-decoration: none;
  font-weight: 700;
}

.field-error {
  display: block;
  font-size: .8rem;
  color: #C0392B;
  margin-top: .25rem;
  min-height: 1.2em;
  font-weight: 600;
}

/* Highlight invalid fields */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

/* Reset fieldset defaults – preserve visual form-row layout */
.form-fieldset-name {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

/* ------ main landmark focus ------ */
main:focus { outline: none; }

/* =====================================================
   PREFERS-REDUCED-MOTION
   Override animations for users who prefer no motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  /* Immediately reveal fade-in elements */
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Stop gallery marquee */
  .gallery-track {
    animation: none !important;
  }
}
