.sgc-footer,
.sgc-footer * {
  box-sizing: border-box;
}

.sgc-footer {
  position: relative;
  overflow: hidden;
  font-family: "Manrope", Arial, sans-serif;
  background: var(--sgc-footer-dark);
}


/* =========================================================
   CTA AREA
========================================================= */

.sgc-footer__cta-wrap {
  padding:0 var(--space-row);
  background: #fbfaf7;
}

.sgc-footer__cta {
  position: relative;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap:var(--space-block);

  width: min(100%, var(--container));

  padding:var(--space-block)
    var(--space-block);

  margin:0 auto;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(18,61,122,.95),
      transparent 38%
    ),
    var(--sgc-footer-navy);
}

.sgc-footer__cta::after {
  position: absolute;
  top: 0;
  right: 0;

  width: 1px;
  height: 100%;

  content: "";

  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--sgc-footer-gold),
      transparent
    );
}

.sgc-footer__cta-copy {
  position: relative;
  z-index: 2;

  max-width: 820px;
}

.sgc-footer__eyebrow {
  display: flex;
  align-items: center;

  gap:var(--space-tight);

  margin-bottom:var(--space-heading-to-intro);

  color: var(--sgc-footer-gold);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: .18em;
  text-transform: uppercase;
}

.sgc-footer__eyebrow span {
  width: 38px;
  height: 1px;

  background: var(--sgc-footer-gold);
}

.sgc-footer__cta h2 {
  margin:0;

  color: #ffffff;

  font-size:
    clamp(38px,4.5vw,68px);

  font-weight: 650;

  line-height: 1.04;

  letter-spacing: -.045em;
}

.sgc-footer__cta h2 strong {
  display: block;

  color: var(--sgc-footer-gold);

  font-weight: 650;
}


/* CTA BUTTON */

.sgc-footer__cta-button {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap:var(--space-tight);

  min-width: 220px;
  min-height: 58px;

  padding:0 var(--space-element);

  flex-shrink: 0;

  color: var(--sgc-footer-dark);

  font-size: 12px;
  font-weight: 750;

  text-decoration: none;

  background: var(--sgc-footer-gold);

  border: 1px solid var(--sgc-footer-gold);

  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    transform 300ms var(--sgc-footer-ease);
}

.sgc-footer__cta-button svg {
  width: 16px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.5;

  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 300ms var(--sgc-footer-ease);
}

.sgc-footer__cta-button:hover {
  color: #ffffff;

  background: transparent;

  border-color:
    rgba(255,255,255,.5);

  transform: translateY(-2px);
}

.sgc-footer__cta-button:hover svg {
  transform: translate(2px,-2px);
}


/* =========================================================
   MAIN FOOTER
========================================================= */

.sgc-footer__main {
  position: relative;

  padding-top:var(--space-block);

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(10,47,107,.30),
      transparent 35%
    ),
    var(--sgc-footer-dark);
}

.sgc-footer__main::before {
  position: absolute;
  top: 0;
  left: 50%;

  width: min(calc(100% - (var(--gutter) * 2)),var(--container));
  height: 1px;

  content: "";

  transform: translateX(-50%);

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(208,163,74,.5),
      transparent
    );
}

.sgc-footer__container {
  display: grid;

  grid-template-columns:
    minmax(300px,1.35fr)
    repeat(3,minmax(150px,.65fr));

  gap:var(--space-block);

  width:
    min(calc(100% - (var(--gutter) * 2)),var(--container));

  margin:0 auto;

  padding-bottom:var(--space-block);
}


/* =========================================================
   BRAND
========================================================= */

.sgc-footer__brand {
  max-width: 420px;
}

.sgc-footer__logo {
  display: inline-block;
}

.sgc-footer__logo img {
  display: block;

  width: 225px;
  height: auto;

  filter:
    brightness(0)
    invert(1);

  opacity: .96;
}

/*
If your original logo already has white/gold colours,
remove the filter property above.
*/

.sgc-footer__brand p {
  max-width: 390px;

  margin:var(--space-row) 0 var(--space-heading-to-intro);

  color: var(--sgc-footer-muted);

  font-size: 13px;

  line-height: 1.75;
}

.sgc-footer__email {
  display: inline-block;

  color: var(--sgc-footer-gold);

  font-size: 13px;

  font-weight: 650;

  text-decoration: none;

  transition:
    color 250ms ease;
}

