/* Shared phone and tablet layout. Loaded after the main stylesheet. */
@media (max-width: 960px) {
  .container { padding-inline: 24px; }
  .header-inner { flex-wrap: nowrap; min-height: 86px; gap: 20px; }
  .brand { min-width: 0; }
  .brand-logo { max-width: 200px; max-height: 64px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #81947d; border-radius: 8px; background: transparent; color: #123c31; font-size: 16px; flex-shrink: 0; }
  .primary-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 18px 24px 24px; max-height: calc(100dvh - 120px); overflow-y: auto; background: #f7f8f0; border-bottom: 1px solid #bdcdbd; box-shadow: 0 16px 24px #123c3110; }
  .primary-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .primary-nav ul { display: grid; gap: 0; padding: 0; align-items: stretch; width: 100%; }
  .primary-nav li { width: 100%; }
  .primary-nav li > a { display: flex; align-items: center; min-height: 48px; padding: 12px 0; font-size: 17px; white-space: normal; }
  .primary-nav .sub-menu { display: grid; position: static; padding: 0 0 8px 18px; border: 0; min-width: 0; }
  .primary-nav > .button { justify-content: space-between; min-height: 48px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-width: 0; }
  .landing-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .landing-hero figure { width: 100%; max-width: 680px; margin-top: 0; }
  .landing-hero figure .service-photo { max-height: 420px; }
  .landing-quote-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .landing-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .landing-points, .landing-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .site-footer .footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding: 30px 0; }
  .site-footer .footer-grid > .footer-intro,
  .site-footer .footer-grid > .footer-contact { grid-column: 1 / -1; min-width: 0; }
  .site-footer .footer-grid > nav { grid-column: auto; min-width: 0; }
  .site-footer .footer-grid .footer-intro p { max-width: 540px; font-size: 16px; line-height: 1.65; }
  .site-footer .footer-grid .contact-actions { display: flex; flex-flow: row wrap; align-items: stretch; gap: 12px; max-width: none; margin: 20px 0 0; }
  .site-footer .footer-grid .contact-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 12px 16px; width: auto; flex: 0 1 auto; font-size: 15px; line-height: 1.4; overflow-wrap: normal; }
  .site-footer .footer-grid .contact-actions .facebook-button { width: auto; flex-basis: auto; }
  .site-footer .footer-grid nav h3 { margin-bottom: 8px; font-size: 17px; line-height: 1.4; }
  .site-footer .footer-grid nav a { min-height: 44px; padding: 10px 0; font-size: 15px; line-height: 1.5; overflow-wrap: normal; }
  .site-footer .footer-grid .footer-contact { border-top: 1px solid #416155; padding-top: 24px; }
  .site-footer .footer-grid .footer-phone { font-size: 23px; line-height: 1.4; }
  .site-footer .footer-contact a[href^="mailto:"] { display: block; max-width: 100%; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; }
  .site-footer .footer-contact p { max-width: 520px; margin: 10px 0 0; font-size: 15px; }
  .site-footer .business-details { padding: 20px 0; font-size: 14px; line-height: 1.7; }
}

