/* Project page header, CTA, and footer aligned to the main home page. */

/* Keep every footer detail, with substantially less vertical padding. */
.site-footer .footer-grid {
  gap: 34px;
  padding: 48px 24px 34px;
}

.site-footer .footer-col h3 {
  font-size: 15px;
  margin: 0 0 10px;
  padding-bottom: 8px;
}

.site-footer .footer-logo {
  margin-bottom: 10px;
}

.site-footer .footer-logo img {
  height: 54px;
}

.site-footer .footer-col p {
  font-size: 15px;
  line-height: 1.55;
  max-width: 390px;
}

.site-footer .footer-list {
  margin-bottom: 18px;
}

.site-footer .footer-list li,
.site-footer .footer-nav a {
  font-size: 14px;
  line-height: 1.35;
}

.site-footer .footer-nav a {
  margin-bottom: 7px;
}

.site-footer .footer-contact li {
  gap: 10px;
  margin-bottom: 9px;
}

.site-footer .footer-contact a,
.site-footer .footer-contact span {
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.site-footer .footer-note {
  font-size: 12px;
  margin-left: 26px;
}

.site-footer .footer-licence {
  font-size: 12px;
  line-height: 1.55;
  margin-top: 12px;
}

.site-footer .copyright-bar {
  padding: 10px 0;
}

.site-footer .copyright-inner p {
  font-size: 12px;
}

@media (max-width: 768px) {
  .site-footer .footer-grid {
    gap: 26px;
    padding: 36px 24px 26px;
  }
}

.site-footer { background: #003A6E; }
.site-footer .copyright-bar {
  background: #003A6E;
  border-top: 1px solid rgba(255,255,255,.18);
}
/* Compact footer on the homepage; shared footer keeps its other-page layout. */
.site-footer .footer-grid {
  grid-template-columns: minmax(160px, .75fr) minmax(275px, 1.4fr) minmax(310px, 1.25fr);
  gap: 6px clamp(28px, 4vw, 54px);
  align-items: start;
  padding: 26px 24px 20px;
}
.site-footer .footer-col:first-child { grid-column: 1; grid-row: 1 / span 2; }
.site-footer .footer-col:nth-child(2),
.site-footer .footer-col:nth-child(3) { display: contents; }
.site-footer .footer-col > h3,
.site-footer .footer-col:first-child > p,
.site-footer .footer-col:nth-child(2) > .footer-list:not(.footer-nav) { display: none; }
.site-footer .footer-col:nth-child(2) > h3:nth-of-type(2),
.site-footer .footer-col:nth-child(3) > h3 {
  display: block;
  font-size: 13px;
  margin: 0 0 8px;
  padding: 0;
}
.site-footer .footer-col:nth-child(2) > h3:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}
.site-footer .footer-col:nth-child(3) > h3 {
  grid-column: 3;
  grid-row: 1;
  margin-bottom: 0;
}
.site-footer .footer-logo { margin-bottom: 0; }
.site-footer .footer-logo img { height: 48px; }
.site-footer .footer-nav {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0;
}
.site-footer .footer-nav li,
.site-footer .footer-nav a { margin: 0; }
.site-footer .footer-contact {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
}
.site-footer .footer-contact > li { margin: 0; gap: 8px; }
.site-footer .footer-contact > li:nth-child(n+4) { display: none; }
.site-footer .footer-licence {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin: 58px 0 0;
}
@media (max-width: 900px) {
  .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
    padding: 22px 18px 16px;
  }
  .site-footer .footer-col:first-child {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 16px;
  }
  .site-footer .footer-col:nth-child(2) > h3:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 8px;
  }
  .site-footer .footer-nav {
    grid-column: 1;
    grid-row: 3;
    padding-bottom: 13px;
  }
  .site-footer .footer-licence {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,.2);
    padding: 12px 0 13px;
  }
  .site-footer .footer-col:nth-child(3) > h3 {
    grid-column: 1;
    grid-row: 5;
    border-top: 1px solid rgba(255,255,255,.2);
    padding-top: 13px;
    margin: 0 0 8px;
  }
  .site-footer .footer-contact {
    grid-column: 1;
    grid-row: 6;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .site-footer .footer-logo img { height: 44px; }
}


