/* ================================
   Leicester Therapy - Design System
   ================================ */

/* CSS Custom Properties */
:root {
  /* Primary Colors - Deep therapeutic tones */
  --color-primary: #1a535c;
  --color-primary-dark: #0d3d44;
  --color-primary-light: #2a6f7a;

  /* Secondary Colors - Warm sage for growth */
  --color-secondary: #4a7c59;
  --color-secondary-dark: #3a6247;
  --color-secondary-light: #5a9469;

  /* Accent Colors - Warmth and compassion */
  --color-accent: #e07a5f;
  --color-accent-dark: #c4644b;
  --color-accent-light: #f4a58a;

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-cream: #faf8f5;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e8e8e8;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(26, 83, 92, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-gray-900);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-4);
}

.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ================================
   Navigation
   ================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  position: relative;
  padding: var(--space-2) 0;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-gray-800);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-base);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: var(--text-lg);
  }
}

/* ================================
   Hero Section
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-cream) 0%, #e8f4f3 50%, #f0ebe5 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(26, 83, 92, 0.08) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(74, 124, 89, 0.06) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(20px, -30px) rotate(2deg);
  }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-secondary);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  fill: #f4b942;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.3em;
  background: var(--color-accent-light);
  opacity: 0.3;
  z-index: -1;
}

.hero-text {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-200);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

.hero-feature span {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   Buttons
   ================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ================================
   Section Styles
   ================================ */
.section {
  padding: var(--space-24) 0;
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--color-gray-500);
  font-size: var(--text-lg);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

/* ================================
   Services Cards
   ================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-white);
}

.service-card h3 {
  margin-bottom: var(--space-4);
}

.service-card p {
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
}

.service-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  transition: var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* ================================
   About / Process Section
   ================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-gray-100);
}

.process-step h3 {
  margin-bottom: var(--space-4);
}

.process-step p {
  color: var(--color-gray-500);
}

/* ================================
   Credentials / Award Section
   ================================ */
.credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.credential-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.credential-badge svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent-light);
}

.credential-badge span {
  font-weight: 500;
}

/* ================================
   Therapist Section
   ================================ */
.therapist-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 900px) {
  .therapist-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.therapist-image {
  position: relative;
}

.therapist-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
}

.therapist-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.therapist-image::before {
  content: '';
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  right: calc(var(--space-6) * -1);
  bottom: calc(var(--space-6) * -1);
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.therapist-content h2 {
  margin-bottom: var(--space-4);
}

.therapist-title {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.therapist-content p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
}

.therapist-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.specialty-tag {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ================================
   EMDR Section
   ================================ */
.emdr-phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.emdr-phase {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-primary);
  transition: var(--transition-base);
}

.emdr-phase:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.emdr-phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.emdr-phase h4 {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
}

.emdr-phase p {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ================================
   FAQ Accordion
   ================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-gray-800);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  transition: var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-gray-600);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ================================
   Pricing
   ================================ */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: var(--transition-base);
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pricing-card h3 {
  margin-bottom: var(--space-2);
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-4) 0;
}

.pricing-card .price span {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
}

.pricing-card .duration {
  color: var(--color-gray-500);
  margin-bottom: var(--space-6);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--color-gray-600);
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-secondary);
  flex-shrink: 0;
}

/* ================================
   Contact Form
   ================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  padding: var(--space-8);
}

.contact-info h2 {
  margin-bottom: var(--space-4);
}

.contact-info>p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-8);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-white);
}

.contact-detail-text h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-detail-text p,
.contact-detail-text a {
  color: var(--color-gray-600);
  margin-bottom: 0;
}

.contact-detail-text a:hover {
  color: var(--color-primary);
}

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 83, 92, 0.1);
}

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

/* ================================
   CTA Section
   ================================ */
.cta-section {
  text-align: center;
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.cta-section .btn-accent {
  box-shadow: var(--shadow-xl);
}

/* ================================
   Footer
   ================================ */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-800);
  font-size: var(--text-sm);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

