/* Styles for src/pages/sap/sap.njk.
   Moved out of the template; the sap-<tag>-<n> classes replace former
   inline style attributes. Give them meaningful names when you next edit them. */

@layer site {
  @media (max-width: 980px) {
    .content-section {
      flex-direction: column !important;
    }

    .services-grid {
      grid-template-columns: 1fr !important;
    }

    ul {
      columns: 1 !important;
    }
  }
}

/* Former inline styles: unlayered so they keep priority over the site
   stylesheets, as inline styles did. */
.sap-section-1 {
  padding: 60px 20px;
  background-color: var(--color-white);
}

.sap-div-1 {
  max-width: 1200px;
  margin: 0 auto;
}

.sap-div-2 {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.sap-div-3 {
  flex: 1;
}

.sap-img-1 {
  width: 100%;
  border-radius: 8px;
}

.sap-h2-1 {
  color: var(--color-heading);
  margin-bottom: 30px;
  font-size: 42px;
  font-weight: 800;
}

.sap-p-1 {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.sap-section-2 {
  padding: 60px 20px;
  background-color: var(--color-bg-light);
}

.sap-h2-2 {
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 30px;
  font-size: 42px;
  font-weight: 800;
}

.sap-div-4 {
  max-width: 900px;
  margin: 0 auto;
}

.sap-p-2 {
  font-size: 16px;
  line-height: 1.8;
}

.sap-h2-3 {
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 50px;
  font-size: 42px;
  font-weight: 800;
}

.sap-div-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
}

.sap-div-6 {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sap-h3-1 {
  color: var(--color-subheading);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
}

.sap-p-3 {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

.sap-div-7 {
  max-width: 900px;
  margin: 0 auto 60px;
}

.sap-ul-1 {
  font-size: 16px;
  line-height: 2;
  margin-left: 20px;
}

.sap-p-4 {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 30px;
}

.sap-ul-2 {
  margin-top: 10px;
  margin-left: 20px;
}

.sap-div-8 {
  max-width: 800px;
  margin: 0 auto;
}

.sap-ul-3 {
  font-size: 16px;
  line-height: 2;
  columns: 2;
  column-gap: 40px;
}

/* Narrow phones: less card padding so headings fit */
@media (max-width: 400px) {
  .sap-div-6 {
    padding: 30px 20px;
  }
}

/* Phones: smaller headings so long words fit */
@media (max-width: 767px) {
  .sap-h2-1,
  .sap-h2-2,
  .sap-h2-3 {
    font-size: 30px;
  }
}
