/* Homepage-only mobile design, Figma 40:31. */
.mobile-menu-toggle, .mobile-hero-image, .mobile-services-title { display: none; }
.service-card > picture, .about-picture { display: contents; }
picture > source { display: none; }
/* The mobile-only heading must not change desktop card selectors. */
.service-card:nth-of-type(1) { min-height: 238px; }
.service-card:nth-of-type(2) { min-height: 272px; }
.service-card:nth-of-type(3) { min-height: 384px; }
.service-card:nth-of-type(1) .service-image { height: 157px; }
.service-card:nth-of-type(2) .service-image { height: 141px; }

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .site-header { height: 64px; min-height: 64px; display: flex; align-items: center; padding: 10px 16px; }
  .mobile-menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .mobile-menu-toggle span { width: 24px; height: 2px; border-radius: 1px; background: white; }
  .mobile-menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
  .nav { display: none; position: absolute; top: 64px; right: 0; left: 0; height: auto; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px 16px 16px; background: var(--charcoal); }
  .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:nth-child(n) { width: 100%; padding: 12px; text-align: right; }
  .hero { position: relative; display: block; height: auto; min-height: 0; aspect-ratio: 390 / 413; padding: 0; }
  .mobile-hero-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-copy { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; }
  .hero-copy h1, .hero-copy p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero .portrait-wrap { display: none; }
  .hero-copy .button { position: absolute; bottom: 4.358%; left: 6.427%; width: 87.147%; height: 54px; min-height: 54px; border: 0; border-radius: 31px; background: linear-gradient(to right, #e1a72a 48.558%, #8e6a1c); color: var(--charcoal); font-size: 21px; line-height: 1.45; font-weight: 800; }
  .services { min-height: 0; padding: 24px 16px; gap: 16px; }
  .mobile-services-title { display: block; margin: 0; color: white; font-size: 21px; line-height: 1.45; font-weight: 800; text-align: center; }
  .service-card:nth-child(n) { width: 100%; min-height: 0; padding: 16px; border-width: 2px; border-radius: 16px; gap: 16px; grid-template-columns: minmax(0, 1fr); }
  .service-card:nth-child(n) .service-image { display: block; width: 100%; height: 180px; aspect-ratio: auto; border-radius: 12px; object-fit: cover; }
  .service-content { padding: 0; gap: 0; text-align: center; }
  .service-content h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; color: var(--charcoal); }
  .service-content p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
  .service-content .button { width: 100%; min-width: 0; min-height: 41px; margin: 8px 0 0; padding: 10px 16px; border: 0; border-radius: 12px; color: white; font-size: 14px; font-weight: 700; line-height: 1.5; }
  .contact-section { padding: 24px 16px; }
  .contact-card { padding: 20px; box-shadow: none; font-family: "Heebo", Arial, sans-serif; }
  .form-header { margin-bottom: 16px; text-align: center; }
  .form-header h2 { font-size: 24px; line-height: 1.45; }
  .form-header p { font-size: 14px; line-height: 1.45; }
  .paired-fields { display: contents; }
  .contact-card label { margin-top: 12px; font-size: 14px; }
  .contact-card input, .contact-card textarea { min-height: 44px; font-family: "Heebo", Arial, sans-serif; font-size: 14px; }
  .contact-card textarea { min-height: 80px; }
  .submit-button { min-height: 48px; margin-top: 16px; font-family: "Heebo", Arial, sans-serif; }
  .form-status:empty { display: none; }
  .about-section { padding: 24px 16px; font-family: "Heebo", Arial, sans-serif; }
  .about-lead { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .about-copy { display: contents; }
  .about-copy .about-eyebrow { order: -3; margin: 0 0 8px; font-size: 18px; line-height: 26px; font-weight: 700; }
  .about-copy h2 { order: -2; margin: 0 0 16px; font-size: 28px; line-height: 41px; text-align: center; }
  .about-picture { display: block; order: -1; position: relative; overflow: hidden; width: 234px; height: 239px; align-self: center; margin-bottom: 16px; border: 1px solid var(--gold); border-radius: 16px; }
  .about-portrait { position: absolute; width: 99.87%; height: 147.09%; max-width: none; left: .12%; top: -4.96%; margin: 0; border: 0; border-radius: 0; object-fit: fill; }
  .about-section p { margin: 0 0 24px; font-size: 15px; line-height: 1.6; }
  .about-copy p:last-child, .about-more p:last-child { margin-bottom: 0; }
  .about-more { margin-top: 20px; }
  footer { min-height: 0; padding: 16px 16px 24px; gap: 57px; flex-wrap: nowrap; font-family: "Heebo", Arial, sans-serif; color: var(--muted); }
  footer a { padding: 0; font-size: 14px; }
}
