/*
Theme Name: Efficiency Engine Astra Child
Theme URI: https://efficiencyengine.co.uk/
Description: Child theme for Efficiency Engine
Author: Efficiency Engine
Template: astra
Version: 1.1.1
*/


/* =========================================================
   GLOBAL BRAND VARIABLES
   ========================================================= */

:root{
  --ee-navy:#011627;
  --ee-navy-2:#09283D;
  --ee-teal:#3ED6D3;
  --ee-teal-dark:#169D9A;
  --ee-teal-pale:#EAFAF9;
  --ee-white:#FFFFFF;
  --ee-off:#FBFCFC;
  --ee-grey:#F5F7FA;
  --ee-text:#172A36;
  --ee-muted:#6D7E89;
  --ee-border:#E3EAED;
}


/* =========================================================
   GLOBAL HEADER / FOOTER BOX SIZING
   ========================================================= */

.ee-site-header,
.ee-site-header *,
.ee-footer,
.ee-footer *{
  box-sizing:border-box;
}


/* =========================================================
   SHARED WIDTH
   ========================================================= */

.ee-header-container,
.ee-footer-container{
  width:min(1200px,calc(100% - 48px));
  margin:0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.ee-site-header{
  position:relative;
  z-index:9999;
  width:100%;
  margin:0;
  padding:0;
  background:#FFFFFF;
  border-bottom:1px solid var(--ee-border);
  font-family:"Poppins",Arial,sans-serif;
}

.ee-header-inner{
  min-height:82px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:32px;
}


/* =========================================================
   HEADER LOGO
   ========================================================= */

.ee-header-brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--ee-navy);
  text-decoration:none;
  white-space:nowrap;
}

.ee-header-brand:hover{
  color:var(--ee-navy);
}

.ee-header-logo-image{
  display:block;
  width:auto;
  max-width:190px;
  max-height:48px;
}

