/* ============================================================
   Seeds of Success — Common CSS
   Shared reset, typography, layout, navbar, footer, buttons,
   forms, animations and responsive navigation.
   ============================================================ */

/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 70px;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: #1f2d2a;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /*animation: pageFadeIn 0.35s ease both;*/
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-soft { background: #f5f9f7; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Section titles */
.section-title,
.role-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2,
.role-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: #0d6e4f;
  margin-bottom: 12px;
}
.section-title p,
.role-title p {
  color: #5a6b66;
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
}
.section-title::after,
.role-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #f5a623;
  margin: 18px auto 0;
  border-radius: 2px;
}

/* Fixed header / navbar */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 70px;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.nav-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: #0d6e4f;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d6e4f, #f5a623);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  object-fit: cover;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 15px;
  color: #1f2d2a;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.nav-links a:hover { background: #f5f9f7; color: #0d6e4f; }
.nav-links a.active { color: #0d6e4f; font-weight: 600; }
.nav-cta {
  background: #0d6e4f;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #0a5239 !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #0d6e4f;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-dark { background: #0d6e4f; color: #fff; }
.btn-dark:hover { background: #0a5239; transform: translateY(-2px); }
.btn-amber { background: #f5a623; color: #1f2d2a; }
.btn-amber:hover { background: #e29515; transform: translateY(-2px); }
.btn-donate { background: #f5a623; color: #1f2d2a; padding: 14px 36px; border-radius: 30px; font-weight: 600; font-size: 15px; border: none; cursor: pointer; transition: all 0.25s ease; }
.btn-donate:hover { background: #e29515; transform: translateY(-2px); }
.btn-donate-outline { background: transparent; color: #0d6e4f; border: 2px solid #0d6e4f; padding: 12px 32px; border-radius: 30px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.25s ease; font-family: inherit; }
.btn-donate-outline:hover { background: #0d6e4f; color: #fff; }
.btn.back-home { display: inline-block; text-decoration: none; text-align: center; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label,
.vol-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1f2d2a;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea,
.vol-group input,
.vol-group select,
.vol-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8e2dd;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: #1f2d2a;
  background: #ffffff;
  transition: all 0.2s ease;
}
.form-group textarea,
.vol-group textarea { min-height: 90px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.vol-group input:focus,
.vol-group select:focus,
.vol-group textarea:focus {
  outline: none;
  border-color: #0d6e4f;
  box-shadow: 0 0 0 3px rgba(13,110,79,0.10);
}
.form-row,
.vol-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.note {
  background: #fff8eb;
  border-left: 4px solid #f5a623;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #5a4a25;
  margin: 16px 0;
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, #0d6e4f, #14906a);
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(245,166,35,0.18), transparent 50%);
}
.page-hero-inner { position: relative; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 5vw, 50px);
  margin-bottom: 12px;
}
.page-hero p { font-size: 18px; opacity: 0.92; }
section[id] { scroll-margin-top: 90px; }

/* Footer */
.site-footer {
  background: #102a23;
  color: #c8d6d1;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-grid p,
.footer-grid a,
.footer-grid li { font-size: 14px; line-height: 1.9; }
.footer-grid a:hover { color: #f5a623; }
.footer-grid ul { list-style: none; }
.footer-bottom {
  border-top: 1px solid #1f3d35;
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #8aa39c;
}

/* Animations */
body.is-leaving { animation: pageFadeOut 0.25s ease forwards; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving { animation: none !important; }
}

/* Responsive common */
@media (max-width: 992px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px;
    transition: right 0.35s ease;
    z-index: 9998;
  }
  .nav-links.active,
  .nav-links.show { right: 0; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 10px;
    border-bottom: 1px solid #eee;
  }
  .nav-cta { margin-top: 15px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .form-row,
  .vol-row { grid-template-columns: 1fr; }
}


::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 450ms;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

::view-transition-old(root) {
    animation-name: fade-out;
}

::view-transition-new(root) {
    animation-name: fade-in;
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {

  .nav-wrap{
      height:70px;
  }

  .brand{
      display:flex;
      align-items:center;
      gap:10px;
      flex:1;
      min-width:0;
  }

  .brand-mark{
      width:42px;
      height:42px;
      flex-shrink:0;
  }

  .brand span{
      font-size:18px;
      font-weight:700;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      line-height:1;
  }

  .hamburger{
      margin-left:12px;
      flex-shrink:0;
  }

}

.custom-alert {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

.custom-alert.show {
  display: flex;
}

.custom-alert-box {
  background: #ffffff;
  color: #1f2d2a;
  width: 90%;
  max-width: 420px;
  padding: 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.custom-alert-box p {
  font-size: 16px;
  margin-bottom: 22px;
}

.custom-alert-box button {
  background: #0d6e4f;
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}


.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffffff, #f5f9f7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.show {
  opacity: 1;
  visibility: visible;
}

.loader-card {
  text-align: center;
  animation: loaderFadeUp 0.4s ease both;
}

.loader-card img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  animation: logoPulse 1s ease-in-out infinite;
  box-shadow: 0 12px 30px rgba(13, 110, 79, 0.18);
}

.loader-card h3 {
  font-family: "Playfair Display", serif;
  color: #0d6e4f;
  font-size: 26px;
  margin-bottom: 6px;
}

.loader-card p {
  color: #5a6b66;
  font-size: 15px;
  font-weight: 500;
}

.dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes loaderFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}


/* Loading Overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.page-loader.show {
  opacity: 1;
  visibility: visible;
}

.page-loader img {
  width: 90px;
  margin-bottom: 15px;
}

.loader-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid #dfe9e5;
  border-top: 4px solid #0d6e4f;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}