/* Site header and main navigation.
 *
 * The site had no navigation at all, and its header was inconsistent: 243 pages
 * carried a brand bar built as an Elementor section, while 138 blog, category
 * and tag pages rendered with no logo, no phone and no call to action - someone
 * arriving from a search result had no way back into the site and no way to ring.
 * This is one header for every page, using the site's own measured tokens:
 * Montserrat headings, Lato body, brand orange rgb(255,122,61), and the same
 * button geometry (16px/32px padding, 5px radius) as the existing CTA.
 */

:root {
  --rsdr-brand: #ff7a3d;
  --rsdr-brand-dark: #e8642a;
  --rsdr-ink: #1e1810;
  --rsdr-bar: #faf7f6;
  --rsdr-line: #e8e2df;
}

.rsdr-header {
  background: var(--rsdr-bar);
  border-bottom: 1px solid var(--rsdr-line);
  font-family: Lato, sans-serif;
  position: relative;
  z-index: 500;
}

.rsdr-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.rsdr-logo { flex: 0 0 auto; line-height: 0; }
.rsdr-logo img { width: 190px; height: auto; max-width: 100%; display: block; }

.rsdr-menu { flex: 1 1 auto; }
.rsdr-menu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.rsdr-menu li { position: relative; margin: 0; }
.rsdr-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--rsdr-ink);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 4px;
  white-space: nowrap;
}
.rsdr-menu a:hover,
.rsdr-menu a:focus-visible { color: var(--rsdr-brand-dark); background: rgba(255, 122, 61, .08); }
.rsdr-menu .rsdr-current > a { color: var(--rsdr-brand-dark); }
.rsdr-menu .rsdr-current > a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--rsdr-brand);
  margin-top: 4px;
  border-radius: 2px;
}

/* dropdowns */
.rsdr-has-sub > a::after { content: " \25BE"; font-size: .95em; opacity: .8; }
.rsdr-menu .rsdr-current.rsdr-has-sub > a::after { content: " \25BE"; height: auto; background: none; margin: 0; display: inline; }
.rsdr-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--rsdr-line);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(30, 24, 16, .13);
  padding: 8px;
  margin: 0;
  list-style: none;
  display: none;
}
.rsdr-sub.rsdr-two-col { min-width: 460px; columns: 2; column-gap: 8px; }
.rsdr-sub li { break-inside: avoid; }
.rsdr-sub a { font-size: 14px; font-weight: 500; padding: 8px 12px; white-space: normal; }
.rsdr-has-sub:hover > .rsdr-sub,
.rsdr-has-sub:focus-within > .rsdr-sub,
.rsdr-has-sub.rsdr-open > .rsdr-sub { display: block; }

/* right-hand contact cluster */
.rsdr-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.rsdr-tel {
  font-family: Montserrat, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--rsdr-ink);
  text-decoration: none;
  white-space: nowrap;
}
.rsdr-tel:hover { color: var(--rsdr-brand-dark); }
.rsdr-tel small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .78; }
.rsdr-cta {
  background: var(--rsdr-brand);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.rsdr-cta:hover { background: var(--rsdr-brand-dark); color: #fff; }

@media (min-width: 1081px) and (max-width: 1240px) {
  .rsdr-header-inner { gap: 14px; }
  .rsdr-menu a { padding: 10px 9px; font-size: 14px; }
  .rsdr-logo img { width: 160px; }
  .rsdr-cta { padding: 14px 22px; }
  .rsdr-tel { font-size: 17px; }
}

.rsdr-toggle {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--rsdr-line);
  border-radius: 5px;
  padding: 9px 12px;
  cursor: pointer;
  line-height: 1;
}
.rsdr-toggle span { display: block; width: 21px; height: 2px; background: var(--rsdr-ink); margin: 4px 0; }

/* The legacy per-page Elementor brand bar is tagged at build time and hidden,
   so a page shows this header instead of two stacked ones. */
.rsdr-legacy-brandbar { display: none !important; }

/* Between 922px and 1024px the full row overflowed by up to 177px, so the
   compact layout has to take over well before the old 921px point. */
@media (max-width: 1080px) {
  .rsdr-header-inner { flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
  .rsdr-logo img { width: 150px; }
  .rsdr-toggle { display: block; margin-left: auto; order: 2; }
  .rsdr-actions { order: 3; gap: 10px; }
  .rsdr-tel { font-size: 16px; }
  .rsdr-cta { padding: 12px 18px; font-size: 13px; }
  .rsdr-menu { order: 4; flex-basis: 100%; display: none; }
  .rsdr-menu.rsdr-open { display: block; }
  .rsdr-menu > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .rsdr-menu > ul > li { border-top: 1px solid var(--rsdr-line); }
  .rsdr-menu a { padding: 12px 4px; }
  .rsdr-sub, .rsdr-sub.rsdr-two-col {
    position: static; display: none; box-shadow: none; border: 0;
    padding: 0 0 8px 14px; min-width: 0; columns: 1;
  }
  .rsdr-has-sub:hover > .rsdr-sub { display: none; }
  .rsdr-has-sub.rsdr-open > .rsdr-sub { display: block; }
  .rsdr-menu .rsdr-current > a::after { display: inline; height: auto; background: none; margin: 0; }
}

@media (max-width: 420px) {
  .rsdr-tel small { display: none; }
  .rsdr-tel { font-size: 15px; }
  .rsdr-cta { padding: 11px 14px; }
}
