/* =========================================================
   WiCS — Women in Computing Society
   Cottagecore / woodland campus aesthetic
   ========================================================= */

:root {
  /* Palette */
  --sage: #7a9b76;
  --sage-deep: #5f7d5c;
  --sage-soft: #c5d4c2;
  --bamboo: #8fae8b;
  --cream: #f5f0e6;
  --beige: #ede6d9;
  --paper: #faf7f0;
  --terracotta: #c67b5c;
  --burnt: #b45c3a;
  --maroon: #5c3a32;
  --chestnut: #4a2c28;
  --blush: #e8c4c0;
  --mustard: #d4a84b;
  --ivory: #fffdf8;
  --muted: #7a6a62;

  /* Surfaces */
  --bg: var(--cream);
  --bg-alt: var(--beige);
  --surface: var(--ivory);
  --text: var(--maroon);
  --text-soft: var(--muted);
  --accent: var(--terracotta);
  --accent-2: var(--sage);
  --border: rgba(92, 58, 50, 0.18);
  --shadow: 0 10px 30px rgba(74, 44, 40, 0.08);

  /* Type */
  --font-display: "Caveat", cursive;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Layout */
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1100px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 10% 0%, rgba(197, 212, 194, 0.45), transparent 45%),
    radial-gradient(ellipse at 90% 20%, rgba(232, 196, 192, 0.35), transparent 40%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  min-height: 100vh;
}

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

a {
  color: var(--sage-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--burnt);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--chestnut);
  margin: 0 0 0.4em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 38rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--chestnut);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.brand:hover img {
  transform: scale(1.06);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--maroon);
  font-weight: 650;
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sage-soft);
  color: var(--chestnut);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--maroon);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--ivory);
  box-shadow: 0 6px 16px rgba(180, 92, 58, 0.25);
}

.btn-primary:hover {
  background: var(--burnt);
  color: var(--ivory);
}

.btn-secondary {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}

.btn-secondary:hover {
  background: var(--maroon);
  color: var(--cream);
}

.btn-sage {
  background: var(--sage);
  color: var(--ivory);
}

.btn-sage:hover {
  background: var(--sage-deep);
  color: var(--ivory);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .welcome {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--sage-deep);
  margin-bottom: 0.15rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Mascot Card (Flip Card) */
.hero-card-container {
  width: min(100%, 320px);
  aspect-ratio: 1;
  perspective: 1200px;
  position: relative;
  z-index: 2;
  animation: floaty 5s ease-in-out infinite;
}

.hero-flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.35, 1);
  cursor: pointer;
  border-radius: 50%;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.hero-flip-card:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 4px;
}

.hero-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.hero-card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(92, 58, 50, 0.16);
  box-shadow: 0 16px 36px rgba(74, 44, 40, 0.14), 0 4px 12px rgba(74, 44, 40, 0.08);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-flip-card:hover .hero-card-face {
  border-color: var(--terracotta);
  box-shadow: 0 20px 42px rgba(74, 44, 40, 0.18), 0 6px 16px rgba(74, 44, 40, 0.1);
}

/* Front Face */
.hero-card-front {
  background: linear-gradient(155deg, #fffdf8 0%, #faf3eb 100%);
  padding: 1.25rem;
  border-radius: 50%;
  transform: rotateY(0deg);
}

.hero-logo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 86%;
  height: 86%;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(74, 44, 40, 0.1));
  transition: transform 0.35s var(--ease);
}

.hero-flip-card:hover .hero-logo-img {
  transform: scale(1.03);
}

/* Back Face */
.hero-card-back {
  background: linear-gradient(155deg, #fffcf6 0%, #f7eee3 100%);
  padding: 1.5rem;
  border-radius: 50%;
  transform: rotateY(180deg);
  text-align: center;
}

.mascot-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mascot-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 4.5rem);
  line-height: 1.05;
  color: var(--chestnut);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Backward-compatibility fallback */
.hero-badge {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(74, 44, 40, 0.18);
  animation: floaty 5s ease-in-out infinite;
}

.hero-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
}

.bamboo-deco {
  position: absolute;
  height: 220px;
  opacity: 0.55;
  pointer-events: none;
}

.bamboo-deco.left {
  left: -10px;
  bottom: -20px;
  transform: rotate(-8deg);
}

