/* ============================================================
   MM Consultancy — site styles
   Element styling is inline on each element (converted 1:1 from
   the Figma design). This file holds only what inline styles
   cannot express: resets, layout switches, keyframes, hovers.
   ============================================================ */

/* ---------- 1. base / resets ---------- */
html, body { margin: 0; padding: 0; }
body { background: #fff; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
a { color: rgb(11,152,218); text-decoration: none; }
a:hover { color: rgb(9,128,184); }
.hs { font-family: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* ---------- 2. layout switches ----------
   .mm-desktop   desktop layout, shown above 767px
   .mm-mobile    mobile layout, shown at 767px and below
   .mm-navlinks  inline desktop nav, hidden below 1150px
   .mm-navburger hamburger, shown below 1150px             */
.mm-desktop { width: 100%; display: flex; flex-direction: column; align-items: center; }
.mm-mobile { display: none; }
.mm-navlinks { display: flex; }
.mm-navburger { display: none; }

/* ---------- 3. nav underline animation ----------
   Sweeps left-to-right in sequence on load; wipes in on
   hover / click / keyboard focus. The current page keeps
   its underline via [data-active].                        */
@keyframes mmNavSweep { 0% { transform: scaleX(0); } 30%, 68% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.mm-navlinks a { position: relative; transition: color 0.24s ease, opacity 0.24s ease; }
.mm-navlinks a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: rgb(11,152,218); transform: scaleX(0); transform-origin: left center; transition: transform 0.34s cubic-bezier(0.2,0.7,0.3,1); }
.mm-navlinks a:hover::after, .mm-navlinks a:focus-visible::after, .mm-navlinks a[data-active]::after { transform: scaleX(1); }
.mm-navlinks a:active::after { transform: scaleX(1); transition-duration: 0.1s; }
.mm-navlinks a:not([data-active])::after { animation: mmNavSweep 0.9s cubic-bezier(0.2,0.7,0.3,1) 1; }
.mm-navlinks a:nth-child(1)::after { animation-delay: 0.35s; }
.mm-navlinks a:nth-child(2)::after { animation-delay: 0.53s; }
.mm-navlinks a:nth-child(3)::after { animation-delay: 0.71s; }
.mm-navlinks a:nth-child(4)::after { animation-delay: 0.89s; }
.mm-navlinks a:nth-child(5)::after { animation-delay: 1.07s; }

/* ---------- 4. footer: logo + 3 columns ---------- */
.mm-foot { display: grid; grid-template-columns: minmax(200px, 1fr) auto auto auto; gap: clamp(24px, 2.6vw, 64px); align-items: start; }
.mm-foot-links a { white-space: nowrap; }

/* ---------- 5. hover states ---------- */
.hv1:hover { opacity: 1 !important; color: rgb(11,152,218) !important; }   /* nav + footer links */
.hv2:hover { background: rgb(9,132,191) !important; }                       /* primary buttons */
.hv3:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(19,19,19,0.14); } /* card lift */
.hv4:hover { box-shadow: inset 0 0 0 1.667px rgb(11,152,218) !important; }  /* carousel arrows */
.hv5:hover { color: rgb(255,255,255) !important; }                          /* lightbox link */
.hv6:hover { background: rgba(255,255,255,0.28) !important; }               /* lightbox close */

/* ---------- 6. why / how rows ---------- */
[data-row-index] { transition: background 0.3s ease, transform 0.32s cubic-bezier(0.2,0.7,0.3,1), box-shadow 0.32s cubic-bezier(0.2,0.7,0.3,1); }
[data-row-circle] { transition: background 0.3s ease; }
[data-row-num] { transition: color 0.3s ease; }

/* ---------- 7. carousels ---------- */
[data-track] { touch-action: pan-y; }
[data-track].is-dragging { cursor: grabbing; }
[data-track] img, [data-track] a { -webkit-user-drag: none; user-select: none; }

/* ---------- 8. forms ---------- */
input, textarea, select, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: rgba(19,19,19,0.5); }


/* ---------- 10. mobile footer accordion ----------
   Height is driven in px from JS (initAccordions) because it is
   reliably animatable; the 24px header gap lives on the clipped
   inner so a closed panel collapses to exactly 0. */
