/* MobilitySF post-July 2026 refresh
   Scoped to the homepage, holding page, and Past Events redesign. */

:root {
  --refresh-red-dark: #6f2424;
  --refresh-cream: #f8f3e8;
  --refresh-paper: #fffdf8;
  --refresh-mid: #55504c;
  --refresh-muted: #7c746e;
  --refresh-line: rgba(140, 48, 48, 0.18);
  --refresh-shadow: 0 24px 70px rgba(26, 26, 26, 0.18);
}

.home-refresh-page,
.holding-page,
.archive-refresh-page {
  background: var(--refresh-paper);
}

.refresh-eyebrow {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.refresh-eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.refresh-button {
  align-items: center;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 3px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.25rem;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.refresh-button:hover {
  background: var(--refresh-red-dark);
  border-color: var(--refresh-red-dark);
}

.refresh-button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--red);
}

.refresh-button-light:hover {
  background: var(--refresh-cream);
  border-color: var(--refresh-cream);
  color: var(--red);
}

.refresh-button-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.refresh-button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.refresh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
}

.refresh-text-link {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.refresh-card-label {
  color: var(--red);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.refresh-section-intro {
  margin: 0 auto 2.4rem;
  max-width: 720px;
  text-align: center;
}

.refresh-section-intro h2,
.recent-event-copy h2,
.about-refresh-section h2,
.archive-cta h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 400;
  line-height: 1.12;
}

.refresh-section-intro > p:last-child,
.about-refresh-section > p:last-child {
  color: var(--refresh-mid);
  font-size: 1rem;
  line-height: 1.7;
  margin: 1rem auto 0;
  max-width: 680px;
}

/* Homepage */

.home-refresh-hero {
  align-items: center;
  background: url("images/home/home-hero-banner.jpg") center / cover no-repeat;
  display: flex;
  justify-content: center;
  min-height: calc(92vh - var(--nav-height));
  padding: 4rem 1.5rem;
  position: relative;
}

.home-refresh-shade,
.holding-shade {
  background:
    linear-gradient(115deg, rgba(33, 18, 18, 0.68), rgba(79, 25, 25, 0.34)),
    linear-gradient(0deg, rgba(15, 15, 15, 0.13), rgba(15, 15, 15, 0.13));
  inset: 0;
  position: absolute;
}

.home-refresh-card {
  background: rgba(112, 38, 38, 0.92);
  box-shadow: var(--refresh-shadow);
  color: var(--white);
  max-width: 670px;
  padding: 3.8rem 4rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.home-refresh-card h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.35rem, 5.4vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1.3rem;
}

.home-refresh-tagline {
  font-family: var(--font-primary);
  font-size: 1.28rem;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 520px;
}

.home-refresh-note {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.connection-section,
.event-archive {
  margin: 0 auto;
  max-width: 1180px;
  padding: 5.5rem 2rem;
}

.connection-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connection-card {
  background: var(--refresh-cream);
  border: 1px solid var(--refresh-line);
  min-height: 340px;
  padding: 2.4rem;
}

.connection-card-email {
  background: #f3e5df;
  border-color: rgba(140, 48, 48, 0.28);
}

.connection-icon {
  align-items: center;
  background: var(--red);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  margin-bottom: 2.3rem;
  width: 44px;
}

.connection-card-email .mail-icon {
  background: var(--red);
  color: var(--white);
  font-size: 1.15rem;
}

.connection-card h3 {
  font-family: var(--font-primary);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.16;
  margin-bottom: 0.85rem;
}

.connection-card > p:not(.refresh-card-label) {
  color: var(--refresh-mid);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
  max-width: 450px;
}

.recent-event-section {
  align-items: stretch;
  background: var(--refresh-cream);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.recent-event-image {
  min-height: 520px;
}

.recent-event-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.recent-event-copy {
  align-self: center;
  padding: 4.4rem;
}

.recent-event-copy h2 {
  color: var(--red);
  margin-bottom: 1.1rem;
}

.recent-event-copy > p:not(.refresh-eyebrow) {
  color: var(--refresh-mid);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 1.4rem;
}

.about-refresh-section {
  margin: 0 auto;
  max-width: 850px;
  padding: 6rem 2rem;
  text-align: center;
}

.about-refresh-section h2 {
  margin-bottom: 1.2rem;
}

/* Next Event holding page */

.holding-hero {
  align-items: center;
  background: url("images/next-event/next-event-hero.jpg") center / cover no-repeat;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 4rem 1.5rem;
  position: relative;
}

.holding-card {
  background: rgba(112, 38, 38, 0.94);
  box-shadow: var(--refresh-shadow);
  color: var(--white);
  max-width: 700px;
  padding: 4.4rem 4rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.holding-card h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.35rem, 5.4vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.holding-tagline {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  line-height: 1.45;
}

.holding-copy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 1.2rem auto 0;
  max-width: 520px;
}

.holding-recap-link {
  color: rgba(255, 255, 255, 0.84);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 1.6rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Past Events */

.archive-refresh-body {
  background: #efe9df;
}

.archive-refresh-page {
  margin: 0 auto;
  max-width: 1320px;
}

.archive-intro {
  background: var(--refresh-paper);
  padding: 5.5rem 4rem 4rem;
  text-align: center;
}

.archive-intro h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5.5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 auto;
  max-width: 920px;
}

.archive-intro > p:last-child {
  color: var(--refresh-mid);
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 1.4rem auto 0;
  max-width: 760px;
}

.featured-recap {
  background: var(--refresh-paper);
}

.recap-hero {
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.recap-hero > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.recap-hero::after {
  background: linear-gradient(0deg, rgba(20, 12, 12, 0.86), rgba(20, 12, 12, 0.06) 72%);
  content: "";
  inset: 0;
  position: absolute;
}

.recap-hero-overlay {
  bottom: 0;
  color: var(--white);
  left: 0;
  max-width: 800px;
  padding: 4rem;
  position: absolute;
  z-index: 2;
}

.recap-hero-overlay h2 {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 1rem;
}

.recap-hero-overlay > p:last-child {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-primary);
  font-size: 1.35rem;
  line-height: 1.42;
  max-width: 660px;
}

.recap-facts {
  background: var(--red);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recap-facts > div {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.3rem 1rem;
  text-align: center;
}

.recap-facts > div:last-child {
  border-right: 0;
}

.recap-facts span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  margin-bottom: 0.3rem;
  opacity: 0.66;
  text-transform: uppercase;
}

.recap-facts strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
}

.recap-section,
.photo-story {
  border-top: 1px solid var(--refresh-line);
  padding: 4.7rem 4rem;
}

.refresh-section-intro.compact {
  margin-bottom: 2.2rem;
  max-width: 850px;
}

.speaker-feature-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 3rem;
  max-width: 1020px;
}

.speaker-feature {
  align-items: center;
  background: var(--refresh-cream);
  border: 1px solid var(--refresh-line);
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 170px;
  padding: 1.25rem;
}

.speaker-feature img {
  aspect-ratio: 1;
  border: 4px solid var(--red);
  border-radius: 50%;
  object-fit: cover;
  width: 120px;
}

.speaker-feature h3 {
  color: var(--red);
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.speaker-feature p {
  color: var(--refresh-mid);
  font-size: 0.9rem;
  line-height: 1.48;
}

.recap-narrative {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.48fr);
  margin: 0 auto;
  max-width: 1020px;
}

.recap-narrative > p {
  color: var(--refresh-mid);
  font-family: var(--font-primary);
  font-size: 1.35rem;
  line-height: 1.58;
}

.recap-flyer {
  box-shadow: 0 16px 45px rgba(26, 26, 26, 0.2);
  width: 100%;
}

.photo-story {
  background: var(--refresh-cream);
}

.photo-triptych {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 0.8rem;
  max-width: 1080px;
}

.photo-triptych img {
  aspect-ratio: 3 / 4;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-story-wide {
  aspect-ratio: 16 / 8.8;
  margin: 0 auto;
  max-width: 1080px;
  object-fit: cover;
  width: 100%;
}

.sponsor-recap {
  text-align: center;
}

.sponsor-logo-grid {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.8rem auto 0;
  max-width: 720px;
}

.sponsor-logo-grid a {
  align-items: center;
  display: flex;
  justify-content: center;
}

.sponsor-logo-grid img {
  margin: 0 auto;
  max-height: 48px;
  object-fit: contain;
  width: 100%;
}

.event-archive {
  background: #efe9df;
  max-width: none;
  padding-left: 4rem;
  padding-right: 4rem;
}

.archive-heading {
  text-align: left;
}

.archive-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.archive-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.archive-card {
  background: var(--refresh-paper);
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 180px;
}

.archive-card > img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.archive-card > div {
  align-self: center;
  padding: 1.5rem;
}

.archive-card h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
}

.archive-cta {
  align-items: center;
  background: var(--red);
  color: var(--white);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 3.5rem 4rem;
}

.archive-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  max-width: 650px;
}

