/* ==========================================================================
   MA Auditing — Responsive Stylesheet
   Hamburger / mobile nav + full breakpoint coverage.
   Link AFTER app.css:  <link rel="stylesheet" href="responsive.css" />
   ========================================================================== */


/* --------------------------------------------------------------------------
   0. GLOBAL — Prevent horizontal scroll on all screen sizes
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Any element that can bleed past the viewport */
img,
video,
iframe,
table {
  max-width: 100%;
}

/* Marquee tracks must not expand the page */
.brands__track,
.software__track {
  will-change: transform; /* GPU layer keeps it out of layout flow */
}

/* Fixed/absolute elements that go off-canvas must stay clipped */
.hero__bg,
.stats__bg,
.expertise__bg,
.brands__bg,
.services__texture {
  max-width: none; /* these are cover images — don't constrain width */
  left: 0;
}


/* --------------------------------------------------------------------------
   HAMBURGER BUTTON
   Hidden on desktop, visible on ≤ 1024px.
   .nav-open on <body> drives open state (toggled by JS).
   -------------------------------------------------------------------------- */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
  z-index: 1001;
  position: relative; /* keep above backdrop */
}
.navbar__hamburger:hover {
  background: rgba(0, 93, 152, 0.08);
}
.navbar__hamburger:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Three bars */
.navbar__hamburger .bar {
  display: block;
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--color-body);
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.18s ease, width 0.18s ease;
}

/* Bars → X when .nav-open */
.nav-open .navbar__hamburger .bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-open .navbar__hamburger .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-open .navbar__hamburger .bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}


/* --------------------------------------------------------------------------
   MOBILE NAV BACKDROP
   -------------------------------------------------------------------------- */
.navbar__backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav-open .navbar__backdrop {
  opacity: 1;
  pointer-events: auto;
}


/* ==========================================================================
   BREAKPOINT ≤ 1024px — Tablet / Small Laptop
   ========================================================================== */
@media (max-width: 1024px) {

  /* Show hamburger */
  .navbar__hamburger {
    display: flex;
    order: 4; /* after actions */
  }
  .navbar__backdrop {
    display: block;
  }

  /* Navbar row — no wrapping, logo | actions | burger */
  .navbar {
    flex-wrap: nowrap;
    min-height: 72px;
    padding-inline: 20px;
    padding-block: 12px;
    position: relative;
  }

  .navbar__logo img {
    width: 90px;
    height: auto;
  }

  .navbar__actions {
    flex: 1;
    justify-content: flex-end;
    gap: 14px;
    order: 3;
  }

  /* Hide discount on tablet — too cramped */
  .discount {
    display: none;
  }

  /* ---------- SLIDE-IN DRAWER ---------- */
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 0 32px; /* top padding clears the header */
    background: var(--color-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    order: 5;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-open .navbar__links {
    right: 0;
  }

  /* List items */
  .navbar__links li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .navbar__links li:first-child {
    border-top: 1px solid var(--color-border);
  }

  .navbar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 15px;
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: var(--color-heading);
    white-space: nowrap;
  }
  .navbar__link:hover {
    background: var(--color-offwhite);
    color: var(--color-primary);
  }
  .navbar__link.is-active {
    color: var(--color-primary);
    background: rgba(0, 93, 152, 0.06);
  }
  .navbar__chevron {
    width: 18px;
    height: 18px;
  }

  /* Prevent body scroll when drawer is open */
  body.nav-open {
    overflow: hidden;
  }
}


/* ==========================================================================
   BREAKPOINT ≤ 768px — Mobile
   ========================================================================== */
