/* ==========================================================================
   theREALsleep -- Global Stylesheet
   Pixel-perfect clone of therealsleep.com (Breakdance/WordPress original)
   Fonts: Poppins (hero brand, italic), Source Sans 3 (headings), Open Sans (body)
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #403C3B;
  background: #fff;
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #403C3B; text-decoration: none; }
a:hover { color: #403C3B; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: #403C3B;
}

h1 { font-size: 50px; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-size: 20px; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-upper { text-transform: uppercase; }
.text-muted { color: #666; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: 60px 0;
}

.section-sm {
  padding: 50px 30px;
}

.section-dark {
  background: #181818;
  color: #fff;
}

.section-light {
  background: #fff;
}

.section-tan {
  background: #E9CBB1;
}

.section-gray {
  background: #D6D6D6;
}

/* ---------- Grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Flex Utilities ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ---------- Spacing Utilities ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 40px;
}

.logo {
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 700;
  color: #403C3B;
  text-decoration: none;
}

.logo img {
  max-width: 220px;
  height: auto;
}

/* ---------- Navigation ---------- */
.nav {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  display: inline;
}

.nav a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #403C3B;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: #000;
}

/* Hamburger button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.nav-mobile a:hover {
  opacity: 0.7;
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 900px) {
  .nav {
    display: flex;
    flex-direction: row;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-mobile {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Ensure mobile nav is hidden by default even without JS */
.nav-mobile {
  visibility: hidden;
  pointer-events: none;
}

.nav-mobile.open {
  visibility: visible;
  pointer-events: auto;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  box-shadow: 2px 2px 2px 0px #0000006B;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  padding: 14px 24px;
  border-radius: 9999px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  box-shadow: 2px 2px 2px 0px #0000006B;
}

.btn-secondary:hover {
  background: #fff;
  color: #000;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  padding: 14px 24px;
  border-radius: 9999px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  box-shadow: 2px 2px 2px 0px #0000006B;
}

.btn-white:hover {
  background: #fff;
  color: #000;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 18px;
}

/* Header Start Here button (smaller) */
.header .btn-primary {
  padding: 10px 24px;
  font-size: 16px;
  flex-shrink: 0;
  border-color: #000;
}

/* ---------- Cards ---------- */
.card {
  background: #EFEFEF;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 40px 40px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.card-img {
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 8px;
  width: 100%;
}

.card-img img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 30px;
}

.card h3 {
  font-size: 26px;
  font-weight: 600;
  text-align: left;
}

.card p {
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  color: #403C3B;
}

.card .btn-primary {
  margin-top: auto;
}

/* ---------- Hero (generic inner pages) ---------- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero .subtitle {
  font-size: 1.125rem;
  color: #555;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 1rem;
}

/* ---------- Hero with background image (homepage) ---------- */
.hero-bg {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  text-align: left;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.30);
  z-index: 1;
}

.hero-bg .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 60px 80px;
  max-width: 100%;
}

.hero-bg .hero-brand {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 56px;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 2px #00000085;
  line-height: 1.2;
}

.hero-bg h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 2px #00000085;
  max-width: 800px;
  text-align: left;
  line-height: 1.15;
}

.hero-bg .hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 2px #00000085;
}

.hero-bg .btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  padding: 14px 24px;
  border-radius: 30px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  border: 1px solid #fff;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  text-decoration: none;
  margin-top: 16px;
  box-shadow: 2px 2px 2px 0px #0000006B;
  line-height: 1;
}

.hero-bg .btn-hero:hover {
  background: #000;
}

/* ---------- Value Prop Section (Peaceful Sleep) ---------- */
.value-prop-section {
  background: #fff;
  padding: 60px 0;
}

.value-prop-section .container {
  max-width: 1400px;
}

.value-prop-columns {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.value-prop-columns .value-prop-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.value-prop-columns .value-prop-text h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  margin-bottom: 16px;
}

.value-prop-columns .value-prop-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #403C3B;
  line-height: 1.7;
}

