/* FIXMORA compact desktop-style mobile layout — v3.
   Only mobile/tablet widths. Original desktop design and animations untouched. */
@media screen and (max-width: 768px) {
  :root { --section-padding: 42px 0; --container-padding: 0 12px; }
  html { scroll-padding-top: 76px; overflow-x: clip; }
  body { overflow-x: clip; max-width:100%; }
  /* Keep the off-canvas menu from expanding the mobile layout viewport. */
  .nav-menu { right:0 !important; transform:translateX(110%); transition:transform .35s ease; }
  .nav-menu.active { transform:translateX(0); }
  .container { padding-inline: 12px; }
  .section { padding-block: 42px; }
  .hero { padding-block: 46px 38px; }
  .hero-content { gap: 20px; }
  .hero-image-wrapper { aspect-ratio: 16 / 9; }
  .section-header { margin-bottom: 20px; }
  .section-header .subtitle { font-size: .72rem; letter-spacing: 1.9px; margin-bottom: 8px; }
  .section-header h2 { font-size: clamp(1.4rem, 4.2vw, 1.95rem); line-height: 1.23; margin-bottom: 9px; }
  .section-header p { font-size: .86rem; line-height: 1.55; max-width: 560px; }
  /* Keep the original card design but fit more cards on phone screens. */
  #services .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 12px !important;
    align-items: stretch;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  #services .service-card {
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(74,144,217,.11);
    contain: layout style;
  }
  #services .service-card-image { height: auto !important; aspect-ratio: 16 / 10; background: #e9eef5; }
  #services .service-card-image img { position: absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:1 !important; visibility:visible !important; }
  #services .service-card-image .service-badge { top: 8px; left: 8px; padding: 4px 7px; font-size: .54rem; letter-spacing: .2px; }
  #services .service-card-body { padding: 13px 10px 12px; }
  #services .service-card-body .service-icon { width: 33px; height: 33px; font-size: .88rem; margin-top: -28px; margin-bottom: 9px; border-radius: 8px; }
  #services .service-card-body h3 { font-size: .9rem; line-height: 1.25; margin-bottom: 7px; overflow-wrap: anywhere; }
  #services .service-card-body > p { font-size: .72rem; line-height: 1.45; margin-bottom: 10px; }
  #services .service-list { margin-bottom: 10px; }
  #services .service-list li { font-size: .69rem; line-height: 1.4; gap: 5px; padding: 3px 0; }
  #services .service-list li i { font-size: .67rem; flex: 0 0 auto; margin-top: 2px; }
  #services .service-card-footer { display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding-top: 9px; }
  #services .service-card-footer .price-tag { font-size: .71rem; line-height: 1.3; }
  #services .service-card-footer .btn-sm { min-height: 36px; display:flex; align-items:center; justify-content:center; font-size: .75rem; padding: 7px 8px; white-space: normal; text-align:center; }
  /* The Help card spans the full row, similar to a desktop dashboard CTA. */
  #services .services-grid > .service-card:last-child {
    grid-column: 1 / -1;
    min-height: 160px !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
  }
  #services .services-grid > .service-card:last-child > div { padding: 20px 18px !important; }
  #services .services-grid > .service-card:last-child h3 { font-size: 1.06rem !important; }
  #services .services-grid > .service-card:last-child p { font-size: .84rem !important; line-height: 1.5 !important; }
  #services .services-grid > .service-card:last-child .btn { padding: 9px 14px !important; font-size: .79rem !important; }
  /* Keep dedicated service hero photos proportionate on phones, too. */
  .service-media-banner img { width:100%; height:auto !important; aspect-ratio:16 / 10; object-fit:cover; }
  /* Other sections echo the denser multi-column laptop composition. */
  .stats-row, .features-grid, .steps-container, .cities-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .stats-row { margin-bottom: 28px; }
  .stat-card { padding: 17px 9px; }
  .stat-card .stat-number { font-size: 1.75rem; }
  .stat-card .stat-label { font-size: .77rem; line-height: 1.4; }
  .feature-card, .step-card, .city-card { min-width: 0; padding: 16px 12px; }
  .feature-card h4, .step-card h4, .city-card-header h3 { font-size: .91rem; }
  .feature-card p, .step-card p, .city-card p { font-size: .75rem; line-height: 1.5; }
  .feature-card .feature-icon { width: 42px; height: 42px; font-size: 1rem; }
  .step-card .step-number { margin-bottom: 10px; }
  .city-card-header { gap: 8px; }
  .city-localities { flex-wrap: wrap; }
  .city-localities span { font-size: .66rem; }
  .testimonials-slider { grid-template-columns: 1fr; }
  .brands-track { gap: 12px 16px; }
  .brands-section { padding: 36px 0; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .footer-brand { grid-column: 1 / -1; }
  /* Do not prehide any content below the hero on smaller devices. */
  html body section:not(.hero) [data-aos],
  html body section:not(.hero) .service-card,
  html body section:not(.hero) .section-header,
  html body .faq-item,
  html body .footer-grid > div {
    opacity:1 !important; visibility:visible !important; transform:none !important;
  }
}
@media screen and (max-width: 360px) {
  :root { --container-padding: 0 9px; }
  .container { padding-inline: 9px; }
  #services .services-grid { gap: 9px !important; }
  #services .service-card-body { padding: 11px 8px; }
  #services .service-card-body h3 { font-size: .82rem; }
  #services .service-card-body > p { font-size: .68rem; }
  #services .service-list li { font-size: .66rem; }
}
@media screen and (min-width:769px) { /* intentionally empty: desktop stays original */ }

/* V4 WhatsApp visibility correction: <=768px only.
   Original CSS hides floating WhatsApp & call for the sticky mobile bottom bar.
   Restore WhatsApp above the bar; retain Call Now in the bar.
   Desktop appearance and service-card styling are untouched. */
@media screen and (min-width: 769px) {
  html body .floating-whatsapp a > svg.whatsapp-mark { display: none; }
}
@media screen and (max-width: 768px) {
  html body .floating-whatsapp {
    display: block !important;
    position: fixed !important;
    right: 16px !important;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1003 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  html body .floating-whatsapp a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    font-size: 1.5rem;
    background: #25D366;
    color: #fff;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
  }
  html body .floating-whatsapp a > i.fa-whatsapp { display: none; }
  html body .floating-whatsapp a > svg.whatsapp-mark { display: block; width: 27px; height: 27px; flex: none; }
  html body .floating-whatsapp a:focus-visible {
    outline: 3px solid #145a32;
    outline-offset: 3px;
  }
  html body .floating-call { display: none !important; }
  html body .back-to-top {
    bottom: calc(154px + env(safe-area-inset-bottom, 0px));
    right: 20px;
  }
}
