/* ==========================================================================
   RESPONSIVE — every media query in the project lives here, ordered
   large → small. Breakpoints match Bootstrap 5.3:
     xxl 1400 · xl 1200 · lg 992 · md 768 · sm 576
   ========================================================================== */

/* ==========================================================================
   ≥ 1600px — enough gutter for the ISO badge to overhang the photo the way
   the Figma frame shows it.
   ========================================================================== */
@media (min-width: 1600px) {
  .about__badge {
    right: -30px;
  }
}

/* ==========================================================================
   ≤ 1399px  (xxl and below)
   ========================================================================== */
@media (max-width: 1399.98px) {
  .media-featured {
    min-height: 560px;
  }

  /* The inline navbar has to survive down to 1200 (it switches to the
     offcanvas below that), and logo + 7 links + CTA is a tight fit there. */
  .site-nav__list {
    gap: 0.95rem;
  }

  .site-nav__link {
    font-size: 0.95rem;
  }

  .site-logo img {
    width: 172px;
  }
}

/* ==========================================================================
   ≤ 1199px  (xl and below)
   ========================================================================== */
@media (max-width: 1199.98px) {
  /* Solutions: Bootstrap's .d-none/.d-xl-flex and .d-xl-none swap the two
     photo blocks; only the panel height and photo sizing are ours. */
  .solutions__panel {
    min-height: 0;
  }

  .solutions__content {
    padding-bottom: 2.4rem;
  }

  .solutions__photos-mobile img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--r-sm);
  }

  .about__badge {
    top: -28px;
    right: 0;
    width: 78px;
    height: 78px;
  }

  .media-featured__body {
    padding: 2rem 2rem 1.9rem;
  }

  .briefing {
    padding: 1.4rem 1.25rem;
    grid-template-columns: 38px 1fr 24px;
    gap: 0 1rem;
  }
}

/* ==========================================================================
   ≤ 1199px — navigation drawer

   The navbar expands at XL, not LG: between 992 and 1199 the logo, seven
   links and the CTA do not fit on one line, so the offcanvas stays in play
   right up to 1200.
   ========================================================================== */
@media (max-width: 1199.98px) {
  /* ---- Header ----
     Bootstrap's .navbar-expand-xl + .offcanvas handles the drawer itself
     (panel, backdrop, focus trap, Escape, scroll-lock). Only the type and
     the link separators are ours. */
  .site-nav .offcanvas-body {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list {
    gap: 0;
  }

  .site-nav__list .nav-item + .nav-item {
    border-top: 1px solid var(--c-border);
  }

  .site-nav__link {
    display: block;
    padding-block: 0.95rem;
    font-size: 1.0625rem;
  }

  .site-nav__link::after {
    display: none;
  }
}

/* ==========================================================================
   ≤ 991px  (lg and below) — tablet layout
   ========================================================================== */
@media (max-width: 991.98px) {
  /* ---- Hero ---- */
  /* Shorter banner, and the copy runs left on every slide — alternating sides
     needs width either side of the block to read as a decision rather than as
     text that has drifted. */
  .hero__inner {
    row-gap: 2.5rem;
  }

  .hero__slide--end .hero__inner {
    justify-items: start;
  }

  /* ---- About ---- */
  .about__media {
    order: -1;
    margin-bottom: 1rem;
  }

  .about__photo img {
    height: clamp(240px, 45vw, 415px);
  }

  .about__badge {
    top: 12px;
    right: 12px;
  }

  /* ---- Media Corner ---- */
  .media-featured {
    min-height: 460px;
  }

  /* ---- Footer ---- */
  .site-footer__brand {
    padding-right: 0;
  }

  .site-footer__brand::after {
    display: none;
  }

  /* ---- About page ---- */
  .overview__plate {
    left: 12px;
    bottom: 12px;
  }

  .leader__portrait::before {
    inset: 12px -12px -12px 12px;
  }

  /* ---- Services: rows stack, so the media plate goes back on top ---- */
  .service-row--reverse .service-row__media {
    order: -1;
  }

  .service-row__media {
    min-height: 220px;
  }

  /* ---- Timeline: 4 across is too tight; 2 x 2 with no connector ---- */
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.5rem;
  }

  .timeline::before {
    display: none;
  }

  /* ---- New sections: process rail 2x2, contact panel stacks ---- */
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }

  .process::before {
    display: none;
  }

  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-panel__aside {
    border-right: 0;
    border-bottom: 1px solid var(--c-border);
  }

  /* ---- Carousel arrows move inside the viewport once the gutters go ---- */
  .carousel__arrow--prev {
    left: 6px;
  }

  .carousel__arrow--next {
    right: 6px;
  }
}

