/* ============================================
   Kodesk — Mobile Responsive Fixes
   ============================================ */

/* ─── Global overflow prevention ─── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Fix pricing card images (height:100% causes stretching) ─── */
.pricing-card img {
  height: auto !important;
  max-height: 240px;
  width: 100%;
  object-fit: cover;
}

/* ─── Fix service block images with forced inline heights ─── */
.service-block-one .inner-box .image-box figure img,
.service-block-one .inner-box .image-box figure.overlay-image img {
  max-width: 100%;
}

/* ─── Prevent custom flex sections from causing horizontal scroll ─── */
.rect-inner-content,
.modern-inner-content {
  overflow-x: hidden;
  padding: 0 15px;
  box-sizing: border-box;
}


/* ============================================
   ≤ 1200px  (tablets landscape / desktop nav)
   ============================================ */
@media only screen and (max-width: 1200px) {

  .logo-box figure.logo img,
  .main-header .logo-box img {
    max-width: 150px;
    height: auto;
  }

  /* Ensure hero slides don't overflow */
  .banner-carousel .slide-item {
    background-size: cover !important;
  }
}


/* ============================================
   ≤ 991px  (tablet portrait)
   ============================================ */
@media only screen and (max-width: 991px) {

  /* Stack FAQ sidebar below content */
  .faq-section .sidebar-column {
    order: 2;
    margin-top: 40px;
  }
  .faq-section .content-side {
    order: 1;
  }

  /* About page two-column image block */
  .image_block_1 .image-box {
    padding: 0 !important;
    margin-bottom: 40px;
  }

  /* Services page two-column info block */
  .about-style-three .image-box {
    margin-bottom: 40px;
  }

  /* Booking section: allow both columns to show */
  .booking-section .inner-box {
    max-width: 100%;
  }
}


/* ============================================
   ≤ 767px  (mobile — primary breakpoint)
   ============================================ */
