/* Homeowners Marketplace - Homepage
   Version: 2.2.0
   Date: October 03, 2025
   Description: Font Awesome 6.5 icons, Pro Business CTA fix, theme compatibility
   Owner: Homeowners Marketplace
   
   FIXES in v2.2.0:
   1. Removed homepage auto-configuration - works with Enfold theme
   2. Integrated Font Awesome 6.5 for professional icons
   3. Fixed Pro Business CTA button visibility with background colors
   4. Improved icon rendering and sizing
   5. Enhanced button styles for shortcode compatibility
*/

/* ===== CSS Variables ===== */
:root {
  --hmp-blue: #1558B0;
  --hmp-blue-d: #0D3A76;
  --hmp-accent: #20B77E;
  --hmp-teal: #158B9E;
  --hmp-text: #222;
  --hmp-text-dim: #555;
  --hmp-text-light: #777;
  --hmp-bg: #f7f9fc;
  --hmp-white: #fff;
  --hmp-border: #e6e9ef;
  --hmp-shadow: 0 8px 24px rgba(13, 58, 118, 0.08);
  --hmp-shadow-hover: 0 12px 32px rgba(13, 58, 118, 0.12);
  --hmp-radius: 14px;
  --hmp-radius-sm: 10px;
  --hmp-container-max: 1200px;
  --hmp-container-padding: 20px;
  --hmp-section-padding: 40px;
}

/* ===== Base Styles ===== */
.hmp-homepage-active {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.hmp-home {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--hmp-text);
  margin: 0;
  padding: 0;
}

.hmp-home * {
  box-sizing: border-box;
}

/* ===== Layout ===== */
.hmp-container {
  width: min(var(--hmp-container-max), calc(100vw - var(--hmp-container-padding)));
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .hmp-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
}

/* STANDARDIZED SECTION PADDING */
.hmp-section { 
  padding: var(--hmp-section-padding) 0;
}

.hmp-sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.hmp-sec-head__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--hmp-blue-d);
  margin: 0 0 4px 0;
  font-weight: 700;
  line-height: 1.2;
}

.hmp-sec-subtitle {
  font-size: 1.1rem;
  color: var(--hmp-text-dim);
  margin: 0;
  font-weight: 400;
}

.hmp-section__content {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hmp-section__content p {
  margin: 0 0 10px 0;
}

.hmp-section__content p:last-child {
  margin-bottom: 0;
}

/* Introduction section - Supports numbered lists */
.hmp-introduction__content ol {
  margin: 16px 0;
  padding-left: 28px;
}

.hmp-introduction__content ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.hmp-introduction__content ul {
  list-style: disc;
  margin: 16px 0;
  padding-left: 28px;
}

.hmp-introduction__content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.hmp-hero__content-block ul,
.hmp-hero__content-block ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.hmp-link { 
  color: var(--hmp-blue); 
  text-decoration: none; 
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.hmp-link:hover { 
  text-decoration: underline;
  color: var(--hmp-blue-d);
}

/* ===== Buttons ===== */
.hmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--hmp-radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--hmp-shadow);
  min-height: 44px;
}

.hmp-btn:active { 
  transform: translateY(1px); 
}

.hmp-btn--primary { 
  background: var(--hmp-blue); 
  color: var(--hmp-white);
}

.hmp-btn--primary:hover { 
  background: var(--hmp-blue-d);
  box-shadow: var(--hmp-shadow-hover);
}

.hmp-btn--quote {
  background: var(--hmp-accent) !important;
  color: var(--hmp-white) !important;
  border: 2px solid var(--hmp-accent) !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  font-size: 1rem;
}

.hmp-btn--quote:hover {
  background: #1a9b6b !important;
  border-color: #1a9b6b !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(32, 183, 126, 0.4);
  color: var(--hmp-white) !important;
}

.hmp-btn--ghost { 
  background: var(--hmp-white); 
  color: var(--hmp-blue); 
  border-color: var(--hmp-blue);
}

.hmp-btn--ghost:hover { 
  background: #eef4ff;
  box-shadow: var(--hmp-shadow-hover);
}

/* ===== Hero ===== */
.hmp-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0 !important;
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--hmp-white);
  background: linear-gradient(135deg, rgba(13,58,118,0.9), rgba(21,88,176,0.8));
  background-position: center; 
  background-size: cover;
}

.hmp-hero__overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
}

