/* The home page: deep forest green and mint, minimal. A pill navigation, a big "WHAT'S YOURS?"
   and one drink at a time on a mint card; then the menu, how it works and the footer on the
   same dark green. Colours come from theme.css (--bl-night, --bl-mint ...). */

.hm {
  --pad: clamp(16px, 5vw, 64px);
  min-height: 100vh;
  overflow-x: clip;
  font-family: 'Josefin Sans', sans-serif;
  color: var(--bl-on-dark);
  background: var(--bl-night);
}

.hm a { text-decoration: none; }
.hm :focus-visible { outline: 3px solid var(--bl-mint); outline-offset: 3px; }

/* ---------- navigation ---------- */
.hm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(11, 36, 25, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* BREWLINK on the left, the links in a pill bar in the middle */
.hm-brand {
  justify-self: start;
  font-family: var(--bl-font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--bl-on-dark);
}

.hm-brand:hover { color: var(--bl-mint); }

.hm-pills {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bl-night-line);
  border-radius: 999px;
}

.hm-pills a {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bl-on-dark-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.hm-pills a:hover { color: var(--bl-on-dark); }
.hm-pills a.is-on { color: var(--bl-night); background: #fff; }

/* the white pill behind the chosen link: the page's script slides it to the link you click or the
   section you scroll to (without the script, the chosen link keeps its own white background) */
.hm-pill-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s;
}

.hm-pills.has-glow .hm-pill-glow { opacity: 1; }
.hm-pills.has-glow a.is-on { background: transparent; transition-delay: 0.08s; }
.hm-pills.no-slide .hm-pill-glow { transition: none; }

/* style.css makes <body> its own scroll box; here the window scrolls instead, so the pill can follow
   the scroll and the links can glide (html still clips anything sideways) */
html:has(.hm) body { height: auto; overflow: visible; }

/* Menu and How it works glide into place, just under the sticky bar */
.hm-section { scroll-margin-top: var(--hm-nav-h, 72px); }

@media (prefers-reduced-motion: no-preference) {
  html:has(.hm) { scroll-behavior: smooth; }
}
.hm-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }

.hm-link {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bl-on-dark-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.hm-link:hover { color: var(--bl-on-dark); background: rgba(255, 255, 255, 0.06); }

.hm-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.15rem;
  color: var(--bl-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--bl-night-line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.hm-icon:hover { color: var(--bl-night); background: #fff; }
.hm-burger { display: none; }

/* ---------- hero ---------- */
.hm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "head art" "body art";
  align-items: center;
  column-gap: clamp(24px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) var(--pad) clamp(48px, 9vh, 110px);
}

.hm-hero-head { grid-area: head; align-self: end; }
.hm-hero-body { grid-area: body; align-self: start; margin-top: clamp(28px, 5vh, 44px); }
.hm-hero-art { grid-area: art; }

.hm-eyebrow {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--bl-on-dark-muted);
}

.hm-title {
  margin: 0;
  font-family: var(--bl-font-display);
  font-size: clamp(3.2rem, 8.2vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
}

.hm-title span { color: var(--bl-mint); }

.hm-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bl-night);
  background: #fff;
  border-radius: 999px;
  transition: transform 0.2s var(--bl-ease), background 0.2s;
}

.hm-cta:hover { color: var(--bl-night); background: var(--bl-mint); transform: translateY(-2px); }
.hm-cta i { transition: transform 0.2s; }
.hm-cta:hover i { transform: translateX(3px); }

/* the Café Hans emblem */
.hm-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 62vh, 620px);
}

/* the Café Hans emblem, as it is: in white, straight on the green */
.hm-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(400px, 82%);
  aspect-ratio: 1 / 1;
}

.hm-emblem {
  width: 88%;
  height: auto;
  filter: brightness(0) invert(1);
}
.hm-leaf { position: absolute; width: 64px; height: auto; fill: #3fbf86; opacity: 0.95; }
.hm-leaf-vein { fill: none; stroke: rgba(11, 36, 25, 0.35); stroke-width: 1.4; }
.hm-leaf--a { top: 8%; left: 2%; transform: rotate(-24deg); }
.hm-leaf--b { right: 4%; bottom: 10%; width: 52px; fill: #9fe3bf; transform: rotate(150deg); }

/* ---------- sections ---------- */
.hm-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) var(--pad);
  border-top: 1px solid var(--bl-night-line);
}

.hm-section-head { max-width: 620px; margin: 0 0 clamp(28px, 5vh, 52px); }

.hm-section-head h2 {
  margin: 0 0 10px;
  font-family: var(--bl-font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #fff;
}

.hm-section-head p:last-child { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--bl-on-dark-muted); }

/* the menu */
.hm-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.hm-menu-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 26px;
  color: #fff;
  background: var(--bl-night-2);
  border: 1px solid var(--bl-night-line);
  border-radius: 28px;
  transition: transform 0.25s var(--bl-ease), border-color 0.25s, background 0.25s;
}

