﻿/* ==========================================================================
   ODEN-STEEL COMPONENT / PHONE CTA
   --------------------------------------------------------------------------
   Shared premium telephone CTA. Used by Service FAQ footer and Reality Check
   outro (and any future mount). Visual system is singular — do not fork.
   ========================================================================== */

.phone-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: var(--phone-cta-height);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-btn-pill);
  color: var(--phone-cta-text);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(246, 246, 244, 1) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(0, 0, 0, 0.06) inset,
    0 14px 32px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    background-color 220ms ease;
}

.phone-cta__icon {
  display: grid;
  flex: 0 0 var(--phone-cta-icon-size);
  place-items: center;
  width: var(--phone-cta-icon-size);
  height: var(--phone-cta-icon-size);
  border: 1px solid var(--phone-cta-divider);
  border-radius: 50%;
  color: var(--phone-cta-text);
  background: linear-gradient(180deg, #ffffff 0%, #eeeeeb 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 5px 12px rgba(0, 0, 0, 0.12);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-cta__phone-svg {
  display: block;
  width: 22px;
  height: 22px;
}

.phone-cta__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 0 30px 0 22px;
  color: var(--phone-cta-text);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.018em;
  white-space: nowrap;
}

.phone-cta__desktop-label {
  display: inline;
}

.phone-cta__mobile-label {
  display: none;
}

.phone-cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .phone-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(
      180deg,
      var(--phone-cta-bg-hover) 0%,
      #ecece8 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 -1px 0 rgba(0, 0, 0, 0.07) inset,
      0 18px 36px rgba(0, 0, 0, 0.32),
      0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .phone-cta:hover .phone-cta__icon {
    transform: translateY(-1px);
  }

  .phone-cta:active {
    transform: translateY(0) scale(0.99);
  }
}

@media (max-width: 767px) {
  .phone-cta {
    display: flex;
    width: fit-content;
    max-width: 100%;
    min-height: var(--phone-cta-height-mobile);
    margin-inline: auto;
  }

  .phone-cta__icon {
    flex-basis: var(--phone-cta-icon-size-mobile);
    width: var(--phone-cta-icon-size-mobile);
    height: var(--phone-cta-icon-size-mobile);
  }

  .phone-cta__phone-svg {
    width: 20px;
    height: 20px;
  }

  .phone-cta__label {
    min-width: 140px;
    padding: 0 24px 0 18px;
    font-size: 1rem;
  }

  .phone-cta__desktop-label {
    display: none;
  }

  .phone-cta__mobile-label {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-cta,
  .phone-cta__icon {
    transition: none;
  }

  .phone-cta:hover,
  .phone-cta:active,
  .phone-cta:hover .phone-cta__icon {
    transform: none;
  }
}
