/* Utilities 
/////////////////*/
.main-footer{
  font-size: .9em;
}

.main-footer .row-4,
.main-footer .row-3,
.main-footer .row-2,
.main-footer .row-1{
  padding: 0.5em 0;
}

.main-footer .row-3,
.main-footer .row-2,
.main-footer .row-1{
  border-bottom: solid 1px #CBD6E2;
  margin-bottom:1em;
}

.main-footer .cols{
  width:100%;
}


/* Row 1 
//////////////////*/
.main-footer .footer-social .title {
  margin-right: 1em;
}

.main-footer .footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;
}

.main-footer .footer-social li {
  margin-right: 1em;
  width: 2em;
  height: 2em;
  border: solid 1px #344154;
  border-radius: 100%;
  text-align: center;
  line-height: 2.3;
}

.main-footer .footer-social li:last-of-type{
  margin-right:0;
}

.main-footer .row-1 li:hover{
  border-color:#de2123;
  background-color:#de2123;
  color:#fff !important;
}


.main-footer .footer-social a {
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}


/* form */
.footer-sub-form {
  max-width: 350px;
}

.footer-sub-form .hs_email {
  margin-bottom: 0 !important;
}


.footer-sub-form > div{
  margin-left: 1.7em;
}

.footer-sub-form .simple-sub-form {
  margin-left: 0;
}

