/* coachingcompanion.nl - shared base + responsive layer.
   Linked from each page's <helmet>. The pages style everything with inline
   style="" attributes (these came out of Claude design), so mobile overrides
   need !important to beat inline specificity. Layout/heading rules target the
   inline style strings directly via [style*="..."] so individual elements do
   not need class hooks - only the nav (hamburger) needs markup. */

/* ---- nav hamburger (desktop: links shown, burger hidden) ---- */
.cc-nav {
  position: relative;
}
.cc-nav-menu {
  margin-left: auto;
}
.cc-nav-burger {
  display: none;
  list-style: none;
  cursor: pointer;
}
.cc-nav-burger::-webkit-details-marker {
  display: none;
}
.cc-nav-menu .cc-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

@media (max-width: 768px) {
  /* every multi-column grid collapses to a single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* scale down the fixed desktop heading sizes */
  [style*="font-size: 64px"],
  [style*="font-size:64px"] {
    font-size: 38px !important;
  }
  [style*="font-size: 54px"],
  [style*="font-size:54px"] {
    font-size: 34px !important;
  }
  [style*="font-size: 46px"],
  [style*="font-size:46px"] {
    font-size: 30px !important;
  }
  [style*="font-size: 44px"],
  [style*="font-size:44px"] {
    font-size: 30px !important;
  }
  [style*="font-size: 42px"],
  [style*="font-size:42px"] {
    font-size: 28px !important;
  }
  [style*="font-size: 32px"],
  [style*="font-size:32px"] {
    font-size: 23px !important;
  }

  /* hero product preview (index): unstack the fixed-height mock */
  [style*="height: 420px"] {
    height: auto !important;
    flex-direction: column !important;
  }
  [style*="width: 210px"] {
    width: 100% !important;
  }

  /* roomier gutters on the dark CTA panel */
  [style*="68px 48px"] {
    padding: 48px 24px !important;
  }

  /* legal pages: stop the table-of-contents sidebar from sticking */
  [style*="top: 96px"],
  [style*="top:96px"] {
    position: static !important;
    top: auto !important;
  }

  /* footer: logo on its own row, the three link columns side by side */
  footer [style*="gap: 48px"],
  footer [style*="gap:48px"] {
    gap: 20px !important;
  }
  footer [style*="min-width: 240px"],
  footer [style*="min-width:240px"] {
    flex-basis: 100% !important;
  }
  footer [style*="flex-direction: column"],
  footer [style*="flex-direction:column"] {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  /* ---- mobile nav ---- */
  .cc-nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e5dccf;
    background: #fff;
    color: #1c1917;
    font-size: 20px;
    line-height: 1;
  }
  .cc-nav-menu .cc-nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin: 0 !important;
    background: #faf7f1;
    border-bottom: 1px solid #ece4d8;
    padding: 10px 32px 16px !important;
    box-shadow: 0 14px 28px -18px rgba(28, 25, 23, 0.45);
  }
  .cc-nav-menu[open] .cc-nav-links {
    display: flex !important;
  }
  .cc-nav-menu .cc-nav-links > a {
    padding: 9px 0 !important;
    font-size: 16px !important;
  }

  /* the standalone nav button lives in the hero on mobile; hide it up top */
  .cc-nav-cta {
    display: none !important;
  }
}
