/* Strongfit theme shell — dark base for non-Elementor views */

:root {
  --sf-black: #0a0a0a;
  --sf-charcoal: #141414;
  --sf-red: #93003f;
  --sf-red-hover: #750032;
  --sf-red-soft: #b91a56;
  --sf-red-deep: #5c0028;
  --sf-red-rgb: 147, 0, 63;
  --sf-white: #ffffff;
  --sf-muted: #a3a3a3;
  --sf-font-display: "Archivo", system-ui, sans-serif;
  --sf-font-body: "Raleway", system-ui, sans-serif;

  /* Fluid type — see docs/TYPOGRAPHY.md §4 */
  --sf-fs-display: clamp(2.25rem, 1.35rem + 4.2vw, 4.5rem);
  --sf-fs-h1: clamp(2rem, 1.4rem + 2.8vw, 3rem);
  --sf-fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --sf-fs-h3: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  --sf-fs-eyebrow: clamp(0.7rem, 0.65rem + 0.25vw, 0.8125rem);
  --sf-fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --sf-fs-small: clamp(0.8125rem, 0.8rem + 0.15vw, 0.875rem);
  --sf-fs-button: clamp(0.75rem, 0.72rem + 0.2vw, 0.875rem);
  --sf-fs-nav: clamp(0.875rem, 0.85rem + 0.2vw, 0.95rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.strongfit-body {
  margin: 0;
  background: var(--sf-black);
  color: var(--sf-white);
  font-family: var(--sf-font-body);
  font-size: var(--sf-fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.strongfit-body.single-sf_program,
body.strongfit-body.post-type-archive-sf_program,
body.strongfit-body.sf-blog-surface {
  background: #fff;
  color: #111;
}

.sf-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-site__main {
  flex: 1 0 auto;
}

.sf-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid #2a2a2a;
}

body.sf-nav-lock {
  overflow: hidden;
}

.sf-theme-topbar {
  display: block;
  background: #000;
  border-bottom: 1px solid #1f1f1f;
}

.sf-theme-topbar .sf-container,
.sf-topbar__inner {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.sf-topbar__label {
  opacity: 0.7;
  margin-right: 0.25rem;
}

.sf-topbar__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: currentColor;
}

.sf-theme-topbar .sf-topbar__link,
.sf-theme-topbar .sf-topbar__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a3a3a3;
  text-decoration: none;
  line-height: 1;
}

.sf-theme-topbar .sf-topbar__link:hover,
.sf-theme-topbar .sf-topbar__social-link:hover {
  color: #ffffff;
}

.sf-theme-topbar .sf-topbar__social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.sf-theme-topbar .sf-topbar__social-link .sf-topbar__icon {
  width: 1rem;
  height: 1rem;
}

.sf-site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  min-height: 72px;
}

.sf-site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sf-site-branding__text {
  display: none !important;
}

.sf-site-branding__fallback {
  display: inline-flex;
}

.sf-site-header .custom-logo-link img,
.sf-site-header .custom-logo {
  display: block;
  width: auto;
  height: 48px;
  max-height: 48px;
  object-fit: contain;
}

.sf-site-title {
  margin: 0;
  font-family: var(--sf-font-display);
  font-size: var(--sf-fs-nav);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-white);
  text-decoration: none;
}

.sf-site-title a,
a.sf-site-title {
  color: var(--sf-white);
  text-decoration: none;
}

.sf-site-tag {
  color: var(--sf-muted);
  font-family: var(--sf-font-body);
  font-size: var(--sf-fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sf-site-nav--desktop,
.sf-site-header__cta--bar {
  display: none !important;
}

.sf-site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--sf-white);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sf-site-nav-toggle:hover,
.sf-site-nav-toggle:focus-visible {
  border-color: var(--sf-red);
  background: rgba(147, 0, 63, 0.12);
  outline: none;
}

.sf-site-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.sf-site-nav-toggle__bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.sf-site-nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.sf-site-nav-toggle__bars span:nth-child(2) {
  top: 6px;
}

.sf-site-nav-toggle__bars span:nth-child(3) {
  top: 12px;
}

.sf-site-header.is-open .sf-site-nav-toggle__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.sf-site-header.is-open .sf-site-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.sf-site-header.is-open .sf-site-nav-toggle__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

.sf-site-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sf-site-header.is-open .sf-site-drawer-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(86vw, 340px);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}

.sf-site-header.is-open .sf-site-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.sf-site-drawer__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.35rem 1.75rem;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(147, 0, 63, 0.16), transparent 55%),
    #101010;
  border-left: 1px solid #2a2a2a;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
}

