
/* =========================================================
   LOWCOMMISSION.CA
   ARCTIC EDITORIAL — SITE-WIDE MOTION SYSTEM
   Version 1.0

   Prefix: mo-
   Requires: mo-motion.js
   ========================================================= */


/* ---------------------------------------------------------
   01. DESIGN TOKENS
   --------------------------------------------------------- */

:root {
  --mo-teal: #183B4E;
  --mo-dark: #10293A;
  --mo-ice: #9CC7DA;
  --mo-light: #EAF2F5;
  --mo-white: #F7FAFB;
  --mo-green: #1F7A6A;

  --mo-ease: cubic-bezier(.22, 1, .36, 1);
  --mo-ease-soft: cubic-bezier(.25, .46, .45, .94);

  --mo-fast: 250ms;
  --mo-normal: 550ms;
  --mo-slow: 800ms;

  --mo-border: rgba(24, 59, 78, .13);
  --mo-shadow:
    0 12px 35px rgba(16, 41, 58, .07);
}


/* ---------------------------------------------------------
   02. GLOBAL SAFETY

   Nothing is hidden before or during JS initialization.
   All entrance animations start only after mo-in is added.
   --------------------------------------------------------- */

.mo-reveal {
  position: relative;
  animation: none;
}

.mo-reveal.mo-in {
  animation: mo-fade-up 340ms var(--mo-ease) both;
  animation-delay: var(--mo-delay, 0ms);
}

@keyframes mo-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 15px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


/* ---------------------------------------------------------
   03. EDITORIAL HEADINGS
   --------------------------------------------------------- */

.mo-heading {
  position: relative;
  isolation: isolate;
}

.mo-word {
  display: inline-block;
  white-space: pre;
}

.mo-heading.mo-in .mo-word {
  animation: mo-word-reveal 360ms var(--mo-ease) both;
  animation-delay: var(--mo-word-delay, 0ms);
}

@keyframes mo-word-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, .38em, 0);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

/* Ice-blue editorial underline */

.mo-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.20em;

  width: min(100px, 24%);
  height: 2px;

  background: var(--mo-ice);
  transform: scaleX(0);
  transform-origin: left center;

  transition:
    transform 650ms var(--mo-ease) 100ms;

  pointer-events: none;
}

.mo-heading.mo-in::after {
  transform: scaleX(1);
}

/* Hero headings get a slightly longer underline */

.sp-hero h1.mo-heading::after {
  width: min(125px, 30%);
}


/* ---------------------------------------------------------
   04. EYEBROWS / SECTION LABELS
   --------------------------------------------------------- */

.mo-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mo-eyebrow::before {
  content: "";
  display: block;

  width: 0;
  height: 1px;

  background: var(--mo-ice);

  transition:
    width 500ms var(--mo-ease);
}

.mo-eyebrow.mo-in::before {
  width: 28px;
}

/* Original text remains untouched */


/* ---------------------------------------------------------
   05. LONG-FORM CONTENT
   --------------------------------------------------------- */

.mo-copy-reveal {
  will-change: opacity, transform;
}

article.prose p.mo-copy-reveal {
  line-height: 1.85;
}

/* Strong text marker sweep */

article.prose strong.mo-marker {
  position: relative;
  z-index: 0;

  font-weight: 800;

  background-image:
    linear-gradient(
      to right,
      rgba(156, 199, 218, .0) 0%,
      rgba(156, 199, 218, .48) 0%
    );

  background-repeat: no-repeat;
  background-position: left 85%;
  background-size: 0% .48em;

  transition:
    background-size 600ms var(--mo-ease);
}

article.prose strong.mo-marker.mo-in {
  background-size: 100% .48em;
}

/* Links */