.bamboo-deco.right {
  right: -5px;
  top: 10px;
  transform: rotate(12deg) scaleX(-1);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--beige) 0%, rgba(197, 212, 194, 0.35) 100%);
  border-block: 1.5px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 2rem;
  color: var(--sage);
}

.divider::before,
.divider::after {
  content: "";
  height: 1.5px;
  width: min(120px, 20vw);
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
}

.divider svg {
  width: 22px;
  height: 22px;
}

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.55fr);
  gap: 1.75rem;
  align-items: center;
}

.mission-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.mission-copy p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.oval-gallery {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.oval-stage {
  position: relative;
  height: clamp(340px, 42vw, 460px);
  perspective: 1100px;
  transform-style: preserve-3d;
}

.oval-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(52%, 230px);
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: 14px;
  border: 2px solid var(--maroon);
  overflow: hidden;
  background: linear-gradient(145deg, var(--sage-soft), var(--blush) 55%, var(--beige));
  box-shadow: 0 14px 28px rgba(74, 44, 40, 0.16);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--maroon);
  transform-style: preserve-3d;
  transition:
    transform 0.55s var(--ease),
    opacity 0.55s var(--ease),
    filter 0.55s var(--ease),
    box-shadow 0.55s var(--ease);
  will-change: transform, opacity;
}

.oval-card:nth-child(2) {
  background: linear-gradient(145deg, var(--blush), var(--beige));
}

.oval-card:nth-child(3) {
  background: linear-gradient(160deg, var(--mustard), var(--blush));
}

.oval-card:nth-child(4) {
  background: linear-gradient(145deg, var(--sage), var(--beige));
  color: var(--ivory);
}

.oval-card:nth-child(5) {
  background: linear-gradient(120deg, var(--terracotta), var(--blush));
  color: var(--ivory);
}

.oval-card:nth-child(6) {
  background: linear-gradient(200deg, var(--beige), var(--mustard));
}

.oval-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oval-card.is-front {
  box-shadow: 0 18px 36px rgba(74, 44, 40, 0.22);
}

.oval-card.is-back {
  filter: saturate(0.85);
}

.oval-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--maroon);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease),
    border-color 0.2s var(--ease);
  z-index: 5;
}

.oval-nav:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
  transform: scale(1.05);
}

.oval-nav:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .oval-gallery {
    width: min(100%, 520px);
  }

  .oval-stage {
    height: 320px;
  }

  .oval-card {
    width: min(50%, 180px);
  }
}

@media (max-width: 500px) {
  .oval-nav {
    width: 36px;
    height: 36px;
  }

  .oval-stage {
    height: 280px;
  }
}

/* Events cards — interaction containers */
.events-week {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.event-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.event-card:hover {
  border-color: var(--sage);
  box-shadow: 0 6px 20px rgba(74, 44, 40, 0.12);
}

.event-card:focus-within {
  z-index: 30;
}

.event-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.tag-social {
  background: var(--blush);
  color: var(--chestnut);
}

.tag-workshop {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.tag-mentorship {
  background: rgba(212, 168, 75, 0.35);
  color: #8a6a1a;
}

.event-date {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}

.event-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Dynamic Event Cards & Calendar Integration */
#events-container,
#home-events-container,
.events-dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

#events-container .event-card,
#home-events-container .event-card,
.events-week .event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--chestnut);
  margin-top: 0.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.event-card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.event-card p strong {
  color: var(--terracotta);
  font-weight: 700;
}

.event-card p:last-of-type {
  margin-top: 0.4rem;
  margin-bottom: 1.25rem;
  color: var(--text-soft);
  flex-grow: 1;
}

/* Category Badges */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
  background: var(--sage-soft);
  color: var(--sage-deep);
  border: 1px solid var(--sage-deep);
}

.badge.badge-workshop,
.badge[data-category="workshop"] {
  background: var(--sage-soft);
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}

