/*
 * C-STAR OVERSEAS LIMITED - Responsive Styles
 */

/* ==========================================================================
   1. Laptop & Large Tablet Breakpoints (Max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    height: 360px;
  }

  .about-img-primary {
    height: 400px;
  }
}

/* ==========================================================================
   2. Medium Tablet Breakpoints (Max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
  section {
    padding: 70px 0;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .section-title-wrapper {
    margin-bottom: 40px;
  }

  /* Header Nav Mobile sizing */
  .header-nav,
  .header-nav.sticky {
    height: 75px;
  }

  .header-logo,
  .header-nav.sticky .header-logo {
    height: 55px;
  }

  /* Navigation Mobile Toggle and Collapse */
  .mobile-nav-toggle {
    display: block;
  }

  .header-menu-col {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--white);
    transition: var(--transition-smooth);
    padding: 40px;
    display: block;
    z-index: 999;
    border-top: 1px solid rgba(16, 59, 115, 0.08);
  }

  .header-menu-col.show {
    left: 0;
  }

  .header-menu {
    flex-direction: column;
    gap: 24px;
  }

  .header-menu-link {
    color: var(--text-color);
    font-size: 1.1rem;
    display: block;
  }

  .header-cta-btn {
    margin-top: 30px;
    width: 100%;
    text-align: center;
  }

  /* Hero Banner adjustment */
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* About US Collapse */
  .about-image-wrapper {
    padding-right: 0;
    padding-bottom: 0;
    margin-bottom: 40px;
  }

  .about-img-primary {
    height: 350px;
  }

  /* Timeline Horizontal to Vertical Stack check */
  .about-timeline {
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 20px;
    padding-top: 0;
  }

  .about-timeline::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 4px;
  }

  .about-timeline-item::before {
    left: -20px;
    top: 6px;
  }

  /* Key Strengths Grid */
  .strengths-row>div {
    margin-bottom: 24px;
  }

  /* Services 3+2 collapses into 2 Columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    grid-column: span 1 !important;
  }

  .service-card.wide {
    grid-column: span 1 !important;
  }

  /* Statistics borders collapse */
  .stat-card {
    border-right: none;
    border-bottom: 1px solid #E2E8F0;
    padding: 20px 0;
  }

  .stat-card:last-child {
    border-bottom: none;
  }

  /* Why Choose C-Star */
  .why-cstar-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .why-cstar-img-wrapper {
    margin-top: 40px;
  }

  /* About & Subpage Adaptations */
  .page-header {
    padding: 120px 0 80px;
  }

  .article-content {
    padding: 70px 0;
  }

  .bottlenecks-section {
    padding: 70px 0;
  }
}

/* ==========================================================================
   3. Small Mobile Breakpoints (Max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .section-title-wrapper {
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Hide Slider Arrows on Mobile */
  .hero-banner .swiper-button-next,
  .hero-banner .swiper-button-prev {
    display: none !important;
  }

  /* Services Overview Grid collapses to 1 Column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 320px;
  }

  .service-content {
    padding: 30px;
  }

  /* Commitments collapse */
  .commitments-row>div {
    margin-bottom: 24px;
  }

  .commitments-row>div:last-child {
    margin-bottom: 0;
  }

  /* CTA Adjustments */
  .cta-section {
    padding: 80px 0;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-desc {
    font-size: 1rem;
  }

  /* Footer */
  .footer-top {
    padding: 60px 0 0px;
  }

  .footer-top>div>div {
    margin-bottom: 40px;
    gap: 15px 0px;
  }


  /* Center footer company info on mobile */
  .footer-top .col-lg-4 {
    text-align: center;
  }

  .footer-top .col-lg-4 .footer-logo-wrapper {
    margin: 0 auto 15px;
  }

  .footer-top .col-lg-4 .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-top .col-lg-4 .footer-social {
    justify-content: center;
  }

  /* Make Quick Links and Our Services display side-by-side on mobile */
  .footer-top .row>div:nth-child(2),
  .footer-top .row>div:nth-child(3) {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

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

  .footer-bottom-links {
    justify-content: center;
    margin-top: 15px;
  }

  /* Text alignment check for readability on mobile */
  .about-lead,
  .about-article-text {
    text-align: left;
  }
}

/* ==========================================================================
   4. Extra Small Mobile Breakpoints (Max-width: 576px)
   ========================================================================== */
@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .intro-lead-text {
    font-size: 1.35rem;
    margin-bottom: 16px;
  }

  .about-img-primary {
    height: 260px;
  }

  .about-image-wrapper {
    margin-bottom: 30px;
  }

  /* Brand text size on mobile screens to prevent overflow */
  .header-brand-main {
    font-size: 1rem;
  }

  .header-brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .header-brand-wrapper {
    margin-left: 10px;
    padding-left: 10px;
  }

  /* Extra Small Mobile Spacings */
  .page-header {
    padding: 120px 0 60px;
  }

  .article-content {
    padding: 60px 0;
  }

  .bottlenecks-section {
    padding: 60px 0;
  }

  .contact-section {
    padding: 60px 0px;
  }
}