.hmp-hero__inner { 
  position: relative; 
  z-index: 2; 
  width: 100%;
  max-width: var(--hmp-container-max);
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.hmp-hero__content { 
  max-width: 900px; 
  text-align: center; 
  margin: 0 auto; 
  padding: 25px 0;
}

.hmp-hero__headline { 
  font-size: clamp(1.8rem, 5vw, 3rem); 
  line-height: 1.1; 
  margin: 0 0 10px 0;
  font-weight: 700;
  color: var(--hmp-white) !important;
}

.hmp-hero__sub { 
  font-size: clamp(1rem, 2.5vw, 1.3rem); 
  margin: 0 0 20px 0;
  color: #e7eefb;
  line-height: 1.4;
}

.hmp-hero__search {
  display: grid; 
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,0.15); 
  backdrop-filter: blur(8px); 
  border-radius: var(--hmp-radius);
  max-width: 600px;
  margin: 0 auto 16px auto;
}

.hmp-hero__search input, 
.hmp-hero__search select {
  border: none; 
  border-radius: var(--hmp-radius-sm); 
  padding: 12px 14px;
  outline: none;
  font-size: 1rem;
  min-height: 46px;
}

.hmp-hero__search input::placeholder { 
  color: #888;
}

.hmp-hero__search input { 
  background: rgba(255,255,255,0.9); 
  color: var(--hmp-text);
}

.hmp-hero__search select { 
  background: var(--hmp-white); 
  color: var(--hmp-text);
}

.hmp-hero__content-block {
  margin: 20px 0;
  padding: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--hmp-radius);
  backdrop-filter: blur(4px);
}

.hmp-hero__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hmp-hero__card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--hmp-radius);
  padding: 14px;
  text-align: center;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.hmp-hero__card-icon {
  margin: 0 0 8px 0;
  color: #bcd2ff;
}

.hmp-hero__card-title {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
  font-weight: 600;
  color: var(--hmp-white) !important;
}

.hmp-hero__card-content {
  margin: 0;
  font-size: 0.95rem;
  color: #e7eefb;
  line-height: 1.5;
}

.hmp-hero__shortcode {
  margin: 16px 0;
}

/* Mobile: Shortcode after cards */
@media (max-width: 768px) {
  .hmp-hero__shortcode {
    order: 10;
  }
  
  .hmp-hero__cards {
    order: 5;
  }
  
  .hmp-hero__content {
    display: flex;
    flex-direction: column;
  }
}

/* ===== Categories / Category and Services Cards ===== */
.hmp-section--cats { 
  background: var(--hmp-bg); 
}

.hmp-cats { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 12px;
}

.hmp-cat {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 10px;
  background: var(--hmp-white); 
  border: 2px solid var(--hmp-border); 
  border-radius: var(--hmp-radius);
  padding: 20px 12px;
  text-decoration: none; 
  color: var(--hmp-text); 
  box-shadow: 0 4px 12px rgba(13, 58, 118, 0.06);
  transition: all 0.25s ease;
  min-height: 140px;
}

.hmp-cat:hover { 
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(13, 58, 118, 0.14);
  border-color: var(--hmp-blue);
}

.hmp-cat__icon { 
  flex-shrink: 0;
  font-size: 56px;
  color: var(--hmp-blue);
  transition: all 0.25s ease;
}

.hmp-cat:hover .hmp-cat__icon {
  transform: scale(1.08);
  color: var(--hmp-accent);
}

.hmp-cat__label { 
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  color: var(--hmp-text);
}

/* ===== Introduction Section ===== */
.hmp-section--introduction {
  background: var(--hmp-white);
}

/* ===== Trusted Source ===== */
.hmp-section--trusted {
  background: var(--hmp-bg);
}

.hmp-trusted__services h3 {
  font-size: 1.3rem;
  color: var(--hmp-blue-d);
  margin: 0 0 16px 0;
  font-weight: 600;
}

.hmp-trusted__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hmp-trusted__service {
  padding: 14px;
  background: var(--hmp-bg);
  border-radius: var(--hmp-radius);
  border: 1px solid var(--hmp-border);
}

.hmp-trusted__service h4 {
  font-size: 1.1rem;
  color: var(--hmp-blue-d);
  margin: 0 0 4px 0;
  font-weight: 600;
}

.hmp-trusted__service p {
  margin: 0;
  color: var(--hmp-text-dim);
  line-height: 1.5;
}

/* ===== Featured Pros ===== */
.hmp-section--pros { 
  background: var(--hmp-white); 
}

.hmp-pros-slider { 
  position: relative; 
}

