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

body {
  overflow-x: hidden;
}

/* ============ Header ============ */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(36, 24, 17, 0.08);
}
#site-header.scrolled .nav-link,
#site-header.scrolled #menu-toggle {
  color: #3a271a;
}
#site-header:not(.scrolled) .nav-link {
  color: #FBF7EF;
}
#site-header:not(.scrolled) #menu-toggle {
  color: #FBF7EF;
  border-color: rgba(251, 247, 239, 0.4);
}
#site-header:not(.scrolled) .font-serif.font-bold.text-xl {
  color: #FBF7EF;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #D98E3B;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active-page::after {
  width: 100%;
}
.nav-link.active-page {
  color: #241811;
}

.mobile-link {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(36, 24, 17, 0.08);
}
.mobile-link:last-of-type {
  border-bottom: none;
}

/* ============ Nav Dropdown ============ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
  background: none;
  border: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  padding: 0;
}
.nav-dropdown-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #D98E3B;
  transition: width 0.25s ease;
}
.nav-dropdown-btn:hover::after,
.nav-dropdown.open .nav-dropdown-btn::after {
  width: 100%;
}
#site-header:not(.scrolled) .nav-dropdown-btn {
  color: #FBF7EF;
}
.nav-dropdown-chevron {
  transition: transform 0.2s ease;
  font-size: 0.65rem;
}
.nav-dropdown.open .nav-dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #FBF7EF;
  border: 1px solid rgba(36,24,17,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(36,24,17,0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  color: #3a271a;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover {
  background: #f3ede5;
  color: #241811;
}
.nav-dropdown-item .drop-icon {
  width: 1.4rem;
  text-align: center;
  color: #4c7d2e;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(36,24,17,0.08);
  margin: 0.3rem 0.5rem;
}

/* Mobile explore accordion */
.mobile-explore-toggle {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(36, 24, 17, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
  text-align: left;
}
.mobile-explore-toggle .mobile-chevron {
  transition: transform 0.2s ease;
  font-size: 0.7rem;
  color: #8f6440;
}
.mobile-explore-toggle.open .mobile-chevron {
  transform: rotate(180deg);
}
.mobile-explore-sub {
  display: none;
  flex-direction: column;
  padding: 0.25rem 0 0.25rem 1rem;
  gap: 0;
  border-bottom: 1px solid rgba(36, 24, 17, 0.08);
}
.mobile-explore-sub.open {
  display: flex;
}
.mobile-sub-link {
  padding: 0.5rem 0;
  color: #5c3f29;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(36, 24, 17, 0.05);
}
.mobile-sub-link:last-child {
  border-bottom: none;
}

/* ============ Reveal Animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-8px) translateX(-50%); }
}
.animate-bounce-slow {
  animation: bounce-slow 2.2s ease-in-out infinite;
}

/* ============ Typography Helpers ============ */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a8a3d;
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.2;
  color: #241811;
  margin-bottom: 1.2rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.6rem; }
}
.section-body {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #52463c;
  margin-bottom: 1.1rem;
}

/* ============ Model Chain ============ */
.model-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem 0.5rem;
}
.model-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  text-align: center;
}
.model-step p {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3a271a;
  line-height: 1.3;
}
.model-icon {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  background: #5a8a3d;
  color: #FBF7EF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(90, 138, 61, 0.25);
}
.model-arrow {
  align-self: center;
  color: #c7a97a;
  font-size: 1rem;
  margin: 0 -0.15rem;
}
@media (max-width: 767px) {
  .model-arrow { transform: rotate(90deg); margin: -0.4rem 0; }
}

/* ============ Approach Cards ============ */
.approach-card {
  background: #ffffff;
  border: 1px solid rgba(36, 24, 17, 0.06);
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 16px rgba(36, 24, 17, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(36, 24, 17, 0.1);
}
.approach-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #77a758, #456e2e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.approach-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #241811;
  margin-bottom: 0.6rem;
}
.approach-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b5c4f;
}

/* ============ Difference Pills ============ */
.diff-pill {
  background: rgba(251, 247, 239, 0.1);
  border: 1px solid rgba(251, 247, 239, 0.25);
  color: #FBF7EF;
  padding: 0.55rem 1.3rem;
  border-radius: 9999px;
}

/* ============ Impact Cards ============ */
.impact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid rgba(36, 24, 17, 0.06);
  border-radius: 0.9rem;
  padding: 1.15rem 1.4rem;
  box-shadow: 0 3px 10px rgba(36, 24, 17, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
  font-size: 0.92rem;
  font-weight: 600;
  color: #3a271a;
}
.impact-card i {
  font-size: 1.2rem;
  color: #5a8a3d;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.impact-card:hover {
  transform: translateY(-4px);
  border-color: #9cc180;
}

/* ============ Forms ============ */
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #523823;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #dccbaa;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  color: #241811;
  background: #FBF7EF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #5a8a3d;
  box-shadow: 0 0 0 3px rgba(90, 138, 61, 0.15);
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: #f2f7ee;
  color: #375925;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icon:hover {
  background: #5a8a3d;
  color: #fff;
}

/* ============ People Cards ============ */
.people-card {
  background: #ffffff;
  border: 1px solid rgba(36, 24, 17, 0.07);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(36, 24, 17, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.people-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(36, 24, 17, 0.11);
}
.founder-card {
  border-top: 3px solid #D98E3B;
}

.people-photo-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #e0ecd6;
}
.people-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.people-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c1d9ae, #5a8a3d);
}
.people-initials {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 0.05em;
}

.people-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
}
.founder-badge {
  background: #D98E3B;
  color: #241811;
}
.board-badge {
  background: rgba(90, 138, 61, 0.9);
  color: #fff;
}

.people-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.people-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #241811;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}
.people-credentials {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a8a3d;
  letter-spacing: 0.04em;
  min-height: 1rem;
  margin-bottom: 0.2rem;
}
.people-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #8a6339;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(36, 24, 17, 0.07);
}
.people-bio {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b5c4f;
  flex: 1;
}

/* ============ Footer ============ */
.footer-heading {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: #FBF7EF;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-link {
  color: rgba(251, 247, 239, 0.6);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #D98E3B;
}
