/* ==========================================================================
   CMU Wushu Club — site styles
   All styling for every page lives in this one file.
   Sections are labelled below so you can jump to what you need.
     1. Variables (colors + fonts)   5. Footer
     2. Base / reset                 6. Page sections (hero, cards, table...)
     3. Layout helpers               7. Gallery grid
     4. Header + navigation          8. Mobile / responsive rules
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES — change a color here and it updates across the whole site.
   -------------------------------------------------------------------------- */
:root {
  --cardinal: #C41230;        /* CMU cardinal red — primary brand color */
  --cardinal-dark: #8E0D22;   /* darker red, used for hover states */
  --black: #111111;
  --off-black: #1C1C1C;
  --gray-900: #2A2A2A;
  --gray-600: #5B5B5B;
  --gray-300: #D8D8D8;
  --gray-100: #F4F4F4;
  --white: #FFFFFF;

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 10px 26px rgba(0, 0, 0, 0.16);
  --transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   2. BASE / RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--black);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1.1em; }

a { color: var(--cardinal); text-decoration: none; }
a:hover { color: var(--cardinal-dark); text-decoration: underline; }

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

/* Visible keyboard focus everywhere — important for accessibility. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cardinal);
  outline-offset: 3px;
}

/* Skip link: hidden until a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--gray { background: var(--gray-100); }
/* Optional utility: add class="section section--dark" for a dark band. */
.section--dark { background: var(--off-black); color: var(--gray-300); }
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.section-header p { color: var(--gray-600); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-header p { color: var(--gray-300); }

/* Small red rule that sits under section headings. */
.accent-rule {
  width: 64px;
  height: 4px;
  background: var(--cardinal);
  border: 0;
  margin: 0 0 1.25rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary { background: var(--cardinal); color: var(--white); }
.btn--primary:hover { background: var(--cardinal-dark); color: var(--white); }

.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--black); }

.btn--outline { background: transparent; color: var(--cardinal); border-color: var(--cardinal); }
.btn--outline:hover { background: var(--cardinal); color: var(--white); }

/* --------------------------------------------------------------------------
   4. HEADER + NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 3px solid var(--cardinal);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.nav__brand:hover { color: var(--white); text-decoration: none; }

.nav__logo {
  display: block;
  width: 38px;
  height: 38px;
  /* White disc behind the logo: the mark has a black half that would
     otherwise disappear against the black header. */
  background: var(--white);
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); text-decoration: none; }

/* The "current page" link — set with class="is-active" in the HTML. */
.nav__links a.is-active { color: var(--white); background: var(--cardinal); }

a.nav__join {
  margin-left: 0.4rem;
  background: var(--cardinal);
  color: var(--white);
}
a.nav__join:hover { background: var(--cardinal-dark); color: var(--white); }

/* Hamburger button — hidden on desktop, shown under 820px (see section 8). */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}
/* Turn the three bars into an X when the menu is open. */
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--cardinal);
}
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__grid h3 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer__grid p { font-size: 0.95rem; }

.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 0.5rem; font-size: 0.95rem; }

.footer__bottom {
  border-top: 1px solid var(--gray-900);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   6. PAGE SECTIONS
   -------------------------------------------------------------------------- */

/* --- Hero (home page) --- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78vh;
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.92) 0%, rgba(196, 18, 48, 0.78) 100%),
    var(--off-black);
  overflow: hidden;
}
/* Faint diagonal stripes for texture — pure CSS, no image needed. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.04) 0 2px,
    transparent 2px 22px
  );
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero__tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

/* --- Page banner (inner pages) --- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.3em; }
.page-hero p {
  color: var(--gray-300);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Generic card grids --- */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  background: var(--cardinal);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1.3rem;
}

/* --- Event cards --- */
.event-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: 4px solid var(--cardinal);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.event-card__body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.event-card__date {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin-bottom: 0.5rem;
}
.event-card__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  border-top: 1px solid var(--gray-300);
}
.event-card__meta span { display: block; }

.tag {
  display: inline-block;
  align-self: flex-start;   /* stops the pill stretching across the card */
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}
.tag--performance { background: #FCE8EC; color: var(--cardinal-dark); border-color: #F3C4CE; }
.tag--competition { background: var(--black); color: var(--white); border-color: var(--black); }
.tag--social { background: var(--gray-100); color: var(--gray-900); }

/* --- Schedule table --- */
.table-wrap {
  overflow-x: auto;                    /* lets wide tables scroll on phones */
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;                    /* forces the scroll instead of squashing */
}

caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--gray-600);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
}

thead th {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.9rem 1.25rem;
  white-space: nowrap;
}

tbody th,
tbody td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-300);
  text-align: left;
  font-size: 0.97rem;
  vertical-align: top;
}
tbody th { font-weight: 700; color: var(--black); white-space: nowrap; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FAFAFA; }
tbody tr:hover { background: #FCE8EC; }

.table-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* --- Contact / join page --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.9rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  background: var(--cardinal);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
}
/* Brand marks (Discord, Instagram) drawn inline as SVG so there are no
   external requests and they inherit the icon colour. */
.brand-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}

/* Slightly larger inside the square card icons. */
.card__icon .brand-icon { width: 24px; height: 24px; }

.brand-icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card h3 { margin-bottom: 0.4rem; }
.contact-card p { color: var(--gray-600); font-size: 0.95rem; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* Ordered "how to join" steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--cardinal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: 50%;
}
.steps li strong { display: block; color: var(--black); }


