/**
 * Index page — mobile layout only.
 * Desktop styles live in style.css and must not change.
 */
@media (max-width: 768px) {
  .page-home {
    --mobile-gutter: 1.25rem;
  }

  .page-home .container {
    width: calc(100% - (var(--mobile-gutter) * 2));
    max-width: 480px;
    margin-inline: auto;
  }

  /* —— Header: logo left, bare hamburger right —— */
  .page-home .header {
    padding: 0.65rem 0;
    background: #fff;
  }

  .page-home .header .container.nav {
    width: calc(100% - (var(--mobile-gutter) * 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .page-home .logo {
    height: 42px;
    flex-shrink: 0;
  }

  .page-home .logo-img {
    width: 46px;
    height: 42px;
    transform: scale(1.75) translateY(2px);
  }

  .page-home .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
    width: 28px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-home .nav-toggle span {
    width: 22px;
    height: 2px;
    background: #111;
  }

  .page-home .nav-toggle span::before,
  .page-home .nav-toggle span::after {
    width: 22px;
    height: 2px;
    background: #111;
  }

  .page-home .nav-toggle span::before {
    top: -7px;
  }

  .page-home .nav-toggle span::after {
    top: 7px;
  }

  .page-home .nav-end {
    order: 3;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    margin: 0;
    gap: 0;
  }

  .page-home .nav-links {
    left: auto;
    right: 0;
    width: min(248px, calc(100vw - 2.5rem));
  }

  /* —— Hero —— */
  .page-home .label-desktop {
    display: none;
  }

  .page-home .label-mobile {
    display: inline;
  }

  .page-home .hero-zone {
    margin-bottom: 0;
  }

  .page-home .hero {
    min-height: 0;
    padding-bottom: 4.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .page-home .hero-video {
    object-position: 55% center;
  }

  .page-home .hero::before {
    content: none;
  }

  .page-home .hero::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0.62) 38%,
      rgba(255, 255, 255, 0.94) 72%,
      #ffffff 100%
    );
  }

  .page-home .hero-blur {
    width: 100%;
    opacity: 0.35;
  }

  .page-home .hero-inner {
    align-items: flex-start;
    padding: 1.15rem 0 0;
    flex: 0 0 auto;
  }

  .page-home .hero-content {
    max-width: 100%;
    text-align: left;
  }

  .page-home .hero-badge {
    display: none;
  }

  .page-home .hero-title {
    font-size: 1.9rem;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 0.95rem;
    text-align: left;
    color: #111;
    letter-spacing: 0.01em;
  }

  .page-home .hero-title .line {
    display: block;
    margin-bottom: 0.12em;
  }

  .page-home .hero-title .line:last-child {
    margin-bottom: 0;
  }

  .page-home .hero-title .accent {
    color: var(--blue);
  }

  .page-home .hero-text {
    font-size: 14px;
    line-height: 1.55;
    max-width: 100%;
    width: 100%;
    margin-bottom: 1.15rem;
    color: #3f3f3f;
    text-align: left;
  }

  .page-home .hero-cta-desktop {
    display: none;
  }

  .page-home .hero-cta-mobile {
    display: inline-flex;
    min-height: 44px;
    min-width: 148px;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
  }

  /* —— Floating feature / stats card (2×2) —— */
  .page-home .stats-float {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    width: calc(100% - (var(--mobile-gutter) * 2));
    max-width: 480px;
    margin: -3.25rem auto 0;
    z-index: 20;
  }

  .page-home .stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1rem;
    padding: 1.2rem 1.05rem;
    min-height: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
  }

  .page-home .stat-item,
  .page-home .stat-item + .stat-item {
    border: none !important;
    padding: 0;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-start;
  }

  .page-home .stat-icon {
    width: 26px;
    height: 26px;
    color: var(--blue);
  }

  .page-home .stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--blue);
  }

  .page-home .stat-value {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
  }

  .page-home .stat-label {
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    color: #374151;
  }

  /* —— About: left copy + truck bottom-right (mockup) —— */
  .page-home .about-band {
    margin-top: 0;
    background: #eef6ff;
  }

  .page-home .about {
    padding: 2.75rem 0 0;
  }

  .page-home .about-grid {
    display: block;
    position: relative;
    padding-bottom: 9.5rem;
  }

  .page-home .about-copy {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 100%;
  }

  .page-home .about-visual {
    position: absolute;
    right: -0.35rem;
    bottom: 0.25rem;
    order: 0 !important;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: min(58%, 220px);
    margin: 0;
    pointer-events: none;
  }

  .page-home .about-truck {
    width: 100%;
    max-width: none;
    margin: 0;
    object-fit: contain;
    display: block;
  }

  .page-home .about-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    margin-bottom: 0.55rem;
    color: var(--blue-label);
  }

  .page-home .about-heading {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.28;
    max-width: 100%;
    margin-bottom: 0.95rem;
    color: #111;
  }

  .page-home .about-heading .accent {
    display: block;
    color: var(--blue);
    margin-top: 0.12em;
  }

  .page-home .about-body {
    font-size: 13px;
    line-height: 1.65;
    max-width: 88%;
    margin-top: 0.75rem;
    color: #4b5563;
  }

  .page-home .about-copy .btn {
    margin-top: 1.25rem;
    position: relative;
    z-index: 3;
  }

  .page-home .about-copy .about-cta-desktop {
    display: none;
  }

  .page-home .about-copy .about-cta-mobile {
    display: inline-flex;
    min-height: 42px;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
  }

  /* —— Services: card design matching mockup —— */
  .page-home .services {
    padding: 2.25rem 0 0;
    background: #f7f9fc;
  }

  .page-home .services-header {
    text-align: left;
    margin-bottom: 1.35rem;
  }

  .page-home .services-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    color: var(--blue-label);
  }

  .page-home .services-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
  }

  .page-home .services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: calc(100% + (var(--mobile-gutter) * 2));
    margin-left: calc(var(--mobile-gutter) * -1);
    margin-right: calc(var(--mobile-gutter) * -1);
    padding: 0.15rem var(--mobile-gutter) 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-home .services-grid::-webkit-scrollbar {
    display: none;
  }

  .page-home .service-card {
    flex: 0 0 auto;
    width: min(72vw, 240px);
    margin: 0;
    background: #fff;
    border: none;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
  }

  .page-home .service-media {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    height: 130px;
  }

  .page-home .service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
  }

  .page-home .service-body {
    position: relative;
    min-height: 0;
    flex: 1;
    padding: 0.85rem 0.9rem 2.85rem;
    text-align: left;
    background: #fff;
  }

  .page-home .service-body h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-align: left;
    color: #111;
  }

  .page-home .service-body p {
    font-size: 12px;
    line-height: 1.4;
    font-weight: 400;
    color: #6b7280;
    min-height: 0;
    max-height: none;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    padding-right: 0.25rem;
    text-align: left;
  }

  .page-home .service-arrow {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--blue);
  }

  /* —— Trusted by (logo carousel) —— */
  .page-home .services-partners.partners-carousel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
    padding: 0;
    width: 100%;
    overflow: hidden;
  }

  .page-home .partners-heading,
  .page-home .partners-heading--visible {
    display: none;
  }

  .page-home .partners-carousel-viewport {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .page-home .partners-carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .page-home .partners-carousel-group {
    gap: 1.75rem;
    padding-right: 1.75rem;
  }

  .page-home .partners-carousel .partner-logo {
    height: 40px;
    max-width: 120px;
    width: auto;
  }

  .page-home .partners-carousel-track {
    animation: partners-marquee 16s linear infinite;
  }

  /* —— Portfolio / projects: same card design —— */
  .page-home .portfolio {
    padding: 0.5rem 0 2.75rem;
    background: #f7f9fc;
  }

  .page-home .portfolio-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .page-home .portfolio-head {
    text-align: left;
    flex: none;
    width: 100%;
  }

  .page-home .portfolio-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 0.3rem;
    color: var(--blue-label);
  }

  .page-home .portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111;
  }

  .page-home .filters {
    justify-content: flex-start;
    flex: none;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-home .filters::-webkit-scrollbar {
    display: none;
  }

  .page-home .filter-btn {
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    font-size: 12px;
    border-radius: 999px;
  }

  .page-home .projects-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.85rem;
    width: calc(100% + (var(--mobile-gutter) * 2));
    margin-left: calc(var(--mobile-gutter) * -1);
    margin-right: calc(var(--mobile-gutter) * -1);
    padding: 0.15rem var(--mobile-gutter) 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .page-home .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .page-home .project-card {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    width: min(72vw, 240px);
    aspect-ratio: auto;
    height: auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  }

  /* Higher specificity than .project-card — keep filter hide working on mobile */
  .page-home .project-card.hidden {
    display: none;
  }

  .page-home .project-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    flex-shrink: 0;
  }

  .page-home .project-card:hover img {
    transform: none;
  }

  .page-home .project-overlay {
    position: static !important;
    inset: auto !important;
    background: #fff !important;
    padding: 0.85rem 0.9rem 1rem;
    display: block;
    color: #000;
    text-align: left;
  }

  .page-home .project-overlay h3 {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.25rem;
    line-height: 1.25;
  }

  .page-home .project-overlay p {
    font-size: 12px;
    color: #6b7280;
    opacity: 1;
    margin: 0;
    line-height: 1.35;
  }

  .page-home .portfolio-cta {
    margin-top: 1.5rem;
    text-align: center;
  }

  .page-home .btn-portfolio-all {
    width: 100%;
    max-width: none;
    min-height: 44px;
    border-radius: 8px;
    font-size: 14px;
  }

  /* —— FAQ —— */
  .page-home .faq {
    padding: 2.25rem 0 2.75rem;
  }

  .page-home .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-home .faq-heading {
    font-size: 1.5rem;
  }

  .page-home .faq-intro {
    text-align: left;
  }

  .page-home .faq-intro p {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .page-home {
    --mobile-gutter: 1rem;
  }

  .page-home .hero-title {
    font-size: 1.7rem;
    line-height: 1.32;
  }

  .page-home .hero-text {
    font-size: 13px;
  }

  .page-home .about-heading,
  .page-home .services-title,
  .page-home .portfolio-title {
    font-size: 1.35rem;
  }

  .page-home .about-truck {
    max-width: none;
  }

  .page-home .about-grid {
    padding-bottom: 8.25rem;
  }

  .page-home .about-visual {
    width: min(62%, 190px);
  }

  .page-home .about-heading {
    font-size: 1.55rem;
  }

  .page-home .service-card {
    width: min(78vw, 220px);
  }

  .page-home .service-media {
    height: 118px;
  }

  .page-home .project-card img {
    height: 118px;
  }

  .page-home .project-card {
    width: min(78vw, 220px);
  }
}
