/*
 Theme Name:   GBE-N Theme
 Theme URI:    https://www.gben-staging.cc
 Description:  Custom standalone theme for Great British Energy - Nuclear. Uses the GBE-N design system. WCAG 2.2 AA compliant.
 Author:       Graeme & Graham - Grayling
 Author URI:   https://www.gben-staging.cc
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  gben-theme
*/


/* ==========================================================================
   GBE-N Design System — CSS
   Version: 1.0.0
   Source:  design-system.json (Figma — GBN-Copy-Mobile)
   Generated: 2026-03-17
   ========================================================================== */


/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* --- Primary Colours --- */
  --gben-color-energy-blue:    #003479;
  --gben-color-british-blue:   #3A76FF;
  --gben-color-sand:           #FFF5DF;

  /* --- Accent Colours --- */
  --gben-color-mulberry:       #7D0043;
  --gben-color-dandelion:      #FF9200;
  --gben-color-berry:          #E7363A;

  /* --- Neutrals --- */
  --gben-color-white:          #FFFFFF;
  --gben-color-black:          #000000;

  /* --- Text Colour --- */
  --gben-color-text:           #131927;

  /* --- Energy Blue Tints --- */
  --gben-tint-energy-blue-100: #003479;
  --gben-tint-energy-blue-75:  #40679B;
  --gben-tint-energy-blue-50:  #809ABC;
  --gben-tint-energy-blue-20:  #CCD3E0;
  --gben-tint-energy-blue-5:   #F3F5F8;

  /* --- British Blue Tints --- */
  --gben-tint-british-blue-100: #3A76FF;
  --gben-tint-british-blue-75:  #6B98FF;
  --gben-tint-british-blue-50:  #9DBBFF;
  --gben-tint-british-blue-20:  #D8E4FF;
  --gben-tint-british-blue-5:   #F5F8FF;

  /* --- Mulberry Tints --- */
  --gben-tint-mulberry-100:    #7D0043;
  --gben-tint-mulberry-75:     #9E4072;
  --gben-tint-mulberry-50:     #BE80A1;
  --gben-tint-mulberry-20:     #E5CCDA;
  --gben-tint-mulberry-5:      #F9F3F6;

  /* --- Dandelion Tints --- */
  --gben-tint-dandelion-100:   #FF9200;
  --gben-tint-dandelion-75:    #FFAD40;
  --gben-tint-dandelion-50:    #FFC980;
  --gben-tint-dandelion-20:    #FFEACC;
  --gben-tint-dandelion-5:     #FFF9F3;

  /* --- Berry Tints --- */
  --gben-tint-berry-100:       #E7363A;
  --gben-tint-berry-75:        #ED686B;
  --gben-tint-berry-50:        #F39B9D;
  --gben-tint-berry-20:        #FAD6D7;
  --gben-tint-berry-5:         #FEF5F5;

  /* --- Black Tints --- */
  --gben-tint-black-100:       #000000;
  --gben-tint-black-75:        #404040;
  --gben-tint-black-50:        #808080;
  --gben-tint-black-20:        #CCCCCC;
  --gben-tint-black-5:         #F3F3F3;

  /* --- Component-Specific Colours --- */
  --gben-footer-social-color:  #6383AC;
  --gben-mobile-search-bg:     #356099;

  /* --- Additional Energy Blue Shades (Footer Hierarchy) --- */
  --gben-shade-energy-blue-1:  #00050B;
  --gben-shade-energy-blue-3:  #000A18;
  --gben-shade-energy-blue-4:  #00122A;
  --gben-shade-energy-blue-5:  #002049;
  --gben-shade-energy-blue-6:  #002A61;
  --gben-shade-energy-blue-7:  #003479;

  /* --- Typography --- */
  --gben-font-family:          'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gben-font-weight-regular:  400;
  --gben-font-weight-medium:   500;
  --gben-font-weight-bold:     700;

  /* Desktop Typography */
  --gben-h1-size:              44px;
  --gben-h1-weight:            700;
  --gben-h1-line-height:       1.15;
  --gben-h1-letter-spacing:    0;

  --gben-h2-size:              30px;
  --gben-h2-weight:            700;
  --gben-h2-line-height:       1.3;
  --gben-h2-letter-spacing:    0;

  --gben-h3-size:              24px;
  --gben-h3-weight:            700;
  --gben-h3-line-height:       1.35;
  --gben-h3-letter-spacing:    0;

  --gben-p1-size:              20px;
  --gben-p1-weight:            400;
  --gben-p1-line-height:       1.3;
  --gben-p1-letter-spacing:    0;

  --gben-p2-size:              16px;
  --gben-p2-weight:            400;
  --gben-p2-line-height:       1.3;
  --gben-p2-letter-spacing:    0;

  --gben-btn-font-size:        20px;
  --gben-btn-font-weight:      400;
  --gben-btn-line-height:      1.3;
  --gben-btn-letter-spacing:   0;

  --gben-footer-font-size:     14px;
  --gben-footer-font-weight:   400;
  --gben-footer-line-height:   24px;
  --gben-footer-letter-spacing: 0;

  /* --- Border Radius --- */
  --gben-radius-desktop:       10px;
  --gben-radius-mobile:        6px;

  /* --- Grid --- */
  --gben-grid-columns:         12;
  --gben-grid-max-width:       1080px;
  --gben-grid-gutter-mobile:   16px;
  --gben-grid-gutter-tablet:   24px;
  --gben-grid-gutter-desktop:  24px;
  --gben-grid-padding-mobile:  16px;
  --gben-grid-padding-tablet:  24px;
  --gben-grid-padding-desktop: 24px;

  /* --- Breakpoints (for reference — used in media queries below) --- */
  --gben-bp-mobile-max:        575px;
  --gben-bp-tablet-sm-min:     576px;
  --gben-bp-tablet-sm-max:     767px;
  --gben-bp-tablet-min:        768px;
  --gben-bp-tablet-max:        991px;
  --gben-bp-desktop-min:       992px;
  --gben-bp-desktop-max:       1199px;
  --gben-bp-desktop-lg-min:    1200px;

  /* --- Button Component --- */
  --gben-btn-height:           44px;
  --gben-btn-padding-top:      8px;
  --gben-btn-padding-bottom:   9px;
  --gben-btn-padding-left:     12px;
  --gben-btn-padding-right:    12px;
  --gben-btn-border-radius:    10px;
  --gben-btn-border-width:     1.5px;
  --gben-btn-gap:              10px;

  /* --- Button Disabled Colour --- */
  --gben-btn-disabled-color:   #CCD6E4;

  /* --- Navigation --- */
  --gben-nav-height:           90px;
  --gben-nav-bg:               var(--gben-color-white);
  --gben-nav-link-size:        14px;
  --gben-nav-link-line-height: 20px;
  --gben-nav-link-weight:      700;
  --gben-nav-link-letter-spacing: -0.01em;
  --gben-nav-link-gap:         17px;
  --gben-nav-link-color:       var(--gben-color-text);

  /* --- Search Bar (Expanded) --- */
  --gben-search-bar-height:    87px;
  --gben-search-bar-bg:        var(--gben-color-energy-blue);
  --gben-search-input-width:   876px;
  --gben-search-input-height:  60px;

  /* --- Footer --- */
  --gben-footer-bg:            var(--gben-shade-energy-blue-4);
  --gben-footer-text-color:    var(--gben-color-white);
  --gben-footer-text-opacity:  0.7;
  --gben-footer-copyright-size: 12px;
  --gben-footer-copyright-line-height: 20px;
  --gben-footer-copyright-letter-spacing: 0.02em;
  --gben-footer-social-gap:    15px;
  --gben-footer-policy-gap:    27px;

  /* --- Modal --- */
  --gben-modal-bg:             #003479;
  --gben-modal-text-color:     #FFFFFF;
  --gben-modal-border-radius:  10px;
}



h1,
.h1 {
  font-size: var(--gben-h1-size);
  font-weight: var(--gben-h1-weight);
  line-height: var(--gben-h1-line-height);
  letter-spacing: var(--gben-h1-letter-spacing);
  font-family: var(--gben-font-family);
  margin-top: 0;
}

h2,
.h2 {
  font-size: var(--gben-h2-size);
  font-weight: var(--gben-h2-weight);
  line-height: var(--gben-h2-line-height);
  letter-spacing: var(--gben-h2-letter-spacing);
  font-family: var(--gben-font-family);
  margin-top: 0;
}

h3,
.h3 {
  font-size: var(--gben-h3-size);
  font-weight: var(--gben-h3-weight);
  line-height: var(--gben-h3-line-height);
  letter-spacing: var(--gben-h3-letter-spacing);
  font-family: var(--gben-font-family);
}

.p1-body {
  font-size: var(--gben-p1-size);
  font-weight: var(--gben-p1-weight);
  line-height: var(--gben-p1-line-height);
  letter-spacing: var(--gben-p1-letter-spacing);
  font-family: var(--gben-font-family);
}

.p2-body {
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-p2-weight);
  line-height: var(--gben-p2-line-height);
  letter-spacing: var(--gben-p2-letter-spacing);
  font-family: var(--gben-font-family);
}

.small-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  font-family: var(--gben-font-family);
}

.btn-text {
  font-size: var(--gben-btn-font-size);
  font-weight: var(--gben-btn-font-weight);
  line-height: var(--gben-btn-line-height);
  letter-spacing: var(--gben-btn-letter-spacing);
  font-family: var(--gben-font-family);
}

.footer-text {
  font-size: var(--gben-footer-font-size);
  font-weight: var(--gben-footer-font-weight);
  line-height: var(--gben-footer-line-height);
  letter-spacing: var(--gben-footer-letter-spacing);
  font-family: var(--gben-font-family);
}


/* --- Typography — Mobile Overrides (max-width: 767px) --- */

@media (max-width: 767px) {
  h1,
  .h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: 0;
  }

  h2,
  .h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: 0;
  }

  h3,
  .h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .h3-nav {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: 0;
  }

  h4,
  .h4 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.14;
    letter-spacing: 0;
  }

  h5,
  .h5 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: 0;
  }

  .p1-body {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .p2-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .p3-body {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .p4-body {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .btn-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.7px;
    letter-spacing: 0;
  }

  .footer-text {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
  }
}


/* ==========================================================================
   4. 12-Column Grid System
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--gben-grid-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gben-grid-padding-mobile);
  padding-right: var(--gben-grid-padding-mobile);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
    padding-left: var(--gben-grid-padding-tablet);
    padding-right: var(--gben-grid-padding-tablet);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
    padding-left: var(--gben-grid-padding-desktop);
    padding-right: var(--gben-grid-padding-desktop);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1080px;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gben-grid-gutter-mobile);
}

@media (min-width: 576px) {
  .grid {
    grid-template-columns: repeat(8, 1fr);
    gap: var(--gben-grid-gutter-tablet);
  }
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

@media (min-width: 992px) {
  .grid {
    gap: var(--gben-grid-gutter-desktop);
  }
}

/* --- Column Spans — Mobile-first (all stack full-width by default) --- */

.col-1, .col-2, .col-3, .col-4,
.col-5, .col-6, .col-7, .col-8,
.col-9, .col-10, .col-11, .col-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4,
.col-md-5, .col-md-6, .col-md-7, .col-md-8,
.col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4,
.col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8,
.col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  grid-column: 1 / -1;
}

