:root {
  /* Cottage Core Color Palette */
  --sage-50: #f6f7f4;
  --sage-100: #e8ebe4;
  --sage-200: #d1d7c9;
  --sage-300: #b0bda3;
  --sage-400: #8a9b78;
  --sage-500: #8a9b78;
  --sage-600: #526345;
  --sage-700: #424f39;
  --sage-800: #363f30;
  --sage-900: #2d3429;
  
  --cream: #faf9f6;
  --warm-white: #fdfcfb;
  --charcoal: #2c2c2c;
  --soft-black: #1a1a1a;
  
  /* Accent colors */
  --fern: #4a6741;
  --feather: #8b7355;
  --blush: #e8d5d0;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 6rem;
  --container-max: 1200px;
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(107, 127, 90, 0.08);
  --shadow-medium: 0 8px 30px rgba(107, 127, 90, 0.12);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--warm-white);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--sage-800);
}

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

a {
  color: var(--sage-600);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--fern);
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(253, 252, 251, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
}

/* Desktop nav */
.site-nav, .site-nav .container {
  position: relative;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-cta {
  background: var(--sage-600);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
}

/* Mobile hamburger (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.mobile-menu-btn .hamburger {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--sage-700);
  position: relative;
}

.mobile-menu-btn .hamburger::before,
.mobile-menu-btn .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--sage-700);
}

.mobile-menu-btn .hamburger::before {
  top: -8px;
}

.mobile-menu-btn .hamburger::after {
  top: 8px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--cream) 50%, var(--blush) 100%);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 25 L55 30 L35 35 L30 55 L25 35 L5 30 L25 25 Z' fill='%236b7f5a' fill-opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-45px);
}

.hero-logo img {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
}

.hero-badge {
  display: inline-block;
  background: var(--sage-100);
  color: var(--sage-700);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--sage-800);
  font-family: var(--font-heading);
}

.hero h1 em {
  color: var(--fern);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--sage-600);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--sage-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
  background: var(--sage-50);
  border-color: var(--sage-400);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: var(--sage-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder::before {
  content: '🌿';
  font-size: 8rem;
  opacity: 0.3;
}

/* Page Hero (Services, FAQ, etc.) */
.page-hero {
  background: linear-gradient(135deg, var(--sage-50) 0%, var(--cream) 50%, var(--blush) 100%);
  padding: 80px 20px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  color: var(--sage-800);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.25rem;
  color: var(--sage-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Styling */
section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--sage-600);
  font-size: 1.15rem;
}

/* Services Section */
.services {
  background: var(--cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

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

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--sage-700);
}

.service-card p {
  color: var(--sage-600);
  margin-bottom: 1.5rem;
}

.learn-more {
  font-weight: 600;
  color: var(--fern);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.learn-more::after {
  content: '→';
  transition: var(--transition-smooth);
}

.learn-more:hover::after {
  transform: translateX(5px);
}

/* About Section */
.about {
  background: var(--sage-50);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  background: white;
  padding: 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  transform: rotate(-2deg);
  transition: var(--transition-smooth);
}

.about-image-frame:hover {
  transform: rotate(0deg);
}

.about-image-placeholder {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sage-200), var(--blush));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--sage-700);
}

.credentials-list {
  list-style: none;
  margin: 2rem 0;
}

.credentials-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--sage-600);
}

.credentials-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--fern);
  font-weight: bold;
}

/* Why Choose Us */
.why-us {
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--sage-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.feature-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.feature-item p {
  color: var(--sage-600);
  font-size: 1rem;
}

/* Lead Magnet Section */
.lead-magnet {
  background: linear-gradient(135deg, var(--sage-600), var(--fern));
  color: white;
  position: relative;
  overflow: hidden;
}

.lead-magnet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 L55 40 L90 50 L55 60 L50 90 L45 60 L10 50 L45 40 Z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.lead-magnet .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lead-magnet-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.lead-magnet-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.lead-magnet-form {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--sage-700);
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--sage-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.form-group input:focus {
  outline: none;
  border-color: var(--sage-400);
}

.lead-magnet-form .btn {
  width: 100%;
}

.form-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--sage-500);
}

