/*
 * 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);
}

/* Latest posts */
.fdb-posts {
  padding: 88px 1.75rem;
}

.fdb-posts .fdb-posts__header {
  gap: 24px;
  margin-bottom: 40px;
}

.fdb-posts .fdb-posts__intro > * {
  margin: 0;
}

.fdb-posts .fdb-posts__eyebrow,
.fdb-posts .fdb-post-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wp--preset--color--grass-deep);
}

.fdb-posts .fdb-posts__eyebrow {
  margin-bottom: 8px;
}

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

/* Coloured heading words use <mark>; drop the browser's yellow default. An editor-chosen highlight is inline and still wins. */
.fdb-posts h2 mark.has-inline-color {
  background-color: transparent;
}

.fdb-posts .fdb-posts__all {
  margin: 0;
}

.fdb-posts .fdb-posts__all a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--wp--preset--color--grass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--wp--preset--color--grass-deep);
  transition: color 0.2s;
}

.fdb-posts .fdb-posts__all a:hover {
  color: var(--wp--preset--color--ink);
}

.fdb-posts .wp-block-post-template.is-layout-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1023px) {
  .fdb-posts .wp-block-post-template.is-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .fdb-posts .wp-block-post-template.is-layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fdb-posts .wp-block-post {
  display: flex;
}

.fdb-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.fdb-post-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.fdb-posts .fdb-post-card > * {
  margin: 0;
}

.fdb-posts .fdb-post-card__image {
  overflow: hidden;
}

.fdb-posts .fdb-post-card__image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.3s;
}

.fdb-post-card:hover .fdb-post-card__image img {
  transform: scale(1.04);
}

/* Paw placeholder when a post has no featured image */
.fdb-post-card:not(:has(.fdb-post-card__image))::before {
  content: "\1F43E";
  display: grid;
  place-items: center;
  height: 210px;
  background: var(--wp--preset--color--paper-warm);
  font-size: 56px;
  line-height: 1;
  opacity: 0.6;
}

.fdb-posts .fdb-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.fdb-posts .fdb-post-card__body > * {
  margin: 0;
}

.fdb-posts .fdb-post-card__label {
  margin-bottom: 8px;
}

.fdb-posts .fdb-post-card__label a {
  color: inherit;
  text-decoration: none;
}

.fdb-posts .fdb-post-card__title {
  font-family: var(--wp--preset--font-family--script);
  font-size: 30px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--wp--preset--color--ink);
}

.fdb-posts .fdb-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.fdb-post-card:hover .fdb-post-card__title a {
  color: var(--wp--preset--color--grass-deep);
}

.fdb-posts .fdb-post-card__excerpt {
  margin: 12px 0 20px;
  font-size: 15.5px;
  color: var(--wp--preset--color--ink-soft);
}

.fdb-posts .fdb-post-card__excerpt p {
  margin: 0;
}

.fdb-posts .fdb-post-card__date {
  margin-top: auto;
  font-size: 13.5px;
  color: var(--wp--preset--color--ink-soft);
}
