/* ==========================================
   Variables
========================================== */

:root {
  --sage-light: #ddecc5;
  --sage-mid:   #b3d09a;
  --sage-deep:  #87ae9c;
  --text:       #486557;
  --text-dark:  #3b5448;
  --plum:       #7a3a6c;
  --cream:      #f8f7f3;
  --lime:       #bdd876;
  --white:      #ffffff;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm: 1rem;
  --radius-md: 1.5rem;
}


/* ==========================================
   Reset
========================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
fieldset { min-width: 0; border: none; }


/* ==========================================
   Base
========================================== */

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  color: var(--text);
  background: linear-gradient(
    180deg,
    var(--sage-light)  0%,
    var(--sage-mid)   45%,
    var(--sage-deep) 100%
  );
  background-attachment: fixed;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}


/* ==========================================
   Typography
========================================== */

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}


/* ==========================================
   Buttons
========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--plum);
  color: var(--white);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(111, 45, 95, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 45, 95, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid var(--plum);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(111, 45, 95, 0.25);
}

.btn-white {
  background: var(--white);
  color: var(--plum);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}


/* ==========================================
   Splash Screen
========================================== */

.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
}

.splash-logo {
  width: min(200px, 50vw);
  height: auto;
  border-radius: 1.25rem;
}

.splash-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dark);
  opacity: 0.45;
}


/* ==========================================
   Header
========================================== */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 100px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--plum);
  transition: width 0.25s ease;
}

.site-nav a:hover::after { width: 100%; }


/* ==========================================
   Hero
========================================== */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.65;
  opacity: 0.85;
  margin-bottom: 2.25rem;
}

.footsteps {
  position: absolute;
  width: 1040px;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s;
  animation: bob 2.4s ease-in-out infinite;
}

.scroll-hint:hover { opacity: 0.8; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ==========================================
   Scroll reveal
========================================== */

.reveal {
  opacity: 0;
}

.page-hidden {
  opacity: 0;
  transform: translateY(18px);
}


/* ==========================================
   About / Meet James
========================================== */

.about {
  padding: 7rem 0 9rem;
}

.about h2 {
  margin-bottom: 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 0.5rem;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
}


/* ==========================================
   How it Works
========================================== */

.how {
  padding: 5rem 0 12rem;
}

.how h2 {
  margin-bottom: 3.5rem;
}

.how-steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(122, 58, 108, 0.25);
}

.step-body {
  background: rgba(248, 247, 243, 0.85);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  flex: 1;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.step-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.85;
}

.step-connector {
  width: 2px;
  height: 1.5rem;
  background: rgba(122, 58, 108, 0.2);
  margin-left: 23px;
}

.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}


/* ==========================================
   Footer
========================================== */

.site-footer {
  position: relative;
}

.footer-wave {
  height: 320px;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-body {
  background: var(--lime);
  padding-bottom: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 3rem;
}

.footer-heading {
  margin-bottom: 2rem;
}

.footer-sub {
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 2.5rem;
}

.footer-contact {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: opacity 0.2s;
}

.contact-link:hover { opacity: 0.65; }

.footer-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  opacity: 0.55;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.45;
  width: 100%;
  text-align: center;
}


/* ==========================================
   Responsive
========================================== */

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 2.5rem;
  }

  .about-image img {
    max-width: 260px;
    aspect-ratio: 1 / 1;
  }

  .about-text {
    align-items: center;
    max-width: 480px;
  }

  .expect-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-nav { gap: 1.5rem; font-size: 0.85rem; }

  .hero { min-height: 90vh; padding: 5rem 0 4rem; }
  .hero-sub { font-size: 1rem; }

  .about { padding: 5rem 0 7rem; }
  .how   { padding: 4rem 0 9rem; }

  .footer-contact { flex-direction: column; align-items: center; gap: 1.2rem; }
  .footer-wave    { height: 180px; }
}

@media (max-width: 420px) {
  .logo img   { width: 85px; }
  .site-nav   { gap: 1rem; }
}


/* ==========================================
   Contact / Intake Form
========================================== */

.form-hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.form-hero-inner {
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.form-hero h1 {
  margin-bottom: 1.25rem;
}

.form-hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
}

.form-section {
  padding: 0 0 8rem;
}

.intake-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Fieldset groups */
.form-group {
  background: rgba(248, 247, 243, 0.85);
  border: none;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.form-group-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* Individual fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.field-hint {
  font-size: 0.8rem;
  opacity: 0.55;
  margin-top: -0.2rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid rgba(72, 101, 87, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  opacity: 0.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(122, 58, 108, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Select arrow */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b5448' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Radio & checkbox groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
}

.radio-label input,
.checkbox-label input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(72, 101, 87, 0.35);
  background: var(--white);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.radio-label input { border-radius: 50%; }
.checkbox-label input { border-radius: 5px; }

.radio-label input:checked,
.checkbox-label input:checked {
  background: var(--plum);
  border-color: var(--plum);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='2.5' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-label input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* Form footer */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.privacy-note {
  font-size: 0.82rem;
  opacity: 0.5;
  max-width: 420px;
  line-height: 1.6;
}

.btn-submit {
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border: none;
  cursor: pointer;
}


/* ==========================================
   Thank You page
========================================== */

.thankyou-main {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.thankyou-card {
  background: rgba(248, 247, 243, 0.85);
  border-radius: var(--radius-md);
  padding: 3.5rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  background: rgba(122, 58, 108, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

.thankyou-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.thankyou-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 360px;
}

.thankyou-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.thankyou-contact a {
  transition: opacity 0.2s;
}

.thankyou-contact a:hover { opacity: 0.65; }


/* ==========================================
   Supports page
========================================== */

.supports-section {
  padding: 5rem 0 6rem;
}

.supports-section h2 {
  margin-bottom: 2.5rem;
}

.supports-intro {
  font-size: 1.05rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  margin-top: -1rem;
}

/* Therapy cards grid */
.therapy-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.therapy-card {
  background: rgba(248, 247, 243, 0.85);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.therapy-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.therapy-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.therapy-abbr {
  flex-shrink: 0;
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  opacity: 0.85;
}

.therapy-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
}

.therapy-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* Areas list */
.supports-areas {
  padding-top: 0;
}

.areas-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 2rem;
  max-width: 680px;
}

.areas-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 1rem;
  color: var(--text);
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(72, 101, 87, 0.12);
}

.area-note {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.55;
  line-height: 1.5;
}

/* Medicare card */
.supports-medicare {
  padding-top: 0;
  padding-bottom: 10rem;
}

.medicare-card {
  background: rgba(248, 247, 243, 0.85);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  max-width: 640px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.medicare-card h2 {
  margin-bottom: 0;
}

.medicare-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  opacity: 0.85;
}

.medicare-card strong {
  color: var(--text-dark);
  font-weight: 500;
}


/* ==========================================
   Responsive — form
========================================== */

@media (max-width: 640px) {
  .form-hero { padding: 4rem 0 3rem; }

  .form-group { padding: 1.5rem; }

  .field-row { grid-template-columns: 1fr; }

  .thankyou-card { padding: 2.5rem 1.75rem; }

  .therapy-list { grid-template-columns: 1fr; }

  .areas-list { grid-template-columns: 1fr; }

  .medicare-card { padding: 1.75rem; }
}
