/* =========================================================
   Success Stories Page
   ========================================================= */


/* =========================================================
   Mobile / Base
   0rem+
   ========================================================= */

@media only screen and (min-width: 0rem) {

  /* =======================================================
     Shared Eyebrows
     ======================================================= */

  .stories-hero__eyebrow,
  .reviews__eyebrow,
  .story-themes__eyebrow,
  .stories-cta__eyebrow {
    margin-bottom: 0.75rem;
    color: #904c32;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }


  /* =======================================================
     Scroll Reveal
     ======================================================= */

  [data-reveal] {
    opacity: 0;

    transform: translateY(1.5rem);

    transition:
      opacity 700ms ease,
      transform 800ms
      cubic-bezier(0.16, 1, 0.3, 1);
  }


  [data-reveal].is-visible {
    opacity: 1;

    transform: translateY(0);
  }


  /* =======================================================
     Hero
     ======================================================= */

  .stories-hero {
    padding:
      4rem
      0
      5rem;

    overflow: hidden;

    background: var(--color-cream);
  }


  .stories-hero__inner {
    display: flex;
    flex-direction: column;

    gap: 2.5rem;
  }


  .stories-hero__content {
    max-width: 49rem;
  }


  .stories-hero__title {
    margin-bottom: 1.5rem;

    font-size:
      clamp(
        3rem,
        12vw,
        5.5rem
      );

    line-height: 0.95;
  }


  .stories-hero__title span {
    display: block;

    margin-top: 0.18em;

    color: var(--color-rust);
  }


  .stories-hero__intro {
    max-width: 46rem;

    color: var(--color-text-light);

    font-size: 1.1rem;
    line-height: 1.7;
  }


  /* ---------- Intro Quote ---------- */

  .stories-hero__note {
    position: relative;

    max-width: 32rem;

    padding:
      2rem
      1.5rem
      1.5rem;

    border-radius:
      1.75rem
      1.75rem
      0.5rem
      1.75rem;

    background: var(--color-green-dark);
    color: var(--color-white);

    box-shadow:
      0 1rem 2rem
      rgba(38, 56, 40, 0.12);
  }


  .stories-hero__quote-mark {
    position: absolute;

    top: -1.25rem;
    left: 1rem;

    color: var(--color-rust);

    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1;
  }


  .stories-hero__note p {
    position: relative;

    z-index: 2;

    margin: 0;

    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.45;
  }


  /* =======================================================
     Featured Story
     ======================================================= */

  .featured-story {
    padding:
      0
      0
      5rem;

    background: var(--color-cream);
  }


  .featured-story__card {
    position: relative;

    overflow: hidden;

    padding:
      2rem
      1.5rem;

    border-radius: 2rem;

    background: #f3dac5;

    box-shadow:
      0 1rem 2.5rem
      rgba(38, 56, 40, 0.08);
  }


  .featured-story__label {
    display: inline-flex;

    margin-bottom: 1.5rem;

    padding:
      0.45rem
      0.85rem;

    border-radius: var(--radius-pill);

    background: var(--color-rust);
    color: var(--color-white);

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.1em;
  }


  .featured-story__quote {
    position: relative;

    max-width: 56rem;
  }


  .featured-story__quote-mark {
    display: block;

    margin-bottom: -1.75rem;

    color:
      rgba(38, 56, 40, 0.12);

    font-family: var(--font-heading);
    font-size: 7rem;
    line-height: 1;
  }


  .featured-story blockquote {
    margin:
      0
      0
      2rem;

    color: var(--color-green-dark);

    font-family: var(--font-heading);
    font-size:
      clamp(
        1.6rem,
        6vw,
        2.5rem
      );

    line-height: 1.35;
  }


  .featured-story__person {
    display: flex;
    align-items: center;

    gap: 0.85rem;
  }


  .featured-story__initial {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 3rem;
    height: 3rem;

    border-radius: 50%;

    background: var(--color-green-dark);
    color: var(--color-white);

    font-family: var(--font-heading);
    font-size: 1.3rem;
  }


  .featured-story__name {
    margin: 0;

    color: var(--color-green-dark);

    font-weight: 700;
  }


  .featured-story__meta {
    margin: 0;

    color: var(--color-text-light);

    font-size: 0.82rem;
  }


  /* =======================================================
     Reviews
     ======================================================= */

  .reviews {
    padding:
      5rem
      0;

    background: var(--color-white);
  }


  .reviews__header {
    max-width: 48rem;

    margin-bottom: 3rem;
  }


  .reviews__title {
    margin-bottom: 1rem;
  }


  .reviews__intro {
    color: var(--color-text-light);

    font-size: 1.05rem;
    line-height: 1.65;
  }


  .reviews__list {
    display: flex;
    flex-direction: column;

    gap: 1rem;
  }


  /* ---------- Review Cards ---------- */

  .review-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 18rem;

    padding:
      2rem
      1.5rem;

    border:
      0.0625rem solid
      rgba(38, 56, 40, 0.06);

    border-radius: 1.5rem;

    box-shadow:
      0 0.6rem 1.5rem
      rgba(38, 56, 40, 0.05);

    transition:
      transform 350ms ease,
      box-shadow 350ms ease;
  }


  .review-card:hover {
    transform: translateY(-0.25rem);

    box-shadow:
      0 1rem 2rem
      rgba(38, 56, 40, 0.1);
  }


  .review-card--cream {
    background: #f6eddb;
  }


  .review-card--sage {
    background: #e3e9dd;
  }


  .review-card--peach {
    background: #f3dac5;
  }


  .review-card--white {
    background: var(--color-white);
  }


  .review-card__quote-mark {
    margin-bottom: -1rem;

    color:
      rgba(182, 92, 56, 0.25);

    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
  }


  .review-card__text {
    flex: 1;

    margin:
      0
      0
      1.75rem;

    color: var(--color-green-dark);

    font-family: var(--font-heading);
    font-size: 1.15rem;
    line-height: 1.55;
  }


  .review-card__footer {
    display: flex;
    align-items: center;

    gap: 0.75rem;
  }


  .review-card__initial {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 2.75rem;
    height: 2.75rem;

    border-radius: 50%;

    background: var(--color-green-dark);
    color: var(--color-white);

    font-family: var(--font-heading);
    font-size: 1.1rem;
  }


  .review-card__name {
    margin: 0;

    color: var(--color-green-dark);

    font-weight: 700;
  }


  .review-card__source {
    margin: 0;

    color: var(--color-text-light);

    font-size: 0.8rem;
  }


  /* =======================================================
     Themes
     ======================================================= */

  .story-themes {
    padding:
      5rem
      0;

    background: var(--color-sage-light);
  }


  .story-themes__header {
    max-width: 48rem;

    margin-bottom: 3rem;
  }


  .story-themes__title {
    margin-bottom: 1rem;
  }


  .story-themes__intro {
    color: var(--color-text-light);

    font-size: 1.05rem;
    line-height: 1.65;
  }


  .story-themes__list {
    display: flex;
    flex-direction: column;

    gap: 1rem;
  }


  .story-theme {
    padding:
      1.75rem;

    border-radius: 1.5rem;

    background:
      rgba(255, 255, 255, 0.55);
  }


  .story-theme__number {
    display: block;

    margin-bottom: 1rem;

    color: var(--color-rust);

    font-family: var(--font-heading);
    font-size: 1rem;
  }


  .story-theme h3 {
    margin-bottom: 0.65rem;

    font-size: 1.55rem;
  }


  .story-theme p {
    color: var(--color-text-light);

    line-height: 1.65;
  }


  /* =======================================================
     Review Privacy Note
     ======================================================= */

  .review-note {
    padding:
      2.5rem
      0;

    background: var(--color-cream);
  }


  .review-note__inner {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 1rem;
  }


  .review-note__line {
    flex: 1;

    max-width: 8rem;

    height: 0.0625rem;

    background:
      rgba(38, 56, 40, 0.16);
  }


  .review-note p {
    max-width: 30rem;

    margin: 0;

    color: var(--color-text-light);

    font-size: 0.78rem;
    line-height: 1.5;

    text-align: center;
  }
}