/* ==========================================================================
   ≤ 767px  (md and below) — phones
   ========================================================================== */
@media (max-width: 767.98px) {
  :root {
    --section-py: 3.5rem;
  }

  /* ---- Top bar ---- */
  .topbar__inner {
    justify-content: center;
    text-align: center;
    row-gap: 0.35rem;
  }

  .topbar__group {
    gap: 1rem;
    row-gap: 4px;
    justify-content: center;
  }
  /* The header is shorter on a phone. Declaring that as the token rather than
     on the nav keeps everything that measures against the header in step with
     it: the banner's height, the sector nav's offset, and the scroll-margin
     that stops an in-page anchor landing underneath it. The nav itself already
     reads min-height from the token, so it needs no rule of its own here. */
  :root {
    --header-h: 80px;
  }

  .sector-nav {
    top: var(--header-h);
  }
.hero__figures > div{
  border-right: 0;
}
.consult .modal-content{
  overflow: auto;
}
  /* ---- Hero ---- */
  .hero__actions .btn-sysin {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  /* ---- About stats: 2 × 2 ---- */
  .about__stats {
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--c-border-stat);
  }

  .stat-card:nth-child(2n) {
    border-right: 0;
  }

  .stat-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  /* ---- Solutions ---- */
  .solutions__features {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .solutions__photos-mobile {
    grid-template-columns: minmax(0, 1fr);
  }

  .solutions__photos-mobile img {
    height: 220px;
  }

  /* ---- Media ---- */
  .media__head {
    align-items: flex-start;
  }

  .media-featured {
    min-height: 400px;
  }

  .media-featured__body {
    padding: 1.5rem 1.4rem 1.4rem;
  }

  .media-featured__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* ---- CTA ---- */
  .cta__panel {
    min-height: 0;
    border-radius: var(--r-2xl);
  }

  .cta__actions .btn-cta {
    flex: 1 1 100%;
  }

  /* ---- Footer ---- */
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* ---- About page ---- */
  /* The overlapping stat plate has nowhere to overlap into on a phone. */
  .overview__plate {
    position: static;
    margin-top: 1rem;
    width: 100%;
  }

  .overview__plate .stat-card {
    flex: 1 1 0;
  }

  .leader__portrait::before {
    display: none;
  }

  .leader__badge {
    left: 10px;
    bottom: 10px;
  }

  .pillar__mark {
    font-size: 5.5rem;
  }

  /* ---- Services / Solutions pages ---- */
  .service-row__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-row__num {
    font-size: 4rem;
  }

  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    text-align: left;
  }

  .timeline__step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0 1rem;
    text-align: left;
    padding-inline: 0;
  }

  .timeline__marker {
    grid-row: span 2;
    margin: 0;
  }

  .solution-card,
  .step-card {
    padding: 1.6rem 1.5rem 1.7rem;
  }

  /* Sticky only helps where the columns sit side by side. */
  .faq-aside {
    position: static;
  }

  /* ---- FAQ: tighter cards, answer aligns to the card edge ---- */
  .faq .accordion-button {
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 0.85rem;
    padding: 1.15rem 1.15rem;
    font-size: var(--fs-body);
  }

  .faq__num {
    width: 38px;
    height: 38px;
  }

  .faq__toggle {
    width: 32px;
    height: 32px;
  }

  .faq .accordion-body {
    padding: 0 1.15rem 1.25rem 1.15rem;
  }

  /* ---- Industries ---- */
  .sector__num {
    font-size: 11rem;
    opacity: 0.5;
  }

  .sector__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ---- Service detail ---- */
  .spec__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    padding: 0.9rem 0;
  }

  .ladder__step {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 0 1.1rem;
    padding-bottom: 1.9rem;
  }

  .ladder__marker {
    width: 60px;
    height: 52px;
    font-size: 1rem;
  }

  .ladder__step:not(:last-child)::before {
    left: 29px;
    top: 60px;
  }

  /* Columns stack, so the divider moves from the side to the top. */
  .scope__col + .scope__col {
    border-left: 0;
    border-top: 1px solid var(--c-border-mid);
  }

  /* ---- Industries ---- */
  .sector__num {
    font-size: 7rem;
    top: 1.5rem;
    transform: none;
    opacity: 0.4;
  }

  .sector__head {
    gap: 0.9rem;
  }

  .sector__icon {
    width: 54px;
    height: 54px;
  }

  .sector__icon img {
    width: 30px;
    height: 30px;
  }

  /* ---- New sections ---- */
  .process {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    text-align: left;
  }

  .process__step {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0 1.1rem;
    text-align: left;
  }

  .process__marker {
    grid-row: span 2;
    margin: 0;
  }

  /* Problem and response stack, so the connecting arrow turns downward. */
  .challenge {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    padding: 1.25rem 0;
  }

  .challenge__arrow {
    transform: rotate(90deg);
  }

  .reason {
    padding-left: 3.7rem;
  }

  .reason__num {
    width: 44px;
    height: 44px;
  }

  .milestones {
    padding-left: 2.1rem;
  }

  .milestone::before {
    left: -2.1rem;
    width: 20px;
    height: 20px;
  }

  /* ---- Cards ---- */
  .service-card {
    padding: 1.6rem 1.5rem 1.8rem;
  }

  .service-card__media {
    height: 120px;
  }

  .testimonial {
    padding: 1.8rem 1.5rem 1.6rem;
  }
}

