/* ============================================================
   Plano Health
   Folder-inspired layout aligned with integrated team sections.
   ============================================================ */

body[data-page="plano-health"] .health-folder {
  position: relative;
  overflow: hidden;
  padding: clamp(4.25rem, 7vw, 7rem) 0 clamp(4.75rem, 8vw, 7.5rem);
  background: #fff;
  color: #130607;
}

body[data-page="plano-health"] .health-folder::before {
  content: "SAAB";
  position: absolute;
  top: -1.8rem;
  left: -1rem;
  z-index: 0;
  color: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(6.5rem, 18vw, 18rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.16;
  pointer-events: none;
  transform: skewX(-14deg);
  -webkit-text-stroke: 1px rgba(225, 12, 0, 0.36);
  text-stroke: 1px rgba(225, 12, 0, 0.36);
}

body[data-page="plano-health"] .health-folder::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(36rem, 50vw);
  height: min(23rem, 34vw);
  background: var(--saab-red);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  opacity: 0.75;
  pointer-events: none;
}

body[data-page="plano-health"] .health-folder-inner {
  position: relative;
  z-index: 1;
}

body[data-page="plano-health"] .health-folder-intro {
  max-width: 52rem;
  margin: 0 auto clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}

body[data-page="plano-health"] .health-folder-intro h2 {
  margin: 1.15rem 0 0;
  color: #130607;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

body[data-page="plano-health"] .health-folder-intro p,
body[data-page="plano-health"] .health-folder-medical-heading p {
  margin: 1rem auto 0;
  color: rgba(19, 6, 7, 0.68);
  font-family: "Sora", sans-serif;
  font-size: clamp(0.86rem, 1.4vw, 1.02rem);
  font-weight: 300;
  line-height: 1.75;
}

body[data-page="plano-health"] .health-folder-label {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  color: #130607;
}

body[data-page="plano-health"] .health-folder-label span {
  display: inline-block;
  flex: 0 0 auto;
  width: 2rem;
  height: 2.35rem;
  background: var(--saab-red);
  transform: skewX(-28deg);
}

body[data-page="plano-health"] .health-folder-label strong {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.52rem clamp(1.1rem, 3vw, 2.35rem);
  color: currentColor;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
}

body[data-page="plano-health"] .health-folder-label strong::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 2px solid var(--saab-red);
  transform: skewX(-24deg);
}

body[data-page="plano-health"] .health-folder-label-dark {
  color: #130607;
}

body[data-page="plano-health"] .health-folder-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.38fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  align-items: stretch;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

body[data-page="plano-health"] .health-folder-included,
body[data-page="plano-health"] .health-folder-medical {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(19, 6, 7, 0.08);
  color: #130607;
}

body[data-page="plano-health"] .health-folder-included {
  min-height: 26rem;
  padding: clamp(2rem, 4vw, 3.4rem);
}

body[data-page="plano-health"] .health-folder-included::before,
body[data-page="plano-health"] .health-folder-medical::before {
  content: "SAAB";
  position: absolute;
  top: -1.8rem;
  left: -0.4rem;
  color: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(6rem, 16vw, 15rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.18;
  pointer-events: none;
  transform: skewX(-14deg);
  -webkit-text-stroke: 1px rgba(225, 12, 0, 0.18);
  text-stroke: 1px rgba(225, 12, 0, 0.18);
}

body[data-page="plano-health"] .health-folder-included ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.45rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="plano-health"] .health-folder-included li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: rgba(19, 6, 7, 0.78);
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
}

body[data-page="plano-health"] .health-folder-included i {
  margin-top: 0.25rem;
  color: var(--saab-red);
  font-size: 0.78rem;
}

body[data-page="plano-health"] .health-folder-investment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 26rem;
  padding: clamp(2rem, 4vw, 3.4rem);
  background: #fff;
  border: 1px solid rgba(19, 6, 7, 0.12);
  text-align: center;
}

body[data-page="plano-health"] .health-folder-investment img {
  width: 6.2rem;
  height: auto;
  margin: 0 auto 2.2rem;
}

body[data-page="plano-health"] .health-folder-investment span {
  color: var(--saab-red);
  font-family: "Montserrat", sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body[data-page="plano-health"] .health-folder-investment strong {
  margin: 0.75rem 0 0;
  color: #130607;
  font-family: "Sora", sans-serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

body[data-page="plano-health"] .health-folder-investment p {
  margin: 1rem auto 1.75rem;
  color: rgba(19, 6, 7, 0.62);
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.6;
}

body[data-page="plano-health"] .health-folder-investment a,
body[data-page="plano-health"] .health-folder-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  background: var(--saab-red);
  border: 1px solid var(--saab-red);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

body[data-page="plano-health"] .health-folder-services {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid rgba(19, 6, 7, 0.12);
  text-align: center;
}

body[data-page="plano-health"] .health-folder-services > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

body[data-page="plano-health"] .health-folder-services > div:last-child span {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(19, 6, 7, 0.18);
  color: rgba(19, 6, 7, 0.82);
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-page="plano-health"] .health-folder-medical {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-bottom: 2.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2.6rem, 5vw, 4.6rem) clamp(1.2rem, 4vw, 3.6rem);
}

@media (min-width: 641px) {
  body[data-page="plano-health"] .health-folder-medical {
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1.5rem, calc((100vw - 80rem) / 2 + 3.6rem));
    padding-right: max(1.5rem, calc((100vw - 80rem) / 2 + 3.6rem));
  }
}

