/*
 * Accelerate New Mexico at UNM-Valencia
 * Body-content styles only. Cascade controls the site header, navigation and footer.
 * Campaign palette follows supplied Accelerate New Mexico guidance.
 */

.anm-page,
.anm-page * {
  box-sizing: border-box;
}

.anm-page {
  --anm-cherry: #ba0c2f;
  --anm-turquoise: #007a86;
  --anm-lobo-gray: #63666a;
  --anm-silver: #a7a8aa;
  --anm-white: #ffffff;
  --anm-text: #333333;
  --anm-content-width: 1170px;

  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow-x: hidden;
  color: var(--anm-text);
  font-family: inherit;
  line-height: 1.6;
  background: var(--anm-white);
}

.anm-page img {
  max-width: 100%;
  height: auto;
}

.anm-page a {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.anm-page p {
  /* Scale from Cascade/Bootstrap's inherited body size instead of the root font size. */
  font-size: 1.1em;
}

.anm-page a:focus,
.anm-page button:focus {
  outline: 3px solid var(--anm-turquoise);
  outline-offset: 3px;
}

.anm-inner {
  width: 100%;
  max-width: var(--anm-content-width);
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.anm-page p.anm-kicker {
  margin: 0 0 12px;
  color: var(--anm-turquoise);
  font-size: 1.3em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.anm-page h1,
.anm-page h2,
.anm-page h3 {
  margin-top: 0;
  color: var(--anm-lobo-gray);
  line-height: 1.16;
}

.anm-page h1 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 700;
}

.anm-page h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 700;
}

.anm-page h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  font-weight: 700;
}

.anm-page p.anm-lead {
  max-width: 760px;
  margin: 0;
  font-size: 1.51em;
  line-height: 1.7;
}

.anm-section-intro {
  max-width: 800px;
  margin: 0 auto 42px;
  text-align: center;
}

.anm-section-intro p:last-child,
.anm-card p:last-child,
.anm-contact p:last-child {
  margin-bottom: 0;
}

/* Hero */
.anm-hero {
  border-bottom: 1px solid rgba(99, 102, 106, 0.24);
  background: var(--anm-white);
}

.anm-hero-grid {
  display: flex;
  align-items: center;
  gap: 56px;
  min-height: 590px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.anm-hero-copy,
.anm-hero-art {
  flex: 1 1 0;
}

.anm-hero-copy {
  max-width: 610px;
}

.anm-hero-copy .anm-lead {
  margin-bottom: 30px;
}

.anm-hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.anm-hero-art img {
  width: 100%;
  max-width: 620px;
}

.anm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.anm-button {
  display: inline-block;
  min-height: 46px;
  padding: 12px 22px;
  border: 2px solid var(--anm-cherry);
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.anm-button-primary {
  color: var(--anm-white);
  background: var(--anm-cherry);
}

.anm-button-primary:hover,
.anm-button-primary:focus {
  color: var(--anm-white);
  background: #8f0924;
  border-color: #8f0924;
  text-decoration: underline;
}

.anm-button-secondary {
  color: var(--anm-cherry);
  background: var(--anm-white);
}

.anm-button-secondary:hover,
.anm-button-secondary:focus {
  color: var(--anm-white);
  background: var(--anm-cherry);
  text-decoration: underline;
}

/* Campaign overview and pillars */
.anm-overview {
  padding: 78px 0 84px;
  background: rgba(167, 168, 170, 0.14);
}

.anm-pillars {
  display: flex;
  gap: 24px;
}

.anm-pillar {
  flex: 1 1 0;
  padding: 30px;
  border-top: 6px solid var(--anm-turquoise);
  background: var(--anm-white);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
  text-align: center;
}

.anm-pillar-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.anm-pillar h3 {
  color: var(--anm-turquoise);
}

/* Local impact stories */
.anm-impact {
  padding: 84px 0 90px;
}

.anm-story-grid {
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.anm-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 106, 0.28);
  background: var(--anm-white);
}

.anm-story-photo {
  width: 100%;
  min-height: 235px;
  background: rgba(167, 168, 170, 0.22);
}

.anm-card img.anm-story-photo {
  display: block;
  height: 235px;
  object-fit: cover;
  object-position: center;
}

.anm-photo-placeholder {
  position: relative;
}

.anm-photo-placeholder::before,
.anm-photo-placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76%;
  height: 1px;
  background: rgba(99, 102, 106, 0.22);
  transform-origin: center;
}

.anm-photo-placeholder::before {
  transform: translate(-50%, -50%) rotate(22deg);
}

.anm-photo-placeholder::after {
  transform: translate(-50%, -50%) rotate(-22deg);
}

.anm-card-body {
  padding: 28px 28px 30px;
}

.anm-card h3 {
  color: var(--anm-cherry);
}

