/* OmniFlex Fitness main styles */

/* CSS RESET (simplified) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #0f172a;
  background-color: #ffffff;
}

/* COLOR PALETTE */
:root {
  --of-primary: #16a34a;
  --of-primary-soft: #bbf7d0;
  --of-primary-dark: #15803d;
  --of-accent: #22c55e;
  --of-bg-soft: #f1f5f9;
  --of-border: #e2e8f0;
  --of-text-muted: #64748b;
  --of-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --of-radius-lg: 18px;
}

/* LAYOUT UTILITIES */
.of-container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.of-page {
  background-color: #ffffff;
}

/* HEADER */
.of-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.of-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 0.85rem 1.5rem;
}

.of-header__spacer--left {
  flex: 1;
}

.of-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.of-logo { display: none; }

.of-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #bbf7d0, #16a34a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
}

.of-logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.of-logo__brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.of-logo__sub {
  font-size: 0.7rem;
  color: var(--of-text-muted);
}

/* BUTTONS */
.of-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.of-btn--primary {
  background: linear-gradient(120deg, var(--of-primary), var(--of-accent));
  color: #ecfdf5;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.35);
}

.of-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 40px rgba(22, 163, 74, 0.4);
}

.of-btn--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #0f172a;
}

.of-btn--ghost:hover {
  background: rgba(226, 232, 240, 0.4);
}

.of-btn--outline {
  background: transparent;
  border-color: var(--of-primary);
  color: var(--of-primary-dark);
}

.of-btn--outline:hover {
  background-color: var(--of-primary-soft);
}

.of-btn--lg {
  padding: 0.9rem 1.7rem;
  font-size: 1rem;
}

.of-btn--block {
  width: 100%;
}

/* BURGER */
.of-header__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.of-header__burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #0f172a;
}

/* MAIN NAV */
.of-main-nav {
  border-top: 1px solid rgba(226, 232, 240, 0.7);
}

.of-main-nav ul {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0.65rem 1rem 0.8rem;
}

.of-main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--of-text-muted);
  padding-bottom: 0.25rem;
  position: relative;
}

.of-main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--of-primary), var(--of-accent));
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.of-main-nav a:hover::after,
.of-main-nav a.is-active::after {
  width: 80%;
}

.of-main-nav a.is-active {
  color: #0f172a;
}

/* HERO */
.of-hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  grid-template-rows: minmax(260px, 1.2fr);
}

.of-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.of-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transform: scale(1.02);
}

.of-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.4));
}

.of-hero__content {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  color: #e5e7eb;
}

.of-hero__text {
  max-width: 620px;
}

.of-hero__text h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.of-hero__text p {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 1.7rem;
}

.of-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
}

.of-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.of-hero__badge {
  position: absolute;
  right: 3vw;
  bottom: 3.5rem;
  max-width: 260px;
  padding: 1rem 1.2rem;
  border-radius: var(--of-radius-lg);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
  box-shadow: var(--of-shadow-soft);
}

.of-hero__badge-label {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background-color: rgba(34, 197, 94, 0.12);
  color: var(--of-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
}

.of-hero__badge-text {
  font-size: 0.8rem;
}

/* SECTIONS */
.of-section {
  padding: 3.5rem 0;
}

.of-section--alt {
  background-color: var(--of-bg-soft);
}

.of-section--page-head {
  padding-top: 2.8rem;
  padding-bottom: 1.5rem;
  background: radial-gradient(circle at top left, #bbf7d0, #ffffff);
}

.of-section__header {
  max-width: 640px;
}

.of-section__header h1,
.of-section__header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.of-section__header p {
  color: var(--of-text-muted);
  font-size: 0.97rem;
}

.of-section__footer {
  margin-top: 2rem;
}

/* GRID */
.of-grid {
  display: grid;
  gap: 1.7rem;
}

.of-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* LAYOUT SPLIT */
.of-layout {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}

.of-layout--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.of-layout--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.of-layout__col--image img {
  width: 100%;
  border-radius: var(--of-radius-lg);
  object-fit: cover;
  box-shadow: var(--of-shadow-soft);
}

/* CARDS */
.of-card {
  background: #ffffff;
  border-radius: var(--of-radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 1.5rem 1.6rem;
}

.of-card__body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.of-card__body p {
  font-size: 0.95rem;
  color: var(--of-text-muted);
}

.of-card--service img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--of-radius-lg) var(--of-radius-lg) 0 0;
}

.of-card--service .of-card__body {
  padding-top: 1rem;
}

.of-card--pricing {
  text-align: left;
}

.of-card--pricing-main {
  border-width: 2px;
  border-color: var(--of-primary);
  box-shadow: var(--of-shadow-soft);
}

.of-card__price {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.2rem 0 0.7rem;
}

.of-card__price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--of-text-muted);
}