@media only screen and (max-width: 767px) {

  /* ── Hero banner ── */
  .banner-carousel .content-inner h1 {
    font-size: 26px !important;
    line-height: 36px !important;
  }

  .banner-carousel .content-inner h3 {
    font-size: 14px !important;
  }

  .banner-carousel .content-inner p {
    font-size: 14px !important;
  }

  .banner-carousel .content-inner .btn-box {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* ── Page title / hero strip ── */
  .page-title .outer-container {
    padding: 80px 0 !important;
  }

  .page-title .content-box .title h1 {
    font-size: 30px !important;
    line-height: 40px !important;
    word-break: break-word;
  }

  /* ── Section headings ── */
  .sec-title h2,
  .sec-title h2[style] {
    font-size: 26px !important;
    line-height: 36px !important;
    word-break: break-word;
  }

  /* ── Service block images: remove forced heights ── */
  .service-block-one .inner-box .image-box figure img,
  .service-block-one .inner-box .image-box figure.overlay-image img {
    height: auto !important;
    max-height: 220px;
    width: 100% !important;
    object-fit: cover;
  }

  /* ── Pricing cards ── */
  .pricing-card {
    margin-bottom: 24px;
  }

  .pricing-card img {
    max-height: 200px !important;
  }

  .pricing-card h3 {
    font-size: 18px !important;
  }

  .pricing-card p {
    font-size: 16px !important;
    display: block !important;
    margin-bottom: 10px !important;
  }

  /* ── Booking / Book-a-Tour section ── */
  .booking-section .outer-container {
    padding: 50px 0 !important;
  }

  .booking-section .inner-box {
    padding: 30px 20px !important;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    margin: 0 15px;
  }

  .booking-section .inner-box .text h2 {
    font-size: 24px !important;
    line-height: 34px !important;
    color: #fff;
  }

  .booking-section .inner-box .text p {
    color: #eee;
  }

  /* ── Rectangular amenities section ── */
  .rect-single-item {
    flex-basis: 100% !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  /* ── Modern amenities cards ── */
  .modern-card {
    flex: 0 0 100% !important;
    min-width: 0;
    width: 100%;
  }

  /* ── Image block on About / homepage ── */
  .image_block_1 .image-box .image-1,
  .image_block_1 .image-box .image-2 {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin-bottom: 20px;
  }

  /* ── Footer ── */
  .main-footer .links-widget,
  .main-footer .footer-column {
    margin-bottom: 30px;
  }

  .footer-bottom .inner-box {
    text-align: center;
  }

  .footer-bottom .copyright {
    float: none !important;
    display: block;
    text-align: center;
    margin-bottom: 8px;
  }

  .footer-bottom .footer-nav {
    float: none !important;
    display: block;
    text-align: center;
  }

  .footer-bottom .footer-nav li {
    float: none;
    display: inline-block;
    margin: 0 6px;
  }

  /* ── Contact section ── */
  .contact-section .form-inner {
    padding: 30px 15px !important;
  }

  .contact-section .info-column .inner-box {
    padding: 30px 15px !important;
    margin-bottom: 30px;
  }

  /* ── Blog cards ── */
  .news-block-one .inner-box {
    margin-bottom: 30px;
  }

  /* ── Service lower content padding ── */
  .service-block-one .lower-content {
    padding: 20px 15px !important;
  }

  /* ── Prevent any wide element from creating scrollbar ── */
  .auto-container,
  .outer-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }
}


/* ============================================
   ≤ 599px  (small phones)
   ============================================ */
@media only screen and (max-width: 599px) {

  /* ── Booking form full-width inputs ── */
  .booking-section .form-inner .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* ── Amenities icon alignment ── */
  .rect-single-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .rect-icon-box {
    margin-right: 0 !important;
    margin-bottom: 12px;
  }

  .rect-text-box {
    text-align: center !important;
  }

  /* ── Pricing page section headings ── */
  .pricing-section .sec-title h2 {
    font-size: 22px !important;
    line-height: 32px !important;
  }

  /* ── FAQ accordion ── */
  .accordion-box .acc-btn h4 {
    font-size: 15px !important;
    padding-right: 30px;
  }

  /* ── Footer nav wrap ── */
  .footer-bottom .footer-nav li {
    display: block;
    margin: 4px 0;
  }
}


/* ============================================
   ≤ 480px  (extra-small phones)
   ============================================ */
@media only screen and (max-width: 480px) {

  /* ── Hero banner ── */
  .banner-carousel .content-inner h1 {
    font-size: 22px !important;
    line-height: 30px !important;
  }

  /* ── Section headings ── */
  .sec-title h2,
  .sec-title h2[style],
  h2 {
    font-size: 22px !important;
    line-height: 32px !important;
    word-break: break-word;
  }

  /* ── Page title ── */
  .page-title .content-box .title h1 {
    font-size: 24px !important;
    line-height: 34px !important;
  }

  /* ── Forms: stack label + input ── */
  .default-form .form-group {
    margin-bottom: 15px;
  }

  /* ── Book Now buttons ── */
  .book-now-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* ── Service h3 links ── */
  .service-block-one .lower-content h3 a {
    font-size: 18px !important;
  }

  /* ── CTA section ── */
  .cta-section .inner-box {
    padding: 40px 20px !important;
  }

  .cta-section .inner-box h2 {
    font-size: 22px !important;
    line-height: 30px !important;
  }

  /* ── Modern card icon shrink ── */
  .modern-icon {
    font-size: 50px !important;
  }

  .modern-text h3 {
    font-size: 18px !important;
  }

  /* ── Pricing card images ── */
  .pricing-card img {
    max-height: 160px !important;
  }
}


/* ============================================
   Workspace Solutions Landing Page
   (/workspace-solutions/index.html)
   ============================================ */

/* Services grid: 3 → 2 → 1 col */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }

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

  .lead-card {
    padding: 20px 16px !important;
  }
}

/* Gallery grid: collapse to single column on mobile */
@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .gallery-item.large {
    grid-row: span 1 !important;
  }
}

/* Bottom CTA two-col → one col */
@media (max-width: 768px) {
  .bottom-cta-box {
    grid-template-columns: 1fr !important;
  }

  .bottom-cta-box h2 {
    font-size: 1.6rem !important;
  }
}

/* Testimonial grid: 3 → 1 */
@media (max-width: 720px) {
  .testimonial-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Contact pills wrap tightly on small phones */
@media (max-width: 480px) {
  .contact-pills {
    flex-direction: column;
  }

  .contact-pills span {
    width: 100%;
    text-align: center;
  }
}

/* WhatsApp chat button: don't overlap form on mobile */
@media (max-width: 767px) {
  #whatsappchat a.bottom-right {
    bottom: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }

  #whatsappchat a.bottom-right img {
    width: 52px !important;
    height: 52px !important;
  }
}
