*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) and (max-width: 1024px) {
  body, section, header, footer {
    margin-right: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
  }
}


/* Tablet / iPad Fix: Keep text slightly away from hero image */
@media (max-width: 1024px) and (min-width: 768px) {
  #heroText {
    padding-left: 1rem; 
    text-align: center; 
  }

  #heroImage img {
    max-width: 85%; 
  }
}



/* Tablet (iPad) Fixes Only: 768px–1024px */

@media (min-width: 768px) and (max-width: 1024px) {

  /* General spacing fix */
  section, header, footer {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    overflow-x: hidden !important;
  }

  /* Header logo fix */
  #mainHeader {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero section alignment */
  #home {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  #home img {
    max-width: 80% !important;
    margin: 0 auto !important;
  }

  /* LIFE SECTION */
  #life {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  #life img {
    max-width: 80% !important;
    margin: 0 auto !important;
  }

  #life .text-left {
    text-align: center !important;
  }

  /* PRACTICE AREAS grid tighter */
  #practice .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* MEET ATTORNEY */

  /* section[style*='BigG.png'],
section.bg-\[url\('images/BigG\.png'\)\] {
  background-size: 45% !important;
  background-position: right bottom !important;
  text-align: center !important;
} */

section[style*="BigG.png"],
.meet-section {
  background-size: 45% !important;
  background-position: right bottom !important;
  text-align: center !important;
}



  section[style*='BigG.png'] .grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }

  section[style*='BigG.png'] img {
    max-width: 75% !important;
    margin: 0 auto !important;
  }

  /* CONTACT / MAP */
  section iframe {
    width: 100% !important;
    height: 320px !important;
  }


@media (min-width: 1024px) {
  .map-frame {
    pointer-events: auto;
  }
}


  /* FOOTER */
  footer {
    text-align: center !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  footer img {
    margin: 0 auto !important;
  }

  footer div {
    text-align: center !important;
  }
}



/* --- FIX for tablet overlap box (gray contact banner) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  #practice {
    position: relative !important;
    overflow: visible !important; /* Allow overlap */
  }

  #practice > .absolute {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translate(-50%, 50%) !important; /* Keep half overlap */
    width: 80% !important;
    z-index: 20 !important;
   
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #practice > .absolute {
    transform: translate(-50%, 60%) !important; /* was 50%, now 60% */
  }
}





