/* =====================================================================
   HEATMAX — SITE CHROME (header + footer) — loads on ALL pages
   Sab classes "hm-" se shuru hoti hain, taaki Bootstrap / style.css
   aur internal pages ki CSS se takraav na ho.
   ===================================================================== */

:root {
  --hm-blue: #0747a6;
  --hm-red: #ed1c24;
  --hm-ink: #111820;
  --hm-navy: #071827;
  --hm-text: #5a6672;
  --hm-line: #d8dde2;
  --hm-font: Inter, Arial, sans-serif;
}

/* ---------- Scoped reset ---------- */
.hm-header, .hm-footer, .hm-linkedin-float { font-family: var(--hm-font); -webkit-font-smoothing: antialiased; }
.hm-header *, .hm-footer * { box-sizing: border-box; }
.hm-header ul, .hm-footer ul { margin: 0; padding: 0; list-style: none; }
.hm-header a, .hm-footer a { color: inherit; text-decoration: none; }
.hm-header button { font: inherit; }
.hm-header p, .hm-footer p, .hm-footer address { margin: 0; }
.hm-header :focus-visible, .hm-footer :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.hm-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
}

body.hm-no-scroll { overflow: hidden; }

/* =====================================================================
   HEADER
   ===================================================================== */
.hm-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.hm-header.is-scrolled,
.hm-header.menu-open {
  background: var(--hm-navy);
  box-shadow: 0 10px 30px rgba(3, 12, 24, .25);
}
body.admin-bar .hm-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hm-header { top: 46px; } }

