/* =========================================================
   plan b — Chrome (Header, Nav, Footer)
   ========================================================= */

/* ---------------- Brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; position: relative; overflow: hidden;
  flex: none;
}
.brand__mark span {
  font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1;
  color: var(--amber); position: relative; z-index: 1;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 120%, var(--ember), transparent 60%);
  opacity: .9;
}
.brand__txt { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.brand__txt b { color: var(--ember); font-weight: 800; }
.brand__txt i { display: block; font-style: normal; font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.brand--light .brand__txt { color: var(--paper); }
.brand--light .brand__txt i { color: var(--mist); }

/* ---------------- Header ---------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.hdr--scr { background: rgba(251,248,243,.82); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.hdr__bar { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.hdr__nav { display: flex; align-items: center; gap: 4px; }
.nav__item {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 600; font-size: 16px; color: var(--ink);
  padding: 10px 14px; border-radius: 100px; transition: background .2s, color .2s;
}
.nav__item:hover { background: rgba(14,20,17,.05); }
.nav__item.is-active { color: var(--ember); }
.nav__chev { width: 15px; height: 15px; opacity: .6; transition: transform .25s; }
.hdr__cta { display: flex; align-items: center; gap: 16px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.hdr__phone svg { width: 16px; height: 16px; color: var(--ember); }
.hdr__phone:hover { color: var(--ember); }
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 22px; place-items: center; }
@media (max-width: 980px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: grid; }
}

/* ---------------- Mega menu ---------------- */
.mega {
  position: absolute; top: 78px; left: 0; right: 0;
  background: rgba(251,248,243,.96); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.mega--open { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-block: 26px; }
.mega__card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px;
  border-radius: var(--r-md); border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.mega__card:hover { background: #fff; border-color: var(--line); transform: translateY(-3px); box-shadow: var(--sh-1); }
.mega__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 24px; flex: none; }
.mega__body { display: flex; flex-direction: column; gap: 4px; }
.mega__body strong { font-family: var(--display); font-size: 17px; font-weight: 700; }
.mega__body span { font-size: 13.5px; color: var(--slate); line-height: 1.45; }
.mega__go { width: 18px; height: 18px; color: var(--slate); margin-left: auto; opacity: 0; transition: opacity .2s, transform .2s; flex: none; }
.mega__card:hover .mega__go { opacity: 1; transform: translate(2px,-2px); }
@media (max-width: 980px) { .mega { display: none; } }

/* ---------------- Mobile drawer ---------------- */
.drawer {
  position: fixed; inset: 78px 0 0 0; z-index: 99;
  background: var(--paper); transform: translateX(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; padding: 24px var(--gut) 60px;
}
.drawer--open { transform: none; }
.drawer__inner { display: flex; flex-direction: column; }
.drawer__h { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin: 22px 0 8px; }
.drawer__svc { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-family: var(--display); font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer__ic { font-size: 24px; }
.drawer__link { padding: 14px 0; font-family: var(--display); font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer__foot { display: grid; gap: 12px; margin-top: 28px; }
.drawer__foot .btn { justify-content: center; }

/* ---------------- Footer ---------------- */
.ftr { padding-block: clamp(56px, 7vw, 90px) 32px; }
.ftr__top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.ftr__brandcol .brand__mark { background: var(--ink-3); }
.ftr__social { display: flex; gap: 10px; margin-top: 24px; }
.ftr__soc { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-dark); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--mist); transition: background .2s, color .2s, border-color .2s; }
.ftr__soc:hover { background: var(--ember); color: #fff; border-color: var(--ember); }
.ftr__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ftr__links h4 { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-bottom: 16px; }
.ftr__links a, .ftr__addr { display: block; color: #C6D0CA; font-weight: 500; font-size: 15px; padding: 6px 0; transition: color .2s; }
.ftr__links a:hover { color: var(--amber); }
.ftr__addr { color: var(--mist); }
.ftr__bot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; color: var(--mist); }
.ftr__legal { display: flex; gap: 20px; }
.ftr__legal a:hover { color: var(--amber); }
.ftr__co2 { display: inline-flex; align-items: center; gap: 7px; color: var(--leaf); font-weight: 600; }
.ftr__co2 svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .ftr__top { grid-template-columns: 1fr; gap: 36px; }
  .ftr__links { grid-template-columns: 1fr 1fr; }
}