article.prose a {
  color: var(--mo-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;

  transition:
    color 200ms ease,
    text-decoration-color 200ms ease;
}

article.prose a:hover {
  color: var(--mo-green);
}


/* ---------------------------------------------------------
   06. LISTS
   --------------------------------------------------------- */

.mo-list-item {
  position: relative;
}

.mo-list-item.mo-in {
  animation: mo-list-enter 420ms var(--mo-ease) both;
  animation-delay: var(--mo-delay, 0ms);
}

@keyframes mo-list-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 9px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Tick accent */

article.prose ul li.mo-list-item::marker {
  color: var(--mo-green);
}

.sp-rights li.mo-list-item {
  transition:
    border-color 250ms ease,
    background-color 250ms ease,
    transform 250ms var(--mo-ease);
}

.sp-rights li.mo-list-item:hover {
  transform: translateY(-2px);
}


/* ---------------------------------------------------------
   07. TABLE SYSTEM
   --------------------------------------------------------- */

/* JS creates this wrapper automatically */

.mo-table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;

  margin: 28px 0 38px;

  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;

  border: 1px solid var(--mo-border);
  border-radius: 12px;

  background: var(--mo-white);

  box-shadow:
    0 8px 28px rgba(16, 41, 58, .045);

  scrollbar-width: thin;
  scrollbar-color: var(--mo-ice) transparent;
}

.mo-table-wrap:focus-visible {
  outline: 2px solid var(--mo-ice);
  outline-offset: 3px;
}

.mo-table-wrap table {
  width: 100%;
  min-width: 540px;

  margin: 0;
  border-collapse: separate;
  border-spacing: 0;

  background: transparent;
}

/* Header */

.mo-table-wrap thead th {
  padding: 17px 19px;

  background: var(--mo-teal);
  color: var(--mo-white);

  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;

  text-align: left;
  letter-spacing: .025em;

  border: none;
}

.mo-table-wrap thead th:first-child {
  border-top-left-radius: 10px;
}

.mo-table-wrap thead th:last-child {
  border-top-right-radius: 10px;
}

/* Table body */

.mo-table-wrap tbody td {
  padding: 15px 19px;

  color: var(--mo-dark);

  font-size: 14px;
  line-height: 1.65;

  border-bottom: 1px solid rgba(24, 59, 78, .09);

  background: transparent;

  transition:
    background-color 220ms ease;
}

.mo-table-wrap tbody tr:last-child td {
  border-bottom: none;
}

/* Row hover */

.mo-table-wrap tbody tr {
  transition:
    background-color 220ms ease;
}

.mo-table-wrap tbody tr:hover td {
  background-color: rgba(156, 199, 218, .16);
}

/* Savings figures */

.mo-table-wrap td strong {
  color: var(--mo-green);
  font-weight: 800;
}

/* Header entrance */

.mo-table-wrap thead tr.mo-in {
  animation: mo-table-head 500ms var(--mo-ease) both;
}