.sgc-footer__email:hover {
  color: #ffffff;
}


/* =========================================================
   COLUMNS
========================================================= */

.sgc-footer__column h3 {
  margin:var(--space-micro) 0 var(--space-element);

  color: var(--sgc-footer-gold);

  font-size: 9px;

  font-weight: 800;

  letter-spacing: .17em;

  text-transform: uppercase;
}

.sgc-footer__column nav {
  display: flex;

  flex-direction: column;

  gap:var(--space-tight);
}

.sgc-footer__column a {
  position: relative;

  width: fit-content;

  color:
    rgba(255,255,255,.72);

  font-size: 12px;

  font-weight: 500;

  line-height: 1.5;

  text-decoration: none;

  transition:
    color 250ms ease,
    transform 280ms var(--sgc-footer-ease);
}

.sgc-footer__column a::after {
  position: absolute;

  right: 0;
  bottom: -4px;
  left: 0;

  width: 0;
  height: 1px;

  content: "";

  background:
    var(--sgc-footer-gold);

  transition:
    width 300ms var(--sgc-footer-ease);
}

.sgc-footer__column a:hover {
  color: #ffffff;

  transform: translateX(3px);
}

.sgc-footer__column a:hover::after {
  width: 100%;
}


/* =========================================================
   BOTTOM FOOTER
========================================================= */

.sgc-footer__bottom {
  border-top:
    1px solid
    var(--sgc-footer-line);
}

.sgc-footer__bottom-inner {
  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap:var(--space-row);

  width:
    min(calc(100% - (var(--gutter) * 2)),var(--container));

  min-height: 86px;

  margin:0 auto;
}

.sgc-footer__copyright,
.sgc-footer__legal a,
.sgc-footer__social a {
  color:
    rgba(255,255,255,.45);

  font-size: 10px;

  font-weight: 500;

  text-decoration: none;
}

.sgc-footer__legal {
  display: flex;

  gap:var(--space-element);
}

.sgc-footer__legal a,
.sgc-footer__social a {
  transition:
    color 250ms ease;
}

.sgc-footer__legal a:hover,
.sgc-footer__social a:hover {
  color: #ffffff;
}

.sgc-footer__social {
  text-align: right;
}

.sgc-footer__social a {
  display: inline-flex;

  align-items: center;

  gap:var(--space-small);
}

.sgc-footer__social span {
  color: var(--sgc-footer-gold);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .sgc-footer__cta {
    align-items: flex-start;

    flex-direction: column;
  }

  .sgc-footer__container {
    grid-template-columns:
      1.5fr 1fr 1fr;
  }

  .sgc-footer__brand {
    grid-column:
      1 / -1;

    margin-bottom:var(--space-tight);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .sgc-footer__cta-wrap {
    padding:0;
  }

  .sgc-footer__cta {
    gap:var(--space-row);

    padding:var(--space-block) var(--space-element);
  }

  .sgc-footer__cta h2 {
    font-size:
      clamp(36px,10.5vw,48px);
  }

  .sgc-footer__cta-button {
    width: 100%;
  }

  .sgc-footer__main {
    padding-top:var(--space-block);
  }

  .sgc-footer__main::before {
    width:
      calc(100% - 32px);
  }

  .sgc-footer__container {
    grid-template-columns:
      1fr 1fr;

    width:
      calc(100% - 32px);

    gap:var(--space-block) var(--space-element);
  }

  .sgc-footer__brand {
    grid-column:
      1 / -1;
  }

  .sgc-footer__logo img {
    width: 190px;
  }

  .sgc-footer__column:last-child {
    grid-column:
      1 / -1;
  }

  .sgc-footer__bottom-inner {
    grid-template-columns: 1fr;

    width:
      calc(100% - 32px);

    gap:var(--space-tight);

    padding:var(--space-row) 0;
  }

  .sgc-footer__legal {
    gap:var(--space-heading-to-intro);
  }

  .sgc-footer__social {
    text-align: left;
  }

}


@media (max-width: 420px) {

  .sgc-footer__container {
    grid-template-columns: 1fr;
  }

  .sgc-footer__brand,
  .sgc-footer__column:last-child {
    grid-column: auto;
  }

}