/* --- Call-to-action strip --- */
.cta-band {
  background: var(--cardinal);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.92);
}

/* --- Stats row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stats__item { padding: 1rem; }
.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--cardinal);
  line-height: 1;
}
.stats__label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* Two-column prose + aside (About page) */
.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}
.aside-box {
  background: var(--gray-100);
  border-left: 4px solid var(--cardinal);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.aside-box h3 { margin-bottom: 0.75rem; }

/* When an aside sits inside a dark section, invert it so the text stays
   readable — otherwise white headings land on a near-white box. */
.section--dark .aside-box {
  background: rgba(255, 255, 255, 0.07);
  border-left-color: var(--cardinal);
  color: var(--gray-300);
}
.aside-box ul { margin: 0; padding-left: 1.1rem; }
.aside-box li { margin-bottom: 0.5rem; font-size: 0.95rem; }

/* --- Live Google Calendar embed --- */
/* Keeps the calendar iframe responsive. The iframe itself has no fixed
   height in the HTML — the height comes from here. */
.cal-embed {
  position: relative;
  width: 100%;
  height: 640px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.cal-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 620px) {
  /* Google's calendar is cramped on phones, so give it a taller box
     and point people at the full-page version instead. */
  .cal-embed { height: 520px; }
}

/* --------------------------------------------------------------------------
   7. GALLERY GRID
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--gray-100);
  aspect-ratio: 4 / 3;                 /* keeps every tile the same shape */
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }

/* Caption slides up over the photo on hover / keyboard focus. */
.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.9rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.85), transparent);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.gallery__item:hover figcaption,
.gallery__item:focus-within figcaption {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   CAROUSEL — one scrolling slideshow per event.
   It is a plain horizontal scroller with CSS scroll-snap, so swiping and
   trackpad scrolling work with no JavaScript at all. The arrow buttons are
   an extra convenience added by script.js.
   -------------------------------------------------------------------------- */
.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  /* thin scrollbar, styled to match */
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.carousel__track::-webkit-scrollbar { height: 8px; }
.carousel__track::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 99px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
.carousel__track::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }
.carousel__track:focus-visible { outline: 3px solid var(--cardinal); outline-offset: 4px; }

.carousel__slide {
  position: relative;
  flex: 0 0 min(560px, 82%);
  scroll-snap-align: center;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 3 / 2;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrow buttons — only shown once JavaScript has set them up. */
.carousel__btn {
  position: absolute;
  top: calc(50% - 1.25rem);
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lift);
  transition: background var(--transition), opacity var(--transition);
}
.carousel.is-ready .carousel__btn { display: grid; }
.carousel__btn:hover { background: var(--cardinal); }
.carousel__btn[disabled] { opacity: 0.25; cursor: default; }
.carousel__btn[disabled]:hover { background: var(--black); }
.carousel__btn--prev { left: -14px; }
.carousel__btn--next { right: -14px; }

@media (max-width: 900px) {
  /* Keep the arrows on top of the image rather than hanging outside it. */
  .carousel__btn--prev { left: 6px; }
  .carousel__btn--next { right: 6px; }
}
@media (max-width: 620px) {
  .carousel__slide { flex-basis: 88%; }
  .carousel__btn { width: 38px; height: 38px; font-size: 1.25rem; }
}

/* A carousel that only has blank tiles doesn't need snapping. */
.carousel__track--empty { scroll-snap-type: none; }

/* --- Blank placeholder tile ---
   A tile with no photo yet. Delete the <figure> or replace its contents
   with an <img> once you have a real picture. */
.gallery__item--empty {
  display: grid;
  place-items: center;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  color: var(--gray-600);
  text-align: center;
  padding: 1rem;
}
.gallery__item--empty span {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gallery__item--empty::before {
  content: "+";
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: var(--cardinal);
  margin-bottom: 0.35rem;
}

/* --- One gallery group per event --- */
.gallery-group { margin-bottom: 3rem; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--gray-300);
}
.gallery-group__head h3 { margin: 0; font-size: 1.15rem; }
.gallery-group__meta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cardinal);
}
.gallery-group__where {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-left: auto;
}
@media (max-width: 620px) {
  .gallery-group__where { margin-left: 0; width: 100%; }
}

/* Make one tile span two columns for visual rhythm. Add class="gallery__item--wide". */
.gallery__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }

/* --------------------------------------------------------------------------
   8. MOBILE / RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 820px) {
  /* Show the hamburger, hide the desktop link row. */
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: var(--black);
    border-bottom: 3px solid var(--cardinal);
    box-shadow: var(--shadow-lift);
  }
  /* JavaScript adds .is-open to reveal the menu. */
  .nav__links.is-open { display: flex; }

  .nav__links a {
    padding: 0.9rem 0.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-900);
    font-size: 1rem;
  }
  a.nav__join {
    margin-left: 0;
    margin-top: 0.85rem;
    text-align: center;
    border-radius: var(--radius);
  }

  .nav { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 3rem 0; }
  .hero { min-height: 68vh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 4 / 3; }
  .steps li { padding-left: 3rem; }
}

/* Respect "reduce motion" accessibility settings. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Printing (e.g. printing the schedule for a bulletin board) */
@media print {
  .site-header, .site-footer, .cta-band, .hero__actions { display: none; }
  body { font-size: 12pt; color: #000; }
  .table-wrap { box-shadow: none; }
}
