/* style.css - CSS Variables & System Styles */

:root {
  --biomech-cream-bg: #fdfcf7;
  --biomech-forest-dark: #142b22;
  --biomech-clay-accent: #cf7a53;
  --biomech-moss-medium: #2a4d3e;
  --biomech-slate-charcoal: #1e221f;
  --biomech-bone-wash: #f3f0e4;
  --biomech-border-separator: #dfdad0;
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  --spacing-compact: 6dvh;
  --spacing-normal: 10dvh;
  --spacing-spacious: 16dvh;
  
  --radius-soft: 14px;
}

/* Base resets & typography scale */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--biomech-cream-bg);
  color: var(--biomech-slate-charcoal);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--biomech-forest-dark);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Scroll-driven Progress Indicator */
.biomech-scroll-gauge {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: var(--biomech-clay-accent);
  z-index: 10001;
  animation: biomech-gauge-expand linear;
  animation-timeline: scroll();
}

@keyframes biomech-gauge-expand {
  to { width: 100%; }
}

/* Custom Header Bar - Preset H Style (Asymmetric, bold) */
.biomech-top-mast {
  background-color: var(--biomech-cream-bg);
  border-bottom: 1px solid var(--biomech-border-separator);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
}

.biomech-top-mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.biomech-anchor-brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--biomech-forest-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.03em;
}

.biomech-anchor-brand svg {
  fill: var(--biomech-clay-accent);
  width: 32px;
  height: 32px;
}

/* CSS-only responsive navigation */
.biomech-nav-trigger {
  display: none;
}

.biomech-burger-icon {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
}

.biomech-burger-icon span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--biomech-forest-dark);
  transition: 0.3s ease;
}

.biomech-deck-nav {
  display: flex;
  gap: 2.5rem;
}

.biomech-deck-nav-item {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--biomech-moss-medium);
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

.biomech-deck-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--biomech-clay-accent);
  transition: width 0.3s ease;
}

.biomech-deck-nav-item:hover::after,
.biomech-deck-nav-item.is-active::after {
  width: 100%;
}

.biomech-deck-nav-item:hover {
  color: var(--biomech-forest-dark);
}

/* Layout shell wrapper */
.biomech-shell {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Preset H: Word-by-Word Hero Layout for index.html */
.joint-typog-hero-wrap {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: var(--spacing-spacious) 0;
  border-bottom: 1px solid var(--biomech-border-separator);
}

.joint-hero-bg-dim {
  position: absolute;
  inset: 0;
  background-image: url('img/bg.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
}

.joint-typog-hero {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.joint-word-line {
  display: block;
}

.joint-word-line.align-left {
  text-align: left;
}

.joint-word-line.align-right {
  text-align: right;
  color: var(--biomech-clay-accent);
}

.joint-word-line.align-center {
  text-align: center;
}

.joint-word-line.italic-decor {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.joint-hero-sub-block {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: 10%;
}

.joint-hero-desc {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--biomech-moss-medium);
  margin-bottom: 2rem;
}

/* Preset H Buttons */
.biomech-solid-trigger {
  display: inline-block;
  background-color: var(--biomech-forest-dark);
  color: var(--biomech-cream-bg);
  padding: 1.2rem 2.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-soft);
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(20, 43, 34, 0.15);
}

.biomech-solid-trigger:hover {
  background-color: var(--biomech-clay-accent);
  transform: translateY(-2px);
}

/* Preset H: 3-Column Text Masonry */
.columns-trio-space {
  padding: var(--spacing-spacious) 0;
  border-bottom: 1px solid var(--biomech-border-separator);
}

.columns-trio-head {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 4rem;
  max-width: 800px;
}

.columns-trio {
  column-count: 3;
  column-gap: 4rem;
  column-rule: 1px solid var(--biomech-border-separator);
}

@media (max-width: 992px) {
  .columns-trio {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .columns-trio {
    column-count: 1;
  }
}

.column-item {
  break-inside: avoid;
  margin-bottom: 2.5rem;
}

.column-item-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--biomech-clay-accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.column-item-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.column-item-lead {
  font-size: 1.05rem;
  color: var(--biomech-slate-charcoal);
}

/* Full Width Strip with bg2.webp and Overlay */
.editorial-image-banner {
  height: 50vh;
  position: relative;
  background-image: url('img/bg2.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.editorial-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 43, 34, 0.95) 0%, rgba(20, 43, 34, 0.4) 100%);
}

.editorial-image-content {
  position: relative;
  z-index: 2;
  color: var(--biomech-cream-bg);
  max-width: 650px;
  padding: 0 2rem;
}

.editorial-image-content h2 {
  color: var(--biomech-cream-bg);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1rem;
}

/* Preset H: Inline Manifesto Lines */
.manifesto-stripes-space {
  padding: var(--spacing-spacious) 0;
}

.manifesto-stripes-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 4rem;
}

.manifesto-stripes {
  display: flex;
  flex-direction: column;
}

.manifesto-row {
  display: flex;
  align-items: baseline;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--biomech-border-separator);
  gap: 3rem;
}

.manifesto-row:last-child {
  border-bottom: none;
}

.manifesto-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--biomech-clay-accent);
  flex-shrink: 0;
}