.badge.badge-hackathon,
.badge[data-category="hackathon"] {
  background: rgba(184, 80, 66, 0.15);
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.badge.badge-showcase,
.badge[data-category="showcase"] {
  background: rgba(212, 168, 75, 0.25);
  color: #8a6a1a;
  border-color: rgba(212, 168, 75, 0.6);
}

.badge.badge-competition,
.badge[data-category="competition"] {
  background: var(--blush);
  color: var(--chestnut);
  border-color: var(--terracotta);
}

.badge.badge-social,
.badge[data-category="social"] {
  background: var(--blush);
  color: var(--chestnut);
  border-color: var(--terracotta);
}

.badge.badge-mentorship,
.badge[data-category="mentorship"] {
  background: rgba(212, 168, 75, 0.25);
  color: #8a6a1a;
  border-color: rgba(212, 168, 75, 0.6);
}

/* Add-to-Calendar Web Component */
add-to-calendar-button {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 10;
  --overlay-background: transparent;
  --btn-background: var(--cream);
  --btn-text: var(--chestnut);
  --btn-border: 1.5px solid var(--border);
  --btn-hover-background: var(--surface);
  --btn-hover-border: 1.5px solid var(--terracotta);
  --btn-shadow: var(--shadow-sm);
  --list-background: var(--surface);
  --list-hover-background: var(--cream);
  --list-text: var(--chestnut);
  --list-hover-text: var(--terracotta);
  --list-shadow: 0 8px 24px rgba(74, 44, 40, 0.18);
  --font-family: var(--font-body);
  --font: var(--font-body);
}

add-to-calendar-button:hover,
add-to-calendar-button:focus-within {
  z-index: 40;
}

.events-empty-msg {
  width: 100%;
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  padding: 2.2rem 1.25rem;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid var(--maroon);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--sage-deep);
  box-shadow: 0 4px 0 var(--sage-soft);
}

.value-item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Pillars (About) */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pillar {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s var(--ease);
}

.pillar:hover {
  border-color: var(--terracotta);
}

.pillar h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pillar-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1.5px solid var(--sage-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  color: var(--sage-deep);
  flex-shrink: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid var(--maroon);
  overflow: hidden;
  background: var(--beige);
  transition: transform 0.3s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.75rem 0.65rem;
  background: linear-gradient(transparent, rgba(74, 44, 40, 0.72));
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* Calendar */
.calendar-wrap {
  background: var(--surface);
  border: 2px solid var(--maroon);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 600px;
}

.calendar-wrap iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

.calendar-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  text-align: center;
}

/* Resources */
.discord-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(120deg, var(--sage-soft), var(--beige));
  border: 2px solid var(--sage-deep);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}

.lounge-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(120deg, var(--blush), var(--beige));
  border: 2px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.lounge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--ivory);
  display: grid;
  place-items: center;
  border: 2px solid var(--maroon);
  flex-shrink: 0;
}

.discord-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--ivory);
  display: grid;
  place-items: center;
  border: 2px solid var(--maroon);
}

.discord-feed {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.discord-feed h3 {
  margin-bottom: 1rem;
}

.feed-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
}

.feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blush);
  border: 1.5px solid var(--maroon);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.feed-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.feed-placeholder-note {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.resource-link:hover {
  border-color: var(--terracotta);
  transform: translateX(4px);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--beige);
  border: 1.5px solid var(--maroon);
  display: grid;
  place-items: center;
  color: var(--maroon);
  flex-shrink: 0;
}

.resource-link h3 {
  font-size: 1.45rem;
  margin-bottom: 0.15rem;
}

.resource-link p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 0;
}

.resource-arrow {
  font-size: 1.4rem;
  color: var(--terracotta);
  font-weight: 700;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.member {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
}

.member:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  box-shadow: 0 10px 26px rgba(74, 30, 42, 0.08);
}

.member-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 0.95rem;
  border-radius: 50%;
  border: 3px solid var(--maroon);
  background: linear-gradient(145deg, var(--blush), var(--sage-soft));
  box-shadow: 0 5px 0 var(--beige);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(199, 110, 85, 0.1);
  border: 1px solid rgba(199, 110, 85, 0.25);
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  margin-bottom: 0.45rem;
}

.member h3 {
  font-size: 1.42rem;
  color: var(--maroon);
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

.member-tag {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.78rem;
}

.member-bio {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
}

.member-bio p {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.member-bio p:last-child {
  margin-bottom: 0;
}

.member-linkedin {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--cream);
  border: 1.2px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-deep);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}

.member-linkedin svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.member-linkedin:hover {
  background: var(--sage-soft);
  color: var(--maroon);
  border-color: var(--sage);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Sponsors */
.sponsors-grid,
.sponsor-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.sponsor-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 115px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.sponsor-card:hover {
  transform: translateY(-3px);
  border-color: var(--sage);
  box-shadow: 0 8px 24px rgba(74, 44, 40, 0.12);
}

.sponsor-logo {
  max-width: 210px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s var(--ease);
}

.sponsor-card:hover .sponsor-logo {
  transform: scale(1.03);
}

/* Sponsor Collaboration Box */
.sponsor-collaborate {
  max-width: 680px;
  margin-inline: auto;
}

.collaborate-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
  text-align: center;
}

