/* CUSTOM PROPERTIES BASED ON ARTICULAR THEME */
:root {
  --articular-bg-dark: #0a0d14;
  --articular-bg-surface: #121825;
  --articular-bg-light: #f3f6fa;
  --articular-accent: #0ea5e9;
  --articular-accent-hover: #0284c7;
  --articular-accent-glow: rgba(14, 165, 233, 0.45);
  --articular-text-dark: #0f172a;
  --articular-text-light: #f1f5f9;
  --articular-text-muted: #94a3b8;
  --articular-radius: 16px;
  --articular-radius-pill: 999px;
  --articular-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --articular-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* RESET & BASIC STYLES */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--articular-text-light);
  background: var(--articular-bg-dark);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* HEADER STYLE (PRESET A - PROFESSIONAL DARK) */
.flexi-joint-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--articular-bg-surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  height: 80px;
}

.flexi-joint-header-container {
  max-width: 1200px;
  width: 90%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.joint-site-logo-symbol {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--articular-accent);
}

.joint-site-logo-symbol svg {
  width: 32px;
  height: 32px;
}

.joint-logo-text-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--articular-text-light);
  letter-spacing: -0.01em;
}

.flexi-joint-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.flexi-joint-nav-anchor {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--articular-text-muted);
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flexi-joint-nav-anchor:hover,
.flexi-joint-nav-anchor.active-nav-link {
  color: var(--articular-text-light);
}

.flexi-joint-nav-anchor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--articular-accent);
  transition: width 0.3s ease;
}

.flexi-joint-nav-anchor:hover::after,
.flexi-joint-nav-anchor.active-nav-link::after {
  width: 100%;
}

/* HAMBURGER FOR MOBILE */
.joint-nav-toggle-chk {
  display: none;
}

.joint-hamburger-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.joint-hamburger-button span {
  width: 25px;
  height: 3px;
  background: var(--articular-text-light);
  transition: all 0.3s ease;
}

/* HEADER SCROLL PROGRESS INDICATOR */
.articular-scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--articular-gradient);
  width: 0%;
  animation: progress-grow linear;
  animation-timeline: scroll();
}

@keyframes progress-grow {
  to { width: 100%; }
}

/* HERO SECTION PRESET A */
.joint-core-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 0 5%;
  overflow: visible;
}

.joint-hero-inner-box {
  max-width: 800px;
  margin-top: -60px;
  z-index: 5;
}

.joint-hero-heading {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--articular-text-light);
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.joint-hero-subtext {
  font-size: 1.2rem;
  color: var(--articular-text-light);
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* PILL BUTTON STYLE */
.articular-action-pill-button {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  border-radius: var(--articular-radius-pill);
  background: var(--articular-gradient);
  color: var(--articular-text-light);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 25px var(--articular-accent-glow);
  transition: all 0.3s ease;
}

.articular-action-pill-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--articular-accent-glow);
  background: var(--articular-accent-hover);
}

/* STAT BAR AT BOTTOM OF HERO (PRESET A) */
.articular-stat-bar-strip {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 90%;
  max-width: 1100px;
  background: var(--articular-bg-surface);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 2rem;
  border-radius: var(--articular-radius);
  box-shadow: 0 15px 45px rgba(0,0,0,0.4);
  z-index: 10;
}

.articular-stat-bar-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.articular-stat-number {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--articular-accent);
}

