/* =========================================================
   custom.css (Cleaned)
   Site: Mobile Detailers Directory (Helix Ultimate / Joomla)
   Notes:
   - Consolidated duplicate rules
   - Listings grid: 2 columns desktop/tablet, 1 column phones
   - Removed conflicting mobile overrides (e.g., width: 90%)
   ========================================================= */


/* =========================================================
   1) Offcanvas / Mobile Menu Controls
   ========================================================= */

/* Hide the offcanvas-only module on desktop */
@media (min-width: 992px) {
  .offcanvas-menu-only { display: none !important; }
}

/* Show offcanvas-only module on tablets/phones */
@media (max-width: 991.98px) {
  .offcanvas-menu-only { display: block !important; }
}

/* Ensure the Helix offcanvas toggle is visible on tablets/phones */
@media (max-width: 991.98px) {
  .sp-offcanvas-toggle,
  .offcanvas-toggler,
  .burger-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* Extra safety for some Helix header variants */
@media (max-width: 767.98px) {
  .helix-ultimate #sp-header nav.sp-megamenu-wrapper #offcanvas-toggler,
  #sp-header a#offcanvas-toggler:not(.offcanvas-toggler-secondary) {
    display: flex !important;
  }
}

/* Burger icon color */
.burger-icon > span { background-color: #ffffff !important; }


/* =========================================================
   2) Service Page Layout + Buttons
   ========================================================= */

.service-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px;
}

.service-page h1 {
  color: #121212;
  margin-bottom: 16px;
}

.service-page h2 {
  color: #0F5FCC;
  margin-top: 32px;
}

.service-page h3 {
  color: #2E2E2E;
  margin-top: 20px;
}

.service-page p,
.service-page li {
  color: #121212;
  line-height: 1.6;
}

