/* =========================================
   HJR Building Services — Global Stylesheet
   One file for ALL pages (Home, About, etc.)
========================================= */

/* ---------- CSS Variables ---------- */
:root {
  --blue-900:#0a3570;
  --blue-700:#134a9b;
  --blue-050:#eef5ff;
  --white:#ffffff;
  --light-blue:#3fa9f5;
  --text:#1b1b1b;

  /* Images (swap URLs here if needed site-wide) */
  --hero-img: url('https://i.ibb.co/6QDPLNp/boiler.jpg'); /* Boiler/engineer image */
  --contact-img: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=1920&auto=format&fit=crop');
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding-top: 130px; /* space for fixed header */
  background: #fff;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
:target { scroll-margin-top: 140px; } /* anchor offset under fixed header */

/* ---------- Buttons ---------- */
.btn { padding: .75rem 1rem; border-radius: .5rem; font-weight: 700; display: inline-block; }
.btn--primary { background: var(--blue-900); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }

/* =========================================
   Header (Topbar + Mainbar) — Fixed
========================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-bottom: 4px solid var(--light-blue); /* light blue outline */
}

/* Topbar */
.topbar { background: var(--blue-050); color: var(--blue-900); font-size: .9rem; }
.topbar__inner { display: flex; gap: 1rem; justify-content: flex-end; padding: .5rem 0; }
.topbar__item { display: flex; gap: .5rem; color: var(--blue-900); align-items: center; }

