/*
Theme Name: ProHauz Child
Theme URI: https://mmechanicalsolutions.com/
Description: Child theme for the ProHauz theme
Author: Your Name
Author URI: https://mmechanicalsolutions.com/
Template: prohauz
Version: 1.0
*/

/*========================
  HERO SECTION - No Image
=========================*/

.hero-wrapper.no-bg {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 60px 5% 40px;
  background-color: #f2f2f2;
  overflow: hidden;
}

.hero-overlay-content {
  max-width: 600px;
  color: #000;
  text-shadow: none;
  z-index: 1;
}

.hero-overlay-content h1,
.hero-overlay-content h2 {
  font-size: 3em;
  font-weight: 800;
  margin: 0 0 15px 0;
}

.hero-overlay-content p {
  font-size: 1.5em;
  font-style: italic;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-blue {
  padding: 14px 28px;
  background-color: #2AA5F3;
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: inline-block;
}

.cta-blue:hover {
  transform: translateY(-3px);
  background-color: #208dd2;
}

.hero-overlay-content h1 {
  margin-top: 30px; /* Adjust this value as needed */
}


/*========================
  HEADER PHONE
=========================*/

.btHeaderPhone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px 20px;
}

.btHeaderPhone a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3em;
}

.btHeaderPhone i {
  font-size: 1.1em;
}

/*========================
  HEADER / HERO SPACING
=========================*/

.hero-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

header, .btHeader, .btLogoArea {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/*========================
  RESPONSIVE STYLES
=========================*/

@media (min-width: 1025px) {
  .hero-wrapper.no-bg {
    height: auto;
    min-height: unset;
  }

  .desktop-phone {
    display: flex !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    margin-top: 6px;
    z-index: 10;
  }

  .mobile-phone {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero-wrapper.no-bg {
    padding: 50px 5%;
  }

  .hero-overlay-content h1,
  .hero-overlay-content h2 {
    font-size: 2.5em;
  }

  .hero-overlay-content p {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .hero-wrapper.no-bg {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 40px 5% 30px;
  }

  .hero-overlay-content h1,
  .hero-overlay-content h2 {
    font-size: 2em;
    margin-bottom: 10px;
  }

  .hero-overlay-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btHeaderPhone {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    margin-top: 10px;
  }

  .btHeaderPhone a {
    font-size: 1.1em;
    font-weight: 700;
    white-space: nowrap;
  }

  .btLogoArea img {
    max-height: 40px !important;
    height: auto;
    width: auto;
  }

  .mobile-phone a {
    white-space: nowrap;
  }
}

/* Swap logo for mobile 
@media (max-width: 768px) {
  .btLogoArea .logo span img {
    content: url('https://mmechanicalsolutions.com/wp-content/uploads/2025/07/M-Mechanical-Logo-Revised-3.png');
    max-width: 150px !important;
    height: auto !important;
  }
}
*/
body.home .btContentHolder {
  padding-top: 50px; /* default for mobile */
  background-color: #f2f2f2 !important;	
}

@media (min-width: 1024px) {
  body.home .btContentHolder {
    padding-top: 80px; /* for desktop */
	background-color: #f2f2f2 !important;  
  }
}

body.home .btContentWrap > .bt_bb_port {
  background-color: #f2f2f2 !important;
}

body.home footer.btLightSkin {
  background-color: #000 !important;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .bt_bb_section,
  .bt_bb_row,
  .bt_bb_column {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
  }

  /* Optional: force background color */
  body.home .btContentWrap > .bt_bb_port {
    background-color: #f2f2f2 !important;
  }

  body.home footer.btLightSkin {
    background-color: #000 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  /* Fix white line bug */
  .bt_bb_section.bt_bb_style_border {
    border: none !important;
  }

  .bt_bb_port,
  .bt_bb_row,
  .bt_bb_column {
    background-color: #f2f2f2 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Optional: tighten layout if needed */
  .hero-wrapper.no-bg {
    padding-top: 60px;
  }
}

/* ========================
   Fix: Logo Layout Shift & Squishing
========================= */
/* === Apply correct logo to all header states === */
.btVerticalHeaderTop .logo img,
.mainHeader .logo img {
  content: url('https://mmechanicalsolutions.com/wp-content/uploads/2025/07/M-Mechanical-Logo-350-x-90.png');
  max-width: 350px;
  height: auto;
  aspect-ratio: 350 / 90;
  object-fit: contain;
  display: block;
}

/* === Tweak for mobile === */
@media (max-width: 768px) {
  .btVerticalHeaderTop .logo img,
  .mainHeader .logo img {
    max-width: 250px;
  }
}

