/* SVZK Consulting: phone layout.
   The pages carry their desktop design as inline styles. This file only
   overrides them on small screens, so the desktop layout is untouched.
   Rules match on the inline style text, e.g. [style*="padding: 40px;"]. */

.svzk-menu-btn { display: none; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (max-width: 700px) {

  /* ---------- Header: one row, links behind a menu button ---------- */
  .svzk-header { position: sticky; top: 0; z-index: 50; }
  .svzk-header > div {
    flex-wrap: wrap !important;
    padding: 12px 20px !important;
    gap: 0 16px !important;
  }
  .svzk-menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 0 14px; margin: 0;
    background: transparent; border: 1px solid #1B2333; border-radius: 0;
    color: #1B2333; font: 500 15px/1 'IBM Plex Sans', system-ui, sans-serif;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .svzk-menu-btn svg { display: block; }
  .svzk-menu-btn .svzk-x { display: none; }
  .svzk-menu-btn[aria-expanded="true"] .svzk-x { display: block; }
  .svzk-menu-btn[aria-expanded="true"] .svzk-bars { display: none; }

  .svzk-nav { display: none !important; }
  .svzk-nav.is-open {
    display: flex !important;
    flex: 0 0 100%;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    margin-top: 12px;
    padding-bottom: 8px;
    font-size: 17px !important;
  }
  .svzk-nav a {
    display: flex !important; align-items: center;
    min-height: 52px; box-sizing: border-box;
    padding: 0 !important;
    border-bottom: 1px solid #D8DCDE !important;
  }
  .svzk-nav a:first-child { border-top: 1px solid #D8DCDE; }
  .svzk-nav a:last-child {
    justify-content: center;
    margin-top: 16px;
    border-bottom: 0 !important;
  }

  /* ---------- Page gutters: 32px -> 20px ---------- */
  [style*="padding-left: 32px"] { padding-left: 20px !important; padding-right: 20px !important; }
  [style*="padding: 96px 32px"]        { padding: 56px 20px !important; }
  [style*="padding: 104px 32px"]       { padding: 56px 20px !important; }
  [style*="padding: 120px 32px;"]      { padding: 64px 20px !important; }
  [style*="padding: 120px 32px 72px"]  { padding: 64px 20px 40px !important; }
  [style*="padding: 120px 32px 104px"] { padding: 64px 20px 56px !important; }
  [style*="padding: 136px 32px"]       { padding: 72px 20px !important; }
  [style*="padding: 160px 32px 88px"]  { padding: 64px 20px 48px !important; }
  [style*="padding: 56px 32px 0"]      { padding: 40px 20px 0 !important; }
  [style*="padding: 40px 32px 48px"]   { padding: 32px 20px 40px !important; }
  [style*="padding: 40px 32px 120px"]  { padding: 32px 20px 64px !important; }

  /* ---------- Section spacing: roughly half the desktop values ---------- */
  [style*="padding-top: 120px"]    { padding-top: 64px !important; }
  [style*="padding-top: 104px"]    { padding-top: 56px !important; }
  [style*="padding-top: 96px"]     { padding-top: 52px !important; }
  [style*="padding-top: 88px"]     { padding-top: 48px !important; }
  [style*="padding-top: 64px"]     { padding-top: 44px !important; }
  [style*="padding-bottom: 104px"] { padding-bottom: 56px !important; }
  [style*="padding-bottom: 96px"]  { padding-bottom: 52px !important; }
  [style*="padding-bottom: 88px"]  { padding-bottom: 48px !important; }
  [style*="padding-bottom: 72px"]  { padding-bottom: 44px !important; }
  [style*="padding-bottom: 64px"]  { padding-bottom: 44px !important; }
  [style*="margin-top: 64px"] { margin-top: 36px !important; }
  [style*="margin-top: 56px"] { margin-top: 32px !important; }
  [style*="margin-top: 52px"] { margin-top: 32px !important; }
  [style*="margin-top: 48px"] { margin-top: 32px !important; }
  [style*="gap: 64px"] { gap: 36px !important; }
  [style*="gap: 56px"] { gap: 32px !important; }
  [style*="gap: 32px 64px"] { gap: 20px !important; }

  /* ---------- Cards: less inner padding, so text gets the width ---------- */
  [style*="padding: 56px;"],
  [style*="padding: 48px;"],
  [style*="padding: 40px;"],
  [style*="padding: 36px;"],
  [style*="padding: 32px;"],
  [style*="padding: 32px 36px;"] { padding: 24px !important; }
  [style*="padding: 30px;"],
  [style*="padding: 28px;"] { padding: 22px !important; }

  /* ---------- Grids: one column, never wider than the screen ---------- */
  [style*="repeat(auto-fit"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="grid-column: span 2"] { grid-column: auto !important; }
  [style*="min-height: 640px"] { min-height: 0 !important; }
  [style*="min-height: 360px"] { min-height: 0 !important; aspect-ratio: 16 / 10; }
  [style*="min-height: 300px"] { min-height: 200px !important; }
  img { max-width: 100%; }

  /* Headline numbers sit two-up instead of one long column. */
  .svzk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 20px !important;
  }
  .svzk-stats [style*="white-space: nowrap"] { font-size: 38px !important; }
  .svzk-stats [style*="font-size: 16px"] { font-size: 15px !important; }

  /* ---------- Type ---------- */
  [style*="font-size: 21px"] { font-size: 18px !important; }
  [style*="font-size: 13px"] { font-size: 14px !important; }
  [style*="font-size: 12px"] { font-size: 13px !important; }
  [style*="font-size: 11px"] { font-size: 12px !important; }
  [style*="letter-spacing: 0.16em"],
  [style*="letter-spacing: 0.14em"] { letter-spacing: 0.08em !important; }
  h1[style*="clamp(44px"] { font-size: 40px !important; line-height: 1.06 !important; }
  [style*="font-size: 48px"] { font-size: 40px !important; }
  h1, h2, h3, p, li { overflow-wrap: break-word; }

  /* ---------- Tap targets: at least 44px tall ---------- */
  footer a[style*="display: block"] {
    padding: 11px 0 !important;
    margin-bottom: 0 !important;
  }
  a[style*="font-weight: 500; font-size: 16px"] {
    display: inline-block; padding: 10px 0;
  }
  a[style*="padding: 16px 28px"] { text-align: center; }

  /* ---------- Testimonials: swipe sideways, one card at a time ---------- */
  .svzk-quotes {
    display: grid !important;
    grid-template-rows: auto 1fr;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 16px !important;
    align-items: stretch !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -20px; margin-right: -20px;
    padding: 0 20px 8px;
    scroll-padding-left: 20px;
  }
  .svzk-quotes::-webkit-scrollbar { display: none; }
  .svzk-quotes > div { display: contents !important; }
  .svzk-quotes h3 {
    grid-row: 1; grid-column: 1;
    position: sticky; left: 20px;
    width: calc(100vw - 40px);
    margin: 0 0 8px !important;
    font-size: 22px !important;
    color: #565A5C !important;
  }
  .svzk-quotes figure {
    grid-row: 2;
    scroll-snap-align: start;
    display: flex; flex-direction: column; justify-content: space-between;
  }
  .svzk-quotes blockquote { font-size: 16px !important; line-height: 1.65 !important; }
}