.value-prop-columns .value-prop-reviews {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

/* ---------- Subheading Section ---------- */
.subheading-section {
  background: #fff;
  padding: 40px 30px 60px;
  text-align: center;
}

.subheading-section h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #403C3B;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Services Section ---------- */
.services-section {
  background: #fff;
  padding: 40px 0 80px;
}

/* ---------- Symptoms / Checklist ---------- */
.symptoms-section {
  background: linear-gradient(180deg, #f0f0f0 0%, #ffffff 100%);
  padding: 60px 0;
}


.symptoms-columns {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}

.symptoms-text {
  flex: 1;
}

.symptoms-text h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  margin-bottom: 16px;
}

.symptoms-text p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #403C3B;
  line-height: 1.7;
}

.symptoms-text li {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #403C3B;
  line-height: 1.6;
}

.symptoms-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.symptoms-image img {
  border-radius: 20px;
  max-width: 100%;
}

.checklist {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 16px 0;
}

.checklist li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.symptoms-cta {
  margin-top: 32px;
}

.symptoms-cta h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #403C3B;
  margin-bottom: 16px;
}

/* ---------- TrustIndex-style Review Cards ---------- */
.ti-card-inner {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 1px 4px 10px 0px rgba(0,0,0,0.1), 0px 0px 2px 0px rgba(0,0,0,0.05);
  position: relative;
}

.ti-review-header {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
}

.ti-profile-img {
  margin-right: 15px;
  flex-shrink: 0;
}

.ti-profile-img img {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ti-profile-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ti-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 25px;
}

.ti-date {
  color: #8a8a8a;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}

.ti-platform-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
}

.ti-platform-icon img {
  width: 20px;
  height: 20px;
}

.ti-stars-row {
  margin: 11px 0;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 17px;
  line-height: 17px;
}

.ti-star {
  width: 17px;
  height: 17px;
  display: inline-block;
}

.ti-verified-badge {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 7px;
  background: url('https://cdn.trustindex.io/assets/icon/ti-verified.svg') no-repeat center / contain;
  flex-shrink: 0;
}

.ti-review-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
  word-break: break-word;
}

.ti-read-more {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: #000;
  opacity: 0.5;
  cursor: pointer;
  padding-top: 8px;
  display: block;
  text-decoration: none;
}

.ti-read-more:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- Value Prop TrustIndex Slider ---------- */
.ti-slider-wrapper {
  position: relative;
  padding: 0 20px;
  width: 100%;
  min-width: 0;
}

.ti-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 4px;
}

.ti-slider-track::-webkit-scrollbar {
  display: none;
}

.ti-slider-track .ti-slide {
  flex: 0 0 calc(50% - 8px);
  min-width: 280px;
}

.ti-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  color: #5E5E5E;
  font-size: 18px;
  padding: 0;
  line-height: 1;
}

.ti-slider-arrow:hover {
  background: #4d4d4d;
  border-color: #272727;
  color: #fff;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.ti-slider-arrow--prev {
  left: -5px;
}

.ti-slider-arrow--next {
  right: -5px;
}

/* ---------- Dark Testimonials Section ---------- */
.testimonials-section {
  background: #181818;
  padding: 50px 30px 60px;
  text-align: center;
}

.testimonials-section h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 50px;
}