/* Top bar */
.hm-topbar {
  height: 34px;
  overflow: hidden;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(2, 12, 24, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: height .3s ease;
}
.hm-header.is-scrolled .hm-topbar { height: 0; border-bottom-width: 0; }
.hm-topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hm-topbar__right { display: flex; align-items: center; gap: 28px; }
.hm-topmenu { display: flex; gap: 28px; }
.hm-topmenu a { transition: opacity .2s ease; }
.hm-topmenu a:hover { opacity: .75; }
.hm-lang { letter-spacing: 0; text-transform: none; }

/* Main bar */
.hm-nav {
  display: flex;
  align-items: center;
  height: 94px;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
  transition: height .3s ease;
}
.hm-header.is-scrolled .hm-nav { height: 76px; border-bottom-color: transparent; }

.hm-logo img { display: block; width: 190px; max-height: 72px; object-fit: contain; }

.hm-primary { margin-left: auto; }

.hm-menu { display: flex; align-items: center; gap: 30px; }
.hm-menu > li { position: relative; display: flex; align-items: center; }
.hm-menu > li > a {
  display: block;
  padding: 36px 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s ease, padding .3s ease;
}
.hm-header.is-scrolled .hm-menu > li > a { padding: 27px 0; }
.hm-menu > li > a:hover { opacity: .8; }

/* Sub-menu toggle (JS adds this button to items with children) */
.hm-sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.hm-sub-toggle::before {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.hm-menu li.is-open > .hm-sub-toggle::before { transform: translateY(2px) rotate(225deg); }

/* Dropdown */
.hm-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -22px;
  z-index: 5;
  min-width: 260px;
  padding: 12px 0;
  color: var(--hm-ink);
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 23, 38, .2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hm-menu li:hover > .sub-menu,
.hm-menu li:focus-within > .sub-menu,
.hm-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.hm-menu .sub-menu li { position: relative; }
.hm-menu .sub-menu a {
  display: block;
  padding: 10px 40px 10px 22px;
  font-size: 13.5px;
  color: #4e5b67;
  transition: color .2s ease, background-color .2s ease;
}
.hm-menu .sub-menu a:hover,
.hm-menu .sub-menu .current-menu-item > a { color: var(--hm-blue); background: #f4f7fa; }
.hm-menu .sub-menu .hm-sub-toggle { position: absolute; top: 9px; right: 14px; margin: 0; transform: rotate(-90deg); }
.hm-menu .sub-menu .sub-menu { top: -12px; left: 100%; }

/* Right side */
.hm-nav__end { display: flex; align-items: center; gap: 14px; margin-left: 34px; }
.hm-quote {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--hm-red);
  transition: background-color .2s ease;
}
.hm-header .hm-quote { color: #fff; }
.hm-quote:hover { background: #c8141b; }
.hm-quote--mobile { display: none; }

.hm-burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.hm-burger i { display: block; height: 2px; margin: 5px 0; background: #fff; transition: transform .25s ease, opacity .25s ease; }
.hm-header.menu-open .hm-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hm-header.menu-open .hm-burger i:nth-child(2) { opacity: 0; }
.hm-header.menu-open .hm-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Floating LinkedIn */
.hm-linkedin-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--hm-blue);
  box-shadow: 0 10px 24px rgba(7, 71, 166, .3);
  transition: transform .2s ease;
}
.hm-linkedin-float:hover { color: #fff; transform: translateY(-3px); }
.hm-linkedin-float svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Header: tablet / mobile ---------- */
@media (max-width: 1100px) {
  .hm-burger { display: block; }
  .hm-nav__end { margin-left: auto; }

  .hm-primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    color: var(--hm-ink);
    background: #fff;
    box-shadow: 0 24px 60px rgba(8, 23, 38, .2);
  }
  .hm-header.menu-open .hm-primary { display: block; }

  .hm-menu { display: block; padding: 6px 0; }
  .hm-menu > li { display: block; }
  .hm-menu > li > a,
  .hm-header.is-scrolled .hm-menu > li > a {
    padding: 15px 64px 15px 24px;
    font-size: 15px;
    color: var(--hm-ink);
    border-bottom: 1px solid var(--hm-line);
  }
  .hm-menu > li > a:hover { opacity: 1; color: var(--hm-blue); }

  .hm-sub-toggle,
  .hm-menu .sub-menu .hm-sub-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 52px;
    margin: 0;
    transform: none;
  }
  .hm-menu .sub-menu .hm-sub-toggle { height: 46px; }

  .hm-menu .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0;
    background: #f5f7f9;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .hm-menu li:hover > .sub-menu,
  .hm-menu li:focus-within > .sub-menu { display: none; }
  .hm-menu li.is-open > .sub-menu { display: block; }

  .hm-menu .sub-menu a { padding: 13px 64px 13px 40px; font-size: 14px; border-bottom: 1px solid var(--hm-line); }
  .hm-menu .sub-menu a:hover { background: none; }
  .hm-menu .sub-menu .sub-menu a { padding-left: 56px; }

  .hm-quote--mobile { display: flex; justify-content: space-between; margin: 18px 24px 24px; }
}

@media (max-width: 680px) {
  .hm-wrap { width: calc(100% - 36px); }
  .hm-topbar { display: none; }
  .hm-nav, .hm-header.is-scrolled .hm-nav { height: 70px; }
  .hm-logo img { width: 150px; }
  .hm-nav__end .hm-quote { display: none; }
  .hm-primary { max-height: calc(100vh - 70px); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.hm-footer {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(12, 87, 188, .38), transparent 32%),
    linear-gradient(145deg, #07131f 0%, #0b2135 68%, #07131f 100%);
}
.hm-footer::before {
  content: 'HEATMAX';
  position: absolute;
  right: -10px;
  bottom: -66px;
  font: 700 clamp(120px, 18vw, 280px) / 1 var(--hm-font);
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
}

.hm-footer__head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.hm-footer__logo img { width: 190px; max-height: 75px; object-fit: contain; }
.hm-footer__tagline {
  font-size: clamp(28px, 3vw, 45px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: #9aaaba;
}
.hm-footer__actions { display: flex; justify-content: flex-end; gap: 8px; }
.hm-footer__actions a {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background-color .2s ease, color .2s ease;
}
.hm-footer .hm-footer__cta { color: #0a1a2a; background: #fff; }
.hm-footer__linkedin { display: grid !important; place-items: center; width: 48px; height: 48px; padding: 0 !important; }
.hm-footer__linkedin:hover { background: rgba(255, 255, 255, .1); }
.hm-footer__linkedin svg { display: block; width: 20px; height: 20px; fill: currentColor; }

.hm-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1.7fr;
  padding: 48px 80px 58px 80px;
}
.hm-footer__grid > div { display: flex; flex-direction: column; gap: 9px; padding-right: 26px; }
.hm-footer__title { margin-bottom: 10px; font-size: 20px; font-weight: 600; color: #7690aa; }
.hm-footer__links { display: flex; flex-direction: column; gap: 9px; }
.hm-footer__links a,
.hm-footer__address { font-size: 13px; font-style: normal; line-height: 1.7; color: #b7c3cf; }
.hm-footer__links a { display: inline-block; transition: color .2s ease, transform .2s ease; }
.hm-footer__links a:hover { color: #fff; transform: translateX(4px); }

.hm-legal {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 20px 80px 24px 80px;
  font-size: 11px;
  color: #73879a;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

@media (max-width: 1050px) {
  .hm-footer__head { grid-template-columns: 1fr 1fr; }
  .hm-footer__actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 25px; }
  .hm-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .hm-footer__head, .hm-footer__grid { grid-template-columns: 1fr; }
  .hm-footer__head { gap: 25px; }
  .hm-footer__tagline { margin-top: 28px; }
  .hm-footer__actions { grid-column: auto; flex-wrap: wrap; }
  .hm-footer__grid { gap: 34px; }
  .hm-legal { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-header, .hm-header *, .hm-footer * { transition: none !important; }
}