.mm-acc { overflow: hidden; height: 0; align-self: stretch; }
.mm-acc.mm-acc-ready { transition: height 0.34s cubic-bezier(0.4, 0, 0.2, 1); }
.mm-acc-inner { padding-top: 24px; opacity: 0; transform: translateY(-5px); transition: opacity 0.24s ease 0.02s, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.mm-acc[data-open="1"] > .mm-acc-inner { opacity: 1; transform: translateY(0); }
.mm-acc-plus { transition: opacity 0.26s ease, transform 0.34s cubic-bezier(0.4, 0, 0.2, 1); }
.mm-acc-open .mm-acc-plus { transform: rotate(90deg); }

/* ---------- 11. mobile menu drawer ----------
   Stays in the DOM so it can animate; hidden by opacity +
   pointer-events (visibility would cancel the transform). */
.mm-drawer { opacity: 0; pointer-events: none; transition: opacity 0.26s ease; }
.mm-drawer[data-open="1"] { opacity: 1; pointer-events: auto; transition: opacity 0.22s ease; }
.mm-drawer-panel { transform: translateY(-100%); transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.mm-drawer[data-open="1"] > .mm-drawer-panel { transform: translateY(0); }

/* ---------- 12. back to top ----------
   Brand blue, white stroke icon and the same lift curve as the
   site's other buttons. */
.mm-top { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 48px; height: 48px; padding: 0; border: none; border-radius: 50%; background: rgb(11,152,218); box-shadow: 0 10px 26px rgba(19,19,19,0.18); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(14px) scale(0.94); pointer-events: none; transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), background 0.24s ease, box-shadow 0.24s ease; -webkit-tap-highlight-color: transparent; }
.mm-top[data-show="1"] { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mm-top[data-show="1"]:hover { background: rgb(9,132,191); transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 32px rgba(19,19,19,0.22); }
.mm-top[data-show="1"]:active { transform: translateY(0) scale(0.92); box-shadow: 0 6px 16px rgba(19,19,19,0.18); transition-duration: 0.1s; }
.mm-top:focus-visible { outline: 2px solid rgb(11,152,218); outline-offset: 3px; }
@media (max-width: 767px) { .mm-top { right: 16px; bottom: 16px; width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .mm-top, .mm-top[data-show="1"], .mm-top[data-show="1"]:hover, .mm-top[data-show="1"]:active { transform: none; transition: opacity 0.2s ease, background 0.2s ease; } }


/* ---------- 15. Calendly booking modal ----------
   Same shell as the video lightbox. The iframe src is only set when
   opened, so the embed never loads on a normal page view. */
.mm-cal { position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 130; background: rgba(0,0,0,0.86); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 64px 16px 20px; opacity: 0; pointer-events: none; transition: opacity 0.24s ease; }
.mm-cal[data-open="1"] { opacity: 1; pointer-events: auto; }
.mm-cal-box { position: relative; width: min(100%, 1000px); height: min(760px, 100% - 8px); flex-shrink: 1; border-radius: 12px; overflow: hidden; background: rgb(255,255,255); }
.mm-cal-box iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; }
.mm-cal-close { position: absolute; right: 20px; top: 16px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.24s ease; }
.mm-cal-close:hover { background: rgba(255,255,255,0.28); }
@media (max-width: 767px) { .mm-cal { padding: 58px 10px 14px; gap: 10px; } .mm-cal-close { right: 10px; top: 10px; } }

/* ---------- 16. consultation page embed ----------
   One iframe serves both layouts, so the Calendly app is never fetched twice. */
.mm-book { position: relative; width: 100%; max-width: 1560px; display: flex; flex-direction: column; gap: 16px; padding: 36px clamp(24px,5vw,80px) 70px; align-items: flex-start; flex-shrink: 0; }
.mm-book-frame { position: relative; align-self: stretch; height: clamp(680px, 76vh, 900px); border-radius: 12px; overflow: hidden; background: rgb(255,255,255); box-shadow: inset 0 0 0 1px rgb(237,238,240); }
.mm-book-frame iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; }
@media (max-width: 767px) {
  .mm-book { padding: 24px 20px 40px; gap: 14px; }
  .mm-book-frame { height: clamp(760px, 88vh, 1040px); }
}

/* ---------- 14. insight cards ----------
   The whole card is the link; the Read More pill keeps its own hover. */
a:hover .mm-more { background: rgb(9,132,191); }

/* ---------- 13. responsive ---------- */
@media (max-width: 859px) {
    .mm-foot { grid-template-columns: 1fr 1fr; row-gap: 40px; }
    .mm-foot-contact { border-left: none !important; padding-left: 0 !important; }
  }
@media (max-width: 700px) {
    .mm-foot { grid-template-columns: 1fr; row-gap: 32px; }
    .mm-foot-badge { align-items: flex-start !important; }
  }
@media (max-width: 1149px) {
    .mm-navlinks { display: none; }
    .mm-navburger { display: flex; }
  }
@media (max-width: 767px) {
    .mm-desktop { display: none; }
    .mm-mobile { display: flex; }
  }
