:root {
  /* Dynamic natural color palette (LIGHT scheme, health/joints movement theme) */
  --joint-bg: #f8faf7;
  --joint-surface: #ffffff;
  --joint-brand: #2b7057;
  --joint-brand-light: #eff6f2;
  --joint-brand-hover: #1e4f3d;
  --joint-dark-ink: #18221d;
  --joint-muted-ink: #54685e;
  --joint-border-color: #e2e9e5;
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout and Visual parameters */
  --joint-radius: 16px;
  --joint-shadow: 0 10px 30px rgba(43, 112, 87, 0.05), 0 1px 3px rgba(0, 0, 0, 0.01);
}

/* Base resets & typography */
body {
  font-family: var(--font-body);
  line-height: 1.6;
}

section {
  padding-top: 10vh;
  padding-bottom: 10vh;
  position: relative;
  overflow: hidden;
}

/* Scroll native progress animation */
@keyframes joint-progress {
  from { width: 0%; }
  to { width: 100%; }
}
.joint-page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--joint-brand);
  width: 0%;
  z-index: 1000;
  animation: joint-progress linear;
  animation-timeline: scroll();
}

/* Viewport reveal animations */
@keyframes joint-fade-in {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}
.joint-fade-reveal {
  animation: joint-fade-in 0.6s ease-out both;
  animation-timeline: view();
  animation-range: entry 5% entry 30%;
}

/* HEADER STYLE: NAVIGATION LEFT, LOGO RIGHT */
.joint-navigation-panel {
  background: var(--joint-brand);
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.joint-nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.joint-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.joint-nav-links a {
  color: #e2f0e9;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}
.joint-nav-links a:hover {
  color: #ffffff;
}
.joint-nav-cta-link {
  background: #ffffff;
  color: var(--joint-brand) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: all 0.3s ease !important;
}
.joint-nav-cta-link:hover {
  background: var(--joint-brand-light);
  transform: translateY(-1px);
}
.joint-brand-identity img {
  height: 45px;
  width: auto;
  object-fit: contain;
}
.joint-hidden-toggle {
  display: none;
}
.joint-hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 600;
}
.joint-hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* HEADER MOBILE STYLES */
@media (max-width: 768px) {
  .joint-hamburger-btn {
    display: flex;
  }
  .joint-nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--joint-dark-ink);
    padding: 100px 2rem;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
  }
  .joint-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  .joint-nav-links a {
    font-size: 1.25rem;
  }
  .joint-hidden-toggle:checked ~ .joint-nav-links {
    left: 0;
  }
  .joint-hidden-toggle:checked ~ .joint-hamburger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .joint-hidden-toggle:checked ~ .joint-hamburger-btn span:nth-child(2) {
    opacity: 0;
  }
  .joint-hidden-toggle:checked ~ .joint-hamburger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* SECTION 1: EDITORIAL HERO */
.motion-intro-billboard {
  position: relative;
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--joint-brand-light);
}
.motion-intro-billboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/bg.webp');
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.15;
  z-index: 0;
}
.motion-intro-content {
  position: relative;
  z-index: 10;
  max-width: 1000px;
  padding: 0 2rem;
}
.motion-intro-content h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .motion-intro-content h1 {
    font-size: 2.25rem;
  }
}
.motion-scroll-indicator {
  display: inline-flex;
  margin-top: 1rem;
  animation: pulse 2s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

/* SECTION 2: CONTENT SECTION 1 */
.joint-diet-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .joint-diet-shell {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.joint-diet-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.joint-section-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}
.joint-drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  margin-right: 0.5rem;
  font-weight: 800;
  color: var(--joint-brand);
}
.joint-regular-paragraph {
  color: var(--joint-muted-ink);
}
.joint-diet-img {
  width: 100%;
  height: auto;
  border-radius: var(--joint-radius);
  box-shadow: var(--joint-shadow);
  object-fit: cover;
}

/* SECTION 3: CTA STRIP */
.motion-action-banner {
  background: var(--joint-brand);
  color: #ffffff;
  padding: 6rem 2rem;
  text-align: center;
}
.motion-action-shell {
  max-width: 800px;
  margin: 0 auto;
}
.motion-action-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .motion-action-text {
    font-size: 1.35rem;
  }
}
.motion-action-btn {
  display: inline-block;
  padding: 1rem 3rem;
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: var(--joint-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.motion-action-btn:hover {
  background: #ffffff;
  color: var(--joint-brand);
}

/* SECTION 4: DIVIDER */
.motion-aesthetic-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}
.motion-bar-line {
  flex: 1;
  height: 1px;
  background: var(--joint-border-color);
}
.motion-bar-icon {
  color: var(--joint-brand);
  opacity: 0.5;
}

/* SECTION 5: FEATURES */
.joint-prevent-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.joint-prevent-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--joint-brand);
  margin-bottom: 4rem;
}
@media (max-width: 768px) {
  .joint-prevent-title {
    font-size: 1.85rem;
  }
}
.joint-prevent-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.joint-prevent-card {
  position: relative;
  background: var(--joint-surface);
  border: 1px solid var(--joint-border-color);
  border-radius: var(--joint-radius);
  padding: 2.5rem;
  overflow: hidden;
  box-shadow: var(--joint-shadow);
  transition: all 0.3s ease;
}
.joint-prevent-card:hover {
  transform: translateY(-4px);
  border-color: var(--joint-brand);
}
.joint-prevent-num {
  position: absolute;
  right: 1.5rem;
  bottom: -1rem;
  font-size: 8rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--joint-brand);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
}
.joint-prevent-content {
  position: relative;
  z-index: 2;
  max-width: 85%;
}
.joint-prevent-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--joint-dark-ink);
  margin-bottom: 0.75rem;
}
.joint-prevent-text {
  color: var(--joint-muted-ink);
  line-height: 1.6;
}