.of-card--person h3 {
  margin-bottom: 0.15rem;
}

.of-card--person p {
  font-size: 0.9rem;
  color: var(--of-text-muted);
}

/* TABLE */
.of-table {
  border-radius: var(--of-radius-lg);
  overflow: hidden;
  border: 1px solid var(--of-border);
  background-color: #ffffff;
}

.of-table__row {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr 1.1fr;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--of-border);
}

.of-table__row:last-child {
  border-bottom: none;
}

.of-table__row--head {
  background-color: var(--of-bg-soft);
  font-weight: 600;
}

.of-table--page .of-table__row {
  grid-template-columns: 0.8fr 1.4fr 1fr 1fr;
}

/* LISTS */
.of-list-check {
  list-style: none;
  margin-top: 0.8rem;
}

.of-list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-top: 0.55rem;
  font-size: 0.94rem;
  color: var(--of-text-muted);
}

.of-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #bbf7d0, #16a34a);
}

/* GALLERY */
.of-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.of-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.of-gallery-grid img:hover {
  transform: translateY(-3px);
  box-shadow: var(--of-shadow-soft);
}

.of-gallery-grid--page img {
  height: 210px;
}

/* BREADCRUMBS */
.of-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  color: var(--of-text-muted);
}

.of-breadcrumbs a {
  color: var(--of-primary-dark);
  text-decoration: none;
}

/* FORMS */
.of-form {
  margin-top: 1.4rem;
}

.of-form__row {
  margin-bottom: 1rem;
}

.of-form__row label {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
}

.of-form__row input,
.of-form__row select,
.of-form__row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid var(--of-border);
  font-size: 0.9rem;
}

.of-form__row--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--of-text-muted);
}

.of-form__row--checkbox input {
  width: auto;
  margin-top: 0.15rem;
}

/* AUTH FORMS */
.of-auth {
  max-width: 420px;
}

.of-form--auth {
  margin-top: 1.6rem;
}

.of-auth__meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--of-text-muted);
}

/* TOC */
.of-toc {
  position: fixed;
  top: 38%;
  right: 2.2rem;
  transform: translateY(-50%);
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  padding: 0.9rem 1.1rem;
  width: 280px;
}

.of-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.of-toc a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  color: var(--of-text-muted);
  text-decoration: none;
  border-radius: 999px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.of-toc a.is-active {
  background-color: var(--of-primary-soft);
  color: #052e16;
}

/* FOOTER */
.of-footer {
  border-top: 1px solid var(--of-border);
  padding: 1.7rem 0 2rem;
  background-color: #ffffff;
}

.of-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.of-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.of-footer__nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.of-footer__nav a {
  color: var(--of-text-muted);
  text-decoration: none;
}

.of-footer__meta {
  font-size: 0.78rem;
  color: var(--of-text-muted);
}

/* LINKS */
.of-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  margin-top: 0.7rem;
  color: var(--of-primary-dark);
  text-decoration: none;
}

.of-link-arrow::after {
  content: '→';
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .of-header__inner {
    justify-content: space-between;
  }

  .of-header__actions {
    display: none;
  }

  .of-header__burger {
    display: flex;
  }

  .of-main-nav {
    display: none;
  }

  .of-main-nav.is-open {
    display: block;
  }

  .of-main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .of-hero__content {
    padding-top: 3.1rem;
  }

  .of-hero__badge {
    position: static;
    margin-top: 1.8rem;
  }

  .of-layout--split,
  .of-layout--reverse {
    grid-template-columns: minmax(0, 1fr);
  }

  .of-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .of-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .of-table--page .of-table__row {
    grid-template-columns: 0.9fr 1.4fr 1fr;
  }

  .of-toc {
    display: none;
  }
}

@media (max-width: 640px) {
  .of-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .of-hero__content {
    padding-bottom: 2.4rem;
  }
}



  .of-toc {
    display: none;
  }
}


/* HEADER TITLE */
.of-header__title {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:50%;
  transform:translate(-50%, -50%);
  font-size:2rem;
  font-weight:900;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:#0f172a;
  pointer-events:none;
}

@media (max-width: 960px) {
  .of-header__title {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:50%;
  transform:translate(-50%, -50%);
  font-size:2rem;
  font-weight:900;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:#0f172a;
  pointer-events:none;
}
}

@media (max-width: 640px) {
  .of-header__title {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:50%;
  transform:translate(-50%, -50%);
  font-size:2rem;
  font-weight:900;
  letter-spacing:0.15em;
  text-transform:uppercase;
  color:#0f172a;
  pointer-events:none;
}
}
