/* CSS Variables - Brand Colors from Art Direction */
:root {
  /* Primary Colors */
  --color-indigo: #1C2440;
  --color-teal: #2F8C82;
  --color-ochre: #D9A657;
  --color-bone: #F5F2EB;
  --color-mist: #E1E7F2;

  /* Gradient Colors */
  --color-ochre-dark: #C58E3F;
  --color-ochre-light: #F0C77A;
  --color-teal-light: #7AD3C7;

  /* Semantic Colors */
  --color-primary: var(--color-indigo);
  --color-primary-dark: #141a30;
  --color-secondary: var(--color-teal);
  --color-accent: var(--color-ochre);
  --color-bg: var(--color-bone);
  --color-bg-section: #ffffff;
  --color-text: var(--color-indigo);
  --color-text-muted: #4a5568;
  --color-border: #d4d8e0;
  --color-warning: #ed8936;
  --color-success: #48bb78;

  /* Spacing & Sizing */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 4px rgba(28, 36, 64, 0.06);
  --shadow-lg: 0 4px 12px rgba(28, 36, 64, 0.1);
  --max-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Freight', Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  color: var(--color-indigo);
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Site Header */
.site-header {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: 'Freight', Georgia, serif;
  font-size: 1.1rem;
  color: var(--color-indigo);
  font-weight: 600;
}

.logo-acronym {
  font-family: 'Freight', Georgia, serif;
  font-size: 0.9rem;
  color: var(--color-teal);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.2s, background-color 0.2s;
}

.main-nav a:hover {
  color: var(--color-teal);
  background: var(--color-mist);
}

.main-nav a.active {
  color: var(--color-teal);
  background: rgba(47, 140, 130, 0.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-indigo);
  transition: transform 0.2s;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(135deg, rgba(245, 242, 235, 0.85) 0%, rgba(225, 231, 242, 0.85) 100%),
    url('/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 1.5rem;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-logo-wrapper {
  flex-shrink: 0;
}

.hero-logo {
  width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(28, 36, 64, 0.25),
              0 4px 16px rgba(28, 36, 64, 0.15);
}

.hero-content {
  flex: 1;
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-indigo);
}

.hero h1 .accent {
  color: var(--color-teal);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-teal);
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: white;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-bone);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
}

.feature-icon {
  color: var(--color-teal);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--color-indigo);
}

.feature-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--color-bone) 0%, var(--color-mist) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.page-header h1 {
  margin: 0 0 1rem 0;
}

.page-intro {
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
  background: white;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  color: var(--color-indigo);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-ochre);
}

.content-block p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background: white;
}

.service-card {
  background: var(--color-bone);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--color-teal);
}

.service-card h2 {
  color: var(--color-indigo);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.service-meta p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.future-service {
  border-left-color: var(--color-ochre);
  opacity: 0.9;
}

.badge {
  display: inline-block;
  background: var(--color-ochre);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disclaimer {
  background: var(--color-mist);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
}

.disclaimer p {
  margin: 0;
  color: var(--color-indigo);
}

/* Process Section */
.process-section {
  padding: 4rem 0;
  background: white;
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-ochre-dark) 0%, var(--color-ochre-light) 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h2 {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.step-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bone);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  color: var(--color-indigo);
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: white;
}

.contact-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.contact-intro p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bone);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

/* CTA Section */
.cta-section {
  background: var(--color-indigo);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin: 0 0 1rem 0;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--color-indigo);
  color: white;
  padding: 4rem 0 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-brand {
  max-width: 250px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin-bottom: 1rem;
}

.tagline {
  color: var(--color-teal-light);
  font-size: 0.9rem;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--color-ochre);
  font-size: 1rem;
  margin: 0 0 1rem 0;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-teal-light);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--color-teal);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #267a71;
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
}

.btn-secondary:hover {
  background: rgba(47, 140, 130, 0.1);
}

.cta-section .btn-primary {
  background: var(--color-ochre);
}

.cta-section .btn-primary:hover {
  background: var(--color-ochre-dark);
}

.cta-section .btn-secondary {
  border-color: white;
  color: white;
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Form Elements */
.form-section {
  background: var(--color-bg-section);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.form-section h2 {
  color: var(--color-indigo);
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-ochre);
}

.section-description {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.required {
  color: var(--color-warning);
}

.help-text {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0 0 0.5rem 0;
}

/* Inputs */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(47, 140, 130, 0.15);
}

textarea {
  resize: vertical;
  min-height: 60px;
}

/* Pre-filled inputs (e.g., client ID from URL) */
input.prefilled {
  background: var(--color-mist);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s;
  font-weight: normal;
}

.checkbox-label:hover {
  background: var(--color-bg);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.warning-group .checkbox-label {
  background: #fffbf0;
  border: 1px solid #feebc8;
}

.warning-group .checkbox-label:hover {
  background: #fef3cd;
}

/* Sliders */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slider-item > label {
  font-weight: normal;
  font-size: 0.9rem;
  color: var(--color-text);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-teal);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #267a71;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-teal);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-value {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
  color: var(--color-teal);
}

/* Conditional Sections */
.asmr-details,
.affirmation-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Success Message */
.success-message {
  background: #f0fff4;
  border: 1px solid var(--color-success);
  color: #276749;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Form Messages (Contact Form) */
.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-message.success-message {
  background: #f0fff4;
  border: 1px solid var(--color-success);
  color: #276749;
}

.form-message.error-message {
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
}

/* Intake Container */
.intake-container {
  max-width: 800px;
  padding: 2rem 1rem;
}

.intake-container .page-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.intake-container .page-intro h1 {
  color: var(--color-indigo);
  margin-bottom: 0.5rem;
}

.intake-container .subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 4rem 1.5rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-logo {
    width: 300px;
    max-width: 80vw;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .process-step {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-logo {
    width: 250px;
  }

  .page-header {
    padding: 3rem 1rem;
  }

  .form-section {
    padding: 1rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .form-actions,
  .cta-section {
    display: none;
  }

  .form-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  body {
    background: white;
  }
}
