/* ==========================================================================
   IACBT — Global reset & base styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}



@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: calc(var(--nav-height) + 40px);
}

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

img { height: auto; }

/* ---- Graceful placeholder for missing/broken images ----
   image-fallback logic in main.js adds .img-broken and gives these
   containers a soft brand-tinted background instead of a broken-image
   icon, so the layout still reads as intentional before real
   photography is dropped into /images. */
.card__media,
.mission__art,
.president__photo,
.profile-card__photo,
.event-card__media,
.hero__slide-track {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(56, 189, 248, 0.18));
}

img.img-broken {
  opacity: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; }

ul, ol { list-style: none; margin: 0; padding: 0; }

/* ---- Accessible focus states ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-sm);
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: top var(--dur-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

.section--tight { padding-block: var(--space-xl); }
.section--surface { background: var(--color-surface); }
.section--tint {
  background: linear-gradient(180deg, #EFF6F7 0%, var(--color-bg) 100%);
}
.section--dark {
  background: var(--gradient-primary);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

hr.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-lg);
}

/* ---- Visually hidden (for a11y labels) ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
