:root {
  --fcc-red: #c62832;
  --fcc-red-dark: #a51f28;
  --fcc-ink: #25282b;
  --fcc-muted: #66707a;
  --fcc-surface: #f7f6f4;
  --fcc-border: #e5e1dc;
  --fcc-radius: 0.75rem;
  --fcc-shadow: 0 0.75rem 2rem rgba(25, 28, 31, 0.08);
}

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--fcc-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: #fff;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--fcc-ink);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h2,
.h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--fcc-red-dark);
}

a:hover {
  color: var(--fcc-red);
}

.site-navbar {
  padding-block: 0.75rem !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 0 rgba(20, 23, 26, 0.06);
}

.site-navbar .navbar-brand {
  padding-block: 0;
}

.site-logo {
  display: block;
  width: 112px;
  height: auto;
}

.site-navbar .navbar-nav {
  gap: 0.15rem;
}

.site-navbar .nav-link {
  position: relative;
  padding: 0.55rem 0.7rem !important;
  color: #3f454b;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--fcc-red-dark);
}

.site-navbar .nav-link.active::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.25rem;
  left: 0.7rem;
  height: 2px;
  content: "";
  background: var(--fcc-red);
}

.navbar-toggler {
  border-color: var(--fcc-border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 50, 0.15);
}

.btn {
  border-radius: 0.5rem;
  font-weight: 650;
}

.btn-danger {
  --bs-btn-bg: var(--fcc-red);
  --bs-btn-border-color: var(--fcc-red);
  --bs-btn-hover-bg: var(--fcc-red-dark);
  --bs-btn-hover-border-color: var(--fcc-red-dark);
  --bs-btn-active-bg: var(--fcc-red-dark);
  --bs-btn-active-border-color: var(--fcc-red-dark);
  --bs-btn-focus-shadow-rgb: 198, 40, 50;
}

.card,
.contact-form form {
  border: 1px solid var(--fcc-border) !important;
  border-radius: var(--fcc-radius) !important;
  background: #fff;
  box-shadow: var(--fcc-shadow) !important;
}

.card-title {
  margin-bottom: 0.65rem;
}