/* --- Base column spans (apply at all sizes above mobile) --- */

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* On mobile (up to 575px), all columns stack full-width */
@media (max-width: 575px) {
  .col-1, .col-2, .col-3, .col-4,
  .col-5, .col-6, .col-7, .col-8,
  .col-9, .col-10, .col-11, .col-12 {
    grid-column: 1 / -1;
  }
}

/* --- Tablet (768px+) responsive variants --- */

@media (min-width: 768px) {
  .col-md-1  { grid-column: span 1; }
  .col-md-2  { grid-column: span 2; }
  .col-md-3  { grid-column: span 3; }
  .col-md-4  { grid-column: span 4; }
  .col-md-5  { grid-column: span 5; }
  .col-md-6  { grid-column: span 6; }
  .col-md-7  { grid-column: span 7; }
  .col-md-8  { grid-column: span 8; }
  .col-md-9  { grid-column: span 9; }
  .col-md-10 { grid-column: span 10; }
  .col-md-11 { grid-column: span 11; }
  .col-md-12 { grid-column: span 12; }
}

/* --- Desktop (992px+) responsive variants --- */

@media (min-width: 992px) {
  .col-lg-1  { grid-column: span 1; }
  .col-lg-2  { grid-column: span 2; }
  .col-lg-3  { grid-column: span 3; }
  .col-lg-4  { grid-column: span 4; }
  .col-lg-5  { grid-column: span 5; }
  .col-lg-6  { grid-column: span 6; }
  .col-lg-7  { grid-column: span 7; }
  .col-lg-8  { grid-column: span 8; }
  .col-lg-9  { grid-column: span 9; }
  .col-lg-10 { grid-column: span 10; }
  .col-lg-11 { grid-column: span 11; }
  .col-lg-12 { grid-column: span 12; }

  .section .grid > .col-lg-6:first-child {
    padding-right: 30px;
  }
}


/* ==========================================================================
   5. Button Styles
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gben-btn-gap);
  height: var(--gben-btn-height);
  padding: var(--gben-btn-padding-top) var(--gben-btn-padding-right) var(--gben-btn-padding-bottom) var(--gben-btn-padding-left);
  font-family: var(--gben-font-family);
  font-size: var(--gben-btn-font-size);
  font-weight: var(--gben-btn-font-weight);
  line-height: var(--gben-btn-line-height);
  letter-spacing: var(--gben-btn-letter-spacing);
  border-width: var(--gben-btn-border-width);
  border-style: solid;
  border-radius: var(--gben-btn-border-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  outline: none; /* Reset browser default; custom focus rings on :focus-visible */
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
}

/* Mobile button adjustments */
@media (max-width: 767px) {
  .btn {
    border-radius: 6px;
    font-size: 16px;
    line-height: 19.7px;
  }
}

/* --- Light Background Variant --- */

.btn-light {
  background-color: transparent;
  border-color: var(--gben-color-text);
  color: var(--gben-color-text);
}

.btn-light:hover {
  background-color: var(--gben-color-energy-blue);
  border-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
}

.btn-light:active {
  background-color: transparent;
  border-color: var(--gben-color-text);
  color: var(--gben-color-text);
}

.btn-light:focus,
.btn-light:focus-visible {
  background-color: transparent;
  border-color: var(--gben-color-text);
  color: var(--gben-color-text);
  outline: 2px solid var(--gben-color-text);
  outline-offset: 2px;
}

.btn-light:disabled,
.btn-light[disabled],
.btn-light.disabled {
  background-color: transparent;
  border-color: var(--gben-btn-disabled-color);
  color: var(--gben-btn-disabled-color);
  opacity: 0.5;
}

.btn-light.loading {
  background-color: var(--gben-color-energy-blue);
  border-color: var(--gben-color-energy-blue);
  color: transparent;
  pointer-events: none;
  position: relative;
}
.btn-light.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gben-color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

/* --- Dark Background Variant --- */

.btn-dark {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: var(--gben-color-white);
}

.btn-dark:hover {
  background-color: var(--gben-color-white);
  border-color: var(--gben-color-white);
  color: var(--gben-color-energy-blue);
}

.btn-dark:active {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: var(--gben-color-white);
}

.btn-dark:focus,
.btn-dark:focus-visible {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: var(--gben-color-white);
  outline: 2px solid var(--gben-color-white);
  outline-offset: 2px;
}

.btn-dark:disabled,
.btn-dark[disabled],
.btn-dark.disabled {
  background-color: transparent;
  border-color: var(--gben-btn-disabled-color);
  color: var(--gben-btn-disabled-color);
}

.btn-dark.loading {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: transparent;
  pointer-events: none;
  position: relative;
}
.btn-dark.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gben-color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

/* --- Back to Top Button --- */

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-width: 1.5px;
  border-style: solid;
  background-color: transparent;
  border-color: var(--gben-color-text);
  color: var(--gben-color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-back-to-top:hover {
  background-color: var(--gben-color-energy-blue);
  border-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
}

.btn-back-to-top:active {
  background-color: transparent;
  border-color: var(--gben-color-text);
  color: var(--gben-color-text);
}

.btn-back-to-top:focus,
.btn-back-to-top:focus-visible {
  background-color: transparent;
  border-color: var(--gben-color-text);
  color: var(--gben-color-text);
  outline: 2px solid var(--gben-color-text);
  outline-offset: 2px;
}

.btn-back-to-top:disabled {
  background-color: transparent;
  border-color: var(--gben-btn-disabled-color);
  color: var(--gben-btn-disabled-color);
}

.btn-back-to-top.loading {
  background-color: var(--gben-color-energy-blue);
  border-color: var(--gben-color-energy-blue);
  color: transparent;
  pointer-events: none;
  position: relative;
}
.btn-back-to-top.loading svg {
  visibility: hidden;
}
.btn-back-to-top.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gben-color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

/* Back to top — dark background variant */
.btn-back-to-top--dark {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: var(--gben-color-white);
}

.btn-back-to-top--dark:hover {
  background-color: var(--gben-color-white);
  border-color: var(--gben-color-white);
  color: var(--gben-color-energy-blue);
}

.btn-back-to-top--dark:active {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: var(--gben-color-white);
}

.btn-back-to-top--dark:focus,
.btn-back-to-top--dark:focus-visible {
  background-color: transparent;
  border-color: var(--gben-color-white);
  color: var(--gben-color-white);
  outline: 2px solid var(--gben-color-white);
  outline-offset: 2px;
}

.btn-back-to-top--dark:disabled {
  background-color: transparent;
  border-color: var(--gben-btn-disabled-color);
  color: var(--gben-btn-disabled-color);
}

.btn-back-to-top--dark.loading {
  background-color: var(--gben-color-white);
  border-color: var(--gben-color-white);
  color: transparent;
  pointer-events: none;
  position: relative;
}
.btn-back-to-top--dark.loading svg {
  visibility: hidden;
}
.btn-back-to-top--dark.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gben-color-energy-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}


/* ==========================================================================
   6. Navigation Base Styles
   ========================================================================== */

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gben-nav-link-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--gben-font-family);
  font-size: var(--gben-nav-link-size);
  font-weight: var(--gben-nav-link-weight);
  line-height: var(--gben-nav-link-line-height);
  letter-spacing: var(--gben-nav-link-letter-spacing);
  color: var(--gben-nav-link-color);
  text-decoration: none;
}


/* ==========================================================================
   7. Footer Styles
   ========================================================================== */

.site-footer {
  background-color: var(--gben-footer-bg);
  color: var(--gben-footer-text-color);
  font-family: var(--gben-font-family);
}

.site-footer__text {
  font-size: var(--gben-footer-font-size);
  font-weight: var(--gben-footer-font-weight);
  line-height: var(--gben-footer-line-height);
  letter-spacing: var(--gben-footer-letter-spacing);
  color: var(--gben-footer-text-color);
  opacity: var(--gben-footer-text-opacity);
}

.site-footer__copyright {
  font-size: var(--gben-footer-copyright-size);
  font-weight: var(--gben-font-weight-regular);
  line-height: var(--gben-footer-copyright-line-height);
  letter-spacing: var(--gben-footer-copyright-letter-spacing);
  color: var(--gben-footer-text-color);
  opacity: var(--gben-footer-text-opacity);
}

.site-footer__social-icons {
  display: flex;
  align-items: center;
  gap: var(--gben-footer-social-gap);
}

.site-footer__social-icons a {
  color: var(--gben-color-white);
  text-decoration: none;
}

.site-footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--gben-footer-policy-gap);
}

.site-footer__legal-links a {
  color: var(--gben-footer-text-color);
  opacity: var(--gben-footer-text-opacity);
  text-decoration: none;
}

.site-footer__policy-links {
  display: flex;
  align-items: center;
  gap: var(--gben-footer-policy-gap);
}

.site-footer__policy-links a {
  color: var(--gben-footer-text-color);
  opacity: var(--gben-footer-text-opacity);
  text-decoration: none;
}

/* Mobile footer overrides */
@media (max-width: 767px) {
  .site-footer__text {
    font-size: 12px;
    line-height: 1.2;
  }

  .site-footer__copyright {
    font-size: 12px;
    line-height: 1.2;
  }
}


/* ==========================================================================
   8. Modal Styles
   ========================================================================== */

.modal {
  background-color: var(--gben-modal-bg);
  color: var(--gben-modal-text-color);
  border-radius: var(--gben-modal-border-radius);
  position: relative;
  font-family: var(--gben-font-family);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gben-color-white);
  cursor: pointer;
  padding: 0;
}

.modal__heading {
  color: var(--gben-color-white);
  font-weight: var(--gben-font-weight-bold);
}

.modal__body {
  color: var(--gben-color-white);
  font-weight: var(--gben-font-weight-regular);
}

.modal__actions {
  display: flex;
  gap: var(--gben-btn-gap);
}


