/* Bay Area Ecotherapy — style.css */

/* ── Design Tokens ── */
:root {
  --color-primary: #1a6b5a;
  --color-accent: #e8a83e;
  --color-bg: #faf8f5;
  --color-text: #2a2a2a;
  --color-text-light: #5a5a5a;
  --color-form-bg: #f0eeea;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 700px;
  --section-padding: 5rem 1.5rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* ── Layout ── */
section {
  padding: var(--section-padding);
}

.content-narrow {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: url('images/hero.jpg') center/cover no-repeat;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Image Sections (shared) ── */
.image-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem;
}

.image-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.image-section .content-narrow {
  position: relative;
  z-index: 1;
}

.image-section h2 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-section p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ── Pain Section ── */
.pain {
  padding: var(--section-padding);
  text-align: center;
  background: linear-gradient(135deg, #4a4a6a 0%, #6b6b8d 50%, #4a4a6a 100%);
  color: #fff;
}

.pain-text {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

/* ── Pivot Section ── */
.pivot {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6rem;
  background-position: center bottom;
}

.pivot-text {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-accent);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

/* ── Alternative Section ── */
.alternative {
  padding: var(--section-padding);
  background-color: #eef5f2;
}

.alternative p {
  font-size: 1.15rem;
}

.alternative .punch-line {
  font-size: 1.8rem;
}

/* ── Punch Lines ── */
.punch-line {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 600;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--color-accent);
  text-align: center;
}

/* ── Why It Works ── */
.why-it-works {
  padding: var(--section-padding);
  background-color: var(--color-form-bg);
}

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

.evidence-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
}

.evidence-list li:last-child {
  border-bottom: none;
}

.evidence-list strong {
  color: var(--color-primary);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* ── Why SF ── */
.why-sf {
  padding: 6rem 1.5rem;
}

.why-sf p {
  font-size: 1.15rem;
}

/* ── Who We Are ── */
.who-we-are {
  padding: 6rem 1.5rem;
}

.who-we-are p {
  font-size: 1.15rem;
}

/* ── Form Section ── */
.form-section {
  padding: var(--section-padding);
  background-color: var(--color-form-bg);
}

.form-intro {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hidden {
  display: none;
}

.role-fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.role-fieldset legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.role-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.role-option:has(input:checked) {
  border-color: var(--color-primary);
}

.role-option input[type="radio"] {
  accent-color: var(--color-primary);
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-label input,
.form-label textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form-label input:focus-visible,
.form-label textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 107, 90, 0.15);
}

.form-submit {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

/* ── Thank You ── */
.thank-you {
  text-align: center;
  padding: 3rem 0;
}

.thank-you h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* ── Pricing ── */
.pricing {
  padding: var(--section-padding);
  text-align: center;
}

.pricing p {
  font-size: 1.15rem;
}

.pricing strong {
  color: var(--color-primary);
  font-size: 1.3rem;
}

/* ── Footer ── */
.site-footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-privacy {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1.25rem;
  }

  body {
    font-size: 16px;
  }

  .hero {
    min-height: 90vh;
  }

  .hero-subtitle {
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .image-section {
    padding: 4rem 1.25rem;
  }

  .pain-text {
    font-size: 1.2rem;
  }

  .punch-line {
    font-size: 1.8rem;
  }

  .pivot {
    min-height: 50vh;
  }

  .role-fieldset {
    gap: 0.75rem;
  }

  .role-option {
    padding: 1rem;
  }

  .form-label input,
  .form-label textarea {
    padding: 0.875rem 1rem;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 85vh;
    padding: 2rem 1rem;
  }

  .pivot {
    min-height: 45vh;
  }
}
