/* Mobile menu and phone-width hero (added 2026-11-10) */

/* Phone header: taller bar, smaller buttons, shadow (Rai, 2026-11-11) */
@media (max-width:640px){
  html header{box-shadow:0 4px 16px rgba(30,58,43,.12)}
  html .nav{padding-top:20px;padding-bottom:20px}
  html .menu-btn{width:38px;height:38px}
  html .nav-cta .btn-primary{height:38px}
  html .menu-btn svg,html .nav-cta .btn-primary svg{width:18px;height:18px}
}
@media (max-width:420px){html .nav-cta .btn-primary{width:38px}}
.menu-btn{display:none;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border:1px solid var(--ll-forest);border-radius:999px;background:transparent;color:var(--ll-forest);cursor:pointer;padding:0}
.menu-btn svg{width:22px;height:22px}
.menu-btn .i-close{display:none}
header.menu-open .menu-btn .i-open{display:none}
header.menu-open .menu-btn .i-close{display:block}
.menu-btn:focus-visible{outline:3px solid var(--ll-plum);outline-offset:2px}

@media (max-width:1000px){
  .menu-btn{display:inline-flex}
  header .links{display:none}
  header.menu-open .links{display:flex;flex-direction:column;gap:0;position:absolute;left:0;right:0;top:100%;background:var(--bg-page);border-bottom:1px solid var(--border-subtle);padding:8px 20px 20px;box-shadow:0 12px 24px rgba(30,58,43,.12)}
  header.menu-open .links a{display:block;padding:14px 4px;font-size:18px;border-bottom:1px solid var(--border-subtle)}
  header.menu-open .links a:last-child{border-bottom:none}
}

@media (max-width:640px){
  .hero .hero-tall,.hero .hero-col,.hero .hero-shot{display:none}
}

@media (max-width:420px){
  .nav{gap:12px}
  .nav-cta{gap:8px}
  .nav-cta .btn-primary{width:44px;height:44px;padding:0;border-radius:999px}
  .nav-cta .btn-primary .ph-num{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* Phone-width polish (Rai, 2026-11-10). "html" prefix outranks each page's own <style>. */
.trust-track{display:contents}
.trust .clone,.tile-dots{display:none}

@media (max-width:640px){
  /* Type (!important: some headings carry inline or more specific sizes) */
  html body{font-size:16px}
  html .display{font-size:36px!important}
  html .h2{font-size:30px!important}
  html .h3{font-size:24px!important}
  html .lead{font-size:17px}

  /* Side margins */
  html .wrap,html .nav,html .hero-grid{padding-left:16px;padding-right:16px}
  html .hero-card{padding:28px 20px}
  html .band{margin:0 8px}
  html footer{margin-left:8px;margin-right:8px;margin-bottom:8px} /* keep each page's own top margin: the footer overlaps the section above */
  html .scroller{padding-left:16px;padding-right:16px}
  html .panel .body{padding:24px 20px 28px}

  /* Trust strip as a moving ticker */
  html .trust{display:block;width:auto;margin:0;border-radius:0;border-left:0;border-right:0;padding:14px 0;overflow:hidden}
  html .trust .trust-track{display:flex;width:max-content;animation:ll-ticker 24s linear infinite}
  html .trust .trust-track span{flex:none;white-space:nowrap;font-size:15px;padding-right:40px}
  html .trust .clone{display:flex}

  /* Service photos as a swipe carousel */
  html .tiles{display:flex;grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding:0 16px;scroll-padding-left:16px;scrollbar-width:none}
  html .tiles::-webkit-scrollbar{display:none}
  html .tiles .tile{flex:0 0 82%;scroll-snap-align:start}
  html .tile-dots{display:flex;justify-content:center;gap:8px;margin-top:16px}
  html .tile-dots button{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--ll-forest);opacity:.25;cursor:pointer}
  html .tile-dots button[aria-current="true"]{opacity:1;width:22px;border-radius:999px}

  /* Services: heading above the carousel, room for the dots */
  html .stage{display:flex;flex-direction:column}
  html .stage .copyblk{order:-1;margin:0 auto 24px;padding:0 16px}
  html .tile-dots{margin-bottom:8px}

  /* About section: no photo */
  html #about .photo{display:none}
}
@keyframes ll-ticker{to{transform:translateX(-50%)}}
@media (max-width:640px) and (prefers-reduced-motion:reduce){
  html .trust{overflow-x:auto}
  html .trust .trust-track{animation:none}
  html .trust .clone{display:none}
}

/* Services scatter: once the text has faded in, keep it (and the All services button) above the photos (2026-11-11) */
.scatter.copy-on .stage .copyblk{z-index:20}
/* Desktop "Our services" drop-down (Rai, 2026-11-11) */
.nav-dd{position:relative;display:flex;align-items:center}
.nav-dd>a::after{content:"";display:inline-block;width:6px;height:6px;margin-left:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.dd-menu{display:none;position:absolute;top:100%;left:-14px;margin-top:14px;min-width:250px;flex-direction:column;padding:8px;background:var(--bg-page);border:1px solid var(--border-subtle);border-radius:var(--radius-md);box-shadow:0 16px 32px rgba(30,58,43,.14);z-index:60}
.dd-menu::before{content:"";position:absolute;left:0;right:0;top:-16px;height:16px}
.nav-dd:hover .dd-menu,.nav-dd:focus-within .dd-menu{display:flex}
header .dd-menu a{display:block;padding:10px 12px;border-radius:10px;font-size:15px;font-weight:600;white-space:nowrap;color:var(--ll-forest)}
header .dd-menu a:hover,header .dd-menu a:focus-visible{background:var(--ll-cream-2);color:var(--ll-plum)}
header .dd-menu a[aria-current="page"]{color:var(--ll-plum)}
header .dd-menu a:first-child{border-bottom:1px solid var(--border-subtle);border-radius:10px 10px 0 0;margin-bottom:4px}
@media (max-width:1000px){
  .nav-dd{display:contents}
  .nav-dd>a::after{display:none}
  html .dd-menu{display:none!important}
}

/* Phones: homepage service tabs fit the screen, no sideways scroll (2026-11-11) */
@media (max-width:640px){
  html .tabbar{overflow-x:visible;justify-content:stretch;gap:4px}
  html .tabbar button{flex:1 1 0;min-width:0;padding:10px 4px 12px;font-size:15px;line-height:1.2;letter-spacing:.02em}
}