@keyframes mo-table-head {
  from {
    opacity: 0;
    transform: translateY(-9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Body rows */

.mo-table-wrap tbody tr.mo-in {
  animation: mo-table-row 420ms var(--mo-ease) both;
  animation-delay: var(--mo-delay, 0ms);
}

@keyframes mo-table-row {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Numeric values */

.mo-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Mobile swipe hint */

.mo-table-wrap::after {
  content: "";

  position: sticky;
  display: block;

  right: 0;
  bottom: 0;

  width: 0;
  height: 0;

  pointer-events: none;
}

@media (max-width: 700px) {
  .mo-table-wrap {
    border-radius: 9px;
    margin: 22px 0 30px;
  }

  .mo-table-wrap::before {
    content: "SWIPE TO EXPLORE  →";

    position: sticky;
    left: 0;
    bottom: 0;

    display: block;
    width: 100%;

    padding: 9px 12px;

    color: var(--mo-teal);
    background: var(--mo-light);

    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;

    text-align: right;
  }

  .mo-table-wrap table {
    min-width: 560px;
  }

  .mo-table-wrap thead th {
    padding: 14px;
    font-size: 12px;
  }

  .mo-table-wrap tbody td {
    padding: 13px 14px;
    font-size: 13px;
  }
}


/* ---------------------------------------------------------
   08. BLOCKQUOTES
   --------------------------------------------------------- */

article.prose blockquote.mo-reveal {
  padding: 26px 30px;

  border-left: 3px solid var(--mo-ice);

  background: rgba(156, 199, 218, .10);

  color: var(--mo-teal);

  border-radius: 0 10px 10px 0;
}

article.prose blockquote.mo-in {
  animation: mo-quote-enter 360ms var(--mo-ease) both;
}

@keyframes mo-quote-enter {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ---------------------------------------------------------
   09. IMAGES
   --------------------------------------------------------- */

.mo-image-reveal {
  overflow: hidden;
  border-radius: 10px;
}

.mo-image-reveal img {
  transform: scale(1.035);
  transition:
    transform 900ms var(--mo-ease);
}

.mo-image-reveal.mo-in img {
  transform: scale(1);
}

/* Optional desktop hover */

@media (hover: hover) and (pointer: fine) {
  .mo-image-reveal:hover img {
    transform: scale(1.035);
  }
}


/* ---------------------------------------------------------
   10. CARDS
   --------------------------------------------------------- */

.mo-card {
  transition:
    transform 250ms var(--mo-ease),
    box-shadow 250ms ease,
    border-color 250ms ease,
    background-color 250ms ease;
}

.mo-card.mo-in {
  animation: mo-card-enter 340ms var(--mo-ease) both;
  animation-delay: var(--mo-delay, 0ms);
}

@keyframes mo-card-enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .mo-card:hover {
    transform: translateY(-5px);
    box-shadow:
      0 16px 38px rgba(16, 41, 58, .11);

    border-color: rgba(156, 199, 218, .7);
  }
}


/* ---------------------------------------------------------
   11. FAQ
   --------------------------------------------------------- */

.faq details.mo-faq-animated .ans {
  overflow: hidden;
  transition:
    max-height 380ms var(--mo-ease);
}

.faq details summary {
  cursor: pointer;
  transition: color 220ms ease;
}

.faq details summary:hover {
  color: var(--mo-green);
}

/* Plus/minus icon rotation */

.faq details summary::after {
  transition:
    transform 300ms var(--mo-ease),
    color 250ms ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  color: var(--mo-green);
}


/* ---------------------------------------------------------
   12. READING PROGRESS
   --------------------------------------------------------- */

.mo-reading-progress {
  position: fixed;
  z-index: 9998;

  top: 0;
  left: 0;

  width: 100%;
  height: 3px;

  background: transparent;

  pointer-events: none;
}

.mo-reading-progress-fill {
  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--mo-ice),
      var(--mo-green)
    );

  transform-origin: left center;
  will-change: width;
}


/* ---------------------------------------------------------
   13. MOBILE ADJUSTMENTS
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .mo-heading::after {
    bottom: -.16em;
    height: 2px;
    width: 65px;
  }

  .mo-word {
    white-space: normal;
  }

  article.prose blockquote.mo-reveal {
    padding: 20px 18px;
  }

  article.prose p.mo-copy-reveal {
    line-height: 1.8;
  }

  .mo-card.mo-in {
    animation-duration: 450ms;
  }

}


/* ---------------------------------------------------------
   14. PERFORMANCE
   --------------------------------------------------------- */

.mo-reveal.mo-in,
.mo-card.mo-in,
.mo-list-item.mo-in {
  will-change: auto;
}

/* Avoid animated shadows or movement on touch devices */

@media (hover: none) {
  .mo-card:hover {
    transform: none;
  }
}


/* ---------------------------------------------------------
   15. REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .mo-reveal,
  .mo-reveal.mo-in,
  .mo-word,
  .mo-heading.mo-in .mo-word,
  .mo-card,
  .mo-card.mo-in,
  .mo-list-item,
  .mo-list-item.mo-in,
  .mo-table-wrap tbody tr,
  .mo-table-wrap thead tr,
  .mo-image-reveal img,
  article.prose blockquote,
  article.prose strong.mo-marker,
  .mo-heading::after,
  .mo-eyebrow::before,
  .faq details .ans {
    animation: none !important;
    transition: none !important;

    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .mo-heading::after {
    transform: scaleX(1);
  }

  .mo-image-reveal img {
    transform: none;
  }

}


/* LC integration (v3.7.2): heading word spans must not pick up the theme's "h1/h2 span" accent-line rules */
.sp .mo-heading .mo-word,.mo-heading .mo-word{display:inline-block!important;color:inherit!important;background:none;padding:0;margin:0}