/* ==========================================================================
   9. Utility Classes
   ========================================================================== */

/* --- Text Colour Utilities --- */

.text-white        { color: var(--gben-color-white); }
.text-black        { color: var(--gben-color-black); }
.text-primary      { color: var(--gben-color-text); }
.text-energy-blue  { color: var(--gben-color-energy-blue); }
.text-british-blue { color: var(--gben-color-british-blue); }
.text-sand         { color: var(--gben-color-sand); }
.text-mulberry     { color: var(--gben-color-mulberry); }
.text-dandelion    { color: var(--gben-color-dandelion); }
.text-berry        { color: var(--gben-color-berry); }

/* --- Background Colour Utilities --- */

.bg-white          { background-color: var(--gben-color-white); }
.bg-black          { background-color: var(--gben-color-black); }
.bg-energy-blue    { background-color: var(--gben-color-energy-blue); }
.bg-british-blue   { background-color: var(--gben-color-british-blue); }
.bg-sand           { background-color: var(--gben-color-sand); }
.bg-mulberry       { background-color: var(--gben-color-mulberry); }
.bg-dandelion      { background-color: var(--gben-color-dandelion); }
.bg-berry          { background-color: var(--gben-color-berry); }

/* --- Energy Blue Tint Backgrounds --- */

.bg-energy-blue-tint-100 { background-color: var(--gben-tint-energy-blue-100); }
.bg-energy-blue-tint-75  { background-color: var(--gben-tint-energy-blue-75); }
.bg-energy-blue-tint-50  { background-color: var(--gben-tint-energy-blue-50); }
.bg-energy-blue-tint-20  { background-color: var(--gben-tint-energy-blue-20); }
.bg-energy-blue-tint-5   { background-color: var(--gben-tint-energy-blue-5); }

/* --- British Blue Tint Backgrounds --- */

.bg-british-blue-tint-100 { background-color: var(--gben-tint-british-blue-100); }
.bg-british-blue-tint-75  { background-color: var(--gben-tint-british-blue-75); }
.bg-british-blue-tint-50  { background-color: var(--gben-tint-british-blue-50); }
.bg-british-blue-tint-20  { background-color: var(--gben-tint-british-blue-20); }
.bg-british-blue-tint-5   { background-color: var(--gben-tint-british-blue-5); }

/* --- Mulberry Tint Backgrounds --- */

.bg-mulberry-tint-100 { background-color: var(--gben-tint-mulberry-100); }
.bg-mulberry-tint-75  { background-color: var(--gben-tint-mulberry-75); }
.bg-mulberry-tint-50  { background-color: var(--gben-tint-mulberry-50); }
.bg-mulberry-tint-20  { background-color: var(--gben-tint-mulberry-20); }
.bg-mulberry-tint-5   { background-color: var(--gben-tint-mulberry-5); }

/* --- Dandelion Tint Backgrounds --- */

.bg-dandelion-tint-100 { background-color: var(--gben-tint-dandelion-100); }
.bg-dandelion-tint-75  { background-color: var(--gben-tint-dandelion-75); }
.bg-dandelion-tint-50  { background-color: var(--gben-tint-dandelion-50); }
.bg-dandelion-tint-20  { background-color: var(--gben-tint-dandelion-20); }
.bg-dandelion-tint-5   { background-color: var(--gben-tint-dandelion-5); }

/* --- Berry Tint Backgrounds --- */

.bg-berry-tint-100 { background-color: var(--gben-tint-berry-100); }
.bg-berry-tint-75  { background-color: var(--gben-tint-berry-75); }
.bg-berry-tint-50  { background-color: var(--gben-tint-berry-50); }
.bg-berry-tint-20  { background-color: var(--gben-tint-berry-20); }
.bg-berry-tint-5   { background-color: var(--gben-tint-berry-5); }

/* --- Black Tint Backgrounds --- */

.bg-black-tint-100 { background-color: var(--gben-tint-black-100); }
.bg-black-tint-75  { background-color: var(--gben-tint-black-75); }
.bg-black-tint-50  { background-color: var(--gben-tint-black-50); }
.bg-black-tint-20  { background-color: var(--gben-tint-black-20); }
.bg-black-tint-5   { background-color: var(--gben-tint-black-5); }

/* --- Energy Blue Shade Backgrounds (Footer Hierarchy) --- */

.bg-energy-blue-shade-1 { background-color: var(--gben-shade-energy-blue-1); }
.bg-energy-blue-shade-3 { background-color: var(--gben-shade-energy-blue-3); }
.bg-energy-blue-shade-4 { background-color: var(--gben-shade-energy-blue-4); }
.bg-energy-blue-shade-5 { background-color: var(--gben-shade-energy-blue-5); }
.bg-energy-blue-shade-6 { background-color: var(--gben-shade-energy-blue-6); }
.bg-energy-blue-shade-7 { background-color: var(--gben-shade-energy-blue-7); }

/* --- Border Radius Utilities --- */

.rounded-desktop {
  border-radius: var(--gben-radius-desktop);
}

.rounded-mobile {
  border-radius: var(--gben-radius-mobile);
}

.rounded-edge-bleed-desktop {
  border-radius: 10px 0 0 10px;
}

.rounded-edge-bleed-mobile {
  border-radius: 6px 0 0 6px;
}





/* ==========================================================================
   2. Base Reset / Normalize
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--gben-font-family);
  font-weight: var(--gben-font-weight-regular);
  color: var(--gben-color-text);
  background-color: var(--gben-color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gben-color-energy-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gben-color-text);
}

/* Focus styles for accessibility (WCAG 2.2 AA) */
:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 8px 16px;
  background-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-font-weight-bold);
  text-decoration: none;
  border-radius: 0 0 var(--gben-radius-mobile) 0;
}

.skip-to-content:focus {
  left: 0;
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}


/* ==========================================================================
   3. Navigation Styles
   ========================================================================== */

.site-header-custom {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--gben-nav-bg);
}

.site-header-custom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--gben-nav-height);
}

/* Wider header container so logo text aligns with body content (desktop only) */
@media (min-width: 1200px) {
  .site-header-custom .container {
    max-width: 1182px;
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-img {
  height: 40px;
  width: auto;
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* Desktop navigation links */
.nav-link {
  font-family: var(--gben-font-family);
  font-size: var(--gben-nav-link-size);
  font-weight: var(--gben-nav-link-weight);
  line-height: var(--gben-nav-link-line-height);
  letter-spacing: var(--gben-nav-link-letter-spacing);
  color: var(--gben-nav-link-color);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gben-color-energy-blue);
  border-bottom-color: var(--gben-color-energy-blue);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--gben-color-energy-blue);
  border-bottom-color: var(--gben-color-energy-blue);
}

/* Nav actions (search icon) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop nav hidden on mobile */
.desktop-nav {
  display: none;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 20px;
  }
}

/* Search toggle button */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gben-nav-link-color);
  transition: color 0.2s ease;
}

.search-toggle:hover {
  color: var(--gben-color-energy-blue);
}

.search-toggle:focus,
.search-toggle:active,
.search-toggle:focus-visible {
  background: none !important;
  border: none !important;
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
  box-shadow: none !important;
}

/* Remove any GP/browser defaults on button */
button.search-toggle {
  background-color: transparent !important;
  border: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.search-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gben-color-energy-blue);
  background-color: transparent;
  border: 2px solid var(--gben-color-energy-blue);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-right: 8px;
}

.lang-toggle:hover {
  background-color: var(--gben-color-energy-blue);
  color: #fff;
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* Mobile language toggle - styled as regular nav link */
.mobile-lang-toggle {
  padding: 0;
}

.mobile-lang-toggle a {
  display: inline-block;
  font-family: var(--gben-font-family);
  font-size: 24px;
  font-weight: var(--gben-font-weight-regular);
  color: var(--gben-color-white);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 8px 0;
}

.mobile-lang-toggle a:hover {
  color: var(--gben-color-white);
  opacity: 0.8;
}

/* Outline button for dark backgrounds (white border, white text) */
.btn-outline-light {
  display: inline-block;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: var(--gben-font-weight-medium);
  font-family: var(--gben-font-family);
  color: var(--gben-color-white);
  background-color: transparent;
  border: 2px solid var(--gben-color-white);
  border-radius: var(--gben-radius-desktop);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-light:hover {
  background-color: var(--gben-color-white);
  color: var(--gben-color-energy-blue);
  text-decoration: none;
}

.btn-outline-light:focus,
.btn-outline-light:focus-visible {
  outline: 2px solid var(--gben-color-white);
  outline-offset: 2px;
}

.btn-outline-light:active {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--gben-color-energy-blue);
}

/* Search bar (expanded) */
.search-bar-expanded {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--gben-search-bar-bg);
  padding: 0;
  display: none;
  align-items: center;
  z-index: 99;
  animation: slideDown 0.3s ease;
  border-bottom: none;
}

.search-bar-expanded.is-active {
  display: flex;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-bar-expanded label {
  font-family: var(--gben-font-family);
  font-weight: var(--gben-font-weight-bold);
  font-size: 30px;
  line-height: 1;
  color: var(--gben-color-white);
  white-space: nowrap;
}

.search-bar-expanded input[type="search"]::-webkit-search-cancel-button,
.search-bar-expanded input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-bar-expanded input[type="search"] {
  flex: 1;
  max-width: 876px;
  height: 60px;
  background-color: var(--gben-color-white);
  border: none;
  border-radius: 0;
  padding: 8px 48px 8px 20px;
  font-family: var(--gben-font-family);
  font-size: 18px;
  color: var(--gben-color-text);
}

/* Search bar inner layout */
.search-bar-expanded .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.search-bar-expanded .search-form-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.search-bar-expanded .search-form-inner .search-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.search-bar-expanded .search-form-inner .search-toggle svg {
  stroke: var(--gben-color-text);
  width: 22px;
  height: 22px;
}

.search-bar-expanded .search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gben-color-white);
  padding: 4px;
  display: flex;
  align-items: center;
}

.search-bar-expanded .search-close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}


/* ==========================================================================
   4. Hamburger / Mobile Menu Toggle
   ========================================================================== */

.hamburger-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 200;
  -webkit-appearance: none;
  appearance: none;
}

.hamburger-toggle:hover,
.hamburger-toggle:active {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hamburger-toggle:focus {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

.hamburger-toggle:focus:not(:focus-visible) {
  outline: none;
}

.hamburger-toggle:focus-visible {
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .hamburger-toggle {
    display: none;
  }
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gben-color-text);
  border-radius: 1px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }

/* Animate to X when menu is open */
.hamburger-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}


