/* ==============================================================================
   SYNERGY ENERGY SOLUTIONS — FOOTER STYLES
   ==============================================================================
   
   Styles for the master site footer: dark 4-column grid (About blurb,
   Solutions menu, Company menu, Find Us with Areas Served), accreditation
   logo strip, and bottom copyright row.
   
   DEPENDENCIES: foundation.css must be loaded FIRST. Foundation provides
   the design tokens (CSS variables), base reset, typography, and container
   — all of which are USED but not REDEFINED here.
   
   See functions.php for the wp_enqueue_style() chain that ensures load order.
   ============================================================================== */

/* ===== FOOTER CONTAINER ===== */
  .site-footer {
    background: #1a2024;
    color: #cfd4d7;
    padding: 64px 0 0;
  }
  .site-footer h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-weight: 600;
  }
  .site-footer ul { list-style: none; margin: 0; padding: 0; }
  .site-footer li { margin-bottom: 8px; }
  .site-footer a {
    color: #cfd4d7;
    font-size: 0.92rem;
  }
  .site-footer a:hover { color: var(--brand-primary-light); }

  /* ===== 4-COLUMN GRID =====
     Solutions column gets more width because it now has 15 links — a flat
     vertical list at 0.92rem stays readable, and the wider column prevents
     awkward wrapping on long product names like "Tesla / SigenStor / Victron
     comparison".
  */
  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.1fr 1fr 1.2fr;
    gap: 48px;
  }

  /* ===== ABOUT COLUMN (logo + blurb) ===== */
  .footer-about img {
    height: 52px;
    filter: brightness(0) invert(1);  /* white logo on dark background */
    margin-bottom: 16px;
  }
  .footer-about p {
    font-size: 0.92rem;
    color: #9ea5aa;
    line-height: 1.65;
    margin: 0;
  }

  /* ===== ADDRESS + AREAS SERVED COLUMN ===== */
  .footer-address {
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: normal;  /* <address> defaults to italic; we don't want that */
  }
  .footer-address strong {
    color: #fff;
    display: block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-weight: 600;
  }
  .footer-address strong:first-child { margin-top: 0; }
  .footer-address a { color: #cfd4d7; }
  .footer-address a:hover { color: var(--brand-primary-light); }

  /* Areas-served sub-block — sits inside the Find Us column */
  .footer-areas {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .footer-areas h4 {
    color: #fff;
    font-size: 0.85rem;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .footer-areas p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #9ea5aa;
  }

  /* ===== ACCREDITATION LOGO STRIP ===== */
  .footer-accreditations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px 32px;
    margin: 28px 0 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.10);
  }
  .footer-accreditations img {
    max-height: 38px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1) opacity(0.75);  /* makes logos white & subtle */
    transition: filter 0.2s ease;
  }
  .footer-accreditations a:hover img {
    filter: brightness(0) invert(1) opacity(1);
  }
  /* Tesla logo is wider — slightly smaller cap height keeps it visually balanced */
  .footer-accreditations .footer-accred-tesla img { max-height: 30px; }

  /* ===== BOTTOM COPYRIGHT ROW ===== */
  .footer-bottom {
    margin-top: 56px;
    padding: 24px 0;
    border-top: 1px solid #2a3339;
    text-align: center;
    font-size: 0.85rem;
    color: #7c848a;
  }
  .footer-bottom a { color: inherit; }
  .footer-bottom a:hover { color: var(--brand-primary-light); }
  .footer-bottom .sep {
    margin: 0 10px;
    color: #444a4f;
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  }
  @media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom .sep { display: none; }
    .footer-bottom > span,
    .footer-bottom > a { display: inline-block; margin: 2px 8px; }
  }

  /* ===== PRINT ===== */
  @media print {
    .site-footer { display: none !important; }
  }

/* === Footer accreditation logos — FIX (2026-06-03) ===
   The logo PNGs have opaque white backgrounds, so brightness(0) invert(1)
   turned them into solid blocks. Show them in natural colour on white chips. */
.footer-accreditations a {
  background: #fff;
  padding: 9px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-accreditations img,
.footer-accreditations a:hover img {
  filter: none;
  opacity: 1;
  max-height: 30px;
}
/* Tesla is an inline SVG (no logo file exists) — recolour it dark so it reads on the white chip */
.footer-accreditations .footer-accred-tesla svg path { fill: #1a1a1a; }
.footer-accreditations .footer-accred-tesla svg text { fill: #333333; }
.footer-accreditations .footer-accred-tesla svg { height: 28px; }

/* === Footer logo: brand colours on a white chip (2026-06-03) ===
   Overrides the white-invert so the real logo (green leaf + dark text) shows. */
.footer-about img {
  filter: none;
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  height: 56px;
  box-sizing: content-box;
  display: inline-block;
}

/* === Bigger Tesla mark; chip kept level with the other logos === */
.footer-accreditations .footer-accred-tesla { padding-top: 0; padding-bottom: 0; }
.footer-accreditations .footer-accred-tesla svg { height: 48px; opacity: 1 !important; }

/* === Uniform accreditation chips (2026-06-03) === */
.footer-accreditations { gap: 18px 20px; }
.footer-accreditations a {
  width: 150px;
  height: 58px;
  padding: 10px 16px;
  box-sizing: border-box;
}
.footer-accreditations img,
.footer-accreditations .footer-accred-tesla svg {
  max-height: 34px;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* === Footer social icons (2026-06-03) === */
.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #cfd4d7;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover {
  background: var(--brand-primary-light, #8bb524);
  color: #1a2024;
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; display: block; }