/*
Theme Name: WASCO
Theme URI: https://www.wpbeaverbuilder.com
Version: 1.1.9
Description: A child theme for Beaver Builder.
Author: Lost Dog
Author URI: https://www.fastlinemedia.com
template: bb-theme
*/

/* Custom styles */ 
/* Window style callouts (Callout module with class "style-item") */
.style-item .fl-callout-photo-left {
  display: flex;
  align-items: center;          /* text block centered on the photo */
  gap: 16px;
}
.style-item .fl-callout-photo {
  float: none;
  flex: 0 0 120px;
  width: 120px;
  margin: 0;
  padding: 0;
}
.style-item .fl-callout-photo img {
  width: 120px;
  height: 90px;                 /* 4:3, same size on every item */
  object-fit: cover;
  display: block;
}
.style-item .fl-callout-content { flex: 1; min-width: 0; padding: 0; }

/* Eyebrow (callout title) */
.style-item .fl-callout-title { margin: 0 0 4px; line-height: 1.2; }

/* Title + link inside the text area */
.style-item .fl-callout-text-wrap,
.style-item .fl-callout-text-wrap p { margin: 0; }
.style-item .fl-callout-text-wrap h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.style-item .fl-callout-text-wrap > * + * { margin-top: 8px; }
.style-item .fl-callout-cta-link { display: inline-block; margin-top: 8px; }

/* Resource tiles: whole card clickable via the heading link */
.resource-tile > .fl-col-content {
  position: relative;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.resource-tile .fl-heading a {
  color: inherit;
  text-decoration: none;
}
.resource-tile .fl-heading a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Hover overlay */
.resource-tile > .fl-col-content:hover {
  background-color: #EBEBF7;
  border-color: #333399;
  box-shadow: 0 4px 14px rgba(51, 51, 153, .12);
}
.resource-tile > .fl-col-content:hover .fl-heading a {
  color: #333399;
}

/* Keyboard focus shows on the whole card */
.resource-tile .fl-heading a:focus-visible { outline: none; }
.resource-tile > .fl-col-content:has(a:focus-visible) {
  outline: 2px solid #333399;
  outline-offset: 3px;
}

.swatch-gallery .fl-gallery {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px;
  height: auto !important;
}
.swatch-gallery .fl-gallery-item {
  position: static !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
}

/* Swatch blocks: right-aligned on tablet/desktop, heading lines up with first swatch */
@media (min-width: 769px) {
  .swatch-col > .fl-col-content {
    flex: 0 1 auto;       /* stop BB from stretching it to full width */
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
  }
}

/* Alignment of footer items */

.footer-brand.fl-rich-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.footer-brand.fl-rich-text p {
  margin: 0;
}
.footer-brand img {
  width: 128px;
  height: auto;
  display: block;
}

/* Footer badges: Angi, BBB, Facebook */
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.footer-badges img {
  height: 28px;
  width: auto;
  display: block;
}
.footer-badges .footer-bbb {
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-badges { justify-content: center; }
}