/*
Theme Name: Total Child
Template: Total
Version: 1.0
Author: WPExplorer
*/

/* ------------------------------
   Global Typography & Layout
------------------------------ */

body, html {
  overflow-x: hidden !important;
}

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

/* ------------------------------
   Human Factor Section Styles
------------------------------ */

.human-factor-section {
  background: white;
  padding: 80px 20px;
  margin: 0 -20px;
  width: calc(100% + 40px);
}

.human-factor-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.human-factor-section h2 {
  font-size: 1.8rem;
  color: #2c0f6d;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: bold;
}

.human-factor-section p {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
  line-height: 1.6;
  font-size: 1rem;
}

/* ------------------------------
   Mobile Portrait Global Fixes
------------------------------ */

@media (max-width: 480px) {

  section {
    padding: 40px 15px !important;
    margin: 0 -15px !important;
    width: calc(100% + 30px) !important;
  }

  h1, h2, h3, h4 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
  }

  p, li {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.8rem !important;
  }

  a[style*="padding"] {
    font-size: 1rem !important;
    padding: 0.75rem 1.25rem !important;
  }

  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .stat-boxes,
  div[style*="67%"],
  div[style*="45%"],
  div[style*="60%"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
    padding: 1rem 0 !important;
    text-align: center !important;
  }
}

/* ------------------------------
   Transformation Readiness Fix
   https://www.2040digital.com/human-factor-method/transformation-readiness-assessment/
------------------------------ */

@media (max-width: 480px) {

  /* Fix extreme vertical text wrapping */
  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content p,
  .entry-content div,
  .entry-content span {
    word-break: normal !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    display: block !important;
    text-align: center !important;
    padding: 0 1rem !important;
  }

  /* HubSpot form container width fix */
  .hs-form,
  .hs-form iframe,
  .hs-form-frame,
  iframe[src*="hsforms"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    display: block !important;
    margin: 0 auto !important;
  }

  /* Input fields + buttons */
  input,
  select,
  textarea,
  button {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    box-sizing: border-box !important;
  }

  /* Ensure form wrapper block behaves */
  #assessment div[style],
  .entry-content .wp-block-group {
    max-width: 100% !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
  }
}