/* =========================================================
   INT Care — Core components
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(880px, calc(100svh - 122px));
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(6rem, 10vw, 9rem);
  background: var(--forest-900);
  color: var(--paper);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.72) contrast(1.02);
  transform: scale(1.04);
  animation: heroZoom 22s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 24, 17, 0.96) 0%, rgba(7, 24, 17, 0.9) 38%, rgba(7, 24, 17, 0.5) 70%, rgba(7, 24, 17, 0.55) 100%),
    linear-gradient(0deg, rgba(7, 24, 17, 0.95) 0%, transparent 42%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image: url("../images/contour.svg");
  background-size: 900px;
  background-position: right center;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

.hero__content {
  max-width: 760px;
}

.hero__content > * {
  animation: heroUp 1s var(--ease) both;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.14s; }
.hero__content > *:nth-child(3) { animation-delay: 0.24s; }
.hero__content > *:nth-child(4) { animation-delay: 0.34s; }
.hero__content > *:nth-child(5) { animation-delay: 0.44s; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

.hero .eyebrow {
  color: var(--leaf-soft);
  margin-bottom: 1.4rem;
}

.hero h1 {
  margin-bottom: 1.4rem;
  color: var(--paper);
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--leaf-soft);
}

.hero__lede {
  max-width: 58ch;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  color: rgba(247, 243, 233, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 243, 233, 0.82);
  backdrop-filter: blur(8px);
}

.hero__pillars li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--leaf);
}

/* Hero portrait card */
.hero__aside {
  position: relative;
  justify-self: end;
  width: min(340px, 100%);
  animation: heroUp 1.1s 0.35s var(--ease) both;
}

.hero-portrait {
  position: relative;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 180px 180px var(--r) var(--r);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(220, 231, 176, 0.32);
  border-radius: 50%;
  z-index: -1;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 170px 170px var(--r-sm) var(--r-sm);
  filter: saturate(0.85);
}

.hero-portrait figcaption {
  padding: 1rem 0.6rem 0.4rem;
  text-align: center;
}

.hero-portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--paper);
}

.hero-portrait figcaption span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-soft);
}

.hero-badge {
  position: absolute;
  left: -2.2rem;
  bottom: 3.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  background: rgba(11, 33, 24, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.hero-badge .icon {
  width: 24px;
  height: 24px;
  color: var(--leaf-soft);
}

.hero-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
}

.hero-badge span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 243, 233, 0.62);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 233, 0.5);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(220, 231, 176, 0.7), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: clamp(-5.5rem, -6vw, -3.5rem);
}

.stats__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line-soft);
  position: relative;
}

.stat:last-child {
  border-right: 0;
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--cream);
  color: var(--leaf-deep);
}

.stat__icon .icon {
  width: 20px;
  height: 20px;
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest-900);
}

.stat__suffix {
  font-size: 0.5em;
  color: var(--leaf-deep);
}

.stat__label {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Partner logos ---------- */
.partners {
  padding-block: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}

.partners__inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.partners__label {
  flex: none;
  max-width: 150px;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.partners__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  flex: 1;
  flex-wrap: wrap;
}

.partners__item {
  display: grid;
  place-items: center;
  min-width: 92px;
  transition: transform 0.4s var(--ease);
}

.partners__item:hover {
  transform: translateY(-2px);
}

.partners__item img {
  max-height: 54px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.partners__item:hover img {
  filter: none;
  opacity: 1;
}

.partners__item span {
  margin-top: 0.5rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.section-head h2 {
  margin: 0;
  max-width: 20ch;
}

.section-head p {
  margin: 0;
  max-width: 46ch;
  font-size: 0.98rem;
  color: var(--muted);
}

.section-head--center {
  display: block;
  text-align: center;
}

.section-head--center h2 {
  margin-inline: auto;
}

.section-head--center p {
  margin: 1rem auto 0;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
}

.split__frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
}

.split__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.split__frame:hover img {
  transform: scale(1.03);
}

.split__frame--wide img {
  aspect-ratio: 5 / 4;
}

.split__inset {
  position: absolute;
  right: -1.5rem;
  bottom: -2rem;
  width: min(220px, 42%);
  padding: 8px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.split__inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--r) - 6px);
}

.split__quote {
  position: absolute;
  left: -1.5rem;
  bottom: 2rem;
  max-width: 240px;
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--leaf);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.split__quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--forest-900);
}

.split__quote span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.split__body h2 {
  margin-bottom: 1.2rem;
}

.split__body > p {
  color: var(--muted);
}

.split__signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.split__signature img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
}

.split__signature strong {
  display: block;
  font-size: 0.85rem;
  color: var(--forest-900);
}

.split__signature span {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 2rem;
}

.value {
  display: flex;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 253, 248, 0.6);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.value:hover {
  border-color: rgba(150, 176, 26, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xs);
}

.value__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--leaf-deep);
}

.value__icon .icon {
  width: 18px;
  height: 18px;
}

.value h3 {
  margin: 0 0 0.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--forest-900);
}

.value p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Mission / vision cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.pillar {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.pillar::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(150, 176, 26, 0.25);
  border-radius: 50%;
}

.pillar--dark {
  background: var(--forest-900);
}

.pillar--dark h3,
.pillar--dark p {
  color: var(--paper);
}

.pillar.pillar--dark p {
  color: rgba(247, 243, 233, 0.78);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  background: var(--cream);
  color: var(--leaf-deep);
}

.pillar--dark .pillar__icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--leaf-soft);
}

.pillar h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.pillar p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Quote block ---------- */
.quote-block {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.quote-block::before {
  content: "“";
  display: block;
  margin-bottom: -1.4rem;
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--leaf);
  opacity: 0.7;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--forest-900);
  text-wrap: balance;
}

.section--dark .quote-block blockquote {
  color: var(--paper);
}

.quote-block figcaption {
  margin-top: 1.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--leaf-deep);
}

.section--dark .quote-block figcaption {
  color: var(--leaf-soft);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 92px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 3rem;
  padding-block: 1.5rem;
}

.timeline__year {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--leaf-deep);
  text-align: right;
  line-height: 1.2;
}

.timeline__dot {
  position: absolute;
  left: 87px;
  top: 2rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--leaf);
}

.timeline__content {
  padding-left: 1.4rem;
}

.timeline__content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.timeline__content p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- CMS-managed custom blocks ---------- */
.cms-extra {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}
.cms-extra[hidden] {
  display: none;
}
.cms-extra > :first-child {
  margin-top: 0;
}
.cms-extra > :last-child {
  margin-bottom: 0;
}
.cms-extra h2,
.cms-extra h3,
.cms-extra h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.cms-extra h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}
.cms-extra h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 1.5rem 0 0.75rem;
}
.cms-extra h4 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}
.cms-extra p,
.cms-extra li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}
.cms-extra p {
  margin: 0 0 1rem;
}
.cms-extra ul,
.cms-extra ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}
.cms-extra a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cms-extra a:hover {
  color: var(--ink);
}
.cms-extra blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--leaf);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}
.cms-extra img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  margin: 1rem 0;
}
.cms-extra figure {
  margin: 1.5rem 0;
}
.cms-extra figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.cms-extra hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
