/* The site footer (app/sections/site/footer/view.php).

   A closing line with the gold button, then the logo and text beside the
   link groups and the contact details, then the copyright line. On the
   near-black the scrolling words end on; the dashboard's background
   picture shows faintly, fading in from the top. */

:root {
  /* === Brand Colors === (also used by pages loaded before color.css) */
  --color-brand-primary: #001e53;
  --color-brand-secondary: #f1ae22;
  --color-brand-accent: #feca16;
  /* === Text Colors === */
  --color-text-white: #ffffff;
  --color-text-muted: #bbbbbb;
  --color-text-black: #000000;
  --color-text-p: #001e53;
  --color-text-s: #f1ae22;
  --color-text-a: #feca16;
}

* {
  box-sizing: border-box;
}

#cs-footer-308 {
  --ft-navy: #001e53;
  --ft-night: #000a1f;
  --ft-gold: #f1ae22;
  --ft-gold-hi: #ffc94d;
  --ft-cream: #f3eee2;
  --ft-soft: rgba(243, 238, 226, 0.72);
  --ft-line: rgba(243, 238, 226, 0.12);
  --ft-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ft-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 0 clamp(20px, 6vw, 96px);
  background: var(--ft-night);
  color: #fff;
  overflow: hidden;
}

/* The background picture, faint, fading in from the top */
#cs-footer-308::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--footer-bg, none) center / cover no-repeat;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
  pointer-events: none;
}

#cs-footer-308 ::selection {
  background: var(--ft-gold);
  color: var(--ft-navy);
}

#cs-footer-308 .ft-inner {
  max-width: 1320px;
  margin: 0 auto;
}

#cs-footer-308 .ft-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Closing line ---------- */
#cs-footer-308 .ft-call {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--ft-line);
}

#cs-footer-308 .ft-call-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

#cs-footer-308 .ft-call-title span {
  color: #feca16;
}

#cs-footer-308 .ft-call-acts {
  display: flex;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
}

/* The gold button, as in the other sections */
#cs-footer-308 .ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ft-gold);
  color: var(--ft-navy);
  font-size: 1.0625rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: background-color 0.25s ease, transform 0.35s var(--ft-ease);
}

#cs-footer-308 .ft-btn svg {
  transition: transform 0.35s var(--ft-ease);
}

#cs-footer-308 .ft-btn:hover {
  background: var(--ft-gold-hi);
  color: var(--ft-navy);
  transform: translateY(-2px);
}

#cs-footer-308 .ft-btn:hover svg {
  transform: translateX(4px);
}

#cs-footer-308 .ft-call-phone {
  font-family: var(--ft-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ft-cream);
  text-decoration: underline;
  text-decoration-color: rgba(241, 174, 34, 0.6);
  text-underline-offset: 5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

#cs-footer-308 .ft-call-phone:hover {
  color: var(--ft-gold-hi);
  text-decoration-color: var(--ft-gold-hi);
}

/* ---------- Logo, links, contact ---------- */
#cs-footer-308 .ft-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(32px, 5vw, 72px);
  padding: clamp(40px, 5vw, 64px) 0;
}

#cs-footer-308 .ft-brand {
  flex: 1.6 1 300px;
  max-width: 420px;
}

#cs-footer-308 .ft-col {
  flex: 1 1 150px;
}

#cs-footer-308 .ft-col--contact {
  flex: 1.4 1 230px;
}

#cs-footer-308 .ft-logo {
  display: inline-block;
  border-radius: 6px;
}

#cs-footer-308 .ft-logo img {
  display: block;
  width: auto;
  height: clamp(36px, 3.4vw, 44px);
  max-width: 220px;
  height: auto;
  /* the logo in white, on the dark */
  filter: brightness(0) invert(1);
}

#cs-footer-308 .ft-text {
  margin: 20px 0 0;
  font-family: var(--ft-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ft-soft);
}

#cs-footer-308 .ft-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

