/* Loaded only for phones. These rules have no effect above 720px. */
@media (max-width: 720px) {
  :root {
    --mobile-gutter: clamp(18px, 5vw, 28px);
    scroll-padding-top: 22px;
  }
  .wrap { width: calc(100% - var(--mobile-gutter) * 2); max-width: 600px; }
  .wrap > *, .hero-message, .final-copy, .service, .project-info,
  .review > div, .education-item > div, .why-item > div { min-width: 0; }
  main h1, main h2, main h3, main p, main dd, .footer a, .footer button { overflow-wrap: break-word; }

  /* The authentic logo and existing controls fit a compact phone header. */
  .header-row { min-height: 74px; gap: 12px; }
  .brand { padding-block: 4px; }
  .brand img { width: 108px; height: 58px; }
  .header-actions { gap: 10px; }
  .header-phone { min-height: 44px; padding: 9px 5px; gap: 7px; font-size: .9375rem; }
  .header-phone svg { width: 19px; height: 19px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; color: var(--navy); }
  .mobile-menu-icon { display: block; width: 23px; height: 23px; }
  .mobile-menu-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .menu-close { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-bars { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .nav { padding: 12px var(--mobile-gutter) 24px; background: var(--navy); border-bottom: 0; box-shadow: 0 8px 16px #06234918; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nav > a { display: flex; align-items: center; min-height: 52px; padding: 13px 0; color: #fff; font-size: 1rem; line-height: 1.5; border-bottom: 1px solid #ffffff1c; }
  .nav > a:hover { color: #fff; }
  .nav a::after { content: none; }
  .header .nav.open > .btn { display: flex; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px; padding: 14px 20px; background: var(--blue); color: #fff; border: 1px solid transparent; font-size: 1rem; }
  .nav .btn::after { content: none; }

  /* The full width photograph stays behind the original hero copy. */
  .hero-content { min-height: 0; padding-top: 34px; padding-bottom: 36px; }
  .hero-message { max-width: none; }
  .hero h1, .destination-page .destination-hero h1 { font-size: clamp(2rem, 8.7vw, 2.65rem); line-height: 1.09; letter-spacing: -.025em; max-width: none; margin-bottom: 20px; }
  .hero-message > p, .destination-page .destination-hero-copy p { font-size: 1rem; line-height: 1.6; max-width: none; }
  .hero-background { object-position: 73% center; }
  .rating-placeholder { align-items: center; gap: 13px; margin-top: 23px; }
  .rating-placeholder p { font-size: .875rem; line-height: 1.5; }
  .mobile-hero-cta { width: 100%; min-height: 52px; margin-top: 24px; padding: 14px 18px; font-size: 1rem; }

  /* All initial fields and actions form one readable column. */
  .opening-wrap { margin-top: 0; padding-top: 24px; }
  .opening-card:not(:has(.confirmation)) { display: block; padding: 24px 18px; }
  .form-intro { display: block; margin-bottom: 24px; }
  .form-intro h2 { max-width: none; font-size: 1.75rem; line-height: 1.12; margin-bottom: 12px; }
  .form-intro p { max-width: none; font-size: 1rem; line-height: 1.6; }
  .estimate-form, .final-card .estimate-form,
  .destination-page .destination-estimate-layout .estimate-form,
  .destination-page .destination-availability .estimate-form { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .estimate-form .field { gap: 8px; }
  .estimate-form .field label { font-size: .9375rem; line-height: 1.4; }
  .estimate-form .field input { width: 100%; min-width: 0; height: 52px; padding: 12px 13px; font-size: 1rem; }
  .estimate-form > .btn, .final-card .estimate-form > .btn { width: 100%; min-width: 0; min-height: 52px; padding: 14px 18px; font-size: 1rem; margin-top: 2px; }
  .estimate-form .form-error { grid-column: 1; grid-row: auto; font-size: .9375rem; }
  .call-note, .final .call-note { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 17px; font-size: .9375rem; line-height: 1.5; text-align: center; }
  .call-note .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 1rem; }

  .section { padding-block: 36px; }
  main h2 { font-size: clamp(1.75rem, 6.8vw, 2rem); line-height: 1.14; }
  .services { margin-top: 0; padding-block: 36px; }
  .services h2 { max-width: none; margin-bottom: 26px; }
  .service-grid, .project-grid, .reviews-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { gap: 34px; }
  .service-photo { width: 100%; height: auto; aspect-ratio: 1.6; margin-bottom: 16px; }
  .service h3 { font-size: 1.375rem; line-height: 1.2; margin-bottom: 12px; }
  .service p { max-width: none; font-size: 1rem; line-height: 1.6; margin-bottom: 10px; }
  .service > .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }

  .process { padding-block: 36px; }
  .process-grid, .destination-page .destination-process .process-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .process-intro { display: block; }
  .process h2 { max-width: none; font-size: 1.875rem; line-height: 1.14; }
  .process-estimate { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: .9375rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 16px; }
  .step-number { font-size: 1.875rem; line-height: 1.1; }
  .steps h3 { max-width: none; margin-bottom: 8px; font-size: 1.0625rem; line-height: 1.4; }
  .steps p { max-width: none; font-size: 1rem; line-height: 1.6; }

  .why { display: flex; flex-direction: column; }
  .why-photo { min-height: 0; aspect-ratio: 1.6; }
  .why-content { padding: 34px var(--mobile-gutter) 36px; }
  .why h2 { max-width: none; margin-bottom: 27px; font-size: 1.875rem; line-height: 1.14; }
  .why-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .why-item { gap: 14px; }
  .why-item h3 { margin-bottom: 9px; font-size: 1.0625rem; line-height: 1.35; }
  .why-item p { font-size: 1rem; line-height: 1.6; }

  .section-head { display: block; margin-bottom: 24px; }
  .section-head p { max-width: none; margin-top: 13px; font-size: 1rem; line-height: 1.6; }
  .project-grid { gap: 32px; }
  .project-photo { height: auto; aspect-ratio: 1.55; }
  .photo-placeholder { max-width: 100%; font-size: .8125rem; line-height: 1.4; overflow-wrap: break-word; }
  .project-info h3 { font-size: 1.375rem; line-height: 1.22; }
  .project-info dl { grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: .9375rem; line-height: 1.5; padding-bottom: 15px; }
  .project-info dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .project-info dd { margin: 0; overflow-wrap: break-word; }
  .scope-placeholder { font-size: 1rem; line-height: 1.6; }

  .reviews { padding-block: 34px; }
  .reviews-top h2 { font-size: 1.875rem; line-height: 1.14; }
  .reviews-grid { gap: 16px; }
  .review { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px; }
  .review .google-g { width: 24px; height: 25px; margin: 0; }
  .review blockquote { font-size: 1rem; line-height: 1.65; margin-bottom: 16px; }
  .review figcaption { font-size: .9375rem; line-height: 1.5; }

  /* Education photos now precede their original text instead of squeezing it. */
  .education-layout, .education-grid, .education-item { grid-template-columns: minmax(0, 1fr); }
  .education-layout { gap: 26px; }
  .education-grid { gap: 32px; }
  .education-item { gap: 17px; }
  .education-item > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 26%; }
  .education-item > img.size-image { object-position: 75% 28%; }
  .education h2 { max-width: none; font-size: 1.875rem; line-height: 1.14; }
  .education h3 { font-size: 1.1875rem; line-height: 1.3; margin-bottom: 12px; }
  .education p { font-size: 1rem; line-height: 1.6; margin-bottom: 12px; }
  .service-area { padding-block: 24px; }
  .service-area p { font-size: 1rem; line-height: 1.6; }

  .faq-layout, .faq-columns { grid-template-columns: minmax(0, 1fr); }
  .faq-layout { gap: 24px; }
  .faq-columns { gap: 8px; }
  .faq h2 { max-width: none; font-size: 1.875rem; line-height: 1.14; }
  .faq details { margin-bottom: 8px; }
  .faq summary { min-height: 56px; padding: 16px 42px 16px 16px; font-size: 1rem; line-height: 1.45; }
  .faq summary::after { right: 12px; top: 50%; transform: translateY(-50%); }
  .faq details p { padding: 0 16px 18px; font-size: 1rem; line-height: 1.6; }

  .final { padding-block: 36px; }
  .final-grid, .destination-page .destination-final-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .final h2 { max-width: none; font-size: 1.875rem; line-height: 1.14; }
  .final-copy > p { max-width: none; font-size: 1rem; line-height: 1.6; }
  .destination-page .destination-final .btn { width: 100%; max-width: none; min-height: 52px; padding-inline: 18px; font-size: 1rem; }
  .footer { padding: 30px 0 calc(98px + env(safe-area-inset-bottom)); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .footer-nav, .footer-services { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-content: start; align-items: start; }
  .footer-nav > *, .footer-services > *, .footer-contact > a, .footer-contact > button { display: flex; align-items: center; min-height: 44px; padding-block: 10px; font-size: .9375rem; line-height: 1.5; }
  .footer-contact { grid-column: 1; display: grid; gap: 0; font-size: .9375rem; }
  .footer-contact > span { padding-top: 8px; line-height: 1.5; }
  .footer-services { padding-block: 16px; }
  .legal p { font-size: .875rem; line-height: 1.5; }

  /* Use the same two actions and the existing visibility/keyboard logic. */
  .sticky-mobile { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); }
  .sticky-mobile .phone { grid-column: 1; grid-row: 1; min-height: 50px; gap: 5px; font-size: .9375rem; }
  .sticky-mobile .btn { grid-column: 2; grid-row: 1; min-width: 0; min-height: 50px; padding: 13px 15px; font-size: 1rem; }

  /* Existing destination content follows the same phone column and type scale. */
  .destination-page .destination-hero-content,
  .destination-page .destination-hero--estimate .destination-hero-content { min-height: 0; padding-block: 34px 36px; }
  .destination-page .destination-hero-message,
  .destination-page .destination-hero-copy,
  .destination-page .destination-prose { max-width: none; min-width: 0; }
  .destination-page .destination-hero-message > .btn { width: 100%; max-width: none; min-height: 52px; padding-inline: 18px; font-size: 1rem; }
  .destination-page .destination-section { padding-block: 34px; }
  .destination-page .destination-benefits,
  .destination-page .destination-about-principles,
  .destination-page .destination-locations,
  .destination-page .destination-section--services .destination-links,
  .destination-page .destination-estimate-layout { grid-template-columns: minmax(0, 1fr); }
  .destination-page .destination-benefits article { grid-template-columns: 44px minmax(0, 1fr); gap: 0 15px; }
  .destination-page .destination-benefits .destination-icon { width: 44px; height: 44px; }
  .destination-page .destination-about-principle { grid-template-columns: 44px minmax(0, 1fr); gap: 0 15px; }
  .destination-page .destination-about-principle .destination-icon { width: 44px; height: 44px; }
  .destination-page .destination-about-principle h2 { font-size: 1.5rem; line-height: 1.2; }
  .destination-page .destination-benefits p,
  .destination-page .destination-prose > p:not(.destination-eyebrow),
  .destination-page .destination-about-principle p,
  .destination-page .destination-locations p { font-size: 1rem; line-height: 1.6; }
  .destination-page .destination-availability .destination-estimate-card:not(:has(.confirmation)) { padding: 24px 18px; }
  .destination-page .destination-availability { padding-top: 0; }
  .destination-page .destination-estimate-layout { padding-block: 30px 36px; gap: 35px; }
  .destination-page .destination-next-steps h2,
  .destination-page .destination-form-title { font-size: 1.75rem; line-height: 1.15; }
  .destination-page .destination-step-list p { font-size: 1rem; line-height: 1.6; }
  .destination-page .destination-form-support { font-size: .9375rem; line-height: 1.5; }
  .destination-page .destination-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .destination-page .destination-links .text-link { min-height: 44px; font-size: 1rem; line-height: 1.5; padding-block: 10px; }
  .destination-page .destination-contact-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .destination-page .destination-contact-options > * { display: flex; align-items: center; min-height: 44px; padding-block: 9px; font-size: 1rem; }

  /* Centered confirmation and editable customer number, with stacked optional fields. */
  .estimate-card:has(> .confirmation--received) { width: 100%; max-width: 600px; padding: 22px 18px 18px; }
  .opening-wrap:has(> .estimate-card > .confirmation--received) { margin-top: -140px; padding-top: 0; }
  .destination-page .destination-estimate-layout:has(.confirmation) { margin-top: -120px; }
  .confirmation--received .confirmation-received-top h2 { font-size: 1.75rem; line-height: 1.12; }
  .confirmation--received .confirmation-details-header { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .confirmation--received .confirmation-details-icon { width: 36px; height: 36px; }
  .confirmation--received .confirmation-details-icon svg { width: 24px; height: 24px; }
  .confirmation--received .confirmation-details-header h3 { font-size: 1.5rem; line-height: 1.15; }
  .confirmation--received .optional-form { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .confirmation--received .field input,
  .confirmation--received .field select { height: 52px; font-size: 1rem; }
  .confirmation--received .optional-form > .btn { min-height: 52px; font-size: 1rem; }
  .confirmation--received .edit-phone,
  .confirmation--received .optional-form > .skip-details { min-height: 44px; }
  .confirmation--received .confirmation-phone-box { max-width: 100%; }
  .info-dialog { padding: 24px 20px; max-height: calc(100dvh - 40px); overflow-y: auto; }

  /* Homepage hero reference: phone presentation only. Other pages and the
     existing estimate section below the hero retain their current styling. */
  body:not(.destination-page) > .header .header-row { min-height: 64px; gap: 14px; }
  body:not(.destination-page) > .header .brand { padding-block: 3px; }
  body:not(.destination-page) > .header .brand img { width: 98px; height: 53px; }
  body:not(.destination-page) > .header .header-actions { gap: 18px; }
  body:not(.destination-page) > .header .header-phone { gap: 8px; font-size: 1.125rem; padding-inline: 0; }
  body:not(.destination-page) > .header .header-phone svg { width: 21px; height: 21px; }
  body:not(.destination-page) > .header .mobile-menu-icon { width: 25px; height: 25px; }

  body:not(.destination-page) main > .hero .hero-background {
    object-fit: cover;
    object-position: 54% center;
  }
  body:not(.destination-page) main > .hero .hero-overlay {
    background:
      linear-gradient(0deg, #062349ed 0%, #06234978 32%, #06234900 72%),
      linear-gradient(90deg, #062349f4 0%, #062349c7 34%, #06234967 61%, #0623490a 100%);
  }
  body:not(.destination-page) main > .hero .hero-content {
    min-height: 0;
    padding-top: clamp(72px, 18vw, 82px);
    padding-bottom: 38px;
  }
  body:not(.destination-page) main > .hero h1 {
    max-width: 10.2em;
    margin-bottom: 18px;
    font-size: clamp(2.125rem, 9.15vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -.025em;
    text-shadow: 0 2px 12px #06234940;
  }
  body:not(.destination-page) main > .hero h1 span { display: block; color: var(--blue); }
  body:not(.destination-page) main > .hero .hero-message > p {
    max-width: 24rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  body:not(.destination-page) main > .hero .rating-placeholder {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  body:not(.destination-page) main > .hero .rating-copy { gap: 7px 9px; }
  body:not(.destination-page) main > .hero .rating-placeholder p { font-size: .875rem; line-height: 1.4; }
  body:not(.destination-page) main > .hero .rating-placeholder .google-g { width: 27px; height: 28px; }
  body:not(.destination-page) main > .hero .rating-stars { font-size: .9375rem; letter-spacing: .06em; }
  body:not(.destination-page) main > .hero .mobile-hero-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 999px;
    font-size: 1rem;
  }
  body:not(.destination-page) main > .hero .mobile-hero-cta::after { content: none; }
  body:not(.destination-page) main > .hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 18px;
    border-radius: 24px 24px 0 0;
    background: #fff;
    pointer-events: none;
  }
}
