/* Restrained interaction and contrast layer. Motion is pointer- and preference-gated. */

:root {
  --coral: #B4495A;
  --coral-ink: #B4495A;
  --orange-cta: #C2410C;
  --red-cta: #C8102E;
}

.text-coral,
a.text-coral,
.nav-link:hover {
  color: var(--coral-ink);
}

.btn-coral {
  background: var(--coral-ink);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.btn-coral:hover {
  background: #9a3d4c;
}

.text-slate-500,
.text-slate-500,
.text-slate-500 {
  color: #64748b;
}

.text-white\/30,
.text-white\/40 {
  color: rgb(255 255 255 / 0.6);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="tab"]:focus-visible,
[role="radio"]:focus-visible {
  outline: 2px solid #001a33;
  outline-offset: 3px;
}

.faq-chevron {
  display: none;
}

.faq-mark {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--coral-ink);
}

.faq-mark::before {
  content: "+";
}

.faq-item.open .faq-mark::before {
  content: "−";
}

.faq-answer {
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 80rem !important;
  opacity: 1;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .inquiry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.inquiry-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #f8fafc;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #001a33;
  cursor: pointer;
}

.inquiry-card:has(input:checked) {
  border-color: var(--coral-ink);
  background: #fff7f8;
}

.inquiry-card input {
  margin-top: 0.15rem;
}

.field-error {
  margin-top: 0.4rem;
  color: #9f1239;
  font-size: 0.75rem;
  font-weight: 700;
}

.optional-details {
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: #fff;
}

.optional-details summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  color: #001a33;
}

.optional-details[open] summary {
  margin-bottom: 1rem;
}

#submitBtn.is-success::after {
  content: " ✓";
}

.ux-toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 80;
  width: min(24rem, calc(100% - 2rem));
  transform: translateX(-50%);
  background: #001a33;
  color: #fff;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 12px 32px rgb(0 26 51 / 0.2);
}

#ux-tip {
  position: fixed;
  z-index: 80;
  max-width: 16rem;
  background: #001a33;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  pointer-events: none;
}

.glossary-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.05rem;
}

#category-tabs,
#filter-controls {
  position: relative;
}

.tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #001a33;
  pointer-events: none;
  transition: transform 0.25s ease, width 0.25s ease;
}

#filter-controls .filter-btn.active::after {
  content: none;
}

#tag-drawer:not([hidden]) {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#tag-drawer.is-open {
  max-height: 80rem;
  opacity: 1;
}

.ux-spot {
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .btn-coral:hover {
    transform: translateY(-2px);
  }

  .btn-coral:active::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
    transform: translate(-50%, -50%);
    animation: ux-ripple 0.45s ease-out;
    pointer-events: none;
  }

  .ux-spot:hover {
    transform: translateY(-3px);
    border-color: rgb(194 65 12 / 0.45);
    box-shadow: 0 10px 24px rgb(0 26 51 / 0.08);
  }

  .ux-spot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(8rem 5rem at var(--sx, 50%) var(--sy, 0%), rgb(194 65 12 / 0.55), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }

  .ux-spot:hover::after {
    opacity: 1;
  }

  .pricing-card-popular:hover {
    transform: translateY(-13px);
  }
}

@keyframes ux-ripple {
  to {
    transform: translate(-50%, -50%) scale(18);
    opacity: 0;
  }
}

@keyframes ux-shake {
  0%,
  100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.ux-shake {
  animation: ux-shake 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn-coral,
  .btn-coral:hover,
  .ux-spot,
  .ux-spot:hover,
  .pricing-card-popular:hover,
  .faq-answer,
  .tab-indicator,
  #tag-drawer,
  #protech-consult,
  .ux-toast,
  .ux-shake {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .pricing-card-popular,
  .pricing-card-popular:hover {
    transform: translateY(-10px) !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
