/* ========================================
   Amanda Berman Levy, LCSW — Custom Styles
   ======================================== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Body base */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========== Navigation ========== */
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4c5a3e; /* sage-700 */
  border-radius: 0.5rem;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #60724d; /* sage-600 */
  background-color: #e8ebe3; /* sage-100 */
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4c5a3e;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
}

.mobile-nav-link:hover {
  background-color: #e8ebe3;
}

/* Nav shadow on scroll */
#navbar.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ========== Approach Tags ========== */
.approach-tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #60724d;
  background-color: #e8ebe3;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.approach-tag:hover {
  background-color: #d4dac9;
}

.approach-clickable {
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.approach-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.approach-clickable.active-approach {
  background-color: #60724d;
  color: white;
}

/* Approach detail panel animation */
#approach-detail {
  animation: fadeSlideDown 0.25s ease-out;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Specialty Cards ========== */
.specialty-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e8ebe3;
  transition: transform 0.3s, box-shadow 0.3s;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.specialty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}

/* ========== Expertise Groups ========== */
.expertise-group {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e8ebe3;
}

.expertise-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: #3f4a34;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8ebe3;
}

.expertise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-list li {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #4b5563;
  padding-left: 1.25rem;
  position: relative;
}

.expertise-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #b5c0a4;
}

/* ========== Population Tags ========== */
.population-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4c5a3e;
  background-color: #f6f7f4;
  border: 1px solid #d4dac9;
  border-radius: 9999px;
}

/* ========== FAQ Accordion ========== */
.faq-item {
  background: white;
  border-radius: 1rem;
  border: 1px solid #e8ebe3;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* ========== Form Styles ========== */
input:focus,
textarea:focus {
  border-color: #96a67e !important;
  box-shadow: 0 0 0 3px rgba(150, 166, 126, 0.15) !important;
}

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

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

/* Stagger delays */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7a8e63;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== Print Styles ========== */
@media print {
  /* Hide interactive/non-printable elements */
  nav,
  #back-to-top,
  #mobile-cta,
  #contact-form button[type="submit"],
  .mobile-nav-link,
  #self-check,
  .parallax-shapes,
  #quote-dots,
  iframe {
    display: none !important;
  }

  /* Remove decorative effects */
  .specialty-card, footer {
    box-shadow: none !important;
    transform: none !important;
  }

  /* Expand all FAQ answers */
  .faq-answer {
    max-height: none !important;
    padding: 0 1.5rem 1rem !important;
    overflow: visible !important;
  }

  .faq-chevron {
    display: none !important;
  }

  /* Show URLs for links */
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  /* Remove background colors for ink saving */
  body, section, .bg-sage-50, .bg-cream-50 {
    background: white !important;
  }

  /* Ensure content doesn't break across pages poorly */
  .specialty-card, .expertise-group, .faq-item {
    break-inside: avoid;
  }

  /* Add top margin since nav is hidden */
  #home {
    padding-top: 1rem !important;
  }
}

/* ========== Parallax Hero Shapes ========== */
.parallax-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  will-change: transform;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #96a67e, transparent 70%);
  top: -100px;
  right: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #8ec6d8, transparent 70%);
  bottom: -50px;
  left: -80px;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #e9bfa9, transparent 70%);
  top: 40%;
  left: 50%;
}

/* ========== Quote Rotator ========== */
.quote-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.quote-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.quote-dot.active {
  background-color: #7a8e63 !important;
  transform: scale(1.3);
}

/* ========== Social Proof Counters ========== */
.counter-item {
  padding: 0.5rem;
}

/* ========== What to Expect Timeline ========== */
.timeline-container {
  position: relative;
  padding-left: 2rem;
}

/* Vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #d4dac9, #b5c0a4, #d4dac9);
}

.timeline-step {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: -2rem;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: #60724d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 1;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content {
  background: #f6f7f4;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #e8ebe3;
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

/* ========== Insurance Verification Helper ========== */
.insurance-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: white;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #dceef5;
}

.insurance-step-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: #5dabc2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ========== Self-Check Widget ========== */
.sc-question {
  display: none;
  animation: fadeSlideDown 0.35s ease-out;
}

.sc-question.active {
  display: block;
}

.sc-btn {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.sc-yes {
  background: #60724d;
  color: white;
  border-color: #60724d;
}

.sc-yes:hover {
  background: #4c5a3e;
  border-color: #4c5a3e;
}

.sc-no {
  background: white;
  color: #4c5a3e;
  border-color: #d4dac9;
}

.sc-no:hover {
  background: #f6f7f4;
  border-color: #b5c0a4;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f6f7f4;
}

::-webkit-scrollbar-thumb {
  background: #b5c0a4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #96a67e;
}
