/* =========================================================
   WHITE BEARD COFFEE & ROASTERY
   Responsive: Visit Us
   File: /assets/css/responsive/visit-us-responsive.css
   ========================================================= */


/* ---------------------------------------------------------
   1. SMALL DESKTOP
   <= 1279px
   --------------------------------------------------------- */

@media (max-width: 1279px) {
  .visit-hero__grid {
    grid-template-columns: minmax(23rem, 0.88fr) minmax(28rem, 1.12fr);
  }

  .visit-hero__content {
    padding-right: clamp(2rem, 4vw, 4rem);
    padding-left: clamp(2rem, 4vw, 4rem);
  }

  .visit-hero__footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .visit-hero__scroll {
    display: none;
  }

  .visit-location__grid {
    gap: clamp(3rem, 5vw, 5rem);
    grid-template-columns: minmax(17rem, 0.7fr) minmax(30rem, 1.3fr);
  }

  .visit-atmosphere__head {
    gap: 4rem;
  }

  .visit-rhythm__grid {
    gap: clamp(3rem, 6vw, 6rem);
    grid-template-columns: minmax(25rem, 1fr) minmax(22rem, 0.85fr);
  }

  .visit-closing__inner {
    gap: 4rem;
  }
}


/* ---------------------------------------------------------
   2. TABLET LANDSCAPE
   <= 1023px
   --------------------------------------------------------- */

