html { overflow-x: hidden; }
body { overflow-x: hidden; }
img { max-width: 100%; }

@media (max-width: 900px) {
  #home {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .hero-photo {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    order: 1 !important;
    width: 100% !important;
    height: 220px !important;
    pointer-events: auto !important;
  }

  .hero-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .hero-photo > div {
    background: linear-gradient(to bottom, rgba(26,37,22,0.1) 0%, rgba(26,37,22,0.65) 100%) !important;
  }

  .site-nav {
    order: 0 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 18px 20px !important;
  }

  .site-nav-links {
    flex-wrap: wrap !important;
    gap: 12px 18px !important;
  }

  .site-nav-links a {
    font-size: 12px !important;
  }

  .hero-content,
  #home > .hero-content {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 20px 40px !important;
  }

  #home h1,
  .hero-content h1 {
    font-size: clamp(30px, 8.2vw, 42px) !important;
    line-height: 1.12 !important;
    margin-bottom: 14px !important;
  }

  #home .hero-content p,
  .hero-content p {
    max-width: none !important;
    font-size: 13px !important;
  }

  #home .hero-content p:first-of-type {
    margin-bottom: 16px !important;
  }

  #home .hero-content p:nth-of-type(2),
  #home .hero-content p:nth-of-type(3) {
    margin-bottom: 14px !important;
  }

  #home .hero-content p:nth-of-type(3) {
    margin-bottom: 28px !important;
  }

  .hero-cta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .icon-strip {
    flex-wrap: wrap !important;
  }

  .icon-strip > div {
    flex: 1 1 50% !important;
    min-width: 50% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .icon-strip > div:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.08) !important;
  }

  .icon-strip > div:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  #services,
  #approach,
  #contact {
    padding: 56px 24px !important;
  }

  #services h2,
  #approach h2 {
    font-size: clamp(32px, 8vw, 44px) !important;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .approach-steps {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    text-align: left !important;
  }

  .approach-steps > div {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
    text-align: left !important;
  }

  .approach-steps > div > div:first-child {
    margin-top: 2px !important;
  }

  .approach-connector {
    display: none !important;
  }

  #about {
    flex-direction: column !important;
    min-height: auto !important;
  }

  .about-content {
    padding: 56px 24px !important;
  }

  .about-icons {
    flex-wrap: wrap !important;
  }

  .about-icons > div {
    flex: 1 1 50% !important;
    min-width: 50% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(42,56,40,0.18) !important;
    padding-bottom: 20px !important;
  }

  .about-icons > div:nth-child(odd) {
    border-right: 1px solid rgba(42,56,40,0.18) !important;
  }

  .about-icons > div:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  .about-photo {
    flex: none !important;
    width: 100% !important;
    height: 280px !important;
  }

  #contact p:first-of-type {
    font-size: clamp(26px, 7vw, 38px) !important;
  }

  #contact p:nth-of-type(2) {
    font-size: clamp(22px, 6vw, 34px) !important;
  }

  .footer-main {
    flex-direction: column !important;
    gap: 24px !important;
    padding: 28px 24px 20px !important;
  }

  .footer-links {
    flex-wrap: wrap !important;
    gap: 16px 24px !important;
    padding-top: 0 !important;
  }

  .footer-copy {
    padding: 14px 24px 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    height: 200px !important;
  }

  #home h1,
  .hero-content h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.15 !important;
  }

  .site-nav {
    padding: 16px 16px !important;
  }

  .hero-content {
    padding: 20px 16px 36px !important;
  }

  .icon-strip > div,
  .about-icons > div {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    border-right: none !important;
  }

  .icon-strip > div:not(:last-child),
  .about-icons > div:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .about-icons > div:not(:last-child) {
    border-bottom-color: rgba(42,56,40,0.18) !important;
  }
}
