/* ============================================================
   Relief Therapy — concept blog post
   Calm, trustworthy healthcare aesthetic: soft sage/teal on
   warm off-white, generous whitespace.
   ============================================================ */

:root {
  --bg: #faf8f4;            /* warm off-white */
  --surface: #ffffff;
  --ink: #2e3a38;           /* deep green-grey for body text */
  --ink-soft: #5c6b68;      /* muted secondary text */
  --sage: #7c9885;          /* soft sage */
  --sage-tint: #eef2ec;     /* pale sage wash */
  --teal: #3f6f6a;          /* deep calm teal — primary accent */
  --teal-dark: #335b57;
  --teal-tint: #e7efee;     /* pale teal wash */
  --border: #e3ddd2;        /* warm hairline */
  --amber-tint: #f6efe2;    /* disclaimer wash */
  --amber-ink: #6b5a37;

  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 700px;
}

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

html {
  scroll-behavior: smooth;
}

/* Keep anchored sections clear of the sticky header */
.cta,
.section {
  scroll-margin-top: 4.5rem;
}

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Reading progress bar ---------- */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0%;
  height: 3px;
  background-color: var(--teal);
  transition: width 80ms linear;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-dark);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 0.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--teal-dark);
}

@media (max-width: 700px) {
  .site-nav {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn-header {
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  background-color: transparent;
}

.btn-header:hover,
.btn-header:focus-visible {
  background-color: var(--teal);
  color: #fff;
}

.btn-cta {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 2.25rem;
  color: #fff;
  background-color: var(--teal);
  box-shadow: 0 2px 10px rgba(63, 111, 106, 0.25);
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background-color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(63, 111, 106, 0.3);
}

.btn-ghost {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.9rem 2rem;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  background-color: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--teal-tint);
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.meta-divider {
  margin: 0 0.5rem;
  color: var(--sage);
}

/* ---------- Post body ---------- */

.post-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
}

.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-dark);
  margin: 2.75rem 0 1rem;
}

.post-body p {
  margin-bottom: 1.35rem;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.6rem;
  padding-left: 0.35rem;
}

.post-body ul li::marker {
  color: var(--sage);
}

.post-body ol li::marker {
  color: var(--teal);
  font-weight: 600;
}

/* ---------- Services table ---------- */

.services-table {
  width: 100%;
  margin: 2rem 0 1rem;
  border-collapse: collapse;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.97rem;
}

.services-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--teal-dark);
  background-color: var(--teal-tint);
  padding: 0.85rem 1.25rem;
}

.services-table tbody th,
.services-table tbody td {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.services-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  width: 1%;
}

.services-table tbody td {
  color: var(--ink-soft);
}

/* Collapse the table into stacked cards on narrow screens */
@media (max-width: 560px) {
  .services-table,
  .services-table tbody,
  .services-table tbody tr,
  .services-table tbody th,
  .services-table tbody td {
    display: block;
    width: 100%;
  }

  .services-table thead {
    display: none;
  }

  .services-table tbody tr {
    border-top: 1px solid var(--border);
  }

  .services-table tbody tr:first-child {
    border-top: none;
  }

  .services-table tbody th {
    padding-bottom: 0.15rem;
    border-top: none;
    white-space: normal;
  }

  .services-table tbody td {
    padding-top: 0;
    border-top: none;
  }
}

/* ---------- CTA section ---------- */

.cta {
  background-color: var(--sage-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 4rem 1.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}

.cta p {
  max-width: 32rem;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
}

/* ---------- Disclaimer ---------- */

.disclaimer {
  width: min(var(--content-width), calc(100% - 3rem));
  margin: 3rem auto 3.5rem;
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: var(--amber-tint);
  border: 1px solid #e8dcc2;
  border-left: 4px solid #c9a95f;
  border-radius: 8px;
  color: var(--amber-ink);
  font-size: 0.95rem;
  line-height: 1.65;
}

.disclaimer-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
  color: #b0913f;
}

.disclaimer strong {
  color: #55461f;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================================================
   Landing page
   ============================================================ */

/* ---------- Landing hero ---------- */

.landing-hero {
  background: linear-gradient(180deg, var(--sage-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.landing-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
}

.landing-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.landing-hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trust-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--sage);
}

/* ---------- Generic sections ---------- */

.section {
  padding: 4.5rem 1.5rem;
}

.section-tinted {
  background-color: var(--teal-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--content-width);
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--teal-dark);
  margin-bottom: 1rem;
}

.section-lede {
  max-width: 40rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.service-card:hover {
  box-shadow: 0 6px 20px rgba(63, 111, 106, 0.12);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: var(--teal-tint);
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
}

.step {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background-color: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Why Relief (split section) ---------- */

.section-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 780px) {
  .section-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.split-copy > p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background-color: var(--sage-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f6f6a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.split-quote {
  margin: 0;
  background-color: var(--sage-tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
}

.split-quote blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.split-quote figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.quote-note {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  color: var(--sage);
}

/* ---------- Blog teaser ---------- */

.blog-teaser {
  display: block;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.blog-teaser:hover {
  box-shadow: 0 6px 20px rgba(63, 111, 106, 0.12);
  transform: translateY(-3px);
}

.blog-teaser h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.6rem;
}

.blog-teaser-body p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.blog-teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
}

.blog-teaser-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 160ms ease;
}

.blog-teaser:hover .blog-teaser-link svg {
  transform: translateX(3px);
}

.blog-teaser-meta {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card,
  .blog-teaser {
    transition: none;
  }

  .service-card:hover,
  .blog-teaser:hover {
    transform: none;
  }

  .progress-bar {
    transition: none;
  }
}
