@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400&family=Noto+Serif:wght@600;700&display=swap');

/* Utah Agile — base styles
   Clean, fast, accessible replacement for the Wix site.
   Fonts matched to the original: Lato for text/headings, Noto Serif for bio names. */

:root {
  --brand:       #1e2d3d;   /* Utah Agile slate navy (from logo) */
  --brand-dark:  #16212d;
  --accent:      #f26b21;   /* warm CTA orange   */
  --accent-dark: #d1550f;
  --ink:         #1a1f26;
  --muted:       #5b6570;
  --line:        #e3e7ec;
  --bg:          #ffffff;
  --bg-alt:      #f6f8fa;
  --radius:      10px;
  --maxw:        1080px;
  --font: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 3.5rem 0; }
.section--alt { background: var(--bg-alt); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
}
.nav__brand { font-weight: 800; font-size: 1.25rem; color: var(--brand); display: inline-flex; align-items: center; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { height: 56px; width: auto; }
@media (max-width: 640px) { .nav__brand img { height: 44px; } }

/* Anchor targets clear the sticky header on the one-page layout.
   Applies to every element with an id, not just <section> — nav
   sub-links (e.g. the "Get Involved" dropdown) point at headings
   nested inside a section, not the section itself. */
[id] { scroll-margin-top: 90px; }

/* Social icons (image links, like the original site) */
.social-icons { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.social-icons a { display: inline-flex; }
.social-icons img { width: 34px; height: 34px; display: block; transition: transform .15s ease, opacity .15s ease; opacity: .9; }
.social-icons a:hover img { transform: translateY(-2px); opacity: 1; }
.nav__links { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.nav__links a { color: var(--ink); font-weight: 500; }
.nav__links a:hover { color: var(--brand); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 4.5rem 0;
}
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 640px; }
.hero__cta { margin-top: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; background: var(--bg);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-2px); }
.card h3 { margin: 0 0 .4rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Events ---------- */
.event {
  display: flex; gap: 1.25rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; margin-bottom: 1rem; background: var(--bg);
}
.event__date {
  flex: 0 0 84px; text-align: center; background: var(--brand); color: #fff;
  border-radius: var(--radius); padding: .6rem .2rem;
}
.event__date .m { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.event__date .d { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.event__body h3 { margin: 0 0 .3rem; }
.event__meta { color: var(--muted); font-size: .95rem; margin: 0 0 .5rem; }
.events-empty { color: var(--muted); font-style: italic; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--brand-dark); color: #fff; }
.newsletter h2 { color: #fff; }
.newsletter .lead { color: rgba(255,255,255,.8); }

/* ---------- Hero with background image ---------- */
.hero--home {
  background:
    linear-gradient(135deg, rgba(30,45,61,.82), rgba(22,33,45,.66)),
    url("../img/hero.jpg") center/cover no-repeat;
}

/* ---------- Sponsors / partner logos ---------- */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem; align-items: center; margin-top: 1.5rem;
}
.logo-grid a, .logo-grid .logo-cell {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; aspect-ratio: 3 / 2;
}
.logo-grid img { max-height: 72px; max-width: 100%; object-fit: contain; }
.logo-grid a { transition: box-shadow .15s ease, transform .15s ease; }
.logo-grid a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }

/* ---------- Rotating logo banner (marquee) ---------- */
.logo-marquee { overflow: hidden; margin-top: 1.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; width: max-content; gap: 1rem; animation: logo-scroll 40s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track .logo-cell, .logo-track a {
  flex: 0 0 auto; width: 180px; height: 110px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.logo-track img { max-height: 72px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-track a:hover img, .logo-track .logo-cell:hover img { filter: none; opacity: 1; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Video embeds (Vimeo) ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Team / bios ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.75rem; margin-top: 1.5rem; }
.member { text-align: center; }
.member img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto .8rem; border: 3px solid var(--line); }
.member h3 { margin: 0; font-size: 1.25rem; font-family: var(--font-serif); font-weight: 700; }
.member .role { color: var(--brand); font-weight: 600; font-size: .9rem; margin: .1rem 0 .4rem; }
.member .tagline { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.member a.li { font-size: .85rem; }

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7cdd4; padding: 2.5rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.social { display: flex; gap: 1rem; margin-top: .5rem; }
.social a { color: #c7cdd4; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem; gap: 1rem;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
}