.reviews-carousel-wrapper {
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 50px;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 40px 0 12px;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.reviews-carousel .ti-slide {
  flex: 0 0 260px;
}

/* Dark section uses centered-avatar card style */
.reviews-carousel .ti-card-inner {
  text-align: center;
  padding: 20px 20px 24px;
  position: relative;
}

.reviews-carousel .ti-review-header {
  flex-direction: column;
  align-items: center;
}

.reviews-carousel .ti-profile-img {
  margin: -52px auto 8px;
  position: relative;
}

.reviews-carousel .ti-profile-img img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.reviews-carousel .ti-platform-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  top: auto;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.reviews-carousel .ti-platform-icon img {
  width: 14px;
  height: 14px;
}

.reviews-carousel .ti-profile-details {
  align-items: center;
  text-align: center;
}

.reviews-carousel .ti-name {
  padding-right: 0;
  text-align: center;
}

.reviews-carousel .ti-date {
  text-align: center;
}

.reviews-carousel .ti-stars-row {
  justify-content: center;
}

.reviews-carousel .ti-review-text {
  text-align: center;
}

.reviews-carousel .ti-read-more {
  text-align: center;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #5E5E5E;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.carousel-arrow:hover {
  background: #4d4d4d;
  border-color: #272727;
  color: #fff;
}

.carousel-arrow--left {
  left: 8px;
}

.carousel-arrow--right {
  right: 8px;
}

/* ---------- Switch CPAP Section ---------- */
.switch-section {
  background: #fff;
  padding: 60px 0 20px;
  text-align: center;
}

.switch-section h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

/* ---------- Three-Path CTA ---------- */
.three-path-section {
  background: #fff;
  padding: 20px 0 60px;
}

.three-path-grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.path-card {
  flex: 1;
  border-radius: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.path-card--dark {
  background: #181818;
}

.path-card--brown {
  background: #403C3B;
}

.path-card--tan {
  background: #E9CBB1;
}

.path-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.path-card p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #fff;
  line-height: 1.6;
}

.path-card--tan h3 {
  color: #403C3B;
}

.path-card--tan p {
  color: #403C3B;
}

.path-card .btn-primary,
.path-card .btn-secondary {
  margin-top: auto;
}

/* ---------- Team ---------- */
.team-section {
  background: #fff;
  padding: 60px 0;
  text-align: center;
}

.team-section h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  margin-bottom: 16px;
}

.team-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: center;
  margin-top: 32px;
}

.team-card {
  text-align: center;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card img {
  width: 350px;
  height: 350px;
  border-radius: 30px;
  object-fit: cover;
  margin: 0 auto 16px;
}

.team-card h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #403C3B;
}

.team-card .title {
  color: #666;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* ---------- Values Section (Convenience/Specialist/Excellence) ---------- */
.values-heading-section {
  background: #E9CBB1;
  padding: 50px 30px 10px;
  text-align: center;
}

.values-heading-section h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  max-width: 900px;
  margin: 0 auto;
}

.value-props-section {
  background: #E9CBB1;
  padding: 40px 30px 60px;
}

.value-props-section .section-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #403C3B;
  text-align: center;
  margin-bottom: 2rem;
}

.value-props-grid {
  display: flex;
  flex-direction: row;
  gap: 40px;
  text-align: center;
}

.value-prop-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.value-prop-icon {
  margin-bottom: 16px;
  color: #403C3B;
}

.value-prop-icon svg {
  width: 60px;
  height: 60px;
  fill: #403C3B;
}

.value-prop-item h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #403C3B;
  margin-bottom: 8px;
}

.value-prop-item p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #403C3B;
  line-height: 1.6;
}

/* ---------- Insurance Grid ---------- */
.insurance-section {
  background: #fff;
  padding: 60px 0;
  text-align: center;
}

.insurance-section h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  margin-bottom: 32px;
}

.insurance-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.insurance-grid img {
  max-width: 130px;
  height: 50px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 479px) {
  .insurance-grid {
    gap: 16px 24px;
  }
  .insurance-grid img {
    max-width: 100px;
    height: 40px;
  }
}

/* ---------- Final CTA ---------- */
.final-cta-section {
  background: #D6D6D6;
  padding: 60px 0;
}

.final-cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.final-cta-section h2 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 38px;
  font-weight: 600;
  color: #403C3B;
  line-height: 1.2;
  margin-bottom: 16px;
}