/* ==========================================================================
   5. Mobile Menu (slides from top)
   ========================================================================== */

/* ==========================================================================
   Mobile Menu — Slides down from header, auto-height, page visible below
   ========================================================================== */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  display: none;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  display: block;
}

/* White header bar inside menu (logo + X) */
.mobile-menu-header {
  background-color: var(--gben-color-white);
  min-height: 70px;
}

/* Mobile menu header layout */
.mobile-menu-header > .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: auto !important;
  padding: 16px !important;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--gben-color-text);
  -webkit-appearance: none;
  appearance: none;
}

/* Mobile menu close button reset */
.mobile-menu-close:hover,
.mobile-menu-close:active {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.mobile-menu-close:focus {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

.mobile-menu-close:focus:not(:focus-visible) {
  outline: none;
}

.mobile-menu-close:focus-visible {
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* Energy Blue menu body — auto height, not full screen */
.mobile-menu-body {
  background-color: var(--gben-color-energy-blue);
  padding: 54px 66px 54px 66px;
}

/* Mobile nav links */
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.mobile-nav-list > li {
  border-bottom: none;
}

.mobile-menu-body a.mobile-nav-link,
a.mobile-nav-link {
  display: inline-block;
  width: auto;
  padding: 8px 0;
  font-family: var(--gben-font-family);
  font-size: 24px;
  font-weight: var(--gben-font-weight-regular);
  line-height: 1.3;
  color: var(--gben-color-white) !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mobile-menu-body a.mobile-nav-link:hover,
a.mobile-nav-link:hover {
  color: var(--gben-color-white) !important;
  opacity: 0.8;
  text-decoration: none;
}

.mobile-menu-body a.mobile-nav-link:visited,
a.mobile-nav-link:visited {
  color: var(--gben-color-white) !important;
}

/* Active page: bold + underlined */
.mobile-menu-body a.mobile-nav-link[aria-current="page"],
a.mobile-nav-link[aria-current="page"] {
  font-weight: var(--gben-font-weight-bold);
  color: var(--gben-color-white) !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Sub-section toggle */
.mobile-nav-link .expand-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  stroke: var(--gben-color-white);
}

.mobile-nav-link[aria-expanded="true"] .expand-icon {
  transform: rotate(180deg);
}

/* Sub-section list */
.mobile-sub-nav {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 16px;
  display: none;
}

.mobile-sub-nav.is-expanded {
  display: block;
}

.mobile-sub-nav a {
  display: block;
  padding: 10px 0;
  font-family: var(--gben-font-family);
  font-size: 16px;
  font-weight: var(--gben-font-weight-regular);
  color: var(--gben-color-white);
  text-decoration: none;
}

.mobile-sub-nav a:hover {
  opacity: 0.8;
}

/* Mobile search bar */
.mobile-search {
  margin-top: 35px;
  padding: 0;
  border-top: none;
}

.mobile-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-menu-body .mobile-search input[type="search"].mobile-search-input,
input.mobile-search-input {
  width: 100%;
  height: 46px;
  padding: 8px 46px 8px 16px;
  font-family: var(--gben-font-family);
  font-size: 24px;
  color: var(--gben-color-white) !important;
  background-color: var(--gben-mobile-search-bg) !important;
  background: var(--gben-mobile-search-bg) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-menu-body .mobile-search input[type="search"].mobile-search-input::placeholder,
input.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 24px;
  opacity: 1;
}

.mobile-search-input:focus {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

.mobile-search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--gben-color-white);
  -webkit-appearance: none;
  appearance: none;
}

.mobile-search-submit:focus-visible {
  outline: 2px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* When search is focused, fade other menu items */
.mobile-menu.search-focused .mobile-nav-list {
  opacity: 0.3;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* Mobile menu backdrop / body lock */
body.mobile-menu-open {
  overflow: hidden;
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ==========================================================================
   6. Section / Layout Helpers
   ========================================================================== */

.section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 64px 0;
  }
}

@media (min-width: 992px) {
  .section {
    padding: 80px 0;
  }
}

/* Full-bleed section (edge to edge colour, constrained content) */
.section-full {
  width: 100%;
}

/* Vertically center children in a grid cell */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Align items start */
.items-start {
  align-items: flex-start;
}

/* Align items center within grid */
.grid.items-center {
  align-items: center;
}

/* Gap override for tighter layouts */
.gap-0 { gap: 0; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 48px; }


/* ==========================================================================
   7. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  overflow: hidden;
  padding: 64px 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0;
  }
}

@media (min-width: 992px) {
  .hero {
    padding: 100px 0;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--gben-color-energy-blue);
  opacity: 0.85;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero h1 {
  color: var(--gben-color-text);
  margin: 0 0 16px;
}

.hero .p1-body {
  color: var(--gben-color-text);
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}


/* ==========================================================================
   8. CTA / Card Sections
   ========================================================================== */

.cta-card {
  padding: 32px;
  border-radius: var(--gben-radius-desktop);
}

@media (max-width: 767px) {
  .cta-card {
    padding: 24px;
    border-radius: var(--gben-radius-mobile);
  }
}

.cta-card h2 {
  margin: 0 0 12px;
}

.cta-card p {
  margin: 0 0 24px;
}

/* Image placeholder */
.image-placeholder {
  background-color: var(--gben-tint-black-5);
  border: 2px dashed var(--gben-tint-black-20);
  border-radius: var(--gben-radius-desktop);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--gben-tint-black-75); /* #404040 for better contrast */
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
}

@media (max-width: 767px) {
  .image-placeholder {
    border-radius: var(--gben-radius-mobile);
    min-height: 160px;
  }
}


/* ==========================================================================
   9. Footer Styles (extends design system base)
   ========================================================================== */

/* --- Shared footer styles --- */

.site-footer-custom {
  font-family: var(--gben-font-family);
  color: var(--gben-footer-text-color);
}

.footer-logo-img {
  display: block;
  width: 193px;
  height: auto;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--gben-footer-social-gap);
}

.footer-social a {
  color: var(--gben-footer-social-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.7;
}

.footer-social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.footer-link {
  font-family: var(--gben-font-family);
  font-size: var(--gben-footer-copyright-size);
  font-weight: var(--gben-font-weight-regular);
  line-height: var(--gben-footer-copyright-line-height);
  letter-spacing: var(--gben-footer-copyright-letter-spacing);
  color: var(--gben-footer-text-color);
  opacity: var(--gben-footer-text-opacity);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.7;
  text-decoration: underline;
  color: var(--gben-footer-text-color);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
  font-size: var(--gben-footer-copyright-size);
  font-weight: var(--gben-font-weight-regular);
  line-height: var(--gben-footer-copyright-line-height);
  letter-spacing: var(--gben-footer-copyright-letter-spacing);
  color: var(--gben-footer-text-color);
  opacity: var(--gben-footer-text-opacity);
  margin: 0;
}

/* --- Footer Show/Hide: Mobile-first approach --- */
/* Base: show mobile, hide desktop */
footer.footer-desktop { display: none !important; }
footer.footer-mobile  { display: block !important; }

/* Desktop: show desktop, hide mobile */
@media (min-width: 768px) {
  footer.footer-desktop { display: block !important; }
  footer.footer-mobile  { display: none !important; }
}

/* --- Desktop Footer Layout --- */

.footer-desktop {
  background-color: #001129;
  padding: 55px 0 40px;
}

.footer-desktop .footer-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-desktop .footer-logo-img {
  margin: 0;
  width: 164px;
}

/* WCAG Fix: Footer legal links now use nav > ul > li structure */
.footer-desktop .footer-legal-links {
  margin-left: auto;
}

.footer-desktop .footer-legal-links ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-desktop .footer-legal-links li {
  margin: 0;
  padding: 0;
}

.footer-desktop .footer-legal-links .footer-link {
  opacity: 0.7;
}

.footer-desktop .footer-social {
  justify-content: flex-end;
  gap: 15px;
  margin-left: 60px;
  align-self: flex-start;
  margin-top: 2px;
}

.footer-desktop .footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-desktop .footer-social a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-desktop .footer-divider {
  margin: 40px 0 25px;
}

.footer-desktop .footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-desktop .footer-copyright {
  padding-bottom: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

/* WCAG Fix: Footer policy links now use nav > ul > li structure */
.footer-desktop .footer-policy-links ul {
  display: flex;
  align-items: center;
  gap: 27px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-desktop .footer-policy-links li {
  margin: 0;
  padding: 0;
}

.footer-desktop .footer-policy-links .footer-link {
  opacity: 0.7;
}

/* --- Mobile Footer Layout (3-zone stacked) --- */

/* Zone 1: Dark navy — logo */
.footer-mobile .footer-zone-navy {
  background-color: var(--gben-shade-energy-blue-4);
  padding: 40px 0;
}

.footer-mobile .footer-logo-img {
  margin: 0 auto; /* centred on mobile */
}

/* Zone 2: Dark blue — social icons */
.footer-mobile .footer-zone-social {
  background-color: var(--gben-shade-energy-blue-3);
  padding: 20px 0;
  text-align: center;
}

.footer-mobile .footer-social {
  justify-content: center;
}

/* Zone 3: Near-black — links + copyright */
.footer-mobile .footer-zone-black {
  background-color: var(--gben-shade-energy-blue-1);
  padding: 40px 0 20px;
  text-align: center;
}

/* WCAG Fix: Mobile footer links now use nav > ul > li structure */
.footer-mobile .footer-legal-links {
  margin-bottom: 20px;
}

.footer-mobile .footer-legal-links ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-mobile .footer-legal-links li {
  margin: 0;
  padding: 0;
}

.footer-mobile .footer-policy-links ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-mobile .footer-policy-links li {
  margin: 0;
  padding: 0;
}

.footer-mobile .footer-divider {
  margin: 35px 0 20px;
}

.footer-mobile .footer-copyright {
  padding-bottom: 20px;
}


/* ==========================================================================
   10. Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out,
              background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}


/* ==========================================================================
   11. Utility Additions
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 48px; }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 48px; }

.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }


/* ==========================================================================
   12. Hero Section — Homepage Variant
   ========================================================================== */

.hero--home {
  position: relative;
  width: 100%;
  min-height: 500px;
  height: clamp(400px, 35vw, 700px);
  padding: 0;
  background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url('assets/img/bg-crop1.png') center center / cover no-repeat;
  overflow: hidden;
  color: var(--gben-color-text);
}

/* Hero Alt — blue gradient overlay revealing image beneath */
.hero--alt {
  background: url('assets/img/bg-crop1.png') center center / cover no-repeat;
  color: var(--gben-color-white);
}
.hero--alt::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, var(--gben-color-energy-blue) 0%, var(--gben-color-energy-blue) 30%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.hero--alt h1,
.hero--alt .p1-body,
.hero--alt .hero-subtitle,
.hero--alt .hero-body {
  color: var(--gben-color-white);
}

/* Spark — right overflow (default: spark-right3.png) */
.hero-gradient-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: max(0px, calc((100% - 1080px) / 2));
  height: 100%;
  background:
    url('assets/img/spark-right3.png') left top / auto 100% no-repeat,
    linear-gradient(to bottom, #ff8b03, #ff9415 50%, #513460 50%, #513460);
  z-index: 1;
  pointer-events: none;
}

/* New spark colours variant */
.hero-gradient-bg--new {
  background: url('assets/img/spark-new-right.svg') left top / auto 100% no-repeat,
              linear-gradient(to bottom, #FF8A00 50%, #FFF5DF 50%);
}

/* Spark — left half inside container */
.hero-spacer {
  flex: 1;
}

.gradient-box {
  height: 100%;
  flex-shrink: 0;
  display: flex;
}

.gradient-box img {
  height: 100%;
  width: auto;
  display: block;
}

@media (max-width: 991px) {
  .hero-gradient-bg,
  .gradient-box,
  .hero-spacer {
    display: none;
  }
}

.section-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--gben-radius-desktop);
  object-fit: cover;
}

@media (max-width: 767px) {
  .section-image {
    border-radius: var(--gben-radius-mobile);
  }
}

/* Hero content constrained width */
.hero-content__inner {
  max-width: 520px;
}

@media (min-width: 992px) {
  .hero-content__inner {
    padding-right: 45px;
  }
}

@media (max-width: 767px) {
  .hero--home {
    background-image: url('assets/img/mobile-hero.png');
    height: auto;
    min-height: 500px;
    overflow: visible;
  }
  .hero--home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    z-index: 1;
    pointer-events: none;
  }
  .hero-content {
    padding: 80px 24px 0;
    flex-direction: column;
    overflow: visible;
  }
  .hero-content::after {
    content: '';
    display: block;
    width: 100vw;
    margin: 0;
    padding-bottom: 100vw;
    background: url('assets/img/spark_mob.webp') center top / cover no-repeat;
  }
  .hero-content__inner {
    max-width: 100%;
    text-align: center;
  }
  .hero-content__inner .hero-ctas {
    justify-content: center;
  }
}

.hero-subtitle {
  color: var(--gben-color-text);
  margin-bottom: 16px;
}

.hero-body {
  color: var(--gben-color-text);
  margin-bottom: 32px;
}


/* ==========================================================================
   13. Two-Column CTA Section
   ========================================================================== */

.cta-column {
  padding: 24px 24px;
}

@media (min-width: 992px) {
  .cta-column {
    padding: 0;
  }
}

.cta-column .p1-body {
  margin-bottom: 16px;
}

.cta-column__highlight {
  margin-bottom: 24px;
}

.cta-column .btn {
  margin-top: 15px;
}

.col-lg-7 > .cta-column {
  padding-right: 100px;
}
@media (max-width: 991px) {
  .col-lg-7 > .cta-column {
    padding-right: 0;
  }
}


#our-role {
  position: relative;
}

#our-role::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, #1b3a89, transparent);
  pointer-events: none;
}

/* ==========================================================================
   14. Section — Government Blue Tint Background
   ========================================================================== */

/* .section--gov-blue — background now via .bg-energy-blue-tint-75 utility class */
#how-we-work {
  overflow-x: clip;
}


