/* ============================================================
   The Von Terra Project — Website stylesheet
   Re-skinned to the VTP brand / design system.
   Dark-first earth palette · olive #5C754A · sage #A0B98C ·
   gold #D8B45C · Lexend · wide-tracked UPPERCASE headings.
   (Supersedes the earlier navy/teal build-file palette.)
   ============================================================ */

/* ---- Webfont: Lexend (self-hosted, brand alternative to Neue Montreal) ---- */
@font-face { font-family: "Lexend"; src: url("../assets/fonts/Lexend-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/Lexend-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/Lexend-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/Lexend-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/Lexend-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/Lexend-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* ---- Brand palette ---- */
  --field:        #2E2E2E;   /* page background (brand) */
  --field-deep:   #232323;   /* footer / deepest sections */
  --field-soft:   #272727;   /* alternating sections */
  --raised:       #353535;
  --card:         #2A2A2A;   /* card surface */
  --ink:          #FFFFFF;   /* primary text */
  --ink-2:        #A6A6A6;   /* secondary text */
  --ink-3:        #6F6F6F;   /* tertiary */

  --olive:        #5C754A;   /* primary brand */
  --olive-hi:     #6F8A5A;
  --olive-lo:     #4F6741;
  --sage:         #A0B98C;   /* graphics / links */
  --sage-hi:      #B6CBA4;
  --gold:         #D8B45C;   /* accent / emphasis */
  --gold-hi:      #E3C87F;
  --gold-lo:      #C19A3F;

  --line-subtle:  #3C3C3C;
  --line:         #4A4A4A;
  --line-strong:  #6F6F6F;

  --olive-wash:   rgba(92, 117, 74, 0.16);
  --gold-wash:    rgba(216, 180, 92, 0.14);
  --white-wash:   rgba(255, 255, 255, 0.05);

  /* ---- Effects ---- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --highlight-top: inset 0 1px 0 rgba(255,255,255,0.05);
  --focus-ring: 0 0 0 3px rgba(216,180,92,0.35);
  --grad-earth: radial-gradient(120% 120% at 50% 0%, #383838 0%, #2e2e2e 48%, #232323 100%);
  --grad-rule: linear-gradient(90deg, var(--olive), var(--gold));
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* ---- Radii ---- */
  --radius: 14px;     /* cards */
  --radius-sm: 6px;   /* buttons / inputs */

  /* ---- Fonts ---- */
  --heading-font: "Lexend", system-ui, Arial, sans-serif;
  --body-font: "Lexend", system-ui, Arial, sans-serif;

  /* ---- Legacy aliases (kept so inline style="" in the HTML still resolves) ---- */
  --navy: var(--ink);     /* inline emphasis text → white on dark */
  --teal: var(--sage);    /* inline icon/accent → sage */
  --muted: var(--ink-2);
  --bg: var(--field);
  --bg-soft: var(--field-soft);
  --text: var(--ink);
  --border: var(--line-subtle);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--field);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: 0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: 0.045em; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0.08em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.12em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }
a { color: var(--sage); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--gold-hi); text-decoration: none; }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

section { padding: 80px 0; }
.section-soft { background: var(--field-soft); }
.section-navy { background: var(--field-deep); color: var(--ink); border-top: 1px solid var(--line-subtle); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--ink); }
.center { text-align: center; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.narrower { max-width: 760px; margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-2); }

/* The brand divider: thin olive→gold rule */
.vt-rule, .center > h1::after, .center > h2::after, .page-band h1::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin: 18px auto 0;
  background: var(--grad-rule);
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--olive); color: var(--ink); }
.btn-primary:hover { background: var(--olive-hi); color: var(--ink); }
.btn-donate { background: var(--gold); color: var(--field-deep); }
.btn-donate:hover { background: var(--gold-hi); color: var(--field-deep); }
.btn-outline { background: transparent; border-color: var(--olive); color: var(--sage); }
.btn-outline:hover { background: var(--olive-wash); color: var(--sage-hi); border-color: var(--olive-hi); }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md), var(--highlight-top);
  transition: box-shadow 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { margin-top: 0; color: var(--ink); }