.hmp-pros-track {
  display: grid; 
  grid-auto-flow: column; 
  grid-auto-columns: 85%;
  gap: 14px;
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  padding: 0 0 10px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.hmp-pro-card {
  scroll-snap-align: start; 
  display: flex; 
  flex-direction: column;
  background: var(--hmp-white); 
  border: 1px solid var(--hmp-border); 
  border-radius: var(--hmp-radius);
  overflow: hidden;
  box-shadow: var(--hmp-shadow);
  transition: all 0.2s ease;
  position: relative;
  min-height: 320px;
}

.hmp-pro-card:hover {
  box-shadow: var(--hmp-shadow-hover);
  transform: translateY(-2px);
}

.hmp-pro-card__logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: linear-gradient(135deg, #f8faff, #eef4ff);
  border-bottom: 1px solid var(--hmp-border);
  overflow: hidden;
  border-radius: var(--hmp-radius) var(--hmp-radius) 0 0;
}

.hmp-pro-card__logo-main {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.hmp-pro-card__logo-placeholder {
  width: 100%;
  height: 160px;
  background: var(--hmp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hmp-white);
  font-size: 48px;
  font-weight: bold;
}

.hmp-pro-card__hmvp-badge {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--hmp-blue), var(--hmp-teal));
  transform: rotate(45deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 35px;
  z-index: 20;
  cursor: help;
  pointer-events: auto;
}

.hmp-pro-card__hmvp-badge span {
  color: var(--hmp-white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(-45deg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  white-space: nowrap;
}

.hmp-pro-card__hmvp-badge:hover {
  background: linear-gradient(135deg, var(--hmp-blue-d), var(--hmp-teal));
}

.hmp-hmvp-tooltip {
  position: fixed;
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 340px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  font-size: 0.85rem;
  line-height: 1.5;
}

.hmp-hmvp-tooltip.active {
  opacity: 1;
  visibility: visible;
}

.hmp-hmvp-tooltip__header {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--hmp-blue-d);
}

.hmp-hmvp-tooltip__section {
  margin-bottom: 12px;
}

.hmp-hmvp-tooltip__section:last-child {
  margin-bottom: 0;
}

.hmp-hmvp-tooltip__section strong {
  display: block;
  margin-bottom: 6px;
  color: var(--hmp-blue-d);
  font-size: 0.85rem;
}

.hmp-hmvp-tooltip__section ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.hmp-hmvp-tooltip__section ul li {
  position: relative;
  padding-left: 12px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.hmp-hmvp-tooltip__section ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--hmp-accent);
  font-weight: bold;
}

.hmp-hmvp-tooltip__section ul li:last-child {
  margin-bottom: 0;
}

.hmp-quote-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999999;
  padding: 20px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin: 0 !important;
  transform: none !important;
}

.hmp-quote-modal.active {
  display: flex;
  opacity: 1;
}

.hmp-quote-modal__content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1000000000;
  transform: translateY(0);
  margin: 0 auto;
}

.hmp-quote-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 10;
}

.hmp-quote-modal__close:hover {
  background: #f0f0f0;
  color: #333;
}

.hmp-quote-modal__body {
  margin-top: 20px;
}

.hmp-pro-card__body { 
  padding: 12px;
  display: grid; 
  gap: 8px;
  flex: 1;
}

.hmp-pro-card__title { 
  font-size: 1.05rem; 
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  color: var(--hmp-text);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  display: block;
  font-size: clamp(0.75rem, 2.5vw, 1.05rem);
  word-break: keep-all;
}

@supports (container-type: inline-size) {
  .hmp-pro-card__body {
    container-type: inline-size;
  }
  
  .hmp-pro-card__title {
    font-size: clamp(0.7rem, 4cqw, 1.05rem);
  }
}

.hmp-pro-card__actions { 
  display: flex; 
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  justify-content: center;
}

.hmp-pro-card__actions .hmp-btn {
  flex: 1;
  min-width: 120px;
}

.hmp-pro-card__actions form,
.hmp-pro-card__actions .wpcf7,
.hmp-pro-card__actions .gform_wrapper {
  width: 100%;
  margin: 0;
}

.hmp-slider-btn {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%);
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  border: 1px solid var(--hmp-border);
  background: var(--hmp-white); 
  box-shadow: var(--hmp-shadow); 
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--hmp-blue);
  z-index: 10;
  transition: all 0.2s ease;
}