.footer-sub-form form {
  -webkit-box-pack: end;-ms-flex-pack: end;justify-content: flex-end;
}
@media(max-width:780px){
  .main-footer .row-1{
    text-align: center;
  }

  .main-footer .row-1 .col-1{
    padding-bottom:2em;
  }

  .main-footer .row-2 .col-1 li{
    margin-bottom:0 !important;
  }

  .main-footer .row-1,
  .main-footer .row-1 .col-1 .flex-wrap{
    -webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;  
  }

  .footer-sub-form form {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
}



/* Row 2
//////////////////*/
.main-footer .row-2{
  font-size:0.9em;
}

.main-footer .row-2 ul{
  list-style:none;
  padding:0;
  width:100%;
  opacity: 1 !important;
  margin:0;
  position:relative !important;
}


.main-footer .row-2 ul li{
  visibility: visible;
}

.main-footer .row-2 a:hover{
  color:#de2123 !important;
}

/* contact info */
.main-footer .row-2 .col-1 {
  min-width: 20%;
}

.main-footer .row-2 .col-1 li{
  margin-bottom:1em;
}

.main-footer .row-2 .col-1 a,
.main-footer .row-2 .col-1 strong{
  display:inline-block !important;
  width: auto !important;
}


.main-footer .row-2 .hs-menu-depth-1 {
  display: block !important;
  max-width: none;
  min-width: initial;
  width: 100%;
}


.main-footer .row-2 a{
  text-decoration:none !important;
  color:inherit !important;
  overflow: visible !important;
  white-space: normal !important;
  max-width: none !important;
  width: 100% !important;
  text-decoration: none !important;
  font-size: 1em;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: left;
}

.main-footer .row-2 .hs-menu-depth-2 a{
  padding:0;
  padding-bottom: 1em !important;
}

.main-footer .row-2 .col-title,
.main-footer .row-2 .hs-menu-depth-1 > a{
  font-weight:bold;
  color:#000000 !important;
  margin-bottom:1em;
  cursor:initial;
  display:block !important;
  padding:0;
}

@media(min-width:981px){
  .main-footer .row-2 .cols:not(:nth-last-child(1)){
    margin-right:2%;
  }
}

@media(max-width:980px) and (min-width:781px) {
  .main-footer .row-2 .cols{
    max-width:33%;
    min-width:33%;
  }
}

@media(max-width:780px){
  .main-footer .row-2 .hs-menu-depth-1>a{
    padding:1em;
    margin:0;
  }

  .main-footer .row-2 .col-title:before, 
  .main-footer .row-2 .hs-menu-depth-1>a:before{
    content:"\f078";
    font-family:fontAwesome;
    position:absolute;
    right: 1em;
  }

  .main-footer .row-2 .col-title.selected:before, 
  .main-footer .row-2 .hs-menu-depth-1>a.selected:before{
    content:"\f077";
  }

  .main-footer .row-2 .hs-menu-children-wrapper:not(.active){
    display:none !important;
  }

  .main-footer .cols{
    -webkit-box-flex: 1;-ms-flex: auto;flex: auto;
  }

  .main-footer .row-2 .cols:not(:last-of-type) .hs-menu-wrapper > ul, 
  .main-footer .row-2 .cols > ul{
    border-bottom: solid 1px #e2e2e2;
    margin-top: 0;
  }

  .main-footer .row-2 .hs-menu-depth-1 > ul{
    padding-left:1em;
  }

  .main-footer .row-2 .col-6 ul{
    border-bottom:0;
    margin-bottom: 0;
  }
}


/* Row 3
//////////////////*/
.main-footer .row-3 {
  padding-bottom: 1em;
  padding-top: 0;
}

.main-footer .row-3 .cols {
  -webkit-box-flex: auto;
  -ms-flex: auto;
  flex: auto;
}

.main-footer .row-3 .cols {
  max-width: 12em;
}

.main-footer .row-3 .col-2 img {
  width: auto;
  height: 2em;
}


.main-footer .row-3 .col-2{
  text-align:right;
}




/* ROW 4 
* ////////////////////////*/


.copyright{
  border-bottom: 0 !important;
}

.copyright p {
  font-size: 0.9em;
  margin: 0;
}

.copyright a:not(:hover){
  color:inherit !important;
}











/* ==========================================================================
   Wide layout (TFL homepage redesign, client feedback 2026-12-02).
   Footer content uses the same box as the header and the homepage Hero /
   Two Ways modules: min(100vw - 40px, 1600px), centred. Scoped to the
   footer so the theme-wide .container-wrap (1200px) is unchanged elsewhere.
   ========================================================================== */
.main-footer .container-wrap {
  max-width: 1640px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Blog subscribe heading (replaces the old .title, which the site header
   HTML script rewrites) */
.main-footer .footer-sub-form {
  max-width: 360px;
  margin-top: 15px;
  margin-bottom: 15px;
}

.main-footer .footer-sub-form__heading {
  margin: 0 0 -5px;
  color: #1f2a35;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

/* ==========================================================================
   Blog subscribe form — HubSpot "new" (v4) form markup (.hsfc-*), 2026-12-04.
   Compact layout per client feedback: email field and a smaller Subscribe
   button on one row, reCAPTCHA notice (text only, no badge) underneath.
   The form's rows/field wrappers are flattened with display:contents so the
   label, input, button and messages can sit on one grid:
     (label is visually hidden; the heading above names the form)
     [ input            button ]
     [ field error             ]
     [ reCAPTCHA notice        ]
   Look matches the old v2 footer form (white 50px input, red button).
   ========================================================================== */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] {
  --hsf-global__font-family: inherit;
  --hsf-background__padding: 0;
  --hsf-background__background-color: transparent;
  --hsf-background__border-style: none;
  font-family: inherit;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Form,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Step,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Step__Content {
  margin: 0;
  padding: 0;
  background: none;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Step__Content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-flow: row dense; /* other rows fill in below the pinned ones */
  gap: 8px 0; /* input and button are joined into one control */
  align-items: center;
}

/* Flatten wrappers so their children become grid items */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Row:has(> .hsfc-EmailField),
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-NavigationRow {
  display: contents;
}

/* Any other visible row (reCAPTCHA notice, rich text, extra fields) spans the full width */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Row {
  grid-column: 1 / -1;
  margin: 0;
}

/* Label kept for screen readers only — the heading above names the form */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField > .hsfc-FieldLabel {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField > .hsfc-TextInput {
  grid-column: 1;
  grid-row: 1;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-NavigationRow__Buttons {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField > .hsfc-ErrorAlert,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField > .hsfc-FieldDescription {
  grid-row: 2;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField > .hsfc-ErrorAlert,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-EmailField > .hsfc-FieldDescription,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-NavigationRow__Alerts {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-NavigationRow__Alerts:empty {
  display: none;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-ErrorAlert {
  color: #de2123;
  font-size: 12px;
  line-height: 1.4;
}

/* Email input */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput {
  width: 100%;
  height: 46px;
  min-height: 0;
  margin: 0;
  padding: 0 12px 0 40px;
  border: 1px solid #CBD6E2 !important;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a96a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") no-repeat 14px center / 16px 16px;
  box-shadow: none;
  color: #2b3f4f;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput::placeholder {
  color: #8a96a3;
  opacity: 1;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput:hover {
  border-color: #8f9aa6;
  box-shadow: none;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput:focus {
  outline: none;
  border-color: #2b3f4f;
  box-shadow: inset 0 0 0 1px #2b3f4f;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput[aria-invalid="true"] {
  border-color: #de2123;
  box-shadow: inset 0 0 0 1px #de2123;
}

/* Subscribe button — compact, sits beside the input */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Button {
  position: relative;
  width: auto;
  height: 46px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #de2123;
  border-radius: 0 8px 8px 0;
  background-color: #de2123;
  box-shadow: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Button:not([disabled]):hover,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Button:not([disabled]):focus {
  border-color: #b11a1c;
  background-color: #b11a1c;
  color: #ffffff;
  transform: none;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Button:focus-visible {
  outline: 2px solid #2b3f4f;
  outline-offset: 2px;
}

.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-Button[disabled] {
  opacity: 0.7;
  filter: none;
}

/* reCAPTCHA v3 notice (Google requires it when the badge isn't shown) */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-ReCaptchaV3__Statement,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-ReCaptchaV2__Statement,
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-RichText {
  color: #6b7785;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

/* Thank-you message after subscribing */
.main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-PostSubmit {
  text-align: left;
}

@media (max-width: 780px) {
  .main-footer .footer-sub-form {
    max-width: none;
    width: 100%;
  }

  .main-footer .footer-sub-form__heading,
  .main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-ReCaptchaV3__Statement {
    text-align: center;
  }

  .main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .main-footer .footer-sub-form [data-hsfc-id="Renderer"] .hsfc-TextInput::placeholder {
    font-size: 14px; /* fits "Enter your email address" at 375px */
  }
}
