/* Home page refresh. Dark ground, orange and gold. Loaded after style.min.css. */

.canada-lockup {
  color: #f0a030;
  letter-spacing: 0.42em;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 -0.42em 0 0;
  padding: 0;
}

#mainNav .navbar-brand {
  font-size: 1.35rem;
  line-height: 1.1;
}

#mainNav .nav-link {
  letter-spacing: 0.08em;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: #f0a030;
}

#mainNav .nav-link.active,
#mainNav .nav-link.active:hover {
  color: #f0a030;
  background-color: transparent;
  box-shadow: inset 0 -2px 0 #f0a030;
}

@media (min-width: 768px) {
  #mainNav .navbar-brand {
    font-size: 1.7rem;
  }

  .canada-lockup {
    letter-spacing: 0.62em;
    margin-right: -0.62em;
  }
}

@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: #0e0e0e;
    margin-top: 0.75rem;
    padding: 0.35rem 1rem 0.85rem;
    border: 1px solid rgba(240, 160, 48, 0.28);
  }

  #mainNav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #mainNav .nav-link.active {
    box-shadow: inset 3px 0 0 #f0a030;
  }
}

footer .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  padding: 0;
  list-style: none;
}

footer .menu li {
  margin: 0;
}

body.home {
  background-color: #0e0e0e;
  color: #f6f1e8;
  overflow-x: hidden;
}

body.home section {
  padding: 3.25rem 0;
  scroll-margin-top: 6rem;
}

body.home a:hover,
body.home a:focus {
  color: #ffd78a;
}

body.home a.btn-main,
body.home a.btn-main:hover,
body.home a.btn-main:focus {
  color: #1a1208;
  background-color: #f0a030;
  border: 0;
  box-shadow: none;
}

body.home a.btn-main:hover,
body.home a.btn-main:focus {
  background-color: #ffd27a;
}