/* Buttons (sitewide) */
.btn-primary {
  background: #1E90FF;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}
.btn-primary:hover { background: #0F5FCC; }

.btn-secondary {
  border: 2px solid #121212;
  color: #121212;
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}
.btn-secondary:hover {
  background: #121212;
  color: #ffffff;
}


/* =========================================================
   3) Service Cards + CTA Card
   ========================================================= */

/* Service Card Images */
.service-card img,
.cta-card img {
  width: 100%;
  max-width: 250px;      /* Controls how small they appear */
  aspect-ratio: 4 / 3;   /* Keeps shape consistent */
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto;        /* Center image inside card */
  display: block;
}

/* Custom Quote CTA Card */
.cta-card {
  position: relative;
  background: linear-gradient(135deg, #121212 0%, #1a1a1a 60%, #0F5FCC 130%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 15px 35px rgba(0,0,0,0.45),
    0 0 0 1px rgba(30,144,255,0.25),
    0 0 25px rgba(30,144,255,0.45);
}

.cta-btn {
  padding: 10px 18px;
  font-size: 16px;
  line-height: 1.2;
}


/* =========================================================
   4) Footer (Helix bottom area)
   ========================================================= */

.seo-footer a {
  color: #D4B46A;
  transition: 0.2s ease;
}
.seo-footer a:hover { color: #FFFFFF; }

/* Fix outline-light button in dark footer */
.seo-footer .btn-outline-light {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background-color: transparent;
}
.seo-footer .btn-outline-light:hover,
.seo-footer .btn-outline-light:focus {
  background-color: #FFFFFF;
  color: #0D0D0D;
  border-color: #FFFFFF;
}


/* =========================================================
   5) Home Page: Popular Cities Section
   ========================================================= */

.bg-popular { background-color: #cfe3f7; }

.pc-card {
  border-radius: 1rem;
  overflow: hidden; /* Ensures images follow rounding */
}

.pc-img {
  height: 140px;
  object-fit: cover;
  border-radius: 1rem;
}

/**************************************************************
  FEATURED LISTINGS – CLEAN FINAL CSS
  Larger centered logos, stable vertical card layout
**************************************************************/

/* ===============================
   GRID LAYOUT
=================================*/

.featured-listings-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 1199.98px){
  .featured-listings-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px){
  .featured-listings-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px){
  .featured-listings-grid{ grid-template-columns: 1fr; }
}

/* ===============================
   CARD
=================================*/

.featured-listings-grid .fl-card{
  display: flex;
  flex-direction: column;   /* vertical stack */
  height: 100%;
  position: relative;

  text-decoration: none;
  color: inherit;

  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);

  transition: transform .18s ease, box-shadow .18s ease;
}

.featured-listings-grid .fl-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

/* ===============================
   BADGE
=================================*/

.featured-listings-grid .fl-badge{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;

  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;

  color: #fff;
  background: #0d6efd;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ===============================
   LOGO SECTION (LARGER + CENTERED)
=================================*/

.featured-listings-grid .fl-logo{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 28px 20px 22px;
  background: #f4f8ff;
  border-bottom: 1px solid rgba(0,0,0,.06);

  height: 170px;                 /* ← increased height */
}

/* Make image larger */
.featured-listings-grid .fl-logo img{
  max-width: 100%;
  max-height: 130px;             /* ← increased size */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Missing logo fallback */
.featured-listings-grid .fl-logo--missing{
  font-size: 14px;
  font-weight: 600;
  opacity: .7;
}

/* ===============================
   BODY
=================================*/

.featured-listings-grid .fl-body{
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.featured-listings-grid .fl-title{
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-listings-grid .fl-meta{
  font-size: 15px;
  line-height: 1.4;
  opacity: .95;
}

.featured-listings-grid .fl-meta strong{
  font-weight: 800;
}

/* ===============================
   OPTIONAL: SECTION SPACING
=================================*/

#sp-featured-listings{
  padding: 40px 0;
}
/* ============================================
   LISTINGS (/listings) Category Blog layout
   Desktop + Tablet: 2 columns
   Phone: 1 column
   ============================================ */

/* Container holding the items */
.blog.com-content-category-blog .blog-items {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}

/* Each item (works across Joomla/Helix variations) */
.blog.com-content-category-blog .blog-items > .item,
.blog.com-content-category-blog .blog-items > div,
.blog.com-content-category-blog .blog-items .blog-item {
  flex: 0 0 calc(50% - 12px) !important;
  max-width: calc(50% - 12px) !important;
  min-width: 0 !important;
}

/* Phone: 1 column */
@media (max-width: 767.98px) {
  .blog.com-content-category-blog .blog-items > .item,
  .blog.com-content-category-blog .blog-items > div,
  .blog.com-content-category-blog .blog-items .blog-item {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* Optional: hide Joomla intro image if you only want your logo field image */
.blog.com-content-category-blog .article-intro-image {
  display: none !important;
}

/* Optional: simple card feel */
.blog.com-content-category-blog .item .article,
.blog.com-content-category-blog .blog-item,
.blog.com-content-category-blog article {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
}
.search-wrapper .input-group {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.search-wrapper input[type="text"] {
  flex: 1;
  padding: 14px 44px 14px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  outline: none;
}

.search-wrapper button[type="submit"] {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  cursor: pointer;
  white-space: nowrap;
}

.search-wrapper .btn-clear {
  position: absolute;
  right: 160px; /* adjust if your submit button is wider/narrower */
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .65;
}

.search-wrapper .btn-clear:hover { opacity: 1; }

.search-wrapper .help-text {
  margin-top: 8px;
  font-size: 13px;
  opacity: .75;
}

.search-wrapper .help-text .example {
  font-weight: 600;
}

.search-wrapper .error-text {
  margin-top: 10px;
  font-size: 14px;
  color: #b42318;
  min-height: 18px;
}
/* =========================================================
   Helix Ultimate: FORCE the burger bars to show on mobile/tablet
   (high specificity + explicit width/height)
   ========================================================= */
@media (max-width: 991.98px) {

  /* Ensure the burger container is normal */
  body.ltr #sp-header #offcanvas-toggler .burger-icon{
    width: 26px !important;
    height: auto !important;
    display: inline-block !important;
    transform: none !important;
    opacity: 1 !important;
  }

  /* FORCE the 3 bars */
  body.ltr #sp-header #offcanvas-toggler .burger-icon > span{
    display: block !important;
    width: 100% !important;          /* key: prevents “invisible” 0-width spans */
    height: 2px !important;
    margin: 6px 0 !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  /* In case Helix draws any bar via pseudo elements */
  body.ltr #sp-header #offcanvas-toggler .burger-icon::before,
  body.ltr #sp-header #offcanvas-toggler .burger-icon::after{
    background-color: #ffffff !important;
  }

  /* Prevent the “white vertical bar” issue */
  body.ltr #sp-header #offcanvas-toggler{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}