/* ==========================================================================
   Site chrome: header + footer (Navigation & Footer Standardisation).
   Design System tokens only (design-tokens.css). Mobile-first.
   Header: logo | Home, About Us, Services (dropdown), Contact | call button.
   ========================================================================== */

html { scroll-padding-top: 68px; } /* sticky header never covers an anchor target */

.hx-skip {
  position: absolute;
  left: -9999px;
  top: var(--ds-sp-2);
  z-index: 100;
  padding: var(--ds-sp-3) var(--ds-sp-4);
  background: var(--ds-white);
  color: var(--ds-teal);
  border-radius: var(--ds-radius-btn);
  font-family: var(--ds-font-head);
  font-weight: 700;
}
.hx-skip:focus { left: var(--ds-sp-2); outline: 3px solid var(--ds-gold); outline-offset: 2px; }

/* ---------- Header ---------- */
.hx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ds-teal);
  color: var(--ds-on-dark);
  font-family: var(--ds-font-body);
  box-shadow: var(--ds-shadow-sm);
}
.hx-header__bar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-sp-4);
  width: 100%;
  max-width: var(--ds-container);
  min-height: 68px;
  margin: 0 auto;
  padding: var(--ds-sp-2) var(--ds-gutter);
}
.hx-header__logo { display: inline-flex; align-items: center; flex: none; border-radius: var(--ds-radius-btn); }
.hx-header__logo img { display: block; height: 56px; width: auto; }
.hx-header a:focus-visible,
.hx-header button:focus-visible { outline: 3px solid var(--ds-gold); outline-offset: 2px; }

/* Hamburger (mobile) */
.hx-burger {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  color: var(--ds-on-dark);
  border: 2px solid var(--ds-border-teal);
  border-radius: var(--ds-radius-btn);
  cursor: pointer;
}
.hx-burger svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-burger .hx-burger__close { display: none; }
.hx-header.is-open .hx-burger__open { display: none; }
.hx-header.is-open .hx-burger__close { display: block; }

/* Navigation panel (mobile: slides under the bar) */
.hx-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  background: var(--ds-teal-deep);
  border-top: 1px solid var(--ds-border-teal);
  box-shadow: var(--ds-shadow-lg);
}
.hx-header.is-open .hx-nav { display: block; }
.hx-nav__list { list-style: none; margin: 0; padding: var(--ds-sp-2) var(--ds-gutter) var(--ds-sp-5); }
.hx-nav__list > li { border-bottom: 1px solid var(--ds-border-teal); }
.hx-nav__link,
.hx-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ds-on-dark);
  font-family: var(--ds-font-head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.hx-nav__link[aria-current="page"],
.hx-has-sub.is-current > .hx-sub-toggle { color: var(--ds-gold); }
.hx-sub-toggle svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ds-ease); }
.hx-has-sub.is-open > .hx-sub-toggle svg { transform: rotate(180deg); }
.hx-sub { display: none; list-style: none; margin: 0 0 var(--ds-sp-3); padding: 0 0 0 var(--ds-sp-4); }
.hx-has-sub.is-open > .hx-sub { display: block; }
.hx-sub a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ds-on-dark-soft);
  font-size: 17px;
  text-decoration: none;
}
.hx-sub a[aria-current="page"] { color: var(--ds-gold); }
.hx-nav__cta { border-bottom: 0 !important; padding-top: var(--ds-sp-4); }

/* Call button (same button system as the hero) */
.hx-header__cta,
.hx-nav__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 var(--ds-sp-5);
  background: var(--ds-red);
  color: var(--ds-white);
  border: 2px solid var(--ds-red);
  border-radius: var(--ds-radius-btn);
  font-family: var(--ds-font-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  transition: background-color var(--ds-ease), border-color var(--ds-ease);
}
.hx-nav__cta a { width: 100%; min-height: 56px; }
.hx-header__cta { display: none; }
@media (hover: hover) {
  .hx-header__cta:hover, .hx-nav__cta a:hover { background: var(--ds-red-deep); border-color: var(--ds-red-deep); }
  .hx-nav__link:hover, .hx-sub-toggle:hover, .hx-sub a:hover { color: var(--ds-gold); }
}