/* ==========================================================================
   15. Governance Card (How We Work section)
   ========================================================================== */

.governance-card {
  background-color: #8099BC;
  border-radius: var(--gben-radius-desktop);
  padding: 32px;
  color: var(--gben-color-white);
}

@media (min-width: 992px) {
  .governance-card {
    margin-right: calc(-50vw + 50%);
    padding-right: calc(50vw - 50%);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@media (max-width: 767px) {
  .governance-card {
    padding: 24px;
    border-radius: var(--gben-radius-mobile);
  }
}

.governance-card h3 {
  color: var(--gben-color-black);
  margin: 0 0 12px;
}

.governance-card > .p2-body {
  color: var(--gben-color-black);
}

.governance-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 575px) {
  .governance-icons {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.governance-icon-card {
  background-color: var(--gben-color-energy-blue);
  border-radius: var(--gben-radius-desktop);
  padding: 20px 16px;
  text-align: center;
}

@media (max-width: 767px) {
  .governance-icon-card {
    border-radius: var(--gben-radius-mobile);
    padding: 16px 12px;
  }
}

.governance-icon-card__icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.governance-icon-card .p2-body {
  color: var(--gben-color-white);
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.governance-card__summary {
  color: var(--gben-color-black);
  margin: 0;
  opacity: 0.85;
}


/* ==========================================================================
   16. Our Approach Section (full-width background)
   ========================================================================== */

.section--approach {
  position: relative;
  overflow: hidden;
  min-height: 550px;
}

.section--approach__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section--approach__bg svg,
.section--approach__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .section--approach {
    background-color: #fff;
  }
  .section--approach__bg {
    left: 150px;
  }
  .section--approach__bg svg,
  .section--approach__bg img {
    object-position: left center;
  }
}

#supply-chain a {
  color: #E6EEFF;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#supply-chain a:hover,
#supply-chain a:focus {
  color: #CFD6E6;
}

#cadwyn-gyflenwi a {
  color: #E6EEFF;
  text-decoration: underline;
  transition: color 0.2s ease;
}

#cadwyn-gyflenwi a:hover,
#cadwyn-gyflenwi a:focus {
  color: #CFD6E6;
}

.section--approach__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0) 90%
  );
  z-index: 1;
}

.approach-content {
  position: relative;
  z-index: 2;
  color: var(--gben-color-black);
}

.approach-content h2,
.approach-content .p1-body {
  color: var(--gben-color-black);
}


/* ==========================================================================
   17. Programme Cards (numbered, Our Approach section)
   ========================================================================== */

.programme-card {
  background-color: var(--gben-color-energy-blue);
  border-radius: var(--gben-radius-desktop);
  padding: 40px 20px 30px 20px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 767px) {
  .programme-card {
    border-radius: var(--gben-radius-mobile);
    padding: 20px 16px;
  }
}

.programme-card__number {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
}

.programme-card__number svg.programme-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.programme-card__number span {
  position: relative;
  z-index: 1;
  color: var(--gben-color-white);
  font-family: var(--gben-font-family);
  font-size: 32px;
  font-weight: var(--gben-font-weight-bold);
}

.programme-card .small-text {
  color: var(--gben-color-white);
  margin: 0;
  text-align: center;
}


/* ==========================================================================
   18. Approach Highlight Box
   ========================================================================== */

.approach-highlight-box {
  background-color: var(--gben-color-british-blue);
  border-radius: var(--gben-radius-desktop);
  padding: 24px 32px;
}

@media (max-width: 767px) {
  .approach-highlight-box {
    border-radius: var(--gben-radius-mobile);
    padding: 20px 24px;
  }
}

.approach-highlight-box .p1-body,
.approach-highlight-box .p2-body {
  color: var(--gben-color-white);
  margin: 0;
}


/* ==========================================================================
   19. Approach Accordions
   ========================================================================== */

.approach-accordions {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.approach-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.approach-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--gben-color-white);
  outline: none;
}

.approach-accordion__trigger::-webkit-details-marker {
  display: none;
}

.approach-accordion__trigger::marker {
  content: '';
}

.approach-accordion__trigger .p1-body {
  color: var(--gben-color-white);
  margin: 0;
}

.approach-accordion__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gben-color-white);
}

.approach-accordion[open]:not(.is-closing) .approach-accordion__chevron {
  transform: rotate(180deg);
}

.approach-accordion__content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.approach-accordion:not([open]) .approach-accordion__content,
.approach-accordion.is-opening .approach-accordion__content,
.approach-accordion.is-closing .approach-accordion__content {
  grid-template-rows: 0fr;
}

.approach-accordion__content > * {
  overflow: hidden;
  min-height: 0;
}

/* Target all paragraphs inside accordion content to prevent jerk on close */
.approach-accordion__content p,
.approach-accordion__content .p2-body {
  color: var(--gben-color-white);
  margin: 0;
  padding: 0;
  opacity: 0.85;
  line-height: 1.6;
}

/* Space between consecutive paragraphs using padding-top (not margin) */
.approach-accordion__content p + p,
.approach-accordion__content .p2-body + .p2-body {
  padding-top: 1em;
}

/* Bottom spacing after last paragraph */
.approach-accordion__content p:last-child::after,
.approach-accordion__content .p2-body:last-child::after {
  content: "";
  display: block;
  height: 20px;
}

/* Sand background variant */
.approach-accordions--sand {
  border-top: 1px solid;
  border-image: linear-gradient(to right, var(--gben-color-british-blue), var(--gben-color-text)) 1;
}

.approach-accordions--sand .approach-accordion {
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, var(--gben-color-british-blue), var(--gben-color-text)) 1;
}

.approach-accordions--sand .approach-accordion__trigger {
  color: var(--gben-color-text);
}

.approach-accordions--sand .approach-accordion__trigger .p1-body {
  color: var(--gben-color-text);
}

.approach-accordions--sand .approach-accordion__chevron {
  color: var(--gben-color-text);
}

.approach-accordions--sand .approach-accordion__content p,
.approach-accordions--sand .approach-accordion__content .p2-body {
  color: var(--gben-color-text);
  opacity: 1;
}


/* ==========================================================================
   20. Dandelion Subheading
   ========================================================================== */

.dandelion-subheading {
  color: var(--gben-color-dandelion);
  font-family: var(--gben-font-family);
  font-size: var(--gben-h3-size);
  font-weight: var(--gben-font-weight-bold);
  line-height: var(--gben-h3-line-height);
  margin: 0 0 26px;
}

.british-blue-subheading {
  color: var(--gben-color-white);
  font-family: var(--gben-font-family);
  font-size: var(--gben-h3-size);
  font-weight: var(--gben-font-weight-bold);
  line-height: var(--gben-h3-line-height);
  margin-top: -12px;
  margin-bottom: 26px;
}

#about .british-blue-subheading {
  margin-top: -9px;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  #about .british-blue-subheading {
    margin-top: 19px;
    margin-bottom: 0;
  }

  .dandelion-subheading {
    font-size: 17px;
  }
}

.text-british-blue {
  color: var(--gben-color-british-blue);
}


