.mobile-quote-fab {
  display: none;
}

.contact-method {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
}

.method-icon {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(0, 174, 239, .12);
  border: 1px solid rgba(99, 212, 255, .14);
  flex: 0 0 auto;
}

.method-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method .method-label,
.contact-method strong {
  grid-column: 2;
}

/* Small contact icons used in every site footer. */
.footer .footer-links a[href^="mailto:"],
.footer .footer-links a[href^="tel:"],
.footer .footer-links a[href*="instagram.com"] {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.footer .footer-links a[href^="mailto:"]::before,
.footer .footer-links a[href^="tel:"]::before,
.footer .footer-links a[href*="instagram.com"]::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1px solid rgba(99, 212, 255, .14);
  background-color: rgba(0, 174, 239, .11);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.footer .footer-links a[href^="mailto:"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aeef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.footer .footer-links a[href^="tel:"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aeef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6A19.79 19.79 0 0 1 2.12 4.18 2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.12.9.33 1.78.62 2.63a2 2 0 0 1-.45 2.11L8 9.91a16 16 0 0 0 6 6l1.45-1.28a2 2 0 0 1 2.11-.45c.85.29 1.73.5 2.63.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.footer .footer-links a[href*="instagram.com"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300aeef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.7' fill='%2300aeef' stroke='none'/%3E%3C/svg%3E");
}

@media (max-width: 620px) {
  /* Keep horizontal overflow contained without clipping fixed mobile controls/glows. */
  html,
  body {
    overflow-x: hidden;
  }

  .site-shell {
    overflow-x: clip;
    overflow-y: visible;
  }

  .mobile-quote-fab {
    position: fixed;
    right: 18px;
    bottom: calc(28px + env(safe-area-inset-bottom));
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #00141c;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -.01em;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
      0 16px 42px rgba(0,174,239,.34),
      0 8px 24px rgba(0,0,0,.38);
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
  }

  /* Soft glow is separate from the button so it stays smooth around the full pill. */
  .mobile-quote-fab::before {
    content: "";
    position: absolute;
    inset: -10px -12px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(0,174,239,.18);
    filter: blur(15px);
    pointer-events: none;
  }

  .mobile-quote-fab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
  }

  .mobile-quote-fab:active {
    transform: translateY(1px) scale(.985);
  }

  body:has(.mobile-quote-fab) .footer {
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .contact-method {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .method-icon {
    width: 48px;
    height: 48px;
  }

  .method-icon svg {
    width: 23px;
    height: 23px;
  }

  .footer .footer-links a[href^="mailto:"]::before,
  .footer .footer-links a[href^="tel:"]::before,
  .footer .footer-links a[href*="instagram.com"]::before {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    background-size: 15px 15px;
  }
}