.card-title h5,
h5.card-title {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.page-heading {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
  background: var(--fcc-surface);
  border-bottom: 1px solid var(--fcc-border);
}

.page-heading .container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-heading p {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: var(--fcc-muted) !important;
  font-size: 1.075rem !important;
}

.site-footer {
  padding-block: 1.5rem !important;
  background: #24272a !important;
}

.site-footer .nav-link {
  padding: 0.4rem 0.65rem;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.9rem;
}

.site-footer .nav-link:hover {
  color: #fff !important;
}

/* Home */
.hero-section {
  position: relative;
  min-height: min(70vh, 680px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-section::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-section::after {
  z-index: -1;
  content: "";
  background: rgba(14, 17, 19, 0.34);
}

.hero-message {
  background: rgba(24, 27, 30, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fcc-radius) !important;
  box-shadow: var(--fcc-shadow) !important;
}

.hero-message h1 {
  color: #fff;
}

.hero-message p {
  font-size: clamp(1.05rem, 2vw, 1.25rem) !important;
}

.hero-section .btn {
  font-size: 1.125rem !important;
}

.social-link {
  color: #fff;
  line-height: 1;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.social-link:hover {
  color: #fff;
  opacity: 1;
}

#orgNotice h2 {
  margin: 0;
  color: #ff6b72;
  font-size: 1.25rem;
}

.events {
  padding-block: clamp(3.5rem, 7vw, 5rem) !important;
  background: var(--fcc-surface) !important;
}

.events .card {
  max-width: 1000px;
  margin-inline: auto;
  padding: 0.35rem !important;
}

#homeCarousel {
  height: min(500px, 58vw);
  min-height: 300px;
}

#homeCarousel .carousel-inner,
#homeCarousel .carousel-item {
  height: 100%;
}

#homeCarousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Interior pages */
.page-about .about,
.page-staff .bios,
.page-contact .contact-form,
.page-contact .contact-details,
.page-connect .event-sections,
.page-calendars .calendar-content,
.page-small-groups .info,
.page-small-groups .small-groups-content {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.page-about .about {
  max-width: 900px;
  margin-inline: auto;
}

.page-about .about .card {
  padding: 0.75rem !important;
  text-align: left;
}

.page-about .about .card-text {
  color: var(--fcc-muted);
}

.page-staff .bios {
  background: var(--fcc-surface);
}

.page-staff .staff-card {
  max-width: 1040px;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  padding: 1.25rem !important;
}

.page-staff .staff-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 0.5rem !important;
}

.page-staff .card-title {
  font-size: 1.5rem;
}

.page-staff .staff-card .card-text {
  font-size: 1rem !important;
}

.page-staff .staff-card .card-body > p:first-of-type {
  margin-bottom: 0.25rem;
  color: var(--fcc-red-dark);
  font-weight: 650;
}

.page-connect .event-sections {
  padding-top: 2rem;
}

.event-heading {
  margin-top: 2.5rem !important;
  margin-bottom: 1.25rem !important;
  padding: 0.85rem 0 !important;
  background: transparent !important;
  border-bottom: 2px solid var(--fcc-red);
}

.event-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.event-grid img,
.page-calendars .calendar-content img,
.page-small-groups .small-groups-content img {
  border: 1px solid var(--fcc-border);
  border-radius: var(--fcc-radius) !important;
  box-shadow: var(--fcc-shadow) !important;
}

.page-calendars .calendar-content > .container {
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

.small-groups-hero {
  display: block;
  width: min(100%, 760px);
  max-height: 680px;
  margin: 2.5rem auto;
  object-fit: cover;
  border-radius: var(--fcc-radius);
}

.page-small-groups .info {
  background: var(--fcc-surface);
}

.page-small-groups .info .row {
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.page-small-groups .info .card {
  max-width: 760px;
  padding: 1.25rem !important;
}

.page-small-groups .info h3 {
  font-size: 1.3rem;
}

.page-small-groups .info .card-text p {
  font-size: 1rem !important;
}

.page-small-groups .small-groups {
  padding-top: 4rem;
}

.page-small-groups .small-groups-content {
  padding-top: 1.5rem;
}

.page-small-groups .small-groups-content .row {
  margin-block: 0 !important;
}

.page-contact .give-online {
  padding-block: 3.5rem 2rem;
  text-align: center;
  background: var(--fcc-surface);
  border-bottom: 1px solid var(--fcc-border);
}

.page-contact .give-online .row:first-child {
  margin-top: 0 !important;
}

.page-contact .give-online .row:last-child {
  margin-bottom: 0 !important;
}

.page-contact .contact-form form {
  max-width: 680px;
  margin: 0 !important;
  padding: clamp(1.5rem, 4vw, 2.5rem) !important;
}

.contact-form label {
  margin-bottom: 0.4rem;
  font-size: 1rem !important;
  font-weight: 600;
}

.form-control {
  min-height: 2.75rem;
  border-color: #cdc8c2;
  border-radius: 0.45rem;
}

textarea.form-control {
  min-height: 140px;
}

.form-control:focus {
  border-color: var(--fcc-red);
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 50, 0.13);
}

.page-contact .contact-details {
  padding-top: 1rem;
}

.page-contact .contact-details .card {
  height: 100%;
  box-shadow: none !important;
}

.page-contact .contact-details .card-text {
  font-size: 1rem !important;
}

@media (max-width: 991.98px) {
  .site-logo {
    width: 88px;
  }

  .site-navbar .navbar-collapse {
    padding-top: 0.75rem;
  }

  .site-navbar .nav-link {
    padding-inline: 0 !important;
  }

  .site-navbar .nav-link.active::after {
    right: auto;
    left: 0;
    width: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 620px;
  }

  #homeCarousel {
    height: 330px;
    min-height: 0;
  }

  .page-staff .staff-card {
    padding: 0.75rem !important;
  }

  .page-staff .card-body {
    padding: 1.25rem 0.5rem 0.5rem;
  }
}

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