.manifesto-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.manifesto-text-bold {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.manifesto-desc {
  font-size: 1.1rem;
  color: var(--biomech-slate-charcoal);
}

@media (max-width: 768px) {
  .manifesto-row {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
  }
}

/* Preset H: Rotated Step Numbers Steps Block */
.asym-step-space {
  padding: var(--spacing-spacious) 0;
  background-color: var(--biomech-bone-wash);
}

.asym-step-head {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 5rem;
  text-align: center;
}

.asym-step-panel {
  display: flex;
  gap: 4rem;
  justify-content: space-between;
}

.asym-step-card {
  position: relative;
  flex: 1;
  padding-top: 4rem;
}

.rotated-digit-bg {
  position: absolute;
  top: -1.5rem;
  left: -1rem;
  font-size: 9rem;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  color: var(--biomech-clay-accent);
  opacity: 0.15;
  transform: rotate(-12deg);
  user-select: none;
  pointer-events: none;
}

.asym-card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.asym-card-desc {
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
  color: var(--biomech-slate-charcoal);
}

@media (max-width: 992px) {
  .asym-step-panel {
    flex-direction: column;
    gap: 5rem;
  }
  .asym-step-card {
    padding-top: 2rem;
  }
}

/* Asymmetric CTA Strip with Ghost Button */
.biomech-action-banner {
  background-color: var(--biomech-forest-dark);
  color: var(--biomech-cream-bg);
  padding: 8vh 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin: var(--spacing-normal) 0;
  border-radius: var(--radius-soft);
}

.biomech-banner-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 65%;
  color: var(--biomech-cream-bg);
}

.biomech-ghost-trigger {
  display: inline-block;
  border: 2px solid var(--biomech-cream-bg);
  color: var(--biomech-cream-bg);
  padding: 1.2rem 2.8rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
  border-radius: var(--radius-soft);
  flex-shrink: 0;
}

.biomech-ghost-trigger:hover {
  background-color: var(--biomech-cream-bg);
  color: var(--biomech-forest-dark);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .biomech-action-banner {
    flex-direction: column;
    text-align: center;
    padding: 4rem 2rem;
  }
  .biomech-banner-title {
    max-width: 100%;
  }
}

/* EXPERT PAGE STYLES */
.expert-bio-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: var(--spacing-spacious) 0;
  border-bottom: 1px solid var(--biomech-border-separator);
}

.expert-bio-photo {
  flex: 1;
  min-width: 300px;
}

.expert-bio-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-soft);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.expert-bio-text {
  flex: 1.2;
}

.expert-bio-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.capital-letter::first-letter {
  font-size: 4rem;
  float: left;
  line-height: 0.9;
  padding-right: 0.65rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--biomech-clay-accent);
}

@media (max-width: 992px) {
  .expert-bio-split {
    flex-direction: column;
  }
}

/* Plain Text Stats (Preset H Style - no boxes) */
.plain-stats-deck {
  padding: var(--spacing-normal) 0;
  border-bottom: 1px solid var(--biomech-border-separator);
}

.plain-stats-grid {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.plain-stat-item {
  flex: 1;
  min-width: 200px;
}

.plain-stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--biomech-forest-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.plain-stat-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--biomech-moss-medium);
  letter-spacing: 0.1em;
}

/* RESERVE PAGE STYLES */
.reserve-form-block {
  padding: var(--spacing-spacious) 0;
}

.reserve-typog-heading {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  margin-bottom: 4rem;
  text-align: center;
}

.reserve-split-layout {
  display: flex;
  gap: 5rem;
}

.reserve-info-column {
  flex: 1;
}

.reserve-info-card {
  margin-bottom: 3rem;
}

.reserve-info-card h3 {
  font-size: 1.5rem;
  color: var(--biomech-forest-dark);
  margin-bottom: 1rem;
}

.reserve-info-list {
  list-style: none;
  margin-top: 1rem;
}

.reserve-info-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.reserve-info-list li::before {
  content: "•";
  color: var(--biomech-clay-accent);
  font-size: 1.8rem;
  position: absolute;
  left: 0.5rem;
  top: -0.3rem;
}

.reserve-form-column {
  flex: 1.2;
}

/* Preset H: Underline-only Fields */
.reserve-asym-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.reserve-field-group {
  display: flex;
  flex-direction: column;
}

.reserve-field-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--biomech-moss-medium);
}

.reserve-input-line {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--biomech-border-separator);
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--biomech-slate-charcoal);
  transition: border-bottom-color 0.3s;
}

.reserve-input-line:focus {
  outline: none;
  border-bottom-color: var(--biomech-clay-accent);
}

