/**
 * Homepage mobile layer — isolated from desktop.
 * EVERY rule must stay inside @media (max-width: 1200px).
 * Designed at 320px; larger widths within the shell only get additive tweaks.
 * Loaded only from index.php, after responsive.css / custom-responsive.css.
 */

@media screen and (max-width: 1200px) {
  /* ------------------------------------------------------------------ */
  /* 1. Shell / overflow / gutters (320px-first)                        */
  /* ------------------------------------------------------------------ */
  body.home-page {
    overflow-x: hidden;
    min-width: 320px;
  }

  body.home-page .wrapper {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  body.home-page .content-width {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  body.home-page img,
  body.home-page video,
  body.home-page iframe,
  body.home-page svg {
    max-width: 100%;
  }

  body.home-page .section1 {
    height: auto !important;
    width: 100%;
  }

  /* ------------------------------------------------------------------ */
  /* 2. Mobile header + overlay menu                                    */
  /* ------------------------------------------------------------------ */
  body.home-page .mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 16px;
    box-sizing: border-box;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.96);
    transform: translateY(0);
    transition: transform 0.28s ease;
    will-change: transform;
  }

  body.home-page .mobile-header.is-hidden {
    transform: translateY(-100%);
    pointer-events: none;
  }

  body.home-page .section1 {
    padding-top: 52px;
  }

  body.home-page .section1 .mobile-header .header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  body.home-page .section1 .mobile-header .header-row .column-header {
    max-width: none;
    flex: 1 1 auto;
    min-width: 0;
  }

  body.home-page .section1 .mobile-header .header-row .column-header .logo {
    width: auto;
    max-width: 120px;
    margin: 0 auto;
    transform: translateY(-2px);
  }

  body.home-page .section1 .mobile-header .header-row .column-header .logo img {
    max-width: 100%;
    width: auto;
    height: 30px;
    display: block;
    margin: 0 auto;
  }

  body.home-page .section1 .mobile-header .header-row .column-header:last-child {
    display: flex;
    justify-content: flex-end;
  }

  body.home-page .mobile-header #Layer_1,
  body.home-page .mobile-header .fishleft svg {
    width: 22px;
    height: 22px;
  }

  body.home-page .mobile-header .left_icon .menu-toggle i {
    font-size: 22px;
    line-height: 1;
  }

  body.home-page .overlay nav {
    top: 42%;
    font-size: 22px;
  }

  body.home-page .overlay ul {
    max-width: 90%;
  }

  body.home-page .overlay ul li {
    max-width: 100%;
    flex: 100%;
    padding: 8px 0;
  }

  body.home-page .overlay ul li a {
    font-size: 20px;
    word-break: break-word;
  }

  body.home-page #overlay .toggle-close {
    top: 28px;
    right: 14px;
    font-size: 22px;
  }

  body.home-page .menu-social-box {
    right: 16px;
    max-width: calc(100% - 32px);
  }

  body.home-page .menu-social-box .greatplace img {
    width: 3.2em;
  }

  /* ------------------------------------------------------------------ */
  /* 3. Mobile intro / hero                                             */
  /* ------------------------------------------------------------------ */
  body.home-page .mobile-intro {
    display: block;
    position: relative;
    float: none;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body.home-page .mobile-intro video {
    width: 100%;
    height: auto;
    min-height: 0;
    /* Taller than the source's 16:9 so the band reads on a phone; cover crops
       the sides rather than letterboxing. */
    aspect-ratio: 4 / 3;
    max-height: 70vh;
    float: none;
    display: block;
    object-fit: cover;
  }

  body.home-page .mobile-particle-slider {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }

  body.home-page #home-mobile-slider {
    width: 100%;
  }

  body.home-page #home-mobile-slider .item picture {
    position: relative;
    height: auto;
    min-height: 160px;
    max-height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.home-page #home-mobile-slider.owl-carousel .owl-item img {
    width: auto;
    max-width: min(220px, 70vw);
    height: auto;
    margin: 0 auto;
  }

  body.home-page .mobile-slider-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 16px 20px;
    width: 100%;
    box-sizing: border-box;
  }

  /* ------------------------------------------------------------------ */
  /* 3b. CTA buttons — one shared layout for every .default-button      */
  /*     style.css ships .anchor-tag-btn display + .text padding-top as */
  /*     !important, so those two overrides have to match that weight.  */
  /* ------------------------------------------------------------------ */
  body.home-page .default-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 40px;
    max-width: 100%;
    padding: 0 6px 0 18px;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
    background-color: transparent;
    letter-spacing: 1.5px;
    transform: none;
    -webkit-transform: none;
  }

  body.home-page .default-button .text {
    position: relative;
    z-index: 3;
    padding: 0 !important;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 1.5px;
    white-space: nowrap;
    opacity: 1;
    transform: none;
    -webkit-transform: none;
  }

  /* Circle moves off the left edge and sits behind the plus icon */
  body.home-page .default-button .button-background .left,
  body.home-page .default-button .button-background .right {
    left: auto;
    right: 6px;
    top: 50%;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
  }

  body.home-page .default-button .button-background .left:before,
  body.home-page .default-button .button-background .right:before {
    width: 28px;
    height: 28px;
    transform: scale(1);
    -webkit-transform: scale(1);
  }

  body.home-page .default-button .plus-icon {
    flex: none;
    width: 28px;
    height: 28px;
    margin: 0 0 0 10px;
    opacity: 1;
    z-index: 2;
  }

  body.home-page .default-button .plus-icon:before,
  body.home-page .default-button .plus-icon:after {
    top: 50%;
    left: 50%;
    width: 9px;
    margin: -0.5px 0 0 -4.5px;
  }

  /* ------------------------------------------------------------------ */
  /* 4. Purpose                                                         */
  /* ------------------------------------------------------------------ */
  body.home-page .our-purpose-section {
    margin-top: 0;
    padding: 36px 0 40px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  body.home-page .our-purpose-section.home-wrapper {
    margin-top: 0;
  }

  body.home-page .our-purpose-section .content-width {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .our-purpose-section .text-left {
    text-align: center;
    float: none;
    width: 100%;
  }

  body.home-page .our-purpose-section .content-width h1 {
    font-size: 26px;
    line-height: 34px;
    margin-bottom: 16px;
    word-wrap: break-word;
    text-align: center;
  }

  body.home-page .our-purpose-section p {
    font-size: 15px;
    line-height: 24px;
    color: #141414;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 34em;
  }

  body.home-page .our-purpose-section .default-button {
    margin-top: 20px;
  }

  /* Desktop sticky services — hide in mobile shell; carousel replaces it */
  body.home-page .home_service_section {
    display: none !important;
  }

  /* Sticky title line-height (index.php sticky_title h2) — mobile only */
  body.home-page .home_service_section .sticky_title h2 {
    line-height: 1.15;
  }

  /* ------------------------------------------------------------------ */
  /* 5. Strategy carousel (mobile block)                                */
  /* Flow: heading → image → content → CTA → dots                       */
  /* ------------------------------------------------------------------ */
  body.home-page .bussiness-strategy-section-mobile {
    display: block !important;
    height: auto !important;
    min-height: 0;
    padding: 48px 0 56px;
    overflow: hidden;
  }

  body.home-page .bussiness-strategy-section-mobile .content-width {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .bussiness-strategy-section-mobile h6 {
    margin: 0 0 24px;
    padding: 0;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 1.5px;
    text-align: center;
  }

  body.home-page .bussiness-strategy-section-mobile .bussiness-scroller {
    padding-bottom: 0;
  }

  body.home-page #home-service-mobile .owl-item .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.home-page .bussiness-strategy-section-mobile .carousel-heading {
    order: 1;
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 16px;
    padding: 0;
    color: #fff;
    font-weight: 600;
    text-align: center;
    width: 100%;
  }

  body.home-page #home-service-mobile .owl-item .item picture {
    order: 2;
    display: block;
    width: 100%;
    margin: 0 0 20px;
  }

  body.home-page .bussiness-strategy-section-mobile .bussiness-scroller .owl-carousel .owl-item img {
    height: 28vh;
    min-height: 160px;
    max-height: 240px;
    object-fit: cover;
    opacity: 1;
    width: 100%;
  }

  body.home-page .bussiness-strategy-section-mobile .bussiness-scroller .carousel-caption {
    order: 3;
    margin: 0;
    padding: 0 4px;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  body.home-page .bussiness-strategy-section-mobile .bussiness-scroller .carousel-caption p {
    font-size: 14px;
    line-height: 22px;
    padding-bottom: 24px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.home-page .bussiness-strategy-section-mobile .owl-dots {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 28px;
    padding: 0;
  }

  body.home-page .bussiness-strategy-section-mobile .owl-carousel button.owl-dot {
    margin: 0 6px;
  }

  /* ------------------------------------------------------------------ */
  /* 6. Video band                                                      */
  /* ------------------------------------------------------------------ */
  body.home-page .video-custom-play {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    line-height: 0;
  }

  body.home-page .video-custom-play video,
  body.home-page .video-custom-play .client-video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3;
    max-height: 70vh;
    max-width: 100%;
    display: block;
    object-fit: cover;
  }

  body.home-page .video-custom-play .video-play-icon {
    transform: scale(0.75);
  }

  /* ------------------------------------------------------------------ */
  /* 7. Mutual firm / process                                           */
  /* ------------------------------------------------------------------ */
  body.home-page .mutual-firm-work {
    padding: 48px 0;
    text-align: center;
  }

  body.home-page .mutual-firm-work .content-width {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .mutual-firm-work .custom-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  body.home-page .mutual-firm-work .custom-row .column-50 {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    padding: 0;
  }

  body.home-page .mutual-firm-work .custom-row .column-50:first-child {
    text-align: center;
    padding-bottom: 0;
  }

  body.home-page .mutual-firm-work img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  body.home-page .mutual-firm-work .mobile-show-title {
    display: block;
    text-align: center;
    font-weight: 600;
    line-height: 24px;
    padding-bottom: 20px;
    font-size: 14px;
  }

  body.home-page .mutual-firm-work h6:not(.mobile-show-title) {
    display: none;
  }

  body.home-page .mutual-firm-work p {
    font-size: 15px;
    line-height: 24px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.home-page .mutual-firm-work .default-button {
    margin-top: 20px;
  }

  /* ------------------------------------------------------------------ */
  /* 8. Partner logos                                                   */
  /* ------------------------------------------------------------------ */
  body.home-page .partner_logo_section {
    width: 100%;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
  }

  body.home-page .partner_logo_section .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  body.home-page .partner_logo_section .header-text h6 {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-align: center;
  }

  body.home-page .project_marquee1.mr-one {
    padding-bottom: 28px;
  }

  body.home-page .partner_logo_section .marquee_img img {
    max-width: 100px;
    height: auto;
  }

  /* ------------------------------------------------------------------ */
  /* 9. Stats + testimonials                                            */
  /* ------------------------------------------------------------------ */
  body.home-page .client-testi-sec.black-theme-section {
    padding: 56px 0;
  }

  body.home-page .client-testi-sec .content-width {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .why-with-uswork {
    padding: 0 0 24px;
    margin: 0 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  body.home-page .why-with-uswork h6 {
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-align: center;
  }

  body.home-page .why-with-uswork .counter-wrapper {
    display: flex;
    flex-direction: column;
    margin: 0;
    gap: 0;
  }

  body.home-page .why-with-uswork .counter-wrapper .slide-item {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    padding: 16px 0;
    border-right: 0;
    box-sizing: border-box;
    text-align: center;
  }

  body.home-page .why-with-uswork .counter-wrapper .slide-item span {
    font-size: 36px;
  }

  body.home-page .why-with-uswork .counter-wrapper .slide-item h5 {
    max-width: 100%;
    font-size: 14px;
    line-height: 20px;
    word-break: break-word;
    color: #8d8d8d;
  }

  body.home-page .client-review-section {
    margin: 0;
    padding: 32px 0 0;
    text-align: center;
  }

  body.home-page .client-review-section p {
    font-size: 14px;
    line-height: 22px;
    text-align: center;
  }

  body.home-page .client-review-section h3 {
    font-size: 20px;
    text-align: center;
  }

  body.home-page .client-review-section img {
    max-width: 100%;
    height: auto;
  }

  body.home-page .testimonial-desc {
    min-height: 0;
  }

  /* Mobile testimonials: dissolve on swipe; hide desktop-style nav arrows */
  body.home-page #tetimonial .owl-nav {
    display: none !important;
  }

  body.home-page #tetimonial {
    touch-action: pan-y;
    cursor: grab;
  }

  body.home-page #tetimonial .owl-item.is-fading {
    transition: opacity 0.45s ease;
  }

  body.home-page #popups,
  body.home-page .test_video {
    max-width: 100%;
  }

  /* ------------------------------------------------------------------ */
  /* 10. Thoughts / perspective                                         */
  /* ------------------------------------------------------------------ */
  body.home-page .our-thoughts-perspective {
    padding: 40px 0 !important;
  }

  body.home-page .our-thoughts-perspective .content-width {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.home-page .our-thoughts-perspective h6 {
    font-size: 13px;
    letter-spacing: 1.5px;
    line-height: 20px;
    text-align: center;
  }

  body.home-page .our-thoughts-perspective .custom-row.pSection {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 16px;
  }

  body.home-page .our-thoughts-perspective .custom-row .column-50 {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
  }

  body.home-page .our-thoughts-perspective .cards {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
  }

  /* Image + title share row 1 so the title sits inside the image bounds */
  body.home-page .our-thoughts-perspective .cards .blog-img {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    position: relative;
  }

  body.home-page .our-thoughts-perspective .cards .blog-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  body.home-page .our-thoughts-perspective .cards .blog-img::after {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    pointer-events: none;
    z-index: 1;
  }

  /*
   * The title is markup-wise a child of .blog-img, so it can't be a grid item
   * of .cards. Overlay it on the image instead, or it drops below the photo
   * with the dark ::after overlay behind it.
   */
  body.home-page .our-thoughts-perspective .cards .blog-img h3,
  body.home-page .our-thoughts-perspective .cards h3 {
    z-index: 2;
    position: absolute !important;
    top: 0 !important;
    /* Kill desktop left/right:40px — it overflows the image on mobile */
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: none !important;
    font-size: 19px;
    line-height: 28px;
    text-align: center;
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    white-space: normal;
  }

  body.home-page .our-thoughts-perspective .cards h3 br {
    display: none;
  }

  body.home-page .our-thoughts-perspective .cards .card-body {
    grid-column: 1;
    grid-row: 2;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  body.home-page .our-thoughts-perspective .cards .card-body p,
  body.home-page .our-thoughts-perspective .cards .card-body h5 {
    text-align: left !important;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  body.home-page .our-thoughts-perspective .custom-row.subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 28px;
  }

  /* Longest label on the page — it needs the extra room to fit at 320px */
  body.home-page .subscribe-form .default-button {
    padding-left: 12px;
  }

  body.home-page .subscribe-form .default-button .text {
    letter-spacing: 1px;
  }

  body.home-page #popup2_wrapper {
    width: min(90vw, 320px) !important;
    left: 50% !important;
    transform: translateX(-50%);
    max-width: calc(100vw - 32px);
  }

  body.home-page div#popup2 {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 16px;
  }

  body.home-page #popup2 .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
    max-width: 100%;
  }

  /* ------------------------------------------------------------------ */
  /* 11. Footer (home)                                                  */
  /* ------------------------------------------------------------------ */
  /* ------------------------------------------------------------------ */
  /* 12. Footer                                                         */
  /* ------------------------------------------------------------------ */
  body.home-page .site-footer {
    padding: 50px 0 28px !important;
    overflow: visible !important;
    position: relative !important;
  }

  body.home-page .site-footer .content-width {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
  }

  /* Logo left + GPTW right — GPTW flush with the footer's top edge */
  body.home-page .greatplace-footer {
    position: absolute !important;
    top: 0 !important;
    right: 24px !important;
    left: auto !important;
    bottom: auto !important;
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    text-align: right !important;
    z-index: 2 !important;
  }

  body.home-page .greatplace-footer img {
    width: auto !important;
    max-width: 72px !important;
    height: auto !important;
    display: block !important;
  }

  body.home-page .site-footer .footer-menu {
    width: 100%;
  }

  body.home-page .site-footer .footer-menu a img {
    max-width: 140px;
    height: auto;
    display: block;
    /* Breathable space under SandCup logo before tagline */
    margin-bottom: 8px;
  }

  body.home-page .site-footer .custom-row.f-row,
  body.home-page .site-footer .custom-row.gap_row {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  body.home-page .site-footer .custom-row .column-50,
  body.home-page .site-footer .col_gap {
    max-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.home-page .site-footer .column-50.order_1 {
    order: 1;
  }

  body.home-page .site-footer .column-50.order_2 {
    order: 2;
  }

  /* Brand column: everything left-aligned (reference layout) */
  body.home-page .site-footer .footer-menu .column-50:first-child {
    text-align: left;
  }

  body.home-page .site-footer .footer-menu .column-50:first-child > a:first-of-type {
    display: block;
    text-align: left;
    width: fit-content;
    max-width: 100%;
  }

  body.home-page .site-footer .footer-menu .column-50 > h3 {
    /* Space after logo + GPTW row before tagline */
    margin: 56px 0 0 !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    font-weight: 300 !important;
    opacity: 0.7;
  }

  body.home-page .site-footer .texttypo {
    margin: 8px 0 0 !important;
    text-align: left !important;
  }

  body.home-page .site-footer .texttypo p {
    font-size: 22px !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  body.home-page .site-footer .social-menu {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: start !important;
    justify-items: start !important;
    gap: 24px 24px !important;
    margin: 36px 0 0 !important;
    padding: 0 !important;
    max-width: 260px !important;
    flex-wrap: unset !important;
  }

  body.home-page .site-footer .social-menu li {
    margin: 0 !important;
  }

  body.home-page .site-footer .social-menu li a {
    height: 24px !important;
    width: 24px !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  body.home-page ul.social-menu.social_footer li a .twitter-x,
  body.home-page ul.social-menu.social_footer li a .thread-ic {
    height: 18px !important;
    width: 16px !important;
  }

  body.home-page .site-footer .get-in-touch {
    margin: 0 0 8px !important;
    padding: 0 !important;
    text-align: left !important;
  }

  body.home-page .site-footer .get-in-touch:last-of-type {
    margin-bottom: 8px !important;
  }

  /*
   * custom-responsive.css sets .footer-menu .column-50 h3 { margin-top: 70px !important }
   * for the GPTW clearance — that selector also hits Get In Touch / Careers / Location.
   * Override those section headings only; leave the brand h3 alone.
   */
  body.home-page .site-footer .footer-menu .column-50 .get-in-touch h3,
  body.home-page .site-footer .footer-menu .column-50 .location h3 {
    margin-top: 32px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    font-weight: 600 !important;
    opacity: 1 !important;
  }

  /* First contact block after Download */
  body.home-page .site-footer .footer-menu .column-50.col_gap > .get-in-touch:first-child h3 {
    margin-top: 36px !important;
  }

  body.home-page .site-footer .get-in-touch a {
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    word-break: break-word;
    text-align: left !important;
    opacity: 0.55 !important;
  }

  body.home-page .site-footer .location .nav-tab {
    padding: 2px 0 24px !important;
    margin: 0 !important;
    position: relative !important;
    overflow: visible !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body.home-page .site-footer .location #tabs {
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.home-page .site-footer .location .tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 0 16px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.home-page .site-footer .location .tabs > li {
    display: contents;
  }

  body.home-page .site-footer .location .tabs .tab {
    order: 1;
    cursor: pointer;
  }

  body.home-page .site-footer .location .tabs li {
    margin: 0 12px 4px 0 !important;
    padding: 0 !important;
  }

  /* Hide inactive addresses — desktop absolute+opacity stacks them on mobile */
  body.home-page .site-footer .location #tabs .tabcontent,
  body.home-page .site-footer .location #tabs li .tabcontent,
  body.home-page .site-footer .location #tabs li:hover .tabcontent,
  body.home-page .site-footer .location #tabs li:focus .tabcontent,
  body.home-page .site-footer .location #tabs li:active .tabcontent {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: static !important;
    height: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    top: auto !important;
    z-index: auto !important;
  }

  body.home-page .site-footer .location #tabs li.active .tabcontent,
  body.home-page .site-footer .location #tabs li.active:hover .tabcontent,
  body.home-page .site-footer .location #tabs li.active:focus .tabcontent,
  body.home-page .site-footer .location #tabs li.active:active .tabcontent {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: static !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    flex: 0 0 100% !important;
    order: 2;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    left: auto !important;
    top: auto !important;
    z-index: 1 !important;
  }

  body.home-page .site-footer .location #tabs .tabcontent p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  body.home-page .site-footer .copyright {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 40px !important;
    padding-top: 28px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative !important;
    clear: both !important;
  }

  body.home-page .copyright-text1,
  body.home-page .copyright-text {
    float: none;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 1px;
  }

  body.home-page .copyright-text1 {
    order: 1 !important;
    padding-top: 20px !important;
    padding-bottom: 16px !important;
  }

  /* Terms & Privacy stack as block links on mobile */
  body.home-page .site-footer .copyright-text1 a {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
  }

  body.home-page .site-footer .copyright-text1 a:last-child {
    margin-bottom: 0 !important;
  }

  body.home-page .site-footer .copyright-text1 a + a {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.home-page .copyright-text {
    order: 2 !important;
    padding-bottom: 12px !important;
  }

  /* Last item in the footer stack — after Terms and the company line */
  body.home-page .sandcup-side-logo {
    order: 3 !important;
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: 0px !important;
    top: auto !important;
    transform: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    font-size: 12px;
    letter-spacing: 2px;
    line-height: 1.4;
    width: 100%;
  }

  body.home-page .site-footer .footer-menu > a {
    margin-top: 36px !important;
    margin-bottom: 0 !important;
    font-size: 15px !important;
    line-height: 1.4;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase !important;
    color: #fd6571 !important;
    text-align: left !important;
    display: block !important;
    width: auto;
    max-width: 100%;
    text-decoration: none !important;
  }

  /* Phone only: Download Sandcup Deck sits just under the social icons */
  @media screen and (max-width: 767px) {
    body.home-page .site-footer .footer-menu {
      display: flex;
      flex-direction: column;
    }

    body.home-page .site-footer .footer-menu > .custom-row.f-row,
    body.home-page .site-footer .footer-menu > .custom-row.gap_row {
      display: contents;
    }

    body.home-page .site-footer .footer-menu > .custom-row > .column-50:first-child {
      order: 1;
    }

    body.home-page .site-footer .footer-menu > a {
      order: 2;
      margin-top: 36px !important;
      margin-bottom: 0 !important;
      text-align: left !important;
    }

    body.home-page .site-footer .footer-menu > .custom-row > .column-50.col_gap {
      order: 3;
    }

    body.home-page .site-footer .footer-menu > .media-custom {
      order: 4;
    }

    body.home-page .site-footer .footer-menu > .copyright {
      order: 5;
    }
  }

  /* ------------------------------------------------------------------ */
  /* Nested: larger phones within mobile shell                          */
  /* ------------------------------------------------------------------ */
  @media screen and (min-width: 481px) {
    body.home-page .content-width,
    body.home-page .our-purpose-section .content-width,
    body.home-page .mutual-firm-work .content-width,
    body.home-page .bussiness-strategy-section-mobile .content-width,
    body.home-page .client-testi-sec .content-width,
    body.home-page .our-thoughts-perspective .content-width,
    body.home-page .site-footer .content-width {
      padding-left: 24px;
      padding-right: 24px;
    }

    body.home-page .greatplace-footer {
      right: 24px !important;
      top: 12px !important;
      padding: 0 !important;
    }

    body.home-page .our-purpose-section .content-width h1 {
      font-size: 30px;
      line-height: 38px;
    }

    body.home-page .our-purpose-section p {
      font-size: 16px;
      line-height: 26px;
    }

    body.home-page .bussiness-strategy-section-mobile .carousel-heading {
      font-size: 28px;
    }

    body.home-page .section1 .mobile-header .header-row .column-header .logo {
      max-width: 130px;
    }

    body.home-page .section1 .mobile-header .header-row .column-header .logo img {
      height: 32px;
    }

    body.home-page #home-mobile-slider.owl-carousel .owl-item img {
      max-width: min(260px, 75vw);
    }

    body.home-page .why-with-uswork .counter-wrapper {
      flex-direction: row;
      flex-wrap: wrap;
    }

    body.home-page .why-with-uswork .counter-wrapper .slide-item {
      flex: 0 0 50%;
      max-width: 50%;
      padding: 16px 12px 16px 0;
    }
  }

  /* ------------------------------------------------------------------ */
  /* Nested: tablet band inside mobile shell                            */
  /* ------------------------------------------------------------------ */
  @media screen and (min-width: 768px) {
    body.home-page .content-width,
    body.home-page .our-purpose-section .content-width,
    body.home-page .mutual-firm-work .content-width,
    body.home-page .bussiness-strategy-section-mobile .content-width,
    body.home-page .client-testi-sec .content-width,
    body.home-page .our-thoughts-perspective .content-width,
    body.home-page .site-footer .content-width {
      padding-left: 32px;
      padding-right: 32px;
    }

    body.home-page .greatplace-footer {
      right: 32px !important;
      top: 40px !important;
      padding: 0 !important;
    }

    body.home-page .mobile-header {
      padding: 12px 24px;
    }

    body.home-page .section1 {
      padding-top: 56px;
    }

    body.home-page .our-purpose-section {
      padding: 60px 0 70px;
    }

    body.home-page .our-purpose-section .content-width h1 {
      font-size: 36px;
      line-height: 46px;
    }

    body.home-page .our-purpose-section p {
      font-size: 18px;
      line-height: 30px;
    }

    body.home-page .bussiness-strategy-section-mobile {
      padding: 70px 0;
    }

    body.home-page .bussiness-strategy-section-mobile .carousel-heading {
      font-size: 32px;
    }

    body.home-page .bussiness-strategy-section-mobile .bussiness-scroller .owl-carousel .owl-item img {
      height: 36vh;
      max-height: 320px;
    }

    body.home-page .mutual-firm-work {
      padding: 70px 0;
    }

    body.home-page .mutual-firm-work img {
      max-width: 80%;
    }

    body.home-page .why-with-uswork .counter-wrapper .slide-item {
      flex: 0 0 25%;
      max-width: 25%;
    }

    body.home-page .our-thoughts-perspective .custom-row.pSection {
      flex-direction: row;
      gap: 24px;
    }

    body.home-page .our-thoughts-perspective .custom-row .column-50 {
      flex: 0 0 calc(50% - 12px);
      max-width: calc(50% - 12px);
    }

    body.home-page .site-footer .custom-row.f-row,
    body.home-page .site-footer .custom-row.gap_row {
      flex-direction: row;
      flex-wrap: wrap;
    }

    body.home-page .site-footer .custom-row .column-50 {
      flex: 0 0 48%;
      max-width: 48%;
    }

    body.home-page .overlay nav {
      font-size: 28px;
    }
  }
}
