/* Shared sticky nav + flush page hero (same pattern as FAQ) */

.header.site-fixed-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100%;
  max-height: none !important;
  height: auto !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  z-index: 100;
}

.header.site-fixed-nav .primary-header,
.header.site-fixed-nav .primary-header.fixed {
  position: relative !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  animation: none !important;
}

.site-nav-spacer {
  height: 80px;
}

/* Natural-aspect hero image — no cover crop cutting subjects */
.page-header.site-page-header {
  position: relative;
  overflow: hidden;
}

.page-header.site-page-header .site-hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.page-header.site-page-header .overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.78;
  z-index: 1;
  pointer-events: none;
}

.page-header.site-page-header > .container {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header.site-page-header .page-header-content {
  padding: 40px 0 !important;
}

/* =========================================================
   Site-wide tablet + mobile compatibility
   Loaded after main.css on all pages with site-header.css
   ========================================================= */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* White fixed header: dark hamburger (template default is white-on-white) */
.header.site-fixed-nav .mobile-side-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 4px;
  justify-content: center;
  box-sizing: border-box;
}

.header.site-fixed-nav .mobile-side-menu-toggle span {
  background-color: #000000 !important;
}

/* Larger touch target for mobile submenu expand (+) */
.mean-bar .mean-nav > ul li a.mean-expand {
  width: 44px !important;
  height: 44px !important;
  top: 0 !important;
  right: 0 !important;
}

/* Home / landing hero titles — readable on tablet & phone */
@media (max-width: 992px) {
  .slider-section {
    max-height: none !important;
  }

  .slider-content-wrap {
    padding: 120px 0 80px 0 !important;
  }

  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 52px !important;
    line-height: 1.1 !important;
    min-height: 0 !important;
    margin-bottom: 20px !important;
  }

  .page-header .page-header-content {
    padding: 120px 16px 70px !important;
  }

  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 48px !important;
    line-height: 1.1 !important;
  }

  .page-header .page-header-content .desc {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 0 8px;
  }

  .section-heading .section-title {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .header.site-fixed-nav .primary-header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header.site-fixed-nav .header-logo img {
    max-width: 100px !important;
    height: auto !important;
  }

  /* Keep containers from feeling edge-to-edge cramped */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Common section padding trim */
  .pt-140 {
    padding-top: 80px !important;
  }

  .pb-140 {
    padding-bottom: 80px !important;
  }

  .pt-120 {
    padding-top: 70px !important;
  }

  .pb-120 {
    padding-bottom: 70px !important;
  }
}

@media (max-width: 767px) {
  .site-nav-spacer {
    height: 70px;
  }

  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 36px !important;
    line-height: 1.15 !important;
  }

  .page-header .page-header-content {
    padding: 100px 12px 60px !important;
  }

  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 36px !important;
  }

  .page-header .page-header-content .desc {
    font-size: 15px !important;
  }

  .section-heading .section-title {
    font-size: 28px !important;
  }

  .section-heading .sub-heading {
    font-size: 14px !important;
  }

  /* Buttons / CTAs full-width friendly */
  .cp-primary-btn {
    display: inline-flex;
    max-width: 100%;
  }

  /* Footer / forms */
  .footer-widget,
  .contact-form,
  .form-item {
    max-width: 100%;
  }

  input,
  textarea,
  select,
  .form-control {
    max-width: 100%;
    font-size: 16px !important; /* prevents iOS zoom on focus */
  }

  /* Testimonial / card text spacing on home */
  .testi-item .testi-content p {
    margin-bottom: 40px !important;
  }

  /* FAQ accordion readable */
  .faq-content .faq-accordion .accordion-item .accordion-button {
    font-size: 16px !important;
    padding-right: 40px;
  }

  /* Mobile drawer full usable width */
  .mobile-side-menu {
    max-width: 100%;
  }
}

@media (max-width: 567px) {
  .slider-content-wrap .buildfix-caption .slider-title {
    font-size: 30px !important;
  }

  .page-header .page-header-content .section-title,
  .page-header.site-page-header .page-header-content .section-title {
    font-size: 30px !important;
  }

  .section-heading .section-title {
    font-size: 24px !important;
  }

  .pt-140,
  .pt-120 {
    padding-top: 60px !important;
  }

  .pb-140,
  .pb-120 {
    padding-bottom: 60px !important;
  }
}

/* Prevent wide fixed-width widgets from causing horizontal scroll */
@media (max-width: 992px) {
  .about-img-wrap,
  .about-img-1,
  .about-img-2,
  .project-card,
  .blog-item,
  .service-item,
  .team-item,
  .portfolio-item {
    max-width: 100%;
  }

  .running-text,
  .carouselTicker,
  .carouselTicker__list {
    max-width: 100vw;
  }
}
