/*
 * Rainbow Music Academy - Shared Page Styles
 *
 * This file consolidates CSS that was previously duplicated across
 * inline <style> blocks in services.njk, testimonials.njk,
 * contact.njk, swanscombe.njk, dartford.njk, and about.njk.
 *
 * Sections:
 *   1. Page Header
 *   2. FAQ Section
 *   3. CTA Section
 *   4. Content Section / Feature Lists
 *   5. Graphic Circles (quote-graphic, contact-graphic)
 *   6. Responsive Overrides
 */


/* ============================================================
   1. Page Header
   Used on: services, testimonials, contact, swanscombe, dartford
   ============================================================ */

.page-header {
  background-color: var(--color-secondary);
  color: var(--color-text);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--color-primary-dark);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-header .header-text {
  flex: 1;
}

.page-header .header-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-header .header-cta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  max-width: 300px;
  align-items: flex-start;
}


/* ============================================================
   2. FAQ Section
   Used on: services, contact
   ============================================================ */

.faq-section {
  padding: 100px 0;
  background-color: white;
  position: relative;
  overflow: hidden;
}

.faq-section .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.faq-item {
  background-color: transparent;
  padding: 25px 0 25px 28px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  border-left: 3px solid var(--color-accent);
  transition: all 0.35s var(--ease-out-expo);
}

.faq-item:hover {
  transform: none;
  box-shadow: none;
  background-color: rgba(248, 233, 255, 0.3);
}

.faq-item h3 {
  color: var(--color-primary-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: normal;
  position: relative;
  padding-left: 28px;
}

/* "?" prefix decoration before each FAQ question */
.faq-item h3:before {
  content: "?";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item p {
  color: #444;
  line-height: 1.6;
}


/* ============================================================
   3. CTA Section
   Used on: about, testimonials, swanscombe, dartford
   (cta-section.css also defines .cta-section — these rules
   extend it with additional structural selectors)
   ============================================================ */

.cta-section {
  padding: 100px 0 80px;
  background-color: var(--color-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .section-title {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 20px;
}

.cta-section .section-title h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--color-primary-dark);
  font-weight: normal;
}

.cta-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  font-weight: normal;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #444;
}

/* Circular icon container used in testimonials CTA */
.cta-icon {
  width: 100px;
  height: 100px;
  background-color: rgba(255, 209, 82, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: var(--color-primary-dark);
}

.cta-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 30px;
}


/* ============================================================
   4. Content Section / Feature Lists
   Used on: swanscombe, dartford
   ============================================================ */

.content-section {
  padding: 80px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-content {
  flex: 1;
  padding: 0 15px;
  min-width: 300px;
}

/* Icon + text feature list (e.g. "Why choose us" bullet points) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.feature-list .feature-icon {
  color: var(--color-primary);
  margin-right: 15px;
  flex-shrink: 0;
}

.feature-list .feature-text {
  flex: 1;
}

/* Alternate background for service grid sections */
.alternate-bg {
  background-color: var(--color-bg-alt);
}


/* ============================================================
   5. Graphic Circles
   The quote-graphic (testimonials) and contact-graphic (contact)
   share identical sizing, colours, and the pulse animation.
   ============================================================ */

.quote-graphic,
.contact-graphic {
  width: 200px;
  height: 200px;
  background-color: rgba(255, 209, 82, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Float animation — used by services.njk header image */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}


/* ============================================================
   6. Responsive Overrides
   ============================================================ */

@media (max-width: 768px) {
  /* Page header stacks vertically on mobile */
  .page-header .header-content {
    flex-direction: column;
  }

  .page-header .header-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* FAQ grid becomes single-column */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* CTA buttons stack vertically */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* Graphic circles shrink slightly on mobile */
  .quote-graphic,
  .contact-graphic {
    width: 150px;
    height: 150px;
  }

  /* Content section row stacks */
  .row {
    flex-direction: column;
  }

  .col-content {
    width: 100%;
    margin-bottom: 30px;
  }
}
