/* Responsive styles */
@media (max-width:1280px) {
  .services .wrap {
    grid-template-columns: auto 1fr;
    row-gap: 40px
  }

  .services .wrap>.svc-intro {
    padding-right: 0
  }

  .svc {
    grid-column: auto;
    align-self: stretch
  }

  .years {
    grid-row: span 1
  }

  .svc:nth-of-type(1) {
    grid-column: 1/2
  }

  .foot-main {
    grid-template-columns: auto 1fr;
    row-gap: 30px
  }

  .contacts {
    margin-left: 40px;
    padding: 6px 0 6px 40px;
    border-right: 0
  }

  .since {
    justify-self: start;
    grid-column: 1
  }

  .social {
    justify-self: end
  }
}

@media (max-width:1100px) {
  .topbar-right {
    display: none
  }

  .burger {
    display: flex
  }

  .header {
    height: 76px
  }

  .header .logo {
    margin-bottom: -20px
  }

  .header .logo img {
    width: 160px
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 76px);
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px clamp(20px, 5vw, 75px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .25s;
    overflow-y: auto
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none
  }

  .nav>a,
  .dd-toggle {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid #222;
    font-size: 18px
  }

  .nav>a.active::after {
    display: none
  }

  .dropdown {
    width: 100%
  }

  .dd-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border-top: 0;
    background: transparent;
    padding: 0 0 0 16px
  }

  .dropdown.open .dd-menu {
    display: block
  }

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #050505
  }

  .hero .wrap {
    order: 1;
    padding-top: 64px;
    padding-bottom: 36px
  }

  .hero-stripe {
    order: 2;
    position: relative;
    inset: auto;
    height: 54px;
    z-index: 2;
    clip-path: polygon(0 40px, 100% 0, 100% 14px, 0 54px)
  }

  .hero {
    --hb: 60px;
    padding-bottom: var(--hb)
  }

  .hero-slides {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--hb) - 40px), 0 calc(100% - var(--hb)))
  }

  .hero-overlay {
    clip-path: none;
    background: linear-gradient(rgba(5, 5, 5, .62), rgba(5, 5, 5, .5))
  }

  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .why .wrap {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 34px
  }

  .why-item:nth-child(4) {
    border-left: 0
  }

  .cta {
    height: auto;
    padding: 36px 0
  }

  .cta::before {
    clip-path: none
  }

  .cta::after {
    display: none
  }

  .cta .wrap {
    flex-wrap: wrap
  }

  .cta .btn-dark {
    margin-left: 140px
  }
}

