/* ===================================
   SHARED STYLES
   ===================================
   Contains common styles used across all pages
   Includes header, navigation, footer, and utility styles
*/

/* ===== SHARED HEADER STYLES ===== */
.header-bg {
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(106, 153, 78, 0.18) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(46, 83, 57, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(106, 153, 78, 0.12) 0%,
      transparent 35%
    ),
    radial-gradient(
      circle at 75% 10%,
      rgba(46, 83, 57, 0.1) 0%,
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(220, 238, 204, 0.85) 0%,
      rgba(240, 247, 236, 0.9) 50%,
      rgba(245, 245, 245, 0.85) 100%
    );
  border-bottom: 2px solid rgba(106, 153, 78, 0.25);
  box-shadow: 0 2px 10px rgba(106, 153, 78, 0.1);
}

.logo-gradient {
  background: linear-gradient(135deg, #2e5339 0%, #6a994e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6a994e, #2e5339);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item:hover::before {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, #6a994e 0%, #2e5339 100%);
  box-shadow: 0 4px 15px rgba(106, 153, 78, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 153, 78, 0.4);
}

/* ===== SHARED STICKY HEADER STYLES ===== */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  background: rgba(245, 245, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(106, 153, 78, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.sticky-header .nav-item {
  position: relative;
  overflow: hidden;
}

.sticky-header .nav-item::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6a994e, #2e5339);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.sticky-header .nav-item:hover::before {
  width: 100%;
}

.sticky-header .cta-button {
  background: linear-gradient(135deg, #6a994e 0%, #2e5339 100%);
  box-shadow: 0 2px 8px rgba(106, 153, 78, 0.3);
  transition: all 0.3s ease;
}

.sticky-header .cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(106, 153, 78, 0.4);
}

/* ===== GENERAL UTILITY STYLES ===== */
/* Custom styles for smooth scrolling and other enhancements */
html {
  scroll-behavior: smooth;
}

/* Body padding for fixed header on all pages */
body.has-sticky-header {
  padding-top: 56px; /* Height of the sticky header */
}

/* Ensure main content flows properly under fixed header */
body.has-sticky-header main {
  margin-top: 0;
  padding-top: 0;
}

/* Style to prevent body scroll when modal is open */
.modal-open {
  overflow: hidden;
}

/* Screen reader only content */
.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;
}

.sr-only.focus:not-sr-only,
.sr-only.focus:not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Styling for generated blog posts and privacy policy */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #2e5339;
  margin-bottom: 0.5rem; /* Added margin for spacing */
}
.prose p {
  color: #374151;
  margin-top: 0;
  margin-bottom: 1rem; /* Added margin for spacing */
}
.prose a {
  color: #6a994e;
  font-weight: 600;
}
.prose a:hover {
  text-decoration: underline;
}
.prose ul {
  list-style-type: disc;
  list-style-position: outside;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.prose li {
  margin-bottom: 0.25rem;
  padding-left: 0.25rem;
}
