/* ============================================
   FAQ PAGE — Divided Sky Roofing + Exteriors
   ============================================ */

/* --- Hide old Zephyr elements --- */
.ds-faq-page .l-header,
.ds-faq-page .w-header,
.ds-faq-page .l-footer,
.ds-faq-page .w-footer,
.ds-faq-page .l-titlebar,
.ds-faq-page .w-toplink,
.ds-faq-page .w-nav,
.ds-faq-page .us-footer,
.ds-faq-page .l-main,
.ds-faq-page .us-footer-terms,
.ds-faq-page .w-footer-terms,
.ds-faq-page [class*="footer-terms"],
.ds-faq-page .us_error_frame,
.ds-faq-page #us_error_frame,
.ds-faq-page [id*="us_error"],
.ds-faq-page .l-section,
.ds-faq-page .l-canvas + .w-footer-terms,
.ds-faq-page body > div[style*="position: fixed"][style*="right"],
.ds-faq-page iframe[src*="error"] {
  display: none !important;
}

body.ds-faq-page > div:last-of-type:not(.ds-footer):not(.faq-cta):not(.faq-section):not(.faq-hero):not(.ds-nav):not(.ds-topbar):not(.ds-rebrand-banner) {
  display: none !important;
}

div[style*="position: fixed"][style*="z-index"][style*="right"] {
  display: none !important;
}

.w-footer-terms,
.us-footer-terms,
footer.us-footer {
  display: none !important;
}


/* --- HERO --- */
.faq-hero {
  position: relative;
  background: #1a1a1a;
  padding: 160px 0 80px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.faq-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.faq-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 25, 25, 0.45);
  z-index: 1;
}

.faq-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.faq-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 12px 0 20px;
  letter-spacing: -0.03em;
}

.faq-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 560px;
}


/* --- FAQ SECTIONS (light = default, dark = alt) --- */
.faq-section {
  background: #f5f5f5;
  padding: 80px 0;
}

.faq-section-alt {
  background: #1a1a1a;
}

.faq-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.faq-section-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(119, 232, 6, 0.1);
  border: 1px solid rgba(119, 232, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Section header text: dark for light bg, white for dark bg */
.faq-section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: -0.01em;
}

.faq-section-alt .faq-section-header h2 {
  color: #FFFFFF;
}


/* --- ACCORDION (LIGHT SECTION — default) --- */
.faq-accordion {
  max-width: 840px;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: #ccc;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq-item.faq-open {
  border-color: rgba(119, 232, 6, 0.4);
  box-shadow: 0 2px 16px rgba(119, 232, 6, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #333;
}

.faq-chevron {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-open .faq-chevron {
  transform: rotate(180deg);
  color: #5cb800;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-open .faq-answer {
  max-height: 800px;
  padding: 0 28px 28px;
}

.faq-answer p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin: 0 0 16px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: #4a9e00;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: #5cb800;
}

.faq-answer strong {
  color: #1a1a1a;
}

.faq-answer ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.faq-answer li {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 6px;
}

.faq-answer li::marker {
  color: #5cb800;
}


/* --- ACCORDION (DARK SECTION — .faq-section-alt) --- */
.faq-section-alt .faq-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.faq-section-alt .faq-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.faq-section-alt .faq-item.faq-open {
  border-color: rgba(119, 232, 6, 0.25);
  background: rgba(119, 232, 6, 0.03);
  box-shadow: none;
}

.faq-section-alt .faq-question {
  color: rgba(255, 255, 255, 0.9);
}

.faq-section-alt .faq-question:hover {
  color: #FFFFFF;
}

.faq-section-alt .faq-chevron {
  color: rgba(255, 255, 255, 0.4);
}

.faq-section-alt .faq-open .faq-chevron {
  color: #77E806;
}

.faq-section-alt .faq-answer p {
  color: rgba(255, 255, 255, 0.65);
}

.faq-section-alt .faq-answer a {
  color: #77E806;
}

.faq-section-alt .faq-answer a:hover {
  color: #8fff2a;
}

.faq-section-alt .faq-answer strong {
  color: rgba(255, 255, 255, 0.9);
}

.faq-section-alt .faq-answer li {
  color: rgba(255, 255, 255, 0.65);
}

.faq-section-alt .faq-answer li::marker {
  color: #77E806;
}


/* --- WARRANTY GRID --- */
.faq-warranty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.faq-warranty-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.faq-warranty-badge {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #5cb800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.faq-warranty-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.faq-warranty-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin: 0 0 6px;
}

.faq-warranty-card p:last-child {
  margin-bottom: 0;
}

/* Dark-section warranty cards */
.faq-section-alt .faq-warranty-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-section-alt .faq-warranty-badge {
  color: #77E806;
}

.faq-section-alt .faq-warranty-card h4 {
  color: rgba(255, 255, 255, 0.7);
}

.faq-section-alt .faq-warranty-card p {
  color: rgba(255, 255, 255, 0.55);
}


/* --- CTA --- */
.faq-cta {
  background: linear-gradient(135deg, #1a1a1a 0%, #2B2B2B 50%, #1e2a1e 100%);
  padding: 80px 0;
  position: relative;
}

.faq-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(119, 232, 6, 0.3), transparent);
}


/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .faq-hero {
    padding: 120px 0 60px;
  }

  .faq-hero h1 {
    font-size: 2.2rem;
  }

  .faq-hero-sub {
    font-size: 1rem;
  }

  .faq-section {
    padding: 60px 0;
  }

  .faq-section-header h2 {
    font-size: 1.4rem;
  }

  .faq-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .faq-section-icon svg {
    width: 22px;
    height: 22px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-open .faq-answer {
    padding: 0 20px 20px;
  }

  .faq-warranty-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-cta {
    padding: 60px 0;
  }

  .faq-cta h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .faq-hero h1 {
    font-size: 1.8rem;
  }

  .faq-question span {
    font-size: 0.9rem;
  }
}