.articular-stat-label {
  font-size: 0.85rem;
  color: var(--articular-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* CONTENT SEGMENT (ZIGZAG AREAS) */
.joint-zigzag-parent-wrap {
  background: var(--articular-bg-light);
  color: var(--articular-text-dark);
  padding: 18dvh 0 10dvh 0; /* extra top padding to offset the floating stat-bar */
}

.joint-zigzag-row {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto 10dvh auto;
  display: flex;
  align-items: center;
  gap: 5rem;
}

.joint-zigzag-row:last-child {
  margin-bottom: 0;
}

.joint-zigzag-row.reverse-row {
  flex-direction: row-reverse;
}

.joint-zigzag-image-holder {
  flex: 1;
  border-radius: var(--articular-radius);
  overflow: hidden;
  box-shadow: var(--articular-shadow);
  height: 420px;
}

.joint-zigzag-image-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.joint-zigzag-content-holder {
  flex: 1;
}

.joint-sup-label {
  display: inline-block;
  color: var(--articular-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 850;
  margin-bottom: 0.75rem;
}

.joint-zigzag-content-holder h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--articular-text-dark);
}

.joint-zigzag-content-holder p {
  margin-bottom: 1.25rem;
  color: #475569;
}

.joint-zigzag-content-holder p:last-child {
  margin-bottom: 0;
}

/* FEATURES SECTION (3-4 COLUMN CARDS IN A GRID) */
.flex-joint-features-area {
  background: var(--articular-bg-light);
  color: var(--articular-text-dark);
  padding: 10dvh 0;
}

.features-header-wrapper {
  max-width: 700px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.features-header-wrapper h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.features-header-wrapper p {
  color: #475569;
}

.biotension-features-grid {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.flex-joint-feature-item {
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--articular-radius);
  box-shadow: var(--articular-shadow);
  border-left: 4px solid var(--articular-accent);
  transition: all 0.35s ease;
}

.flex-joint-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.joint-feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.joint-feature-head svg {
  width: 32px;
  height: 32px;
  color: var(--articular-accent);
}

.joint-feature-head h3 {
  font-size: 1.35rem;
}

.flex-joint-feature-item p {
  color: #475569;
  font-size: 0.95rem;
}

/* "HOW IT WORKS" VERTICAL TIMELINE DESIGN */
.joint-vertical-timeline-track {
  background: #ffffff;
  color: var(--articular-text-dark);
  padding: 10dvh 0;
}

.joint-timeline-parent {
  max-width: 850px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}

.joint-timeline-vertical-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e2e8f0;
  transform: translateX(-50%);
}

.joint-timeline-node {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4.5rem;
}

.joint-timeline-node:last-child {
  margin-bottom: 0;
}

.joint-timeline-node:nth-child(even) {
  flex-direction: row-reverse;
}

.joint-timeline-badge {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--articular-gradient);
  color: var(--articular-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
}

.joint-timeline-content-panel {
  width: 44%;
  background: var(--articular-bg-light);
  padding: 2rem;
  border-radius: var(--articular-radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.joint-timeline-content-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.joint-timeline-content-panel p {
  font-size: 0.95rem;
  color: #475569;
}

/* CTA STRIP (BG + ACCENT) */
.joint-cta-strip-panel {
  padding: 12dvh 5%;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.joint-cta-inner-layout {
  max-width: 750px;
  margin: 0 auto;
}

.joint-cta-inner-layout h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.joint-cta-inner-layout p {
  opacity: 0.9;
  font-weight: 300;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
}

/* RESERVE FORM ELEMENT DESIGNS */
.articular-booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.articular-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.articular-form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--articular-text-dark);
}

.articular-form-group input,
.articular-form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--articular-text-dark);
  transition: all 0.3s ease;
}