.sf-site-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.sf-site-drawer__title {
  font-family: var(--sf-font-display);
  font-size: var(--sf-fs-nav);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-white);
}

.sf-site-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--sf-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sf-site-drawer__close:hover,
.sf-site-drawer__close:focus-visible {
  border-color: var(--sf-red);
  color: var(--sf-red);
  outline: none;
}

.sf-site-nav--mobile {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.sf-primary-menu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-site-nav--mobile .sf-primary-menu a {
  display: block;
  padding: 0.85rem 0.35rem;
  color: var(--sf-white);
  text-decoration: none;
  font-family: var(--sf-font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sf-site-nav--mobile .sf-primary-menu a:hover,
.sf-site-nav--mobile .sf-primary-menu a:focus-visible {
  color: var(--sf-red);
  padding-left: 0.55rem;
  outline: none;
}

.sf-primary-menu .sub-menu {
  margin: 0 0 0.35rem;
  padding: 0 0 0 0.75rem;
  list-style: none;
}

.sf-primary-menu .sub-menu a {
  font-size: var(--sf-fs-nav);
  font-weight: 500;
  color: var(--sf-muted);
  border-bottom: 0;
  padding-block: 0.55rem;
}

.sf-site-header__cta--drawer {
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
  flex-shrink: 0;
}

.sf-site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .sf-site-nav-toggle,
  .sf-site-drawer,
  .sf-site-drawer-backdrop,
  .sf-site-header__cta--drawer {
    display: none !important;
  }

  .sf-site-nav--desktop {
    display: flex !important;
    align-items: center;
    margin-left: auto;
  }

  .sf-site-nav--desktop .sf-primary-menu {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .sf-site-nav--desktop .sf-primary-menu a {
    color: var(--sf-white);
    text-decoration: none;
    font-size: var(--sf-fs-nav);
    font-weight: 500;
  }

  .sf-site-nav--desktop .sf-primary-menu a:hover,
  .sf-site-nav--desktop .sf-primary-menu a:focus-visible {
    color: var(--sf-red);
  }

  .sf-site-nav--desktop .sf-primary-menu .sub-menu {
    display: none;
  }

  .sf-site-header__cta--bar {
    display: inline-flex !important;
    flex-shrink: 0;
    margin-left: 1rem;
  }
}

/* Compact Join StrongFIT in the site header only */
.sf-site-header__cta.sf-btn,
.sf-site-header__cta.sf-btn--primary {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

/* Do not hide theme topbar/header on Elementor pages — chrome lives in the theme */
.sf-no-theme-chrome .sf-theme-topbar,
.sf-no-theme-chrome .sf-site-header {
  display: none;
}

.sf-content,
.sf-entry {
  width: min(100% - 2rem, 800px);
  margin: 3rem auto;
}

.sf-entry h1,
.sf-page-title {
  font-family: var(--sf-font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.sf-entry a {
  color: var(--sf-red);
}

/* Blog / single post — header width + white canvas */
body.sf-blog-surface .sf-content {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
  padding: 2.75rem 0 4rem;
}

body.sf-blog-surface .sf-entry {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #111;
}

body.sf-blog-surface .sf-page-title,
body.sf-blog-surface .sf-entry h1,
body.sf-blog-surface .sf-entry h2,
body.sf-blog-surface .sf-entry h3 {
  color: #111;
}

body.sf-blog-surface .sf-entry__meta {
  margin: 0 0 1.25rem;
  color: #666;
  font-family: var(--sf-font-body);
  font-size: var(--sf-fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.sf-blog-surface .sf-entry__thumb {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border-radius: 12px;
}

body.sf-blog-surface .sf-entry__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

body.sf-blog-surface .sf-entry__content {
  color: #333;
  font-family: var(--sf-font-body);
  font-size: var(--sf-fs-body);
  line-height: 1.7;
}

body.sf-blog-surface .sf-entry__content > *:first-child {
  margin-top: 0;
}

body.sf-blog-surface .sf-entry__content a {
  color: var(--sf-red);
}

body.sf-blog-surface .sf-blog-index {
  display: grid;
  gap: 1.5rem;
}

body.sf-blog-surface .sf-blog-index__card {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ececec;
}

body.sf-blog-surface .sf-blog-index__card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 720px) {
  body.sf-blog-surface .sf-blog-index__card {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    align-items: start;
  }
}

body.sf-blog-surface .sf-blog-index__media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

body.sf-blog-surface .sf-blog-index__media img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

body.sf-blog-surface .sf-blog-index__title {
  margin: 0 0 0.45rem;
}

body.sf-blog-surface .sf-blog-index__title a {
  color: #111;
  text-decoration: none;
}

body.sf-blog-surface .sf-blog-index__title a:hover,
body.sf-blog-surface .sf-blog-index__title a:focus-visible {
  color: var(--sf-red);
}

body.sf-blog-surface .sf-blog-index__excerpt {
  margin: 0 0 0.85rem;
  color: #555;
  line-height: 1.6;
}

body.sf-blog-surface .sf-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--sf-red);
  font-family: var(--sf-font-body);
  font-size: var(--sf-fs-button);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

body.sf-blog-surface .sf-entry__header {
  margin-bottom: 1.5rem;
}

.sf-site-footer {
  position: relative;
  margin-top: auto;
  padding: 4rem 0 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 8% 0%, rgba(147, 0, 63, 0.16), transparent 42%),
    linear-gradient(180deg, #0c0c0c 0%, #050505 100%);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--sf-font-body, "Raleway", sans-serif);
  font-size: var(--sf-fs-small, 0.9rem);
}

.sf-site-footer__glow {
  pointer-events: none;
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 0, 63, 0.12), transparent 68%);
  filter: blur(8px);
}

.sf-container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

.sf-site-footer__shell {
  position: relative;
  z-index: 1;
}

.sf-site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  padding-bottom: 2.5rem;
}

.sf-site-footer__brand {
  max-width: 22rem;
}

.sf-site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.sf-site-footer__logo .custom-logo-link,
.sf-site-footer__logo .custom-logo {
  display: block;
}

.sf-site-footer__logo img,
.sf-site-footer__logo .custom-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.sf-site-footer__wordmark {
  font-family: var(--sf-font-display, "Archivo", sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.sf-site-footer__eyebrow {
  margin: 0.85rem 0 0.45rem;
  color: var(--sf-red, #93003f);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sf-site-footer__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.65;
}

.sf-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.sf-site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.sf-site-footer__social-link .sf-icon {
  width: 1rem;
  height: 1rem;
}

.sf-site-footer__social-link:hover,
.sf-site-footer__social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(147, 0, 63, 0.55);
  background: rgba(147, 0, 63, 0.16);
  color: #fff;
  outline: none;
}

.sf-site-footer__heading {
  margin: 0 0 0.95rem;
  color: #fff;
  font-family: var(--sf-font-display, "Archivo", sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-site-footer__list li + li {
  margin-top: 0.45rem;
}

.sf-site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sf-site-footer__list a:hover,
.sf-site-footer__list a:focus-visible {
  color: #fff;
  transform: translateX(2px);
  outline: none;
}

.sf-site-footer__list--contact .sf-icon {
  width: 1rem;
  height: 1rem;
  color: var(--sf-red, #93003f);
  flex: 0 0 auto;
}

.sf-site-footer__muted {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.sf-site-footer__cta {
  padding: 1.25rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(32, 32, 32, 0.95) 0%, rgba(14, 14, 14, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 16px 36px rgba(0, 0, 0, 0.35);
}

.sf-site-footer__cta-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--sf-red, #93003f);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sf-site-footer__cta-title {
  margin: 0 0 0.45rem;
  color: #fff;
  font-family: var(--sf-font-display, "Archivo", sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.sf-site-footer__cta-text {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
}

.sf-site-footer__cta-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.sf-site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.15rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-site-footer__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
}

.sf-site-footer__legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}

.sf-site-footer__legal a {
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sf-site-footer__legal a:hover,
.sf-site-footer__legal a:focus-visible {
  color: #fff;
  outline: none;
}

@media (min-width: 720px) {
  .sf-site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .sf-site-footer__grid {
    grid-template-columns: 1.45fr 0.9fr 0.9fr 1.1fr 1.15fr;
    gap: 2rem 1.75rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sf-site-footer__social-link,
  .sf-site-footer__list a {
    transition: none;
  }

  .sf-site-footer__social-link:hover,
  .sf-site-footer__social-link:focus-visible,
  .sf-site-footer__list a:hover,
  .sf-site-footer__list a:focus-visible {
    transform: none;
  }
}

.sf-content--full,
.sf-content--elementor {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.sf-content--full .sf-entry,
.sf-content--elementor .sf-entry {
  width: 100%;
  max-width: none;
  margin: 0;
}

.sf-entry__thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.sf-entry__meta {
  color: var(--sf-muted);
  font-size: var(--sf-fs-small);
}