.archive-cta-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .recent-event-section {
    grid-template-columns: 1fr;
  }

  .recent-event-image {
    min-height: 440px;
  }

  .recap-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recap-facts > div:nth-child(2) {
    border-right: 0;
  }

  .recap-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

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

  .archive-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .home-refresh-hero,
  .holding-hero {
    min-height: calc(100vh - var(--nav-height));
    padding: 1rem;
  }

  .home-refresh-card,
  .holding-card {
    padding: 2.5rem 1.25rem;
  }

  .home-refresh-tagline,
  .holding-tagline {
    font-size: 1.08rem;
  }

  .refresh-actions {
    flex-direction: column;
  }

  .connection-section,
  .event-archive {
    padding: 4rem 1rem;
  }

  .connection-grid,
  .speaker-feature-grid,
  .recap-narrative {
    grid-template-columns: 1fr;
  }

  .connection-card {
    min-height: 0;
    padding: 2rem 1.5rem;
  }

  .recent-event-image {
    min-height: 360px;
  }

  .recent-event-copy {
    padding: 3rem 1.25rem;
  }

  .about-refresh-section {
    padding: 4.5rem 1.25rem;
  }

  .archive-intro {
    padding: 4rem 1.25rem 3rem;
  }

  .recap-hero {
    min-height: 610px;
  }

  .recap-hero-overlay {
    padding: 2rem 1.25rem;
  }

  .recap-hero-overlay > p:last-child {
    font-size: 1.08rem;
  }

  .recap-section,
  .photo-story {
    padding: 3.7rem 1rem;
  }

  .speaker-feature {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 140px;
    padding: 1rem;
  }

  .speaker-feature img {
    width: 92px;
  }

  .recap-narrative {
    gap: 1.8rem;
  }

  .recap-narrative > p {
    font-size: 1.16rem;
  }

  .recap-flyer {
    justify-self: center;
    max-width: 300px;
  }

  .photo-triptych {
    gap: 0.35rem;
  }

  .sponsor-logo-grid {
    gap: 1.5rem;
  }

  .archive-card {
    grid-template-columns: 1fr;
  }

  .archive-card > img {
    aspect-ratio: 16 / 10;
  }

  .archive-cta {
    padding: 3rem 1.25rem;
  }

  .archive-cta-actions {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 460px) {
  .recap-facts strong {
    font-size: 0.82rem;
  }

  .photo-triptych {
    gap: 0.6rem;
    grid-template-columns: 1fr;
  }

  .photo-triptych img {
    aspect-ratio: 4 / 5;
  }

  .sponsor-logo-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-logo-grid img {
    max-width: 190px;
  }
}
