/* ==========================================================
   Verdant Resource Partners
   Main stylesheet
   ========================================================== */

:root {
  --green: #0b5148;
  --blue: #1f5b8f;
  --sky: #a8bec8;
  --charcoal: #353738;
  --paper: #f1f2f1;
  --beige: #e7d9ad;
  --line: #cad1d0;
  --header-h: 62px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* ==========================================================
   Header / navigation
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 34px;
  background: rgba(244, 245, 244, 0.97);
  border-bottom: 1px solid rgba(35, 55, 55, 0.08);
  backdrop-filter: blur(8px);
}

.header-home {
  display: flex;
  align-items: center;
  width: 46px;
  text-decoration: none;
}

.header-home img {
  width: 28px;
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(46px, 8vw, 120px);
  margin-left: auto;
  padding-right: clamp(8px, 4vw, 70px);
}

.top-nav a {
  position: relative;
  padding: 21px 0 18px;
  color: #262626;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #0f4f46;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.top-nav a:hover::after,
.top-nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px;
  background: #333;
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  height: clamp(490px, 62vw, 690px);
  overflow: hidden;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center calc(50% + var(--hero-parallax, 0px));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.hero-grass {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  transform: translateY(var(--grass-parallax, 0px));
  transform-origin: center bottom;
  will-change: transform;
}

.hero-brand {
  position: absolute;
  left: clamp(28px, 4.5vw, 72px);
  top: clamp(42px, 7vw, 94px);
  z-index: 2;
  width: clamp(330px, 35vw, 470px);
  transform: translate(250px, 160px);
}

.hero-brand-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.hero-brand-crest {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.hero-brand-name {
  flex: 1;
  text-align: center;
  transform: translateY(25px);
}

.hero-verdant {
  color: #0f4f46;
  font-family: "Castellar", "Bodoni MT", serif;
  font-size: 80px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 1px;
}

.hero-brand-rule {
  width: 88%;
  height: 1px;
  margin: 10px auto;
  background: #333;
}

.hero-resource-partners {
  font-family: "Garamond", "EB Garamond", serif;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-values {
  margin-top: 24px;
  color: #333;
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 25px;
  transform: translateX(8px);
}

.hero-values span {
  margin: 0 4px;
}

/* ==========================================================
   Shared sections / people
   ========================================================== */

.anchor-section {
  scroll-margin-top: var(--header-h);
}

.section-shell {
  width: min(1450px, calc(100% - 72px));
  margin: 0 auto;
}

.people-section {
  padding: 70px 0 46px;
}

.people-section.compact-top {
  padding-top: 28px;
}

h2 {
  margin: 0 0 42px;
  color: var(--green);
  font-size: clamp(28px, 2.2vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.people-grid {
  display: grid;
  row-gap: 68px;
  column-gap: clamp(44px, 6vw, 100px);
}

.team-grid,
.board-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.team-grid .person-card,
.board-grid .person-card {
  grid-column: span 2;
}

.team-grid .team-mid-left {
  grid-column: 2 / span 2;
}

.team-grid .team-mid-right {
  grid-column: 4 / span 2;
}
.team-grid .team-bottom-left {
    grid-column: 2 / span 2;
}

.team-grid .team-bottom-right {
    grid-column: 4 / span 2;
}

.board-grid .board-centered {
  grid-column: 3 / span 2;
}

.advisor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin: 0 auto;
  gap: clamp(70px, 10vw, 160px);
}

.subsection-title {
  margin-top: 74px;
}

.person-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.portrait-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto 13px;
  overflow: hidden;
  background: #e9ebea;
  border: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center 28%;
  image-rendering: auto;
}

.person-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.12;
  font-weight: 700;
}

.person-card .role {
  min-height: 16px;
  margin: 2px 0 11px;
  color: #151515;
  font-size: 16px;
  line-height: 1.25;
}

.person-card .bio {
  max-width: 420px;
  margin: 0 auto;
  color: #252525;
  font-size: 14px;
  line-height: 1.55;
  text-align: justify;
}

/* Team entrance reveal */
#team h2,
#team .people-grid {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#team .people-grid {
  transition-delay: 0.1s;
}

#team.team-visible h2,
#team.team-visible .people-grid {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   Our Story
   ========================================================== */

.story-section {
  padding: 70px 0 340px;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  align-items: center;
  gap: clamp(55px, 8vw, 135px);
  max-width: 1300px;
  margin: 45px auto 0;
  transform: translateX(80px);
}

.story-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(70px);
}

