/* Google Fonts: Inter for high legibility */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Calming, professional, neuro/medical inspired */
  --color-primary: #1e3a5f;      /* Deep Slate Blue - Trust, professionalism */
  --color-secondary: #3aa6a9;    /* Calming Teal - Healing, recovery */
  --color-accent: #f7b26c;       /* Warm Peach/Orange - Warmth, approachability */
  
  --color-bg: #f8fbfa;           /* Off-white with a hint of green/blue */
  --color-surface: #ffffff;      
  --color-text: #2b3a4a;         /* Deep gray-blue for readability (better than pure black) */
  --color-text-light: #64748b;
  
  --shadow-sm: 0 4px 6px -1px rgba(30, 58, 95, 0.05), 0 2px 4px -1px rgba(30, 58, 95, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(30, 58, 95, 0.05), 0 4px 6px -2px rgba(30, 58, 95, 0.03);
  
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Constraints */
  --max-width: 1200px;
  
  /* Vestibular Safe Transitions (No translation/sliding) */
  --transition-safe: opacity 0.6s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

a {
  text-decoration: none;
  color: var(--color-secondary);
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #152b47;
  color: var(--color-surface);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* Header & Nav */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding-top: 120px; /* offset header */
  padding-bottom: 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg) 0%, #e6f2f0 100%);
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(58, 166, 169, 0.1);
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
  transform: translateY(-5px); /* Very subtle translation, usually okay even for vestibular if extremely minor and slow, but let's stick to shadow for absolute safety */
  box-shadow: var(--shadow-md);
}

/* Removing transform for vestibular strict safety */
@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(58, 166, 169, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(58, 166, 169, 0.2);
}

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

/* Standard Section Styling */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.bg-light-blue {
  background-color: #f1f5f9;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: 4rem 0 2rem 0;
}

footer h3 {
  color: var(--color-surface);
}

footer p {
  color: #cbd5e1;
}

footer a {
  color: #cbd5e1;
}

footer a:hover {
  color: var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Vestibular Safe Scroll Animations */
.fade-in-section {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
}
