/*
Theme Name:  West Essex Heating
Theme URI:   https://westessexheating.co.uk
Author:      West Essex Heating Ltd
Author URI:  https://westessexheating.co.uk
Description: A professional Bootstrap 5 WordPress theme for West Essex Heating Ltd – Expert Heating & Renewable Energy Solutions for Essex.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: west-essex-heating
Tags:        bootstrap-5, heating, renewable-energy, business, responsive
*/

/* =========================================================
   WEST ESSEX HEATING – MAIN STYLESHEET
   Design: Professional, trustworthy, clean
   Primary: #1B2A4A (Navy)  |  Accent: #E87722 (Orange)
   Fonts:   Montserrat (headings) + Open Sans (body)
   ========================================================= */

/* ---------- CSS VARIABLES ---------- */
:root {
  --weh-navy:        #1B2A4A;
  --weh-navy-dark:   #0f1c33;
  --weh-navy-mid:    #1e3a5f;
  --weh-orange:      #E87722;
  --weh-orange-hover:#d06318;
  --weh-white:       #ffffff;
  --weh-light-grey:  #f4f6f9;
  --weh-text-dark:   #1a1a2e;
  --weh-text-muted:  #6c757d;
  --weh-border:      #e0e4ec;
  --font-heading:    'Montserrat', sans-serif;
  --font-body:       'Open Sans', sans-serif;
  --shadow-sm:       0 2px 8px rgba(27,42,74,.08);
  --shadow-md:       0 4px 20px rgba(27,42,74,.12);
  --shadow-lg:       0 8px 40px rgba(27,42,74,.18);
  --radius:          10px;
  --radius-lg:       16px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--weh-text-dark);
  background: var(--weh-white);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}
a  { text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; }

.text-orange  { color: var(--weh-orange) !important; }
.bg-navy      { background-color: var(--weh-navy) !important; }
.bg-light-grey{ background-color: var(--weh-light-grey) !important; }

/* ---------- TOP BAR ---------- */
.weh-topbar {
  background-color: var(--weh-navy);
  color: rgba(255,255,255,.9);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 0;
  letter-spacing: .02em;
}
.weh-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}
.weh-topbar-inner span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.weh-topbar-inner .bi-check-circle-fill { color: var(--weh-orange); font-size: 13px; }

/* ---------- NAVBAR (NAVWALKER) ---------- */
#weh-main-nav {
  padding: 10px 0;
  transition: all .3s ease;
  z-index: 1000;
}
#weh-main-nav.scrolled { box-shadow: var(--shadow-md) !important; padding: 6px 0; }

/* Brand */
.navbar-brand { text-decoration: none; }
.weh-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.weh-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--weh-navy);
  letter-spacing: -.01em;
}
.weh-brand-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  color: var(--weh-text-muted);
  letter-spacing: .02em;
}

/* Nav links */
.weh-navwalker .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--weh-navy) !important;
  padding: 8px 16px !important;
  position: relative;
  transition: color .2s;
}
.weh-navwalker .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--weh-orange);
  transform: scaleX(0);
  transition: transform .25s ease;
  border-radius: 2px;
}
.weh-navwalker .nav-link:hover::after,
.weh-navwalker .nav-link.active::after { transform: scaleX(1); }
.weh-navwalker .nav-link:hover { color: var(--weh-orange) !important; }

/* Dropdown toggle caret */
.weh-navwalker .dropdown-toggle::after {
  border: none;
  content: "\F282";
  font-family: "bootstrap-icons";
  font-size: 11px;
  vertical-align: middle;
  margin-left: 4px;
  transition: transform .2s;
}
.weh-navwalker .dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* Dropdown menu */
.weh-navwalker-dropdown {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 230px;
  margin-top: 4px !important;
  animation: wehDropIn .2s ease;
}
@keyframes wehDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.weh-navwalker-dropdown .dropdown-item {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--weh-navy);
  padding: 9px 20px;
  transition: all .15s;
}
.weh-navwalker-dropdown .dropdown-item:hover {
  background: rgba(232,119,34,.08);
  color: var(--weh-orange);
  padding-left: 26px;
}
.weh-navwalker-dropdown .dropdown-item .bi { font-size: 14px; }

/* CTA button */
.btn-weh-cta {
  background: var(--weh-navy);
  color: var(--weh-white) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--weh-navy);
  transition: all .25s;
  white-space: nowrap;
}
.btn-weh-cta:hover {
  background: var(--weh-orange);
  border-color: var(--weh-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,119,34,.35);
}

