/* ===========================
   Scroll Animations
   =========================== */
html {
  scroll-behavior: smooth;
}

.fade-in-up,
.slide-in-left,
.slide-in-right,
.scale-up,
.slide-in-up {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up {
  transform: translateY(32px);
}

.slide-in-left {
  transform: translateX(-40px);
}

.slide-in-right {
  transform: translateX(40px);
}

.scale-up {
  transform: scale(0.94);
}

.slide-in-up {
  transform: translateY(24px);
}

.fade-in-up.is-visible,
.slide-in-left.is-visible,
.slide-in-right.is-visible,
.scale-up.is-visible,
.slide-in-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   Pulse CTA Animation
   =========================== */
@keyframes pulse-green {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 109, 54, 0.35);
  }

  50% {
    box-shadow: 0 0 0 12px rgba(0, 109, 54, 0);
  }
}

.pulse-anim {
  animation: pulse-green 2.4s ease-in-out infinite;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
  height: 72px;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 40px rgba(52, 104, 79, 0.08);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #191c1b;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Mobile Nav Menu
   =========================== */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    display: none !important;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    z-index: 850;
    background: rgba(248, 250, 247, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-link {
    font-size: 20px !important;
  }
}

/* ===========================
   Modal
   =========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 28, 27, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #ffffff;
  border-radius: 1.5rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.25s;
  box-shadow: 0 50px 60px rgba(52, 104, 79, 0.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #191c1b;
}

.modal-header p {
  font-size: 14px;
  color: #3d4a3e;
  margin-top: 4px;
}

.modal-close {
  background: #eceeeb;
  border: none;
  font-size: 20px;
  color: #3d4a3e;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #e7e9e6;
  color: #191c1b;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===========================
   Forms
   =========================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #191c1b;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  color: #191c1b;
  background: #ffffff;
  border: 1px solid #bccabb;
  border-radius: 0.5rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6d7b6d;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #006d36;
  box-shadow: 0 0 0 3px rgba(0, 109, 54, 0.15);
}

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

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 13px 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #006d36, #4ade80);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.92;
  transform: scale(0.99);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-msg {
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.form-msg.success {
  color: #006d36;
}

.form-msg.error {
  color: #ba1a1a;
}

/* ===========================
   Dedicated Page Styles
   =========================== */
.page-header {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
}

.page-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.page-header h1 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #191c1b;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.0625rem;
  color: #3d4a3e;
  line-height: 1.7;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #34684f;
  background: #b7efcf;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.page-header-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 40px 60px rgba(52, 104, 79, 0.08);
}

.page-header--no-image {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-header--no-image h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-content-section {
  padding: 4rem 0;
}

.page-content-inner {
  max-width: 760px;
  margin: 0 auto;
}

.page-content-inner h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #191c1b;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.page-content-inner h2:first-child {
  margin-top: 0;
}

.page-content-inner p,
.page-content-inner li {
  font-size: 1rem;
  color: #3d4a3e;
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.page-content-inner ul,
.page-content-inner ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content-inner ul li {
  list-style: disc;
}

.page-content-inner ol li {
  list-style: decimal;
}

.page-content-inner blockquote {
  background: #ffffff;
  border-left: 8px solid #6dfe9c;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #3d4a3e;
}

.cta-section {
  background: #f2f4f1;
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #191c1b;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.0625rem;
  color: #3d4a3e;
  margin-bottom: 2rem;
}

/* Blog listing */
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-listing-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 40px rgba(52, 104, 79, 0.05);
}

.blog-listing-card h3 a {
  color: #191c1b;
  text-decoration: none;
  transition: color 0.2s;
}

.blog-listing-card h3 a:hover {
  color: #006d36;
}

.blog-listing-card p {
  font-size: 0.9375rem;
  color: #3d4a3e;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .page-header-inner {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .page-header-image {
    order: -1;
  }

  .blog-listing-grid {
    grid-template-columns: 1fr;
  }
}