/* ─────────────────────────────────────────────────────────
   J Shearer Roofing – Sticky Top Bar
   File: jshearer-topbar.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 group ─────────────────────────────────────────── */
.jsr-phones {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
}

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

.jsr-phone:first-child {
  padding-left: 0;
}

.jsr-phone:last-child {
  border-right: none;
}

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

.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;
  transform: translateY(-1px);
}

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

/* ─── Responsive: tablet (≤860px) ────────────────────────── */
@media (max-width: 860px) {
  .jsr-phone__label {
    display: none;
  }

  .jsr-phone {
    padding: 0 10px;
    gap: 5px;
  }
}

/* ─── Responsive: mobile (≤600px) ────────────────────────── */
@media (max-width: 600px) {
  .jsr-topbar__inner {
    height: auto;
    padding: 8px 12px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .jsr-phones {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
  }

  .jsr-phone {
    padding: 2px 8px;
    border-right: 1px solid #d0d8e4;
    font-size: 13px;
  }

  .jsr-phone__label {
    display: none;
  }

  .jsr-phone__number {
    font-size: 13.5px;
  }

  .jsr-cta {
    margin-left: 0;
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    height: 30px;
    font-size: 13px;
  }
}

/* ─── Offset existing site header & slider ───────────────────
   .cd-header is position:absolute so we shift its top down
   by the topbar height (42px). The hero slider margin-top is
   increased by the same amount to keep it below the header.
────────────────────────────────────────────────────────────── */
.cd-header {
  top: 42px;
}

.cd-hero-slider {
  margin-top: 90px; /* was 100px + 42px topbar */
}

@media only screen and (min-width: 768px) {
  .cd-hero-slider {
    margin-top: 90px;
  }
}

/* ─── Mobile header & slider offset (topbar is taller on mobile) */
@media (max-width: 600px) {
  .cd-header {
    top: 70px;
  }

  .cd-hero-slider {
    margin-top: 100px; /* 100px original + 70px topbar */
  }
}

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

/* ─── Reset header top on mobile (topbar hidden, no offset needed) */
@media (max-width: 600px) {
  .cd-header {
    top: 0;
  }
}
/* ─── 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);
}