/* Final responsive layer shared by the dynamically enhanced pages. */
html,
body {
  max-width: 100%;
}

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

@media (max-width: 991.98px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header.common-nav,
  .site-header.common-nav.home-nav {
    z-index: 200;
    height: 76px;
    min-height: 76px;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .common-nav .brand {
    min-width: 0;
    font-size: 15px;
  }

  .common-nav .brand-symbol {
    width: 28px;
    height: 32px;
    font-size: 23px;
  }

  .common-nav .menu-toggle,
  .site-header.common-nav.home-nav .menu-toggle {
    position: relative;
    z-index: 202;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 13px 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    color: #fff;
    background: rgba(16, 25, 33, .18);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .common-nav.is-scrolled .menu-toggle {
    border-color: rgba(32, 37, 43, .2);
    color: #20252b;
    background: rgba(255, 255, 255, .82);
  }

  .common-nav .menu-toggle span {
    width: 24px;
    height: 1.5px;
    flex: 0 0 auto;
    background: currentColor;
    transform-origin: center;
    transition: transform .25s ease;
  }

  .common-nav .menu-toggle.open,
  .common-nav.is-scrolled .menu-toggle.open {
    position: fixed;
    top: 16px;
    right: 20px;
    border-color: rgba(255, 255, 255, .32);
    color: #fff;
    background: rgba(255, 255, 255, .08);
  }

  .common-nav .menu-toggle.open span:first-child {
    transform: translateY(4.25px) rotate(45deg);
  }

  .common-nav .menu-toggle.open span:last-child {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  .common-nav .main-nav,
  .site-header.common-nav.home-nav .main-nav {
    position: fixed;
    inset: 0 -100% 0 auto;
    z-index: 201;
    width: min(86vw, 340px);
    height: 100dvh;
    padding: 104px 34px 42px;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow-y: auto;
    color: #fff;
    background: #172433;
    box-shadow: -18px 0 45px rgba(0, 0, 0, .25);
    transition: right .3s ease;
  }

  .common-nav .main-nav.open,
  .site-header.common-nav.home-nav .main-nav.open {
    right: 0;
  }

  .common-nav .main-nav a,
  .site-header.common-nav.home-nav .main-nav a {
    padding: 14px 0;
    border: 0;
    color: #fff;
    font: 500 25px/1.2 "Optima", serif;
    letter-spacing: 0;
    text-transform: none;
    opacity: .82;
  }

  .common-nav .main-nav a.active {
    opacity: 1;
  }

  .common-nav .main-nav a::after,
  .site-header.common-nav.home-nav .main-nav a::after {
    display: none;
  }

  .common-nav .nav-cta,
  .site-header.common-nav.home-nav .nav-cta {
    display: none;
  }

  .drawer-overlay {
    z-index: 190;
  }

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

  .construction-enquiry .enquiry-layout {
    --bs-gutter-x: 1.5rem;
  }

  .site-footer.footer-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    padding: 52px max(24px, 7vw) 24px;
  }

  .footer-four > div,
  .footer-four a,
  .footer-four p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .footer-four > div:first-child,
  .footer-four .footer-bottom {
    grid-column: 1 / -1;
  }

  .footer-four .footer-brand-column {
    order: 1;
  }

  .footer-four .footer-explore-column {
    order: 2;
  }

  .footer-four .footer-contact-column {
    order: 3;
  }

  .footer-four .footer-projects-column {
    order: 4;
  }

  .footer-four .footer-bottom {
    order: 5;
  }
}

@media (max-width: 575.98px) {
  .section-pad {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero.home-hero {
    min-height: 640px;
    height: 100svh;
  }

  .home-hero .hero-content {
    right: 22px;
    left: 22px;
    max-width: none;
  }

  .home-hero .hero-title {
    overflow-wrap: anywhere;
  }

  .intro .display br,
  .projects-showcase-heading h2 br {
    display: none;
  }

  .about-section .about-visual {
    height: 390px;
  }

  .about-section .stats-panel {
    width: min(46%, 180px);
  }

  .services-section .service-media {
    height: auto;
  }

  .project-showcase-card {
    min-height: 360px;
  }

  .project-showcase-copy {
    padding: 28px 24px;
  }

  .project-showcase-copy p {
    max-width: 100%;
  }

  .project-gallery-slider {
    padding: 36px 0 54px;
  }

  .project-gallery-track {
    gap: 14px;
    padding-bottom: 12px;
  }

  .project-gallery-slide,
  .project-gallery-slide.gallery-wide,
  .project-gallery-slide.gallery-narrow,
  .home-page .project-gallery-slide.gallery-wide,
  .home-page .project-gallery-slide.gallery-narrow {
    width: 86vw;
    height: min(92vw, 360px);
  }

  .construction-enquiry .enquiry-title {
    font-size: clamp(39px, 12vw, 54px);
  }

  .construction-enquiry .enquiry-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer.footer-four {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 22px 22px;
  }

  .footer-four > div:first-child,
  .footer-four .footer-bottom {
    grid-column: auto;
  }

  .footer-four .footer-about {
    max-width: 100%;
  }

  .footer-four .brand-symbol {
    width: 34px;
    height: 38px;
    color: var(--nav-gold, #a98543);
    font-size: 27px;
  }

  .footer-four .footer-heading {
    margin-bottom: 13px;
  }

  .footer-four .footer-bottom {
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
  }

  .footer-four .footer-bottom div {
    gap: 16px;
  }
}

@media (max-width: 380px) {
  .site-header.common-nav,
  .site-header.common-nav.home-nav {
    padding-right: 16px;
    padding-left: 16px;
  }

  .common-nav .brand {
    font-size: 13px;
  }

  .common-nav .brand-logo {
    width: 108px;
  }

  .common-nav .brand-symbol {
    width: 24px;
    font-size: 20px;
  }

  .about-section .stats-panel {
    width: 48%;
    padding: 16px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .common-nav .main-nav,
  .common-nav .menu-toggle span,
  .drawer-overlay {
    transition: none;
  }
}
