.faq-page-row {
  padding: var(--section-padding-y) var(--section-padding-x) !important;
}

.faq-title {
  font-size: var(--hero-title-fs);
  line-height: var(--hero-title-lh);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: clamp(1.2rem, 2vw, 2.2rem);
  letter-spacing: -0.02em;
}

.faq-subtitle {
  font-size: var(--hero-subtitle-fs);
  line-height: var(--hero-subtitle-lh);
  font-weight: 400;
}

@media (max-width: 767px) {
  .faq-title {
    margin-bottom: 0;
  }

  #pl-568 .so-panel {
    margin-bottom: 14px !important;
  }
}




/* faq.css - A1 Steels FAQ styles (uses variables.css tokens) */

/* container utility if you don't already have one */
.container {
  max-width: var(--container-max-width, 1200px);
  padding: 0 calc(var(--section-padding-x, 40px));
  margin: 0 auto;
}

/* Section title */
.faq-section {
  padding: var(--section-padding-y, 60px) 0;
  background: var(--color-bg);
}


/* FAQ list */
.faq-list {
  display: grid;
  gap: calc(var(--space-md) / 2);
}

/* FAQ item box (Figma: light gray bg with subtle border) */
.faq-item {
  background: var(--color-light-gray, #f3f3f3);
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
}

/* the heading button: full width clickable */
.faq-q-heading {
  margin: 0;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(var(--space-sm));
  background: transparent;
  border: 0;
  cursor: pointer;
  outline: none;

  /* use FAQ question tokens from variables.css */
  font-family: var(--font-heading);
  font-size: var(--faq-q-fs, 1.9rem);
  line-height: var(--faq-q-lh, 2.4rem);
  font-weight: var(--faq-q-fw, 700);
  color: var(--color-secondary);

  border: 0;
  background: transparent;
  outline: none;
  /* remove native outline */
  box-shadow: none;
  /* remove any focus box shadow */
}

/* question text */
.faq-q {
  display: block;
  flex: 1 1 auto;
}

/* icon wrapper */
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* both svgs stacked; we'll animate opacity/rotate */
.faq-icon svg {
  position: absolute;
  transition: transform var(--transition-medium), opacity var(--transition-medium);
  pointer-events: none;
  color: var(--color-secondary);
}

/* default: show plus; hide close */
.faq-icon .icon-plus {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.faq-icon .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.9);
}

/* Panel (answer) */
.faq-panel {
  padding: 0 calc(var(--space-sm));
  padding-bottom: calc(var(--space-sm));
  background: transparent;
  transition: max-height var(--transition-medium), opacity var(--transition-medium);
  overflow: hidden;
  will-change: max-height, opacity;
}

/* answer text uses FAQ answer tokens */
.faq-a {
  margin: 0;
  padding: calc(var(--space-sm)) 0;
  font-family: var(--font-base);
  font-size: var(--faq-a-fs, 1.05rem);
  line-height: var(--faq-a-lh, 1.45rem);
  color: var(--color-text);
  font-weight: var(--faq-a-fw, 400);
}

/* When expanded: reveal panel and toggle icons */
.faq-item[aria-open="true"] .faq-panel {
  /* max-height will be set inline by JS for smooth animation; keep fallback */
  opacity: 1;
}

.faq-item[aria-open="true"] .faq-icon .icon-plus {
  opacity: 0;
  transform: rotate(90deg) scale(0.9);
}

.faq-item[aria-open="true"] .faq-icon .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* small screens adjustments */
@media (max-width: 767px) {
  .faq-toggle {
    padding: calc(var(--space-sm) / 2);
  }

  .faq-icon {
    width: 36px;
    height: 36px;
  }

  .faq-section-title {
    font-size: var(--section-title-mobile-h1);
  }
}

/* FAQ: hover & focus color for question heading */
.faq-toggle {
  transition: color var(--transition-medium), background-color var(--transition-medium);
  color: var(--color-secondary);
  /* existing default */
  border: 0;
  background: transparent;
  outline: none;
  /* remove native outline */
  box-shadow: none;
  /* remove any focus box shadow */
}

/* change question text + icon color on hover and keyboard focus */
.faq-toggle:hover,
.faq-toggle:focus,
.faq-toggle:focus-visible {
  outline: none;
  box-shadow: none;
  color: #E5383B;
}

/* more specific: ensure the question text inherits the color */
.faq-toggle .faq-q {
  color: inherit;
  transition: color var(--transition-medium);
}

/* Optional: touch/active feedback */
.faq-toggle:active {
  color: #cf2f32;
  /* slightly darker when pressed */
}