.story-emblem img {
  width: min(350px, 85%);
}

.story-principles {
  display: grid;
  gap: 17px;
}

.principle {
  padding: 2px 0 2px 28px;
  border-left: 5px solid var(--green);
}

.principle.cross {
  border-left-color: #2674b7;
}

.principle.vine {
  border-left-color: #174b72;
}

.principle h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.principle.shield h3 {
  color: #0b5148;
}

.principle.cross h3 {
  color: #2674b7;
}

.principle.vine h3 {
  color: #174b72;
}

.principle-subtitle {
  margin: 1px 0 3px;
  font-size: 20px;
}

.principle ul {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.5;
}

.story-summary {
  max-width: 1100px;
  margin: 44px auto 0;
  font-size: 19px;
  line-height: 1.45;
  text-align: center;
}

/* ==========================================================
   Contact / form
   ========================================================== */

.contact-footer {
  padding: 42px 0 48px;
  background: #e8eae8;
  border-top: 1px solid #9eb6be;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(60px, 9vw, 150px);
  width: min(1450px, calc(100% - 72px));
  margin: 0 auto;
}

.contact-pitch {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-pitch img {
  flex: 0 0 auto;
  width: 78px;
}

.contact-pitch h2 {
  margin: 0 0 2px;
  color: #111;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.contact-pitch p {
  max-width: 370px;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form label {
  display: block;
}

.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #93aeb8;
  border-radius: 7px;
  outline: none;
  background: #cbd4d7;
  color: #1e2526;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.contact-form input {
  height: 42px;
}

.contact-form textarea {
  min-height: 94px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  background: #d4dcde;
  box-shadow: 0 0 0 2px rgba(11, 81, 72, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #4e5657;
  text-align: left;
}

.contact-form button {
  justify-self: end;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-form button:hover {
  filter: brightness(0.94);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-form button:disabled {
  cursor: default;
  opacity: 0.8;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: #4a4a4a;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

.form-status.success {
  color: #0f4f46;
}

.form-status.error {
  color: #8a3030;
}

/* ==========================================================
   Smaller desktop / shared tablet sizing
   ========================================================== */

@media (max-width: 1300px) {
  .story-layout {
    max-width: 100%;
    transform: none;
  }
}

@media (min-width: 721px) and (max-width: 1500px) {
  .hero-brand {
    left: clamp(-50px, 3vw, -55px);
    transform: translate(220px, 50px);
  }
}

@media (max-width: 1050px) {
  .section-shell,
  .contact-shell {
    width: min(94%, 900px);
  }

  .team-grid,
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .team-grid .person-card,
  .board-grid .person-card,
  .team-grid .team-mid-left,
  .team-grid .team-mid-right,
  .team-grid .team-bottom-left,
  .team-grid .team-bottom-right,
  .board-grid .board-centered {
    grid-column: auto;
  }

  .advisor-grid {
    max-width: none;
    gap: 48px;
  }

  .story-layout {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 50px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (min-width: 721px) {
  .contact-pitch img {
    width: 105px;
    transform: translateY(-80px);
  }

  .contact-pitch > div {
    transform: translateY(-80px);
  }
}

/* ==========================================================
   Tablet / iPad: 721px–1180px
   ========================================================== */

@media (min-width: 721px) and (max-width: 1180px) and (orientation: portrait) {
  .hero {
    background-position: 78% center;
  }

  .hero-brand {
    left: 50%;
    right: auto;
    top: 105px;
    width: min(620px, calc(100vw - 70px));
    transform: translateX(-50%);
  }

  .hero-brand-main {
    justify-content: center;
    width: 100%;
    gap: 18px;
  }

  .hero-brand-crest {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    transform: translateX(50px);
  }

  .hero-brand-name {
    flex: 1;
    min-width: 0;
    transform: translateY(6px);
  }

  .hero-verdant {
    font-size: clamp(50px, 7vw, 66px);
    white-space: nowrap;
  }

  .hero-brand-rule {
    width: 88%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-resource-partners {
    font-size: 16px;
    white-space: nowrap;
  }

  .hero-values {
    width: 100%;
    margin-top: 28px;
    font-size: 19px;
    text-align: center;
    white-space: nowrap;
    transform: none;
  }
}

@media (min-width: 721px) and (max-width: 1050px) {
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-pitch {
    justify-content: center;
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-pitch img {
    width: 90px;
    transform: none;
  }

  .contact-pitch > div {
    transform: none;
  }
}

/* ==========================================================
   Mobile: 720px and below
   ========================================================== */

@media (max-width: 720px) {
  :root {
    --header-h: 58px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    padding: 0 18px;
  }

  .header-home img {
    width: 25px;
  }

  .menu-toggle {
    display: block;
  }

  .top-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 15px 22px 20px;
    background: rgba(244, 245, 244, 0.99);
    border-bottom: 1px solid #d9dddd;
  }

  .top-nav.open {
    display: flex;
  }

  .top-nav a {
    padding: 12px 0;
  }

  .top-nav a::after {
    display: none;
  }

  .hero {
    min-height: 100svh;
    height: 57vw;
    background-position: 80% center;
  }

  .hero-grass {
    transform: none;
  }

  .hero-brand {
    left: 16px;
    right: 16px;
    top: 180px;
    width: auto;
    max-width: none;
    transform: none;
  }

  .hero-brand-main {
    justify-content: center;
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
  }

  .hero-brand-crest {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    transform: translateX(35px);
  }

  .hero-brand-name {
    flex: 0 1 340px;
    width: min(340px, calc(100vw - 110px));
    min-width: 0;
    transform: translateY(4px);
  }

  .hero-verdant {
    font-size: clamp(30px, 10vw, 40px);
    white-space: nowrap;
  }

  .hero-brand-rule {
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-resource-partners {
    font-size: clamp(10px, 3vw, 12px);
    white-space: nowrap;
  }

  .hero-values {
    width: 100%;
    margin-top: 17px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    text-align: center;
    transform: translateX(-40px);
  }

  .section-shell {
    width: calc(100% - 34px);
  }

  .people-section {
    padding: 54px 0 30px;
  }

  h2 {
    margin-bottom: 32px;
  }

  .people-grid,
  .team-grid,
  .board-grid,
  .advisor-grid {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .board-grid,
  .advisor-grid {
    gap: 54px;
  }

  .person-card {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .portrait-frame {
    width: 168px;
    height: 168px;
  }

  .person-card .bio {
    max-width: 520px;
  }

  .subsection-title {
    margin-top: 62px;
  }

  .story-section {
    padding: 54px 0 340px;
  }

  .story-layout {
    display: block;
    max-width: 100%;
    margin-top: 45px;
    transform: none;
  }

  .story-emblem {
    width: 100%;
    margin-right: 0;
    margin-bottom: 35px;
    margin-left: 0;
    text-align: center;
    transform: none !important;
  }

  .story-emblem img {
    display: block;
    width: min(230px, 65vw);
    margin-left: auto;
    margin-right: auto;
  }

  .principle {
    padding-left: 20px;
  }

  .story-summary {
    max-width: 100%;
    margin-top: 34px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    width: calc(100% - 34px);
  }

  .contact-pitch {
    align-items: flex-start;
  }

  .contact-pitch img {
    width: 56px;
  }

  .contact-pitch h2 {
    font-size: 24px;
  }

  .contact-pitch p {
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Respect reduced-motion preferences for reveal / grass motion. */
@media (prefers-reduced-motion: reduce) {
  #team h2,
  #team .people-grid {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-grass {
    transform: none;
  }
}
