/* for smooth scrolling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}



/* --- CORRECTED MOBILE RESPONSIVE FIX --- */


@media (max-width: 1383px) {

  /* Header */
  .site-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px;
  }

    .header-content-right {
    flex-direction: row;     /* 🔥 KEY FIX */
    align-items: center;
    height: 100%;
  }

  /* Logo */
  .logo-area {
    min-width: 230px;   /* enough space for one line */
    height: 100%;
     padding: 0 30px 0 15px;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  }

  .logo-text {
     font-size: 14px !important;  
    font-weight: 800;
    white-space: nowrap;         /* 🔥 KEY LINE */
    line-height: 1;
    letter-spacing: 0.3px;
  }

  /* Right nav group */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    height: 100%;        /* override desktop 92px */
    padding: 0;
  }

  /* ✅ SHOW Contact button on mobile */
  .mobile-contact-btn {
    display: inline-flex;
    background: #0A192F;
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  /* ✅ SHOW hamburger */
  #hamburger {
    display: flex;
    width: 45px;
    height: 40px;
    background: #0A192F;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
      z-index: 1001;  
  }

  .ham,
  .ham::before,
  .ham::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
  }

  .ham::before {
    position: absolute;
    top: -7px;
  }

  .ham::after {
    position: absolute;
    top: 7px;
  }

  /* Mobile dropdown menu */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    display: none;
    z-index: 1000;
  }

  /* Toggle menu */
  #hamm:checked ~ .nav-links {
    display: flex;
  }

  .nav-links li {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  /* Hide desktop-only elements */
  .top-info-bar,
  .nav-extra,
  .hero-left-dark {
    display: none !important;
  }
}

/* ===== CORE STRENGTHS: MOBILE ONE CARD PER ROW ===== */
@media (max-width: 768px) {

  .grid-layout.five-cols {
    flex-direction: column;   /* one card per row */
    gap: 16px;
  }

  .grid-layout.five-cols .info-card {
    width: 100%;
    flex: none;
  }

}

/* ===== EXTRA SMALL DEVICES (360px FIX) ===== */
@media (max-width: 400px) {

  /* Reduce logo width */
  .logo-area {
    min-width: 190px;
    padding: 0 20px 0 12px;
  }

  .logo-text {
    font-size: 13px !important;
  }

  /* Shrink Contact button */
  .mobile-contact-btn {
    padding: 6px 14px;
    font-size: 11px;
  }

  /* Ensure hamburger is fully visible */
  #hamburger {
    width: 40px;
    height: 38px;
    flex-shrink: 0; /* 🔥 prevents squeezing */
  }

  /* Reduce nav gap slightly */
  .main-nav {
    gap: 8px;
  }
}

