/* ==========================================================================
   pages/home.css — homepage-only sections
   ========================================================================== */

/* ---- Hero ------------------------------------------------------------- */

/* rule spacing comes from the shared .hero rhythm in 06-components.css */

/* ---- Promo video ------------------------------------------------------ */

.home-video {
  padding-block: 10px;
}

/* Live crops the promo video to a square on phones */
@media (max-width: 767px) {
  .home-video {
    padding-block: 39px 0;
  }

  .home-video .home-video__player {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }
}

.home-video__player {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #000;
}

/* ---- About the Firm --------------------------------------------------- */

.home-about {
  /* The live build declares a Pattern2 texture here but it never paints —
     the section renders pure black. Matched to the actual render. */
  background-color: var(--c-black);
  padding-block: 73px var(--section-pad-y);
}

.home-about__box {
  border: 1px solid var(--c-gold);
  background-color: #111111;
  padding: 60px 30px;
}

.home-about .home-about__title {
  font-size: var(--fs-h2-sm);
  color: var(--c-white);
  margin-bottom: 10px;
}

.home-about .home-about__lede {
  font-size: var(--fs-h2-sm);
  margin-bottom: 28px;
}

.home-about__box p {
  margin-inline: 10px;   /* live insets body copy 10px inside the gold box */
  line-height: 24px;
}

.home-about__box p + p {
  margin-top: 24px;
}

/* the closing "Call us at ..." line reverts to the 32px rhythm */
.home-about__box p:last-of-type {
  line-height: 32px;
  margin-top: 32px;
}

.home-about__box .rule {
  margin-bottom: 36px;
}

.home-about__photo {
  width: 178px;
  height: auto;
  margin: 28px auto 34px;
}

/* Mobile: 21px title, 24px gold lede, larger family photo, auto-width button */
@media (max-width: 767px) {
  .home-about {
    padding-block: 51px 0;
  }

  .home-about__box {
    padding: 43px 15px 40px;
  }

  .home-about .home-about__title {
    font-size: 21px;
    line-height: 31.5px;
    margin-bottom: 11px;
  }

  .home-about .home-about__lede {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 22px;
  }

  .home-about__box .rule {
    margin-bottom: 24px;
  }

  .home-about__photo {
    width: 328px;
    height: auto;
    margin: 35px auto 0;
  }
}

/* ---- Attorney profile ------------------------------------------------- */

.home-attorney__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  align-content: center;
}

.home-attorney__media {
  grid-column: 1;
  grid-row: 1 / -1;
}

.home-attorney__head,
.home-attorney__text,
.home-attorney__logo {
  grid-column: 2;
}

.home-attorney__media {
  background-image: url('../../img/stairs.jpeg');
  background-size: contain;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  min-height: 100%;
}

.home-attorney__head {
  padding: 67px 50px 0;
}

.home-attorney__text {
  padding: 22px 50px 0;
}

.home-attorney .home-attorney__head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0;
}

/* the two gold headings sit tight together */

.home-attorney__logo {
  width: 500px;
  max-width: 100%;
  height: auto;
  margin: 10px auto 80px;
}

/* Mobile: headings, then the stairs photo, then the copy, then the logo */
@media (max-width: 767px) {
  .home-attorney__grid {
    grid-template-columns: 1fr;
  }

  .home-attorney__grid {
    padding-inline: var(--gutter);
  }

  .home-attorney__media {
    grid-column: 1;
    grid-row: auto;
    order: 2;
    width: 100%;
    aspect-ratio: 1920 / 3708;
    min-height: 0;
    margin-top: 13px;
  }

  .home-attorney__head {
    grid-column: 1;
    order: 1;
    padding: 60px 0 0;
    text-align: center;
  }

  .home-attorney__text {
    grid-column: 1;
    order: 3;
    padding: 16px 0 0;
    text-align: center;
  }

  .home-attorney__logo {
    grid-column: 1;
    order: 4;
    width: 100%;
    margin: 17px 0 0;
  }

  .home-attorney .home-attorney__head h2 {
    font-size: 30px;
    line-height: 45px;
  }

  .home-attorney__text p {
    line-height: 32px;
  }
}

/* ---- Civil rights advocates ------------------------------------------- */

/* Live layout: three equal columns, top-aligned. Each photo is 95.44% of its
   column and keeps its natural aspect ratio; the first is flush left, the
   second centred. */
.home-crump__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.home-crump__media img {
  width: 95.44%;
  height: auto;
}

.home-crump__media--inset img {
  margin-inline: auto;
}

.home-crump__body {
  padding: 82px 50px 40px;
}

.home-crump .home-crump__body h2 {
  font-size: var(--fs-h2);
  margin-bottom: 18px;
}

/* Mobile: copy first, then the two photos full width (004 above 003) */
@media (max-width: 767px) {
  .home-crump__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-crump__body {
    order: 1;
    padding: 68px 0 0;
    text-align: center;
  }

  .home-crump .home-crump__body h2 {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 21px;
  }

  .home-crump__body p {
    line-height: 32px;
  }

  .home-crump__grid {
    padding-inline: var(--gutter);
  }

  .home-crump__media {
    order: 3;
  }

  .home-crump__grid .home-crump__media--inset {
    order: 2;
    margin-top: 37px;
  }

  .home-crump__media img,
  .home-crump__media--inset img {
    width: 100%;
    max-width: none;
    height: auto;
    margin-inline: 0;
  }
}

/* ---- Testimonials ----------------------------------------------------- */

.home-quotes {
  background-image: url('../../img/office-001.jpg');
  background-position: 50% 100%;
  padding-block: 96px 94px;
}

.home-quotes .rule {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .home-quotes {
    padding-block: 65px 60px;
  }

  .home-quotes .testimonials__heading {
    font-size: 30px;
    line-height: normal;
  }

  .home-quotes .slider {
    max-width: 273px;
    margin-top: 49px;
  }
}

/* ---- Billboard -------------------------------------------------------- */

.home-billboard {
  padding-block: 0 15px;
}

.home-billboard img {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .home-billboard {
    padding-block: 0 15px;
  }
}