/* ---------- HERO SECTION ---------- */
.weh-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--weh-navy);
}
.weh-hero-bg { position: absolute; inset: 0; z-index: 0; }
.weh-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
.weh-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(15,28,51,.92) 0%,
    rgba(15,28,51,.80) 40%,
    rgba(15,28,51,.30) 70%,
    rgba(15,28,51,.05) 100%
  );
}
.weh-hero-content {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 100px;
}
.weh-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px,4vw,46px);
  color: var(--weh-white);
  line-height: 1.2;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.weh-hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.7;
}
.btn-weh-hero {
  background: var(--weh-orange);
  color: var(--weh-white) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--weh-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  box-shadow: 0 4px 20px rgba(232,119,34,.4);
}
.btn-weh-hero:hover {
  background: var(--weh-orange-hover);
  border-color: var(--weh-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,119,34,.5);
}
.weh-hero-serving {
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  margin-top: 14px;
  margin-bottom: 20px;
}

/* Google Rating Badge */
.weh-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.weh-google-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.weh-google-badge-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  color: var(--weh-text-dark);
}
.weh-google-badge-stars { display: flex; align-items: center; gap: 5px; }
.weh-rating-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--weh-text-dark);
}
.weh-stars { display: flex; gap: 2px; }
.weh-stars .bi { color: #FBBC05; font-size: 13px; }

/* Wave divider */
.weh-hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.weh-hero-wave svg { width: 100%; height: 80px; display: block; }

/* ---------- SECTION SHARED ---------- */
.weh-section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px,3vw,32px);
  color: var(--weh-navy);
  margin-bottom: 8px;
}
.weh-section-subtitle {
  color: var(--weh-text-muted);
  font-size: 14.5px;
  margin-bottom: 0;
}

/* ---------- SERVICES SECTION ---------- */
.weh-services { background: var(--weh-white); }

/* Filter tabs */
.weh-filter { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.weh-filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 20px;
  border-radius: 50px;
  border: 2px solid var(--weh-border);
  background: var(--weh-white);
  color: var(--weh-text-muted);
  cursor: pointer;
  transition: all .2s;
}
.weh-filter-btn:hover,
.weh-filter-btn.active {
  background: var(--weh-navy);
  border-color: var(--weh-navy);
  color: var(--weh-white);
}

/* Service cards */
.weh-service-card {
  border: 1.5px solid var(--weh-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--weh-white);
  transition: all .3s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.weh-service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}
.weh-service-card--dark {
  background: var(--weh-navy);
  border-color: var(--weh-navy);
}
.weh-service-card-body {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 160px;
}
.weh-service-card-text {
  flex: 1;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.weh-service-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--weh-navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.weh-service-card--dark .weh-service-card-title { color: var(--weh-white); }
.weh-service-card-desc {
  font-size: 13px;
  color: var(--weh-text-muted);
  margin-bottom: 14px;
  flex: 1;
}
.weh-service-card--dark .weh-service-card-desc { color: rgba(255,255,255,.75); }
.weh-service-card-img {
  width: 140px;
  min-width: 140px;
  overflow: hidden;
  flex-shrink: 0;
}
.weh-service-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.weh-service-card:hover .weh-service-card-img img { transform: scale(1.05); }

/* Service card buttons */
.btn-weh-read {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--weh-navy);
  border: 1.5px solid var(--weh-border);
  background: var(--weh-white);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  width: fit-content;
}
.btn-weh-read:hover {
  background: var(--weh-navy);
  border-color: var(--weh-navy);
  color: var(--weh-white);
}
.btn-weh-learn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: var(--weh-white);
  border: 1.5px solid var(--weh-orange);
  background: var(--weh-orange);
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
  width: fit-content;
}
.btn-weh-learn:hover {
  background: var(--weh-orange-hover);
  border-color: var(--weh-orange-hover);
  color: var(--weh-white);
}
.weh-load-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--weh-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.weh-load-more:hover { color: var(--weh-orange); }