.articular-form-group input:focus,
.articular-form-group textarea:focus {
  outline: none;
  border-color: var(--articular-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.articular-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.articular-form-checkbox input {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
}

.articular-form-checkbox label {
  font-size: 0.85rem;
  color: #475569;
  line-height: normal;
}

.articular-form-checkbox label a {
  color: var(--articular-accent);
  font-weight: 600;
}

.articular-clickable-email {
  font-weight: 600;
  color: var(--articular-accent);
  font-size: 1rem;
}

.articular-clickable-email:hover {
  text-decoration: underline;
}

/* RESERVE INFO STEPS CARDS */
.articular-info-step-card {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--articular-radius);
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.articular-info-step-card:last-child {
  margin-bottom: 0;
}

.articular-info-step-num {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--articular-bg-light);
  color: var(--articular-accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

/* FAQ ACCORDION (CSS ONLY) */
.articular-faq-accordion-container {
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.articular-faq-item {
  background: var(--articular-bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.articular-faq-item input[type="radio"] {
  display: none;
}

.articular-faq-trigger {
  display: block;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  background: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.articular-faq-trigger::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--articular-accent);
  transition: transform 0.3s ease;
}

.articular-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.5rem;
  color: #475569;
}

.articular-faq-content p {
  padding-bottom: 1.5rem;
}

.articular-faq-item input[type="radio"]:checked + .articular-faq-trigger {
  background: var(--articular-bg-light);
}

.articular-faq-item input[type="radio"]:checked + .articular-faq-trigger::after {
  transform: translateY(-50%) rotate(45deg);
}

.articular-faq-item input[type="radio"]:checked ~ .articular-faq-content {
  max-height: 500px;
  transition: max-height 0.4s ease-in-out;
}

/* COOKIE BANNER STYLE */
.articular-cookie-banner-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--articular-bg-surface);
  border-top: 3px solid var(--articular-accent);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  z-index: 9999;
  display: none;
  padding: 1.5rem 0;
}

.articular-cookie-banner-box {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.articular-cookie-banner-box p {
  font-size: 0.9rem;
  color: var(--articular-text-light);
}

.articular-cookie-banner-box p a {
  color: var(--articular-accent);
  text-decoration: underline;
}

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

.articular-cookie-btn-main {
  background: var(--articular-gradient);
  border: none;
  padding: 0.6rem 1.5rem;
  color: #fff;
  border-radius: var(--articular-radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.articular-cookie-btn-alt {
  background: transparent;
  border: 1px solid var(--articular-text-muted);
  padding: 0.6rem 1.5rem;
  color: var(--articular-text-muted);
  border-radius: var(--articular-radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

/* LEGAL PAGES */
.articular-legal-page-container {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
}

.articular-legal-page-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.articular-legal-page-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.articular-legal-page-container p {
  color: #475569;
  margin-bottom: 1rem;
}

.articular-legal-page-container ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  color: #475569;
}

/* THANK YOU EXTRAS */
.articular-thank-parent-box {
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2.5rem;
  border-radius: var(--articular-radius);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--articular-shadow);
}

.articular-thank-inner {
  text-align: center;
}

.articular-thank-icon-sphere {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--articular-accent-glow);
  color: var(--articular-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.articular-thank-icon-sphere svg {
  width: 45px;
  height: 45px;
}

/* FOOTER STYLINGS */
.joint-site-footer-base {
  background: var(--articular-bg-dark);
  color: var(--articular-text-light);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10dvh 5% 4dvh;
}

.joint-site-footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-col-about p {
  color: var(--articular-text-muted);
  font-size: 0.95rem;
}

.joint-site-footer-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--articular-text-light);
  position: relative;
  padding-bottom: 0.5rem;
}

.joint-site-footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--articular-accent);
}

.footer-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-stack a {
  font-size: 0.9rem;
  color: var(--articular-text-muted);
}

.footer-nav-stack a:hover {
  color: var(--articular-text-light);
  transform: translateX(3px);
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 4rem auto 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--articular-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--articular-text-muted);
}

/* SCROLL-DRIVEN ENTRANCE ANIMATIONS */
.joint-reveal-item {
  animation: slide-up linear both;
  animation-timeline: view();
  animation-range: entry 5% cover 30%;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVENESS AND MOBILE ADAPTIVE STYLES */
@media (max-width: 1024px) {
  .joint-hero-heading {
    font-size: 2.8rem;
  }
  .articular-stat-bar-strip {
    grid-template-columns: repeat(2, 1fr);
    transform: translate(-50%, 20%);
  }
  .joint-zigzag-parent-wrap {
    padding-top: 28dvh;
  }
}

@media (max-width: 768px) {
  .flexi-joint-header-container {
    padding: 0;
  }
  
  /* MOBILE HAMBURGER TOGGLE ACTIONS */
  .joint-hamburger-button {
    display: flex;
  }

  .flexi-joint-nav-list {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--articular-bg-surface);
    flex-direction: column;
    padding-top: 3rem;
    gap: 2rem;
    transition: left 0.4s ease;
    z-index: 1000;
  }

  .joint-nav-toggle-chk:checked ~ .flexi-joint-nav-list {
    left: 0;
  }

  .joint-nav-toggle-chk:checked ~ .joint-hamburger-button span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .joint-nav-toggle-chk:checked ~ .joint-hamburger-button span:nth-child(2) {
    opacity: 0;
  }

  .joint-nav-toggle-chk:checked ~ .joint-hamburger-button span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* LOWER VIEWPORT STAT BAR RESET FOR MOBILE FLOW */
  .joint-core-hero {
    height: auto;
    padding: 100px 5% 150px;
  }

  .joint-hero-inner-box {
    margin-top: 0;
  }

  .articular-stat-bar-strip {
    grid-template-columns: repeat(2, 1fr);
    position: relative;
    width: 100%;
    transform: none;
    left: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .joint-zigzag-parent-wrap {
    padding-top: 6dvh;
  }

  .joint-zigzag-row {
    flex-direction: column !important;
    gap: 2rem;
  }

  .joint-zigzag-image-holder {
    height: 300px;
    width: 100%;
    clip-path: none !important;
  }

  .biotension-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flex-joint-feature-item {
    padding: 2rem;
  }

  /* TIMELINE REORGANIZATION ON MOBILE SECTIONS */
  .joint-timeline-vertical-line {
    left: 20px;
  }

  .joint-timeline-node {
    flex-direction: column !important;
    padding-left: 50px;
    margin-bottom: 3rem;
  }

  .joint-timeline-badge {
    left: 20px;
    top: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .joint-timeline-content-panel {
    width: 100%;
    padding: 1.5rem;
  }

  .joint-site-footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .articular-cookie-banner-box {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}