/* Mobile-first refinements layered on top of the primary site stylesheet. */

@media (max-width: 820px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    overflow-x: hidden;
  }

  body.nav-open {
    overflow: hidden;
  }

  .page-shell {
    width: min(calc(100% - 2rem), var(--page-width));
  }

  .navbar {
    min-height: 74px;
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
    gap: 0.65rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 1.2rem;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .nav-toggle {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    touch-action: manipulation;
  }

  .nav-menu {
    position: fixed;
    top: 77px;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100dvh - 77px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.8rem 1rem max(1rem, env(safe-area-inset-bottom));
    background: rgba(11, 23, 36, 0.995);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24);
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a,
  .nav-cta {
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  .nav-links a {
    padding: 0 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
  }

  .nav-cta {
    justify-content: center;
    align-self: stretch;
    margin-top: 0.25rem;
  }

  .hero::after {
    right: -22rem;
    bottom: -24rem;
    opacity: 0.65;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-block: 4.75rem 4rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 10vw, 4.25rem);
    line-height: 1;
  }

  .hero-lead {
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.7rem;
    margin-top: 1.75rem;
  }

  .button {
    min-height: 52px;
    touch-action: manipulation;
  }

  .hero-panel,
  .area-card {
    width: 100%;
    max-width: none;
  }

  .hero-panel {
    padding: 1.5rem;
  }

  .hero-price {
    align-items: flex-start;
  }

  .section,
  .request-section {
    padding-block: 4rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .section-heading > p {
    max-width: 100%;
  }

  .why-layout,
  .area-layout,
  .request-layout,
  .about-layout {
    gap: 2.25rem;
  }

  .service-card,
  .price-card,
  .reason-grid article,
  .process-grid li {
    min-height: 0;
  }

  .service-tag {
    margin-bottom: 1.8rem;
  }

  .process-grid h3 {
    margin-top: 2rem;
  }

  .request-form {
    width: 100%;
  }

  .request-form input,
  .request-form select,
  .request-form textarea {
    font-size: 16px;
  }

  .request-form input,
  .request-form select {
    min-height: 52px;
  }

  .request-form textarea {
    min-height: 150px;
  }

  .footer-grid a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(calc(100% - 1.25rem), var(--page-width));
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    display: block;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-layout {
    padding-block: 4rem 3.25rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11.5vw, 3.25rem);
  }

  .eyebrow,
  .section-label,
  .panel-label,
  .area-kicker {
    letter-spacing: 0.12em;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .button-outline,
  .form-submit {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 0.5rem;
  }

  .hero-panel {
    padding: 1.25rem;
  }

  .hero-price {
    flex-direction: column;
    gap: 0.3rem;
  }

  .trust-grid,
  .service-grid,
  .reason-grid,
  .pricing-grid,
  .process-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-grid > div,
  .trust-grid > div:first-child,
  .trust-grid > div:nth-child(3) {
    min-height: 88px;
    padding: 1rem 1.1rem;
    border-left: 1px solid var(--border);
  }

  .section,
  .request-section {
    padding-block: 3.5rem;
  }

  .section h2,
  .request-section h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .service-card,
  .price-card,
  .area-card {
    padding: 1.3rem;
  }

  .reason-grid article {
    padding: 1.2rem;
  }

  .process-grid li,
  .process-grid li:first-child,
  .process-grid li:nth-child(3) {
    padding: 1.3rem 1.15rem;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .price-card {
    min-height: 0;
  }

  .request-layout {
    gap: 1.75rem;
  }

  .contact-details {
    margin-top: 1.4rem;
  }

  .request-form {
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 14px;
  }

  .form-row {
    gap: 0.9rem;
  }

  .form-submit {
    justify-self: stretch;
  }

  .footer-grid {
    gap: 1.35rem;
    padding-block: 2rem;
  }

  .footer-parent {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--page-width));
  }

  .navbar {
    min-height: 70px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-copy strong {
    max-width: 185px;
    font-size: 0.88rem;
  }

  .nav-menu {
    top: 73px;
    max-height: calc(100dvh - 73px);
    padding-inline: 0.75rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-panel,
  .service-card,
  .price-card,
  .area-card,
  .request-form {
    border-radius: 12px;
  }
}
