/* Top menu: the "Let's talk" button (design: Claude canvas "Galliot top menu"). Plain CSS, no build step. */

.gm-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px 0 20px;
  border-radius: 30px;
  background: #ffd700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  color: #282828;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gm-contact:hover,
.gm-contact:focus-visible {
  color: #282828;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.55);
}

.gm-contact:focus-visible {
  outline: 2px solid #1774ff;
  outline-offset: 3px;
}

.gm-contact svg {
  flex: none;
  transition: transform 0.15s ease;
}

.gm-contact:hover svg,
.gm-contact:focus-visible svg {
  transform: translateX(3px);
}

/* Phones and tablets: the button sits in the top bar, left of the menu icon, and stays visible while the menu is open.
   It is positioned like the menu icon itself (same reference box), so it must not add a positioned parent: that would move the icon. */
.gm-contact--mobile {
  position: absolute;
  top: 30px; /* the icon's three bars span 42px to 62px from the top: centre 52px = this top + half of the 44px button */
  right: 67px;
  z-index: 11;
}

.gm-contact--desktop {
  display: none;
}

/* Wide screens (the theme's desktop breakpoint, 980px): the button is the last item of the menu bar. */
@media (min-width: 61.25em) {
  .gm-contact--mobile {
    display: none;
  }

  /* Same visual height as a menu entry: compact, centred on the menu text. */
  .gm-contact--desktop {
    display: inline-flex;
    min-height: 36px;
    margin-left: 16px;
    padding: 0 16px 0 20px;
    gap: 8px;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  }

  .gm-contact--desktop svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gm-contact,
  .gm-contact svg {
    transition: none;
  }

  .gm-contact:hover,
  .gm-contact:focus-visible,
  .gm-contact:hover svg,
  .gm-contact:focus-visible svg {
    transform: none;
  }
}