.hmp-slider-btn:hover {
  background: var(--hmp-blue);
  color: var(--hmp-white);
  box-shadow: var(--hmp-shadow-hover);
}

.hmp-slider-btn--prev { 
  left: -22px; 
}

.hmp-slider-btn--next { 
  right: -22px; 
}

/* ===== Testimonials ===== */
.hmp-section--testimonials {
  background: var(--hmp-bg);
}

.hmp-testimonials-slider {
  position: relative;
}

.hmp-testimonials-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 10px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.hmp-testimonial {
  scroll-snap-align: start;
  background: var(--hmp-white);
  border-radius: var(--hmp-radius);
  padding: 16px;
  box-shadow: var(--hmp-shadow);
  text-align: center;
  border: 1px solid var(--hmp-border);
}

.hmp-testimonial__rating {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.hmp-star {
  color: #ddd;
  margin: 0 2px;
}

.hmp-star--filled {
  color: #ffc107;
}

.hmp-testimonial__quote {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 10px 0;
  font-style: italic;
  color: var(--hmp-text);
}

.hmp-testimonial__author {
  font-weight: 600;
  color: var(--hmp-blue-d);
  font-style: normal;
  font-size: 0.95rem;
}

/* ===== Projects & Ideas ===== */
.hmp-section--ideas { 
  background: var(--hmp-white); 
}

.hmp-ideas { 
  display: grid; 
  gap: 14px;
  grid-template-columns: 1fr;
}

.hmp-idea {
  background: var(--hmp-white); 
  border: 1px solid var(--hmp-border); 
  border-radius: var(--hmp-radius); 
  overflow: hidden; 
  box-shadow: var(--hmp-shadow);
  transition: all 0.2s ease;
  min-height: 320px;
}

.hmp-idea:hover {
  box-shadow: var(--hmp-shadow-hover);
  transform: translateY(-2px);
}

.hmp-idea__img { 
  display: block; 
  aspect-ratio: 16/10; 
  background: #f0f3f9;
  overflow: hidden;
}

.hmp-idea__img img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  transition: transform 0.3s ease;
}

.hmp-idea:hover .hmp-idea__img img {
  transform: scale(1.05);
}

.hmp-idea__img--ph { 
  width: 100%; 
  height: 100%; 
  background: #e9eef7; 
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hmp-text-light);
}

.hmp-idea__img--ph::before {
  content: "No Image";
}