.hm-menu-card:hover { color: #fff; background: #154030; border-color: rgba(159, 227, 191, 0.35); transform: translateY(-6px); }

.hm-menu-pic {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 220px;
  margin-bottom: 10px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 35%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
    var(--bl-mint-card);
  border-radius: 20px;
}

.hm-menu-pic img { height: 92%; width: auto; transform: translateY(6%); transition: transform 0.35s var(--bl-ease); }
.hm-menu-card:hover .hm-menu-pic img { transform: translateY(0) scale(1.04); }

.hm-menu-card h3 {
  margin: 0;
  font-family: var(--bl-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.hm-menu-card p { margin: 0; font-size: 0.98rem; line-height: 1.5; color: var(--bl-on-dark-muted); }

.hm-menu-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--bl-mint);
}

/* how it works */
.hm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-step { display: flex; flex-direction: column; gap: 6px; }

.hm-phone {
  width: min(210px, 70%);
  margin: 0 0 16px;
  padding: 8px;
  background: #07170f;
  border-radius: 34px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 24px 44px rgba(0, 0, 0, 0.4);
}

.hm-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 828 / 1510;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
}

.hm-step-no { font-family: var(--bl-font-display); font-size: 0.95rem; font-weight: 700; color: var(--bl-mint); }
.hm-step h3 { margin: 0; font-family: var(--bl-font-display); font-size: 1.2rem; font-weight: 700; color: #fff; }
.hm-step p { margin: 0; font-size: 0.98rem; line-height: 1.5; color: var(--bl-on-dark-muted); }

/* why BrewLink */
.hm-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding-top: clamp(40px, 7vh, 72px);
  padding-bottom: clamp(40px, 7vh, 72px);
}

.hm-feature i {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--bl-night);
  background: var(--bl-mint);
  border-radius: 16px;
}

.hm-feature h3 { margin: 0 0 4px; font-family: var(--bl-font-display); font-size: 1.05rem; font-weight: 700; color: #fff; }
.hm-feature p { margin: 0; font-size: 0.95rem; color: var(--bl-on-dark-muted); }

/* ---------- footer ---------- */
.hm-footer {
  padding: 0 var(--pad);
  font-size: 0.9rem;
  color: var(--bl-on-dark-muted);
  background: #07190f;
}

.hm-follow {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 64px) 0 28px;
  text-align: center;
  border-bottom: 1px solid var(--bl-night-line);
}

.hm-follow h2 {
  margin: 0 0 18px;
  font-family: var(--bl-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.hm-follow-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hm-social {
  position: relative;       /* keeps the hidden "(opens in a new tab)" inside the link */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bl-night);
  background: #fff;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}

.hm-social i { font-size: 1.15rem; }
.hm-social:hover { color: var(--bl-night); background: var(--bl-mint); transform: translateY(-2px); }

.hm-handle { margin: 14px 0 0; font-weight: 700; }

.hm-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0 28px;
}

.hm-footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.hm-footer-links a { display: inline-block; padding: 8px 0; color: var(--bl-on-dark-muted); }
.hm-footer-links a:hover { color: #fff; }

/* ---------- tablets and phones ---------- */
/* Staff and Admin: in the bar on wide screens, in the drop-down menu on small ones */
.hm-pills .hm-menu-only { display: none; }

@media (max-width: 960px) {
  .hm-pills a { padding: 9px 13px; }
}

@media (max-width: 820px) {
  .hm-nav { grid-template-columns: 1fr auto; }
  .hm-burger { display: inline-grid; }
  .hm-link { display: none; }
  .hm-pills .hm-menu-only { display: block; }

  /* the links drop down from the bar */
  .hm-pills {
    position: absolute;
    top: calc(100% + 6px);
    right: var(--pad);
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 8px;
    background: var(--bl-night-2);
    border-radius: 22px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }

  .hm-nav.is-open .hm-pills { display: flex; }
  .hm-pills a { padding: 12px 16px; font-size: 1rem; }
  .hm-pills a:hover { background: rgba(255, 255, 255, 0.06); }
  .hm-hero {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "art" "body";
    text-align: center;
  }

  .hm-hero-art { min-height: 0; margin: 28px 0 8px; }
  .hm-card { width: min(300px, 76%); }
}

@media (max-width: 480px) {
  .hm-brand { font-size: 1.1rem; }
  .hm-title { font-size: clamp(2.9rem, 15vw, 4rem); }
  .hm-eyebrow { font-size: 0.76rem; letter-spacing: 2px; }
  .hm-leaf--a { width: 46px; top: 2%; }
  .hm-leaf--b { width: 40px; }
  .hm-cta { min-height: 46px; padding: 0 22px; font-size: 0.95rem; }
  .hm-feature { text-align: center; }
  .hm-phone { width: min(220px, 64%); margin-left: auto; margin-right: auto; }
  .hm-step { text-align: center; }
  .hm-footer-bottom { flex-direction: column; text-align: center; }
  .hm-footer-links { justify-content: center; }
}

/* phones: the menu as three compact rows, the drink beside its name */
@media (max-width: 560px) {
  .hm-menu { gap: 12px; }

  .hm-menu-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "pic name" "pic text" "pic go";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 12px;
    border-radius: 20px;
  }

  .hm-menu-pic { grid-area: pic; height: 104px; margin: 0; border-radius: 14px; }
  .hm-menu-card h3 { grid-area: name; align-self: end; font-size: 1.1rem; }

  .hm-menu-card p {
    grid-area: text;
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hm-menu-go { grid-area: go; align-self: start; margin-top: 2px; font-size: 0.9rem; }
  .hm-menu-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-cta, .hm-menu-card, .hm-menu-pic img, .hm-social, .hm-pill-glow { transition: none; }
}
