/* Hallmark · component-set · Bizspaces violet/dark
 * Sections: contact card, portfolio buttons, testimonials, FAQ
 * Design-only: typography, spacing, interaction, layout
 * Colors: inherited from home-redesign.css : no overrides
 */

/* ================================================================
   CONTACT CARD : premium info panel
   ================================================================ */

.contact-card {
  position: relative;
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(139, 92, 246, 0.12);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(139, 92, 246, 0.14), transparent 46%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(139, 92, 246, 0.06));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-card:hover {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.2);
}

.contact-card__eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-fg-muted, #a1a1aa);
}

.contact-card__desc {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.6;
  color: var(--c-fg-muted, #a1a1aa);
  max-width: 40ch;
}

/* Channel list: clean stacked links */
.contact-card__channels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-card__channels li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-card__link {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  grid-template-rows: auto auto;
  gap: 0 0.75rem;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.contact-card__link:hover {
  background: rgba(255, 255, 255, 0.03);
}

.contact-card__icon {
  grid-row: 1 / 3;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card__link:hover .contact-card__icon {
  background: rgba(139, 92, 246, 0.18);
  transform: translateY(-1px);
}

.contact-card__icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--c-accent, #8b5cf6);
}

.contact-card__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-fg-dim, #71717a);
  line-height: 1.2;
}

.contact-card__value {
  font-size: 0.88rem;
  color: var(--c-fg, #fafafa);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.contact-card__link:hover .contact-card__value {
  color: var(--c-accent, #8b5cf6);
}

/* Social bar: icon-only row */
.contact-card__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.contact-card__social {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--c-fg-muted, #a1a1aa);
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-card__social:hover {
  border-color: var(--c-accent, #8b5cf6);
  color: var(--c-accent, #8b5cf6);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-1px);
}

.contact-card__social svg {
  width: 1rem;
  height: 1rem;
}

/* ================================================================
   PORTFOLIO : kill all gold remnant selectors
   ================================================================ */

/* Card hover border + shadow (overrides home-refresh.css gold) */
@media (hover: hover) and (pointer: fine) {
  #portfolio .portfolio-card:hover {
    border-color: rgba(167, 139, 250, 0.78) !important;
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.30) !important;
  }
}

/* Card ::after gradient overlay (overrides home-refresh.css gold gradient) */
#portfolio .portfolio-card::after {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), transparent 42%) !important;
}

/* Badge (overrides home-refresh.css gold badge) */
#portfolio .portfolio-card__badge {
  background: rgba(139, 92, 246, 0.10) !important;
  color: #A78BFA !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
}

/* Focus-within ring (overrides quality-system.css gold box-shadow) */
#portfolio .portfolio-card:focus-within {
  border-color: #A78BFA !important;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.24), 0 24px 52px rgba(0, 0, 0, 0.28) !important;
}

/* Title on hover (overrides audit-fixes.css gold title color) */
#portfolio .portfolio-card:hover .portfolio-card__title {
  color: #A78BFA !important;
}

/* ================================================================
   PORTFOLIO BUTTONS : unified action row
   ================================================================ */

.portfolio-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  flex-wrap: wrap;
}

.portfolio-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.portfolio-card__btn:active {
  transform: translateY(0) !important;
}

.portfolio-card__btn--case {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--c-fg, #fafafa);
  background: transparent;
}

.portfolio-card__btn--case:hover {
  border-color: var(--c-accent, #8b5cf6);
  background: rgba(139, 92, 246, 0.1);
  color: var(--c-accent, #8b5cf6);
  transform: translateY(-1px);
}

.portfolio-card__btn--live {
  border: 1px solid transparent;
  color: var(--c-fg-muted, #a1a1aa);
  background: rgba(255, 255, 255, 0.04);
}

.portfolio-card__btn--live:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-fg, #fafafa);
  transform: translateY(-1px);
}

.portfolio-card__btn svg {
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card__btn--case:hover svg {
  transform: translate(1px, -1px);
}

.portfolio-card__btn--live:hover svg {
  transform: translate(1px, -1px);
}

/* ================================================================
   TESTIMONIALS : editorial quote cards
   ================================================================ */

#testimonials .testimonial {
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

#testimonials .testimonial:hover {
  transform: translateY(-4px);
}

#testimonials .testimonial--featured {
  box-shadow:
    inset 3px 0 0 currentColor,
    0 16px 48px rgba(0, 0, 0, 0.2);
}

#testimonials .testimonial--featured:hover {
  box-shadow:
    inset 3px 0 0 currentColor,
    0 24px 60px rgba(0, 0, 0, 0.3);
}

