/* ==========================================================================
   Homepage FAQ section — ported from the reference workspace design
   (C:\Users\vishva.s\Desktop\tyasuite-workspace-20260831-102716\index.html,
   section#faq / .faq-section, and its assets/css/faq.css).

   All classes are prefixed "hfaq-" (and custom properties "--hfaq-") so
   this never collides with:
   - the generic .faq-item/.faq-question/.faq-answer accordion wiring in
     assets/home/js/main.js (which targets different, unrelated markup)
   - the unrelated .faq-item/.faq-question/... rules already declared in
     assets/home/css/home.css
   - the previous ".fs"/".fs__*" FAQ section this one replaces.

   Behaviour/JS: assets/home/js/home-faq-section.js
   ========================================================================== */
:root {
  --hfaq-brand:      #4782A2;
  --hfaq-brand-dark: #2f5f7e;
  --hfaq-ink:        #0f172a;
  --hfaq-plus-bg:    #4782A2;
  --hfaq-plus-fg:    #FFFFFF;
  --hfaq-line:       rgba(71, 130, 162, 0.18);
  --hfaq-answer:     #4a6375;
  --hfaq-speed:      0.38s;
  --hfaq-ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

.hfaq-section {
  position: relative;
  background: transparent;
  padding: 24px clamp(16px, 5vw, 40px) clamp(38px, 5vw, 62px);
  font-family: Figtree, sans-serif;
  overflow: hidden;
}

.hfaq-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hfaq-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.09;
  transform: translateZ(0);
}

.hfaq-blob-1 {
  width: 500px;
  height: 500px;
  max-width: 80vw;
  max-height: 80vw;
  background: radial-gradient(circle, var(--hfaq-brand) 0%, transparent 70%);
  top: -120px;
  left: -100px;
}

.hfaq-blob-2 {
  width: 400px;
  height: 400px;
  max-width: 70vw;
  max-height: 70vw;
  background: radial-gradient(circle, #6faac4 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
}

.hfaq-container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
}

.hfaq-header {
  text-align: center;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.hfaq-eyebrow {
  font-family: Figtree, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hfaq-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
}

.hfaq-eyebrow span {
  display: inline-block;
  width: 36px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--hfaq-brand));
}

.hfaq-eyebrow span:last-child {
  background: linear-gradient(90deg, var(--hfaq-brand), transparent);
}

.hfaq-title {
  font-family: Figtree, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--hfaq-ink);
  line-height: 1.18;
  margin: 0 0 16px;
}

.hfaq-subtitle {
  font-family: Figtree, sans-serif;
  font-size: 1rem;
  color: var(--hfaq-answer);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

.hfaq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  align-items: start;
}

.hfaq-item {
  border-bottom: 1.5px solid var(--hfaq-line);
  overflow: hidden;
}

.hfaq-col .hfaq-item:first-child {
  border-top: 1.5px solid var(--hfaq-line);
}

.hfaq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: Figtree, sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 0.975rem);
  font-weight: 500;
  color: var(--hfaq-ink);
  line-height: 1.45;
  transition: color var(--hfaq-speed) var(--hfaq-ease);
  -webkit-tap-highlight-color: transparent;
}

.hfaq-question:hover {
  color: var(--hfaq-brand);
}

.hfaq-question:focus-visible {
  outline: 2px solid var(--hfaq-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.hfaq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hfaq-plus-bg);
  color: var(--hfaq-plus-fg);
  transition: transform var(--hfaq-speed) var(--hfaq-ease),
              background var(--hfaq-speed) var(--hfaq-ease);
}

.hfaq-icon svg {
  width: 15px;
  height: 15px;
}

.hfaq-question[aria-expanded="true"] .hfaq-icon {
  background: var(--hfaq-brand-dark);
  transform: rotate(45deg);
}

.hfaq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--hfaq-speed) var(--hfaq-ease);
}

.hfaq-answer.is-open {
  grid-template-rows: 1fr;
}

.hfaq-answer-inner {
  overflow: hidden;
}

.hfaq-answer-inner p {
  margin: 0;
  padding: 0 48px 20px 0;
  font-family: Figtree, sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--hfaq-answer);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--hfaq-speed) var(--hfaq-ease),
              transform var(--hfaq-speed) var(--hfaq-ease);
}

.hfaq-answer.is-open .hfaq-answer-inner p {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .hfaq-item {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.45s var(--hfaq-ease),
                transform 0.45s var(--hfaq-ease),
                border-color 0.2s;
  }

  .hfaq-item.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .hfaq-item:nth-child(1) { transition-delay: 0.05s; }
  .hfaq-item:nth-child(2) { transition-delay: 0.10s; }
  .hfaq-item:nth-child(3) { transition-delay: 0.15s; }
  .hfaq-item:nth-child(4) { transition-delay: 0.20s; }
  .hfaq-item:nth-child(5) { transition-delay: 0.25s; }
}

@media (max-width: 768px) {
  .hfaq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hfaq-col:last-child .hfaq-item:first-child {
    border-top: 1.5px solid var(--hfaq-line);
  }
}

@media (max-width: 480px) {
  .hfaq-question { font-size: 0.875rem; padding: 18px 0; }
  .hfaq-icon { width: 28px; height: 28px; }
  .hfaq-icon svg { width: 13px; height: 13px; }
  .hfaq-answer-inner p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hfaq-answer,
  .hfaq-answer-inner p,
  .hfaq-icon,
  .hfaq-item,
  .hfaq-question {
    transition: none !important;
  }
}