body.home .masthead {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 7.5rem 1rem 3.5rem;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(180deg, rgba(8, 8, 8, 0.45) 0%, rgba(8, 8, 8, 0.78) 100%),
    url("/img/intro-bg.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  scroll-margin-top: 0;
}

body.home .masthead .intro-body {
  display: block;
  width: 100%;
}

body.home .masthead .intro-body .brand-heading {
  color: #f7f1e6;
  font-size: clamp(2.35rem, 9vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0.06em 0 0.08em;
  white-space: nowrap;
  overflow: hidden;
}

body.home .hero-letters {
  display: inline-block;
}

body.home .hero-letters-ox {
  margin-left: 0.22em;
}

body.home .hero-letter {
  display: inline-block;
}

body.home .brand-heading .hero-letter {
  background-image: linear-gradient(105deg, #f7f1e6 0%, #f7f1e6 36%, #ffe7a8 50%, #f7f1e6 64%, #f7f1e6 100%);
  background-size: 240% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.home .hero-canada {
  --hero-track: 0.46em;
  color: #f0a030;
  letter-spacing: var(--hero-track);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.85rem calc(var(--hero-track) * -1) 1.15rem 0;
}

body.home .hero-canada-word {
  position: relative;
  display: inline-block;
}

body.home .hero-canada-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: var(--hero-track);
  bottom: -0.42rem;
  height: 2px;
  background: #f0a030;
}

body.home .masthead .intro-body .intro-text {
  color: #f6f1e8;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

body.home .hero-line {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  body.home .hero-letters .hero-letter {
    opacity: 0;
    animation-name: hero-letter-in, hero-glint;
    animation-duration: 0.62s, 0.42s;
    animation-timing-function: cubic-bezier(0.16, 0.84, 0.3, 1), ease;
    animation-fill-mode: forwards, none;
    animation-delay: 0s, 1.15s;
  }

  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(1) { animation-delay: 0.05s, 1.15s; }
  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(2) { animation-delay: 0.12s, 1.23s; }
  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(3) { animation-delay: 0.19s, 1.31s; }
  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(4) { animation-delay: 0.26s, 1.39s; }
  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(5) { animation-delay: 0.33s, 1.47s; }
  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(6) { animation-delay: 0.4s, 1.55s; }
  body.home .hero-letters:not(.hero-letters-ox) .hero-letter:nth-child(7) { animation-delay: 0.47s, 1.63s; }

  body.home .hero-letters-ox .hero-letter {
    animation-name: hero-ox-in, hero-glint;
    animation-duration: 0.7s, 0.42s;
  }

  body.home .hero-letters-ox .hero-letter:nth-child(1) { animation-delay: 0.58s, 1.76s; }
  body.home .hero-letters-ox .hero-letter:nth-child(2) { animation-delay: 0.72s, 1.86s; }

  body.home .hero-canada .hero-letter {
    opacity: 0;
    animation: hero-letter-in 0.5s cubic-bezier(0.16, 0.84, 0.3, 1) forwards;
  }

  body.home .hero-canada .hero-letter:nth-child(1) { animation-delay: 0.78s; }
  body.home .hero-canada .hero-letter:nth-child(2) { animation-delay: 0.86s; }
  body.home .hero-canada .hero-letter:nth-child(3) { animation-delay: 0.94s; }
  body.home .hero-canada .hero-letter:nth-child(4) { animation-delay: 1.02s; }
  body.home .hero-canada .hero-letter:nth-child(5) { animation-delay: 1.1s; }
  body.home .hero-canada .hero-letter:nth-child(6) { animation-delay: 1.18s; }

  body.home .hero-canada-word::after {
    transform: scaleX(0);
    transform-origin: left center;
    animation: hero-rule 0.6s cubic-bezier(0.16, 0.84, 0.3, 1) 1.32s forwards;
  }

  body.home .hero-line {
    opacity: 0;
    animation: hero-line-in 0.7s cubic-bezier(0.16, 0.84, 0.3, 1) 1.22s forwards;
  }

  body.home .hero-line-drive {
    animation-name: hero-drive;
    animation-delay: 1.46s;
  }

  body.home .masthead .btn-circle {
    opacity: 0;
    animation: hero-line-in 0.55s ease 1.78s forwards;
  }
}

@keyframes hero-letter-in {
  from {
    opacity: 0;
    transform: translateY(0.72em);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-ox-in {
  0% {
    opacity: 0;
    transform: translateX(0.6em) scale(0.9);
  }

  58% {
    opacity: 1;
    transform: translateX(-0.03em) scale(1.05);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-glint {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: 0 0;
  }
}

@keyframes hero-rule {
  to {
    transform: scaleX(1);
  }
}

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drive {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

body.home .masthead .btn-circle {
  color: #f0a030;
  border-color: #f0a030;
}

body.home .masthead .btn-circle:hover,
body.home .masthead .btn-circle:focus {
  color: #1a1208;
  background: #f0a030;
}

body.home .title {
  color: #f0a030;
  margin-bottom: 1.75rem;
  letter-spacing: 0.12em;
}

body.home .title::after {
  display: block;
  background: #f0a030;
  top: auto;
  bottom: -0.75rem;
  height: 3px;
  width: 48px;
}

body.home .about-section {
  color: #f6f1e8;
  background-color: #12100e;
  background-image:
    linear-gradient(180deg, rgba(12, 10, 8, 0.9), rgba(12, 10, 8, 0.84)),
    url("/img/ox.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

body.home .about-section p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

body.home .services-section,
body.home .contact-section {
  color: #f6f1e8;
  background-color: #101010;
  background-image: none;
}

body.home .services-section .card {
  display: flex;
  flex-direction: column;
  background-color: #1a1814 !important;
  border: 1px solid rgba(240, 160, 48, 0.32) !important;
  border-radius: 2px;
  margin: 0;
  padding: 1.35rem 1.15rem 1.15rem;
  box-shadow: none;
}

body.home .services-section .card-header,
body.home .services-section .card-body {
  background: transparent;
  border: 0;
  padding: 0;
}

body.home .services-section .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

body.home .services-section .card-body .btn {
  margin-top: auto;
  align-self: center;
}

body.home .services-section .card .card-header h3 {
  color: #f0a030;
  margin: 0.85rem 0 0.35rem;
  letter-spacing: 0.08em;
}

body.home .services-section .card .card-icon {
  width: 76px;
  height: 76px;
  line-height: 76px;
  border-color: #f0a030;
}

body.home .services-section .card .card-icon .fas {
  margin-top: 22px;
  font-size: 1.35rem;
}

body.home .services-section .card .card-icon:after,
body.home .services-section .card:hover .card-icon:after {
  background-color: #c9841a;
}

body.home .services-section .card .card-icon:after {
  width: 60px;
  height: 60px;
  top: 7px;
  left: 7px;
}

body.home .services-section .card:hover .card-icon:after {
  width: 76px;
  height: 76px;
  top: -1px;
  left: -1px;
}

body.home .services-section .card p {
  color: #f3eee4;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  text-align: center;
}

body.home .torvah-section {
  color: #f6f1e8;
  text-align: left;
  background-color: #100e0c;
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(240, 163, 48, 0.2), transparent 46%),
    linear-gradient(180deg, #17140f 0%, #0c0c0c 100%);
  border-top: 1px solid rgba(240, 163, 48, 0.4);
  border-bottom: 1px solid rgba(240, 163, 48, 0.18);
}

body.home .torvah-logo {
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45));
}

body.home .torvah-kicker {
  color: #f0a030;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
}

body.home .torvah-section h2 {
  color: #f0a030;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.14em;
  margin: 0 0 0.85rem;
  text-align: inherit;
}

body.home .torvah-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.7rem;
  background: #f0a030;
}

body.home .torvah-lede {
  color: #fff8ec;
  font-size: 1.25rem;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

body.home .torvah-copy > p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

body.home .torvah-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

body.home .torvah-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0.9rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(240, 163, 48, 0.24);
}

body.home .torvah-point-icon {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #c9841a;
  color: #fff8ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

body.home .torvah-points strong {
  display: block;
  color: #f0a030;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

body.home .torvah-points li > span:last-child {
  color: #f3eee4;
  font-size: 0.98rem;
  line-height: 1.45;
}

body.home .torvah-note {
  color: #e6dccb;
  font-size: 0.98rem;
}

body.home .intrahealth-section {
  padding: 1.5rem 0;
  color: #f6f1e8;
  text-align: left;
  background-color: #0e0e0e;
  background-image: none;
}

body.home .intrahealth-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  background: #161410;
  border: 1px solid rgba(240, 160, 48, 0.28);
}

body.home .intrahealth-bar img {
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}

body.home .intrahealth-copy {
  flex: 1 1 auto;
  min-width: 0;
}

body.home .intrahealth-section h2 {
  color: #f0a030;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem;
  text-align: left;
}

body.home .intrahealth-copy p {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0;
}

body.home .intrahealth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
}

body.home .intrahealth-chips li {
  border: 1px solid rgba(240, 163, 48, 0.45);
  color: #f0a030;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  line-height: 1.3;
}

body.home .intrahealth-bar .btn {
  flex: 0 0 auto;
}

body.home .clients-section {
  color: #f6f1e8;
  background-color: #100e0c;
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(240, 163, 48, 0.16), transparent 46%),
    linear-gradient(180deg, #16130f 0%, #0e0e0e 100%);
}

body.home .clients-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

body.home .clients-bar li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  margin: 0;
  padding: 0.85rem 0.75rem;
  background: #f3eee6;
  border: 1px solid rgba(240, 160, 48, 0.34);
  border-radius: 2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

body.home .clients-bar li:hover,
body.home .clients-bar li:focus-within {
  border-color: #f0a030;
  transform: translateY(-2px);
}

body.home .clients-bar img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
  padding: 0;
  filter: none;
}

body.home .clients-bar li.clients-logo-dark {
  background: #f3eee6;
}

body.home .clients-logo-dark img {
  width: min(190px, 94%);
  max-height: 48px;
  padding: 0.45rem 0.7rem;
  background: #1c1916;
  border-radius: 2px;
  box-sizing: border-box;
  filter: none;
}

body.home .client-quote {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 1.35rem 1.35rem 1.15rem;
  background: #1a1814;
  border: 1px solid rgba(240, 160, 48, 0.32);
  border-radius: 2px;
}

body.home .client-quote figcaption {
  color: #f0a030;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

body.home .client-quote blockquote {
  margin: 0;
}

body.home .client-quote blockquote p {
  color: #f6f1e8;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

body.home .client-quote blockquote p::before {
  content: "\201C";
  color: #f0a030;
  font-size: 1.8rem;
  line-height: 0;
  margin-right: 0.15rem;
  vertical-align: -0.45rem;
}

body.home .client-quote-source {
  color: #e6dccb;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.9rem 0 0;
}

@media (min-width: 576px) {
  body.home .clients-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  body.home .clients-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.home .contact-section p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  body.home section {
    padding: 4.5rem 0;
  }

  body.home .intrahealth-section {
    padding: 1.75rem 0;
  }

  body.home .masthead {
    padding: 6rem 0 4rem;
  }

  body.home .hero-canada {
    --hero-track: 0.9em;
    font-size: 1.05rem;
  }

  body.home .masthead .intro-body .intro-text {
    font-size: 1.3rem;
  }

  body.home .torvah-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 991.98px) {
  body.home .torvah-section,
  body.home .torvah-copy,
  body.home .torvah-section h2 {
    text-align: center;
  }

  body.home .torvah-section h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  body.home .torvah-copy {
    margin-top: 1.5rem;
  }

  body.home .torvah-points {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  body.home .intrahealth-bar {
    flex-direction: column;
    text-align: center;
    padding: 1.15rem 1rem;
  }

  body.home .intrahealth-section h2,
  body.home .intrahealth-copy p {
    text-align: center;
  }

  body.home .intrahealth-chips {
    justify-content: center;
  }

  body.home .intrahealth-bar .btn {
    width: 100%;
  }

  body.home .services-section .row {
    margin-left: 0;
    margin-right: 0;
  }
}