#testimonials .testimonial__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2em 0.65em;
  margin-bottom: 0.75rem;
}

#testimonials .testimonial__stars {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

#testimonials .testimonial__quote {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  line-height: 1.6;
  margin: 0 0 1rem;
  font-style: normal;
}

#testimonials .testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-top: 0.85rem;
}

#testimonials .testimonial__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

#testimonials .testimonial__name {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

#testimonials .testimonial__role {
  font-size: 0.72rem;
  margin: 0.1em 0 0;
}

#testimonials .testimonial__date {
  font-size: 0.62rem;
  margin: 0.2em 0 0;
}

#testimonials .testimonial-rail__button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

#testimonials .testimonial-rail__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#testimonials .testimonials-google-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* ================================================================
   FAQ : clean accordion
   ================================================================ */

#faq .faq-item__btn {
  width: 100%;
  text-align: left;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}

#faq .faq-item__btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

#faq .faq-item__answer {
  padding: 0 clamp(1.25rem, 2.5vw, 1.75rem) clamp(0.75rem, 1.5vw, 1rem);
}

#faq .faq-item__answer-inner {
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  line-height: 1.65;
  color: var(--c-fg-muted, #a1a1aa);
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-card__icon,
  .contact-card__link,
  .contact-card__social,
  .portfolio-card__btn,
  .portfolio-card__btn svg,
  #testimonials .testimonial,
  #testimonials .testimonial-rail__button,
  #testimonials .testimonials-google-link,
  #faq .faq-item__btn {
    transition: none !important;
    transform: none !important;
  }
}

/* ===========================================================================
   FAQ SYSTEM v3: homepage refinement
   The answer padding must remain inside the animated panel. Keeping it on the
   panel created a visible strip when max-height was zero.
   =========================================================================== */
#faq .faq {
  max-width: min(100%, 880px);
  gap: 0.8rem;
  border: 0;
}

#faq .faq-item {
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#faq .faq-item__btn {
  min-height: 4.75rem;
  padding: clamp(1rem, 1.8vw, 1.35rem) clamp(1.1rem, 2.5vw, 1.55rem);
  color: #fff;
  font-size: clamp(0.96rem, 0.92rem + 0.2vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

#faq .faq-item__btn:hover {
  background: rgba(139, 92, 246, 0.1);
}

#faq .faq-item__btn:focus-visible {
  outline: 3px solid #22d3ee;
  outline-offset: -3px;
}

#faq .faq-item__icon {
  width: 2rem;
  height: 2rem;
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.65);
  background: rgba(139, 92, 246, 0.1);
}

#faq .faq-item__answer {
  display: block;
  max-height: 0;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

#faq .faq-item__answer-inner {
  max-width: 70ch;
  padding: 0 clamp(1.1rem, 2.5vw, 1.55rem) clamp(1.2rem, 2vw, 1.5rem) !important;
  color: inherit;
  font-size: clamp(0.96rem, 0.93rem + 0.14vw, 1.03rem);
  line-height: 1.7;
}

#faq .faq-item.is-open {
  border-color: rgba(34, 211, 238, 0.58);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.065));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#faq .faq-item.is-open .faq-item__icon {
  color: #081016;
  border-color: #22d3ee;
  background: #22d3ee;
}

@media (max-width: 640px) {
  #faq .faq { gap: 0.65rem; }
  #faq .faq-item { border-radius: 0.85rem; }
  #faq .faq-item__btn { min-height: 4.25rem; }
  #faq .faq-item__answer-inner { line-height: 1.65; }
}
