/* Custom Theme Variables Setup for Healthy Lifestyle Joint Care */
:root {
  --sendi-bg: #f4f8f6;            /* Soft clean mint tint */
  --sendi-surface: #ffffff;       /* Solid crisp white background */
  --sendi-accent: #10b981;        /* Vibrant dynamic emerald green */
  --sendi-accent-hover: #059669;  /* Darker deep green for interactions */
  --sendi-primary: #0f172a;       /* Dark slate navy for readable text & headers */
  --sendi-text: #334155;          /* Muted body text grey */
  --sendi-text-light: #ffffff;    /* Light text color contrast code */
  
  --sendi-gradient-hero: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  --sendi-gradient-cta: linear-gradient(135deg, #10b981 0%, #0284c7 100%);
  
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Global Reset & Base Styling */
html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--sendi-primary);
}

/* Header Options Trigger Mechanics */
#sendi-menu-trigger:checked ~ .sendi-top-nav {
  display: flex !important;
}

/* Scroll-Driven Page Progress Animation */
@keyframes progress-grow {
  to { width: 100%; }
}

.sendi-scroll-progress {
  height: 4px;
  background: var(--sendi-accent);
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  animation: progress-grow linear;
  animation-timeline: scroll();
}

/* Scroll-Driven Section Reveal Animations (view-timeline) */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sendi-reveal {
  animation: slide-up both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

/* Header Responsiveness Overrides */
@media (max-width: 1023px) {
  .sendi-top-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--sendi-surface);
    flex-direction: column;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  }
  
  .sendi-top-nav ul {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100%;
  }

  .sendi-top-nav ul li {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .sendi-top-nav ul li a {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
  }
}

/* Masonry Layout for Testimonials Section */
.sendi-masonry-board {
  column-count: 1;
}

@media (min-width: 768px) {
  .sendi-masonry-board {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .sendi-masonry-board {
    column-count: 3;
  }
}

/* Focus and Active States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sendi-accent);
  outline-offset: 2px;
}

/* Hover & Transition Modifiers */
.sendi-hero-action:hover,
.sendi-cta-btn:hover {
  background-color: var(--sendi-accent-hover) !important;
  color: var(--sendi-text-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.sendi-nav-link:hover {
  color: var(--sendi-accent) !important;
}

.sendi-row-item:hover {
  background-color: rgba(16, 185, 129, 0.03);
}