body[data-page="plano-health"] .health-folder-medical::after {
  display: none;
}

body[data-page="plano-health"] .health-folder-medical-heading {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4.4rem);
  text-align: center;
}

body[data-page="plano-health"] .health-folder-medical-heading p {
  color: rgba(19, 6, 7, 0.68);
}

body[data-page="plano-health"] .health-folder-carousel {
  position: relative;
  z-index: 1;
}

body[data-page="plano-health"] .health-folder-carousel-nav {
  display: none;
}

body[data-page="plano-health"] .health-folder-carousel-button {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(19, 6, 7, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #130607;
  box-shadow: 0 0.45rem 1rem rgba(19, 6, 7, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body[data-page="plano-health"] .health-folder-carousel-button:hover {
  border-color: var(--saab-red);
  background: var(--saab-red);
  color: #fff;
  transform: translateY(-1px);
}

body[data-page="plano-health"] .health-folder-medical-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
}

body[data-page="plano-health"] .health-folder-medical-grid article {
  min-width: 0;
  text-align: center;
}

body[data-page="plano-health"] .health-folder-medical-grid figure {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 16.2rem;
  aspect-ratio: 1 / 1.12;
  margin: 0 auto 0.95rem;
  background: #f4f1f1;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

body[data-page="plano-health"] .health-folder-medical-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(225, 12, 0, 0.38);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  pointer-events: none;
}

body[data-page="plano-health"] .health-folder-medical-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body[data-page="plano-health"] .health-folder-medical-grid h3 {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 2.05rem;
  margin: 0 auto 0.7rem;
  padding: 0.4rem 0.9rem;
  color: #130607;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.62rem, 0.82vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body[data-page="plano-health"] .health-folder-medical-grid h3::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  border: 1px solid rgba(225, 12, 0, 0.92);
  transform: skewX(-22deg);
}

body[data-page="plano-health"] .health-folder-medical-grid span {
  display: block;
  color: var(--saab-red);
  font-family: "Montserrat", sans-serif;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

body[data-page="plano-health"] .health-folder-back {
  position: relative;
  z-index: 1;
  text-align: center;
}

body[data-page="plano-health"] .health-folder-back a {
  background: transparent;
  border-color: rgba(19, 6, 7, 0.24);
  color: #130607;
}

@media (max-width: 1180px) {
  body[data-page="plano-health"] .health-folder-medical-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body[data-page="plano-health"] .health-folder-main {
    grid-template-columns: 1fr;
  }

  body[data-page="plano-health"] .health-folder-medical-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="plano-health"] .page-title {
    max-width: 21rem;
    font-size: clamp(1.85rem, 10vw, 2.55rem);
    line-height: 1.08;
  }

  body[data-page="plano-health"] .page-copy {
    max-width: 21rem;
  }

  body[data-page="plano-health"] .health-folder {
    padding-top: 3.6rem;
  }

  body[data-page="plano-health"] .health-folder-intro h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.45rem);
    overflow-wrap: break-word;
  }

  body[data-page="plano-health"] .health-folder-investment a {
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
  }

  body[data-page="plano-health"] .health-folder-intro,
  body[data-page="plano-health"] .health-folder-medical-heading {
    text-align: left;
  }

  body[data-page="plano-health"] .health-folder-included,
  body[data-page="plano-health"] .health-folder-medical {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 3rem 1rem;
  }

  body[data-page="plano-health"] .health-folder-included ul,
  body[data-page="plano-health"] .health-folder-medical-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="plano-health"] .health-folder-carousel-nav {
    display: flex;
    justify-content: flex-start;
    gap: 0.65rem;
    margin: -0.45rem 0 1rem;
    padding-left: 0.3rem;
  }

  body[data-page="plano-health"] .health-folder-medical-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1.15rem;
    overflow-x: auto;
    padding: 0.2rem 0.3rem 1.35rem;
    scroll-padding-inline: 0.3rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
  }

  body[data-page="plano-health"] .health-folder-medical-grid.is-grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  body[data-page="plano-health"] .health-folder-medical-grid::-webkit-scrollbar {
    display: none;
  }

  body[data-page="plano-health"] .health-folder-medical-grid article {
    flex: 0 0 min(78vw, 17.5rem);
    scroll-snap-align: start;
  }

  body[data-page="plano-health"] .health-folder-medical-grid figure {
    max-width: 100%;
  }

  body[data-page="plano-health"] .health-folder-label {
    justify-content: flex-start;
  }

  body[data-page="plano-health"] .health-folder-label span {
    width: 1.55rem;
    height: 2rem;
  }

  body[data-page="plano-health"] .health-folder-label strong {
    max-width: calc(100vw - 6.5rem);
    min-height: 2rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
}