.hmp-idea__title { 
  margin: 10px 10px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.hmp-idea__title a {
  color: inherit;
  text-decoration: none;
}

.hmp-idea__title a:hover {
  color: var(--hmp-blue);
}

@media (min-width: 1025px) {
  .hmp-ideas {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hmp-ideas .hmp-idea:nth-child(n+4) {
    display: none;
  }
  
  .hmp-ideas.hmp-ideas--desktop-expanded .hmp-idea {
    display: block !important;
  }
  
  .hmp-pros-track {
    grid-auto-columns: calc(33.333% - 10px);
  }
}

.hmp-ideas--mobile-collapsed .hmp-idea:nth-child(n+4) {
  display: none;
}

.hmp-ideas--mobile-expanded .hmp-idea {
  display: block;
}

.hmp-see-more-btn {
  margin: 14px auto 0;
  display: block;
  background: var(--hmp-blue);
  color: var(--hmp-white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--hmp-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--hmp-shadow);
}

.hmp-see-more-btn:hover {
  background: var(--hmp-blue-d);
  box-shadow: var(--hmp-shadow-hover);
}

.hmp-see-more-btn:active {
  transform: translateY(1px);
}

.hmp-see-more-btn.hidden {
  display: none;
}

@media (max-width: 768px) {
  .hmp-ideas[data-mobile-count="1"] .hmp-idea:nth-child(n+2) {
    display: none;
  }
  .hmp-ideas[data-mobile-count="2"] .hmp-idea:nth-child(n+3) {
    display: none;
  }
  .hmp-ideas[data-mobile-count="3"] .hmp-idea:nth-child(n+4) {
    display: none;
  }
  .hmp-ideas[data-mobile-count="4"] .hmp-idea:nth-child(n+5) {
    display: none;
  }
  .hmp-ideas[data-mobile-count="5"] .hmp-idea:nth-child(n+6) {
    display: none;
  }
  
  .hmp-ideas--mobile-expanded .hmp-idea {
    display: block !important;
  }
}

/* ===== Pro Business - FIXED SHORTCODE CTA STYLING ===== */
.hmp-section--pro-business {
  background: var(--hmp-bg);
  color: var(--hmp-text);
}

.hmp-section--pro-business .hmp-sec-head__content h2 {
  color: var(--hmp-blue-d);
}

.hmp-section--pro-business .hmp-sec-subtitle {
  color: var(--hmp-text-dim);
}

.hmp-pro-business__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  background: var(--hmp-white);
  padding: 40px 30px;
  border-radius: var(--hmp-radius);
  border: 1px solid var(--hmp-border);
  box-shadow: var(--hmp-shadow);
}

.hmp-pro-business__content .hmp-section__content {
  color: var(--hmp-text);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Pro Business CTA - FIXED BUTTON VISIBILITY */
.hmp-pro-business__cta {
  margin: 24px 0 0 0;
}

/* Allow shortcodes to render with their own styling */
.hmp-pro-business__cta form,
.hmp-pro-business__cta .wpcf7,
.hmp-pro-business__cta .gform_wrapper,
.hmp-pro-business__cta .wpforms-container {
  width: 100%;
  margin: 0;
}

/* CRITICAL FIX: Ensure buttons in Pro Business section are visible */
.hmp-pro-business__cta input[type="submit"],
.hmp-pro-business__cta button[type="submit"],
.hmp-pro-business__cta .wpcf7-submit,
.hmp-pro-business__cta .gform_button,
.hmp-pro-business__cta .wpforms-submit {
  background: var(--hmp-blue) !important;
  color: var(--hmp-white) !important;
  border: 2px solid var(--hmp-blue) !important;
  padding: 12px 24px !important;
  border-radius: var(--hmp-radius-sm) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: var(--hmp-shadow) !important;
  display: inline-block !important;
  text-decoration: none !important;
  min-height: 44px !important;
}

.hmp-pro-business__cta input[type="submit"]:hover,
.hmp-pro-business__cta button[type="submit"]:hover,
.hmp-pro-business__cta .wpcf7-submit:hover,
.hmp-pro-business__cta .gform_button:hover,
.hmp-pro-business__cta .wpforms-submit:hover {
  background: var(--hmp-blue-d) !important;
  border-color: var(--hmp-blue-d) !important;
  box-shadow: var(--hmp-shadow-hover) !important;
  transform: translateY(-1px) !important;
}

/* ===== Cities ===== */
.hmp-section--cities {
  background: var(--hmp-white);
}

.hmp-cities { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px;
  list-style: none; 
  padding: 0; 
  margin: 0;
  justify-content: flex-start;
}

.hmp-city {
  padding: 6px 12px;
  border-radius: 25px; 
  border: 1px solid var(--hmp-border);
  background: var(--hmp-bg); 
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.hmp-city--link {
  text-decoration: none;
  color: inherit;
}

.hmp-city--link:hover,
.hmp-city:hover {
  background: var(--hmp-blue);
  color: var(--hmp-white);
  border-color: var(--hmp-blue);
  transform: translateY(-1px);
}

/* ===== Newsletter - INCREASED WIDTH ===== */
.hmp-section--cta { 
  background: var(--hmp-bg);
}

.hmp-cta { 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hmp-cta__content-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.hmp-cta__copy {
  margin-bottom: 16px;
}

.hmp-cta__copy h2 { 
  margin: 0 0 4px;
  color: var(--hmp-blue-d);
}

.hmp-cta__copy p { 
  margin: 0; 
  color: var(--hmp-text-dim);
}

.hmp-cta__content {
  margin: 8px 0 0 0;
}

/* INCREASED WIDTH FOR NEWSLETTER SHORTCODE */
.hmp-cta__form {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.hmp-cta__form form,
.hmp-cta__form .wpcf7,
.hmp-cta__form .gform_wrapper,
.hmp-cta__form .wpforms-container,
.hmp-cta__form .mc4wp-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hmp-newsletter {
  display: grid; 
  grid-template-columns: 1fr auto; 
  gap: 8px;
  background: var(--hmp-white); 
  border: 1px solid var(--hmp-border); 
  padding: 4px;
  border-radius: var(--hmp-radius);
  box-shadow: var(--hmp-shadow);
  max-width: 500px;
  margin: 0 auto;
}

.hmp-newsletter input[type="email"] {
  background: transparent; 
  border: none; 
  border-radius: var(--hmp-radius-sm); 
  padding: 10px 14px;
  outline: none;
  font-size: 1rem;
  min-height: 44px;
}

.hmp-newsletter input[type="email"]:focus {
  background: var(--hmp-bg);
}

/* ===== Utilities ===== */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  border: 0;
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
  :root {
    --hmp-section-padding: 30px;
  }
  
  .hmp-section { 
    padding: 30px 0;
  }
  
  .hmp-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .hmp-sec-head__content h2 {
    font-size: 1.4rem;
  }
  
  .hmp-hero {
    min-height: 50vh;
  }
  
  .hmp-hero__content {
    padding: 20px 0;
  }
  
  .hmp-hero__search { 
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    margin: 0 0 14px 0;
  }
  
  .hmp-hero__search input,
  .hmp-hero__search select,
  .hmp-hero__search button {
    min-height: 46px;
    font-size: 1rem;
  }
  
  .hmp-hero__cards {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 16px 0;
  }
  
  .hmp-hero__card {
    padding: 12px;
  }
  
  .hmp-cats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .hmp-cat {
    padding: 16px 10px;
    min-height: 120px;
  }
  
  .hmp-cat__icon {
    font-size: 48px;
  }
  
  .hmp-cat__label {
    font-size: 0.85rem;
  }
  
  .hmp-trusted__grid {
    gap: 10px;
  }
  
  .hmp-trusted__service {
    padding: 12px;
  }
  
  .hmp-pros-track {
    grid-auto-columns: 85%;
    gap: 8px;
  }
  
  .hmp-slider-btn {
    display: none;
  }
  
  .hmp-testimonials-track {
    grid-auto-columns: 95%;
    gap: 10px;
  }
  
  .hmp-testimonial {
    padding: 14px;
  }
  
  .hmp-ideas {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hmp-pro-business__content {
    padding: 20px;
  }
  
  .hmp-cta {
    gap: 14px;
  }
  
  .hmp-cta__content-wrapper {
    width: 100%;
  }
  
  .hmp-cta__form form,
  .hmp-cta__form .wpcf7,
  .hmp-cta__form .gform_wrapper,
  .hmp-cta__form .wpforms-container,
  .hmp-cta__form .mc4wp-form {
    max-width: 100%;
  }
  
  .hmp-newsletter {
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 100%;
  }
  
  .hmp-newsletter .hmp-btn {
    width: 100%;
  }
  
  .hmp-cities {
    gap: 4px;
    justify-content: center !important;
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }
  
  .hmp-city {
    padding: 5px 8px;
    font-size: 0.85rem;
    margin: 0;
  }
  
  .hmp-hmvp-tooltip {
    width: 300px;
    padding: 16px;
  }
  
  .hmp-quote-modal__content {
    padding: 24px;
    max-width: 90vw;
  }
}

/* ===== Tablet Optimizations ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .hmp-cats {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hmp-hero__search {
    grid-template-columns: 1fr 160px auto;
    max-width: 700px;
  }
  
  .hmp-hero__cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hmp-trusted__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hmp-pros-track {
    grid-auto-columns: calc(50% - 7px);
  }
  
  .hmp-testimonials-track {
    grid-auto-columns: 70%;
  }
  
  .hmp-ideas {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Desktop Optimizations ===== */
@media (min-width: 1025px) {
  .hmp-section {
    padding: 40px 0;
  }
  
  .hmp-cats {
    grid-template-columns: repeat(8, 1fr);
  }
  
  .hmp-hero__search {
    grid-template-columns: 1fr 180px auto;
    gap: 8px;
  }
  
  .hmp-hero__cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hmp-trusted__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hmp-testimonials-track {
    grid-auto-columns: 50%;
  }
}

/* ===== Large Desktop ===== */
@media (min-width: 1200px) {
  .hmp-section {
    padding: 50px 0;
  }
  
  .hmp-pros-track {
    grid-auto-columns: calc(20% - 8px);
  }
  
  .hmp-testimonials-track {
    grid-auto-columns: 40%;
  }
}

/* ===== Print Styles ===== */
@media print {
  .hmp-slider-btn,
  .hmp-hero__search,
  .hmp-newsletter,
  .hmp-see-more-btn,
  .hmp-hmvp-tooltip,
  .hmp-quote-modal {
    display: none;
  }
  
  .hmp-hero {
    background: var(--hmp-blue-d) !important;
    color: white !important;
    min-height: auto;
    padding: 40px 0;
    width: auto;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hmp-section {
    padding: 20px 0;
  }
  
  .hmp-ideas--mobile-collapsed .hmp-idea {
    display: block !important;
  }
  
  .hmp-ideas .hmp-idea {
    display: block !important;
  }
}