/* 1. FORCE THE LIGHT BLUE COLOR SEAMLESSLY ON ALL BACKGROUND LAYERS (#D1E0E8) */
html, 
body, 
#page, 
.site, 
main, 
#content, 
.site-content, 
.content-area, 
.site-main,
article,
.type-page,
.post-inner,
.page-inner,
.wp-block-group,
.wp-block-columns {
    background-color: #D1E0E8 !important;
    background: #D1E0E8 !important;
    --wp--preset--color--white: #D1E0E8 !important;
    --wp--preset--color--base: #D1E0E8 !important;
    --wp--style--color--background: #D1E0E8 !important;
}

/* 2. HIDE THE GLOBAL THEME HEADER COMPLETELY */
header, 
#masthead, 
.site-header,
.main-header-block, 
.header-style-1,
[class*="header-wrap"],
.innerpage-banner {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 3. STRUCTURAL CONTENT FIXES */
.wp-block-cover:first-of-type,
main > *:first-child,
.site-content > *:first-child,
.entry-content > *:first-child {
    margin-top: 0px !important; 
    position: relative !important;
}

.site-main, #content, .content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* SAFE COMPATIBILITY FIX FOR TRUE FULL-WIDTH COVER BLOCKS */
html, body {
    overflow-x: clip !important;
}

.wp-block-cover.alignfull, 
.alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* 4. RESPONSIVE LOCAL REGIONAL & CITY PAGE CONTAINER WIDTHS */
.wide-city-container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media only screen and (min-width: 768px) {
    .wide-city-container {
        max-width: 1200px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* 5. TEXT ALIGNMENT OVERRIDE (Forces theme to listen to your editor choices) */
.has-text-align-center,
.has-text-align-center p,
.aligncenter,
.aligncenter p {
    text-align: center !important;
}

.has-text-align-right,
.has-text-align-right p,
.alignright,
.alignright p {
    text-align: right !important;
}
/* Mobile-only sticky bottom bar - Soothing Memorial Palette */
@media (max-width: 768px) {
  .glendale-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FAF9F6; /* Soft warm alabaster/eggshell background */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08); /* Gentle shadow */
    border-top: 1px solid #EAE7E1;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px;
    z-index: 999999;
    box-sizing: border-box;
  }
  .glendale-mobile-btn {
    flex: 1;
    margin: 0 4px;
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: block;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }
  /* Call Button - Dusty Slate Blue */
  .glendale-call-btn {
    background-color: #7A90A4;
    color: #FFFFFF !important;
  }
  /* Text Button - Soft Sage Green */
  .glendale-text-btn {
    background-color: #8FA89B;
    color: #FFFFFF !important;
  }
  /* Book Pickup Button - Warm Heather Mauve */
  .glendale-book-btn {
    background-color: #A88B97;
    color: #FFFFFF !important;
  }
}

/* Hide on desktop and laptop screens */
@media (min-width: 769px) {
  .glendale-mobile-bar {
    display: none !important;
  }
}
.phoenix-mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 99999;
}

.phoenix-mobile-btn {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.phoenix-call-btn {
  background-color: #2e5b88;
  color: #ffffff;
}

.phoenix-text-btn {
  background-color: #4a7c59;
  color: #ffffff;
}

.phoenix-book-btn {
  background-color: #c59b27;
  color: #ffffff;
}

@media (min-width: 769px) {
  .phoenix-mobile-bar {
    display: none;
  }
}
/* Target the right column, its wrapper, and any hidden theme overlays */
.wp-block-column.clear-header-column,
.wp-block-column.clear-header-column *,
.wp-block-column.clear-header-column::before,
.wp-block-column.clear-header-column::after {
    background-color: transparent !important;
    background: none !important;
    background-image: none !important;
    opacity: 1 !important;
}
/* ===== L.E.A.S.H. phone layout fix (tested on Phoenix, homepage and overnight pages) ===== */
@media (max-width: 768px) {

  /* 1. Use the full phone width (the theme limits content to 80% inside 20px padding) */
  main.main-page { padding-left: 0 !important; padding-right: 0 !important; }
  main.main-page > .entry-content,
  main.main-page > :where(:not(.alignleft):not(.alignright)) { max-width: 100% !important; width: 100% !important; }
  main.main-page > .entry-content { padding-left: 12px !important; padding-right: 12px !important; box-sizing: border-box !important; }

  /* 2. Header contact bar: business name | logo (centered) | buttons, no overlap */
  [aria-label="Direct Contact and Support"] { display: grid !important; grid-template-columns: 1fr auto 1fr !important; align-items: center !important; gap: 8px !important; padding: 8px 4px !important; }
  [aria-label="Direct Contact and Support"] > div { flex: none !important; min-width: 0 !important; padding: 0 !important; }
  [aria-label="Direct Contact and Support"] > div:nth-child(1) { justify-self: start !important; font-size: 12px !important; }
  [aria-label="Direct Contact and Support"] > div:nth-child(1) span { white-space: normal !important; }
  [aria-label="Direct Contact and Support"] > div:nth-child(2) { justify-self: center !important; }
  [aria-label="Direct Contact and Support"] > div:nth-child(2) img { height: 56px !important; width: 56px !important; }
  [aria-label="Direct Contact and Support"] > div:nth-child(3) { justify-self: end !important; }
  [aria-label="Direct Contact and Support"] > div:nth-child(3) a { width: 84px !important; padding: 7px 6px !important; }

  /* 4. Headings that sit ON the photo (homepage, overnight page): centered, full width, not floated or pulled off screen */
  .wp-block-cover h1[style*="float"] {
    width: 100% !important; max-width: 100% !important; float: none !important;
    margin: 0 auto 12px auto !important; padding: 0 8px !important;
    text-align: center !important; font-size: 30px !important; line-height: 1.2 !important;
  }
  .wp-block-cover:has(h1[style*="float"]):not(:has(#leash-trustbar)) {
    min-height: 420px !important;
    margin-left: -12px !important; margin-right: -12px !important; width: calc(100% + 24px) !important; max-width: none !important;
  }
  .wp-block-cover:has(h1[style*="float"]) + * { clear: both !important; }
}