/* Shared portraits: square framing without changing the source photograph */
.clinic-founder-photo { margin: 0; max-width: 480px; width: 100%; justify-self: end; scroll-margin-top: 108px; }
.clinic-founder-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 16px; }
.clinic-founder-photo figcaption { display: grid; gap: 3px; padding-top: 16px; color: var(--brand-muted); font-size: 1rem; line-height: 1.5; }
.clinic-founder-photo figcaption strong { color: var(--brand-ink); font-size: 1.25rem; }
.clinic-founder-photo .clinic-registration { color: var(--brand-blue); font-weight: 700; }
.founder-story { align-items: center; }
.founder-story .clinic-founder-photo { max-width: 420px; }
.home .founder-story .founder-story-note { margin-top: 16px; color: var(--brand-muted); }
.home .founder-story .history-stat { margin-top: 26px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--brand-line); }
.founder-story .history-stat strong { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem); letter-spacing: -.03em; }
.founder-story .history-stat span { font-size: 1rem; }
.clinic-about-story { align-items: center; }

/* A compact attribution, independent of the contact sidebar */
.technical-profile { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--brand-line); }
.technical-profile img { display: block; width: 96px; height: 96px; object-fit: cover; object-position: 50% 25%; border-radius: 12px; }
.technical-profile p { margin: 0; color: var(--brand-muted); font-size: 1rem; line-height: 1.5; }
.technical-profile strong { color: var(--brand-ink); font-size: 1.125rem; }
.technical-profile .technical-profile-role { margin-bottom: 4px; }
.technical-profile a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 1rem; font-weight: 700; text-underline-offset: .2em; text-decoration-color: var(--brand-red); }

/* Population care: the clinical service in its social context */
.home .animal-care { background: var(--brand-blue-dark); color: #fff; }
.animal-care-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.animal-care-photo { margin: 0; }
.animal-care-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 65%; border-radius: 16px; }
.animal-care-photo figcaption { margin-top: 8px; color: #d0e3ec; font-size: .875rem; }
.home .animal-care h2 { color: #fff; }
.animal-care h2::after { display: block; width: 46px; height: 3px; margin-top: 22px; background: #ff4540; content: ""; }
.home .animal-care-copy p { margin-top: 18px; color: #e1eef5; max-width: 58ch; }
.animal-care-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.animal-care-actions .home-cta { margin-top: 0; }
.animal-care .home-text-link { margin-top: 0; color: #fff; text-decoration-color: #ff8e8a; }
.animal-care :focus-visible { outline-color: #fff; }

/* Campaign photograph overlaps a blue panel; the private option sits below. */
.home .castration-layout--photo {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 56px;
  overflow: visible;
  border: 0;
}
.home .castration-layout--photo .campaign {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding: 0 clamp(24px, 4vw, 44px) 36px;
  border-radius: 16px 16px 0 0;
  background: var(--brand-blue-dark);
}
.campaign-photo { width: 100%; margin: -28px 0 0; }
.campaign-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgb(5 21 30 / 20%);
}
.campaign-copy { min-width: 0; padding-top: 34px; }
.home .castration-layout--photo .campaign h3 {
  max-width: 17ch;
  margin-bottom: 20px;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  letter-spacing: -.025em;
  line-height: 1.06;
}
.castration-layout--photo .campaign h3::after {
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 18px;
  background: #ff6963;
  content: "";
}
.castration-layout--photo .campaign-copy p { max-width: 52ch; }
.home .castration-layout--photo .private-castration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  padding: 30px clamp(24px, 4vw, 44px);
  border-radius: 0 0 16px 16px;
}
.private-castration-copy p { max-width: 54ch; }
.home .private-castration-actions .home-cta { margin-top: 0; }
.private-castration-actions .home-text-link { font-size: 1rem; }
.home .campaign p { color: #fff; }
.home .campaign .home-text-link { text-decoration-color: #fff; }
.service-carousel-card--campaign { box-shadow: inset 0 0 0 2px var(--brand-red); }
.service-carousel-card--campaign::before { position: absolute; z-index: 2; inset: 0; border: 2px solid var(--brand-red); border-radius: inherit; pointer-events: none; content: ""; }
.service-carousel-card--campaign span::before { width: 42px; background: #ff6963; }

@media (max-width: 740px) {
  .home .castration-layout--photo .campaign { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 0 22px 30px; }
  .campaign-photo { max-width: 340px; margin-top: -20px; justify-self: center; }
  .campaign-copy { padding-top: 0; }
  .home .castration-layout--photo .campaign h3 { font-size: 2rem; }
  .home .castration-layout--photo .private-castration { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; gap: 22px; }
  .animal-care-layout { grid-template-columns: 1fr; }
  .animal-care-photo { max-width: 480px; width: 100%; justify-self: center; }
  .animal-care-photo img { aspect-ratio: 1; object-position: 50% 65%; }
  .clinic-founder-photo { justify-self: center; }
}
@media (max-width: 400px) {
  .technical-profile { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .technical-profile img { width: 80px; height: 80px; }
}
@media (prefers-reduced-motion: no-preference) {
  .castration-layout.campaign-in-view .campaign { animation: campaign-arrive .65s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes campaign-arrive {
    from { opacity: .86; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.home section[aria-labelledby="castracao"] { padding-bottom: clamp(32px, 4vw, 52px); }
.home .animal-care { padding-top: clamp(44px, 5vw, 64px); }