/* ==========================================================================
   ≤ 575px  (sm and below) — small phones
   ========================================================================== */
@media (max-width: 575.98px) {
  :root {
    --container-pad: 1rem;
  }

  .topbar {
    font-size: 0.7rem;
  }

  .site-logo img {
    width: 168px;
  }

  .industry-card {
    min-height: 0;
    border-width: 5px;
    padding: 1.3rem 1.25rem 1.5rem;
  }

  .about__badge {
    width: 62px;
    height: 62px;
  }

  .briefing {
    grid-template-columns: 30px 1fr;
  }

  .briefing__arrow {
    display: none;
  }

  .btn-sysin {
    height: 48px;
    font-size: 1rem;
  }

  .btn-cta {
    height: 54px;
    font-size: 1.0625rem;
  }

  /* ---- About page ---- */
  .team-card__body {
    padding: 0.85rem 0.8rem 1rem;
  }

  .team-card__social {
    gap: 0.5rem;
    padding: 0.65rem;
  }

  .team-card__social a {
    width: 30px;
    height: 30px;
  }

  .cert-card {
    padding: 1.5rem 1rem 1.4rem;
  }

  .cert-card__logo,
  .cert-card__logo img {
    height: 56px;
    max-height: 56px;
  }

  .figure-cell {
    padding: 1.4rem 1.1rem;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .topbar,
  .nav-toggle,
  .site-header__cta,
  .to-top,
  .cta {
    display: none !important;
  }

  body {
    color: #000;
  }

  .site-header {
    position: static;
    box-shadow: none;
  }
}