.collaborate-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.collaborate-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
  margin-bottom: 0.75rem;
  color: var(--chestnut);
}

.collaborate-box p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 0.85rem;
}

.collaborate-email-link {
  color: var(--terracotta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

.collaborate-email-link:hover {
  color: var(--maroon);
}

.sponsor-form {
  background: var(--surface);
  border: 2px solid var(--maroon);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* Get Involved - consolidated layout */
.involved-stack {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.involved-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.involved-block h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.involved-block p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.involved-block p:last-of-type {
  margin-bottom: 0;
}

.involved-block .btn {
  margin-top: 1rem;
}

.involved-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

.involved-details h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.involved-details p {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.involved-socials {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.involved-socials-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sage-deep);
  margin: 0 0 0.65rem;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-row .footer-social {
  background: var(--surface);
  color: var(--maroon);
  border-color: var(--border);
}

.social-row .footer-social:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
  color: var(--maroon);
}

/* Get Involved - legacy step cards (unused) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1.5px solid var(--sage-deep);
  font-weight: 800;
  color: var(--sage-deep);
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.social-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.social-feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.social-feature-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.social-feature-card.discord:hover {
  border-color: var(--sage-deep);
}

.social-feature-card.instagram:hover {
  border-color: var(--terracotta);
}

.social-feature-card.linkedin:hover {
  border-color: #0a66c2;
}

.social-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--beige);
  color: var(--maroon);
}

.social-feature-card h3 {
  font-size: 1.5rem;
  margin: 0;
}

.social-feature-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
  flex: 1;
}

.social-feature-cta {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--terracotta);
}

.updates-feed {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.info-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.info-card-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.info-card-link:hover {
  text-decoration: underline;
}

.faq-container {
  max-width: 680px;
  margin-inline: auto;
}

#faq .section-head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 1.1rem;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.85rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--terracotta);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-soft);
  padding-bottom: 0.85rem;
  margin: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(2rem, 5vw, 3.25rem) 0 1.5rem;
  text-align: center;
}

.page-hero .lead {
  margin-inline: auto;
}

/* Footer */
.site-footer {
  background: var(--maroon);
  color: var(--cream);
  padding: 3rem 0 1.75rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand h3 {
  color: var(--cream);
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  color: rgba(245, 240, 230, 0.75);
  font-size: 0.92rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--blush);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.footer-social {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0 !important;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 240, 230, 0.35);
  background: rgba(245, 240, 230, 0.08);
  color: var(--cream) !important;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-social:hover {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--maroon) !important;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 230, 0.2);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: rgba(245, 240, 230, 0.65);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Join strip */
.join-strip {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--terracotta), var(--burnt));
  border-radius: var(--radius);
  color: var(--ivory);
  border: 2px solid var(--chestnut);
}

.join-strip h2 {
  color: var(--ivory);
}

.join-strip p {
  color: rgba(255, 253, 248, 0.9);
  max-width: 32rem;
  margin-inline: auto;
}

.join-strip .btn-secondary {
  border-color: var(--ivory);
  color: var(--ivory);
}

.join-strip .btn-secondary:hover {
  background: var(--ivory);
  color: var(--burnt);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .mission-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-card-container,
  .hero-badge {
    width: min(100%, 280px);
  }

  #events-container,
  #home-events-container,
  .events-week,
  .values-grid,
  .team-grid,
  .steps-grid,
  .social-feature-grid,
  .info-cards {
    grid-template-columns: 1fr 1fr;
  }

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

  .discord-banner,
  .lounge-banner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .bamboo-deco {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero-card-container {
    width: min(100%, 260px);
  }

  .mascot-name {
    font-size: 2.8rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1.5px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    position: relative;
  }

  #events-container,
  #home-events-container,
  .events-week,
  .values-grid,
  .pillars,
  .team-grid,
  .gallery-grid,
  .steps-grid,
  .social-feature-grid,
  .info-cards,
  .involved-details,
  .sponsor-cards {
    grid-template-columns: 1fr;
  }

  .resource-link {
    grid-template-columns: auto 1fr;
  }

  .resource-arrow {
    display: none;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
