/* Qualia Health - Brand Style Guide Implementation */
/* Calm, Trustworthy, Ethical, Long-term focused */

:root {
  /* Core Brand Colors */
  --therapeutic-blue: #2F80ED;
  --healing-green: #6FCF97;
  --deep-navy: #1B2A41;
  --neutral-grey: #E5E7EB;
  
  /* Supporting Colors */
  --soft-teal: #2A9D8F;
  --light-bg: #F9FAFB;
  --white: #ffffff;
  
  /* Text Colors */
  --text-primary: #1B2A41;
  --text-secondary: #4B5563;
  --text-light: #ffffff;
}

/* Global Styles - Low cognitive load, High readability */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--deep-navy);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

a {
  color: var(--therapeutic-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--soft-teal);
  text-decoration: underline;
}

/* Navigation */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--neutral-grey);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--deep-navy);
  font-size: 1.25rem;
}

.navbar-brand:hover {
  color: var(--therapeutic-blue);
  text-decoration: none;
}

.nav-logo {
  height: 70px;
  width: auto;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--therapeutic-blue);
  text-decoration: none;
}

.navbar-nav .nav-link.active {
  color: var(--therapeutic-blue);
  font-weight: 600;
}

/* Hero Section - Calm, human-centred */
.hero-section {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.03) 0%, rgba(111, 207, 151, 0.03) 100%);
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--neutral-grey);
}

.hero-logo-q {
  max-width: 200px;
  height: auto;
  margin-bottom: 2rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-section h1 {
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .lead {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

.hero-location {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-location strong {
  color: var(--therapeutic-blue);
}

/* Buttons - Calm, no excessive animation */
.btn {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--therapeutic-blue);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #2870d8;
  color: var(--text-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}

.btn-outline {
  background-color: transparent;
  color: var(--therapeutic-blue);
  border: 2px solid var(--therapeutic-blue);
}

.btn-outline:hover {
  background-color: var(--therapeutic-blue);
  color: var(--text-light);
  text-decoration: none;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--white);
}

.section-grey {
  background-color: var(--light-bg);
}

.section-title {
  color: var(--deep-navy);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Key Messages - Trust-building */
.key-message {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--therapeutic-blue);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.key-message:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateX(3px);
}

.key-message h4 {
  color: var(--therapeutic-blue);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.key-message p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* Product Card */
.product-card {
  background: var(--white);
  border: 1px solid var(--neutral-grey);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.product-logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 2rem;
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-card h3 {
  color: var(--deep-navy);
  margin-bottom: 1rem;
}

.product-card .product-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Ethics Section - Clear boundaries */
.ethics-card {
  background: var(--white);
  border: 2px solid var(--neutral-grey);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease;
}

.ethics-card:hover {
  border-color: var(--therapeutic-blue);
}

.ethics-card h4 {
  color: var(--therapeutic-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ethics-icon {
  font-size: 1.75rem;
}

.limitation-badge {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.1), rgba(111, 207, 151, 0.1));
  border: 1px solid var(--therapeutic-blue);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--deep-navy);
}

/* About Section */
.mission-statement {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.05), rgba(111, 207, 151, 0.05));
  border-left: 5px solid var(--healing-green);
  padding: 2.5rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Section */
.contact-info {
  background: var(--white);
  border: 1px solid var(--neutral-grey);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info h4 {
  color: var(--therapeutic-blue);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--neutral-grey);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--therapeutic-blue);
  min-width: 30px;
}

.contact-details {
  flex: 1;
}

.contact-details strong {
  display: block;
  color: var(--deep-navy);
  margin-bottom: 0.25rem;
}

.contact-details a {
  color: var(--therapeutic-blue);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--neutral-grey);
  border-radius: 8px;
  padding: 2.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form h4 {
  color: var(--therapeutic-blue);
  margin-bottom: 1.5rem;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--neutral-grey);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--therapeutic-blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.privacy-notice {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 6px;
  line-height: 1.6;
}

.btn-submit {
  background: linear-gradient(135deg, var(--therapeutic-blue), var(--soft-teal));
  color: var(--text-light);
  border: none;
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(111, 207, 151, 0.15);
  color: #155724;
  border: 1px solid var(--healing-green);
}

.alert-error {
  background-color: rgba(181, 101, 118, 0.15);
  color: #721c24;
  border: 1px solid #B56576;
}

.grecaptcha-badge {
  visibility: hidden;
}

/* Footer */
.footer {
  background: var(--deep-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
  color: var(--healing-green);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--healing-green);
  text-decoration: none;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 1rem;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 6px;
}

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

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

.disclaimer {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--healing-green);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 80px 0 60px;
  }
  
  .hero-logo-q {
    max-width: 150px;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.15rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .product-card,
  .ethics-card,
  .contact-info {
    padding: 2rem;
  }
  
  .nav-logo {
    height: 40px;
  }
}

/* Accessibility - 4.5:1 contrast minimum */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No excessive animation - calm transitions only */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}
