/* ===========================================================================
   Header + footer. Geometry from audit/shell.json / shell-extra.json:
   header 101px on #000, logo 103x63 at x=120 (=> 1200 container),
   nav 17px/500 white with #e09900 active, 20px gaps;
   dropdown #262626, 156px wide, items 13px/400 white, padding 13px 20px;
   footer #262626, columns 300/180/270/270 with 60px gaps, bottom bar 25/20.
   =========================================================================== */

/* ---------- header ------------------------------------------------------- */
.site-header {
  background: var(--black);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.site-header__logo img { width: 103px; height: 63px; object-fit: contain; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0;
  font-size: var(--fs-nav); font-weight: var(--fw-med); line-height: var(--lh-nav);
  color: var(--white); text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--brand); text-decoration: none; }
.nav__link[aria-current="page"], .nav__item--active > .nav__link { color: var(--brand); }
.nav__link .ic { width: .7em; height: .7em; transition: transform var(--dur) var(--ease); }
.nav__item:hover > .nav__link .ic { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 156px; z-index: 120;
  margin: 0; padding: 0; list-style: none;
  background: var(--text-dark);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: block; padding: 13px 20px; white-space: nowrap;
  font-size: 13px; font-weight: var(--fw-reg); line-height: 20px;
  color: var(--white); text-decoration: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav__dropdown a:hover, .nav__dropdown a:focus-visible { color: var(--brand); text-decoration: none; }

.nav__toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 26px; line-height: 1; padding: 8px; cursor: pointer;
}

@media (max-width: 1024px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--black); display: none; padding: 8px 0 24px;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__link { height: auto; padding: 14px var(--gutter); justify-content: space-between; }
  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: rgba(255,255,255,.04); display: none; min-width: 0;
  }
  .nav__item[data-open="true"] > .nav__dropdown { display: block; }
  .nav__item:hover > .nav__dropdown { opacity: 1; visibility: visible; }
  .nav__dropdown a { padding-inline: calc(var(--gutter) + 14px); font-size: 15px; }
  .nav__item:hover > .nav__link .ic { transform: none; }
  .nav__item[data-open="true"] > .nav__link .ic { transform: rotate(180deg); }
}

/* ---------- footer ------------------------------------------------------- */
.site-footer { background: var(--text-dark); color: var(--white); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: none; }

.site-footer__cols {
  display: grid;
  grid-template-columns: 300px 180px 270px 270px;
  gap: 60px;
  padding-block: 60px;
}
.site-footer__brand img { width: 270px; height: auto; margin-bottom: 18px; }
.site-footer__about { font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.85); }
.site-footer h3 {
  font-size: var(--fs-h3); font-weight: var(--fw-med); color: var(--white);
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 12px; }
.site-footer li a,
.site-footer__contact a {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--fs-footer-link); line-height: 1.45;
  transition: color var(--dur-fast) var(--ease);
}
.site-footer .ic { flex: 0 0 auto; margin-top: .18em; color: var(--brand); font-size: 1em; }
.site-footer__contact { display: grid; gap: 12px; margin: 18px 0; }

.site-footer__social { display: flex; gap: 12px; margin-top: 20px; }
.site-footer__social a, .site-footer__social .social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.11); font-size: var(--fs-social);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.site-footer__social a:hover { background: var(--brand); color: var(--black); }
.site-footer__social .ic { color: inherit; margin: 0; font-size: 16px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 25px; padding-bottom: 20px;
  font-size: 15px; color: rgba(255,255,255,.8); text-align: center;
}
.site-footer__bottom a { color: var(--brand); }

@media (max-width: 1024px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 767px) {
  .site-footer__cols { grid-template-columns: 1fr; gap: 34px; padding-block: 44px; }
  .site-footer__brand img { width: 210px; }
}

/* ---------- header CTAs (measured: Call Us 116x50 outline, Free Estimate 142x51 solid) */
/* The source header does not stick, but it still needs its own stacking
   context: with position:static the z-index above is inert and .hero
   (position:relative) paints over the open dropdown. relative keeps the
   non-sticky behaviour and restores the paint order. */
.site-header { position: relative; top: auto; z-index: 100; }
.site-header__cta { display: flex; align-items: center; gap: 16px; }
.btn-hdr {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 3px; text-decoration: none; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-hdr--ghost {
  min-width: 116px; height: 50px; padding: 0 15px;
  border: 1px solid var(--brand); color: var(--brand); background: transparent;
  font-size: 18px; font-weight: var(--fw-bold);
}
.btn-hdr--ghost:hover { background: var(--brand); color: var(--black); text-decoration: none; }
.btn-hdr--solid {
  min-width: 142px; height: 51px; padding: 0 15px;
  background: var(--brand); color: var(--white);
  font-size: 15px; font-weight: var(--fw-semi);
  text-transform: uppercase; letter-spacing: .02em;
}
.btn-hdr--solid:hover { background: #c98800; color: var(--white); text-decoration: none; }
@media (max-width: 1024px) {
  .site-header__logo img { width: 120px; height: 74px; }
  .nav__toggle { order: 3; }
}
@media (max-width: 767px) {
  .site-header__cta { display: none; }   /* both CTAs are hidden at 390 on the source */
  .site-header__logo img { width: 105px; height: 65px; }
}

.btn-hdr--ghost { gap: 8px; }
.btn-hdr--ghost .ic { width: 18px; height: 18px; }
/* active nav item carries an amber underline on the source */
.nav__link[aria-current="page"], .nav__item--active > .nav__link { position: relative; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--brand);
}
