/*
 * Styles for the theme's block patterns and block styles.
 * Loaded on the front end and in the block editor.
 */

/* Script block style (headings and paragraphs) */
.is-style-script {
  font-family: var(--wp--preset--font-family--script);
  font-weight: 500;
  line-height: 1.05;
}

h1.is-style-script,
h2.is-style-script {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 2.875rem);
}

h3.is-style-script {
  font-size: clamp(2.125rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 700;
}

p.is-style-script {
  font-size: 1.625rem;
  line-height: 1.25;
  color: var(--wp--preset--color--grass);
}

/* Front page content area: full-width sections, constrained text */
.front-page-content > * {
  max-width: 760px;
  width: calc(100% - 3.5rem);
  margin-left: auto;
  margin-right: auto;
}

.front-page-content > * + * {
  margin-top: 1.25rem;
}

.front-page-content > .alignwide {
  max-width: 1080px;
}

.front-page-content > .alignfull {
  max-width: none;
  width: 100%;
}

.front-page-content > .alignfull + *,
.front-page-content > * + .alignfull {
  margin-top: 0;
}

.front-page-content > :not(.alignfull):first-child,
.front-page-content > .alignfull + :not(.alignfull) {
  margin-top: 5rem;
}

.front-page-content > :not(.alignfull):last-child {
  margin-bottom: 5rem;
}

.front-page-content > :not(.alignfull) + .alignfull {
  margin-top: 5rem;
}

/* Cover blocks used as photo placeholders */
.fdb-cover {
  border-radius: 8px;
}

.fdb-cover .wp-block-cover__inner-container,
.fdb-cover h3,
.fdb-cover p {
  color: #fff;
}

/* About */
.fdb-about .wp-block-columns {
  gap: 0;
  margin: 0;
}

.fdb-about__text {
  padding: 88px 64px 88px 1.75rem;
}

.fdb-about__text > * {
  max-width: 440px;
  margin-left: auto;
}

.fdb-about__text > * + * {
  margin-top: 1.25rem;
}

.fdb-about__text h2 {
  margin-bottom: 0.625rem;
}

.fdb-about__media .fdb-cover {
  height: 100%;
  border-radius: 0;
  padding: 54px 56px;
}

.fdb-about__media .fdb-cover p {
  max-width: 300px;
}

@media (max-width: 781px) {
  .fdb-about__text {
    padding: 60px 1.75rem;
  }

  .fdb-about__text > * {
    max-width: none;
  }

  .fdb-about__media .fdb-cover {
    min-height: 420px !important;
    padding: 40px 1.75rem;
  }
}

/* Green heading band */
.fdb-band {
  padding: 46px 20px;
  text-align: center;
}

.fdb-band h2 {
  margin: 0;
  color: #fff;
}

/* Litter */
.fdb-litter {
  padding: 96px 1.75rem;
}

.fdb-litter .wp-block-columns {
  gap: 60px;
}

.fdb-litter h2 {
  font-size: clamp(2.375rem, 1.7rem + 2vw, 3rem);
  line-height: 1;
}

.fdb-litter p.is-style-script {
  margin-bottom: 0;
}

.fdb-litter .wp-block-column > * + * {
  margin-top: 0.75rem;
}

.fdb-stats {
  gap: 34px;
  margin: 26px 0 30px !important;
}

.fdb-stat {
  gap: 0;
  border-left: 3px solid var(--wp--preset--color--grass);
  padding-left: 14px;
}

.fdb-stat p {
  margin: 0;
}

.fdb-stat__value {
  font-family: var(--wp--preset--font-family--script);
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--wp--preset--color--ink);
}

.fdb-stat__label {
  font-size: 0.8125rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Adoption process */
.fdb-process {
  padding-bottom: 110px;
}

.fdb-process .fdb-band {
  padding-bottom: 56px;
}

.fdb-steps {
  position: relative;
  gap: 30px;
  margin-top: 64px !important;
  padding: 0 1.75rem;
}

.fdb-steps::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--wp--preset--color--line) 0 8px, transparent 8px 16px);
}

.fdb-step {
  text-align: center;
}

.fdb-step__number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border: 2px solid var(--wp--preset--color--grass);
  border-radius: 50%;
  background: #fff;
  font-family: var(--wp--preset--font-family--script);
  font-size: 2.625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--wp--preset--color--grass-deep);
  transition: background-color 0.2s, color 0.2s;
}

.fdb-step:hover .fdb-step__number {
  background: var(--wp--preset--color--grass);
  color: #fff;
}

.fdb-step h3 {
  margin: 0 0 0.625rem;
  font-size: 1.25rem;
}

.fdb-step p:not(.fdb-step__number) {
  margin: 0;
  font-size: 0.97rem;
}

@media (max-width: 781px) {
  .fdb-steps::before {
    display: none;
  }
}

/* Call to action */
.fdb-cta {
  padding: 84px 20px;
  text-align: center;
}

.fdb-cta h2 {
  margin: 0 0 18px;
  color: #fff;
}

.fdb-cta p {
  max-width: 560px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.7);
}