/* ==========================================================================
   21. Project Image with Overlapping Caption Card
   ========================================================================== */

.project-image-wrapper {
  position: relative;
  padding-bottom: 60px;
}

.project-image {
  min-height: 300px;
}

@media (max-width: 767px) {
  .project-image {
    min-height: 200px;
  }
}

.project-caption-card {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  background-color: var(--gben-color-white);
  border-radius: var(--gben-radius-desktop);
  padding: 24px;
  color: var(--gben-color-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .project-caption-card {
    position: relative;
    left: 0;
    right: 0;
    margin-top: -30px;
    border-radius: var(--gben-radius-mobile);
  }

  .project-image-wrapper {
    padding-bottom: 0;
  }
}

.project-caption-card h3 {
  margin: 0 0 8px;
  color: var(--gben-color-text);
}

.project-caption-card .p2-body {
  color: var(--gben-color-text);
  margin: 0;
}


/* ==========================================================================
   21b. Project Carousel
   ========================================================================== */

.project-carousel {
  position: relative;
}

.project-carousel__viewport {
  overflow: hidden;
  border-radius: var(--gben-radius-desktop);
  position: relative;
  width: 100%;
  background-color: var(--gben-color-white);
}

.project-carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.project-carousel__slide {
  min-width: 100%;
  width: 100%;
  flex: 0 0 100%;
}

.project-slide-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--gben-radius-desktop);
  overflow: hidden;
  background-color: var(--gben-color-white);
}

.project-slide-card__image {
  height: 280px;
  overflow: hidden;
}

.project-slide-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-slide-card__body {
  padding: 32px;
  text-align: center;
  min-height: 215px;
}

.project-slide-card__body h3 {
  color: var(--gben-color-text);
  margin: 0 0 12px;
}

.project-slide-card__body p,
.project-slide-card__body .p2-body {
  color: var(--gben-color-text);
  margin: 0;
}

.project-slide-list {
  color: var(--gben-color-text);
  text-align: left;
  padding-left: 20px;
  margin: 8px 0 0;
}

.project-carousel .pagination-dots {
  margin-top: 24px;
}

@media (max-width: 767px) {
  .project-carousel__viewport {
    border-radius: var(--gben-radius-mobile);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-carousel__viewport::-webkit-scrollbar {
    display: none;
  }
  .project-carousel__track {
    transition: none;
    transform: none !important;
  }
  .project-carousel__slide {
    scroll-snap-align: start;
  }

  .project-slide-card__image {
    height: 200px;
  }

  .project-slide-card__body {
    padding: 24px;
  }
}

@media (min-width: 992px) {
  .project-slide-card__body {
    min-height: 245px;
  }
}

/* ==========================================================================
   22. Pagination Dots
   ========================================================================== */

.pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  padding: 8px 0;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(58, 118, 255, 0.35);
  border: none;
  padding: 6px;
  background-clip: content-box;
  box-sizing: content-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pagination-dot:hover {
  background-color: rgba(58, 118, 255, 0.6);
}

.pagination-dot--active {
  background-color: var(--gben-color-british-blue);
}

.pagination-dot:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* --- News/Latest Updates pagination dots on Mulberry background --- */
.bg-mulberry .pagination-dot {
  background-color: #581135;
}

.bg-mulberry .pagination-dot:hover {
  background-color: #d34c41;
}

.bg-mulberry .pagination-dot--active {
  background-color: #d34c41;
}

.bg-mulberry .pagination-dot:focus-visible {
  outline-color: #d34c41;
}

.carousel-pause-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--gben-color-british-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.carousel-pause-btn:hover {
  background-color: rgba(58, 118, 255, 0.15);
}

.carousel-pause-btn:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}


/* ==========================================================================
   23. Careers Tab Component
   ========================================================================== */

.careers-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.careers-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  align-items: flex-end;
}

.careers-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 70px;
  background: transparent;
  border: none;
  padding: 12px 10px;
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-font-weight-regular);
  color: var(--gben-color-text);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, font-weight 0.2s ease;
  border-radius: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.careers-tab:hover {
  color: var(--gben-color-energy-blue);
}

.careers-tab--active,
.careers-tab[aria-selected="true"] {
  font-weight: var(--gben-font-weight-bold);
  background-color: #F9F4E7;
  color: var(--gben-color-text);
  border-radius: var(--gben-radius-desktop) var(--gben-radius-desktop) 0 0;
  padding: 16px 14px;
  z-index: 2;
}

@media (max-width: 991px) {
  .careers-tab[aria-selected="true"] {
    border-radius: var(--gben-radius-mobile) var(--gben-radius-mobile) 0 0;
  }
}

/* Curved connector — left side */
.careers-tab--active::before,
.careers-tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 0 0, transparent 12px, #F9F4E7 12px);
}

/* Curved connector — right side */
.careers-tab--active::after,
.careers-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -12px;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 100% 0, transparent 12px, #F9F4E7 12px);
}

.careers-tab:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

.careers-tab-panels {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  #careers .col-lg-6:first-child {
    padding-right: 45px;
  }

  #careers .col-lg-6:last-child {
    display: flex;
    flex-direction: column;
  }

  #careers {
    padding-bottom: 0;
  }

  #careers .careers-tab-panel {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    min-height: 450px;
  }
}

.careers-tab-panel {
  background-color: #F9F4E7;
  border-radius: var(--gben-radius-desktop);
  padding: 32px;
  display: none;
  flex: 1;
}

@media (max-width: 767px) {
  .careers-tab {
    min-height: 100px;
  }
  .careers-tab-panel {
    padding: 24px;
    border-radius: var(--gben-radius-mobile);
  }
}

.careers-tab-panel--active,
.careers-tab-panel:not([hidden]) {
  display: block;
}

.careers-tab-panel .p2-body {
  color: var(--gben-color-text);
  margin: 0;
}

.careers-tab-panel .p2-body.mb-md {
  margin-bottom: 16px;
}

.values-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.values-badge {
  display: inline-block;
  background-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  font-family: var(--gben-font-family);
  font-size: 14px;
  font-weight: var(--gben-font-weight-bold);
  padding: 6px 14px;
  border-radius: 4px;
}

/* Candidate journey step badges */
.journey-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .values-badges,
  .journey-steps {
    justify-content: center;
  }
}

.journey-step {
  display: inline-block;
  background-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  font-family: var(--gben-font-family);
  font-size: 14px;
  font-weight: var(--gben-font-weight-bold);
  padding: 6px 14px;
  border-radius: 4px;
}

/* Benefits list */
.benefits-list {
  padding-left: 20px;
  margin: 0;
}

.benefits-list li {
  margin-bottom: 4px;
}


/* ==========================================================================
   24. News Card Carousel (Latest Updates)
   ========================================================================== */

.news-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.news-carousel-wrapper::before,
.news-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.news-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--gben-color-mulberry), transparent);
}

.news-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--gben-color-mulberry), transparent);
}

/* Single news item — center the card, hide gradients */
.news-carousel--single::before,
.news-carousel--single::after {
  display: none;
}

.news-carousel--single .news-carousel__track {
  justify-content: center;
  padding-left: 0;
}

.news-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  /* Center 3 cards within 1080px container: pad so first card starts at container edge */
  padding-left: calc((100vw - 1080px) / 2);
}

.news-card {
  /* 3 cards in 1080px with 2 gaps of 24px = (1080 - 48) / 3 = 344px */
  flex: 0 0 344px;
  background-color: var(--gben-color-white);
  border-radius: var(--gben-radius-desktop);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1199px) {
  .news-carousel__track {
    padding-left: calc((100vw - 960px) / 2);
  }
  .news-card {
    flex: 0 0 calc((960px - 48px) / 3);
  }
}

@media (max-width: 991px) {
  .news-carousel__track {
    padding-left: 40px;
  }
  .news-card {
    flex: 0 0 calc((100vw - 80px - 48px) / 2);
  }
}

@media (max-width: 575px) {
  .news-carousel-wrapper::before,
  .news-carousel-wrapper::after {
    display: none;
  }
  .news-carousel-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .news-carousel-wrapper::-webkit-scrollbar {
    display: none;
  }
  .news-carousel__track {
    padding-left: 0;
    transition: none;
    transform: none !important;
  }
  .news-card {
    flex: 0 0 100vw;
    border-radius: 0;
    scroll-snap-align: start;
  }
  .news-card__image {
    border-radius: 0;
  }
}

.news-card__image {
  height: 200px;
  flex-shrink: 0;
  border-radius: var(--gben-radius-desktop) var(--gben-radius-desktop) 0 0;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  color: var(--gben-tint-black-75); /* #404040 - 10.4:1 contrast on white */
  margin-bottom: 8px;
  font-size: 14px;
}

.news-card__title {
  font-size: var(--gben-h3-size);
  font-weight: var(--gben-font-weight-bold);
  line-height: var(--gben-h3-line-height);
  color: var(--gben-color-text);
  margin: 0 0 8px;
}

.news-card__excerpt {
  color: var(--gben-color-text);
  margin: 0 0 16px;
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.news-card__link {
  align-self: flex-start;
  font-size: 16px;
  height: 38px;
  padding: 6px 12px;
}


/* ==========================================================================
   25. About — Map Placeholders & Office Addresses
   ========================================================================== */

.map-placeholder {
  width: 100%;
  border-radius: var(--gben-radius-desktop);
  overflow: hidden;
  border: 2px solid rgba(58, 118, 255, 0.3);
  margin-bottom: 16px;
}

@media (max-width: 767px) {
  .map-placeholder {
    border-radius: var(--gben-radius-mobile);
  }
}

.map-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-embed {
  width: 100%;
  border-radius: var(--gben-radius-desktop);
  overflow: hidden;
  margin-bottom: 16px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
}

@media (max-width: 767px) {
  .map-embed {
    border-radius: var(--gben-radius-mobile);
    margin-top: 10px;
  }
}

.office-address {
  color: var(--gben-color-white);
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-top: 25px;
}

.office-address strong {
  display: block;
  margin-bottom: 4px;
}


/* ==========================================================================
   26. FAQ Accordion Styles
   ========================================================================== */

.faq-divider {
  display: none;
}

.faq-list {
  /* Container for FAQ categories */
}

.faq-category {
  border-bottom: 1px solid var(--gben-color-white);
}

.faq-category__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  color: var(--gben-color-white);
}

.faq-category__trigger::-webkit-details-marker {
  display: none;
}

.faq-category__trigger::marker {
  content: '';
}

.faq-category__trigger .p1-body {
  color: var(--gben-color-white);
  margin: 0;
}