/* ---------- Desktop (1024+): inline nav, dropdown, call button ---------- */
@media (min-width: 1024px) {
  html { scroll-padding-top: 80px; }
  .hx-header__bar { min-height: 80px; }
  .hx-header__logo img { height: 64px; }
  .hx-burger { display: none; }
  .hx-nav { display: block; position: static; max-height: none; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .hx-nav__list { display: flex; align-items: center; gap: var(--ds-sp-5); padding: 0; }
  .hx-nav__list > li { border: 0; position: relative; }
  .hx-nav__link, .hx-sub-toggle { display: inline-flex; justify-content: flex-start; gap: var(--ds-sp-1); width: auto; min-height: 48px; font-size: 16px; }
  .hx-nav__link[aria-current="page"], .hx-has-sub.is-current > .hx-sub-toggle { box-shadow: inset 0 -3px 0 var(--ds-gold); }
  .hx-sub-toggle svg { width: 20px; height: 20px; }
  .hx-sub {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--ds-sp-4));
    z-index: 60;
    min-width: 280px;
    margin: 0;
    padding: var(--ds-sp-2);
    background: var(--ds-white);
    border-radius: var(--ds-radius-card);
    box-shadow: var(--ds-shadow-lg);
  }
  .hx-sub a { padding: 0 var(--ds-sp-3); color: var(--ds-ink); font-size: 16px; border-radius: var(--ds-radius-btn); }
  .hx-sub a:hover { background: var(--ds-paper); color: var(--ds-teal); }
  .hx-sub a[aria-current="page"] { color: var(--ds-teal-mid); font-weight: 700; }
  .hx-header .hx-sub a:focus-visible { outline-color: var(--ds-teal-mid); }
  .hx-nav__cta { display: none; }
  .hx-header__cta { display: inline-flex; }
}

/* ---------- Footer ---------- */
.hx-footer {
  background: var(--ds-teal-deep);
  color: var(--ds-on-dark);
  font-family: var(--ds-font-body);
  padding: var(--ds-sp-7) 0 var(--ds-sp-6);
}
.hx-footer__inner { box-sizing: border-box; width: 100%; max-width: var(--ds-container); margin: 0 auto; padding: 0 var(--ds-gutter); }
.hx-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-sp-6); }
.hx-footer__title {
  margin: 0 0 var(--ds-sp-3);
  font-family: var(--ds-font-head);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-gold);
}
.hx-footer__name { margin: 0 0 var(--ds-sp-2); font-family: var(--ds-font-head); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--ds-on-dark); }
.hx-footer p { margin: 0 0 var(--ds-sp-3); font-size: 16px; line-height: 1.6; color: var(--ds-on-dark); }
.hx-footer ul { list-style: none; margin: 0; padding: 0; }
.hx-footer li a,
.hx-footer__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ds-on-dark);
  font-size: 16px;
  text-decoration: none;
}
.hx-footer__phone { font-family: var(--ds-font-head); font-weight: 700; font-size: 20px; color: var(--ds-gold); }
.hx-footer a:focus-visible { outline: 3px solid var(--ds-gold); outline-offset: 2px; border-radius: var(--ds-radius-btn); }
@media (hover: hover) { .hx-footer li a:hover { color: var(--ds-gold); text-decoration: underline; } }
.hx-footer__bottom { margin-top: var(--ds-sp-6); padding-top: var(--ds-sp-5); border-top: 1px solid var(--ds-border-teal); }
.hx-footer__copy { margin: 0 0 var(--ds-sp-3); font-size: 14px; color: var(--ds-on-dark); }
.hx-footer__disclaimer { margin: 0; max-width: 880px; font-size: 14px; line-height: 1.6; color: var(--ds-on-dark-soft); }
@media (min-width: 640px) { .hx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .hx-footer { padding: var(--ds-sp-8) 0 var(--ds-sp-6); }
  .hx-footer__inner { padding: 0 var(--ds-gutter); }
  .hx-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-sp-7); }
}
@media (prefers-reduced-motion: reduce) { .hx-sub-toggle svg { transition: none; } }