/* =========================================================
   Small Tablet
   37.5rem+
   ========================================================= */

@media only screen and (min-width: 37.5rem) {

  .reviews__list {
    flex-direction: row;
    flex-wrap: wrap;
  }


  .review-card {
    flex:
      1
      1
      calc(50% - 0.5rem);
  }


  .story-themes__list {
    flex-direction: row;
    flex-wrap: wrap;
  }


  .story-theme {
    flex:
      1
      1
      calc(50% - 0.5rem);
  }

}


/* =========================================================
   Tablet
   48rem+
   ========================================================= */

@media only screen and (min-width: 48rem) {

  .stories-hero {
    padding:
      5rem
      0
      6rem;
  }


  .featured-story {
    padding-bottom: 6rem;
  }


  .featured-story__card {
    padding:
      3rem;
  }


  .reviews,
  .story-themes {
    padding:
      6rem
      0;
  }

}


/* =========================================================
   Desktop
   64rem+
   ========================================================= */

@media only screen and (min-width: 64rem) {

  /* =======================================================
     Hero
     ======================================================= */

  .stories-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;

    gap: 5rem;
  }


  .stories-hero__content {
    flex:
      1
      1
      65%;
  }


  .stories-hero__note {
    flex:
      0
      1
      30%;

    margin-bottom: 0.5rem;
  }


  /* =======================================================
     Featured
     ======================================================= */

  .featured-story__card {
    padding:
      3.5rem
      4rem;
  }


  /* =======================================================
     Reviews
     ======================================================= */

  .reviews__list {
    align-items: stretch;

    gap: 1.25rem;
  }


  .review-card {
    flex:
      1
      1
      calc(33.333% - 0.834rem);

    min-height: 21rem;
  }


  /* =======================================================
     Themes
     ======================================================= */

  .story-themes__list {
    flex-wrap: nowrap;

    gap: 1.25rem;
  }


  .story-theme {
    flex:
      1
      1
      0;

    min-height: 14rem;

    padding:
      2rem;
  }
}