.faq-category__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gben-color-white);
}

.faq-category[open]:not(.is-closing) .faq-category__trigger .p1-body {
  font-weight: var(--gben-font-weight-bold);
}

.faq-category[open]:not(.is-closing) .faq-category__icon {
  transform: rotate(45deg);
}

.faq-category__content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-category:not([open]) .faq-category__content,
.faq-category.is-opening .faq-category__content,
.faq-category.is-closing .faq-category__content {
  grid-template-rows: 0fr;
}

.faq-category__content > * {
  overflow: hidden;
  min-height: 0;
}

/* FAQ Questions (nested inside categories) */
.faq-question {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.faq-question__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0 16px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--gben-color-white);
}

.faq-question__trigger::-webkit-details-marker {
  display: none;
}

.faq-question__trigger::marker {
  content: '';
}

.faq-question__trigger .p2-body {
  color: var(--gben-color-white);
  margin: 0;
}

.faq-question__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gben-color-white);
  margin-left: 16px;
}

.faq-question[open]:not(.is-closing) .faq-question__trigger .p2-body {
  font-weight: var(--gben-font-weight-bold);
}

.faq-question[open]:not(.is-closing) .faq-question__chevron {
  transform: rotate(180deg);
}

.faq-question__answer {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-question:not([open]) .faq-question__answer,
.faq-question.is-opening .faq-question__answer,
.faq-question.is-closing .faq-question__answer {
  grid-template-rows: 0fr;
}

.faq-question__answer > * {
  overflow: hidden;
  min-height: 0;
}

.faq-question__answer .p2-body {
  color: var(--gben-color-white);
  margin: 0;
  padding: 0 16px;
  opacity: 0.85;
  line-height: 1.6;
}

.faq-question__answer .p2-body::after {
  content: "";
  display: block;
  height: 20px;
}

/* Focus states for FAQ triggers */
.faq-category__trigger:focus-visible,
.faq-question__trigger:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}


/* ==========================================================================
   27. Contact Us Section
   ========================================================================== */

.section--contact {
  position: relative;
}

.contact-accent-bar {
  width: 100%;
  height: 4px;
  background-color: var(--gben-color-british-blue);
}

.contact-list {
  color: var(--gben-color-white);
  padding-left: 20px;
  margin: 0 0 24px;
  opacity: 0.85;
}

.contact-list li {
  margin-bottom: 8px;
}

/* Contact form panel */
.contact-form-panel {
  background-color: #001735;
  border-radius: var(--gben-radius-desktop);
  padding: 32px;
}

@media (max-width: 767px) {
  .contact-form-panel {
    padding: 24px;
    border-radius: var(--gben-radius-mobile);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-font-weight-medium);
  color: var(--gben-color-white);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  color: var(--gben-color-white);
  background-color: transparent;
  border: 1px solid #002658;
  border-radius: var(--gben-radius-desktop);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-select {
  appearance: none;
  background-color: #002A61;
  color: #FFFFFF; /* Explicit white for accessibility - 13.8:1 contrast */
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-select option {
  background-color: var(--gben-shade-energy-blue-4);
  color: #FFFFFF;
}

.form-select option:disabled {
  color: rgba(255, 255, 255, 0.7); /* Slightly muted but still readable */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
  border-color: var(--gben-color-british-blue);
  background-color: rgba(255, 255, 255, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 991px) {
  .form-input,
  .form-select,
  .form-textarea {
    border-radius: var(--gben-radius-mobile);
  }
}

.form-privacy {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: right;
}

.form-privacy a {
  color: var(--gben-color-white);
}

.form-privacy a:hover {
  color: var(--gben-color-sand);
}

/* WCAG Fix: Use solid color instead of rgba transparency to pass G18.Alpha */
.form-required-note {
  color: #99A6B6; /* Equivalent to rgba(255,255,255,0.6) on dark bg, passes 4.5:1 */
  font-size: 14px;
  margin-bottom: 20px;
}

.contact-form .btn {
  width: 100%;
}

@media (min-width: 576px) {
  .contact-form .btn {
    width: auto;
  }
}

/* Form alert messages */
.form-alert {
  padding: 16px 20px;
  border-radius: var(--gben-radius-desktop);
  margin-bottom: 24px;
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-font-weight-medium);
}

.form-alert--success {
  background-color: rgba(40, 167, 69, 0.15);
  border: 1px solid #28a745;
  color: #8fd19e; /* Light green for dark background - passes 4.5:1 contrast */
}

.form-alert--error {
  background-color: rgba(231, 54, 58, 0.15);
  border: 1px solid var(--gben-color-berry);
  color: #f5a3a5; /* Light red/pink for dark background - passes 4.5:1 contrast */
}

@media (max-width: 767px) {
  .form-alert {
    border-radius: var(--gben-radius-mobile);
    padding: 14px 16px;
  }
}


/* ==========================================================================
   28. Image Placeholder — Dark Background Variant
   ========================================================================== */

.image-placeholder--dark {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   29. Section Spacing Consistency
   ========================================================================== */

/* Ensure all homepage sections have consistent vertical rhythm */
.section-full.bg-sand,
.section-full.bg-energy-blue,
.section-full.bg-mulberry,
.section--gov-blue,
.section--approach,
.section--contact {
  padding: 48px 0;
}

@media (min-width: 768px) {
  .section-full.bg-sand,
  .section-full.bg-energy-blue,
  .section-full.bg-mulberry,
  .section--gov-blue,
  .section--approach,
  .section--contact {
    padding: 64px 0;
  }
}

@media (min-width: 992px) {
  .section-full.bg-sand,
  .section-full.bg-energy-blue,
  .section-full.bg-mulberry,
  .section--gov-blue,
  .section--approach,
  .section--contact {
    padding: 80px 0;
  }
}


/* ==========================================================================
   30. Careers Tab JavaScript Support
   ========================================================================== */

/* JS will toggle hidden attribute; this ensures smooth display */
.careers-tab-panel[hidden] {
  display: none;
}


/* ==========================================================================
   32. Modal Dialog (native <dialog>)
   ========================================================================== */

.gben-modal {
  background-color: var(--gben-modal-bg);
  color: var(--gben-modal-text-color);
  border-radius: var(--gben-modal-border-radius);
  border: none;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.gben-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

.gben-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--gben-color-white);
  cursor: pointer;
  padding: 4px;
}

.gben-modal__close:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

.gben-modal__heading {
  color: var(--gben-color-white);
  font-weight: var(--gben-font-weight-bold);
  margin: 0 0 16px;
}

.gben-modal__body {
  color: var(--gben-color-white);
  margin: 0 0 24px;
  opacity: 0.85;
}

.gben-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gben-btn-gap);
}

@media (max-width: 575px) {
  .gben-modal {
    padding: 24px;
  }
  .gben-modal__actions {
    flex-direction: column;
  }
  .gben-modal__actions .btn {
    width: 100%;
  }
}


/* ==========================================================================
   33. Form Validation Error States
   ========================================================================== */

.form-error .form-input,
.form-error .form-select,
.form-error .form-textarea {
  border-color: var(--gben-color-berry);
}

.form-error-message {
  color: var(--gben-color-berry);
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.form-error .form-error-message {
  display: block;
}


/* ==========================================================================
   35. Mobile Layout Overrides (matches Figma mobile 375px design)
   ========================================================================== */

@media (max-width: 767px) {

  /* --- General: centre text on mobile across all sections --- */
  .hero-content__inner,
  .cta-column,
  #our-role .col-12,
  #how-we-work .col-12,
  #our-approach .approach-content,
  #projects .col-12,
  #supply-chain .col-12,
  #careers .col-12,
  #news .col-12,
  #about .container,
  #faqs .container,
  #contact .col-12 {
    text-align: center;
  }

  /* Keep bullet lists left-aligned even when container is centred */
  .contact-list {
    text-align: left;
    display: inline-block;
  }

  /* --- CTA: second column (careers) gets Dandelion background on mobile --- */
  .bg-sand {
    overflow-x: hidden;
  }
  .bg-sand .grid > .col-12.col-lg-6:last-child .cta-column,
  .bg-sand .grid > .col-12.col-lg-5 .cta-column {
    background-color: var(--gben-color-dandelion);
    border-radius: var(--gben-radius-mobile) 0 0 var(--gben-radius-mobile);
    padding: 32px 24px;
    margin-top: 8px;
    margin-right: -24px;
    padding-right: 48px;
    text-align: center;
  }

  /* --- Our Role: hide image on mobile --- */
  #our-role .col-lg-7 {
    display: none;
  }

  /* --- Government: governance icon cards — horizontal layout (icon left, text right) --- */
  .governance-icons {
    grid-template-columns: 1fr;
  }

  .governance-icon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 16px 20px;
  }

  .governance-icon-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  /* --- Our Approach bg-image section: sand bg on mobile, hide image --- */
  .section--approach {
    background-color: var(--gben-color-sand);
    min-height: 0;
  }

  .section--approach__bg,
  .section--approach__overlay {
    display: none;
  }

  .section--approach .approach-content h2,
  .section--approach .approach-content .p1-body {
    color: var(--gben-color-text);
  }

  /* --- Programme cards: horizontal layout on mobile (number left, text right) --- */
  .programme-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding: 20px;
  }

  .programme-card__number {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
  }

  .programme-card .p2-body {
    text-align: left;
  }

  /* Programme cards: single column on mobile */
  .bg-sand .grid .col-6.col-lg-3 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }

  /* --- Approach mobile image (shown between highlight box and accordions) --- */
  .approach-mobile-image-wrap {
    display: block;
  }
  .approach-mobile-image {
    display: block;
    width: 100%;
    border-radius: var(--gben-radius-mobile);
    margin: 24px 0;
  }

  /* --- Our Approach + Programme: reduce gap between sections on mobile --- */
  #our-approach {
    padding-bottom: 16px;
  }
  #approach-programme {
    padding-top: 8px;
  }
  #approach-programme > .container > .p1-body {
    text-align: center;
  }

  /* --- Approach highlight box + accordions: stack vertically on mobile --- */
  .approach-highlight-box {
    margin-bottom: 16px;
  }

  /* --- Supply Chain: hide image on mobile --- */
  #supply-chain .col-lg-6:last-child {
    display: none;
  }

  /* --- Careers: buttons side by side --- */
  .careers-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .careers-buttons .btn {
    flex: 1;
  }

  /* --- About: address above map — reverse order --- */
  #about .col-lg-6 {
    display: flex;
    flex-direction: column;
  }

  #about .map-placeholder,
  #about .map-embed {
    order: 2;
  }

  #about .office-address {
    order: 1;
    margin-bottom: 16px;
  }

  /* --- Contact: centre the heading --- */
  #contact h2 {
    text-align: center;
  }

  /* --- Projects: caption card not overlapping on mobile --- */
  .project-caption-card {
    text-align: center;
  }

  .project-caption-card h3 {
    text-align: center;
  }
}

