/* Page shell — Desert Coast multi-radial wash, Westwood teal theme */

:root {
  --shell-stone: #f9f8f5;
  --shell-accent: #33b8b3;
  --shell-accent-deep: #2a9e9a;
  --shell-footer-radius: 2.4rem;
}

@media (min-width: 768px) {
  :root {
    --shell-footer-radius: 3.2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --shell-footer-radius: 4rem;
  }
}

body.page-shell-body {
  background-color: var(--shell-stone);
}

body.page-shell-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-main-shell {
  position: relative;
  z-index: 1;
  background-color: var(--shell-stone);
  background-image:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(51, 184, 179, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 12% 78%, rgba(42, 158, 154, 0.09) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 92% 58%, rgba(51, 184, 179, 0.10) 0%, transparent 48%),
    radial-gradient(ellipse 48% 38% at 78% 18%, rgba(42, 158, 154, 0.08) 0%, transparent 50%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  border-bottom-left-radius: var(--shell-footer-radius);
  border-bottom-right-radius: var(--shell-footer-radius);
}

@media (max-width: 767px) {
  .site-main-shell {
    background-attachment: scroll;
  }
}

/* Let the wash read through solid section fills */
.site-main-shell .doctor-section,
.site-main-shell .results-section,
.site-main-shell .insurance-section,
.site-main-shell #services.how-tms-section,
.site-main-shell #policies,
.site-main-shell .site-footer,
.site-main-shell .site-footer--peripheral,
.site-main-shell > footer {
  background: transparent;
}

/* Floating contact FABs — Desert Coast sizing/radius, Westwood teal */
.floating-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-contact .fab-btn {
  display: inline-flex;
  overflow: hidden;
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 1px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: transparent;
  font: inherit;
}

.floating-contact .fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(51, 184, 179, 0.45);
}

.floating-contact .fab-beam {
  position: absolute;
  inset: -100%;
  animation: fab-spin 3s linear infinite;
  background: conic-gradient(from 90deg at 50% 50%, transparent 0%, transparent 75%, #ffffff 100%);
  opacity: 1;
  pointer-events: none;
}

.floating-contact .fab-surface {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 11px;
  background: #33b8b3;
  color: #fff;
  font-family: 'Geist', 'DM Sans', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.floating-contact .fab-btn:hover .fab-surface {
  transform: scale(1.05);
}

.floating-contact .fab-surface svg {
  position: relative;
  z-index: 10;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.floating-contact .fab-label {
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .floating-contact {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 1rem;
  }

  .floating-contact .fab-surface {
    gap: 0.75rem;
    font-size: 15.5px;
    padding: 14.5px 28px;
  }

  .floating-contact .fab-surface svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 767px) {
  .floating-contact {
    bottom: 0.75rem;
    right: 0.75rem;
    gap: 0.5rem;
  }
}

@keyframes fab-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
