/* Logo styling */
.custom-logo {
    max-height: 50px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Logo link with "EVL Rentals" text */
.site-header .custom-logo-link {
    max-width: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
}
.site-header .custom-logo-link::after {
    content: 'EVL Rentals';
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}
.site-header .site-branding {
    max-width: none !important;
}

/* Header bottom border */
.site-header {
    border-bottom: 1px solid #e0e0e0 !important;
}

/* === MOBILE HEADER FIX === */
@media screen and (max-width: 600px) {
    /* Kill the grid, use flexbox single row */
    .site-header#masthead {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 16px !important;
            min-height: unset !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        grid-template-areas: unset !important;
    }

    /* Logo area: left side, no grow */
    .site-header .site-logo {
        flex: 0 1 auto !important;
        width: auto !important;
        grid-area: unset !important;
        min-width: 0 !important;
    }

    /* Hide the separate site-title and description */
    .site-header .site-title,
    .site-header .site-description {
        display: none !important;
    }

    /* Nav: right side, no grow */
    #site-navigation.main-navigation {
        flex: 0 0 auto !important;
        grid-area: unset !important;
        margin-left: auto !important;
        width: auto !important;
    }

    /* Menu toggle button styling */
    #toggle-menu {
        margin: 0 !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
    }


    /* Compact logo for mobile */
    .custom-logo {
        max-height: 36px !important;
        width: auto !important;
    }

    .site-logo {
        margin: 0 !important;
        padding: 0 !important;
    }

    #site-navigation {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* --- Added 2026-07-19: audit fixes --- */
/* Hide stray comma after site name in the footer */
.site-info .comma { display: none; }

/* Match blog Subscribe button to the site's 5px button radius */
.wp-block-jetpack-subscriptions .wp-block-button__link.no-border-radius { border-radius: 5px !important; }

/* Hero CTA buttons — equal width; stacked full-width on mobile */
.wp-block-cover .wp-block-buttons > .wp-block-button {
  flex: 1 1 0%;
}
.wp-block-cover .wp-block-buttons > .wp-block-button .wp-block-button__link {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .wp-block-cover .wp-block-buttons {
    flex-direction: column !important;
  }
  .wp-block-cover .wp-block-buttons > .wp-block-button {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Full-width sections on mobile — stats & testimonials edge-to-edge */
@media (max-width: 768px) {
  .entry-content > .evl-stats-section:not(#_),
  .entry-content > .evl-testimonials:not(#_) {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
  }
}

/* Testimonial card padding on mobile */
@media (max-width: 768px) {
  .evl-tm-card {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* EVL: heading hierarchy + title alignment */
/* Keep the page/post title in the same column as the body copy.
   The site-wide .responsive-max-width widening to 1100px/90% is meant
   for full-bleed sections, not the article header. */
@media (min-width: 769px) {
  .entry-header.responsive-max-width:not(#_) {
    max-width: 750px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
.entry-content h2:not(#_) {
  font-size: 34px;
  line-height: 1.25;
  margin-top: 56px;
  margin-bottom: 16px;
}
.entry-content h3:not(#_) {
  font-size: 29px;
  line-height: 1.25;
  color: #21603C;
  margin-top: 56px;
  margin-bottom: 14px;
  padding-top: 22px;
  border-top: 2px solid rgba(33, 96, 60, 0.22);
}
.entry-content h4:not(#_) {
  font-size: 21px;
  line-height: 1.3;
  color: #17462B;
  margin-top: 36px;
  margin-bottom: 10px;
}
.entry-content h5:not(#_) {
  font-size: 18px;
  line-height: 1.35;
  margin-top: 28px;
  margin-bottom: 8px;
}
.entry-content h6:not(#_) {
  font-size: 16px;
  line-height: 1.4;
  text-transform: none;
  margin-top: 24px;
  margin-bottom: 8px;
}
.entry-content > h3:first-child:not(#_) {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.entry-content p:not(#_) {
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  .entry-content h3:not(#_) {
    font-size: 25px;
    margin-top: 44px;
    padding-top: 18px;
  }
  .entry-content h4:not(#_) {
    font-size: 19px;
    margin-top: 30px;
  }
}