/*
 * SeedChange native blocks (added 2026-11)
 * Styles for: sc-donation-hero, sc-cta-band, sc-testimonials, sc-milestones.
 * Loaded after template_parts/blocks/css/style.css. Uses the theme palette
 * (sass/banfieldStyles/_variables.scss) and the theme's 10px root font size.
 * Every rule is scoped to an .sc-* class, so existing blocks are not affected.
 */

/* ---------- Shared ---------- */

.sc-bg-none { background-color: transparent; }
.sc-bg-light-grey { background-color: #f4f4f1; }
.sc-bg-indigo { background-color: #09183d; }
.sc-bg-aquamarine { background-color: #007471; }
.sc-bg-teal { background-color: #27bdbe; }
.sc-bg-red { background-color: #e65a3e; }
.sc-bg-pink { background-color: #c83e85; }
.sc-bg-mint { background-color: #47b972; }
.sc-bg-yellow { background-color: #ffde2f; }

section.sc-bg-light-grey.sc-donation-hero,
section.sc-bg-light-grey.sc-testimonials,
section.sc-bg-light-grey.sc-milestones {
  padding: 8rem 0;
}

.sc-eyebrow {
  font-family: motiva-sans, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e65a3e;
  margin: 0 0 1.2rem;
}

.sc-preview-note {
  font-size: 1.4rem;
  font-style: italic;
  opacity: 0.7;
  margin-top: 1.6rem;
}

/* ---------- Core blocks inside native sections ----------
 * Pages rebuilt from Elementor use core blocks (columns, gallery, embeds)
 * inside a <section class="grid-container sc-core-section"> group.
 * These rules make core buttons and spacing match the theme.
 */

.sc-core-section.wp-block-group {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.sc-core-section[class*="sc-bg-"]:not(.sc-bg-none) {
  padding-top: 6.4rem;
  padding-bottom: 6.4rem;
}

.sc-core-section.sc-bg-indigo,
.sc-core-section.sc-bg-aquamarine {
  color: #fff;
}

.sc-core-section.sc-bg-indigo :is(h2, h3, h4, p),
.sc-core-section.sc-bg-aquamarine :is(h2, h3, h4, p) {
  color: inherit;
}

.sc-core-section .wp-block-columns {
  gap: 3.2rem;
  margin-bottom: 3.2rem;
}

.sc-core-section .wp-block-image img {
  height: auto;
}

/* Core button styled as the theme's .btn.red */
.wp-block-button.sc-btn .wp-block-button__link {
  padding: 2.3rem 1rem 2.2rem;
  font-size: 1.4rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  text-align: center;
  border-radius: 5px;
  min-width: 23rem;
  font-family: motivaBold, motiva-sans, sans-serif;
  background-color: #e65a3e;
  color: #fff;
  border: solid 1px #e65a3e;
  transition: all 0.3s;
}

.wp-block-button.sc-btn .wp-block-button__link:hover,
.wp-block-button.sc-btn .wp-block-button__link:focus {
  background-color: #09183d;
  color: #e65a3e;
  border-color: #09183d;
}

.sc-core-section .wp-block-buttons {
  margin-top: 2.4rem;
}

/* ---------- Donation hero ---------- */

.sc-donation-hero {
  padding-top: 4rem;
}

.sc-donation-hero .flex {
  align-items: center;
}

.sc-donation-hero.image-right .sc-dh-media {
  order: 2;
}

.sc-donation-hero.image-right .sc-dh-content {
  order: 1;
}

.sc-donation-hero .sc-dh-image {
  display: block;
  width: 100%;
  height: auto;
}

.sc-donation-hero .sc-dh-heading {
  margin-top: 0;
  margin-bottom: 2.4rem;
}

.sc-donation-hero h1.sc-dh-heading {
  font-size: 4.2rem;
  line-height: 1.15;
}

.sc-donation-hero h2.sc-dh-heading {
  font-size: 3.6rem;
  line-height: 1.2;
}

.sc-donation-hero .sc-dh-text p:last-child {
  margin-bottom: 0;
}

.sc-donation-hero .sc-dh-form {
  margin-top: 3.2rem;
  min-height: 4rem;
}

@media (max-width: 639px) {
  .sc-donation-hero .sc-dh-media,
  .sc-donation-hero.image-right .sc-dh-media {
    order: 0;
    margin-bottom: 3.2rem;
  }
  .sc-donation-hero.image-right .sc-dh-content {
    order: 1;
  }
  .sc-donation-hero h1.sc-dh-heading,
  .sc-donation-hero h2.sc-dh-heading {
    font-size: 3rem;
  }
}

/* ---------- CTA band ---------- */

.sc-cta-band {
  position: relative;
  padding: 8rem 0;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.sc-cta-band.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(9, 24, 61, 0.6);
}

.sc-cta-band .grid-container {
  position: relative;
}

.sc-cta-band.align-center .sc-cta-content {
  text-align: center;
}

.sc-cta-band .sc-cta-heading {
  color: inherit;
  margin-top: 0;
  margin-bottom: 2rem;
}

.sc-cta-band .sc-cta-text,
.sc-cta-band .sc-cta-text p {
  color: inherit;
}

.sc-cta-band .sc-cta-text p:last-child {
  margin-bottom: 0;
}

.sc-cta-band .sc-eyebrow {
  color: inherit;
  opacity: 0.85;
}

.sc-cta-band .btn {
  margin-top: 3.2rem;
}

/* Light bands use the theme's dark text colour. */
.sc-cta-band.sc-bg-none:not(.has-image),
.sc-cta-band.sc-bg-light-grey:not(.has-image),
.sc-cta-band.sc-bg-yellow:not(.has-image) {
  color: #09183d;
}

.sc-cta-band.sc-bg-none:not(.has-image) .sc-eyebrow,
.sc-cta-band.sc-bg-light-grey:not(.has-image) .sc-eyebrow {
  color: #e65a3e;
  opacity: 1;
}

/* ---------- Testimonials ---------- */

.sc-testimonials .sc-tm-heading {
  margin-top: 0;
}

.sc-testimonials .sc-tm-list {
  row-gap: 3.2rem;
}

.sc-testimonials .sc-tm-item {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.2rem;
  background-color: #fff;
  border-top: 4px solid #e65a3e;
}

.sc-testimonials.sc-bg-none .sc-tm-item {
  background-color: #f4f4f1;
}

/* Keeps the theme's yellow quote icon (blockquote background in style.css),
   moved to the left and given room above the text. */
.sc-testimonials .sc-tm-quote {
  margin: 0 0 2.4rem;
  padding: 5.6rem 0 0;
  border: 0;
  background-position: left top;
  background-size: 3.6rem auto;
  font-size: 1.8rem;
  line-height: 1.6;
  font-style: italic;
  color: #09183d;
}

.sc-testimonials.count-1 .sc-tm-quote {
  background-position: center top;
}

.sc-testimonials .sc-tm-person {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.sc-testimonials .sc-tm-photo {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sc-testimonials .sc-tm-meta {
  display: flex;
  flex-direction: column;
}

.sc-testimonials .sc-tm-name {
  font-family: motiva-sans, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
}

.sc-testimonials .sc-tm-role {
  font-size: 1.4rem;
  opacity: 0.8;
}

.sc-testimonials.count-1 .sc-tm-item {
  text-align: center;
  align-items: center;
}

/* ---------- Milestones ---------- */

.sc-milestones .sc-ms-heading {
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.sc-milestones .sc-ms-intro {
  margin-bottom: 4rem;
}

.sc-milestones .sc-ms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Vertical line through the markers. */
.sc-milestones .sc-ms-list::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 1.1rem;
  width: 2px;
  background-color: #e6e6e6;
}

.sc-milestones .sc-ms-item {
  position: relative;
  display: flex;
  gap: 2.4rem;
  margin: 0 0 4rem;
}

.sc-milestones .sc-ms-item:last-child {
  margin-bottom: 0;
}

.sc-milestones .sc-ms-marker {
  position: relative;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background-color: #e65a3e;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #e65a3e;
}

.sc-milestones .sc-ms-item.has-icon .sc-ms-marker {
  width: 4.8rem;
  height: 4.8rem;
  margin-left: -1.2rem;
  margin-top: 0;
  background-color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-milestones .sc-ms-icon {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.sc-milestones .sc-ms-label {
  font-family: motiva-sans, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #007471;
  margin: 0 0 0.4rem;
}

.sc-milestones .sc-ms-title {
  margin: 0 0 0.8rem;
  line-height: 1.3;
}

.sc-milestones .sc-ms-text {
  margin: 0;
}

/* ---------- Stats (added 2026-11-23) ---------- */

.sc-stats {
  padding: 8rem 0;
  color: #fff;
  text-align: center;
}

.sc-stats.is-light {
  color: #09183d;
}

.sc-stats .sc-st-head {
  margin-bottom: 4.8rem;
}

.sc-stats .sc-st-heading {
  color: inherit;
  margin: 0 0 1.6rem;
}

.sc-stats .sc-eyebrow {
  color: inherit;
  opacity: 0.85;
}

.sc-stats.is-light .sc-eyebrow {
  color: #e65a3e;
  opacity: 1;
}

.sc-stats .sc-st-intro {
  color: inherit;
  margin: 0;
}

.sc-stats .sc-st-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 3.2rem;
}

.sc-stats.count-4 .sc-st-list {
  grid-template-columns: repeat(4, 1fr);
}

.sc-stats .sc-st-item {
  margin: 0;
  padding: 0 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sc-stats .sc-st-item + .sc-st-item {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.sc-stats.is-light .sc-st-item + .sc-st-item {
  border-left-color: rgba(9, 24, 61, 0.15);
}

.sc-stats .sc-st-number {
  font-family: motiva-sans, sans-serif;
  font-weight: 900;
  font-size: 5.6rem;
  line-height: 1.1;
  color: #ffde2f;
  margin-bottom: 1.2rem;
}

.sc-stats.is-light .sc-st-number {
  color: #e65a3e;
}

.sc-stats.sc-bg-yellow .sc-st-number {
  color: #09183d;
}

.sc-stats .sc-st-label {
  font-size: 1.6rem;
  line-height: 1.5;
}

.sc-stats .sc-st-note {
  margin: 4rem 0 0;
  font-size: 1.3rem;
  opacity: 0.75;
  color: inherit;
}

@media (max-width: 1023px) {
  .sc-stats.count-4 .sc-st-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .sc-stats .sc-st-list,
  .sc-stats.count-4 .sc-st-list {
    grid-template-columns: 1fr;
  }
  .sc-stats .sc-st-item + .sc-st-item {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 3.2rem;
  }
  .sc-stats.is-light .sc-st-item + .sc-st-item {
    border-top-color: rgba(9, 24, 61, 0.15);
  }
  .sc-stats .sc-st-number {
    font-size: 4.4rem;
  }
}

/* ---------- Profile cards (added 2026-11-23) ---------- */

section.sc-bg-light-grey.sc-profile-cards {
  padding: 8rem 0;
}

.sc-profile-cards .sc-pc-head {
  margin-bottom: 4rem;
}

.sc-profile-cards .sc-pc-heading {
  margin-top: 0;
}

.sc-profile-cards .sc-pc-list {
  row-gap: 3.2rem;
}

.sc-profile-cards .sc-pc-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.sc-profile-cards.sc-bg-none .sc-pc-card {
  background-color: #f4f4f1;
}

.sc-profile-cards .sc-pc-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.sc-profile-cards.shape-square .sc-pc-media {
  aspect-ratio: 1 / 1;
}

.sc-profile-cards.shape-portrait .sc-pc-media {
  aspect-ratio: 3 / 4;
  padding: 2.4rem 2.4rem 0;
}

.sc-profile-cards .sc-pc-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-profile-cards.shape-portrait .sc-pc-image {
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(9, 24, 61, 0.15);
}

.sc-profile-cards .sc-pc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.4rem;
}

.sc-profile-cards .sc-pc-name {
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.sc-profile-cards .sc-pc-subtitle {
  font-family: motiva-sans, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #007471;
  margin: 0 0 1.2rem;
}

.sc-profile-cards .sc-pc-text {
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
}

.sc-profile-cards .sc-pc-body .btn {
  margin-top: auto;
  align-self: flex-start;
  min-width: 0;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
}

.sc-profile-cards .sc-pc-text + .btn,
.sc-profile-cards .sc-pc-subtitle + .btn,
.sc-profile-cards .sc-pc-name + .btn {
  margin-top: auto;
}

.sc-profile-cards .sc-pc-body > :not(.btn):last-of-type {
  margin-bottom: 2.4rem;
}
