/* =========================
   Header Logo – ShellyFit
   ========================= */

.site-header .wp-block-site-logo img {
  max-height: 70px;   /* desktop */
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;

  /* Circular + premium separation */
  border-radius: 999px;
  border: 2px solid currentColor;
  box-sizing: border-box;

  /* Subtle depth on any background */
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Top bar styling */
.site-topbar {
  font-size: 0.85rem;
  line-height: 1.2;
}

/* Keep top bar compact */
.site-topbar .wp-block-columns {
  margin: 0;
}

/* Make the social icons sit neatly */
.site-topbar .wp-block-social-links {
  gap: 10px;
  margin: 0;
}

/* Icon size + subtle presence */
.site-topbar .wp-block-social-link a {
  padding: 0;
}

.site-topbar .wp-block-social-link svg {
  width: 18px;
  height: 18px;
}

/* Force TikTok logo to inherit topbar color on dark background */
.sf-topbar .wp-block-social-links .wp-social-link-tiktok a,
.sf-topbarSocial .wp-social-link-tiktok a {
  color: var(--wp--preset--color--white) !important;
}

.sf-topbar .wp-block-social-links .wp-social-link-tiktok svg,
.sf-topbar .wp-block-social-links .wp-social-link-tiktok svg path,
.sf-topbar .wp-block-social-links .wp-social-link-tiktok svg circle,
.sf-topbarSocial .wp-social-link-tiktok svg,
.sf-topbarSocial .wp-social-link-tiktok svg path,
.sf-topbarSocial .wp-social-link-tiktok svg circle {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Gold hover (brand signal, not loud) */
.site-topbar .wp-block-social-link a:hover svg,
.site-topbar .wp-block-social-link a:focus-visible svg {
  fill: var(--wp--preset--color--gold);
}

@media (max-width: 781px) {

  /* Header wrapper padding (override inline styles) */
  .site-header {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .site-header .wp-block-site-logo img {
    max-height: 60px;
    height: auto;
    width: auto;
  }

 /* Light header */
.site-header {
  color: #0f0f0f;
}

/* Dark header */
.is-style-dark .site-header,
.has-background-dark .site-header {
  color: #ffffff;
}

  /* Force columns to wrap into 2 + 1 rows */
  .site-header .wp-block-columns {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
  }

  /* Column widths: 50 / 50 / 100 (override inline flex-basis) */
  .site-header .wp-block-columns > .wp-block-column:nth-of-type(1) {
    flex: 0 0 calc(50% - 0.375rem) !important;
    max-width: calc(50% - 0.375rem) !important;
  }

  .site-header .wp-block-columns > .wp-block-column:nth-of-type(2) {
    flex: 0 0 calc(50% - 0.375rem) !important;
    max-width: calc(50% - 0.375rem) !important;
  }

  .site-header .wp-block-columns > .wp-block-column:nth-of-type(3) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Logo: stop it dominating the header */
  .site-header .wp-block-site-logo {
    float: none !important;
    margin: 0 !important;
  }

  .site-header .wp-block-site-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 96px !important;
  }

  /* Burger: right aligned */
  .site-header nav.primary-nav {
    width: 100% !important;
    justify-content: flex-end !important;
  }

  .site-header nav.primary-nav .wp-block-navigation__responsive-container-open {
    margin-left: auto !important;
  }

  /* CTA alignment */
  .site-header .wp-block-buttons {
    justify-content: flex-start !important;
    margin-top: 0.25rem !important;
  }

  /* Topbar mobile: 3 lines -> name, meta, socials */
  .sf-topbar .sf-topbar__inner {
    display: grid !important;
    grid-template-columns: 1fr;
    row-gap: 6px;
    justify-items: center;
    text-align: center;
  }

  .sf-topbar .sf-topbarName {
    justify-content: center;
    text-align: center;
    flex-wrap: nowrap !important;
    gap: 10px;
  }

  .sf-topbar .sf-topbarRole {
    white-space: nowrap;
  }

  .sf-topbar .sf-topbarRight {
    display: contents !important;
  }

  .sf-topbar .sf-topbarMeta {
    text-align: center;
    white-space: normal !important;
  }

  .sf-topbar .sf-topbarSocial {
    display: flex !important;
    justify-content: center;
    margin: 2px 0 0;
    opacity: 1;
    visibility: visible;
  }

  .site-topbar {
    font-size: 0.78rem;
  }

  .site-topbarMeta {
    white-space: normal;
    line-height: 1.35;
  }

}