.final-cta-section p {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #403C3B;
  line-height: 1.7;
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #000;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ---------- Location Cards ---------- */
.location-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.location-card .map-embed {
  width: 100%;
  height: 250px;
  border: 0;
}

.location-card .location-info {
  padding: 1.5rem;
}

.location-card h3 {
  margin-bottom: 0.5rem;
}

.location-card p {
  color: #555;
  font-size: 0.9375rem;
}

/* ---------- Product ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .product-hero { grid-template-columns: 1fr 1fr; }
}

.product-hero img {
  border-radius: 12px;
  width: 100%;
}

.price {
  font-size: 1.75rem;
  font-weight: 700;
}

.price-original {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  margin-right: 0.5rem;
}

/* ---------- Blog ---------- */
.blog-card {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.blog-card .blog-date {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.9375rem;
  color: #555;
}

/* Blog post body */
.blog-post h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-post h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-post p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.blog-post ul, .blog-post ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.blog-post ul { list-style: disc; }
.blog-post ol { list-style: decimal; }

.blog-post li {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.blog-post a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-post a:hover {
  opacity: 0.7;
}

.blog-post blockquote {
  border-left: 3px solid #000;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #333;
}

.blog-featured-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* ---------- Legal Pages ---------- */
.legal h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.legal p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
}

.legal ul, .legal ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }

.legal li {
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #333;
}

/* ---------- Footer ---------- */
.footer {
  background: #fff;
  color: #000;
  padding: 0;
  border-top: 1px solid #eee;
}

.footer-main {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  padding: 40px 30px;
  min-height: 300px;
}

.footer-logo-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo-col img {
  max-width: 300px;
}

.footer-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.footer-info-col h4 {
  font-size: 30px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.375rem;
}

.footer-links a,
.footer-links li {
  color: #000;
  font-size: 14px;
  text-decoration: none;
}

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

.footer-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  transition: transform 0.2s, opacity 0.2s;
}

.footer-social a:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.footer-social a svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding: 16px 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-bottom-links {
  display: flex;
  gap: 32px;
}

.footer-bottom-links a {
  color: #403C3B;
  font-size: 14px;
  text-decoration: none;
}

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: #666;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.error-page p {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 2rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 80px 1.5rem;
}

.cta-banner h2 {
  margin-bottom: 0.5rem;
}

.cta-banner p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---------- Backward Compat for Inner Pages ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1119px) {
  .header-inner {
    justify-content: space-between;
    gap: 20px;
    max-width: 1400px;
    padding: 12px 40px;
  }

  .hero-bg .container {
    padding: 40px;
  }

  .value-prop-columns,
  .symptoms-columns,
  .three-path-grid,
  .team-grid,
  .value-props-grid {
    flex-direction: column;
  }

  .team-card img {
    width: 100%;
    max-width: 350px;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-info-col {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-bg {
    height: 500px;
  }

  .hero-bg .hero-brand {
    font-size: 36px;
  }

  .hero-bg h1 {
    font-size: 30px;
  }

  .hero-bg .hero-subtitle {
    font-size: 30px;
  }

  .hero-bg .container {
    padding: 10px 50px 10px 10px;
    gap: 40px;
  }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .value-prop-columns .value-prop-text h2,
  .symptoms-text h2,
  .switch-section h2,
  .testimonials-section h2,
  .team-section h2,
  .insurance-section h2,
  .final-cta-section h2,
  .values-heading-section h2 {
    font-size: 28px;
  }

  .subheading-section h3 {
    font-size: 24px;
  }

  .path-card h3,
  .value-prop-item h3,
  .symptoms-cta h3 {
    font-size: 22px;
  }

  .card p,
  .path-card p,
  .value-prop-item p,
  .value-prop-columns .value-prop-text p,
  .symptoms-text p,
  .symptoms-text li,
  .final-cta-section p {
    font-size: 18px;
  }

  .card p {
    font-size: 18px;
    color: #191919;
  }

  .card {
    padding: 40px 20px;
  }

  .team-card h3 {
    font-size: 28px;
  }

  .header-inner {
    padding: 10px 30px;
    justify-content: space-between;
    gap: 20px;
  }

  .logo img {
    max-width: 200px;
  }
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .btn-primary, .btn-secondary { display: none; }
  body { color: #000; background: #fff; }
  .section { padding: 1rem 0; }
}