#cs-footer-308 .ft-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 238, 226, 0.25);
  border-radius: 50%;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.35s var(--ft-ease);
}

#cs-footer-308 .ft-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

#cs-footer-308 .ft-social a:hover {
  background: var(--ft-gold);
  border-color: var(--ft-gold);
  transform: translateY(-2px);
}

#cs-footer-308 .ft-social a:hover img {
  /* the icon turns navy on the gold */
  filter: brightness(0) invert(9%) sepia(60%) saturate(4000%) hue-rotate(212deg);
}

#cs-footer-308 .ft-head {
  margin: 0 0 18px;
  /* parts/header.css sets every h2 to the display font with !important */
  font-family: var(--ft-sans) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ft-gold);
}

#cs-footer-308 .ft-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#cs-footer-308 .ft-link {
  font-family: var(--ft-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ft-cream);
  text-decoration: none;
  /* an underline that draws in from the left */
  background: linear-gradient(var(--ft-gold), var(--ft-gold)) 0 100% / 0 1px no-repeat;
  transition: color 0.2s ease, background-size 0.35s var(--ft-ease);
}

#cs-footer-308 a.ft-link:hover {
  color: #fff;
  background-size: 100% 1px;
}

#cs-footer-308 .ft-link--icon {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  background: none;
  overflow-wrap: anywhere;
}

#cs-footer-308 a.ft-link--icon:hover {
  color: var(--ft-gold-hi);
}

#cs-footer-308 .ft-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ft-gold);
}

/* ---------- Bottom line ---------- */
#cs-footer-308 .ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid var(--ft-line);
  font-family: var(--ft-sans);
  font-size: 0.9375rem;
  color: rgba(243, 238, 226, 0.6);
}

/* The two parts sit on one line with a dot between them, or, when they
   do not fit, on two lines with no dot left hanging at a line's end. */
#cs-footer-308 .ft-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
}

#cs-footer-308 .ft-credit::before {
  content: "·";
  margin: 0 8px;
}

#cs-footer-308 .ft-copy a {
  color: var(--ft-cream);
  font-weight: 600;
  text-decoration: none;
}

#cs-footer-308 .ft-copy a:hover {
  color: var(--ft-gold-hi);
}

#cs-footer-308 .ft-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ft-cream);
  font-weight: 600;
  text-decoration: none;
}

#cs-footer-308 .ft-top svg {
  transition: transform 0.35s var(--ft-ease);
}

#cs-footer-308 .ft-top:hover {
  color: var(--ft-gold-hi);
}

#cs-footer-308 .ft-top:hover svg {
  transform: translateY(-3px);
}

#cs-footer-308 a:focus-visible {
  outline: 2px solid var(--ft-gold-hi);
  outline-offset: 4px;
  border-radius: 4px;
}

#cs-footer-308 .ft-btn:focus-visible,
#cs-footer-308 .ft-social a:focus-visible {
  border-radius: 999px;
}

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  #cs-footer-308 .ft-call-acts {
    width: 100%;
  }

  #cs-footer-308 .ft-btn {
    width: 100%;
    justify-content: center;
  }

  /* the link groups side by side, two to a row */
  #cs-footer-308 .ft-col {
    flex-basis: 40%;
  }

  #cs-footer-308 .ft-col--contact {
    flex-basis: 100%;
  }

  /* the credit on a line of its own, without the dot */
  #cs-footer-308 .ft-credit {
    flex-basis: 100%;
  }

  #cs-footer-308 .ft-credit::before {
    content: none;
  }

  /* room for the round chat button that floats in the corner */
  #cs-footer-308 .ft-bottom {
    padding-bottom: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cs-footer-308 *,
  #cs-footer-308 *::before,
  #cs-footer-308 *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  #cs-footer-308 {
    background: #fff;
    color: #000;
  }

  #cs-footer-308::before,
  #cs-footer-308 .ft-call {
    display: none;
  }
}