/* Match the main site's approved logo size and header gutters. */
:root { --header-height: 112px !important; }
.site-header .header-inner {
  width: min(100% - 48px, 1390px) !important;
  height: 112px !important;
  padding: 0 !important;
  margin-inline: auto !important;
}
.site-header .site-logo img.rb-logo-white,
.site-header .site-logo img.rb-logo-colour {
  width: auto !important;
  height: 96px !important;
  max-width: none !important;
  object-fit: contain !important;
}
.site-header .site-logo img.rb-logo-white { display: none !important; }
.site-header .site-logo img.rb-logo-colour { display: block !important; }
@media (max-width: 1100px) {
  :root { --header-height: 96px !important; }
  .site-header .header-inner { height: 96px !important; }
  .site-header .site-logo img.rb-logo-white,
  .site-header .site-logo img.rb-logo-colour { height: 92px !important; }
}
@media (max-width: 600px) {
  :root { --header-height: 84px !important; }
  .site-header .header-inner { width: min(100% - 26px, 1390px) !important; height: 84px !important; }
  .site-header .site-logo img.rb-logo-white,
  .site-header .site-logo img.rb-logo-colour { height: 80px !important; }
}

/* Keep the project photo and CTA in their existing two-column layout. */
[class$="-before-cta"],
[class$="-before-cta"] {
  background: #FFFFFF !important;
  background-image: none !important;
  border: 1px solid rgba(0, 58, 110, .18) !important;
  box-shadow: none !important;
  color: #003A6E !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 38px 42px !important;
}
[class$="-before-cta"] .project-cta-kicker,
[class$="-before-cta"] .project-cta-kicker {
  color: #003A6E !important;
  font: 700 12px/1.4 "Montserrat", Arial, sans-serif !important;
  letter-spacing: .11em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
}
[class$="-before-cta"] h3,
[class$="-before-cta"] h3 {
  color: #003A6E !important;
  font: 700 clamp(32px, 3.2vw, 44px)/1.13 var(--font-heading) !important;
  text-transform: none !important;
  margin: 0 !important;
}
[class$="-before-cta"] p,
[class$="-before-cta"] p {
  color: #003A6E !important;
  font: 400 17px/1.55 var(--font-body) !important;
  margin: 8px 0 0 !important;
  max-width: 600px !important;
}
[class$="-before-cta"] .project-cta-actions,
[class$="-before-cta"] .project-cta-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-top: 20px !important;
}
[class$="-before-cta"] a.project-cta-button,
[class$="-before-cta"] a.project-cta-button {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 15px 27px !important;
  background: #0078D6 !important;
  border: 2px solid #0078D6 !important;
  border-radius: 4px !important;
  color: #FFFFFF !important;
  font: 700 16px/1.2 var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background-color .2s ease, color .2s ease !important;
}
[class$="-before-cta"] a.project-cta-button:hover,
[class$="-before-cta"] a.project-cta-button:focus-visible,
[class$="-before-cta"] a.project-cta-button:hover,
[class$="-before-cta"] a.project-cta-button:focus-visible {
  background: #003A6E !important;
  border-color: #003A6E !important;
  color: #FFFFFF !important;
}
[class$="-before-cta"] a.project-cta-phone,
[class$="-before-cta"] a.project-cta-phone {
  display: inline !important;
  color: #003A6E !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font: 600 16px/1.4 var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
[class$="-before-cta"] a.project-cta-phone:hover,
[class$="-before-cta"] a.project-cta-phone:hover { text-decoration: underline !important; text-underline-offset: 4px !important; }
@media (max-width: 900px) {
  [class$="-before-cta"],
  [class$="-before-cta"] { height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; padding: 30px 24px !important; }
}
@media (max-width: 650px) {
  [class$="-before-cta"] h3,
  [class$="-before-cta"] h3 { font-size: 42px !important; }
  [class$="-before-cta"] .project-cta-actions,
  [class$="-before-cta"] .project-cta-actions { width: 100% !important; }
  [class$="-before-cta"] a.project-cta-button,
  [class$="-before-cta"] a.project-cta-button { width: 100% !important; }
}