.card-grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(30, 30, 30, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  min-height: 72px;
  border-bottom: 1px solid var(--line-subtle);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; display: block; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav > .nav-item { position: relative; }
.site-nav a.nav-link {
  display: block;
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.site-nav a.nav-link:hover { text-decoration: none; color: var(--gold-hi); border-bottom-color: var(--gold); }
.site-nav .btn-donate { margin-left: 8px; padding: 10px 22px; }

/* dropdowns */
.dropdown .nav-link::after { content: " \25BE"; font-size: 0.7em; }
.dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: var(--field-deep);
  border: 1px solid var(--line-subtle);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
}
.dropdown.open .dropdown-menu, .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.dropdown-menu a:hover { background: var(--olive-wash); color: var(--ink); text-decoration: none; }

/* ---- Page header band ---- */
.page-band { background: var(--field-deep); color: var(--ink); padding: 60px 0; text-align: center; border-bottom: 1px solid var(--line-subtle); }
.page-band h1 { color: var(--ink); margin: 0; }
.page-band .sub { color: var(--ink-2); font-weight: 400; margin: 16px 0 0; font-size: 1.15rem; }
.page-band .sub-teal { color: var(--sage); font-weight: 500; margin: 16px 0 0; font-size: 1.15rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--ink);
  background:
    linear-gradient(rgba(28, 28, 28, 0.55), rgba(28, 28, 28, 0.80)),
    url("../website_images/VTPWallpaper.png") center / cover no-repeat,
    var(--grad-earth);
  background-color: var(--field);
}
.hero h1 { color: var(--ink); margin-bottom: 8px; }
.hero .sub { font-size: 1.3rem; font-weight: 400; color: rgba(255, 255, 255, 0.88); margin-bottom: 28px; }
.hero-donate {
  min-height: 60vh;
  background:
    linear-gradient(rgba(28, 28, 28, 0.55), rgba(28, 28, 28, 0.80)),
    url("../website_images/DonorBoxWallpaper.png") center / cover no-repeat,
    var(--grad-earth);
  background-color: var(--field);
}

/* ---- Embed placeholder ---- */
.embed-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 320px;
  width: 100%;
  border: 2px dashed var(--olive);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
  padding: 24px;
}
.embed-placeholder .label { color: var(--ink-2); font-family: var(--heading-font); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.04em; }
.embed-placeholder .note { color: var(--ink-3); font-size: 0.9rem; }

/* ---- Live embeds (Donorbox, document viewer) ---- */
.embed-wrap { width: 100%; max-width: 560px; margin: 0 auto; text-align: center; }
.embed-wrap dbox-widget { display: block; margin: 0 auto; }
.embed-wrap dbox-widget iframe, .embed-wrap iframe { display: block; margin: 0 auto; }
.embed-heading { text-align: center; font-family: var(--heading-font); font-weight: 600; color: var(--ink); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.embed-fallback { text-align: center; font-size: 0.9rem; color: var(--ink-2); margin-top: 12px; }
.donor-wall-frame {
  display: block;
  width: 100%; max-width: 500px; min-width: 310px;
  min-height: 345px;
  margin: 0 auto;
  border: 0;
  border-radius: 8px;
}
.embed-doc { width: 100%; max-width: 900px; margin: 0 auto; }
.embed-doc iframe {
  width: 100%;
  height: 80vh; min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

/* ---- Icon rows ---- */
.icon-line { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--ink-2); }
.icon-line .ico { flex: none; width: 22px; height: 22px; display: inline-flex; color: var(--sage); }
.icon-line .ico svg { width: 100%; height: 100%; }
.section-navy .icon-line { justify-content: center; }
.social-row { display: flex; gap: 18px; align-items: center; justify-content: center; margin-top: 18px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.social-row a:hover { color: var(--gold-hi); }
.social-row .ico { width: 22px; height: 22px; display: inline-flex; color: var(--sage); }
.social-row .ico svg { width: 100%; height: 100%; }

/* ---- Footer ---- */
.site-footer { background: var(--field-deep); color: var(--ink-2); margin-top: 0; border-top: 1px solid var(--line-subtle); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer .footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px;
}
.site-footer h4 { color: var(--ink); font-size: 1rem; margin-bottom: 14px; letter-spacing: 0.12em; }
.site-footer .footer-logo { height: 36px; width: auto; display: block; margin-bottom: 14px; }
.site-footer .fine { font-size: 0.95rem; color: var(--ink-2); }
.footer-bottom {
  border-top: 1px solid var(--line-subtle);
  padding: 18px 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-align: center;
}
.footer-bottom a { color: var(--ink); }
.footer-bottom .sep { margin: 0 10px; color: var(--ink-3); }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 14px;
  object-fit: cover; object-position: top center;
  display: block; margin: 0 auto 18px;
  border: 1px solid var(--line-subtle);
  box-shadow: var(--shadow-md);
}
.team-avatar-initials {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  background: var(--raised);
  color: var(--sage);
  font-family: var(--heading-font); font-weight: 700; font-size: 3.4rem;
  border: 1px solid var(--line-subtle);
}
.team-card .role { color: var(--gold); font-weight: 600; margin: 2px 0 12px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; }
.team-card .bio { font-size: 0.98rem; color: var(--ink-2); }
.bio-band-avatar { width: 240px; max-width: 70vw; aspect-ratio: 3 / 4; border-radius: 14px; object-fit: cover; object-position: top center; display: block; margin: 0 auto 22px; border: 1px solid rgba(255,255,255,0.25); box-shadow: var(--shadow-md); }
.bio-band-initials {
  width: 240px; max-width: 70vw; aspect-ratio: 3 / 4; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 22px;
  background: var(--white-wash); color: var(--ink);
  font-family: var(--heading-font); font-weight: 700; font-size: 3.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.bio-section h3 { color: var(--gold); margin-top: 1.8em; }
.bio-body { padding: 56px 0; }

/* ---- Lines of effort ---- */
.loe-card {
  background: var(--card);
  border: 1px solid var(--line-subtle);
  border-top: 3px solid var(--olive);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md), var(--highlight-top);
}
.loe-card .lead-label { font-weight: 700; font-family: var(--heading-font); color: var(--ink); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.loe-card ul { margin: 0; padding-left: 26px; color: var(--ink-2); }
.loe-card li { margin-bottom: 6px; }

/* ---- FAQ accordion ---- */
.faq-group { margin-bottom: 40px; }
.accordion-item { border-bottom: 1px solid var(--line-subtle); }
.accordion-item:first-of-type { border-top: 1px solid var(--line-subtle); }
.accordion-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--heading-font); font-weight: 600; font-size: 1.02rem;
  color: var(--ink);
  padding: 18px 4px;
}
.accordion-q .chev { flex: none; transition: transform 0.2s var(--ease); color: var(--gold); display: inline-flex; }
.accordion-q .chev svg { width: 18px; height: 18px; }
.accordion-item.open .accordion-q .chev { transform: rotate(180deg); }
.accordion-a { display: none; padding: 0 4px 18px; color: var(--ink-2); }
.accordion-item.open .accordion-a { display: block; }