.footer-bottom a {
  color: var(--color-gray-400);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ================================
   Page Header
   ================================ */
.page-header {
  padding: var(--space-24) 0 var(--space-16);
  background: linear-gradient(135deg, var(--color-cream) 0%, #e8f4f3 100%);
  text-align: center;
  margin-top: 80px;
}

.page-header h1 {
  margin-bottom: var(--space-4);
}

.page-header p {
  color: var(--color-gray-600);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Query for reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ================================ */

/* ---- Tablet (768px - 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-header {
    margin-bottom: var(--space-12);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
  }

  .therapist-section {
    gap: var(--space-10);
  }

  .contact-grid {
    gap: var(--space-10);
  }

  .pricing-cards {
    gap: var(--space-6);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* ---- Mobile Large (481px - 768px) ---- */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.375rem;
    --text-2xl: 1.25rem;
    --space-24: 4rem;
    --space-20: 3.5rem;
    --space-16: 3rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  /* Navigation - Mobile Menu */
  .nav {
    padding: var(--space-3) 0;
  }

  .nav.scrolled {
    padding: var(--space-2) 0;
  }

  .nav-container {
    padding: 0 var(--space-4);
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
    padding: var(--space-3);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-5);
    padding: var(--space-6);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right var(--transition-base);
    z-index: 1000;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: -1;
  }

  .nav-menu.active::before {
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--color-gray-100);
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    padding: var(--space-4) var(--space-6);
    margin-top: var(--space-4);
  }

  /* Hero - Mobile */
  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-10)) 0 var(--space-12);
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-badge {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-4);
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: var(--space-4);
    line-height: 1.15;
  }

  .hero-text {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-features {
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
  }

  .hero-feature {
    justify-content: flex-start;
  }

  /* Buttons - Mobile touch targets */
  .btn {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    min-height: 48px;
    min-width: 48px;
  }

  /* Sections - Mobile */
  .section {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-header h2 {
    font-size: var(--text-3xl);
  }

  .section-header p {
    font-size: var(--text-base);
  }

  /* Service Cards - Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .service-card {
    padding: var(--space-6);
  }

  .service-card:hover {
    transform: none;
  }

  .service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-4);
  }

  .service-icon svg {
    width: 24px;
    height: 24px;
  }

  .service-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Process Steps - Mobile */
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .process-step {
    padding: var(--space-6);
  }

  .process-step::before {
    font-size: var(--text-3xl);
    top: var(--space-4);
    right: var(--space-4);
  }

  /* Therapist Section - Mobile */
  .therapist-section {
    grid-template-columns: 1fr !important;
    gap: var(--space-8);
    text-align: center;
  }

  .therapist-image {
    max-width: 300px;
    margin: 0 auto;
    order: -1;
  }

  /* Hide decorative images on mobile for text-heavy sections */
  .therapist-section .therapist-image:has(.therapist-image-wrapper svg) {
    display: none;
  }

  /* Alternative: hide any therapist-image that's just decorative (no actual photo) */
  .section-light .therapist-section .therapist-image,
  .section .therapist-section .therapist-image {
    display: none;
  }

  /* Show only on therapist page where there's an actual bio photo */
  .therapist-section:only-child .therapist-image {
    display: block;
  }

  .therapist-image::before {
    top: var(--space-4);
    left: var(--space-4);
    right: calc(var(--space-4) * -1);
    bottom: calc(var(--space-4) * -1);
  }

  .therapist-content {
    text-align: left !important;
  }

  .therapist-specialties {
    justify-content: flex-start;
  }

  .specialty-tag {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  /* EMDR Phases - Mobile */
  .emdr-phases {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .emdr-phase {
    padding: var(--space-5);
  }

  .emdr-phase:hover {
    transform: none;
  }

  /* FAQ - Mobile */
  .faq-question {
    padding: var(--space-5);
    font-size: var(--text-base);
    min-height: 56px;
  }

  .faq-answer-content {
    padding: 0 var(--space-5) var(--space-5);
  }

  /* Pricing Cards - Mobile */
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .pricing-card {
    padding: var(--space-8);
  }

  .pricing-card:hover {
    transform: none;
  }

  .pricing-card .price {
    font-size: var(--text-4xl);
  }

  /* Contact - Mobile */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .contact-info {
    padding: var(--space-4);
  }

  .contact-form-wrapper {
    padding: var(--space-6);
  }

  .contact-detail {
    text-align: left;
  }

  .contact-detail-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: var(--space-4);
    font-size: 16px;
    /* Prevents iOS zoom */
    min-height: 48px;
  }

  /* CTA Section - Mobile */
  .cta-section {
    padding: var(--space-12) 0;
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
  }

  .cta-section p {
    font-size: var(--text-base);
  }

  /* Credentials - Mobile */
  .credentials {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }

  .credential-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
  }

  /* Footer - Mobile */
  .footer {
    padding: var(--space-10) 0 var(--space-6);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .footer-brand {
    order: -1;
  }

  .footer-links {
    align-items: center;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  /* Page Header - Mobile */
  .page-header {
    padding: var(--space-16) 0 var(--space-10);
    margin-top: 60px;
  }

  .page-header h1 {
    font-size: var(--text-3xl);
  }

  .page-header p {
    font-size: var(--text-base);
    padding: 0 var(--space-2);
  }
}

/* ---- Mobile Small (320px - 480px) ---- */
@media (max-width: 480px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.125rem;
    --text-lg: 1rem;
  }

  .container {
    padding: 0 var(--space-3);
  }

  .hero {
    padding: calc(70px + var(--space-8)) 0 var(--space-10);
  }

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

  .hero-badge {
    font-size: 0.65rem;
    padding: var(--space-1) var(--space-2);
  }

  .hero-text {
    font-size: var(--text-sm);
  }

  .hero-feature-icon {
    width: 36px;
    height: 36px;
  }

  .hero-feature-icon svg {
    width: 18px;
    height: 18px;
  }

  .hero-feature span {
    font-size: var(--text-xs);
  }

  .section {
    padding: var(--space-10) 0;
  }

  .service-card,
  .process-step,
  .pricing-card {
    padding: var(--space-5);
  }

  .contact-form-wrapper {
    padding: var(--space-5);
  }

  .pricing-card .price {
    font-size: var(--text-3xl);
  }

  .footer h4 {
    font-size: var(--text-base);
  }

  .therapist-image {
    max-width: 250px;
  }

  .cta-section h2 {
    font-size: var(--text-xl);
  }

  .cta-section .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ---- Ultra Wide (1400px+) ---- */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

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

  .section {
    padding: var(--space-24) 0;
  }
}

/* ---- Touch Device Optimizations ---- */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch devices */
  .service-card:hover,
  .pricing-card:hover,
  .emdr-phase:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  .service-card:hover::before {
    transform: scaleX(0);
  }

  /* Make tap targets larger */
  .nav-link,
  .footer-links a,
  .service-link {
    min-height: 48px;
  }

  /* Add active states for feedback */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .service-card:active,
  .faq-question:active {
    background: var(--color-gray-50);
  }
}

/* ---- Landscape Phone ---- */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(70px + var(--space-6)) 0 var(--space-8);
  }

  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-menu {
    padding-top: var(--space-16);
    justify-content: flex-start;
    overflow-y: auto;
  }
}

/* ---- Safe Area for Notched Devices ---- */
@supports (padding: max(0px)) {
  .nav-container {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
  }

  .nav-menu {
    padding-bottom: max(var(--space-8), env(safe-area-inset-bottom));
  }
}