:root {
  --cv-blue: #0f628f;
  --cv-blue-dark: #082f4a;
  --cv-navy: #061827;
  --cv-sky: #e8f3f9;
  --gold: #d8b43d;
  --cream: #f7f4ee;
  --ink: #18232d;
  --muted: #5d6872;
  --white: #ffffff;
  --border: #dbe3e8;
  --max: 1180px;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(6, 24, 39, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: #fff;
  color: #111;
  padding: .75rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6,24,39,.97);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 152px;
  height: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.35);
  background: transparent;
  color: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.88);
  font-size: .94rem;
  font-weight: 800;
  padding: 10px 11px;
  border-radius: 9px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,.12);
  outline: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--cv-navy); color: #fff; }
.section-blue { background: linear-gradient(135deg, var(--cv-blue-dark), var(--cv-blue)); color: #fff; }
.section-white { background: #fff; }

.kicker {
  margin: 0 0 8px;
  color: var(--cv-blue);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 900;
}
.section-dark .kicker,
.section-blue .kicker { color: #f0d978; }

h1, h2, h3 {
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  letter-spacing: -.045em;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -.035em;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p { margin: 0 0 18px; }

.lead {
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.muted { color: var(--muted); }
.section-dark .muted, .section-blue .muted { color: rgba(255,255,255,.75); }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--cv-blue);
  color: #fff;
  border: 2px solid var(--cv-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .045em;
  font-size: .86rem;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover, .button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(0,0,0,.16);
  outline: none;
}

.button.light {
  background: #fff;
  color: var(--cv-navy);
  border-color: #fff;
}

.button.outline {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}

/* Carousel */
.carousel {
  position: relative;
  background: var(--cv-navy);
  overflow: hidden;
}

.carousel-viewport {
  position: relative;
  height: clamp(240px, 52vw, 580px);
  max-height: 580px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 18px;
}

.slide img {
  width: auto;
  height: auto;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 48px);
  object-fit: contain;
  object-position: center;
}






.carousel-controls {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.carousel-button {
  pointer-events: auto;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.carousel-dots {
  position: absolute;
  z-index: 6;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.carousel-dot.active { background: #fff; }

/* Grids and cards */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.align-center { align-items: center; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(6,24,39,.08);
  height: 100%;
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dce6ec;
}
.card-image.wide { aspect-ratio: 16 / 9; }

.card-image img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  object-position: center;
  background: var(--cv-navy);
}

.card-body { padding: 24px; }
.card-body p:last-child { margin-bottom: 0; }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.meta-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--cv-sky);
  color: var(--cv-blue-dark);
  font-size: .78rem;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 42px;
  align-items: center;
}

.feature-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.feature-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
}

.notice {
  border-left: 5px solid var(--gold);
  background: #fff;
  padding: 20px 22px;
  box-shadow: 0 6px 24px rgba(6,24,39,.08);
  border-radius: 0 12px 12px 0;
}

.section-dark .notice,
.section-blue .notice {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-left: 5px solid var(--gold);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.fact {
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 18px;
  border: 1px solid var(--border);
}

.section-dark .fact,
.section-blue .fact {
  background: rgba(255,255,255,.09);
  color: #fff;
  border-color: rgba(255,255,255,.15);
}

.fact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
  color: var(--cv-blue);
  margin-bottom: 4px;
}
.section-dark .fact-label,
.section-blue .fact-label { color: #f0d978; }
.fact-value { font-weight: 900; }

.page-hero {
  background: var(--cv-navy);
  color: #fff;
  padding: 28px 0 46px;
}

.page-hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(980px, 100%);
  margin-inline: auto;
  padding: 14px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: #000;
}

.page-hero-image img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 680px;
  object-fit: contain;
  object-position: center;
}

.page-hero-copy { padding-top: 32px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4/3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-list {
  margin: 0;
  padding-left: 1.25rem;
}
.text-list li { margin-bottom: 9px; }

.cta-panel {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--cv-blue-dark), var(--cv-blue));
  color: #fff;
  padding: 42px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: #03111d;
  color: rgba(255,255,255,.76);
  padding: 44px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  width: 170px;
  margin-bottom: 15px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer a {
  color: rgba(255,255,255,.86);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 7px; }

.copyright {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 30px;
  padding-top: 20px;
  font-size: .9rem;
}

/* ARISE page shared navigation helper */
.arise-shell {
  background: #041020;
}



/* GroupMe connection tools */
.site-nav .nav-join {
  margin-left: 7px;
  background: var(--gold);
  color: var(--cv-navy);
  border: 1px solid var(--gold);
}

.site-nav .nav-join:hover,
.site-nav .nav-join:focus-visible {
  background: #f0d978;
  color: var(--cv-navy);
}

.groupme-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 38px;
  align-items: center;
}

.groupme-qr {
  display: block;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--cv-navy);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.groupme-qr:hover,
.groupme-qr:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28);
  outline: 3px solid #f0d978;
  outline-offset: 3px;
}

