/*
 Theme Name:   Astra Child — Weeks Spray Foam
 Theme URI:    https://weekssprayfoam.com
 Description:  Astra child theme for Weeks Spray Foam
 Author:       Weeks Spray Foam
 Author URI:   https://weekssprayfoam.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/* ── Sticky Header ── */
.wsf-header.elementor-sticky--active {
  background-color: #ffffff !important;
  box-shadow: 0 2px 24px rgba(13, 27, 62, 0.08) !important;
}

/* ── Main Header ── */
.wsf-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #E2EAF4;
  transition: box-shadow 0.2s ease;
}

/* ── Hamburger Button ── */
.wsf-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  padding: 8px !important;
  margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}

.wsf-hamburger:hover,
.wsf-hamburger:focus,
.wsf-hamburger:active {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;
}

.wsf-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #0D1B3E;
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 921px) {
  .wsf-hamburger {
    display: flex;
  }
}

/* ── Progress Bar ── */
.wsf-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #C0392B, #E74C3C);
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Drawer Overlay ── */
.wsf-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 62, 0.55);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wsf-drawer-overlay.wsf-open {
  display: block;
  opacity: 1;
}

/* ── Drawer ── */
.wsf-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #0D1B3E;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.wsf-drawer.wsf-open {
  right: 0;
}

/* ── Drawer Header ── */
.wsf-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wsf-drawer-logo {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.wsf-drawer-close {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.7);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.wsf-drawer-close:hover {
  color: #ffffff;
}

/* ── Drawer Phone Bar ── */
.wsf-drawer-phone-bar {
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.wsf-drawer-phone-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Drawer Nav ── */
.wsf-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}

.wsf-drawer-nav a {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s ease, color 0.15s ease;
}

.wsf-drawer-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

/* ── Drawer Footer CTA ── */
.wsf-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.wsf-drawer-cta {
  display: block;
  text-align: center;
  background: #2D6FBF;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.wsf-drawer-cta:hover {
  background: #1A5CA8;
}

/* ── Body scroll lock when drawer open ── */
body.wsf-drawer-active {
  overflow: hidden;
}

/* ── Mobile Call Button ── */
.wsf-header-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2D6FBF;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.wsf-header-call-btn:hover,
.wsf-header-call-btn:focus {
  background: #1A5CA8;
  color: #ffffff !important;
}

.wsf-header-call-btn svg {
  position: relative;
  top: 1px;
  flex-shrink: 0;
}

/* ── Desktop Header Phone ── */
.wsf-header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0D1B3E;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.wsf-header-phone:hover {
  color: #2D6FBF;
}

/* ── Desktop Header CTA Button ── */
.wsf-header-cta {
  display: inline-flex;
  align-items: center;
  background: #C0392B;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.wsf-header-cta:hover {
  background: #A93226;
  color: #ffffff !important;
}

/* ── Services Hub — Mobile Quick Links ── */
.wsf-service-quicklinks {
  margin-bottom: 1.5rem;
}

.wsf-service-quicklinks h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0D1B3E;
  margin-bottom: 8px;
}

.wsf-service-quicklinks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.wsf-service-quicklinks-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #0D1B3E;
  text-decoration: none !important;
  background: #F0F4F9;
  border-radius: 4px;
  line-height: 1.3;
  transition: background 0.15s ease;
}

.wsf-service-quicklinks-grid a:hover {
  background: #E2EAF4;
}

.wsf-service-quicklinks-grid a::after {
  content: '→';
  font-size: 11px;
  color: #2D6FBF;
  margin-left: 4px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .wsf-service-quicklinks-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ── Related Services - Global Widget Grids ── */

.wsf-related-pills .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wsf-related-pills .elementor-icon-list-item {
  background: #EEF5FF;
  border: 1px solid #C5DCEF;
  border-radius: 100px;
  padding: 7px 16px !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.wsf-related-pills .elementor-icon-list-item:hover {
  background: #0170B9;
  border-color: #0170B9;
}

.wsf-related-pills .elementor-icon-list-item:hover a,
.wsf-related-pills .elementor-icon-list-item:hover .elementor-icon-list-text {
  color: #ffffff !important;
}

.wsf-related-pills .elementor-icon-list-item:hover .elementor-icon-list-icon i {
  color: #ffffff !important;
}

.wsf-related-pills .elementor-icon-list-text {
  font-size: 14px;
  font-weight: 500;
  color: #0170B9;
  text-decoration: none !important;
}

.wsf-related-pills .elementor-icon-list-icon i {
  font-size: 13px;
  color: #0170B9;
  transition: color 0.2s ease;
}