/* Phone layout only. Keep the existing tablet and desktop composition intact. */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { line-height: 1.7; }
  .site-header { height: 80px; gap: 12px; }
  .brand-name { font-size: 40px; letter-spacing: -2.8px; }
  .brand-sub { font-size: 7px; letter-spacing: .18em; }
  .header-cta { font-size: 12px; padding-inline: 12px; }
  #mobile-nav { padding: 12px 20px; }
  #mobile-nav a { font-size: 16px; padding-block: 15px; }

  /* Give the copy and the room their own space on a narrow screen. */
  .hero.shell {
    width: calc(100% - var(--gutter) * 2);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--paper);
    color: var(--ink);
    overflow: visible;
  }
  .hero:before, .hero:after { display: none; }
  .hero-copy { order: 0; width: 100%; max-width: none; padding: 22px 0 28px; }
  .hero .local-intro { font-size: 12px; font-weight: 650; color: var(--muted); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(48px, 14vw, 64px); line-height: 1.02; letter-spacing: -.055em; font-weight: 650; }
  .hero h1 span { color: var(--accent); }
  .hero-description { font-size: 16px; line-height: 1.7; margin-top: 22px; }
  .hero-copy > .button { width: 100%; min-height: 54px; font-size: 15px; padding-inline: 20px; margin-top: 24px; }
  .hero-image { order: 1; position: relative; inset: auto; width: 100%; margin: 0; z-index: 0; border-radius: 36px 0 0 0; }
  .hero-image .photo-stage { position: relative; inset: auto; padding-bottom: 62px; background: var(--pale); }
  .hero-image .photo-stage > img { position: static; width: 100%; height: auto; aspect-ratio: 1.32; object-position: 52% center; }
  .hero-image .photo-stage:after { display: none; }
  .hero .photo-point { top: auto; bottom: 9px; transform: none; min-height: 44px; font-size: 12px; gap: 7px; }
  .hero .point-bath { left: 12px; right: auto; }
  .hero .point-heating { left: auto; right: 12px; flex-direction: row; }
  .hero .photo-point > span:first-child { width: 24px; height: 24px; font-size: 20px; background: transparent; color: var(--accent); box-shadow: none; }
  .hero .photo-point > span + span { padding: 0; background: transparent; box-shadow: none; font-weight: 650; }
  .hero-bottom { order: 2; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 20px 0 28px; gap: 20px; }
  .hero-bottom > p:first-child { font-size: 12px; line-height: 1.6; }
  .hero-bottom > .text-link { color: var(--accent); font-size: 12px; line-height: 1.5; max-width: 136px; gap: 12px; padding: 0; }

  /* Full-width rows keep service names readable and easy to tap. */
  .service-tabs.shell { width: calc(100% - var(--gutter) * 2); margin-inline: auto; grid-template-columns: 1fr; gap: 8px; padding: 0 0 28px; border: 0; }
  .service-tabs a { display: flex; align-items: center; min-height: 58px; padding: 14px 18px; border: 1px solid var(--line); font-size: 15px; line-height: 1.5; background: var(--paper); }
  .service-tabs a:last-child { border-right: 1px solid var(--line); }
  .service-tabs a > span { margin: 0; font-size: 20px; color: var(--accent); }
  .service-tabs a:after { display: none; }
  .service-tabs a[aria-selected=true] { background: var(--pale); border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
  .service-tabs a[aria-selected=true] > span { transform: rotate(45deg); }

  h2, .contact-copy h2 { font-size: clamp(28px, 8.2vw, 34px); line-height: 1.18; font-weight: 600; letter-spacing: -.04em; }
  .service-panel { padding-block: 44px; }
  .bath-grid, .heating-grid { gap: 32px; }
  .bath-copy > p, .heating-copy > p, .repair-copy > p { font-size: 16px; line-height: 1.75; margin-top: 20px; }
  .detail-list { margin-block: 24px; font-size: 14px; line-height: 1.65; }
  .detail-list li { gap: 14px; padding-block: 14px; }
  .detail-list li:before { font-size: 12px; flex-shrink: 0; }
  .bath-copy .button, .heating-copy .button, .repair-copy > .button { width: 100%; min-height: 54px; font-size: 15px; padding-inline: 18px; }
  .measured-image > img { height: 300px; }
  .heating-image > img { height: auto; aspect-ratio: 1.3; }
  .repair-details { margin-top: 32px; padding-left: 20px; }
  .repair-details dd, .repair-note { font-size: 15px; line-height: 1.7; }

  .inspiration, .section-pad { padding-block: 56px; }
  .service-overview .inspiration-heading { margin-bottom: 28px; }
  .inspiration-heading p { font-size: 16px; line-height: 1.7; margin-top: 18px; }
  .service-overview .inspiration-grid { gap: 28px; padding: 0; }
  .service-overview .inspiration-grid figure:nth-child(n) { top: 0; margin: 0; padding: 0; border: 0; background: var(--pale); }
  .service-overview .inspiration-grid figure:before,
  .service-overview .inspiration-grid figure:after,
  .service-overview .inspiration-grid figure:nth-child(even) figcaption:before { display: none; }
  .service-overview .inspiration-grid figure:nth-child(n) .service-photo { border-radius: 28px 0 0 0; }
  .service-overview .inspiration-grid img,
  .service-overview .inspiration-grid figure:last-child img { aspect-ratio: 1.6; }
  .service-overview .inspiration-grid figure:nth-child(n) figcaption { padding: 22px 20px 18px; }
  .service-overview .inspiration-grid h3 { font-size: 23px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
  .service-overview .inspiration-grid p { font-size: 15px; line-height: 1.75; margin-top: 12px; min-height: 0; }
  .service-overview .inspiration-grid .text-link { font-size: 14px; line-height: 1.5; width: 100%; justify-content: space-between; gap: 12px; margin-top: 16px; }
  .photo-arrow { width: 44px; height: 44px; right: 14px; bottom: 14px; }

  .process { gap: 32px; }
  .process-heading { grid-template-columns: minmax(0, 1fr) 80px; gap: 12px; }
  .process-heading h2 { font-size: clamp(28px, 8.2vw, 34px); }
  .process-detail { width: 80px; height: 116px; border-top-left-radius: 24px; }
  .process-heading > .text-link { margin-top: 4px; font-size: 14px; }
  .process-flow > li, .process-flow > li + li { grid-template-columns: 32px minmax(0, 1fr); gap: 10px 16px; padding: 24px 0; border-top: 1px solid var(--line); }
  .process-flow > li:last-child { padding-bottom: 0; }
  .flow-number { font-size: 28px; line-height: 1.15; }
  .process-flow h3 { font-size: 20px; line-height: 1.4; padding: 0; }
  .process-flow p { font-size: 15px; line-height: 1.75; }

  .contact-section { padding-block: 48px; }
  .contact-grid { gap: 32px; }
  .contact-copy > p { font-size: 16px; line-height: 1.75; }
  .region { margin-top: 24px; gap: 12px; }
  .region strong { font-size: 15px; }
  .region span { font-size: 13px; }
  .contact-form { padding-top: 28px; }
  .demo-note { font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  label { font-size: 14px; margin-bottom: 9px; }
  input, select, textarea { min-height: 54px; font-size: 16px; padding: 14px; margin-bottom: 22px; }
  textarea { min-height: 140px; }
  form > .button { min-height: 54px; font-size: 15px; }
  .field-note { font-size: 12px; }
  .site-footer { padding-block: 36px; }
  .footer-top { padding: 0; gap: 24px; }
  .footer-top .brand-name { font-size: 56px; letter-spacing: -4px; }
  .footer-top .brand-sub { font-size: 7px; letter-spacing: .2em; margin-top: 8px; }
  .footer-top > p { font-size: 13px; max-width: 110px; }
  .footer-top > .text-link { font-size: 13px; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
}

@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .site-header { gap: 8px; }
  .header-cta { font-size: 11px; padding-inline: 10px; }
  .hero .photo-point { gap: 4px; font-size: 11px; }
  .hero .point-bath { left: 8px; }
  .hero .point-heating { right: 8px; }
  .hero-bottom { gap: 12px; }
  .hero-bottom > .text-link { max-width: 108px; }
  .process-heading { grid-template-columns: minmax(0, 1fr) 64px; }
  .process-detail { width: 64px; height: 104px; }
}