.ee-header-logo-fallback{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.ee-header-logo-mark{
  display:inline-flex;
  align-items:center;
  color:var(--ee-teal-dark);
  font-size:25px;
  font-weight:600;
  line-height:1;
}

.ee-header-logo-wordmark{
  color:var(--ee-navy);
  font-size:20px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-.03em;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.ee-primary-nav{
  justify-self:center;
}

.ee-primary-menu{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.ee-primary-menu > li{
  margin:0;
  padding:0;
  list-style:none;
}

.ee-nav-link,
.ee-mega-trigger{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  margin:0;
  padding:0 12px;
  border:0;
  background:transparent;
  color:var(--ee-navy);
  font-family:"Poppins",Arial,sans-serif;
  font-size:13px;
  font-weight:500;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:color .2s ease;
}

.ee-nav-link:hover,
.ee-mega-trigger:hover,
.ee-mega-trigger[aria-expanded="true"]{
  color:var(--ee-teal-dark);
}


/* =========================================================
   NAV CHEVRON
   ========================================================= */

.ee-nav-chevron{
  width:14px;
  height:14px;
  transition:transform .2s ease;
}

.ee-mega-trigger[aria-expanded="true"] .ee-nav-chevron{
  transform:rotate(180deg);
}


/* =========================================================
   HEADER CTA
   ========================================================= */

.ee-header-cta{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 21px;
  border-radius:999px;
  background:var(--ee-navy);
  color:#FFFFFF;
  font-size:12px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.ee-header-cta:hover{
  color:#FFFFFF;
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(1,22,39,.14);
}


/* =========================================================
   MEGA MENU
   ========================================================= */

.ee-mega-parent{
  position:static;
}

.ee-mega-menu{
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  transform:translateY(-8px);
  background:#FFFFFF;
  border-top:1px solid var(--ee-border);
  border-bottom:1px solid var(--ee-border);
  box-shadow:0 24px 60px rgba(1,22,39,.10);
  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease;
}

.ee-mega-parent.is-open .ee-mega-menu{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.ee-mega-inner{
  width:min(1200px,calc(100% - 48px));
  margin:0 auto;
  padding:42px 0 46px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:54px;
}

.ee-mega-column{
  min-width:0;
}

.ee-mega-heading{
  margin:0 0 17px;
  color:var(--ee-teal-dark);
  font-size:10px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:1.5px;
  text-transform:uppercase;
}


/* =========================================================
   MEGA MENU LINKS
   ========================================================= */

.ee-mega-link{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:14px;
  align-items:start;
  margin:0;
  padding:14px 10px;
  border-radius:12px;
  color:var(--ee-navy);
  text-decoration:none;
  transition:
    background .18s ease,
    transform .18s ease;
}

.ee-mega-link + .ee-mega-link{
  margin-top:3px;
}

.ee-mega-link:hover{
  color:var(--ee-navy);
  background:var(--ee-teal-pale);
  transform:translateX(2px);
}


/* =========================================================
   MEGA MENU ICONS
   ========================================================= */

.ee-mega-icon{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--ee-grey);
  color:var(--ee-teal-dark);
}

.ee-mega-link:hover .ee-mega-icon{
  background:#FFFFFF;
}

.ee-mega-icon svg{
  width:18px;
  height:18px;
  stroke:currentColor;
}


/* =========================================================
   MEGA MENU TEXT
   ========================================================= */

.ee-mega-copy{
  min-width:0;
}

.ee-mega-copy strong{
  display:block;
  color:var(--ee-navy);
  font-size:13px;
  font-weight:600;
  line-height:1.35;
}

.ee-mega-copy span{
  display:block;
  margin-top:4px;
  color:var(--ee-muted);
  font-size:10px;
  font-weight:400;
  line-height:1.55;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.ee-mobile-toggle{
  display:none;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:1px solid var(--ee-border);
  border-radius:10px;
  background:#FFFFFF;
  color:var(--ee-navy);
  cursor:pointer;
}

.ee-mobile-toggle-lines{
  position:relative;
  width:20px;
  height:14px;
}

.ee-mobile-toggle-lines span{
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  border-radius:2px;
  background:currentColor;
  transition:
    transform .2s ease,
    opacity .2s ease,
    top .2s ease;
}

.ee-mobile-toggle-lines span:nth-child(1){
  top:0;
}

.ee-mobile-toggle-lines span:nth-child(2){
  top:6px;
}

.ee-mobile-toggle-lines span:nth-child(3){
  top:12px;
}

.ee-mobile-toggle[aria-expanded="true"]
.ee-mobile-toggle-lines span:nth-child(1){
  top:6px;
  transform:rotate(45deg);
}

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

.ee-mobile-toggle[aria-expanded="true"]
.ee-mobile-toggle-lines span:nth-child(3){
  top:6px;
  transform:rotate(-45deg);
}


/* =========================================================
   MOBILE CTA — HIDDEN ON DESKTOP
   ========================================================= */

.ee-mobile-review-wrap{
  display:none;
}


/* =========================================================
   FOOTER
   ========================================================= */

.ee-footer{
  width:100%;
  margin:0;
  padding:0;
  clear:both;
  background:#011627;
  color:#FFFFFF;
  font-family:"Poppins",Arial,sans-serif;
}


/* MAIN FOOTER */

.ee-footer-main{
  width:100%;
  padding:90px 0 70px;
  background:#011627;
}

.ee-footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:70px;
  align-items:start;
}


/* BRAND COLUMN */

.ee-footer-brand{
  min-width:0;
}

.ee-footer-logo{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#FFFFFF;
  text-decoration:none;
}

.ee-footer-logo:hover{
  color:#FFFFFF;
}

.ee-logo-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#3ED6D3;
  font-size:25px;
  font-weight:600;
  line-height:1;
}

.ee-logo-wordmark{
  color:#FFFFFF;
  font-size:20px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:-.03em;
}

.ee-footer-brand p{
  max-width:380px;
  margin:25px 0 0;
  color:rgba(255,255,255,.55);
  font-size:13px;
  line-height:1.8;
}


/* FOOTER CTA */

.ee-footer-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-top:28px;
  padding:0 20px;
  border-radius:999px;
  background:#3ED6D3;
  color:#011627;
  font-size:12px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.ee-footer-cta:hover{
  color:#011627;
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(0,0,0,.15);
}


/* FOOTER COLUMNS */

.ee-footer-column{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.ee-footer-heading{
  margin-bottom:21px;
  color:#3ED6D3;
  font-size:10px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:1.6px;
  text-transform:uppercase;
}

.ee-footer-column a{
  display:block;
  margin:0 0 12px;
  color:rgba(255,255,255,.66);
  font-size:12px;
  line-height:1.55;
  text-decoration:none;
  transition:
    color .2s ease,
    transform .2s ease;
}

.ee-footer-column a:hover{
  color:#FFFFFF;
  transform:translateX(2px);
}


/* FOOTER BOTTOM */

.ee-footer-bottom{
  width:100%;
  background:#011627;
  border-top:1px solid rgba(255,255,255,.10);
}

.ee-footer-bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  min-height:72px;
  color:rgba(255,255,255,.38);
  font-size:10px;
  line-height:1.5;
}

.ee-footer-legal{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:22px;
}

.ee-footer-legal a{
  color:rgba(255,255,255,.38);
  text-decoration:none;
  transition:color .2s ease;
}

.ee-footer-legal a:hover{
  color:#FFFFFF;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1080px){

  .ee-header-inner{
    gap:18px;
  }

  .ee-nav-link,
  .ee-mega-trigger{
    padding:0 8px;
    font-size:12px;
  }

  .ee-header-cta{
    padding:0 16px;
    font-size:11px;
  }

  .ee-mega-inner{
    grid-template-columns:repeat(2,1fr);
    gap:38px 46px;
  }

  .ee-footer-main{
    padding:80px 0 60px;
  }

  .ee-footer-grid{
    grid-template-columns:1fr 1fr;
    gap:50px 40px;
  }

  .ee-footer-brand{
    grid-column:1 / -1;
    max-width:650px;
  }

}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media(max-width:860px){

  .ee-header-container{
    width:calc(100% - 30px);
  }

  .ee-header-inner{
    min-height:72px;
    grid-template-columns:1fr auto;
    gap:20px;
  }

  .ee-header-logo-image{
    max-width:165px;
    max-height:42px;
  }

  .ee-header-logo-wordmark{
    font-size:18px;
  }

  .ee-header-cta{
    display:none;
  }

  .ee-mobile-toggle{
    display:flex;
  }

  /*
   * The mobile navigation is deliberately constrained to
   * the remaining viewport height and scrolls independently.
   * This allows the Systems section to remain open while
   * the user scrolls through the full navigation.
   */

  .ee-primary-nav{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    max-height:calc(100vh - 72px);
    max-height:calc(100dvh - 72px);
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    display:none;
    justify-self:stretch;
    background:#FFFFFF;
    border-top:1px solid var(--ee-border);
    border-bottom:1px solid var(--ee-border);
    box-shadow:0 18px 45px rgba(1,22,39,.10);
  }

  .ee-primary-nav.is-open{
    display:block;
  }

  .ee-primary-menu{
    width:calc(100% - 30px);
    margin:0 auto;
    padding:14px 0 22px;
    display:block;
  }

  .ee-primary-menu > li{
    border-bottom:1px solid var(--ee-border);
  }

  .ee-primary-menu > li:last-child{
    border-bottom:0;
  }

  .ee-nav-link,
  .ee-mega-trigger{
    width:100%;
    min-height:54px;
    padding:0;
    justify-content:space-between;
    color:var(--ee-navy);
    font-size:14px;
    font-weight:500;
    text-align:left;
  }

  .ee-mega-parent{
    position:relative;
  }

  .ee-mega-menu{
    position:static;
    width:100%;
    display:none;
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    transform:none;
    border:0;
    box-shadow:none;
    background:var(--ee-off);
    transition:none;
  }

  .ee-mega-parent.is-open .ee-mega-menu{
    display:block;
  }

  .ee-mega-inner{
    width:100%;
    padding:24px 16px 26px;
    grid-template-columns:1fr;
    gap:30px;
  }

  .ee-mega-heading{
    margin-bottom:10px;
  }

  .ee-mega-link{
    grid-template-columns:34px 1fr;
    gap:12px;
    padding:11px 6px;
  }

  .ee-mega-icon{
    width:34px;
    height:34px;
  }

  .ee-mega-icon svg{
    width:17px;
    height:17px;
  }

  .ee-mega-copy strong{
    font-size:12px;
  }

  .ee-mega-copy span{
    font-size:10px;
  }

  .ee-mobile-review-wrap{
    display:block;
    padding-top:18px;
  }

  .ee-mobile-review{
    display:flex;
    min-height:52px;
    align-items:center;
    justify-content:center;
    padding:0 20px;
    border-radius:999px;
    background:var(--ee-navy);
    color:#FFFFFF;
    font-size:12px;
    font-weight:600;
    line-height:1;
    text-decoration:none;
  }

  .ee-mobile-review:hover{
    color:#FFFFFF;
  }

}


/* =========================================================
   MOBILE FOOTER
   ========================================================= */

@media(max-width:700px){

  .ee-footer-main{
    padding:65px 0 45px;
  }

  .ee-footer-container{
    width:calc(100% - 30px);
  }

  .ee-footer-grid{
    grid-template-columns:1fr;
    gap:38px;
  }

  .ee-footer-brand{
    grid-column:auto;
  }

  .ee-logo-wordmark{
    font-size:18px;
  }

  .ee-footer-brand p{
    max-width:none;
  }

  .ee-footer-bottom-inner{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:12px;
    min-height:auto;
    padding:22px 0;
  }

  .ee-footer-legal{
    gap:12px 18px;
  }

}