/* ===========================================================
   CEO Cadence — shared mobile layer (loaded after each page's
   own <style>, so these rules win on the small-screen breakpoint).
   Scope: nav (hamburger), credentials stacking, tap targets,
   section rhythm. Desktop is unchanged above 760px.
   =========================================================== */

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text, #1c1c1c);
  transition: background 0.15s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text, #1c1c1c);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 760px) {
  /* keep the bar pinned and make it the anchor for the menu panel */
  nav, nav.site { position: sticky; top: 0; z-index: 200; }

  .nav-toggle { display: inline-flex; }

  /* collapse the inline links into a tap-friendly panel */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg, #fff);
    border-top: 1px solid var(--border, #e2ddd8);
    border-bottom: 1px solid var(--border, #e2ddd8);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
    padding: 0.4rem 0;
    z-index: 300;
  }
  .nav-open .nav-links { display: flex; }

  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    display: block;
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
  }

  /* flatten the "Sample Chapters" dropdown — show the chapters directly */
  .nav-dd { position: static; }
  .nav-dd-toggle { display: none; }
  .nav-dd-menu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .nav-dd-menu a {
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    white-space: normal;
  }
}

/* Credentials — stack cleanly (home .credentials-strip + speaking .trust-strip) */
@media (max-width: 760px) {
  .credentials-strip-inner,
  .trust-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    text-align: left;
  }
  .cred-divider { display: none; }
  .cred-item,
  .trust-item {
    width: 100%;
    text-align: left;
  }
}

/* Tap targets & forms — comfortable on mobile */
@media (max-width: 760px) {
  input[type="email"],
  input[type="text"],
  select,
  textarea,
  button,
  .btn,
  .btn-text {
    font-size: 16px; /* prevents iOS zoom-on-focus */
  }
  button,
  .submit-btn,
  .cta-btn-primary,
  .cta-btn-secondary {
    min-height: 44px;
  }
}
