.mobile-menu-toggle,
.mobile-menu{
  display:none;
}

.nav-spacer{
  width:136px;
  height:1px;
  justify-self:end;
}

.mobile-menu-toggle{
  width:48px;
  height:48px;
  padding:0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.mobile-menu-toggle-bars{
  display:grid;
  gap:4px;
}

.mobile-menu-toggle-bars span{
  display:block;
  width:18px;
  height:2px;
  border-radius:999px;
  background:#111;
  transition:transform .2s ease, opacity .2s ease;
}

.mobile-menu-toggle.is-open .mobile-menu-toggle-bars span:nth-child(1){
  transform:translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-open .mobile-menu-toggle-bars span:nth-child(2){
  opacity:0;
}

.mobile-menu-toggle.is-open .mobile-menu-toggle-bars span:nth-child(3){
  transform:translateY(-6px) rotate(-45deg);
}

@media(max-width:950px){
  body{
    overflow-x:hidden;
  }

  .nav{
    grid-template-columns:auto 1fr auto;
    gap:14px !important;
  }

  .nav-links{
    display:none !important;
  }

  .nav > .btn.btn-primary{
    display:none !important;
  }

  .nav-spacer{
    display:none !important;
  }

  .nav > a:first-child{
    grid-column:1;
  }

  .mobile-menu-toggle{
    display:inline-flex;
    grid-column:3;
    justify-self:end;
  }

  .mobile-menu{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    padding:0 0 14px;
    max-height:calc(100svh - var(--header-height, 90px));
    overflow:auto;
    background:rgba(255,255,255,.98);
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 30px rgba(15,23,42,.08);
  }

  .mobile-menu[data-open="true"]{
    display:block;
  }

  .mobile-menu-panel{
    display:grid;
    gap:10px;
    padding-top:14px;
  }

  .mobile-menu-link{
    display:block;
    padding:14px 16px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    font-weight:700;
  }

  .mobile-menu-link.active{
    border-color:rgba(229,37,42,.24);
    background:#fff7f7;
  }

  .mobile-menu-panel .btn{
    width:100%;
    margin-top:4px;
  }

  section{
    padding:58px 0 !important;
  }

  .page-hero{
    padding:42px 0 30px !important;
  }

  .page-hero h1{
    margin-bottom:12px !important;
    font-size:clamp(2rem, 8vw, 3rem) !important;
    max-width:100% !important;
  }

  .page-hero p{
    max-width:100% !important;
    font-size:1rem !important;
  }

  .section-head,
  .section-head-left{
    max-width:100% !important;
    margin-bottom:28px !important;
  }

  .steps-grid,
  .service-grid,
  .about-layout,
  .contact,
  .contact-box,
  .contact-grid,
  .project-layout,
  .project-grid,
  .cta-box{
    gap:24px !important;
  }

  .projects-section{
    padding-top:56px !important;
    padding-bottom:96px !important;
  }

  .projects-top{
    gap:18px !important;
    margin-bottom:24px !important;
  }

  .projects-top .section-head{
    max-width:100% !important;
  }

  .service-grid{
    margin-top:40px !important;
    padding-top:40px !important;
  }

  .project-banner img{
    height:180px !important;
  }

  .project-card-body,
  .project-body{
    padding:82px 18px 18px !important;
  }

  .project-card-body h4,
  .project-body h3{
    font-size:1.12rem !important;
  }

  .project-card-body p,
  .project-body p{
    max-width:100% !important;
    font-size:.94rem !important;
  }

  .content-card + .content-card{
    margin-top:26px !important;
  }

  .project-visual img{
    height:300px !important;
    border-radius:18px !important;
  }

  .info-card,
  .form-card{
    padding:22px !important;
  }

  .map-card{
    min-height:300px !important;
  }

  .map-card iframe{
    height:300px !important;
  }

  .footer-inner{
    gap:10px !important;
  }
}

@media(max-width:700px){
  :root{
    --header-height:82px;
  }

  section{
    padding:48px 0 !important;
  }

  .container{
    width:min(var(--max), calc(100% - 24px)) !important;
  }

  .nav{
    min-height:var(--header-height) !important;
  }

  .nav > a:first-child img{
    height:48px !important;
    width:auto !important;
  }

  .hero{
    min-height:calc(100svh - var(--header-height, 90px)) !important;
    background-position:64% center !important;
  }

  .page-hero{
    padding:36px 0 24px !important;
  }

  .hero-copy{
    transform:none !important;
    max-width:100% !important;
    padding-right:8px !important;
  }

  .hero-content{
    padding:30px 0 18px !important;
  }

  .hero h1{
    margin-bottom:12px !important;
    max-width:8ch !important;
    font-size:clamp(2.45rem, 10vw, 3.25rem) !important;
    line-height:.98 !important;
  }

  .hero p{
    max-width:100% !important;
    margin-bottom:20px !important;
    font-size:1rem !important;
  }

  .hero-actions,
  .contact-actions,
  .cta-actions{
    flex-direction:column;
    align-items:stretch !important;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .cta-actions .btn,
  .projects-top > .btn{
    width:100%;
  }

  .project-visual img{
    height:240px !important;
    border-radius:18px !important;
  }

  .step-card h4{
    font-size:1.18rem !important;
  }

  .service-grid h3,
  .contact h2,
  .cta-box h2,
  .about-copy h2{
    font-size:clamp(1.75rem, 8vw, 2.35rem) !important;
  }

  .projects-top{
    margin-bottom:20px !important;
  }

  .slider-wrap{
    overflow-x:auto !important;
    padding:2px 2px 8px !important;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x pan-y;
    scrollbar-width:none;
  }

  .slider-wrap::-webkit-scrollbar{
    display:none;
  }

  .project-slider{
    width:max-content;
    gap:16px !important;
  }

  .project-card{
    min-width:min(85vw, 320px) !important;
    height:320px !important;
    scroll-snap-align:start;
  }

  .project-card img{
    height:100% !important;
  }

  .about-list{
    gap:14px !important;
  }

  .about-list li{
    gap:8px !important;
    font-size:1rem !important;
  }

  .about-list li::before{
    font-size:1.35rem !important;
  }

  .certification{
    gap:18px !important;
    margin-top:22px !important;
    align-items:center !important;
  }

  .certification img{
    height:52px !important;
    max-width:140px !important;
  }

  .certification .logo-installq{
    height:48px !important;
    max-width:132px !important;
  }

  .certification .logo-vca{
    height:52px !important;
    max-width:128px !important;
  }

  .certification .logo-nen{
    height:40px !important;
    max-width:90px !important;
  }

  .field textarea{
    min-height:140px !important;
  }

  .map-card{
    min-height:280px !important;
  }

  .map-card iframe{
    height:280px !important;
  }

  .map-meta{
    padding:10px 14px !important;
  }

  .form-note,
  .footer-inner > div:nth-child(2){
    font-size:.9rem !important;
  }

  .footer-nav{
    line-height:1.9;
  }
}
