:root {
  --bg-dark: #0c0f0a;
  --oak-green: #2f5d3a;
  --oak-light: #e7efe9;
  --accent: #8fc29b;
  --text-main: #ffffff;
  --text-muted: #b8c2bb;
}
:root {
  /* Core Brand Palette */
  --brand-deep: #3A0063;    /* Royal Plum (Authority/Heritage) */
  --brand-saffron: #FFD000; /* Primary Action (Clarity/Urgency) */
  --brand-oak: #AD7340;     /* Natural Wood Tone (Reliability) */
  --brand-alert: #FF4D29;   /* High-Contrast Warning/Sales Trigger */
  --brand-bright: #FFFFFF;  /* Pure Canvas */

  /* Plum Tints & Shades */
  --plum-900: #210038;
  --plum-700: #3A0063; /* Base */
  --plum-500: #5E2587;
  --plum-100: #F5F0FA;

  /* Saffron Tints & Shades */
  --saffron-900: #CCA600;
  --saffron-500: #FFD000; /* Base */
  --saffron-100: #FFF9E0;

  /* Oak Tints & Shades */
  --oak-800: #7A512D;
  --oak-500: #AD7340; /* Base */
  --oak-100: #F7F1EB;

  /* Alert Tints & Shades */
  --alert-700: #CC3D20;
  --alert-500: #FF4D29; /* Base */
  --alert-100: #FFEBE8;

  /* UI Neutral Grays (Essential for Balance) */
  --neutral-900: #1A1A1A;
  --neutral-400: #A3A3A3;
  --neutral-100: #F4F4F4;

  /* Text & Content Roles */
  --text-main: #1A1A1B;     /* Off-black for better readability than pure black */
  --text-muted: #575757;    /* For secondary info/subtitles */
  --text-on-dark: #FFFFFF;  /* For use on Purple or Oak backgrounds */
  --text-accent: #3A0063;   /* Using the Purple for emphasized text */

  /* UI Functional Roles */
  --bg-main: var(--brand-bright);
  --bg-offset: #F9F7F2;      /* A slight "parchment" off-white for sections */
  --border-subtle: rgba(58, 0, 99, 0.1); /* Transparent purple border */
  
  /* Shadow Systems (Architectural Depth) */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 40px rgba(58, 0, 99, 0.12); /* Purple-tinted shadow */
}

.fence-faq-section {
  padding: clamp(60px, 10vh, 100px) 0;
  background: var(--plum-100); /* Soft purple wash */
  font-family: 'Inter', sans-serif;
}

.faq-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--brand-saffron); /* Use Deep Plum for the title, Saffron is too light for big headers */
  margin-bottom: 20px;
  text-align: center;
}

.faq-header p {
  color: var(--plum-500);
  max-width: 600px;
  margin: 0 auto 50px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--saffron-100);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform .3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease;
  opacity: 0;
}

.faq-answer p {
  padding: 0 22px 20px;
  color: var(--plum-500);
  line-height: 1.6;
  font-size: 1rem;
}

/* Active state */
.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .fence-faq-section {
    padding: 60px 0;
  }

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

  .faq-answer p {
    padding: 0 18px 18px;
  }
}
