/* ==========================================================================
   UNTERRO - CUSTOM FAQS PAGE COMPONENT STYLES
   ========================================================================== */

.faqs-page {
  padding-top: 0; /* Starts from the very top under the header */
  padding-bottom: 60px;
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  .faqs-page {
    padding-top: 0;
    padding-bottom: 100px;
  }
}

/* --------------------------------------------------------------------------
   1. Banner Hero Section
   -------------------------------------------------------------------------- */
.faqs-banner {
  margin-top: 0;
  margin-bottom: var(--space-xl);
}

.faqs-banner__wrapper {
  position: relative;
  width: 100%;
  height: 80vh; /* Dynamic 80% viewport height */
  border-radius: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 100px var(--space-md) 40px; /* Header top padding clearance on mobile */
  box-sizing: border-box;
}

.faqs-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(16, 15, 14, 0.7) 0%,
    rgba(16, 15, 14, 0.5) 50%,
    rgba(16, 15, 14, 0.2) 100%
  );
  z-index: 1;
}

.faqs-banner__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.faqs-banner__subtitle {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.faqs-banner__title {
  font-family: var(--font-family-serif);
  font-size: clamp(2.5rem, 2.2rem + 1.5vw, 4rem);
  font-weight: var(--font-weight-light);
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: -0.01em;
}

.faqs-banner__description {
  font-family: var(--font-family-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.15rem);
  font-weight: var(--font-weight-light);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

@media (min-width: 768px) {
  .faqs-banner__wrapper {
    height: 80vh;
    padding: 120px var(--space-xl) 40px; /* Header clearance on tablet */
  }
}

@media (min-width: 1024px) {
  .faqs-banner__wrapper {
    height: 80vh;
    padding: 140px var(--space-xl) 40px; /* Header clearance on desktop */
  }
}

@media (min-width: 1440px) {
  .faqs-banner__wrapper {
    height: 80vh;
    padding: 160px var(--space-xl) 40px; /* Larger header clearance */
  }
}

@media (min-width: 1920px) {
  .faqs-banner__wrapper {
    height: 80vh;
    padding: 180px var(--space-xl) 40px; /* Ultra-wide header clearance */
  }
}

/* --------------------------------------------------------------------------
   2. Main Layout Context & Borders
   -------------------------------------------------------------------------- */
.faqs-intro,
.faqs-category,
.faqs-cta {
  padding-top: 20px; /* Aligned with homepage vertical gaps spacing */
  padding-bottom: 20px;
  box-sizing: border-box;
}

.faqs-intro__subtitle,
.faqs-category__subtitle {
  font-family: var(--font-family-sans);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.faqs-intro__title,
.faqs-category__title {
  font-family: var(--font-family-serif);
  font-size: clamp(1.85rem, 1.7rem + 1vw, 2.5rem);
  font-weight: var(--font-weight-light);
  color: var(--color-text-primary);
  line-height: 1.25;
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-sm);
  border-left: 8px solid var(--color-accent); /* Standard visual accent line */
  box-sizing: border-box;
}

.faqs-intro__body {
  max-width: 100%;
}

.faqs-intro__paragraph {
  font-family: var(--font-family-sans);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Accordion Layout
   -------------------------------------------------------------------------- */
.faqs-accordion {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-md);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .faqs-accordion {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

.faqs-col {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
}

.faq-item summary {
  list-style: none; /* Hide default arrow in standard browsers */
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

/* Hide webkit summary marker arrow */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  font-family: var(--font-family-sans);
  font-size: 14.5px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.5;
  transition: color var(--transition-fast);
}

.faq-item summary:hover .faq-q {
  color: var(--color-accent);
}

/* Custom CSS Toggle Plus-to-Minus Sign */
.faq-toggle {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--color-accent);
  transition: transform var(--transition-fast);
}

/* Horizontal line */
.faq-toggle::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

/* Vertical line */
.faq-toggle::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

/* Rotation animation */
.faq-item[open] .faq-toggle::after {
  transform: scaleY(0); /* Hide vertical line when open to make it a minus sign */
}

/* Accordion reveal content animation */
.faq-a {
  padding-bottom: 18px;
}

.faq-a p {
  font-family: var(--font-family-sans);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

.faq-item[open] .faq-a {
  animation: faqReveal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   4. CTA Section
   -------------------------------------------------------------------------- */
.faqs-cta__wrapper {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px var(--space-md);
  box-sizing: border-box;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faqs-cta__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.65);
  z-index: 1;
}

.faqs-cta__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.faqs-cta__title {
  font-family: var(--font-family-sans);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 2.1rem);
  font-weight: 300;
  color: #ffffff;
  margin: 0 auto 32px auto;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.faqs-cta__description {
  display: none;
}

.faqs-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #AD622F !important;
  color: #ffffff !important;
  padding: 14px 38px;
  font-family: var(--font-family-sans);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.faqs-cta__button:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.faqs-cta__arrow {
  margin-left: 10px;
  transition: transform var(--transition-smooth);
}

.faqs-cta__button:hover .faqs-cta__arrow {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .faqs-cta__wrapper {
    padding: 80px var(--space-xl);
  }
}

/* --------------------------------------------------------------------------
   5. Large Monitor Scaling (Consistency with About & Homepage)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .faqs-intro__subtitle,
  .faqs-category__subtitle {
    font-size: 13px;
  }

  .faqs-intro__title,
  .faqs-category__title {
    font-size: 3.75rem; /* Scales heading sizes to match About exactly */
  }

  .faqs-intro__paragraph,
  .faq-q,
  .faq-a p {
    font-size: 16px;
    line-height: 1.8;
  }

  .faqs-cta__button {
    font-size: 13px;
  }
}

@media (min-width: 1920px) {
  .faqs-intro__subtitle,
  .faqs-category__subtitle {
    font-size: 15px;
  }

  .faqs-intro__title,
  .faqs-category__title {
    font-size: 4.5rem; /* Ultra-wide scaling */
  }

  .faqs-intro__paragraph,
  .faq-q,
  .faq-a p {
    font-size: 18px;
    line-height: 1.85;
  }

  .faqs-cta__button {
    font-size: 15px;
  }
}