/* SECTION 6: CONTENT SECTION 2 */
.joint-exercise-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.joint-pullquote-block {
  border-left: 6px solid var(--joint-brand);
  border-radius: var(--joint-radius);
  padding: 3rem;
  margin-bottom: 4rem;
}
.joint-pullquote-text {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-style: italic;
  font-weight: 600;
  color: var(--joint-brand);
  line-height: 1.5;
}
@media (max-width: 768px) {
  .joint-pullquote-text {
    font-size: 1.25rem;
  }
}
.joint-exercise-grid {
  display: grid;
  grid-template-columns: 5fr 5fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) {
  .joint-exercise-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
.joint-sub-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.joint-exercise-text p {
  color: var(--joint-muted-ink);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.joint-illustration {
  border-radius: var(--joint-radius);
  box-shadow: var(--joint-shadow);
}

/* SECTION 7: TESTIMONIALS */
.joint-stories-shell {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}
.joint-stories-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
}
.joint-story-card {
  position: relative;
  background: var(--joint-surface);
  border: 1px solid var(--joint-border-color);
  border-radius: var(--joint-radius);
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--joint-shadow);
}
.joint-quote-icon {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--joint-brand);
  opacity: 0.15;
  line-height: 1;
}
.joint-story-text {
  font-size: 1.15rem;
  color: var(--joint-dark-ink);
  line-height: 1.7;
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.joint-story-author {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--joint-brand);
}

/* SECTION 8: FAQ */
.joint-query-shell {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.joint-query-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4rem;
}
.joint-query-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.joint-query-item {
  border-bottom: 1px solid var(--joint-border-color);
  padding-bottom: 2rem;
}
.joint-query-question {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--joint-dark-ink);
  margin-bottom: 0.75rem;
}
.joint-query-answer {
  color: var(--joint-muted-ink);
  font-size: 1rem;
  line-height: 1.6;
}

/* SECTION 9: FORM / ADDRESS */
.motion-feedback-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.motion-feedback-row {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .motion-feedback-row {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}
.motion-address-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.motion-address-sub {
  color: var(--joint-muted-ink);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.motion-address-block {
  font-style: normal;
  border-left: 3px solid var(--joint-brand);
  padding-left: 1.5rem;
}
.motion-address-text {
  font-size: 1.1rem;
  color: var(--joint-dark-ink);
  margin-bottom: 0.5rem;
}
.motion-email-text {
  font-size: 1rem;
  color: var(--joint-brand);
  font-weight: 600;
}
.motion-form-tag {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.motion-form-group {
  position: relative;
}
.motion-form-input, .motion-form-textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--joint-border-color);
  background: transparent;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--joint-dark-ink);
  outline: none;
  transition: border-color 0.3s ease;
}
.motion-form-textarea {
  height: 100px;
  resize: none;
}
.motion-form-input:focus, .motion-form-textarea:focus {
  border-color: var(--joint-brand);
}
.motion-form-label {
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--joint-muted-ink);
  transition: all 0.3s ease;
  pointer-events: none;
}
.motion-form-input:focus ~ .motion-form-label,
.motion-form-input:not(:placeholder-shown) ~ .motion-form-label,
.motion-form-textarea:focus ~ .motion-form-label,
.motion-form-textarea:not(:placeholder-shown) ~ .motion-form-label {
  top: -1.25rem;
  font-size: 0.85rem;
  color: var(--joint-brand);
  font-weight: 600;
}
.motion-form-submit {
  border: none;
  padding: 1.25rem 2.5rem;
  border-radius: var(--joint-radius);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: var(--joint-shadow);
}
.motion-form-submit:hover {
  background: var(--joint-brand-hover) !important;
  transform: translateY(-2px);
}

/* FOOTER */
.joint-footer-area {
  background: var(--joint-dark-ink);
  padding: 4rem 2rem;
}
.joint-footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.joint-footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.joint-footer-links a {
  color: #a3bdae;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}
.joint-footer-links a:hover {
  color: #ffffff;
}
@media (max-width: 768px) {
  .joint-footer-shell {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .joint-footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Image filters based on theme */
footer img[alt="logo"], header img[alt="logo"] { 
  filter: brightness(0) invert(1); 
}