/* A partner's or clinic's welcome page (views/layouts/welcome.php, modules/partners/views/welcome.php). Built on the
   shop's look (pages/shop.css: the header, the hero with the turned white box, the boxes with anthracite bands); only
   what differs is here. The hero: their words with two buttons, their logo in the white box. Below: Consultations and
   Shop, each a picture (7:8, the same height in both) with the words beside it, centred on the picture's height.
   Phones: the picture above the words; from 576px beside them; from 1200px the two boxes side by side. */

/* --- The hero --- */
.welcome__intro {
  white-space: pre-line; /* the line breaks the super admin typed */
}

.welcome__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

/* Visit the shop beside the bright button: the shop's glass, at the bright button's size. */
.welcome__glass {
  min-height: var(--button-h);
  padding: 0 var(--sp-5);
  font-size: var(--fs-body);
  text-decoration: none;
  border-radius: var(--radius-1);
}

/* Their logo, centred in the white box (16:9 at every width). */
.welcome__logo {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: var(--sp-4);
  background-color: var(--c-page);
}

.welcome__logo-img {
  display: block;
  width: 60%;
  height: 100%;
  object-fit: contain;
}

/* No logo yet: their name instead. */
.welcome__logo-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  text-align: center;
  text-wrap: balance;
  color: var(--c-heading);
}

/* --- Consultations and Shop --- */
.welcome__ways {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-6);
}

.welcome__ways .shop-goal + .shop-goal {
  margin-top: 0; /* the grid's gap does it */
}

.welcome-way__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
}

/* The photo, or the browser window: 7:8, cut from the bottom only. */
.welcome-way__picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 8;
  object-fit: cover;
  object-position: top;
  border: var(--border-1) solid var(--c-line);
  border-radius: var(--radius-2);
}

.welcome-way__words {
  display: grid;
  justify-items: start;
  gap: var(--sp-3);
}

.welcome-way__title {
  font-size: var(--fs-h4);
  color: var(--c-heading);
}

.welcome-way__text {
  color: var(--c-text-muted);
}

.welcome-way__small {
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--c-on-dark-muted);
}

/* The browser window showing the shop: a grey bar with the three dots and the shop's address, then its picture. */
.welcome-browser {
  display: flex;
  flex-direction: column;
  overflow: clip;
  background-color: var(--c-page);
  box-shadow: var(--shadow-1);
}

.welcome-browser__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  background-color: var(--c-surface);
  border-bottom: var(--border-1) solid var(--c-line);
}

.welcome-browser__dot {
  width: var(--sp-2);
  height: var(--sp-2);
  border-radius: var(--radius-pill);
  background-color: var(--c-window-close);
}

.welcome-browser__dot:nth-child(2) {
  background-color: var(--c-window-min);
}

.welcome-browser__dot:nth-child(3) {
  background-color: var(--c-window-max);
}

.welcome-browser__address {
  flex: 1;
  min-width: 0;
  margin-left: var(--sp-3);
  padding: 0 var(--sp-3);
  overflow: hidden;
  font-size: var(--fs-xxs);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--c-text-muted);
  background-color: var(--c-page);
  border-radius: var(--radius-pill);
}

.welcome-browser__img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

/* --- From 576px: the picture beside the words --- */
@media (min-width: 576px) {
  .welcome-way__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
  }
}

/* --- From 1200px: Consultations and Shop side by side --- */
@media (min-width: 1200px) {
  .welcome__ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