@media (max-width: 680px) {
  .container { padding-inline: 22px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading > p { margin-top: 20px; max-width: none; font-size: 16px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-grid .service-card:nth-child(n) { grid-column: auto; padding: 22px; }
  .service-grid .service-card .service-photo { aspect-ratio: 16 / 10; width: 100%; max-height: none; margin-bottom: 20px; }
  .service-grid .service-card h3 { font-size: 23px; line-height: 1.3; margin-bottom: 12px; }
  .service-grid .service-card p { font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
  .service-grid .card-link { display: flex; align-items: center; min-height: 44px; font-size: 16px; }
  .hero .hero-grid { padding-top: 36px; }
  .hero h1 { font-size: clamp(36px, 9vw, 48px); line-height: 1.08; }
  .hero-description { font-size: 16px; }
  .hero-art { max-width: 440px; }
  .hero-photo { max-height: 360px !important; }
  .page-heading { padding: 24px 0 32px; }
  .page-heading h1, .landing-hero h1 { font-size: clamp(32px, 8vw, 44px); line-height: 1.13; overflow-wrap: break-word; }
  .landing-lead { font-size: 21px; line-height: 1.45; }
  .landing-section, .landing-split { padding-block: 32px; }
  .landing-panel { padding: 24px; }
  .landing-content h2 { font-size: 29px; line-height: 1.2; }
  .landing-content p, .landing-content li { font-size: 16px; }
  .postcode-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 100%; }
  .postcode-start label { min-width: 0; }
  .postcode-start .button { width: 100%; justify-content: space-between; white-space: normal; }
  .work-showcase { padding: 24px; border-radius: 18px; gap: 24px; }
  .work-showcase-copy h2 { font-size: 32px; line-height: 1.15; }
  .work-showcase-copy h2 br { display: none; }
  .work-showcase-photos { gap: 12px; }
  .work-showcase-photo > span { flex-direction: row; align-items: center; gap: 8px; padding: 12px; min-height: 64px; font-size: 14px; }
  .work-showcase-photo > span > span { flex-shrink: 0; }
  .curated-gallery { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .curated-gallery .project-card-pair { grid-column: auto; }
  .project-card-pair .project-photos { grid-template-columns: minmax(0, 1fr); }
  .project-card-pair .project-image img { aspect-ratio: 4 / 5; }
  .gallery-toolbar { gap: 16px; }
  .gallery-filters { gap: 8px; }
  .gallery-filters button { min-height: 44px; font-size: 14px; }
  .gallery-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .gallery-dialog-bar, .gallery-dialog-controls { padding: 12px; gap: 8px; }
  .gallery-dialog-bar p { font-size: 15px; line-height: 1.45; }
  .gallery-dialog button { min-height: 44px; padding: 10px; font-size: 14px; }
  .about-intro, .about-grid, .about-enquiry, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-method { padding: 20px; }
  .contact-quote-panel { padding: 24px; }
  form.ase-quote { min-width: 0; width: 100%; max-width: 100%; padding: 24px 20px; border-radius: 16px; }
  .ase-quote fieldset { min-width: 0; }
  .ase-quote .ase-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ase-quote .ase-field input, .ase-quote .ase-field select, .ase-quote .ase-field textarea { min-width: 0; max-width: 100%; font-size: 16px; }
  .ase-quote .ase-service-choices label { align-items: flex-start; gap: 10px; padding: 14px; line-height: 1.5; }
  .ase-quote .ase-service-choices label > span { min-width: 0; }
  .ase-quote input[type="checkbox"] { margin-top: 2px; }
  .ase-quote .ase-form-actions { align-items: stretch; gap: 10px; }
  .ase-quote .ase-form-actions button { min-height: 48px; padding: 14px 16px; font-size: 16px; line-height: 1.4; white-space: normal; }
  .ase-quote .ase-form-actions .ase-next { flex: 1; min-width: 0; margin-left: 0; }
  .ase-quote .ase-form-actions .ase-back { flex: 0 0 auto; }
  .ase-quote .ase-review { padding: 18px; overflow-wrap: anywhere; }
  .site-footer .footer-top { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding: 36px 0 28px; gap: 24px; }
  .site-footer .footer-top h2 { font-size: 32px; line-height: 1.15; }
  .site-footer .footer-top h2 br { display: none; }
  .site-footer .footer-top .eyebrow { max-width: 320px; margin-bottom: 18px; font-size: 13px; line-height: 1.6; }
  .site-footer .footer-top > div > p:last-child { font-size: 16px; }
  .site-footer .footer-top > .button { width: 100%; min-height: 52px; justify-content: space-between; font-size: 16px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer .footer-grid .footer-brand { width: 180px; margin-bottom: 16px; }
  .site-footer .footer-grid .contact-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .site-footer .footer-grid .contact-actions a { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; font-size: 15px; white-space: nowrap; }
  .site-footer .footer-grid .contact-actions .facebook-button { width: 100%; }
  .site-footer .footer-grid .contact-actions svg { flex-shrink: 0; }
  .site-footer .footer-grid .footer-contact h3 { margin-bottom: 12px; }
  .site-footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 0 calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 14px; line-height: 1.6; }
}

@media (max-width: 360px) {
  .container { padding-inline: 18px; }
  .header-inner { gap: 12px; }
  .brand-logo { max-width: 176px; }
  .service-grid .service-card:nth-child(n) { padding: 18px; }
  .work-showcase { padding: 20px; }
  .work-showcase-photos { grid-template-columns: minmax(0, 1fr); }
  .work-showcase-photo:nth-child(2) { margin-top: 0; }
  .work-showcase-photo img { aspect-ratio: 4 / 3; }
  .site-footer .footer-grid { gap: 24px 16px; }
  .site-footer .footer-grid nav a { font-size: 14px; }
  .site-footer .footer-contact a[href^="mailto:"] { font-size: 14px; }
}

/* Published information pages: readable line lengths, headings and touch links. */
.legal-page .prose { max-width: 78ch; font-size: 17px; line-height: 1.75; }
.legal-page .prose h2 { margin-top: 44px; margin-bottom: 18px; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 24px; }
.legal-page .prose h3 { margin-top: 30px; line-height: 1.4; }
.legal-page .prose p, .legal-page .prose li { color: #243f34; line-height: 1.75; }
.legal-page .prose li { margin-bottom: 10px; }
.legal-page .legal-contents { padding: 22px 24px; margin: 30px 0; background: #e8efde; border: 1px solid #b8c9b1; border-radius: 12px; }
.legal-page .legal-contents p { margin-bottom: 8px; }
.legal-page .legal-contents ul { margin-bottom: 0; }
.legal-page .legal-contents a { display: inline-block; padding: 8px 0; line-height: 1.6; }
.legal-page .prose blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid #315d35; background: #edf2e6; }
@media (max-width: 680px) {
  .legal-page .prose { font-size: 16px; }
  .legal-page .prose h2 { margin-top: 32px; font-size: 25px; }
  .legal-page .legal-contents { padding: 18px; }
  .legal-page .prose blockquote { padding: 16px; }
}

/* The render photo keeps the wall and cleaning brush in view. */
.service-photo--render-cleaning { object-position: 50% 50%; }
.service-strip .container { flex-wrap: wrap; }
