/* SCSS for Solar Roofing Page (place in your theme's _solar-roofing.scss) */
.solar-roofing-wrapper {
  .solar-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
    }
    .content {
      position: relative;
      text-align: center;
      color: #ffffff;

      h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
      }
      h2 {
        font-size: 1.5rem;
      }
      .subheading {
        font-size: 1rem;
        opacity: 0.8;
        margin-top: 0.5rem;
      }
    }
  }

  .solar-intro {
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;

    h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }
    p {
      margin-bottom: 1rem;
      line-height: 1.6;
    }
  }

  .solar-gallery {
    padding: 4rem 1rem;
    background: #f9f9f9;

    h2 {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 2rem;
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem;

      figure {
        margin: 0;
        img {
          width: 100%;
          height: auto;
          border-radius: 8px;
        }
        figcaption {
          text-align: center;
          margin-top: 0.5rem;
          font-size: 0.9rem;
        }
      }
    }
  }

  .solar-benefits {
    padding: 4rem 1rem;
    background: #f9f9f9;

    h2 {
      text-align: center;
      font-size: 2.5rem;
      color: #004b8d;
      margin-bottom: 2rem;
    }

    .benefits-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto;
    }

    .benefit-card {
      background: #ffffff;
      border: 1px solid #e3e3e3;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      padding: 2rem 1.5rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      }

      .benefit-icon {
        width: 40px;
        height: auto;
        margin-bottom: 1rem;
      }

      h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #004b8d;
        margin-bottom: 0.5rem;
      }

      p {
        font-size: 0.95rem;
        color: #333;
        line-height: 1.5;
        margin: 0;
      }
    }
  }

  .solar-cta {
    padding: 4rem 1rem;
    text-align: center;
    background: #004b8d;
    color: #ffffff;

    h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }
    p {
      margin-bottom: 2rem;
      line-height: 1.6;
    }
    .btn-primary {
      background: #fdae2f;
      color: #004b8d;
      padding: 1rem 2rem;
      text-decoration: none;
      font-weight: bold;
      border-radius: 4px;
      transition: background 0.3s ease;

      &:hover {
        background: darken(#fdae2f, 10%);
      }
    }
  }
}