/* ═══════════════════════════════════════════════
   Kinetic O&P — Shared Stylesheet
   Brand: #EC1C26 (Red) + #1A1A1A (Black)
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #EC1C26;
  --red-light: #EF424A;
  --red-dark: #C61019;
  --red-tint: #FDE7E8;
  --black: #1A1A1A;
  --dark-gray: #2D2D2D;
  --medium-gray: #555;
  --light-gray: #f5f5f5;
  --border-gray: #e0e0e0;
  --white: #ffffff;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--black);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Typography ─── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-heading {
  margin-bottom: 16px;
  color: var(--black);
}

.section-desc {
  font-size: 17px;
  color: var(--medium-gray);
  max-width: 680px;
  line-height: 1.8;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  touch-action: manipulation;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236,28,38,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}

/* ─── Navigation ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 var(--border-gray);
  transition: var(--transition);
}
.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}
.nav-phone svg { width: 16px; height: 16px; }

.nav-facebook {
  display: flex;
  align-items: center;
  color: #1877F2;
  transition: var(--transition);
}
.nav-facebook:hover {
  color: #0d5bbf;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 13px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

/* ─── Hero Sections ─── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(236,28,38,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero .hero-subtitle {
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page header (non-home pages) */
.page-header {
  margin-top: var(--nav-height);
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  color: var(--white);
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.page-header .breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.page-header .breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.page-header .breadcrumb a:hover { color: var(--white); }
.page-header .red-line {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 20px auto 0;
}

/* ─── Sections ─── */
.section {
  padding: 100px 0;
}
.section.gray-bg {
  background: var(--light-gray);
}
.section.dark-bg {
  background: var(--black);
  color: var(--white);
}
.section.dark-bg .section-label { color: var(--red-light); }
.section.dark-bg .section-heading { color: var(--white); }
.section.dark-bg .section-desc { color: rgba(255,255,255,0.7); }

.section.red-bg {
  background: var(--red);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc {
  margin: 0 auto;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-img {
  background: var(--light-gray);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  margin-bottom: 12px;
}
.card-body p {
  color: var(--medium-gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.card-link:hover {
  gap: 10px;
}

/* ─── Stats Bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 48px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
}
.dark-bg .stat-number { color: var(--red-light); }
.dark-bg .stat-label { color: #ffffff; }

.stat-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ─── Testimonial ─── */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--red-tint);
  position: absolute;
  top: -10px;
  left: 24px;
  line-height: 1;
}
.testimonial-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
}


/* --- Testimonial Photo (home page) --- */
.testimonial-card--home {
  text-align: center;
  position: relative;
  margin-top: 50px;
}
.testimonial-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: -50px;
  left: 24px;
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* ─── Riverside Clinic Banner ─── */
.riverside-banner {
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.riverside-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236,28,38,0.15), transparent);
  border-radius: 50%;
}
.riverside-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.riverside-info h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.riverside-info p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.riverside-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.riverside-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.riverside-detail .icon {
  width: 40px;
  height: 40px;
  background: rgba(236,28,38,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
  font-size: 18px;
  flex-shrink: 0;
}
.riverside-detail .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.riverside-detail .value {
  font-weight: 600;
  font-size: 15px;
}

/* ─── Team Grid ─── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team-member {
  text-align: center;
}
.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--light-gray);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border-gray);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-title {
  font-size: 14px;
  color: var(--red);
  font-weight: 500;
}

/* ─── FAQ Accordion ─── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border-gray);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--red); }
.faq-question .icon {
  font-size: 24px;
  color: var(--red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}
.faq-answer p {
  color: var(--medium-gray);
  font-size: 15px;
  line-height: 1.8;
}

/* ─── Contact Form ─── */
.contact-form {
  max-width: 600px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}
.required-star {
  color: #d94350 !important;
  font-weight: 400;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-gray);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--black);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--light-gray);
  color: var(--dark-gray);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-gray);
}
.footer-brand p {
  color: var(--medium-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 320px;
}
.footer-brand img {
  height: 45px;
}
.footer-logo-dark { display: none; }
.footer-logo-light { display: block; mix-blend-mode: multiply; }
[data-theme="dark"] .footer-logo-dark { display: block; mix-blend-mode: lighten; }
[data-theme="dark"] .footer-logo-light { display: none; }
.footer-col h4 {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: var(--black);
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: var(--medium-gray);
  font-size: 14px;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--red);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--medium-gray);
  font-size: 14px;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--medium-gray);
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ─── Image Placeholder ─── */
.img-placeholder {
  background: var(--light-gray);
  border: 2px dashed var(--border-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 968px) {
  /* mobile menu */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 1px solid var(--border-gray);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-gray);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }

  .hero { min-height: 70vh; }
  .hero-content { padding: 60px 24px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); }

  .riverside-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-phone { font-size: 0; gap: 0; }
  .nav-phone svg { width: 22px; height: 22px; }
  .nav-toggle { padding: 10px; }
  .form-card { padding: 24px 20px; }
  .testimonial-card--home { margin-top: 16px; }
  .testimonial-photo { position: static; display: block; margin: 0 auto 20px; width: 100px; height: 100px; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .stats-bar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .riverside-details { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
  .testimonial-card { padding: 32px 20px; }
  .form-card { padding: 20px 16px; }
}

/* ─── Dark Mode ─── */
[data-theme="dark"] {
  --white: #1e1e20;
  --black: #ececec;
  --dark-gray: #d0d0d0;
  --medium-gray: #909090;
  --light-gray: #26262a;
  --border-gray: #383838;
  --red-tint: rgba(236, 28, 38, 0.18);
}

/* Dark sections stay properly dark (--black inverts in dark mode, so override) */
[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #0d0d0f 0%, #1a1a1e 100%);
  color: #fff;
}
[data-theme="dark"] .section.dark-bg {
  background: #0d0d0f;
}
[data-theme="dark"] .site-footer {
  background: #0d0d0f;
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .footer-grid {
  border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .footer-col a,
[data-theme="dark"] .footer-contact-item {
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .footer-col a:hover {
  color: var(--red-light);
}
[data-theme="dark"] .footer-brand p {
  color: rgba(255,255,255,0.6);
}
[data-theme="dark"] .riverside-banner {
  background: linear-gradient(135deg, #0d0d0f 0%, #1a1a1e 100%);
}

/* Nav adjustments */
[data-theme="dark"] .site-nav {
  box-shadow: 0 1px 0 var(--border-gray);
}
[data-theme="dark"] .site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
[data-theme="dark"] .nav-links {
  background: var(--white);
  border-top-color: var(--border-gray);
}
[data-theme="dark"] .nav-links a {
  border-bottom-color: var(--border-gray);
}

/* Buttons in dark sections — keep them visually white/light */
[data-theme="dark"] .btn-white {
  background: rgba(255,255,255,0.92);
  color: #1a1a1a;
  border-color: rgba(255,255,255,0.92);
}
[data-theme="dark"] .btn-white:hover {
  background: rgba(255,255,255,0.82);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
[data-theme="dark"] .btn-outline-white {
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.4);
}
[data-theme="dark"] .btn-outline-white:hover {
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
}

/* Softer shadows in dark mode */
[data-theme="dark"] .card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .resource-card {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* FAQ adjustments */
[data-theme="dark"] .faq-item {
  border-bottom-color: var(--border-gray);
}
[data-theme="dark"] .faq-question {
  color: var(--black);
}

/* ─── Dark Mode Toggle Button ─── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--red);
  background: var(--light-gray);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
/* Light mode: show moon (click to go dark) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
/* Dark mode: show sun (click to go light) */
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ─── Dark Mode Extra Readability Fixes ─── */
/* Elevate card surfaces so they stand out from page background */
[data-theme="dark"] .card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .still-questions {
  background: #28282c;
}

/* Insurance logos in dark mode */
[data-theme="dark"] .insurance-logo {
  background: #28282c;
  border-color: var(--border-gray);
  color: #bbb;
}

/* Service list borders: hardcoded #f0f0f0 becomes visible white, tone it down */
[data-theme="dark"] .service-list li,
[data-theme="dark"] .hours-table td {
  border-bottom-color: var(--border-gray);
}

/* FAQ group title border */
[data-theme="dark"] .faq-group-title {
  border-bottom-color: rgba(236,28,38,0.3);
}

/* Contact form success */
[data-theme="dark"] #form-success {
  background: #0f2a1a;
  border-color: #1f5c35;
}
[data-theme="dark"] #form-success p {
  color: #4ade80;
}

/* ─── Dark Mode: Text Visibility Fixes ─────────────────────────────────────
   var(--white) becomes #1e1e20 (dark) in dark mode.
   All elements that use var(--white) as TEXT COLOR on dark/red backgrounds
   need to be explicitly set back to white.
   ─────────────────────────────────────────────────────────────────────── */

/* Catch ALL inline style="color: var(--white)" anywhere on the page */
[data-theme="dark"] [style*="color: var(--white)"] { color: #ffffff !important; }

/* Primary button always white text (on red bg) */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary:hover { color: #ffffff !important; }

/* Step number circles (red bg) */
[data-theme="dark"] .step-number { color: #ffffff !important; }

/* Page header heading */
[data-theme="dark"] .page-header h1 { color: #ffffff !important; }

/* Hero heading */
[data-theme="dark"] .hero h1 { color: #ffffff !important; }

/* Dark-bg section headings */
[data-theme="dark"] .section.dark-bg h1,
[data-theme="dark"] .section.dark-bg h2,
[data-theme="dark"] .section.dark-bg h3 { color: #ffffff !important; }

/* Red-bg sections: headings and paragraphs */
[data-theme="dark"] .section.red-bg h1,
[data-theme="dark"] .section.red-bg h2,
[data-theme="dark"] .section.red-bg h3,
[data-theme="dark"] .section.red-bg p { color: #ffffff !important; }

/* Riverside banner headings and details */
[data-theme="dark"] .riverside-banner h2,
[data-theme="dark"] .riverside-banner h3,
[data-theme="dark"] .riverside-info h2 { color: #ffffff !important; }
[data-theme="dark"] .riverside-detail .value,
[data-theme="dark"] .riverside-detail .value a { color: #ffffff !important; }
[data-theme="dark"] .riverside-detail .icon i,
[data-theme="dark"] .riverside-detail .icon svg { color: #ffffff !important; }

/* Benefit item headings and icons (services page, dark riverside section) */
[data-theme="dark"] .benefit-item h4 { color: #ffffff !important; }
[data-theme="dark"] .benefit-icon i,
[data-theme="dark"] .benefit-icon svg { color: #ffffff !important; }

/* Team pills */
[data-theme="dark"] .team-pill { color: rgba(255,255,255,0.9) !important; }

/* Footer column headings */
[data-theme="dark"] .footer-col h4 { color: #ffffff !important; }
[data-theme="dark"] .footer-bottom span { color: rgba(255,255,255,0.4) !important; }

/* Nav toggle hamburger bars stay visible */
[data-theme="dark"] .nav-toggle span { background: var(--black); }

/* ─── Logos: dark mode adjustments ─── */
[data-theme="dark"] .footer-brand img,
[data-theme="dark"] .nav-logo img {
  filter: none !important;
}
/* Blend logo-dark-header.jpg background into the nav (#1e1e20).
   mix-blend-mode: lighten keeps anything darker than the nav colour
   (the JPEG background ~#050507) transparent-looking, while the
   logo art (which is lighter) renders normally. */
[data-theme="dark"] .nav-logo img {
  mix-blend-mode: lighten;
}
