/* D.L. Steiner theme: site chrome (header, navigation, footer).
   Matches dlsteiner.com (WordPress / Neve): white logo bar + amber-to-red services bar,
   compact dark footer. Loaded after theme.css, so these rules replace the copied
   header/footer styles there. Breakpoint 960px is Neve's desktop breakpoint. */

:root {
  --dls-chrome-ink: #272626;
  --dls-chrome-bar: #333333;
  --dls-chrome-rule: #c0c0c0;
  --dls-chrome-gradient: linear-gradient(142deg, #dc8c1a 27%, #980101 100%);
  --dls-topbar-h: 104px;
}

.dls-sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Header shell ─────────────────────────────────── */
/* The whole header is sticky with a negative offset equal to the white bar, so the
   white bar scrolls away and the services bar stays pinned (as on WordPress). */
.dls-header {
  position: sticky;
  top: calc(-1 * var(--dls-topbar-h));
  z-index: 50;
  background: #fff;
  color: var(--dls-chrome-ink);
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
.dls-header a { text-decoration: none; transition: color .15s ease; }
.dls-header ul { list-style: none; margin: 0; padding: 0; }
.dls-header a:focus-visible,
.dls-header button:focus-visible,
.dls-footer a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Bar 1: logo, primary links, phone ───────────── */
.dls-topbar {
  background: #fff;
  border-bottom: 2px solid var(--dls-chrome-bar);
  height: var(--dls-topbar-h);
}
.dls-topbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 15px;
}
.dls-brand { display: block; flex: 0 1 auto; min-width: 0; margin-right: auto; color: inherit; }
.dls-brand img { display: block; width: 290px; max-width: 100%; height: auto; }

.dls-nav-top ul { display: flex; align-items: center; gap: 28px; }
.dls-nav-top a {
  display: block;
  padding-top: 1px;
  color: var(--dls-chrome-ink);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.dls-nav-top a:hover { color: var(--dls-amber); }

.dls-header .dls-phone {
  margin-left: 35px;
  color: var(--dls-chrome-ink);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.dls-header .dls-phone:hover { color: var(--dls-red); }

.dls-mob-icon { display: none; }

/* ── Bar 2: services ─────────────────────────────── */
.dls-servicebar { background: var(--dls-chrome-gradient); color: #fff; }
.dls-servicebar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 47px;
  padding: 0 15px;
  border-bottom: 4px solid var(--dls-chrome-rule);
}
.dls-nav-services > ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 20px; padding: 8px 0; }
.dls-nav-services > ul > li { position: relative; padding: 0 4px; }
.dls-nav-services a {
  display: block;
  padding-top: 1px;
  color: #fff;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.dls-nav-services a:hover,
.dls-nav-services .dls-has-sub:hover > .dls-sub-head > a { color: var(--dls-chrome-rule); }

.dls-sub-head { display: flex; align-items: center; }
.dls-sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  margin: -8px 0 -8px -3px; padding: 0;
  background: transparent; border: 0; border-radius: 0;
  color: inherit; cursor: pointer;
}
.dls-sub-toggle svg { width: 7px; height: 7px; transform: rotate(180deg); transition: transform .15s ease; }
.dls-sub-toggle[aria-expanded="true"] svg { transform: rotate(0deg); }

/* Dropdown: opens on hover or via the caret button (theme.js keeps aria-expanded in step). */
.dls-nav-services .dls-sub {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  min-width: 150px;
  background: var(--dls-chrome-gradient);
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .15s ease, visibility .15s ease;
}
.dls-nav-services .dls-has-sub:hover > .dls-sub,
.dls-nav-services .dls-has-sub.is-open > .dls-sub { visibility: visible; opacity: 1; }
.dls-nav-services .dls-has-sub.is-closed > .dls-sub { visibility: hidden; opacity: 0; }
.dls-nav-services .dls-sub a { padding: 10px 20px; }

/* Narrow desktop (960-1099px): tighten bar 1 so it stays on one line; bar 2 wraps centred. */
@media (min-width: 960px) and (max-width: 1099px) {
  .dls-brand img { width: 230px; }
  .dls-nav-top ul { gap: 18px; }
  .dls-header .dls-phone { margin-left: 24px; }
}

/* ── Menu button (mobile only) ───────────────────── */
.dls-hamburger {
  display: none;
  align-items: center;
  padding: 10px 15px;
  background: var(--dls-chrome-bar);
  border: 0; border-radius: 0;
  color: #fff;
  font: 700 15px/1 var(--font-body);
  cursor: pointer;
}
.dls-hamburger-label { margin-right: 5px; }
.dls-hamburger-bars { display: inline-flex; flex-direction: column; justify-content: space-between; width: 15px; height: 12px; }
.dls-hamburger-bars span { display: block; height: 2px; background: currentColor; border-radius: 1px; }

/* ── Mobile drawer ───────────────────────────────── */
.dls-drawer,
.dls-drawer-overlay { display: none; }

@media (max-width: 959px) {
  .dls-header { position: relative; top: auto; font-size: 15px; }

  .dls-topbar { height: 58px; border-bottom: 0; }
  .dls-topbar-inner { justify-content: space-between; padding: 0 15px; }
  .dls-nav-top, .dls-header .dls-phone { display: none; }
  .dls-brand { margin: 0 auto; }
  .dls-brand img { width: 150px; }
  .dls-mob-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    color: var(--dls-chrome-ink);
  }
  .dls-mob-map { margin-left: -2px; }
  .dls-mob-phone { margin-right: -2px; }

  .dls-servicebar-inner { min-height: 43px; border-bottom: 0; }
  .dls-nav-services { display: none; }
  .dls-hamburger { display: inline-flex; }

  .dls-drawer {
    display: block;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 999900;
    width: 360px; max-width: calc(100% - 30px);
    overflow-y: auto;
    background: var(--dls-amber);
    color: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .dls-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease, visibility 0s; }  /* visible at once so focus can move in */
  .dls-drawer-overlay {
    display: block;
    position: fixed; inset: 0;
    z-index: 999899;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .dls-drawer.is-open + .dls-drawer-overlay { opacity: 1; visibility: visible; }

  .dls-drawer-close-row { display: flex; justify-content: flex-end; padding: 8px 10px; }
  .dls-drawer-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 45px; height: 32px; padding: 0;
    background: var(--dls-chrome-bar); border: 0; border-radius: 0;
    color: #fff; cursor: pointer;
  }
  .dls-drawer-nav { padding: 0 19px; }
  .dls-drawer-primary { padding-top: 24px; }
  .dls-drawer-services { padding-top: 4px; padding-bottom: 20px; }
  .dls-drawer-nav a {
    display: block;
    flex: 1 1 auto;
    padding: 15px 51px 15px 0;
    color: #fff;
    font-weight: 600;
    line-height: 24px;
  }
  .dls-drawer-primary a { line-height: 37.5px; }
  .dls-drawer-nav a:hover { color: var(--dls-chrome-ink); }
  .dls-drawer .dls-sub-head { display: flex; align-items: center; }
  .dls-drawer .dls-sub-toggle { width: 44px; height: 44px; margin: 0 -7px 0 -44px; position: relative; z-index: 1; }
  .dls-drawer .dls-sub { display: none; margin-left: 10px; }
  .dls-drawer .dls-has-sub.is-open > .dls-sub { display: block; }

  body.dls-menu-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .dls-drawer, .dls-drawer-overlay, .dls-nav-services .dls-sub, .dls-sub-toggle svg { transition: none; }
}

/* ── Footer ──────────────────────────────────────── */
.dls-footer {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--dls-chrome-bar);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  text-align: center;
}
.dls-footer-copy {
  margin: 0;
  padding: 12px 15px;
  font-weight: 500;
  line-height: 1.6;
}
.dls-footer .dls-footer-copy a { color: inherit; text-decoration: none; }
.dls-footer .dls-footer-copy a:hover { text-decoration: underline; color: inherit; }
.dls-footer .dls-footer-social {
  display: flex; justify-content: center; gap: 10px;
  list-style: none; margin: 0; padding: 12px 15px;
}
.dls-footer .dls-footer-social li { margin: 0; line-height: 0; }
.dls-footer .dls-social {
  display: block;
  padding: 5px;
  border-radius: 5px;
  color: #fff;
  line-height: 0;
}
.dls-footer .dls-social svg { display: block; width: 18px; height: 18px; }
.dls-social--facebook { background: #3b5998; }
.dls-social--youtube { background: #cd201f; }
.dls-social--linkedin { background: #0072b1; }
.dls-footer a.dls-social:hover { color: #fff; opacity: .85; }

@media (max-width: 959px) {
  .dls-footer { font-size: 15px; }
  .dls-footer-copy { order: 2; padding: 8px 15px; }
  .dls-footer .dls-footer-social { order: 1; padding: 8px 15px; }
}

@media print {
  .dls-drawer, .dls-drawer-overlay { display: none !important; }
}
