/* ==========================================================================
   Pathway Productions — sitewide "Book a call" + mobile call button
   Loaded on every page. Provides:
     1. The header "Book a call" button (desktop, next to "Get in Touch"),
        kept visible — in a compact size — in the mobile header too, so
        booking a call doesn't require opening the hamburger menu first.
     2. The Google Calendar booking modal those buttons open.
     3. A mobile-only tap-to-call icon in the header (hidden on desktop and
        tablet, by request — phone is a deliberate, one-tap mobile action,
        not something we want competing for space on larger screens).
   The homepage's proactive "book a call" popup (meeting-popup.css/js) is
   layered on top of this file and reuses the same modal via
   window.PathwayMeetings.open() rather than duplicating it.
   ========================================================================== */

:root {
  --meet-blue: #269CC2;
  --meet-ink: #292D31;
  --meet-muted: #666D70;
  --meet-shadow: 0 10px 30px rgba(41, 45, 49, 0.18);
  --meet-radius: 14px;
}

/* ---- Header "Book a call" button (desktop/tablet) -------------------------
   Reuses the existing .outline button styling so it reads as a sibling of
   "Get in Touch", not a new visual language. It's a <button>, not a link, so
   browser default button styling is reset to match .outline/.btn exactly. */
.meet-header-btn {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* ---- Header "Book a call" link inside the mobile menu ---------------------
   Kept in the markup as a fallback entry point (e.g. if the header button's
   compact label is ever trimmed further), but hidden by default now that
   .meet-header-btn itself stays visible in the collapsed mobile header
   below — showing both would be a redundant second "Book a call" once the
   hamburger menu is opened. */
.navlinks .meet-nav-trigger { display: none; }

/* ---- Mobile header: keep "Book a call" visible, just compact --------------
   At <=850px the header collapses to logo / phone / Book a call / Menu.
   "Get in Touch" (an outbound link to the Contact page) is still hidden at
   this width (.nav>a.outline in base.css) since the phone icon and this
   button already cover one-tap contact and scheduling; this button is a
   <button>, not an <a>, so that rule doesn't catch it. Sized down from the
   desktop 14px/20px, 13px type so it fits the four header items on a
   360-375px screen without crowding the tap targets either side of it. */
@media (max-width: 850px) {
  .meet-header-btn {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .meet-header-btn { padding: 8px 9px; font-size: 11px; }
}

/* ---- Mobile-only tap-to-call icon ------------------------------------------
   Hidden on desktop/tablet by request — a floating or header call affordance
   only matters once dialling is a one-tap action, i.e. on a phone. */
.call-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line, #dedfdf);
  color: var(--ink, #292d31);
  flex: none;
}
.call-btn svg { width: 17px; height: 17px; fill: currentColor; }
.call-btn:hover { border-color: var(--blue-text, #0f6f8f); color: var(--blue-text, #0f6f8f); }

@media (max-width: 850px) {
  .call-btn { display: inline-flex; margin-right: 10px; }
}

/* ---- The booking modal (Google Calendar scheduling embed) ----------------- */
.meet-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.meet-modal.is-open { display: flex; }

.meet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 28, 0.55);
}

.meet-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(10, 20, 25, 0.4);
  padding: 8px;
}

.meet-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--meet-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.meet-modal-close:hover { background: #F1F3F5; }

/* HubSpot's MeetingsEmbedCode.js replaces this div's content with its own
   iframe and sizes it itself (via postMessage, as the booking flow changes
   step) — min-height here is only a fallback for the instant before that
   script has run. Don't force a fixed iframe height, it would fight the
   script's own sizing. */
.meetings-iframe-container { min-height: 480px; }
.meetings-iframe-container iframe { display: block; width: 100%; border: 0; }

body.meet-modal-open { overflow: hidden; }

@media (max-width: 600px) {
  .meet-modal { padding: 0; }
  .meet-modal-panel { max-width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .meetings-iframe-container iframe { min-height: 480px; }
}
