/* Shared phone and small-tablet refinements for the active pages. */
.mobile-menu-toggle{display:none}
@media(max-width:700px){
  html{scroll-padding-top:12px}
  body{font-size:16px;line-height:1.6}
  .app-shell{width:min(100% - 32px,580px)}
  .app-header{position:relative;z-index:1100;display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;grid-template-rows:48px auto;gap:8px 10px;min-height:0;height:auto;padding:14px 0 10px;align-items:center}
  .wordmark{grid-column:1;grid-row:1;order:initial;width:auto;min-width:0;gap:8px}
  .wordmark>span{font-size:32px}
  .wordmark small{font-size:9px}
  .theme-toggle{grid-column:2;grid-row:1;order:initial;margin:0;width:44px;height:44px;flex-basis:auto}
  .mobile-menu-toggle{grid-column:3;grid-row:1;display:grid;place-content:center;gap:5px;width:44px;height:44px;border:1px solid #d8d9ca;border-radius:50%;background:#f9f8f2;color:var(--forest)}
  .mobile-menu-toggle span{display:block;width:18px;height:1.5px;background:currentColor;border-radius:2px;transition:transform .2s,opacity .2s}
  .mobile-menu-toggle[aria-expanded=true] span:first-child{transform:translateY(6.5px) rotate(45deg)}
  .mobile-menu-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
  .mobile-menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-6.5px) rotate(-45deg)}
  .app-header .main-nav{display:none;position:absolute;top:70px;right:0;left:auto;order:initial;width:min(300px,100%);padding:9px;gap:2px;flex-direction:column;border:1px solid #d8ded1;border-radius:16px;background:#fffdf7;box-shadow:0 18px 42px #263c2c2e}
  .app-header .main-nav.is-open{display:flex}
  .app-header .main-nav a{display:flex;align-items:center;min-height:46px;padding:10px 15px;text-align:left;font-size:16px;line-height:1.2;border-radius:10px;flex:none}
  .app-header .main-nav a[aria-current=page]{background:#e8eee5;color:var(--forest);font-weight:700}
  .header-cta{grid-column:1/-1;grid-row:2;order:initial;justify-content:space-between;min-height:44px;margin:0;padding:10px 15px;font-size:14px;border-radius:12px}
  .single-hero{padding-top:16px}
  .entry{padding-bottom:22px}
  .entry h1{font-size:clamp(36px,9vw,49px);line-height:1.08}
  .entry .eyebrow,.eyebrow{font-size:12px;line-height:1.4}
  .entry-note,.coverage-page .entry-note{font-size:15px;line-height:1.6;margin-top:13px}
  .button,.quiet-link{font-size:14px}
  .app-footer{font-size:12px;line-height:1.5;padding:25px 0;gap:12px}
  .app-footer>div{display:flex;gap:8px 20px;flex-wrap:wrap}
  .app-footer a{font-size:12px;min-height:36px;display:inline-flex;align-items:center}
  /* Home: let the photo and cards use the full phone width. */
  .home-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:300px auto auto;gap:13px;max-height:none}
  .home-photo{grid-column:1;grid-row:1;min-height:300px}
  .home-welcome{grid-column:1;grid-row:2;min-height:0;padding:27px}
  .home-welcome h2{font-size:36px}
  .home-welcome>p:not(.eyebrow){font-size:15px;line-height:1.65;max-width:none}
  .home-welcome .button{min-height:44px;padding:11px 16px;font-size:14px;margin-top:8px}
  .home-welcome .quiet-link{font-size:12px;line-height:1.5}
  .home-start{grid-column:1;grid-row:3;min-height:0;padding:21px}
  .home-start-heading{flex-wrap:wrap;gap:8px;margin-bottom:14px}
  .home-start-heading .eyebrow{font-size:13px}
  .view-switch button{min-height:38px;padding:9px 12px;font-size:12px}
  .home-start .quick-services[data-view=widgets]{grid-template-rows:none;grid-auto-rows:minmax(110px,auto);gap:9px}
  .home-start .quick-services[data-view=widgets]>a,.home-start .quick-services[data-view=widgets]>a:last-child{min-height:110px;padding:13px}
  .home-start .quick-services[data-view=widgets]>a>span:nth-child(2){font-size:17px}
  .home-start .quick-services[data-view=widgets] small{font-size:12px;line-height:1.35}
  .home-start .quick-services[data-view=widgets]>a:nth-child(5)>span:nth-child(2){font-size:18px}
  .home-start .quick-services[data-view=list]{grid-template-rows:none;gap:8px}
  .home-start .quick-services[data-view=list]>a,.home-start .quick-services[data-view=list]>a:last-child{min-height:65px;padding:10px 12px}
  .home-start .quick-services[data-view=list]>a>span:nth-child(2){font-size:16px}
  .home-start .quick-services[data-view=list] small{font-size:12px}
  .photo-caption small{font-size:12px}
  .image-label{font-size:11px}
  /* Service wheel and grid: readable copy and touch targets. */
  .service-view-header p:not(.eyebrow){font-size:14px;line-height:1.5}
  .service-view-switch button{min-height:40px;font-size:13px;padding:9px 14px}
  .wheel-row{max-height:none}
  .wheel-row .service-slide{min-height:0;height:auto;grid-template-rows:220px auto}
  .wheel-row .service-copy{padding:24px}
  .wheel-row .service-copy h2{font-size:clamp(32px,8vw,42px)}
  .wheel-row .service-copy>p{font-size:15px;line-height:1.65}
  .wheel-row .service-copy ul{font-size:14px;line-height:1.45;gap:8px}
  .wheel-row .service-copy .button{min-height:44px;font-size:14px}
  .wheel-row .service-copy>small{font-size:11px;line-height:1.45}
  .wheel-preview{min-height:88px;height:88px}
  .wheel-preview small{font-size:11px}
  .wheel-preview strong{font-size:18px}
  .service-wheel .slider-footer p{font-size:12px}
  .icon-button{width:44px;height:44px}
  .grid-copy>p:not(.eyebrow){font-size:15px;line-height:1.6}
  .grid-actions .button{min-height:44px;font-size:14px}
  .grid-actions .quiet-link{font-size:13px}
  .grid-copy .eyebrow{font-size:11px}
  /* Portfolio and project dialog. */
  .filter-list{gap:6px}
  .filter-list button{min-height:42px;font-size:13px;padding:8px 13px}
  .gallery-disclosure,.gallery-bottom p{font-size:12px;line-height:1.5}
  .portfolio-meta small,.portfolio-index{font-size:11px}
  .modal-copy>p:not(.eyebrow){font-size:15px;line-height:1.6}
  .modal-close{min-width:44px;min-height:44px}
  /* Four-step enquiry. Inputs stay at 16px to avoid iOS zoom. */
  .request-form{padding:24px;min-height:0}
  .form-intro,.form-progress{font-size:13px;line-height:1.5}
  .form-step h3{font-size:clamp(29px,7vw,35px)}
  .form-step label{font-size:14px;line-height:1.4}
  .form-step input:not([type=radio]):not([type=checkbox]),.form-step select,.form-step textarea{font-size:16px;min-height:44px}
  .choice-grid span{font-size:14px;line-height:1.4;min-height:105px}
  .check{font-size:13px!important;line-height:1.5}
  .form-actions .button{min-height:44px;font-size:14px}
  .request-aside p:not(.eyebrow){font-size:14px;line-height:1.6}
  .request-aside .eyebrow{font-size:11px}
  .request-aside a{font-size:13px}
  /* Map: controls and results stay legible and easy to tap. */
  .explorer-head p{font-size:14px;line-height:1.5}
  .explorer-kicker,.panel-kicker{font-size:11px}
  .explorer-search span,.explorer-service span,.radius-heading label{font-size:13px}
  .explorer-search input,.explorer-service select{font-size:16px;min-height:46px}
  .radius-heading output{font-size:13px}
  .radius-ticks{font-size:10px}
  .reset-filters{min-height:44px;font-size:14px}
  .map-floating{font-size:12px;line-height:1.25}
  .map-fit-all{min-height:44px;font-size:12px}
  .explorer-map-bottom{font-size:11px}
  .map-legend{font-size:10px}
  .selected-panel>p,.selected-panel .selected-service{font-size:14px}
  .selected-panel .selected-detail{font-size:13px}
  .selected-panel .selected-brand{font-size:12px}
  .distance-pill{font-size:12px}
  .availability-status{font-size:14px}
  .selected-cta{min-height:46px;font-size:14px}
  .filter-summary{font-size:12px}
  .listing-card{min-height:72px}
  .listing-copy strong{font-size:13px;white-space:normal;line-height:1.25}
  .listing-copy small{font-size:11px}
  .listing-status{font-size:10px}
  .show-more{min-height:44px;font-size:13px}
  .explorer-disclaimer{font-size:11px;line-height:1.55}
  .leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:38px!important}
  html[data-theme=dark] .mobile-menu-toggle{background:#3b4d3b;border-color:#657662;color:#f3ebd9}
  html[data-theme=dark] .app-header .main-nav{background:#2b3e31;border-color:#526950;box-shadow:0 18px 42px #0d1b12aa}
  html[data-theme=dark] .app-header .main-nav a[aria-current=page]{background:#f5f0e7;color:#294534}
}
@media(max-width:420px){
  .app-shell{width:calc(100% - 28px)}
  .wordmark>span{font-size:29px}
  .home-grid{grid-template-rows:260px auto auto}
  .home-photo{min-height:260px}
  .home-start .quick-services[data-view=widgets]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-start .quick-services[data-view=widgets]>a>span:nth-child(2){font-size:15px}
  .home-start .quick-services[data-view=widgets] small{font-size:11px}
  .wheel-row .service-slide{grid-template-rows:205px auto}
  .request-aside{grid-template-columns:1fr}
  .explorer-map-wrap{min-height:420px}
  .listing-status{font-size:9px}
}
@media(max-width:350px){
  .home-start .quick-services[data-view=widgets]{grid-template-columns:1fr;grid-auto-rows:minmax(88px,auto)}
  .home-start .quick-services[data-view=widgets]>a:nth-child(5){grid-column:1}
  .home-start .quick-services[data-view=widgets]>a,.home-start .quick-services[data-view=widgets]>a:last-child{min-height:88px}
  .explorer-map-bottom{display:none}
  .leaflet-bottom.leaflet-left{bottom:6px}
}
/* Language picker beside the theme control. */
.language-selector{position:relative;flex:none}
.language-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-width:55px;height:38px;padding:0 9px;border:1px solid #d8d9ca;border-radius:24px;background:#f9f8f2;color:var(--forest);font-size:12px;font-weight:700;letter-spacing:.03em}
.language-toggle:hover,.language-toggle[aria-expanded=true]{background:#eceee4;border-color:#aeb7a1}
.language-toggle span:last-child{font-size:17px;font-weight:400;line-height:1;margin-top:-4px}
.language-menu{position:absolute;right:0;top:calc(100% + 9px);z-index:1300;width:160px;padding:6px;border:1px solid #d8ded1;border-radius:13px;background:#fffdf7;box-shadow:0 16px 36px #263c2c2e}
.language-menu button{display:block;width:100%;min-height:40px;padding:8px 11px;border:0;border-radius:8px;background:transparent;text-align:left;color:var(--forest);font-size:13px}
.language-menu button:hover,.language-menu button[aria-current=true]{background:#e8eee5;font-weight:700}
html[data-theme=dark] .language-toggle{background:#3b4d3b;border-color:#657662;color:#f3ebd9}
html[data-theme=dark] .language-toggle:hover,html[data-theme=dark] .language-toggle[aria-expanded=true]{background:#4a5d49}
html[data-theme=dark] .language-menu{background:#2b3e31;border-color:#526950;box-shadow:0 16px 36px #0d1b12aa}
html[data-theme=dark] .language-menu button{color:#e9ede1}
html[data-theme=dark] .language-menu button:hover,html[data-theme=dark] .language-menu button[aria-current=true]{background:#435b46}
@media(max-width:1100px) and (min-width:701px){.app-header{gap:12px}.wordmark{width:190px}.main-nav a{padding:8px 14px}.header-cta{padding:10px 13px}}
@media(max-width:700px){.app-header{grid-template-columns:minmax(0,1fr) 44px 44px 44px;gap:8px}.language-selector{grid-column:3;grid-row:1}.language-toggle{width:44px;min-width:44px;height:44px;padding:0;gap:2px;font-size:11px}.language-toggle span:last-child{font-size:14px}.mobile-menu-toggle{grid-column:4}.app-header .main-nav{top:70px}}
@media(max-width:350px){.app-header{gap:6px}.wordmark{gap:5px}.wordmark svg{width:22px}.wordmark>span{font-size:26px}}
/* Five navigation links in the old header. This is a layout count, not the service catalogue. */
@media(max-width:1250px) and (min-width:701px){.main-nav a{padding-left:12px;padding-right:12px}.wordmark{width:190px}.app-header{gap:12px}.header-cta{padding-left:13px;padding-right:13px;gap:10px}}
@media(max-width:980px) and (min-width:701px){.app-header{flex-wrap:wrap;height:auto;padding:16px 0}.wordmark{width:auto}.main-nav{order:5;width:100%;justify-content:center}.main-nav a{flex:1;text-align:center}.header-cta{margin-left:auto}}

/* Keep footer CTAs as pills on small screens */
@media(max-width:700px){
  .app-footer .footer-cta{padding:8px 14px;border-radius:20px;border:1px solid #c5cbb8;background:#fff;color:var(--forest);font-size:12px;font-weight:500;min-height:36px}
  .app-footer .footer-wa{background:var(--terra);border-color:var(--terra);color:#fff}
}
