/* ==========================================================================
   Dave Schrader Biomechanics — Shared Clinical Light Mode Stylesheet
   Used by: index.html & testimonials-gallery.html
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-soft: #e0f2fe;
  --before-color: #dc2626;
  --before-bg: #fef2f2;
  --after-color: #059669;
  --after-bg: #ecfdf5;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.07);
  --max-w: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --- LAYOUT & CONTAINERS --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 700px;
  margin-bottom: 2.75rem;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}

.section-header-row .section-header {
  margin-bottom: 0;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* --- NAVIGATION --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* --- SHARED META & TAGS --- */
.timeframe {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* --- SHARED BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--text-secondary);
}

.btn-block {
  width: 100%;
}

/* --- HERO SECTIONS --- */
.hero {
  padding: 6rem 0 6.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.35rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.15rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-meta-strip strong {
  color: var(--text);
  font-weight: 600;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface-muted);
  aspect-ratio: 4 / 3.3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Page header variant (used on Testimonials Gallery) */
.page-hero {
  padding: 3.5rem 0 2.75rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- SHARED CARDS & GRIDS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card-media {
  height: 210px;
  overflow: hidden;
  position: relative;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* --- SHARED BEFORE / AFTER COMPARISON BOX --- */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-alt);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.83rem;
}

.comp-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.comp-before h4 {
  color: var(--before-color);
}

.comp-after h4 {
  color: var(--after-color);
}

.comp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--text-secondary);
}

.comp-col li {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  line-height: 1.38;
}

/* --- QUOTES & READ MORE --- */
.quote-box {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.62;
  white-space: pre-line;
}

.quote-box.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  padding: 0.15rem 0;
}

.read-more-btn:hover {
  text-decoration: underline;
}

/* --- CAROUSEL & THUMBNAILS (TESTIMONIALS GALLERY) --- */
.carousel {
  position: relative;
  background: var(--surface-muted);
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  user-select: none;
  border-bottom: 1px solid var(--border);
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--border-strong);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.carousel-nav:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}

.thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.thumbs img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.thumbs img.active {
  opacity: 1;
  border-color: var(--accent);
}

/* --- FILTER BAR --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.filter-btn {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 4.2;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.profile-card-body {
  padding: 1.5rem;
}

.profile-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.profile-role {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.about-copy p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 1.15rem;
  line-height: 1.7;
}

.about-copy p strong {
  color: var(--text);
  font-weight: 600;
}

.callout-box {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.96rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* --- FEATURED STEP 1 BANNER --- */
.feature-banner {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.feature-banner-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-banner-content h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.feature-banner-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1rem;
  margin-bottom: 1.65rem;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checklist li::before {
  content: "✓";
  color: var(--after-color);
  font-weight: 800;
  margin-right: 0.45rem;
}

.feature-banner-media {
  min-height: 300px;
  background: var(--surface-muted);
  border-left: 1px solid var(--border);
}

.feature-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

/* --- ENQUIRY / BOOKING SECTION --- */
.enquiry-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
  box-shadow: var(--shadow-sm);
}

.enquiry-info h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.enquiry-info p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}

.delivery-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.delivery-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.delivery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.enquiry-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  text-overflow: ellipsis;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.25rem;
}

.form-toast {
  display: none;
  grid-column: 1 / -1;
  background: var(--after-bg);
  border: 1px solid #a7f3d0;
  color: var(--after-color);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

/* --- FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 960px) {
  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .hero-grid,
  .about-grid,
  .feature-banner,
  .enquiry-card,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-media {
    order: -1;
  }

  .feature-banner-media {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .nav-links {
    display: none;
  }

  .enquiry-card {
    padding: 1.75rem 1.25rem;
  }

  .enquiry-form,
  .checklist {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

