/* =========================================================
   WHITE BEARD COFFEE & ROASTERY
   Home Responsive
   File: /assets/css/responsive/home-responsive.css
   ========================================================= */


/* =========================================================
   1. LARGE DESKTOP
   ========================================================= */

@media (min-width: 1440px) {
  .home-hero__content {
    max-width: 74rem;
  }

  .home-hero__title {
    font-size: clamp(7rem, 8.5vw, 9.5rem);
  }

  .home-intro__grid,
  .home-story__grid,
  .home-visit__grid {
    gap: 9rem;
  }

  .home-beans__content {
    padding-inline: 8rem;
  }
}


/* =========================================================
   2. SMALL DESKTOP
   ========================================================= */

@media (max-width: 1199px) {
  .home-hero__title {
    max-width: 9.5ch;
    font-size: clamp(4.75rem, 8vw, 7.25rem);
  }

  .home-hero__meta {
    right: var(--container-padding, 2rem);
  }

  .home-hero__scroll {
    display: none;
  }

  .home-intro__grid {
    grid-template-columns:
      minmax(0, 0.9fr)
      minmax(0, 1.1fr);
    gap: 4.5rem;
  }

  .home-brand__content {
    padding: 4.5rem;
  }

  .home-story__grid {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(20rem, 0.9fr);
    gap: 4.5rem;
  }

  .home-beans__feature {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(23rem, 0.9fr);
  }

  .home-beans__content {
    padding: 4.5rem;
  }

  .home-products__grid,
  [data-home-products] {
    gap: 1.75rem;
  }

  .home-visit__grid {
    gap: 4.5rem;
  }

  .home-cta__inner {
    min-height: 34rem;
  }
}


/* =========================================================
   3. TABLET
   ========================================================= */

