/* ============================================================
   SERVICES PAGE — ALL 3 ISSUES FIXED IN ONE FILE
   
   FIX 1: Text + image side by side (not stacking on mobile)
   FIX 2: Service cards 3-col overflowing (3rd card cut off)
   FIX 3: Tab buttons not all visible (now 2x3 grid)
   + BONUS: Floating buttons moved so they don't cover text
   
   HOW TO USE: Paste entire file at very bottom of style.css
   ============================================================ */

@media (max-width: 820px) {

  /* ============================================================
     FIX 1 — TEXT + IMAGE: Stack vertically on mobile
     Problem: Two columns side by side, text too narrow, 
              image cut off on the right
  ============================================================ */

  .srv-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .srv-text {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .srv-text h2 {
    font-size: clamp(24px, 6.5vw, 34px) !important;
    line-height: 1.15 !important;
    margin-bottom: 14px !important;
    color: white !important;
  }

  .srv-text p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: rgba(255,255,255,.68) !important;
    margin-bottom: 20px !important;
  }

  .srv-features li {
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 8px 0 !important;
  }

  /* Image: full width below text */
  .srv-image {
    width: 100% !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .srv-image img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 20px !important;
  }


  /* ============================================================
     FIX 2 — SERVICE CARDS: Single column on mobile
     Problem: 3 cards in a row, 3rd card cut off screen
  ============================================================ */

  .srv-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 24px !important;
  }

  /* Cards display as horizontal rows: icon on left, text on right */
  .srv-card {
    padding: 20px 18px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  .srv-card-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
    font-size: 22px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }

  .srv-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
    color: white !important;
  }

  .srv-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: rgba(255,255,255,.6) !important;
    margin: 0 !important;
  }


  /* ============================================================
     FIX 3 — TAB BUTTONS: 2x3 grid so ALL tabs visible at once
     Problem: Tabs overflow horizontally, can only see 3 at a time
  ============================================================ */

  .services-tab-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    overflow-x: unset !important;
    flex-wrap: unset !important;
    margin-bottom: 32px !important;
    padding-bottom: 0 !important;
  }

  .srv-tab-btn {
    width: 100% !important;
    padding: 13px 10px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    flex-shrink: unset !important;
  }

  /* 5th tab (odd last item): centre it across full width */
  .srv-tab-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    max-width: 50% !important;
    margin: 0 auto !important;
    justify-self: center !important;
  }


  /* ============================================================
     BONUS — FLOATING BUTTONS: Move to right side
     Problem: Call/WhatsApp buttons on left cover the text
  ============================================================ */

  .floating-cta-stack {
    left: auto !important;
    right: 14px !important;
    bottom: 14px !important;
  }

  /* Section padding */
  .ukds-services {
    padding: 60px 0 !important;
  }
}


/* ============================================================
   VERY SMALL PHONES (under 400px)
============================================================ */
@media (max-width: 400px) {

  .srv-text h2 {
    font-size: 22px !important;
  }

  .srv-image img {
    height: 200px !important;
  }

  /* Stack card icon above text on tiny screens */
  .srv-card {
    flex-direction: column !important;
  }

  .srv-tab-btn {
    font-size: 12px !important;
    padding: 11px 8px !important;
  }
}