.reserve-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.reserve-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--biomech-clay-accent);
  margin-top: 0.2rem;
}

.reserve-checkbox-row label {
  font-size: 0.95rem;
  color: var(--biomech-slate-charcoal);
}

.reserve-checkbox-row a {
  color: var(--biomech-clay-accent);
  text-decoration: underline;
}

@media (max-width: 992px) {
  .reserve-split-layout {
    flex-direction: column-reverse;
    gap: 4rem;
  }
}

/* FAQ Accordion - All Open Style CSS Only */
.faq-space {
  padding: var(--spacing-spacious) 0;
}

.faq-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.accordion-faq-deck {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq-plain-item {
  border-bottom: 1px solid var(--biomech-border-separator);
  padding-bottom: 2rem;
}

.faq-plain-question {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--biomech-forest-dark);
  margin-bottom: 1rem;
  text-transform: none;
}

.faq-plain-answer {
  font-size: 1.05rem;
  color: var(--biomech-slate-charcoal);
}

/* STATIC LEGAL PAGES STYLE */
.legal-page-body {
  padding: var(--spacing-normal) 0;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
}

.legal-content-wrap {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-content-wrap h2 {
  font-size: 1.6rem;
  margin-top: 1.5rem;
  text-transform: none;
}

.legal-content-wrap p {
  color: var(--biomech-slate-charcoal);
  font-size: 1.05rem;
}

/* THANK YOU PAGE STYLES */
.thank-frame {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-spacious) 0;
}

.thank-content-box {
  max-width: 650px;
}

.thank-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--biomech-forest-dark);
  margin-bottom: 1.5rem;
}

.thank-text {
  font-size: 1.25rem;
  color: var(--biomech-moss-medium);
  margin-bottom: 3rem;
}

.thank-visual-panel {
  margin: 3rem 0;
}

.thank-visual-panel img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-soft);
}

/* FOOTER SECTION */
.biomech-tail-deck {
  background-color: var(--biomech-forest-dark);
  color: var(--biomech-cream-bg);
  padding: 6rem 2rem 4rem;
}

.biomech-tail-deck-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.biomech-tail-grid {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  gap: 3rem;
}

.biomech-tail-col-brand {
  flex: 1.5;
}

.biomech-tail-brand-icon {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--biomech-cream-bg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.biomech-tail-brand-icon svg {
  fill: var(--biomech-clay-accent);
  width: 28px;
  height: 28px;
}

.biomech-tail-desc {
  opacity: 0.75;
  font-size: 1rem;
  max-width: 350px;
}

.biomech-tail-col-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.biomech-tail-link-head {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--biomech-clay-accent);
  margin-bottom: 0.5rem;
}

.biomech-tail-link {
  font-size: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.biomech-tail-link:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .biomech-tail-grid {
    flex-direction: column;
    gap: 3rem;
  }
}

.biomech-disclaimer-note {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.5;
  margin-top: 3rem;
}

.biomech-tail-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

@media (max-width: 576px) {
  .biomech-tail-sub-bar {
    flex-direction: column-reverse;
    gap: 1rem;
    text-align: center;
  }
}

/* COOKIE CONSENT BOX - index.html only */
.biomech-cookie-plate {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--biomech-bone-wash);
  border-top: 2px solid var(--biomech-border-separator);
  padding: 1.5rem 2rem;
  z-index: 9999;
  display: none;
}

.biomech-cookie-plate-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.biomech-cookie-text {
  font-size: 0.95rem;
  color: var(--biomech-slate-charcoal);
  max-width: 800px;
}

.biomech-cookie-buttons {
  display: flex;
  gap: 1rem;
}

.biomech-cookie-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-soft);
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.biomech-cookie-btn.accept {
  background-color: var(--biomech-forest-dark);
  color: var(--biomech-cream-bg);
}

.biomech-cookie-btn.accept:hover {
  background-color: var(--biomech-clay-accent);
}

.biomech-cookie-btn.decline {
  background-color: transparent;
  color: var(--biomech-slate-charcoal);
  border: 1px solid var(--biomech-border-separator);
}

.biomech-cookie-btn.decline:hover {
  background-color: rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .biomech-cookie-plate-inner {
    flex-direction: column;
    text-align: center;
  }
  .biomech-cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive navigation visibility mechanism */
@media (max-width: 992px) {
  .biomech-burger-icon {
    display: flex;
  }
  
  .biomech-deck-nav {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--biomech-cream-bg);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2rem;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    z-index: 1001;
  }
  
  .biomech-deck-nav-item {
    font-size: 1.5rem;
  }
  
  .biomech-nav-trigger:checked ~ .biomech-deck-nav {
    left: 0;
  }
  
  .biomech-nav-trigger:checked ~ .biomech-burger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .biomech-nav-trigger:checked ~ .biomech-burger-icon span:nth-child(2) {
    opacity: 0;
  }
  
  .biomech-nav-trigger:checked ~ .biomech-burger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
}