/* Testimonials */
.testimonials {
  background: var(--cream);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--sage-200);
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--sage-700);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  background: var(--sage-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--sage-800);
}

.testimonial-title {
  font-size: 0.9rem;
  color: var(--sage-500);
}

/* FAQ Section */
.faq {
  background: white;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--sage-200);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--sage-800);
  font-size: 1.1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--sage-400);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--fern);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
  color: var(--sage-600);
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 1rem;
}

/* Footer */
.footer {
  background: var(--sage-800);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--sage-600);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

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

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Footer Mailing List Form */
.footer #ml-signup-form {
  display: flex;
  gap: 10px;
  max-width: 450px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.footer #ml-signup-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  box-sizing: border-box;
}

.footer #ml-signup-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer #ml-signup-form input[type="email"]:focus {
  border-color: var(--sage-400);
  box-shadow: 0 0 0 3px rgba(176, 189, 163, 0.2);
}

.footer #ml-signup-form button,
.footer #ml-submit-btn,
.footer #ml-submit-btn-footer {
  background: var(--sage-600);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: var(--font-body);
  white-space: nowrap;
}

.footer #ml-signup-form button:hover,
.footer #ml-submit-btn:hover,
.footer #ml-submit-btn-footer:hover {
  background: var(--sage-700);
}

@media (max-width: 480px) {
  .footer #ml-signup-form {
    flex-direction: column;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  :root { --section-padding: 4rem; }
  section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }
  .hero .container,
  .about .container,
  .lead-magnet .container { gap: 2rem !important; }
  .nav-links { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
  .therapist-hero .container { gap: 2rem !important; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Hide desktop nav links and show hamburger */
  .nav-links {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block !important;
  }

  /* When mobile menu is open */
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 252, 251, 0.98);
    padding: 1rem 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
  }

  .nav-links.mobile-open a {
    text-transform: none;
    font-size: 1rem;
    color: var(--sage-700);
    padding: 0.5rem 0;
    display: block;
  }

  .nav-links.mobile-open .nav-cta {
    align-self: start;
    margin-top: 0.5rem;
  }

  .hero .container,
  .about .container,
  .lead-magnet .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-logo {
    order: 1;
    transform: none;
    margin-bottom: -1rem;
  }

  .hero-image {
    order: 1;
  }

  .hero-buttons {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

    /* Reduce section padding on mobile */
    :root { --section-padding: 3rem; }
    section { padding: 3rem 0; }
    .container { padding: 0 1rem; }

    /* Stack all grids to single column to avoid overflow on small screens */
    .services-grid,
    .features-grid,
    .testimonial-grid,
    .blog-grid,
    .tools-grid,
    .crisis-grid,
    .pricing-grid,
    .why-cards,
    .therapist-preview,
    .resources-grid,
    .specialties-grid,
    .contact-grid {
      grid-template-columns: 1fr !important;
      gap: 1.5rem !important;
    }

        /* Services page: stack inline two-column grids on mobile */
        .services-detail .container > div[style*="grid-template-columns"] {
          grid-template-columns: 1fr !important;
          gap: 2rem !important;
        }

    /* Reduce card padding on mobile */
    .service-card,
    .testimonial-card,
    .tool-card,
    .crisis-card,
    .specialty-item,
    .resource-card {
      padding: 1.5rem !important;
    }

    /* Hero adjustments */
    .hero { min-height: auto; padding-top: 100px; padding-bottom: 2rem; }
    .hero-logo { transform: none; }
    .hero-logo img { max-width: 100%; }
    .page-hero { padding: 60px 15px; }

    /* Lead-magnet stack */
    .lead-magnet .container {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
    }
    .lead-magnet-content { text-align: center; }

    /* Section header margin */
    .section-header { margin-bottom: 2.5rem !important; }

    /* Footer padding */
    .footer { padding: 2.5rem 0 1.5rem; }

    /* Therapist hero: stack columns and center text */
    .therapist-hero { min-height: auto !important; padding-top: 90px !important; padding-bottom: 2rem !important; }
    .therapist-hero .container { grid-template-columns: 1fr !important; gap: 2rem !important; }
    .therapist-info { text-align: center; }
    .credentials-banner { max-width: 100%; flex-wrap: wrap; justify-content: center; }
    .specialty-tags { flex-wrap: wrap; justify-content: center; }
  }

  /* Small Mobile */
  @media (max-width: 480px) {
    .container { padding: 0 0.75rem; }
    body { font-size: 1rem; }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    section { padding: 2.5rem 0; }

    .btn {
      padding: 0.75rem 1.25rem;
      font-size: 0.9rem;
    }
    .hero-buttons { flex-direction: column; gap: 0.75rem; align-items: stretch; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .service-card,
    .testimonial-card,
    .tool-card,
    .consultation-form,
    .lead-magnet-form,
    .crisis-card,
    .specialty-item,
    .resource-card { padding: 1.25rem !important; }

    .page-hero { padding: 50px 12px; }
    .section-header { margin-bottom: 2rem !important; }
    .section-header p { font-size: 1rem; }

    /* Newsletter signup form: stack vertically */
    #ml-signup-form { flex-direction: column; gap: 0.5rem; }
    #ml-signup-form input[type="email"] { flex: none; width: 100%; }

    /* Consultation form & contact grid */
    .consultation-form { padding: 1.25rem !important; }
    .contact-section { padding: 2rem 1rem !important; }

    /* Blog/crisis/tools hero compact on very small screens */
    .blog-hero,
    .crisis-hero,
    .tools-hero,
    .resources-hero { padding: 50px 12px !important; }
    .blog-hero h1, .crisis-hero h1, .tools-hero h1, .resources-hero h1 { font-size: 1.5rem !important; }
    .blog-hero p, .crisis-hero p, .tools-hero p, .resources-hero p { font-size: 0.9rem !important; }

    /* Footer */
    .footer { padding: 2rem 0 1rem; }
    .footer-grid { gap: 1.5rem; }
  }

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--sage-100);
}

