/*
  Kentucky Habitat for Humanity static migration.
  Custom styles sit on top of Bootstrap 5.3.
*/

:root {
  --site-blue: #1c5798;
  --site-blue-dark: #174a82;
  --site-blue-footer: #29589b;
  --site-green: #51b948;
  --site-green-dark: #479d40;
  --site-ink: #252525;
  --site-muted: #5e6671;
  --site-surface: #f4f7fb;
  --site-border: #d8e1ea;
  --site-section-padding: clamp(3.5rem, 7vw, 5.75rem);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--site-ink);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--site-blue);
}

a:hover {
  color: var(--site-blue-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 3px solid rgba(81, 185, 72, 0.5);
  outline-offset: 3px;
  box-shadow: none;
}

h1,
h2,
h3,
.navbar {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.12;
}

.site-header {
  background: var(--site-blue);
  min-height: 120px;
}

.site-header .navbar {
  min-height: 120px;
  padding: 0;
}

.site-logo img {
  height: 70px;
  width: 210px;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

.navbar-nav {
  gap: clamp(0.85rem, 2.2vw, 2rem);
}

.navbar .nav-link {
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.75rem 0;
}

.navbar button.nav-link {
  background: transparent;
  border: 0;
  font: inherit;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.navbar .dropdown-menu {
  border: 0;
  border-radius: 0;
  box-shadow: 0 16px 28px rgba(12, 29, 55, 0.14);
  font-size: 1rem;
  margin-top: 1.25rem;
  min-width: 15rem;
  padding: 1rem 0;
}

.navbar .dropdown-item {
  color: #1f2630;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.58rem 1.25rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: #f4f7fb;
  color: var(--site-blue);
}

.donate-nav-item {
  margin-left: clamp(0.4rem, 2vw, 1.6rem);
}

.btn-donate {
  --bs-btn-bg: var(--site-green);
  --bs-btn-border-color: var(--site-green);
  --bs-btn-color: #ffffff;
  --bs-btn-hover-bg: var(--site-green-dark);
  --bs-btn-hover-border-color: var(--site-green-dark);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: var(--site-green-dark);
  --bs-btn-active-border-color: var(--site-green-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.68rem 1.65rem;
  text-transform: uppercase;
}

.hero-slider,
.carousel-item {
  background: #111;
}

.carousel-item {
  min-height: clamp(440px, 58vw, 650px);
}

.carousel-item picture,
.carousel-item img {
  display: block;
  height: clamp(440px, 58vw, 650px);
  width: 100%;
}

.carousel-item img {
  object-fit: cover;
}

.carousel-item::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-caption {
  background: rgba(0, 0, 0, 0.72);
  bottom: 0;
  color: #ffffff;
  left: 0;
  padding: clamp(1.15rem, 2.5vw, 1.85rem) 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.hero-caption .container-xxl {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-caption h1,
.hero-caption h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  margin: 0;
}

.hero-caption p {
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  margin: 0 0 0.6rem;
}

.hero-progress {
  background: #ffffff;
  display: flex;
  justify-content: center;
  padding: 0.95rem 1rem 1.05rem;
}

.hero-progress .carousel-indicators {
  gap: 0.45rem;
  margin: 0;
  position: static;
}

.hero-progress .carousel-indicators [data-bs-target] {
  background-color: var(--site-blue);
  border: 0;
  border-radius: 999px;
  height: 7px;
  opacity: 0.38;
  width: 42px;
}

.hero-progress .carousel-indicators .active {
  background-color: var(--site-green);
  opacity: 1;
}

.site-section {
  padding: var(--site-section-padding) 0;
}

.content-flow > * + * {
  margin-top: 1.1rem;
}

.content-narrow {
  max-width: 900px;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 760px;
}

.section-kicker {
  color: var(--site-blue);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.intro-section {
  background: #ffffff;
}

.intro-section h2,
.mission-section h2 {
  color: #0c1d37;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.leadership-update {
  max-width: 1120px;
}

.leadership-update h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.leadership-figure {
  float: right;
  margin: 0.25rem 0 1.25rem clamp(1.5rem, 4vw, 2.75rem);
  max-width: 300px;
}

.leadership-figure picture,
.leadership-figure img {
  display: block;
}

.leadership-figure img {
  border: 1px solid var(--site-border);
  height: auto;
  width: 100%;
}

.leadership-figure figcaption {
  color: #0c1d37;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
  margin-top: 0.75rem;
  text-align: center;
}

.leadership-figure figcaption strong,
.leadership-figure figcaption span,
.leadership-figure figcaption a {
  display: block;
}

.leadership-figure figcaption strong {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.leadership-figure figcaption span {
  color: var(--site-muted);
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.leadership-figure figcaption a {
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.leadership-figure figcaption a + a {
  margin-top: 0.35rem;
}

.leader-card {
  background: #ffffff;
  border: 1px solid var(--site-border);
  box-shadow: 0 20px 40px rgba(12, 29, 55, 0.1);
  overflow: hidden;
}

.leader-card > picture,
.leader-card > picture > img {
  display: block;
  width: 100%;
}

.leader-card > picture > img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.leader-card-body {
  padding: 1.5rem;
}

.leader-card-body .signature {
  height: auto;
  margin-bottom: 0.5rem;
  width: 67px;
}

.leader-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.15rem;
}

.leader-card p {
  color: var(--site-muted);
  margin-bottom: 0.75rem;
}

.leader-card a {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mission-section {
  background: #ffffff;
}

.mission-copy {
  color: #424c5c;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
}

.volunteer-callout {
  background: #151515;
  color: #ffffff;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.volunteer-callout picture,
.volunteer-callout img {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.volunteer-callout img {
  object-fit: cover;
}

.volunteer-callout::after {
  background: rgba(0, 0, 0, 0.55);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.volunteer-callout-copy {
  align-items: center;
  display: flex;
  min-height: 520px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.volunteer-callout-copy p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.volunteer-callout-button {
  background: var(--site-green);
  color: #ffffff;
  display: block;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 1.45rem 1.25rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 2;
}

.volunteer-callout-button:hover,
.volunteer-callout-button:focus {
  background: var(--site-green-dark);
  color: #ffffff;
}

.compact-section {
  background: var(--site-blue);
  color: #ffffff;
  padding-bottom: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(2.75rem, 5vw, 4rem);
}

.compact-section h2,
.compact-section p {
  color: #ffffff;
}

.veterans-video {
  margin: 2rem auto 0;
  max-width: 1100px;
  text-align: left;
}

.veterans-video .youtube-embed__fallback {
  text-align: center;
}

.veterans-video .youtube-embed__fallback a {
  color: #ffffff;
}

.values-section {
  background: #f7f7f7;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  padding-top: clamp(4rem, 8vw, 6.5rem);
}

.value-card {
  border: 0;
  padding: 0 clamp(0.5rem, 2vw, 1.75rem);
  text-align: center;
}

.value-card img {
  background: var(--site-blue);
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(12, 29, 55, 0.12);
  height: 64px;
  margin: 0 auto 1.75rem;
  padding: 12px;
  width: 64px;
}

.value-card h2 {
  color: #23314a;
  font-size: clamp(2rem, 3.2vw, 2.55rem);
  margin-bottom: 1.2rem;
}

.value-card p {
  color: #15233b;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0;
}

.interior-page {
  background: #ffffff;
}

.interior-hero {
  background: #ffffff;
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(1.75rem, 4vw, 2.75rem);
}

.interior-hero h1 {
  color: #15233b;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 0;
}

.timeline-section {
  background: #ffffff;
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.history-timeline {
  display: grid;
  gap: clamp(2rem, 4vw, 3.75rem);
  margin: 0;
  position: relative;
}

.history-timeline::before {
  background: linear-gradient(180deg, rgba(28, 87, 152, 0.16), rgba(28, 87, 152, 0.42), rgba(28, 87, 152, 0.16));
  bottom: 0;
  content: "";
  left: 72px;
  position: absolute;
  top: 0;
  width: 3px;
}

.timeline-item {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  grid-template-columns: 150px minmax(0, 1fr);
  position: relative;
}

.timeline-year {
  align-items: center;
  background: #ffffff;
  border: 3px solid var(--site-green);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(12, 29, 55, 0.08);
  color: var(--site-blue);
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  height: 112px;
  justify-content: center;
  line-height: 1;
  position: sticky;
  top: 1rem;
  width: 112px;
  z-index: 1;
}

.timeline-content {
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-left: 6px solid var(--site-blue);
  box-shadow: 0 18px 45px rgba(12, 29, 55, 0.07);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.timeline-event + .timeline-event {
  border-top: 1px solid var(--site-border);
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

.timeline-event h2 {
  color: #253247;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 0.65rem;
}

.timeline-event p {
  color: #424c5c;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.55;
  margin-bottom: 0;
}

.people-section {
  background: #ffffff;
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.people-section + .people-section {
  padding-top: 0;
}

.people-heading {
  border-bottom: 3px solid var(--site-green);
  color: #15233b;
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 0.45rem;
}

.people-grid {
  row-gap: 1.5rem;
}

.person-card {
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-top: 6px solid var(--site-blue);
  box-shadow: 0 16px 40px rgba(12, 29, 55, 0.07);
  height: 100%;
  padding: clamp(1.2rem, 2.5vw, 1.65rem);
}

.person-card h2 {
  color: #253247;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  margin-bottom: 0.65rem;
}

.person-role {
  color: var(--site-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.person-location,
.person-card a {
  color: #424c5c;
  font-weight: 700;
  margin-bottom: 0;
}

.person-card a {
  overflow-wrap: anywhere;
}

.staff-grid .person-card {
  border-top-color: var(--site-green);
}

.content-section {
  background: #ffffff;
  padding: 0 0 clamp(4rem, 8vw, 6.5rem);
}

.split-service-section {
  background: #ffffff;
  padding: 0;
}

.split-service-copy {
  align-items: center;
  display: flex;
  min-height: clamp(520px, 48vw, 640px);
  padding: clamp(3rem, 7vw, 5.75rem) clamp(1.5rem, 7vw, 5.5rem);
}

.split-service-copy .content-panel {
  max-width: 560px;
}

.split-service-media {
  min-height: clamp(520px, 48vw, 640px);
}

.split-service-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.content-panel {
  max-width: 980px;
}

.content-panel h2 {
  color: #253247;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 1rem;
}

.content-panel p {
  color: #424c5c;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.62;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.callout-panel {
  background: var(--site-surface);
  border-left: 6px solid var(--site-green);
  box-shadow: 0 16px 40px rgba(12, 29, 55, 0.06);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.callout-panel h2 {
  color: #15233b;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--site-border);
  border-left: 6px solid var(--site-blue);
  box-shadow: 0 16px 40px rgba(12, 29, 55, 0.06);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-card h2 {
  color: #253247;
}

.feature-card p:last-child,
.feature-card ul:last-child {
  margin-bottom: 0;
}

.feature-image {
  border: 1px solid var(--site-border);
  display: block;
  height: auto;
  width: 100%;
}

.recovery-intro {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.recovery-intro-copy {
  max-width: 760px;
}

.recovery-intro-image {
  border: 0;
  max-height: 560px;
  object-fit: cover;
}

.recovery-stories {
  margin-top: 0;
}

.recovery-stories .feature-card {
  max-width: none;
}

.quiet-info-panel {
  background: #eef6ff;
  color: #253247;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.quiet-info-panel h2 {
  color: #15233b;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin-bottom: 0.65rem;
}

.quiet-info-panel p {
  color: #424c5c;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.55;
  margin-bottom: 0;
}

.content-panel ul {
  color: #424c5c;
  font-weight: 650;
  line-height: 1.62;
}

.innovative-main {
  padding-top: 0;
}

.innovative-main .content-panel {
  max-width: 1120px;
}

.innovative-main .content-panel h2 {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.innovative-main .content-panel h2:first-child {
  margin-top: 0;
}

.innovative-band {
  background: var(--site-blue-footer);
  color: #ffffff;
  padding: 0;
}

.innovative-band-copy {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 2.75rem);
}

.innovative-band-copy p,
.innovative-band-copy li {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.innovative-band-copy ul {
  margin-bottom: 0;
}

.innovative-band-media {
  display: block;
  height: 100%;
  min-height: 420px;
}

.innovative-band-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.logo-strip {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.logo-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--site-border);
  display: flex;
  justify-content: center;
  min-height: 130px;
  padding: 1.5rem;
}

.logo-card img {
  height: auto;
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: clamp(5rem, 8vw, 6.75rem) 0;
}

.site-footer .container {
  background: none;
}

.footer-logo {
  height: 70px;
  margin-bottom: 0.75rem;
  width: 210px;
}

.footer-about p,
.footer-contact address {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 0;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-heading {
  color: #ffffff;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.back-to-top {
  bottom: 1rem;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(0.5rem);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 1030;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.skip-link {
  background: #ffffff;
  border: 2px solid var(--site-green);
  color: var(--site-ink);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: absolute;
  top: 1rem;
  transform: translateY(-150%);
  transition: transform 160ms ease;
  z-index: 2000;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .site-header,
  .site-header .navbar {
    min-height: 96px;
  }

  .site-logo img,
  .footer-logo {
    height: 56px;
    width: 168px;
  }

  .navbar-collapse {
    padding: 1rem 0 1.35rem;
  }

  .navbar-nav {
    align-items: flex-start !important;
    gap: 0.35rem;
  }

  .navbar .nav-link {
    padding: 0.4rem 0;
  }

  .navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0 0.45rem 1rem;
  }

  .navbar .dropdown-item {
    color: #ffffff;
    padding: 0.45rem 0.25rem;
  }

  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus {
    background: transparent;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.3em;
  }

  .donate-nav-item {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero-caption .container-xxl {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .leadership-figure {
    float: none;
    margin: 0 0 1.5rem;
  }

  .volunteer-callout {
    min-height: 520px;
  }

  .volunteer-callout-copy {
    min-height: 420px;
  }

  .history-timeline::before {
    left: 28px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 4.25rem;
  }

  .timeline-year {
    font-size: 1rem;
    height: 56px;
    left: 0;
    position: absolute;
    top: 0;
    width: 56px;
  }

  .timeline-content {
    border-left-width: 4px;
  }
}

@media (max-width: 575.98px) {
  body {
    font-size: 1rem;
  }

  .carousel-item,
  .carousel-item picture,
  .carousel-item img {
    height: 520px;
  }

  .btn-donate {
    white-space: normal;
  }
}