@media (max-width: 1023px) {
  .visit-section {
    padding-block: clamp(5rem, 9vw, 7rem);
  }

  .visit-display {
    font-size: clamp(3.7rem, 8vw, 6rem);
  }

  .visit-section-title {
    font-size: clamp(2.8rem, 6vw, 4.75rem);
  }

  /* Hero */

  .visit-hero {
    min-height: auto;
  }

  .visit-hero__grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .visit-hero__content {
    min-height: 40rem;
    padding:
      clamp(8rem, 14vw, 10rem)
      var(--container-padding, 2rem)
      clamp(3rem, 6vw, 5rem);
  }

  .visit-hero__content::before {
    display: none;
  }

  .visit-hero__heading {
    max-width: 42rem;
  }

  .visit-hero__title {
    max-width: 8ch;
  }

  .visit-hero__summary {
    max-width: 38rem;
  }

  .visit-hero__footer {
    max-width: 34rem;
  }

  .visit-hero__media {
    min-height: 42rem;
    aspect-ratio: 16 / 11;
  }

  .visit-hero__media img {
    object-position: center 42%;
  }

  /* Location */

  .visit-location__grid {
    grid-template-columns: 1fr;
  }

  .visit-location__intro {
    position: static;
    display: grid;
    align-items: end;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.7fr);
  }

  .visit-location__intro .visit-copy {
    margin-top: 0;
  }

  .visit-location__cards {
    margin-top: 1rem;
  }

  .visit-location__primary {
    min-height: 23rem;
  }

  /* Atmosphere */

  .visit-atmosphere__head {
    align-items: start;
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .visit-atmosphere__head .visit-copy {
    max-width: 38rem;
  }

  .visit-atmosphere__gallery {
    gap: 1.25rem;
  }

  .visit-atmosphere__figure--workspace {
    grid-column: 1 / span 8;
  }

  .visit-atmosphere__figure--counter {
    grid-column: 9 / -1;
    margin-top: 6rem;
  }

  .visit-atmosphere__figure--service {
    grid-column: 1 / span 5;
  }

  .visit-atmosphere__figure--detail {
    grid-column: 6 / -1;
    margin-top: 5rem;
  }

  /* Daily rhythm */

  .visit-rhythm__grid {
    grid-template-columns: minmax(22rem, 0.9fr) minmax(20rem, 1fr);
  }

  .visit-rhythm__stamp {
    right: -1rem;
  }

  /* Partners */

  .visit-partners__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Closing */

  .visit-closing__inner {
    align-items: start;
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .visit-closing__title {
    max-width: 11ch;
  }

  .visit-closing__aside {
    max-width: 37rem;
  }
}


/* ---------------------------------------------------------
   3. TABLET PORTRAIT & MOBILE
   <= 767px
   --------------------------------------------------------- */

@media (max-width: 767px) {
  .visit-section {
    padding-block: 4.75rem;
  }

  .visit-eyebrow {
    margin-bottom: 1rem;
    font-size: 0.62rem;
  }

  .visit-eyebrow::before {
    width: 1.7rem;
    flex-basis: 1.7rem;
  }

  .visit-display {
    font-size: clamp(3.25rem, 14vw, 5.25rem);
    line-height: 0.94;
  }

  .visit-section-title {
    max-width: 11ch;
    font-size: clamp(2.65rem, 11vw, 4.5rem);
    line-height: 0.97;
  }

  .visit-copy {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Hero */

  .visit-hero__content {
    min-height: auto;
    padding:
      clamp(7.5rem, 24vw, 9rem)
      var(--container-padding, 1.25rem)
      3.5rem;
    text-align: center;
  }

  .visit-hero__heading,
  .visit-hero__summary,
  .visit-hero__footer,
  .visit-hero__address {
    width: 100%;
    max-width: 34rem;
    margin-right: auto;
    margin-left: auto;
  }

  .visit-hero__eyebrow {
    justify-content: center;
  }

  .visit-hero__title {
    max-width: 9ch;
    margin-inline: auto;
  }

  .visit-hero__summary {
    margin-top: 1.75rem;
  }

  .visit-hero__footer {
    margin-top: 3rem;
  }

  .visit-hero__address-text {
    max-width: 27rem;
    margin-inline: auto;
  }

  .visit-hero__media {
    min-height: 34rem;
    aspect-ratio: 4 / 5;
  }

  .visit-hero__media::before {
    background:
      linear-gradient(
        180deg,
        rgba(23, 23, 19, 0.05) 0%,
        transparent 48%,
        rgba(23, 23, 19, 0.38) 100%
      );
  }

  .visit-hero__media img {
    object-position: center;
  }

  .visit-hero__media-label {
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    width: fit-content;
    margin-inline: auto;
  }

  /* Location */

  .visit-location__grid {
    gap: 3rem;
  }

  .visit-location__intro {
    display: block;
    text-align: center;
  }

  .visit-location__intro .visit-eyebrow {
    justify-content: center;
  }

  .visit-location__intro .visit-section-title {
    margin-inline: auto;
  }

  .visit-location__intro .visit-copy {
    max-width: 34rem;
    margin: 1.5rem auto 0;
  }

  .visit-location__primary {
    min-height: auto;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
  }

  .visit-location__primary-content {
    min-height: 19rem;
    align-items: center;
  }

  .visit-location__label {
    justify-content: center;
  }

  .visit-location__address {
    max-width: 20ch;
    margin: 2rem auto;
    font-size: clamp(1.75rem, 7vw, 2.6rem);
  }

  .visit-location__secondary {
    grid-template-columns: 1fr;
  }

  .visit-info-card {
    min-height: auto;
    padding: 1.75rem;
  }

  .visit-info-card__head {
    align-items: center;
  }

  .visit-info-card__title {
    font-size: 1.65rem;
  }

  .visit-status {
    text-align: left;
  }

  .visit-hours__row {
    padding-block: 0.9rem;
  }

  /* Atmosphere */

  .visit-atmosphere__head {
    margin-bottom: 3rem;
    text-align: center;
  }

  .visit-atmosphere__head .visit-eyebrow {
    justify-content: center;
  }

  .visit-atmosphere__head .visit-section-title,
  .visit-atmosphere__head .visit-copy {
    margin-inline: auto;
  }

  .visit-atmosphere__head .visit-copy {
    max-width: 34rem;
  }

  .visit-atmosphere__gallery {
    display: grid;
    gap: 2.75rem 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-atmosphere__figure--workspace,
  .visit-atmosphere__figure--counter,
  .visit-atmosphere__figure--service,
  .visit-atmosphere__figure--detail {
    grid-column: auto;
    margin-top: 0;
  }

  .visit-atmosphere__figure--workspace {
    grid-column: 1 / -1;
  }

  .visit-atmosphere__figure--counter {
    margin-top: 3rem;
  }

  .visit-atmosphere__figure--detail {
    grid-column: 1 / -1;
  }

  .visit-atmosphere__figure--workspace .visit-atmosphere__image,
  .visit-atmosphere__figure--detail .visit-atmosphere__image {
    aspect-ratio: 4 / 3;
  }

  .visit-atmosphere__figure--counter .visit-atmosphere__image,
  .visit-atmosphere__figure--service .visit-atmosphere__image {
    aspect-ratio: 3 / 4;
  }

  .visit-atmosphere__caption {
    display: grid;
    gap: 0.3rem;
    padding-top: 0.75rem;
    font-size: 0.58rem;
  }

  .visit-atmosphere__number {
    grid-row: 1;
  }

  /* Daily rhythm */

  .visit-rhythm__grid {
    grid-template-columns: 1fr;
  }

  .visit-rhythm__media {
    width: min(100%, 34rem);
    margin-inline: auto;
  }

  .visit-rhythm__image {
    aspect-ratio: 4 / 5;
    border-radius: 1.5rem;
  }

  .visit-rhythm__stamp {
    right: 1rem;
    bottom: 1rem;
    width: 8.25rem;
    font-size: 0.95rem;
  }

  .visit-rhythm__content {
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
  }

  .visit-rhythm__content .visit-eyebrow {
    justify-content: center;
  }

  .visit-rhythm__content .visit-section-title {
    margin-inline: auto;
  }

  .visit-rhythm__content .visit-copy {
    margin-top: 1.5rem;
  }

  .visit-rhythm__points {
    margin-top: 2.5rem;
    text-align: left;
  }

  .visit-rhythm__point {
    gap: 0.75rem;
    grid-template-columns: 2rem minmax(0, 1fr);
  }

  /* Partners */

  .visit-partners__head {
    display: block;
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .visit-partners__intro,
  .visit-partners__intro .visit-copy {
    margin-inline: auto;
  }

  .visit-partners__intro .visit-eyebrow {
    justify-content: center;
  }

  .visit-partners__intro .visit-section-title {
    margin-inline: auto;
  }

  .visit-partners__intro .visit-copy {
    margin-top: 1.5rem;
  }

  .visit-partners__list {
    grid-template-columns: 1fr;
  }

  .visit-partner-card {
    min-height: 18rem;
  }

  /* Closing */

  .visit-closing {
    text-align: center;
  }

  .visit-closing::before {
    top: -12rem;
    left: -17rem;
  }

  .visit-closing::after {
    right: -20rem;
    bottom: -19rem;
  }

  .visit-closing__inner {
    gap: 2.5rem;
  }

  .visit-closing__title {
    max-width: 10ch;
    margin-inline: auto;
    font-size: clamp(3.2rem, 14vw, 5.4rem);
  }

  .visit-closing__aside {
    margin-inline: auto;
  }

  .visit-closing__actions {
    justify-content: center;
  }

  .visit-closing__contact {
    justify-items: center;
  }

  .visit-closing__contact-link {
    justify-content: center;
  }
}


/* ---------------------------------------------------------
   4. MOBILE
   <= 479px
   --------------------------------------------------------- */

@media (max-width: 479px) {
  .visit-section {
    padding-block: 4rem;
  }

  .visit-display {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .visit-section-title {
    font-size: clamp(2.5rem, 12vw, 3.75rem);
  }

  /* Hero */

  .visit-hero__content {
    padding:
      7rem
      var(--container-padding, 1rem)
      3rem;
  }

  .visit-hero__summary {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .visit-hero__footer {
    margin-top: 2.5rem;
  }

  .visit-hero__address-text {
    font-size: 0.88rem;
  }

  .visit-hero__media {
    min-height: 31rem;
  }

  .visit-hero__media-label {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.58rem;
  }

  /* Location */

  .visit-location__primary {
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .visit-location__primary-content {
    min-height: 18rem;
  }

  .visit-location__primary::before {
    top: -10rem;
    right: -11rem;
  }

  .visit-location__primary::after {
    right: -9rem;
    bottom: -13rem;
  }

  .visit-location__address {
    font-size: 1.65rem;
  }

  .visit-location__primary .wb-button {
    width: 100%;
    justify-content: center;
  }

  .visit-info-card {
    padding: 1.4rem;
    border-radius: 1rem;
  }

  .visit-info-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-basis: 2.5rem;
  }

  .visit-info-card__title {
    font-size: 1.45rem;
  }

  .visit-status__value,
  [data-visit-status] {
    font-size: 0.68rem;
  }

  .visit-status__note,
  [data-visit-status-note] {
    font-size: 0.8rem;
  }

  .visit-hours__day,
  .visit-hours__time {
    font-size: 0.76rem;
  }

  /* Atmosphere */

  .visit-atmosphere__gallery {
    display: block;
  }

  .visit-atmosphere__figure {
    width: 100%;
    margin: 0 0 2.75rem;
  }

  .visit-atmosphere__figure:last-child {
    margin-bottom: 0;
  }

  .visit-atmosphere__figure--workspace .visit-atmosphere__image,
  .visit-atmosphere__figure--detail .visit-atmosphere__image {
    aspect-ratio: 4 / 3;
  }

  .visit-atmosphere__figure--counter,
  .visit-atmosphere__figure--service {
    width: calc(100% - 2.5rem);
  }

  .visit-atmosphere__figure--counter {
    margin-left: auto;
  }

  .visit-atmosphere__figure--service {
    margin-right: auto;
  }

  .visit-atmosphere__caption {
    display: flex;
  }

  .visit-atmosphere__number {
    grid-row: auto;
  }

  /* Daily rhythm */

  .visit-rhythm__grid {
    gap: 2.75rem;
  }

  .visit-rhythm__image {
    border-radius: 1.25rem;
  }

  .visit-rhythm__stamp {
    right: 0.75rem;
    bottom: 0.75rem;
    width: 7rem;
    padding: 1rem;
    font-size: 0.82rem;
  }

  .visit-rhythm__point {
    padding-block: 1rem;
  }

  .visit-rhythm__point-title {
    font-size: 1.1rem;
  }

  .visit-rhythm__point-copy {
    font-size: 0.8rem;
  }

  /* Partner */

  .visit-partner-card {
    min-height: 17rem;
    padding: 1.5rem;
  }

  .visit-partner-card__name {
    margin-top: 2rem;
    font-size: 1.55rem;
  }

  /* Closing */

  .visit-closing__title {
    font-size: clamp(3rem, 15vw, 4.25rem);
  }

  .visit-closing__copy {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .visit-closing__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .visit-closing__actions .wb-button {
    width: 100%;
    justify-content: center;
  }

  .visit-closing__contact-link {
    width: 100%;
    overflow-wrap: anywhere;
  }
}


/* ---------------------------------------------------------
   5. SHORT LANDSCAPE DEVICES
   --------------------------------------------------------- */

@media (max-height: 600px) and (orientation: landscape) {
  .visit-hero__content {
    min-height: 35rem;
    padding-top: 7rem;
  }

  .visit-hero__media {
    min-height: 35rem;
  }
}