/* =========================================================
   Large Desktop
   75rem+
   ========================================================= */

@media only screen and (min-width: 75rem) {

  .stories-hero__inner {
    gap: 7rem;
  }


  .featured-story__card {
    padding:
      4rem
      5rem;
  }


  .review-card {
    padding:
      2.25rem
      2rem;
  }

}

/* =========================================================
   Universal Interior Page CTA
   ========================================================= */

@media only screen and (min-width: 0rem) {

  .page-cta {
    position: relative;

    overflow: hidden;

    padding:
      5rem
      0;

    background: #f3dac5;

    color: var(--color-green-dark);

    text-align: center;
  }


  .page-cta__inner {
    position: relative;

    z-index: 1;

    max-width: 52rem;
  }


  .page-cta__content {
    position: relative;

    z-index: 2;

    max-width: 46rem;

    margin-inline: auto;
  }


  .page-cta__eyebrow {
    margin-bottom: 0.75rem;

    color: var(--color-rust-dark);

    font-size: 0.8rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.13em;
  }


  .page-cta__title {
    margin-bottom: 1rem;

    color: var(--color-green-dark);

    font-size:
      clamp(
        2.4rem,
        9vw,
        4rem
      );

    line-height: 1.05;
  }


  .page-cta__text {
    max-width: 40rem;

    margin:
      0
      auto
      1.75rem;

    color:
      rgba(
        38,
        56,
        40,
        0.78
      );

    font-size: 1.05rem;
    line-height: 1.6;
  }


  .page-cta__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 0.75rem;

    padding:
      1rem
      1.6rem;

    border:
      0.125rem solid
      rgba(
        255,
        255,
        255,
        0.75
      );

    border-radius:
      var(--radius-pill);

    background:
      var(--color-rust);

    color:
      var(--color-white);

    font-weight: 700;

    text-decoration: none;

    box-shadow:
      0 0.5rem 1.25rem
      rgba(
        38,
        56,
        40,
        0.1
      );

    transition:
      background-color var(--transition),
      transform 350ms ease,
      box-shadow 350ms ease;
  }


  .page-cta__button span {
    transition:
      transform 350ms ease;
  }


  .page-cta__button:hover,
  .page-cta__button:focus-visible {
    background:
      var(--color-rust-dark);

    transform:
      translateY(-0.2rem);

    box-shadow:
      0 0.85rem 1.75rem
      rgba(
        38,
        56,
        40,
        0.16
      );
  }


  .page-cta__button:hover span,
  .page-cta__button:focus-visible span {
    transform:
      translateX(0.3rem);
  }


  .page-cta__paw {
    position: absolute;

    right: -2rem;
    bottom: -2.5rem;

    width: 10rem;
    height: 10rem;

    fill:
      var(--color-green-dark);

    opacity: 0.075;

    transform:
      rotate(-15deg);

    pointer-events: none;
  }


  .page-cta__decor--left {
    position: absolute;

    left: -6rem;
    top: -6rem;

    width: 15rem;
    height: 15rem;

    border:
      2rem solid
      rgba(
        38,
        56,
        40,
        0.055
      );

    border-radius: 50%;

    pointer-events: none;
  }

}


@media only screen and (min-width: 48rem) {

  .page-cta {
    padding:
      5.5rem
      0;
  }


  .page-cta__paw {
    right: -1rem;

    width: 12rem;
    height: 12rem;
  }


  .page-cta__decor--left {
    left: -5rem;
    top: -7rem;

    width: 18rem;
    height: 18rem;
  }

}


@media only screen and (min-width: 64rem) {

  .page-cta {
    padding:
      6rem
      0;
  }


  .page-cta__paw {
    right: 3%;

    bottom: -3rem;

    width: 14rem;
    height: 14rem;
  }


  .page-cta__decor--left {
    left: -7rem;
    top: -8rem;

    width: 21rem;
    height: 21rem;
  }

}


@media (prefers-reduced-motion: reduce) {

  .page-cta__button,
  .page-cta__button span {
    transition: none;
  }

}

/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  [data-reveal] {
    opacity: 1;

    transform: none;

    transition: none;
  }


  .review-card,
  .stories-cta__button {
    transition: none;
  }

}