@media (max-width:760px) {
  .topbar {
    height: auto;
    padding: 10px 0
  }

  .topbar-left {
    flex-wrap: wrap;
    gap: 8px 24px
  }

  .topbar-left .sep {
    display: none
  }

  .hero .wrap {
    padding-top: 56px;
    padding-bottom: 30px
  }

  .hero {
    --hb: 0px;
    padding-bottom: var(--hb)
  }

  .lead {
    margin: 24px 0 36px
  }

  .btn {
    height: 54px;
    padding: 0 26px
  }

  .btns {
    gap: 14px
  }

  .services .wrap {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px
  }

  .years,
  .services .wrap>.svc-intro {
    grid-column: 1 / -1
  }

  .svc:nth-of-type(1) {
    grid-column: auto
  }

  .svc:nth-of-type(3) {
    grid-column: 1 / -1
  }

  .svc h3 {
    font-size: 22px
  }

  .svc p {
    font-size: 14px
  }

  .years {
    border-right: 0;
    border-bottom: 1px solid #8a7a14;
    padding: 0 0 30px;
    margin: 0;
    text-align: center
  }

  .years .o {
    letter-spacing: .14em;
    padding-left: .14em
  }

  .svc {
    border-left: 0;
    border-top: 1px solid #8a7a14;
    padding: 28px 0 0;
    min-height: 0
  }

  .why .wrap {
    grid-template-columns: repeat(2, 1fr)
  }

  .why-item {
    border-left: 0 !important
  }

  .why-item:nth-child(5) {
    grid-column: 1/-1
  }

  .work-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
  }

  .card span {
    height: auto;
    min-height: 54px;
    padding: 8px 12px;
    gap: 8px;
    font-size: 14px;
    line-height: 1.2
  }

  .card .ico {
    flex-shrink: 0;
    width: 18px;
    height: 18px
  }

  .cta .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center
  }

  .cta .btn-dark {
    margin: 10px 0 0
  }

  .chat {
    width: 80px;
    height: 80px
  }

  .foot-main {
    grid-template-columns: 1fr auto;
    column-gap: 0
  }

  .foot-main .logo {
    grid-column: 1 / -1;
    justify-self: center
  }

  .since {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333
  }

  .since img {
    display: block;
    width: clamp(116px, 32vw, 190px);
    height: auto
  }

  .social {
    grid-column: 1 / -1;
    justify-self: center;
    gap: 16px;
    margin-top: 4px
  }

  .social svg {
    width: 34px;
    height: 34px
  }

  .contacts {
    grid-column: 1;
    grid-row: 2;
    align-self: stretch;
    margin: 0;
    padding: 24px 16px 24px 0;
    border: 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333
  }

  .contacts li {
    font-size: 14px;
    gap: 10px;
    word-break: break-word
  }

  .contacts .ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0
  }


  .foot-bar .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center
  }

  .foot-bar nav {
    justify-content: center;
    gap: 10px 22px
  }

  .foot-bar nav a,
  .foot-bar nav a:first-child {
    padding: 0;
    border-left: 0
  }
}

/* ===== About page (about-us.html) ===== */
@media (max-width:1100px) {
  .hero.ab-hero {
    min-height: 0
  }

  /* colour of the section below the hero follows the diagonal */
  .hero.ab-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--hb) + 40px);
    background: #fff;
    z-index: 3;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%)
  }

  /* hero followed by a dark/textured section (add class hero-next-dark to the hero):
     the next section is pulled up and its top edge is cut along the stripe */
  .hero.ab-hero.hero-next-dark::after {
    display: none
  }

  .hero-next-dark+section {
    position: relative;
    z-index: 1;
    margin-top: -100px;
    padding-top: 164px;
    clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%)
  }

  .ab-hero .hero-overlay {
    clip-path: none
  }

  .ab-hero .hero-stripe {
    clip-path: polygon(0 40px, 100% 0, 100% 14px, 0 54px)
  }

  .why-us .wrap {
    grid-template-columns: 1fr
  }

  .why-us-intro p:not(.ab-kicker) {
    max-width: 640px
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
    border-left: 0;
    align-self: stretch
  }
}

@media (max-width:760px) {
  .hero-next-dark+section {
    margin-top: -40px;
    padding-top: 104px
  }
}

@media (max-width:900px) {
  .ab-story {
    grid-template-columns: 1fr
  }

  .ab-story-media {
    min-height: 300px
  }

  .ab-story-media img {
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 94%)
  }

  .ab-story-media::after {
    clip-path: polygon(0 94%, 100% 84%, 100% 90%, 0 100%)
  }

  .ab-story-copy {
    padding: 32px clamp(20px, 5vw, 75px) 44px
  }

  .ab-work .wrap {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {
  .why-us-grid {
    grid-template-columns: 1fr
  }

  .why-us-item {
    padding: 22px 0
  }
}

@media (max-width:560px) {
  .ab-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none
  }

  .ab-gallery img,
  .ab-gallery img:first-child {
    grid-row: auto;
    height: auto;
    aspect-ratio: 16 / 10
  }
}

