/* Markeva v5 responsive stability layer */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.shell {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: 20px;
}

.header-inner,
.hero-inner,
.proof-grid,
.split-heading,
.service-grid,
.industry-grid,
.work-showcase,
.portfolio-grid,
.social-inner,
.social-card,
.contact-card,
.form-row,
.footer-main,
.footer-bottom {
  min-width: 0;
}

.header-inner > *,
.hero-inner > *,
.split-heading > *,
.service-grid > *,
.work-showcase > *,
.portfolio-grid > *,
.social-inner > *,
.contact-card > *,
.form-row > *,
.footer-main > * {
  min-width: 0;
}

.hero h1,
.split-heading h2,
.section-head h2,
.center-head h2,
.contact-card h2,
.service-card h3,
.portfolio-card h3,
.social-card b,
.contact-links b,
footer a,
footer p {
  overflow-wrap: anywhere;
}

.quote-form input,
.quote-form textarea,
.quote-form select,
.executive-inline input,
.executive-inline textarea {
  width: 100%;
  max-width: 100%;
}

.header-inner > .button-small {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .header-inner nav {
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(50px, 6.3vw, 72px);
  }

  .footer-main {
    gap: 38px;
  }
}

@media (max-width: 1024px) {
  .site-header {
    height: 76px;
  }

  .brand {
    order: 1;
    flex: 0 0 auto;
  }

  .brand img {
    width: 112px;
    height: 58px;
  }

  .header-inner > .button-small {
    order: 2;
    margin-left: auto;
    padding: 11px 15px;
    font-size: 12px;
  }

  .menu-btn {
    order: 3;
    display: block;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    line-height: 1;
    cursor: pointer;
  }

  .header-inner nav {
    order: 4;
    display: none;
  }

  .header-inner nav.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-top: 1px solid #e5eaf0;
    box-shadow: 0 20px 35px rgba(7, 29, 59, .16);
  }

  .header-inner nav.open a {
    padding: 14px 4px;
    border-bottom: 1px solid #edf1f5;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 620px;
    padding-block: 72px;
  }

  .hero-copy {
    grid-column: auto;
    max-width: 760px;
  }

  .hero-image {
    width: 100%;
    opacity: .2;
    object-position: 68% center;
    filter: saturate(.65) brightness(1.25);
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.88) 64%, rgba(255,255,255,.72));
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(48px, 7.4vw, 70px);
  }

  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-showcase {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-showcase > img {
    width: 100%;
    min-height: 0;
    height: min(52vw, 480px);
  }

  .contact-card {
    padding: 48px;
  }

  .footer-main {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .footer-main > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .shell {
    padding-inline: 16px;
  }

  .topbar-inner {
    min-height: 34px;
    height: auto;
    padding-block: 7px;
  }

  .topbar-inner > span {
    display: none;
  }

  .topbar-inner > div {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 3px;
    text-align: center;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-inner {
    padding-block: 58px;
  }

  .hero h1 {
    font-size: clamp(42px, 9vw, 58px);
    line-height: 1.01;
    letter-spacing: -.04em;
  }

  .hero-copy > p {
    max-width: 620px;
    font-size: 16px;
  }

  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-trust div {
    margin: 0;
    padding: 0 10px 0 0;
  }

  .proof-grid,
  .service-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-heading,
  .social-inner,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-heading,
  .social-inner,
  .contact-card {
    gap: 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .social-section {
    padding-block: 72px;
  }

  .contact-card {
    padding: 34px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 28px;
  }

  .footer-main > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .shell {
    padding-inline: 14px;
  }

  .site-header {
    height: 68px;
  }

  .header-inner {
    gap: 7px;
  }

  .brand img {
    width: 94px;
    height: 50px;
  }

  .header-inner > .button-small {
    display: inline-flex;
    padding: 10px 12px;
    font-size: 11px;
    line-height: 1.15;
  }

  .header-inner > .button-small span {
    display: none;
  }

  .menu-btn {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .header-inner nav.open {
    top: 68px;
    max-height: calc(100vh - 68px);
  }

  .topbar-rule {
    display: none;
  }

  .topbar-inner > div {
    font-size: 10px;
  }

  .hero,
  .hero-inner {
    min-height: 0;
  }

  .hero-inner {
    padding-block: 48px;
  }

  .eyebrow,
  .section-kicker {
    letter-spacing: .15em;
  }

  .hero h1 {
    margin-block: 20px;
    font-size: clamp(36px, 11.5vw, 48px);
  }

  .hero-copy > p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    width: 100%;
    gap: 15px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
    min-height: 42px;
  }

  .hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 35px;
  }

  .proof-grid,
  .service-grid,
  .industry-grid,
  .portfolio-grid,
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-grid > div,
  .proof-grid > div:first-child {
    min-height: 92px;
    padding-inline: 18px;
    border: 1px solid var(--line);
    border-top: 0;
  }

  .proof-grid > div:first-child {
    border-top: 1px solid var(--line);
  }

  .section {
    padding-block: 64px;
  }

  .split-heading h2,
  .section-head h2,
  .center-head h2,
  .contact-card h2,
  .social-heading h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .service-card {
    min-height: 0;
  }

  .service-photo,
  .portfolio-card img {
    height: 220px;
  }

  .capability-list {
    padding: 30px 22px;
  }

  .social-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 13px;
    padding: 17px;
  }

  .social-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 22px;
  }

  .social-card b {
    font-size: 16px;
  }

  .contact-card {
    padding: 26px 18px;
  }

  .quote-form {
    padding: 22px 16px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    padding-block: 54px 34px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .chat-launcher,
  .whatsapp {
    width: 50px;
    height: 50px;
    right: 14px;
    padding: 0;
    justify-content: center;
  }

  .chat-launcher {
    bottom: 76px;
  }

  .whatsapp {
    bottom: 14px;
  }

  .chat-launcher span,
  .whatsapp span {
    display: none;
  }

  .chatbox {
    right: 8px;
    bottom: 136px;
    width: calc(100% - 16px);
    height: min(570px, calc(100dvh - 154px));
    border-radius: 15px;
  }

  .chat-head,
  .chat-messages {
    padding: 14px;
  }

  .chat-head > div > span {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 380px) {
  .shell {
    padding-inline: 11px;
  }

  .brand img {
    width: 82px;
  }

  .header-inner > .button-small {
    padding: 9px 10px;
    font-size: 10px;
  }

  .menu-btn {
    flex-basis: 34px;
    width: 34px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-arrow {
    display: none;
  }

  .social-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
