/* Miles 2 Wisdom Counseling - Unified Stylesheet */

:root {
  --blue: #A9C9FF;
  --beige: hsl(33, 38%, 94%);
  --sage: #A7C4A0;
  --charcoal: #333;
  --ink: #1f1f1f;
  --muted: #6b7280;
  --white: #fff;
  --maxw: 1100px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: linear-gradient(180deg, var(--beige), #fff 45%);
  font-family: Lato, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-smooth);
}

a:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles - Unified across all pages */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 40px;
  transition: all var(--transition-smooth);
  will-change: transform, padding, box-shadow;
}

header.shrink {
  padding: 12px 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.95);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all var(--transition-smooth);
  flex: 0 0 auto;
}

.brand:hover {
  transform: translateY(-1px);
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: all var(--transition-smooth);
  will-change: transform;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header.shrink .logo {
  transform: scale(0.85);
  width: 50px;
  height: 50px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand h1 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all var(--transition-smooth);
  line-height: 1.2;
}

header.shrink .brand h1 {
  font-size: 1.1rem;
}

.tagline {
  font-size: 0.8rem;
  color: var(--muted);
  transition: all var(--transition-smooth);
  line-height: 1.1;
}

header.shrink .tagline {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Navigation Styles */
nav[aria-label="Main Navigation"] {
  position: relative;
  flex: 1 1 auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  transition: all var(--transition-smooth);
}

nav li {
  position: relative;
  transition: all var(--transition-smooth);
}

nav a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(169, 201, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover,
nav a:focus {
  background: rgba(169, 201, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(169, 201, 255, 0.2);
}

nav ul li .btn {
  padding: 14px 18px;
  font-size: 0.92rem;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
}

.menu-btn {
  display: none;
  border: none;
  background: var(--charcoal);
  color: white;
  font-size: 1.5rem;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-bounce);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-btn:hover {
  background: var(--blue);
  transform: scale(1.05);
}

.menu-btn:active {
  transform: scale(0.95);
}

/* Mobile Navigation */
@media (max-width: 1200px) {
  nav ul li .btn { 
    padding: 6px 10px; 
    font-size: 0.9rem; 
  }
  header { 
    padding-left: 20px; 
    padding-right: 20px; 
  }
}

@media (max-width: 980px) {
  .nav { 
    flex-wrap: wrap; 
  }
  nav ul { 
    justify-content: center; 
    gap: 8px; 
  }
}

@media (max-width: 840px) {
  nav[aria-label="Main Navigation"] ul {
    position: fixed;
    top: 0;
    left: -50vw;
    width: 50vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 0;
    margin: 0;
    transition: left 0.45s cubic-bezier(.2, .9, .3, 1), box-shadow 0.3s;
    z-index: 9999;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
  }

  nav[aria-label="Main Navigation"] ul.open {
    left: 0;
  }

  nav[aria-label="Main Navigation"] ul li {
    opacity: 0;
    transform: translateX(-24px);
    transition: transform 0.35s ease, opacity 0.35s ease;
    list-style: none;
    width: 100%;
    text-align: center;
  }

  nav[aria-label="Main Navigation"] ul.open li {
    opacity: 1;
    transform: translateX(0);
  }

  nav[aria-label="Main Navigation"] ul.open li:nth-child(1) { transition-delay: 0.08s; }
  nav[aria-label="Main Navigation"] ul.open li:nth-child(2) { transition-delay: 0.14s; }
  nav[aria-label="Main Navigation"] ul.open li:nth-child(3) { transition-delay: 0.18s; }
  nav[aria-label="Main Navigation"] ul.open li:nth-child(4) { transition-delay: 0.22s; }
  nav[aria-label="Main Navigation"] ul.open li:nth-child(5) { transition-delay: 0.26s; }
  nav[aria-label="Main Navigation"] ul.open li:nth-child(6) { transition-delay: 0.30s; }

  .menu-btn {
    display: block;
    position: fixed;
    top: 12px;
    right: 16px;
    z-index: 10001;
    background: var(--charcoal);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }

  header {
    z-index: 10002;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--charcoal);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.alt {
  background: var(--sage);
  color: #0b1a10;
}

.btn.alt:hover {
  background: #8fb087;
}

/* Hero Section Styles */
.hero {
  position: relative;
  overflow: hidden;
  height: 120vh;
  margin-top: -80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .wrap {
  text-align: center;
  color: white;
  z-index: 3;
  max-width: 700px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero h2 {
  font-family: Lora, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

/* Slideshow Styles */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slideshow-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 1;
}

.slideshow-inner img.active {
  opacity: 1;
  z-index: 2;
}

.slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  z-index: 2;
}

.slideshow-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slideshow-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.slideshow-dots .dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.slideshow-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

/* Page Layout Styles */
main {
  padding: 60px 0;
}

.page-title {
  font-family: Lora, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 700;
}

.lead {
  color: #374151;
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.section {
  padding: 40px 0;
}

.section h2 {
  font-family: Lora, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
  font-weight: 600;
}

/* Grid & Card Styles */
.grid {
  display: grid;
  gap: 24px;
}

.two-col {
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-smooth);
  opacity: 1;
  transform: translateY(0);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card h3 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.card p {
  color: #374151;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Form Styles - Complete Implementation */
.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.form-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 2fr 1fr;
  align-items: start;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.field label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: white;
  font-size: 16px;
  font-family: inherit;
  transition: all var(--transition-smooth);
  width: 100%;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(169, 201, 255, 0.15);
  transform: translateY(-2px);
}

.field input.valid {
  border-color: var(--sage);
  background: rgba(167, 196, 160, 0.05);
}

.field input.error,
.field textarea.error,
.field select.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field-help {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* Checkbox Group Styles for Consultation Form */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: normal;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition-smooth);
}

.checkbox-option:hover {
  background: rgba(169, 201, 255, 0.05);
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

.checkbox-option span {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.4;
}

.field-error {
  color: #ef4444;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: white;
  padding: 16px 28px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 48px;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.form-message {
  font-weight: 600;
  padding: 8px 0;
  border-radius: 6px;
}

.form-message.success {
  color: var(--sage);
}

.form-message.error {
  color: #ef4444;
}

/* Success Message Card */
.success-card {
  display: none;
  background: linear-gradient(135deg, #e8fbe9, #f0fdf4);
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

.success-card h3 {
  font-family: Lora, serif;
  color: var(--charcoal);
  margin-bottom: 16px;
  font-size: 1.4rem;
}

.success-card p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 12px;
}

.success-card p:last-child {
  margin-bottom: 0;
}

/* Sidebar Styles */
.sidebar-card {
  position: sticky;
  top: 100px;
}

.info-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-section h4 {
  font-family: Lora, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.info-section p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section ul {
  margin-left: 16px;
  color: #374151;
  font-size: 0.9rem;
}

.info-section ul li {
  margin-bottom: 4px;
}

/* Behavioral Health Section */
.behavioral-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.behavioral-grid img {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.behavioral-text {
  flex: 1.2;
  min-width: 300px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  text-align: center;
}

.service-card img {
  width: 100%;
  max-width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Team Page Styles */
.team-intro {
  text-align: center;
  margin-bottom: 60px;
}

.team-section {
  margin-bottom: 60px;
}

.section-title {
  font-family: Lora, serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--charcoal);
}

.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: none;
  justify-items: center;
}

.team-card {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.team-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-card h3 {
  font-family: Lora, serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--charcoal);
}

.team-card p {
  color: #374151;
  font-size: 0.9rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.team-role {
  background: linear-gradient(135deg, var(--blue), var(--sage));
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

/* Join Our Team Section Styles */
.join-team-section {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.05), rgba(167, 196, 160, 0.05));
  padding: 60px 0;
  margin: 80px 0;
  border-radius: var(--radius);
}

.join-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.join-info-card, .openings-card {
  padding: 40px;
}

.benefits-list, .openings-list {
  margin-top: 30px;
}

.benefit-item, .opening-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item:last-child, .opening-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.benefit-item h4, .opening-item h4 {
  font-family: Lora, serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 600;
}

.benefit-item p, .opening-item p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.opening-type {
  background: var(--sage);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.join-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.join-cta-banner {
  background: linear-gradient(135deg, var(--charcoal), #2d3748);
  color: white;
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
}

.join-cta-banner h3 {
  font-family: Lora, serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.join-cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  min-width: 160px;
}

/* Services Page Styles */
.services-intro {
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: none;
  justify-items: center;
}

.service-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  padding: 30px 20px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-family: Lora, serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--charcoal);
}

.service-card p {
  color: #374151;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-type {
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

.service-type.anxiety-depression {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-type.trauma {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-type.transitions {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-type.growth {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.service-type.couples {
  background: linear-gradient(135deg, #fa709a, #fee140);
}

.service-type.family {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.service-type.lgbtq {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.service-type.premarital {
  background: linear-gradient(135deg, #d299c2, #fef9d7);
}

.service-type.addiction {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-type.mindfulness {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.service-type.crisis {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.service-type.workplace {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}
.service-type.child {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

/* How We Help Section */
.help-section {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.05), rgba(167, 196, 160, 0.05));
  padding: 60px 0;
  margin: 80px 0;
  border-radius: var(--radius);
}

.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.help-info-card, .expect-card {
  padding: 40px;
}

.approach-list, .expect-list {
  margin-top: 30px;
}

.approach-item, .expect-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.approach-item:last-child, .expect-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.approach-item h4, .expect-item h4 {
  font-family: Lora, serif;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--charcoal);
  font-weight: 600;
}

.approach-item p, .expect-item p {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.expect-step {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--blue);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.insurance-banner {
  background: linear-gradient(135deg, var(--charcoal), #2d3748);
  color: white;
  padding: 50px;
  border-radius: var(--radius);
  text-align: center;
}

.insurance-banner h3 {
  font-family: Lora, serif;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.insurance-banner p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.insurance-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.feature-icon {
  background: var(--sage);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.insurance-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.insurance-cta .btn {
  min-width: 160px;
}

/* Mobile Services Layout */
@media (max-width: 768px) {
  .help-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .help-info-card, .expect-card {
    padding: 30px 20px;
  }
  
  .insurance-banner {
    padding: 40px 20px;
  }
  
  .insurance-banner h3 {
    font-size: 1.5rem;
  }
  
  .insurance-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .insurance-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
@media (max-width: 768px) {
  .join-team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .join-info-card, .openings-card {
    padding: 30px 20px;
  }
  
  .join-cta-banner {
    padding: 40px 20px;
  }
  
  .join-cta-banner h3 {
    font-size: 1.5rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* FAQ Styles */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  padding: 18px 20px;
  background: #f8fafc;
  border: none;
  outline: none;
  transition: all var(--transition-smooth);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  transition: all var(--transition-smooth);
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item summary:hover {
  background: rgba(169, 201, 255, 0.1);
}

.faq-item[open] summary {
  background: linear-gradient(90deg, rgba(169, 201, 255, 0.15), rgba(167, 196, 160, 0.08));
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer {
  padding: 20px;
  background: white;
  color: #374151;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Shop Styles */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product {
  display: flex;
  flex-direction: column;
}

.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shop Modal Styles */
.quick-view-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  padding: 20px;
}

.quick-view-modal.open {
  opacity: 1;
  visibility: visible;
}

.quick-view-content {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: scale(0.8) translateY(40px);
  transition: all var(--transition-smooth);
  max-height: 90vh;
  overflow-y: auto;
}

.quick-view-modal.open .quick-view-content {
  transform: scale(1) translateY(0);
}

.quick-view-content .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted);
  transition: all var(--transition-smooth);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.quick-view-content .close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ink);
}

.quick-view-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  display: block;
}

.quick-view-title {
  font-family: Lora, serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.quick-view-desc {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 24px;
}

.quick-view-buy {
  width: 100%;
  justify-content: center;
}

/* CTA Bar */
.cta-bar {
  background: linear-gradient(135deg, rgba(169, 201, 255, 0.9), rgba(167, 196, 160, 0.9));
  color: #0f172a;
  padding: 50px 20px;
  margin-top: 60px;
}

.cta-container {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: wrap;
  max-width: var(--maxw);
  margin: 0 auto;
}

.cta-section {
  flex: 1;
  text-align: center;
  padding: 30px;
  min-width: 250px;
}

.cta-section h3 {
  font-family: Lora, serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.cta-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.2);
  margin: 0 20px;
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #0f1419, #1a202c);
  color: #e2e8f0;
  padding: 50px 0 30px;
}

footer a {
  color: #cbd5e1;
  transition: all var(--transition-smooth);
}

footer a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

.footgrid {
  display: grid;
  gap: 30px;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.footgrid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footgrid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.footer-logo {
  grid-column: 1/-1;
  text-align: center;
  margin-top: 40px;
}

.footer-logo img {
  width: 80px;
  opacity: 0.7;
  transition: all var(--transition-smooth);
}

.footer-logo img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-copyright {
  grid-column: 1/-1;
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disclaimer {
  font-size: 0.85rem;
  color: #94a3b8;
}

.subtle {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out both;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out both;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .four-col {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  
  .team-members:has(.team-card:nth-child(4)) {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (min-width: 1024px) {
  .team-members:has(.team-card:nth-child(4)):not(:has(.team-card:nth-child(5))) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
  }
}

@media (max-width: 980px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .three-col,
  .services-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .four-col,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .behavioral-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .behavioral-grid img {
    width: 100%;
    max-width: 500px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .sidebar-card {
    position: static;
    order: -1;
  }
  
  .cta-container {
    flex-direction: column;
  }
  
  .cta-divider {
    height: 1px;
    width: 100%;
    margin: 20px 0;
  }
  
  .footgrid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .team-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .team-content {
    max-width: none;
    text-align: center;
  }
  
  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .three-col,
  .services-grid,
  .shop-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-members {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .team-card {
    max-width: 300px;
  }
  
  .hero {
    height: 100vh;
    margin-top: -60px;
  }
  
  .service-card {
    min-height: 250px;
  }
  
  main {
    padding: 40px 0;
  }
  
  .section {
    padding: 30px 0;
  }
  
  .card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 16px 20px;
  }
  
  header.shrink {
    padding: 10px 20px;
  }
  
  .brand {
    gap: 10px;
  }
  
  .brand h1 {
    font-size: 1.1rem;
  }
  
  header.shrink .brand h1 {
    font-size: 1rem;
  }
  
  .tagline {
    font-size: 0.75rem;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .form-container {
    padding: 0 16px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 18px;
  }
  
  .quick-view-content {
    padding: 30px 20px;
  }
  
  .quick-view-modal {
    padding: 10px;
  }
}