/* Mainbar */
.mainbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 1.8rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__logo { height: 44px; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-weight: 800; color: var(--blue-900); font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.brand__sub { color: #40629c; font-size: .82rem; }

/* Nav */
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; gap: 1.25rem; list-style: none; }
.nav__link { color: var(--blue-900); font-weight: 600; border-bottom: 2px solid transparent; }
.nav__link:hover { border-bottom-color: var(--blue-700); }
.nav__link.is-active { border-bottom-color: var(--light-blue); color: var(--light-blue); }

/* Mobile nav */
.nav-toggle { display: none; }
.hamburger { display: none; width: 38px; height: 30px; position: relative; cursor: pointer; }
.hamburger span { position: absolute; left: 0; right: 0; height: 3px; background: var(--blue-900); }
.hamburger span:nth-child(1) { top: 5px; }
.hamburger span:nth-child(2) { top: 13px; }
.hamburger span:nth-child(3) { top: 21px; }

@media (max-width: 980px) {
  .hamburger { display: block; }
  .nav {
    position: fixed;
    top: calc(54px + 64px); /* ~topbar + mainbar */
    left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column; gap: 1rem;
    transform: translateY(-120%); transition: .25s; padding: 2rem; z-index: 9998;
  }
  .nav-toggle:checked ~ .nav { transform: translateY(0); }
  .nav__list { flex-direction: column; }
  .brand__logo, .brand__sub { display: none; }
}

/* =========================================
   Home — Hero (Section 2)
========================================= */
.hero {
  position: relative; min-height: 72vh;
  display: grid; align-items: center;
  background: var(--hero-img) center/cover no-repeat;
  background-color: #0a3570; /* fallback */
  color: #fff;
}
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(10,53,112,.45); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,53,112,.9) 0%, rgba(10,53,112,.7) 60%, transparent 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 5rem 0; }
.hero__title { font-size: clamp(1.4rem, 2vw, 2.2rem); font-weight: 700; margin-bottom: .5rem; } /* tuned smaller */
.hero__tagline { margin-bottom: 1.1rem; }
.hero__bullets { list-style: none; margin: 1rem 0 1.5rem; }
.hero__bullets li { display: flex; gap: .6rem; margin: .4rem 0; }
.hero__bullets i { color: #86e7ff; }
.hero__cta { font-size: 1rem; }

/* =========================================
   Trust Strip + Accreditations
========================================= */
.trust-strip { background: var(--blue-900); color: #fff; text-align: center; padding: .75rem 1rem; }
.trust-strip ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; list-style: none; }
.trust-strip i { margin-right: .4rem; color: #86e7ff; }

.accreditations { background: var(--blue-050); padding: 1.75rem 0; }
.accreditations__inner { display: flex; justify-content: center; align-items: center; gap: 2rem; flex-wrap: wrap; }
.accreditations img {
  max-height: 120px; width: auto; object-fit: contain;
  background: #fff; padding: .6rem 1rem; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
@media (max-width: 640px) { .accreditations img { max-height: 96px; } }

/* =========================================
   Home — Services (Section 3)
========================================= */
.services { padding: 4rem 0; background: var(--blue-050); text-align: center; }
.section-title { font-size: 2rem; color: var(--blue-900); margin-bottom: .5rem; font-weight: 700; }
.section-intro { max-width: 700px; margin: 0 auto 2.5rem; color: #444; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card { background: #fff; border-radius: 10px; padding: 2rem 1.5rem; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.service-icon { font-size: 2.2rem; color: var(--blue-900); margin-bottom: 1rem; }

/* =========================================
   Home — Reviews (Section 4)
========================================= */
.reviews { padding: 4rem 0; background: #fff; }
.reviews-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.review-card { background: var(--blue-050); border-radius: 10px; padding: 1.75rem; }
.quote-icon { font-size: 2rem; color: var(--blue-700); margin-bottom: .5rem; }
.review-text { font-style: italic; margin-bottom: .75rem; }
.review-rating { color: #f9c232; margin-bottom: .5rem; font-weight: bold; }
.review-author { font-weight: 700; }

/* =========================================
   Home — Contact (Section 5)
========================================= */
.contact {
  position: relative;
  background: var(--contact-img) center/cover no-repeat;
  color: #fff;
  padding: 4rem 0;
}
.contact__overlay { position: absolute; inset: 0; background: rgba(10,53,112,.88); }
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.contact__card {
  background: rgba(10,53,112,.88);
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 26px rgba(0,0,0,.28);
}
.contact .section-title { color: #fff; }
.contact .section-intro { color: #eaf3ff; }

.contact__list { list-style: none; margin-top: 1.2rem; }
.contact__list li { margin: .6rem 0; display: flex; align-items: center; gap: .75rem; }
.contact__list a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.contact__form {
  background: #fff; color: #000; padding: 2rem;
  border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-field { flex: 1; display: flex; flex-direction: column; margin-bottom: 1rem; }
label { font-weight: 600; margin-bottom: .25rem; }
input, select, textarea {
  padding: .65rem .75rem; border: 1px solid #ccc; border-radius: 6px; font: inherit;
}
.contact__submit { width: 100%; margin-top: .5rem; }
.form-note { font-size: .85rem; margin-top: .75rem; color: #555; }

@media (max-width: 980px) { .contact__inner { grid-template-columns: 1fr; } }

/* =========================================
   ABOUT PAGE — Reuse + Specific Sections
========================================= */

/* About Hero — uses the same boiler image for consistency */
.about-hero {
  background:
    linear-gradient(to right, rgba(10,53,112,.9), rgba(10,53,112,.7)),
    var(--hero-img) center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1rem;
}
.about-hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: .75rem; }
.about-hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; }

/* About Story */
.about-story { padding: 4rem 0; background: #fff; text-align: center; }
.about-story h2 { font-size: 2rem; color: var(--blue-900); margin-bottom: 1rem; }
.about-story p { max-width: 800px; margin: 0 auto; color: #444; font-size: 1.05rem; }

/* About Values */
.about-values { padding: 4rem 0; background: var(--blue-050); text-align: center; }
.about-values h2 { font-size: 2rem; color: var(--blue-900); margin-bottom: 1.5rem; }
.about-values ul { list-style: none; max-width: 700px; margin: 0 auto; padding: 0; text-align: left; }
.about-values li { margin: .75rem 0; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.about-values i { color: var(--light-blue); font-size: 1.2rem; }

/* =========================================
   Footer
========================================= */
.footer { background: var(--blue-900); color: #fff; padding: 3rem 0 1.5rem; }
.footer__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer__logo { max-height: 50px; margin-bottom: 1rem; }
.footer__col h4 { margin-bottom: .75rem; font-size: 1.1rem; }
.footer__col ul { list-style: none; padding: 0; }
.footer__col ul li { margin: .4rem 0; }
.footer__col a { color: #fff; }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom { text-align: center; font-size: .9rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; }