/* ---- Steps (start-security) ---- */
.step-tagline { font-style: italic; color: var(--ink-2); margin-top: -0.4em; margin-bottom: 1.2em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 6px; }
.btn-group-label { font-weight: 700; font-family: var(--heading-font); color: var(--ink); margin: 18px 0 4px; text-transform: uppercase; letter-spacing: 0.05em; }
.safety-note { color: var(--ink-2); font-size: 0.92rem; margin-top: 4px; }

/* ---- Documents ---- */
.doc-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.doc-card .ico { width: 44px; height: 44px; color: var(--sage); }
.doc-card .ico svg { width: 100%; height: 100%; }
.doc-title { font-weight: 600; font-family: var(--heading-font); color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.98rem; }

/* ---- Contact ---- */
.contact-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-line { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-line .ico { flex: none; width: 26px; height: 26px; color: var(--sage); margin-top: 2px; }
.contact-line .ico svg { width: 100%; height: 100%; }
.contact-line .lab { font-weight: 700; font-family: var(--heading-font); color: var(--ink); display: block; letter-spacing: 0.04em; }

/* ---- Misc ---- */
.attribution { font-style: italic; color: var(--gold); font-weight: 500; }
.placeholder-copy { font-style: italic; color: var(--ink-2); }
.terms-block h3, .disclaimer-block h3 { margin-top: 1.8em; font-size: 1.05rem; color: var(--ink); }
.values-card { text-align: center; font-family: var(--heading-font); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 52px 0; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; }
  .site-footer .footer-cols { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--field-deep);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--line-subtle);
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-link { padding: 14px 24px; border-bottom: 0; }
  .dropdown-menu {
    position: static;
    display: none;
    background: var(--white-wash);
    border: 0; border-radius: 0; box-shadow: none;
    padding: 0;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.open:hover .dropdown-menu { display: block; }
  .dropdown-menu a { color: var(--ink-2); padding: 12px 44px; }
  .dropdown-menu a:hover { background: var(--olive-wash); color: var(--ink); }
  .site-nav .btn-donate { margin: 12px 24px 0; text-align: center; }
}