@media (max-width: 768px) {

  /* Topbar */
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-block: 8px;
    min-height: auto;
    padding-inline: 16px;
    /* prevent any child from overflowing */
    overflow: hidden;
  }
  .topbar__contact {
    gap: 6px;
    flex-wrap: wrap;
  }
  .topbar__item {
    padding: 4px 6px;
    font-size: var(--fs-xs);
    gap: 6px;
    white-space: nowrap;
  }
  .topbar__icon {
    width: 16px;
    height: 16px;
  }

  /* Navbar */
  .navbar {
    min-height: 64px;
    padding-inline: 16px;
  }
  .navbar__logo img {
    width: 80px;
  }

  /* Show icon only for call-us */
  .callus__text {
    display: none;
  }
  .callus__icon {
    width: 40px;
    height: 40px;
  }

  /* Hero */
  .hero {
    padding-block: 32px;
    overflow: hidden;
  }
  .hero__inner {
    padding-inline: 16px;
    gap: 24px;
  }
  .hero__title {
    font-size: 1.4rem;
  }
  .hero__copy p {
    font-size: var(--fs-sm);
  }
  .hero__badge {
    font-size: var(--fs-xs);
    padding: 4px 10px;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    
  }
  .hero__certs {
    gap: 20px;
  }
  .hero-form__header h2 {
    font-size: var(--fs-base);
  }
  .hero-form__body {
    padding: 16px;
  }
  .hero-form__row {
    flex-direction: column;
    gap: 12px;
  }

  /* Stats */
  .stats__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }
  .stat__number {
    font-size: 2rem;
  }
  .stat__label {
    font-size: var(--fs-xs);
  }

  /* About */
  .about__inner {
    padding-inline: 16px;
    overflow: visible;
  }
  .about__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .about__actions .btn {
    text-align: center;
    justify-content: center;
  }
  .about__media {
    max-width: 100%;
    overflow: visible;
  }

  /* Expertise */
  .expertise__card {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    margin-inline: 0;
    box-sizing: border-box;
  }
  .expertise__inner {
    padding-inline: 16px;
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .services__inner {
    padding-inline: 16px;
  }

  /* Reach Us */
  .reach__inner {
    padding-inline: 16px;
  }
  .reach__body {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
  }
  .reach__map {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .reach__cards {
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }
  .reach-card {
    padding: 10px 16px;
  }
  .reach-card__detail {
    font-size: 0.65rem;
  }

  /* CTA banner */
  .cta-banner {
    overflow: hidden;
  }

  /* Reviews */
  .reviews {
    overflow: hidden;
  }
  .reviewHeadBox{
    display: block !important;
    text-align: center;
  }
  .reviewHeadInfoBlock {
    margin-bottom: 20px !important;
  }
  /* Footer */
  .footer-contact__inner {
    padding-inline: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-contact__details {
    flex-direction: column;
    gap: 12px;
  }
  .footer-contact__item {
    font-size: var(--fs-xs);
    white-space: normal;
    text-align: center;
    margin: 0 auto;
    gap: 6px;
  }
  .footer-legal__inner {
    padding-inline: 16px;
    flex-direction: column;
    gap: 10px;
  }
  .footer-legal__links {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: var(--fs-xs);
    margin: 0 auto;
  }
  .footer-legal__copy {
    font-size: var(--fs-xs);
    margin: 0 auto;
  }
  .footer-contact__logo {
    margin: 0 auto;
  }

}


/* ==========================================================================
   BREAKPOINT ≤ 480px — Small phones
   ========================================================================== */
@media (max-width: 480px) {

  /* Topbar: hide email, keep phone */
  .topbar__contact .topbar__item:first-child {
    display: none;
  }
  .topbar__inner {
    padding-inline: 12px;
  }

  /* Navbar */
  .navbar {
    padding-inline: 12px;
  }

  /* Hero */
  .hero__inner {
    padding-inline: 12px;
  }
  .hero__title {
    font-size: 1.25rem;
  }
  .hero__badge {
    font-size: 0.7rem;
  }
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--fs-xs);
  }
  .btn--blue {
    padding: var(--space-3) var(--space-6);
    font-size: var(--fs-xs);
  }
  /* Stats */
  .stats__row {
    grid-template-columns: 1fr 1fr;
    gap: 20px 8px;
  }
  .stat__number {
    font-size: 1.75rem;
  }
  .stat__icon {
    width: 44px;
    height: 44px;
  }

  /* About */
  .about__inner {
    padding-inline: 12px;
  }
  .about__badge {
    padding: 16px;
  }
  .about__badge-number {
    font-size: 2rem;
  }

  /* Expertise */
  .expertise__inner {
    padding-inline: 12px;
  }
  .expertise__card {
    padding: 20px 12px;
  }
  .expertise__list {
    grid-template-columns: 1fr;
    font-size: var(--fs-sm);
  }

  /* Services */
  .services__inner {
    padding-inline: 12px;
  }
  .service-card__body {
    padding: 18px;
  }
  .service-card__title {
    font-size: var(--fs-base);
  }

  /* Feature rows */
  .feature-row__media,
  .feature-row__content {
    padding-inline: 12px;
  }

  /* Reviews */
  .review-card {
    width: calc(100vw - 48px);
    min-width: 0;
  }

  /* CTA banner */
  .cta-banner__title {
    font-size: 1.3rem;
  }
  .cta-banner__phone {
    font-size: 1.25rem;
  }

  /* Reach */
  .reach__inner {
    padding-inline: 12px;
  }
  .reach-card {
    padding: 8px 12px;
    border-radius: 12px;
  }

  /* Software */
  .software__inner {
    padding-inline: 12px;
  }

  /* Founder */
  .founder__intro {
    padding-inline: 12px;
  }
  .founder-card {
    padding: 18px;
  }

  /* Footer */
  .footer-contact__inner,
  .footer-legal__inner {
    padding-inline: 12px;
  }

  /* Container fallback */
  .container {
    padding-inline: 12px;
  }
}

@media (min-width: 992px) {
    #testimonialModal .modal-body {
        padding: 40px;
    }
    
}

@media(max-width:576px){

  .hero{
    min-height:auto;
    padding:80px 0;
  }

  .hero-content h1{
    font-size:32px;
  }

  .hero-content p{
    font-size:16px;
  }

  .tag{
    font-size:13px;
  }
  .btn,
  .call-btn, .btn--blue{
    width:100%;
    justify-content:center;
  }
  .hero-image img{
    max-width:280px;
  }

}
@media(max-width:992px){
  .hero-content p{
    margin:auto auto 35px;
  }

  .buttons{
    justify-content:center;
  }

  .hero-content h1{
    font-size:42px;
  }

  .hero-image{
    margin-top:40px;
  }

  .hero-image img{
    max-width:380px;
  }

}
/*******services section******/
@media (max-width: 991px) {
    .services {
        padding-block: 80px;
    }

    .services__grid {
        flex-wrap: wrap;
    }

    .service-card {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 576px) {
    .services {
        padding-block: 60px;
    }

    .services__inner {
        gap: 40px;
    }

    .services__title {
        font-size: 28px;
    }

    .services__grid {
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .service-card__body {
        padding: 24px;
    }
}
/******End services Section*****/