/* Commercial page: services panel */
@media (max-width:1100px) {
  .why-us-commercial .wrap {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .why-us-commercial-intro p:not(.ab-kicker) {

    max-width: 640px
  }

  .why-us-commercial-grid {
    align-self: stretch
  }
}

@media (max-width:640px) {
  .why-us-commercial-grid {
    grid-template-columns: 1fr;
    border-left: 0;
    border-top: 1px solid rgba(0, 0, 0, .55)
  }

  .why-us-commercial-item {
    box-shadow: none;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .35)
  }

  .why-us-commercial-item:last-child {
    border-bottom: 0;
    text-align: left
  }
}

/* Commercial page: maintenance services strip */
@media (max-width:760px) {
  .why-commercial .wrap {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px
  }

  .why-commercial-item {
    min-height: 0
  }

  .why-commercial-item:nth-child(odd) {
    border-left: 0
  }

  .why-commercial-item svg {
    width: 56px;
    height: 64px
  }
}

/* Commercial page: inset story section */
@media (max-width:900px) {
  .ab-story-inset {
    padding-top: 28px;
    padding-bottom: 36px
  }

  .ab-story-inset .ab-story-media {
    min-height: 300px
  }

  .ab-story-inset .ab-story-copy {
    padding: 32px 0 0
  }
}


/* Revive a Drive page */
@media (max-width:1280px) {
  .rv-process .wrap {
    grid-template-columns: 1fr;
    row-gap: 28px
  }

  .rv-process-title {
    border-right: 0;
    padding-right: 0;
    margin-right: 0
  }
}

@media (max-width:1100px) {
  .rv-adv .wrap {
    grid-template-columns: 1fr;
    row-gap: 36px
  }

  .rv-adv-head,
  .rv-adv-copy {
    border-right: 0;
    padding: 0
  }

  .rv-feats {
    padding-left: 0;
    border-top: 1px solid #8a7a14
  }
}

@media (max-width:900px) {
  .rv-steps {
    grid-template-columns: 1fr;
    row-gap: 32px
  }

  .rv-step::after {
    display: none
  }
}

@media (max-width:760px) {
  .rv-ba {
    grid-template-columns: 1fr
  }
}

@media (max-width:480px) {
  .rv-feat span {
    font-size: 17px
  }

}


/* Our Work page */
@media (max-width:1100px) {
  .ow-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
  }

  .ow-filter+.ow-filter::before {
    display: none
  }

  .ow-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:560px) {
  .ow-grid {
    grid-template-columns: 1fr
  }

  .ow-ba {
    grid-column: auto
  }

  .ow-ba--tags .ow-tag {
    top: 6px;
    left: 6px;
    padding: 4px 9px;
    font-size: 11px
  }

  .ow-filter {
    height: 50px;
    font-size: 14px
  }
}


/* Lightbox */
@media (max-width:760px) {
  .lb {
    padding: 64px 12px 24px
  }

  .lb-nav {
    top: auto;
    bottom: 14px;
    margin-top: 0;
    width: 46px;
    height: 46px
  }

  .lb-prev {
    left: 16px
  }

  .lb-next {
    right: 16px
  }

  .lb-img {
    max-height: calc(100vh - 210px)
  }

  .lb-cap {
    font-size: 17px
  }

  .lb-close {
    top: 12px;
    right: 12px
  }
}


/* Contact page */
@media (max-width:1100px) {
  .ct-main .wrap {
    grid-template-columns: 1fr
  }

  .ct-map-box {
    grid-template-columns: 1fr
  }

  .ct-map-box iframe {
    min-height: 320px
  }

  .ct-map-side {
    padding: 8px 24px
  }
}

@media (max-width:560px) {
  .ct-form {
    grid-template-columns: 1fr;
    padding: 20px
  }

  .ct-ico {
    width: 60px;
    height: 60px
  }

  .ct-ico svg {
    width: 28px;
    height: 28px
  }

  .ct-item {
    gap: 16px
  }

  .ct-item p {
    font-size: 16px;
    word-break: break-word
  }

  .ct-card-head {
    padding: 12px 16px;
    gap: 14px
  }
}