.groupme-qr img {
  width: 188px;
  max-width: 100%;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.groupme-qr span {
  display: block;
  font-weight: 900;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #061827;
    padding: 10px 18px 18px;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-join { margin-left: 0; margin-top: 5px; text-align: center; }

  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 54px 0; }
  .brand img { width: 130px; }
  .carousel-viewport { height: clamp(240px, 72vw, 340px); }
  .slide a { padding: 10px; }
  .slide img {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }
  .card-image img { padding: 8px; }
  .feature-image { padding: 8px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 28px 22px; }
  .groupme-cta { grid-template-columns: 1fr; gap: 26px; }
  .groupme-qr { width: min(220px, 100%); justify-self: center; }
  .page-hero { padding-top: 18px; }
}

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


/* Recent event photo collections */
.recent-event-list {
  display: grid;
  gap: 28px;
  margin-top: 34px;
}

.recent-event-group {
  display: grid;
  grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
}

.recent-event-group.feature {
  background: linear-gradient(135deg, var(--cv-blue-dark), var(--cv-blue));
  color: #fff;
  border-color: transparent;
}

.recent-event-copy p:last-child { margin-bottom: 0; }

.event-year {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cv-blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.recent-event-group.feature .event-year { color: #f0d978; }

.recent-photo-grid {
  display: grid;
  gap: 12px;
}
.recent-photo-grid.one { grid-template-columns: 1fr; }
.recent-photo-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recent-photo-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.recent-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #dce6ec;
  box-shadow: 0 7px 20px rgba(6,24,39,.12);
}

.recent-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.recent-photo-grid.one img {
  aspect-ratio: 16 / 7;
  object-fit: contain;
  background: #fff;
}

.gallery figure {
  aspect-ratio: auto;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(6,24,39,.08);
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  padding: 10px 12px;
  color: var(--cv-blue-dark);
  font-size: .86rem;
  font-weight: 900;
  text-align: center;
}

.button-row.compact { margin-top: 18px; }
.button-row.compact .button { padding-inline: 15px; font-size: .78rem; }

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

@media (max-width: 640px) {
  .recent-photo-grid.two,
  .recent-photo-grid.three { grid-template-columns: 1fr; }
  .recent-event-group { padding: 18px; }
  .recent-photo-grid.one img { aspect-ratio: 4 / 3; }
}

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

.gallery-subheading {
  margin-top: 46px;
}

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


/* Embedded CV Men calendar */
.calendar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.calendar-heading > div {
  max-width: 760px;
}

.calendar-heading .lead {
  margin-bottom: 0;
}

.calendar-frame {
  width: 100%;
  min-height: 720px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.calendar-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

@media (max-width: 760px) {
  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-frame,
  .calendar-frame iframe {
    min-height: 620px;
    height: 620px;
  }
}


/* Temporary Ogden Elementary service-project promotion */
.event-alert {
  position: relative;
  color: #fff;
  overflow: hidden;
  border-bottom: 4px solid #f3c969;
}

.event-alert-service {
  background:
    radial-gradient(circle at 84% 15%, rgba(255,255,255,.16), transparent 28%),
    linear-gradient(120deg, #7f2f18 0%, #b94e20 45%, #d47a18 100%);
}

.event-alert-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: 26px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.event-alert-copy h2 {
  margin-bottom: 7px;
  font-size: clamp(1.75rem, 3.3vw, 2.8rem);
  letter-spacing: -.025em;
}

.event-alert-copy p { margin-bottom: 8px; }

.event-alert-label,
.card-eyebrow {
  margin: 0 0 5px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.event-alert-label { color: #ffe7a3; }
.event-alert-meta { font-size: 1.03rem; }

.event-alert-buttons {
  margin-top: 14px;
}

.event-alert .button {
  min-height: 42px;
  padding: 9px 17px;
}

.event-alert .event-alert-signup {
  background: #ffe4a0;
  border-color: #ffe4a0;
  color: #5b220e;
}

.event-alert-image {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 28px rgba(31,10,3,.28);
  background: rgba(255,255,255,.12);
}

.event-alert-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.featured-service-card {
  border-color: #d77a32;
  box-shadow: 0 12px 32px rgba(127,47,24,.16);
}

.featured-service-card .card-eyebrow {
  color: #a2401f;
}

.service-project-hero .feature-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.service-note {
  color: var(--muted);
  font-size: .88rem;
  margin-top: 10px;
}

@media (max-width: 760px) {
  .event-alert-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-alert-image {
    width: min(100%, 430px);
  }
}

/* Contact page */
.contact-logo-panel {
  background: linear-gradient(135deg, var(--cv-blue-dark), var(--cv-blue));
  padding: clamp(28px, 5vw, 58px);
}

.contact-logo-panel img {
  object-fit: contain;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, .65fr);
  gap: 34px;
  align-items: start;
}

.contact-form {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(6,24,39,.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--cv-navy);
  font-size: .92rem;
  font-weight: 900;
}

.form-field .optional {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #b8c5ce;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cv-blue);
  outline: 3px solid rgba(15,98,143,.18);
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
}

.form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form button.button {
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.contact-sidebar {
  display: grid;
  gap: 20px;
}

.text-link {
  color: var(--cv-blue);
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
