/* ─────────────────────────────────────────────────────────
   J Shearer Roofing – Sticky Top Bar (Ayr Landing Pages)
   File: jshearer-topbar-ayr.css
   ───────────────────────────────────────────────────────── */

/* ─── Top Bar ────────────────────────────────────────────── */
.jsr-topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 2px solid #014384;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.jsr-topbar__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ─── Phone ───────────────────────────────────────────────── */
.jsr-phones {
  display: flex;
  align-items: center;
}

.jsr-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px 0 0;
  white-space: nowrap;
  color: #001055;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}

.jsr-phone:hover {
  color: #014384;
  text-decoration: none;
}

.jsr-phone__label {
  font-weight: 600;
  font-size: 13px;
  color: #014384;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jsr-phone__icon {
  color: #014384;
  font-size: 12px;
  flex-shrink: 0;
}

.jsr-phone__number {
  font-size: 15px;
  font-weight: 600;
  color: #001055;
  letter-spacing: 0.01em;
}

/* ─── CTA Button ──────────────────────────────────────────── */
.jsr-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 18px;
  padding: 0 16px;
  height: 28px;
  background: #014384;
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.jsr-cta:hover {
  background: #001055;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.jsr-cta i {
  font-size: 11px;
}

/* ─── Hide topbar completely on mobile ───────────────────── */
@media (max-width: 767px) {
  .jsr-topbar {
    display: none;
  }
}

/* ─── Offset existing site header ────────────────────────────
   .cd-header is position:absolute so we shift its top down
   by the topbar height (42px) on desktop only.
────────────────────────────────────────────────────────────── */
.cd-header {
  top: 42px;
}

/* ─── Reset header top on mobile (topbar hidden) ─────────── */
@media (max-width: 767px) {
  .cd-header {
    top: 0;
  }
}

/* ─── Offset slider li top values per breakpoint ─────────────
   style1.css uses top on li elements (not margin-top).
   Each breakpoint value gets +42px to account for the topbar.
────────────────────────────────────────────────────────────── */

/* Default: was 120px */
.cd-hero-slider li {
  top: 120px;
}

/* 768px–1279px: was 100px */
@media only screen and (max-width: 1279px) and (min-width: 768px) {
  .cd-hero-slider li {
    top: 100px;
  }
}

/* ≤767px: topbar hidden, restore original value */
@media only screen and (max-width: 767px) {
  .cd-hero-slider li {
    top: 50px;
  }
}

/* ≥1441px: was 150px */
@media only screen and (min-width: 1441px) {
  .cd-hero-slider li {
    top: 150px;
  }
}
/* ─── Finance CTA Button ──────────────────────────────────── */
.jsr-cta-finance {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 0 16px;
  height: 28px;
  background: #6dcdff;
  color: #001055;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.12s ease;
  flex-shrink: 0;
}

.jsr-cta-finance:hover {
  background: #4bbef0;
  color: #001055;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ─── Ensure nav flyouts show on hover ───────────────────────
   Foundation JS drives flyout hover but can fail to init on
   some pages. This CSS rule ensures it works independently.
────────────────────────────────────────────────────────────── */
.nav-bar > li.has-flyout:hover > ul.flyout {
  display: block !important;
}