/* ---------- PROMO BANNERS ---------- */
.weh-promo-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .25s, box-shadow .25s;
}
.weh-promo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.weh-promo-card--dark  { background: var(--weh-navy); color: var(--weh-white); }
.weh-promo-card--white { background: var(--weh-white); border: 2px solid var(--weh-border); color: var(--weh-navy); }
.weh-promo-card--blue  { background: linear-gradient(135deg,#1e3a5f 0%,#2d5a8e 100%); color: var(--weh-white); }

.weh-promo-label  { font-family: var(--font-heading); font-weight: 600; font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 4px; }
.weh-promo-amount { font-family: var(--font-heading); font-weight: 800; font-size: 36px; color: var(--weh-orange); margin-bottom: 6px; line-height: 1; }
.weh-promo-desc   { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.weh-promo-title  { font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--weh-navy); margin-bottom: 8px; }
.weh-promo-desc-d { font-size: 14px; color: var(--weh-text-muted); margin: 0; }
.weh-promo-save   { font-family: var(--font-heading); font-weight: 800; font-size: 28px; color: var(--weh-white); margin-bottom: 8px; }
.weh-promo-save-d { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.weh-promo-small  { font-size: 11px; color: rgba(255,255,255,.55); }

/* ---------- INSTALLATION PROMISE ---------- */
.weh-promise-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px,3vw,36px);
  color: var(--weh-navy);
  margin-bottom: 18px;
  line-height: 1.25;
}
.weh-promise-desc {
  color: var(--weh-text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}
.btn-weh-promise {
  background: var(--weh-orange);
  color: var(--weh-white) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--weh-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
  box-shadow: 0 4px 16px rgba(232,119,34,.3);
}
.btn-weh-promise:hover {
  background: var(--weh-orange-hover);
  border-color: var(--weh-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,119,34,.45);
}
.weh-engineer-wrap { display: inline-block; position: relative; }
.weh-engineer-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--weh-orange) 0%, var(--weh-navy) 100%);
  z-index: -1;
  opacity: .15;
}
.weh-engineer-img {
  width: 280px; height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 5px solid var(--weh-white);
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 0 auto;
}

/* ---------- WHY CHOOSE US ---------- */
.weh-why { background: var(--weh-light-grey); }
.weh-why-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--weh-white);
  border: 2px solid var(--weh-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 26px;
  color: var(--weh-navy);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.weh-why-icon:hover {
  background: var(--weh-navy);
  color: var(--weh-white);
  border-color: var(--weh-navy);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.weh-why-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--weh-navy);
  line-height: 1.4;
  margin: 0;
}

/* ---------- FOOTER ---------- */
.weh-footer { background: var(--weh-navy); color: rgba(255,255,255,.8); }
.weh-footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--weh-white);
}
.weh-footer-brand-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  letter-spacing: .03em;
}
.weh-footer-tagline { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.65; margin-bottom: 0; }
.weh-accred-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.weh-footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--weh-white);
  margin-bottom: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.weh-footer-links { list-style: none; padding: 0; margin: 0; }
.weh-footer-links li { margin-bottom: 8px; }
.weh-footer-links a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color .2s; }
.weh-footer-links a:hover,
.weh-footer-links a.weh-orange-link { color: var(--weh-orange); }

.weh-footer-contact { list-style: none; padding: 0; margin: 0; }
.weh-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
}
.weh-footer-contact .bi { font-size: 14px; margin-top: 2px; flex-shrink: 0; }
.weh-footer-contact a { color: rgba(255,255,255,.75); transition: color .2s; }
.weh-footer-contact a:hover { color: var(--weh-orange); }

.weh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
}
.weh-footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.45); margin: 0; }

/* ---------- FILTER ANIMATION ---------- */
.weh-card-wrap { transition: opacity .3s ease, transform .3s ease; }
.weh-card-wrap.hidden { opacity: 0; transform: scale(.95); pointer-events: none; display: none; }

/* ---------- SCROLL REVEAL ---------- */
.weh-reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.weh-reveal.visible { opacity: 1; transform: translateY(0); }
.weh-reveal-d1 { transition-delay: .1s; }
.weh-reveal-d2 { transition-delay: .2s; }
.weh-reveal-d3 { transition-delay: .3s; }
.weh-reveal-d4 { transition-delay: .4s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .weh-topbar-inner { gap: 12px; font-size: 11.5px; }
  .weh-navwalker .nav-link { padding: 10px 12px !important; }
  .btn-weh-cta { margin-top: 12px; width: 100%; justify-content: center; }
  .weh-hero { min-height: 500px; }
  .weh-hero-content { padding-top: 50px; padding-bottom: 90px; }
  .weh-hero-title { font-size: 28px; }
  .weh-service-card-img { width: 120px; min-width: 120px; }
}
@media (max-width: 767.98px) {
  .weh-topbar { display: none; }
  .weh-hero { min-height: 420px; }
  .weh-hero-content { padding-top: 40px; padding-bottom: 80px; }
  .weh-hero-title { font-size: 24px; }
  .weh-hero-desc { font-size: 14px; }
  .weh-service-card-body { flex-direction: column; }
  .weh-service-card-img { width: 100%; height: 160px; min-width: unset; }
  .weh-engineer-img { width: 220px; height: 220px; }
  .weh-promo-card { min-height: 120px; }
  .weh-promo-amount { font-size: 28px; }
}
@media (max-width: 575.98px) {
  .weh-hero-title { font-size: 22px; }
  .weh-google-badge { padding: 8px 12px; }
  .weh-section-title { font-size: 22px; }
  .weh-engineer-img { width: 180px; height: 180px; }
}
a.custom-logo-link img {
    max-width: 200px;
}
img.footer-logo {
    max-width: 200px;
}