/* --- Our Approach: plain background on tablet (768-991px) like mobile --- */
@media (min-width: 768px) and (max-width: 991px) {
  .section--approach {
    background-color: var(--gben-color-sand);
    min-height: 0;
  }

  .section--approach__bg,
  .section--approach__overlay {
    display: none;
  }

  .section--approach .approach-content h2,
  .section--approach .approach-content .p1-body {
    color: var(--gben-color-text);
  }
}

/* Hide approach mobile image wrapper on desktop */
.approach-mobile-image-wrap {
  display: none;
}


/* ==========================================================================
   34. Reduced Motion (WCAG 2.3.3)
   Users who prefer reduced motion get no animations or transitions.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   40. Single Post Template
   ========================================================================== */

.hero--single {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: clamp(250px, 25vw, 400px);
  padding: 0;
  background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url('assets/img/bg-crop1.png') center center / cover no-repeat;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero--single {
    min-height: 200px;
    height: 200px;
  }
}

/* Hide spark on policy/single pages under 900px */
@media (max-width: 899px) {
  .hero--single .gradient-box,
  .hero--single .hero-gradient-bg,
  .hero--single .hero-spacer,
  .hero--single .hero-content {
    display: none !important;
  }
}

/* Desktop: two-column layout (content left, sidebar right) */
.single-article__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 32px;
}

.single-article__title {
  grid-column: 1;
  grid-row: 1;
}

.single-article__sidebar {
  grid-column: 2;
  grid-row: 1 / -1;
}

.single-article__content {
  grid-column: 1;
  grid-row: 2;
}

.single-article h1 {
  margin-bottom: 32px;
}

.single-article .entry-content p {
  margin-bottom: 24px;
  line-height: 1.7;
}

.single-article .entry-content h2 {
  margin-top: 16px;
  margin-bottom: 16px;
}

.single-sidebar {
  padding-top: 8px;
}

.single-sidebar__date {
  display: block;
  font-family: var(--gben-font-family);
  font-size: var(--gben-h2-size);
  font-weight: var(--gben-font-weight-bold);
  color: var(--gben-color-text);
  margin-bottom: 16px;
}

.single-sidebar__social {
  display: flex;
  gap: 12px;
}

.single-sidebar__social a {
  color: var(--gben-color-text);
  transition: color 0.2s ease;
}

.single-sidebar__social svg {
  width: 28px;
  height: 28px;
}

.single-sidebar__social a:hover {
  color: var(--gben-color-british-blue);
}

.single-sidebar__social a:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* Mobile: stack as title → date → socials → content, all centred */
@media (max-width: 767px) {
  .single-article__layout {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .single-article h1 {
    margin-bottom: 16px;
  }
  .single-sidebar {
    padding-top: 0;
    margin-bottom: 24px;
  }
  .single-sidebar__date {
    font-size: 18px;
    margin-bottom: 12px;
  }
  .single-sidebar__social {
    justify-content: center;
    gap: 20px;
  }
  .single-article .entry-content {
    text-align: center;
  }
}


/* ==========================================================================
   41. Search Results
   ========================================================================== */

.search-results__heading {
  margin-bottom: 24px;
  color: var(--gben-color-energy-blue);
}

.search-results__term {
  color: var(--gben-color-british-blue);
}

/* Inline search form */
.search-results__form {
  display: flex;
  max-width: 560px;
  margin-bottom: 32px;
  border: 2px solid var(--gben-tint-energy-blue-20);
  border-radius: var(--gben-radius-desktop);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.search-results__form:focus-within {
  border-color: var(--gben-color-british-blue);
}

.search-results__input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: var(--gben-color-white);
  font-family: var(--gben-font-family);
  font-size: 16px;
  color: var(--gben-color-text);
  outline: none;
}

.search-results__input::placeholder {
  color: var(--gben-tint-black-50);
}

.search-results__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: none;
  background: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-results__submit:hover {
  background: var(--gben-shade-energy-blue-6);
}

.search-results__submit:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: -3px;
}

.search-results__count {
  color: var(--gben-tint-black-75);
  margin-bottom: 24px;
}

/* Result cards */
.search-results__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-results__card {
  background: var(--gben-color-white);
  border-radius: var(--gben-radius-desktop);
  padding: 32px;
  border-left: 4px solid var(--gben-color-british-blue);
  transition: box-shadow 0.2s ease;
}

.search-results__card:hover {
  box-shadow: 0 4px 16px rgba(0, 52, 121, 0.1);
}

.search-results__card-title {
  margin-bottom: 8px;
}

.search-results__card-title a {
  color: var(--gben-color-energy-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-results__card-title a:hover {
  color: var(--gben-color-text);
  text-decoration: underline;
}

.search-results__card-title a:focus-visible {
  outline: 3px solid var(--gben-color-energy-blue);
  outline-offset: 2px;
}

.search-results__date {
  display: inline-block;
  font-family: var(--gben-font-family);
  font-size: 14px;
  font-weight: var(--gben-font-weight-medium);
  color: var(--gben-tint-black-75); /* #404040 for better contrast */
  margin-bottom: 8px;
}

.search-results__excerpt {
  color: var(--gben-color-text);
  margin-bottom: 12px;
}

.search-results__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--gben-font-family);
  font-size: 16px;
  font-weight: var(--gben-font-weight-medium);
  color: var(--gben-color-energy-blue);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.search-results__read-more:hover {
  gap: 10px;
  color: var(--gben-color-text);
  text-decoration: underline;
}

.search-results__read-more:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* Posts navigation */
.search-results__list + .posts-navigation {
  margin-top: 40px;
}

.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.posts-navigation .nav-links a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  border-radius: var(--gben-radius-desktop);
  font-family: var(--gben-font-family);
  font-weight: var(--gben-font-weight-medium);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.posts-navigation .nav-links a:hover {
  background: var(--gben-shade-energy-blue-6);
}

.posts-navigation .nav-links a:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

/* Empty state */
.search-results__empty {
  text-align: center;
  padding: 64px 0;
}

.search-results__empty .p1-body {
  color: var(--gben-color-energy-blue);
  margin-bottom: 8px;
}

.search-results__empty .p2-body {
  color: var(--gben-tint-black-75);
}

/* Mobile adjustments */
@media (max-width: 575px) {
  .search-results__card {
    padding: 24px;
    border-radius: var(--gben-radius-mobile);
  }

  .search-results__form {
    border-radius: var(--gben-radius-mobile);
  }

  .posts-navigation .nav-links {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}


/* ==========================================================================
   42. Policy Page Template
   ========================================================================== */

.policy-page h1 {
  color: var(--gben-color-black);
  margin-bottom: 32px;
}

.policy-page__content h2 {
  color: var(--gben-color-black);
  margin-top: 40px;
  margin-bottom: 16px;
}

.policy-page__content h3 {
  color: var(--gben-color-black);
  margin-top: 32px;
  margin-bottom: 12px;
}

.policy-page__content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.policy-page__content ul,
.policy-page__content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.policy-page__content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.policy-page__content address {
  font-style: normal;
  margin-bottom: 16px;
  line-height: 1.7;
}

.policy-page__content a {
  color: var(--gben-color-energy-blue);
  text-decoration: underline;
}

.policy-page__content a:hover {
  color: var(--gben-color-text);
}

.policy-page__content a:focus-visible {
  outline: 3px solid var(--gben-color-british-blue);
  outline-offset: 2px;
}

.policy-page__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.policy-page__content th,
.policy-page__content td {
  border: 1px solid #ccc;
  padding: 12px 16px;
  text-align: left;
}

.policy-page__content th {
  background-color: var(--gben-color-energy-blue);
  color: #fff;
  font-weight: 600;
}

.policy-page__content tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

.policy-page__content tbody tr:nth-child(odd) {
  background-color: #fff;
}

.policy-page__content code {
  background-color: #eee;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}


/* ==========================================================================
   Cookie Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--gben-color-energy-blue);
  color: var(--gben-color-white);
  padding: 24px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--gben-grid-max-width);
  margin: 0 auto;
  padding: 0 var(--gben-grid-padding-desktop);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-banner__text {
  font-size: var(--gben-p2-size);
  line-height: var(--gben-p2-line-height);
  margin: 0;
  color: #FFFFFF; /* Explicit white for accessibility tools */
}

.cookie-banner__actions {
  display: flex;
  gap: var(--gben-btn-gap);
  flex-wrap: wrap;
}

.cookie-banner__actions .btn {
  min-width: 200px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .cookie-banner {
    padding: 20px 0;
  }

  .cookie-banner__inner {
    padding: 0 var(--gben-grid-padding-mobile);
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    min-width: unset;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}


/* ==========================================================================
   WCAG Fix: Semantic Heading Classes
   These classes style h4/h5 elements to match the original <p><strong> styling
   so there's no visual change when converting to proper heading markup.
   ========================================================================== */

/* Our Approach section: Deliver, Enable, Advise headings */
.wcag-heading-p1 {
  font-family: var(--gben-font-family);
  font-size: var(--gben-p1-size);
  font-weight: var(--gben-font-weight-bold);
  line-height: var(--gben-p1-line-height);
  letter-spacing: var(--gben-p1-letter-spacing);
  margin: 0 0 16px;
  color: inherit;
}

/* Supply Chain and Careers CTA links */
.wcag-heading-p2 {
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-font-weight-bold);
  line-height: var(--gben-p2-line-height);
  letter-spacing: var(--gben-p2-letter-spacing);
  margin: 0 0 16px;
  color: inherit;
}

.wcag-heading-p2:last-child {
  margin-bottom: 0;
}

.wcag-heading-p2 a {
  color: inherit;
  text-decoration: underline;
}

/* Careers tab panel headings: Our purpose, Our values */
.wcag-heading-panel {
  font-family: var(--gben-font-family);
  font-size: var(--gben-p2-size);
  font-weight: var(--gben-font-weight-bold);
  line-height: var(--gben-p2-line-height);
  letter-spacing: var(--gben-p2-letter-spacing);
  margin: 0 0 8px;
  color: inherit;
}

/* Mobile overrides to match p1-body/p2-body mobile styles */
@media (max-width: 767px) {
  .wcag-heading-p1 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
  }

  .wcag-heading-p2,
  .wcag-heading-panel {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
  }
}