::-webkit-scrollbar-thumb {
  background: var(--sage-400);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--sage-500);
}

/* Selection Color */
::selection {
  background: var(--sage-200);
  color: var(--sage-800);
}

/* Dropdown Styling */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none; /* hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--cream);
  box-shadow: var(--shadow-soft);
  border-radius: 10px;
  padding: 0.5rem 0;
  margin-top: 0.25rem;
  list-style: none;
  min-width: 200px;
  z-index: 1001; /* Ensure dropdown is above other content */
  display: none;
}

/* Desktop: show dropdown on hover */
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sage-600);
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: var(--sage-50);
  color: var(--fern);
  border-radius: 6px;
}

/* Responsive Adjustments for Navigation */
@media (max-width: 768px) {
  .dropdown-toggle {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* On mobile, dropdown becomes a stacked block inside the mobile nav */
  .dropdown-menu {
    display: none; /* keep hidden until active */
    position: static;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    background-color: rgba(253, 252, 251, 0.95);
    padding: 0.5rem 1rem;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  /* When active on mobile, show stacked */
  .dropdown.active .dropdown-menu,
  .dropdown .dropdown-menu[style*="display: block"] {
    display: flex;
    flex-direction: column;
  }
  
  .dropdown-menu a {
    padding: 0.75rem 0.5rem;
  }
}

/* Utility */
.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; }

/* Footer mailing-list signup form (#ml-signup-form) */
.ml-custom-form-container { max-width: 420px; margin: 0 auto; }
#ml-signup-form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
#ml-signup-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 0.75rem 1rem; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08);
  color: #fff; font-size: 1rem; box-sizing: border-box;
}
#ml-signup-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
#ml-signup-form input[type="email"]:focus { outline: 2px solid var(--fern, #4a6741); outline-offset: 1px; }
#ml-submit-btn {
  padding: 0.75rem 1.5rem; border: none; border-radius: 50px; cursor: pointer;
  background: var(--fern, #4a6741); color: #fff; font-weight: 600; font-size: 1rem;
}
#ml-submit-btn:hover { background: #3a5234; }
#ml-submit-btn:disabled { opacity: 0.7; cursor: default; }
.form-confirmation { animation: ff-fade-in 0.3s ease; }
@keyframes ff-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