@media (max-width: 991px) {
  .home-section__title {
    max-width: 15ch;
  }

  /* -------------------------------------------------------
     Hero centered
     ------------------------------------------------------- */

  .home-hero {
    min-height: max(44rem, 100svh);
    align-items: stretch;
  }

  .home-hero__picture {
    inset: -4%;
    width: 108%;
    height: 108%;
  }

  .home-hero__image {
    object-position:
      var(--hero-tablet-position, 58% center);
  }

  .home-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgba(12, 10, 8, 0.78) 0%,
        rgba(12, 10, 8, 0.52) 45%,
        rgba(12, 10, 8, 0.52) 100%
      ),
      radial-gradient(
        circle at center,
        rgba(12, 10, 8, 0.12) 0%,
        rgba(12, 10, 8, 0.52) 100%
      );
  }

  .home-hero__inner {
    display: flex;
    min-height: max(44rem, 100svh);
    padding-top:
      calc(var(--header-height, 76px) + 2rem);
    padding-bottom: 3rem;
    align-items: center;
    justify-content: center;
  }

  .home-hero__content {
    width: min(100%, 44rem);
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
  }

  .home-hero__eyebrow {
    justify-content: center;
  }

  .home-hero__title {
    max-width: 9ch;
    margin-inline: auto;
    font-size: clamp(4.25rem, 10vw, 6.5rem);
  }

  .home-hero__copy {
    max-width: 34rem;
    margin-inline: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-hero__meta,
  .home-hero__scroll {
    display: none;
  }

  /* -------------------------------------------------------
     Introduction
     ------------------------------------------------------- */

  .home-intro__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .home-intro__media {
    width: min(100%, 42rem);
  }

  .home-intro__content {
    max-width: 46rem;
  }

  .home-intro__facts {
    max-width: 35rem;
  }

  /* -------------------------------------------------------
     Brand statement
     ------------------------------------------------------- */

  .home-brand__grid {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-brand__content {
    min-height: 37rem;
    padding:
      4.5rem
      var(--container-padding, 2rem);
  }

  .home-brand__quote {
    max-width: 13ch;
    margin-block: 3.5rem;
  }

  .home-brand__media {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  /* -------------------------------------------------------
     Story
     ------------------------------------------------------- */

  .home-story__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 5rem;
  }

  .home-story__media {
    width: min(100%, 50rem);
  }

  .home-story__content {
    max-width: 44rem;
  }

  .home-story__year {
    right: 1rem;
    bottom: -2rem;
  }

  /* -------------------------------------------------------
     Beans
     ------------------------------------------------------- */

  .home-beans__feature {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-beans__media {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .home-beans__media::after {
    background:
      linear-gradient(
        0deg,
        var(--color-ink, #17130f) 0%,
        rgba(23, 19, 15, 0.08) 45%
      );
  }

  .home-beans__content {
    padding:
      5rem
      var(--container-padding, 2rem)
      6rem;
  }

  .home-beans__content .home-section__title {
    max-width: 12ch;
  }

  .home-beans__principles {
    max-width: 42rem;
  }

  /* -------------------------------------------------------
     Products
     ------------------------------------------------------- */

  .home-products__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .home-products__description {
    max-width: 38rem;
    margin: 0;
  }

  .home-products__grid,
  [data-home-products] {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 3.5rem 1.75rem;
  }

  .home-product__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  /* -------------------------------------------------------
     Visit
     ------------------------------------------------------- */

  .home-visit__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 4.5rem;
  }

  .home-visit__content {
    max-width: 45rem;
  }

  .home-visit__media {
    width: min(100%, 44rem);
    margin-left: auto;
  }

  /* -------------------------------------------------------
     Events
     ------------------------------------------------------- */

  .home-events__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }

  .home-events__grid,
  [data-home-events] {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 3.5rem 1.75rem;
  }

  /* -------------------------------------------------------
     Closing CTA centered
     ------------------------------------------------------- */

  .home-cta__inner {
    min-height: 34rem;
    justify-content: center;
  }

  .home-cta__content {
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
  }

  .home-cta__title,
  .home-cta__copy {
    margin-inline: auto;
  }

  .home-cta__actions {
    justify-content: center;
  }

  .home-cta__mark {
    display: none;
  }
}


/* =========================================================
   4. MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .home-main {
    overflow: hidden;
  }

  .home-section__eyebrow {
    gap: 0.625rem;
    margin-bottom: 1rem;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
  }

  .home-section__eyebrow::before {
    width: 1.5rem;
  }

  .home-section__title {
    max-width: 13ch;
    font-size: clamp(2.5rem, 11vw, 4rem);
    line-height: 1;
  }

  .home-section__copy {
    margin-top: 1.35rem;
    font-size: 0.9375rem;
    line-height: 1.75;
  }

  /* -------------------------------------------------------
     Mobile hero centered
     ------------------------------------------------------- */

  .home-hero {
    min-height: max(42rem, 100svh);
  }

  .home-hero__picture {
    inset: -3%;
    width: 106%;
    height: 106%;
  }

  .home-hero__image {
    object-position:
      var(--hero-mobile-position, 60% center);
  }

  .home-hero__overlay {
    background:
      linear-gradient(
        0deg,
        rgba(12, 10, 8, 0.88) 0%,
        rgba(12, 10, 8, 0.6) 48%,
        rgba(12, 10, 8, 0.56) 100%
      );
  }

  .home-hero__grain {
    opacity: 0.08;
  }

  .home-hero__inner {
    min-height: max(42rem, 100svh);
    padding-top:
      calc(var(--header-height, 76px) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .home-hero__content {
    width: 100%;
    max-width: 35rem;
    margin-inline: auto;
    text-align: center;
  }

  .home-hero__eyebrow {
    justify-content: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
  }

  .home-hero__eyebrow::before {
    width: 1.75rem;
  }

  .home-hero__title {
    max-width: 8.5ch;
    margin-inline: auto;
    font-size: clamp(3.55rem, 16vw, 5.25rem);
    line-height: 0.9;
  }

  .home-hero__copy {
    max-width: 29rem;
    margin-top: 1.5rem;
    margin-inline: auto;
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .home-hero__actions {
    width: 100%;
    max-width: 31rem;
    margin-inline: auto;
    margin-top: 1.75rem;
    justify-content: center;
  }

  /* -------------------------------------------------------
     Introduction
     ------------------------------------------------------- */

  .home-intro {
    padding-block: 5.25rem;
  }

  .home-intro__grid {
    gap: 3rem;
  }

  .home-intro__media {
    width: 100%;
  }

  .home-intro__picture {
    aspect-ratio: 4 / 5;
  }

  .home-intro__caption {
    gap: 0.75rem;
    font-size: 0.6875rem;
  }

  .home-intro__caption-text {
    max-width: 16rem;
  }

  .home-intro__lead {
    margin-top: 1.5rem;
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .home-intro__facts {
    gap: 1rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
  }

  .home-intro__fact-value {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .home-intro__fact-label {
    font-size: 0.625rem;
  }

  /* -------------------------------------------------------
     Brand statement
     ------------------------------------------------------- */

  .home-brand__content {
    min-height: 32rem;
    padding:
      4rem
      var(--container-padding, 1.25rem);
    align-items: center;
    text-align: center;
  }

  .home-brand__label {
    font-size: 0.6875rem;
  }

  .home-brand__quote {
    max-width: 11ch;
    margin-block: 3rem;
    font-size: clamp(2.75rem, 12vw, 4.25rem);
  }

  .home-brand__footer {
    max-width: 30rem;
    font-size: 0.875rem;
  }

  .home-brand__media {
    aspect-ratio: 4 / 3;
  }

  .home-brand__image {
    object-position:
      var(--brand-mobile-position, center center);
  }

  /* -------------------------------------------------------
     Story
     ------------------------------------------------------- */

  .home-story {
    padding-block: 5.25rem 6rem;
  }

  .home-story__grid {
    gap: 4rem;
  }

  .home-story__picture {
    aspect-ratio: 4 / 3;
  }

  .home-story__image {
    object-position:
      var(--story-mobile-position, center center);
  }

  .home-story__year {
    right: 0.75rem;
    bottom: -1.5rem;
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .home-story__copy {
    margin-top: 1.5rem;
  }

  .home-story__copy p {
    font-size: 0.9375rem;
    line-height: 1.75;
  }

  /* -------------------------------------------------------
     Beans
     ------------------------------------------------------- */

  .home-beans__media {
    aspect-ratio: 4 / 3;
  }

  .home-beans__image {
    object-position:
      var(--beans-mobile-position, center center);
  }

  .home-beans__content {
    padding:
      4rem
      var(--container-padding, 1.25rem)
      5rem;
  }

  .home-beans__principles {
    margin-top: 2.25rem;
  }

  .home-beans__principle {
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    padding-block: 1rem;
  }

  .home-beans__principle-text {
    font-size: 0.8125rem;
  }

  /* -------------------------------------------------------
     Products
     ------------------------------------------------------- */

  .home-products {
    padding-block: 5.25rem;
  }

  .home-products__header {
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .home-products__description {
    font-size: 0.9375rem;
  }

  .home-products__grid,
  [data-home-products] {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .home-product {
    padding-top: 0.875rem;
  }

  .home-product__content {
    padding-top: 1.25rem;
  }

  .home-product__category {
    margin-bottom: 0.625rem;
    font-size: 0.625rem;
  }

  .home-product__title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .home-product__notes {
    margin-top: 0.875rem;
  }

  .home-product__weights {
    margin-top: 1rem;
  }

  .home-product__actions {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem 1rem;
    padding-top: 1.5rem;
  }

  /* -------------------------------------------------------
     Visit
     ------------------------------------------------------- */

  .home-visit {
    padding-block: 5.25rem;
  }

  .home-visit__grid {
    gap: 3.5rem;
  }

  .home-visit__details {
    margin-top: 2rem;
  }

  .home-visit__detail {
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding-block: 1rem;
  }

  .home-visit__detail-label {
    font-size: 0.625rem;
  }

  .home-visit__detail-value {
    font-size: 0.875rem;
  }

  .home-visit__media {
    width: 100%;
    padding-left: 1.5rem;
  }

  .home-visit__picture {
    aspect-ratio: 4 / 5;
  }

  .home-visit__image {
    object-position:
      var(--visit-mobile-position, center center);
  }

  .home-visit__motto {
    bottom: 2rem;
    width: min(20rem, 86%);
    padding: 1.35rem 1.5rem;
  }

  /* -------------------------------------------------------
     Events
     ------------------------------------------------------- */

  .home-events {
    padding-block: 5.25rem;
  }

  .home-events__header {
    gap: 1.25rem;
    margin-bottom: 3rem;
  }

  .home-events__grid,
  [data-home-events] {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  /* -------------------------------------------------------
     Closing CTA centered
     ------------------------------------------------------- */

  .home-cta__picture {
    inset: -3%;
  }

  .home-cta__image {
    object-position:
      var(--detail-mobile-position, center center);
  }

  .home-cta__overlay {
    background:
      linear-gradient(
        0deg,
        rgba(18, 13, 10, 0.9) 0%,
        rgba(18, 13, 10, 0.68) 55%,
        rgba(18, 13, 10, 0.62) 100%
      );
  }

  .home-cta__inner {
    min-height: 34rem;
    padding-block: 4.5rem;
    align-items: center;
    justify-content: center;
  }

  .home-cta__content {
    width: 100%;
    max-width: 39rem;
    margin-inline: auto;
    text-align: center;
  }

  .home-cta__eyebrow {
    margin-bottom: 1rem;
  }

  .home-cta__title {
    max-width: 11ch;
    margin-inline: auto;
    font-size: clamp(3rem, 13vw, 4.75rem);
  }

  .home-cta__copy {
    max-width: 31rem;
    margin-inline: auto;
  }

  .home-cta__actions {
    justify-content: center;
  }
}


/* =========================================================
   5. SMALL MOBILE
   ========================================================= */

@media (max-width: 479px) {
  .home-section__title {
    font-size: clamp(2.35rem, 11.5vw, 3.35rem);
  }

  .home-section__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-section__actions .wb-button {
    width: 100%;
  }

  /* Hero */

  .home-hero {
    min-height: max(40rem, 100svh);
  }

  .home-hero__inner {
    min-height: max(40rem, 100svh);
    padding-top:
      calc(var(--header-height, 70px) + 1.25rem);
    padding-bottom: 2rem;
  }

  .home-hero__title {
    max-width: 8.5ch;
    font-size: clamp(3.15rem, 16vw, 4.4rem);
  }

  .home-hero__copy {
    max-width: 23rem;
    font-size: 0.875rem;
  }

  .home-hero__actions {
    max-width: 22rem;
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero__actions .wb-button {
    width: 100%;
  }

  /* Introduction */

  .home-intro {
    padding-block: 4.5rem;
  }

  .home-intro__grid {
    gap: 2.5rem;
  }

  .home-intro__caption-text {
    max-width: 13rem;
  }

  .home-intro__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-intro__fact + .home-intro__fact {
    padding-top: 1rem;
    border-top:
      1px solid rgba(23, 19, 15, 0.12);
  }

  /* Brand */

  .home-brand__content {
    min-height: 30rem;
  }

  .home-brand__quote {
    font-size: clamp(2.5rem, 12.5vw, 3.6rem);
  }

  .home-brand__media {
    aspect-ratio: 1 / 1;
  }

  /* Story */

  .home-story {
    padding-block: 4.5rem 5.5rem;
  }

  .home-story__picture {
    aspect-ratio: 1 / 1;
  }

  /* Beans */

  .home-beans__media {
    aspect-ratio: 1 / 1;
  }

  .home-beans__content {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
  }

  /* Products */

  .home-products {
    padding-block: 4.5rem;
  }

  .home-product__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .home-product__explore {
    width: 100%;
  }

  .home-product__whatsapp {
    align-self: center;
    min-height: auto;
    padding-bottom: 0.25rem;
  }

  /* Visit */

  .home-visit {
    padding-block: 4.5rem;
  }

  .home-visit__detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .home-visit__media {
    padding-left: 0;
  }

  .home-visit__motto {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;

    width: calc(100% - 1.5rem);
    margin-top: -2rem;
    margin-left: 1.5rem;
  }

  /* Events */

  .home-events {
    padding-block: 4.5rem;
  }

  /* CTA */

  .home-cta__inner {
    min-height: 32rem;
  }

  .home-cta__title {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .home-cta__actions {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .home-cta__actions .wb-button {
    width: 100%;
  }
}


/* =========================================================
   6. SHORT LANDSCAPE
   ========================================================= */

@media
  (max-width: 991px)
  and (max-height: 620px)
  and (orientation: landscape) {

  .home-hero,
  .home-hero__inner {
    min-height: 38rem;
  }

  .home-hero__inner {
    padding-top:
      calc(var(--header-height, 70px) + 1rem);
    padding-bottom: 2rem;
  }

  .home-hero__title {
    font-size: clamp(3.5rem, 9vw, 5rem);
  }

  .home-hero__copy {
    margin-top: 1rem;
  }

  .home-hero__actions {
    margin-top: 1.25rem;
  }
}


/* =========================================================
   7. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .home-intro__image,
  .home-brand__image,
  .home-story__image,
  .home-product__image,
  .home-visit__image,
  .home-event__image {
    transition: none;
  }

  .home-intro__picture:hover .home-intro__image,
  .home-story__picture:hover .home-story__image,
  .home-product:hover .home-product__image,
  .home-visit__picture:hover .home-visit__image,
  .home-event__link:hover .home-event__image {
    transform: none;
  }

  body.home-is-ready [data-home-products],
  body.home-is-ready [data-home-events] {
    transition: none;
  }
}


/* =========================================================
   8. PRINT
   ========================================================= */

@media print {
  .home-hero,
  .home-brand,
  .home-beans,
  .home-cta {
    color: #000000;
    background: #ffffff;
  }

  .home-hero {
    min-height: auto;
    padding-block: 4rem;
  }

  .home-hero__media,
  .home-hero__grain,
  .home-hero__scroll,
  .home-hero__actions,
  .home-cta__media,
  .home-cta__actions {
    display: none;
  }

  .home-hero__title,
  .home-hero__copy,
  .home-brand__quote,
  .home-brand__footer,
  .home-beans__content .home-section__title,
  .home-beans__content .home-section__copy,
  .home-cta__title,
  .home-cta__copy {
    color: #000000;
  }

  .home-product,
  .home-event {
    break-inside: avoid;
  }
}