.anm-card-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--anm-turquoise);
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Local proof points */
.anm-proof {
  padding: 70px 0;
  color: var(--anm-white);
  background: var(--anm-lobo-gray);
}

.anm-proof h2,
.anm-proof p {
  color: var(--anm-white);
}

.anm-page .anm-proof p.anm-kicker {
  color: var(--anm-white);
}

.anm-proof .anm-section-intro {
  margin-bottom: 34px;
}

.anm-stat-grid {
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.anm-stat {
  flex: 1 1 0;
  padding: 22px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.36);
  text-align: center;
}

.anm-stat:first-child {
  border-left: 0;
}

.anm-stat-number {
  display: block;
  margin-bottom: 4px;
  color: var(--anm-white);
  font-size: clamp(2.57em, 4vw, 4em);
  font-weight: 700;
  line-height: 1;
}

.anm-stat-label {
  display: block;
  max-width: 220px;
  margin: 0 auto;
  font-size: 1.32em;
  line-height: 1.45;
}

/* Forward-looking and CTA */
.anm-next {
  padding: 84px 0;
  background: var(--anm-white);
}

.anm-next-grid {
  display: flex;
  align-items: center;
  gap: 60px;
}

.anm-next-copy {
  flex: 1 1 58%;
}

.anm-next-art {
  flex: 1 1 42%;
  text-align: center;
}

.anm-next-art img {
  width: 100%;
  max-width: 500px;
}

.anm-final-cta {
  position: relative;
  min-height: 520px;
  padding: 72px 0;
  overflow: hidden;
  border-top: 1px solid rgba(99, 102, 106, 0.22);
  background: rgba(167, 168, 170, 0.14);
}

.anm-final-accent {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(120px, 18vw, 260px);
  pointer-events: none;
}

.anm-final-accent img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.anm-cta-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  padding-left: clamp(150px, 20vw, 285px);
}

.anm-cta-brand {
  margin-bottom: 26px;
}

.anm-cta-brand img {
  width: 100%;
  max-width: 720px;
}

.anm-contact {
  width: 100%;
  max-width: 780px;
  padding: 0;
  border-left: 0;
  background: transparent;
}

.anm-contact h2 {
  margin-bottom: 14px;
  font-size: 1.8rem;
}

.anm-contact-name {
  margin-bottom: 4px;
  color: var(--anm-cherry);
  font-weight: 700;
}

.anm-contact a {
  color: var(--anm-cherry);
  font-weight: 700;
}

.anm-contact a:hover,
.anm-contact a:focus {
  color: #8f0924;
}

.anm-page p.anm-note {
  margin-top: 18px;
  color: var(--anm-lobo-gray);
  font-size: 1.23em;
}

@media (max-width: 991px) {
  .anm-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .anm-hero-grid,
  .anm-next-grid {
    gap: 34px;
  }

  .anm-hero-grid {
    min-height: 0;
  }

  .anm-pillars,
  .anm-story-grid {
    flex-wrap: wrap;
  }

  .anm-pillar,
  .anm-card {
    flex-basis: calc(50% - 12px);
  }

  .anm-stat-grid {
    flex-wrap: wrap;
  }

  .anm-stat {
    flex-basis: calc(50% - 9px);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .anm-stat:nth-child(-n+2) {
    border-top: 0;
  }
}

@media (max-width: 767px) {
  .anm-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .anm-hero-grid,
  .anm-next-grid {
    display: block;
  }

  .anm-hero-grid {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .anm-hero-art,
  .anm-next-art {
    margin-top: 36px;
  }

  .anm-overview,
  .anm-impact,
  .anm-next {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .anm-pillars,
  .anm-story-grid {
    display: block;
  }

  .anm-pillar,
  .anm-card {
    margin-bottom: 22px;
  }

  .anm-pillar:last-child,
  .anm-card:last-child {
    margin-bottom: 0;
  }

  .anm-story-photo {
    min-height: 210px;
  }

  .anm-stat-grid {
    display: block;
  }

  .anm-stat,
  .anm-stat:nth-child(-n+2) {
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }

  .anm-stat:first-child {
    border-top: 0;
  }

  .anm-final-cta {
    padding-top: 58px;
    padding-bottom: 60px;
    min-height: 0;
  }

  .anm-final-accent {
    width: 110px;
    opacity: 0.72;
  }

  .anm-cta-grid {
    display: block;
    padding-left: 118px;
  }

  .anm-cta-brand {
    margin-bottom: 22px;
  }

  .anm-contact {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .anm-final-accent {
    width: 82px;
    opacity: 0.34;
  }

  .anm-cta-grid {
    padding-left: 20px;
  }

  .anm-actions {
    display: block;
  }

  .anm-button {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    text-align: center;
  }

  .anm-button:last-child {
    margin-bottom: 0;
  }

  .anm-card-body,
  .anm-pillar,
  .anm-contact {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anm-button {
    transition: none;
  }
}