/* ==========================================================================
   MOEF.Web — site.css
   Mandarin-and-foothills theme. Scaffold-level design system: clean, modern,
   responsive. Intentionally dependency-free (no Bootstrap). Refine in a later
   design phase — this is meant to look intentional, not final.
   ========================================================================== */

:root {
  /* Palette — mandarin orange + Sierra-foothill leaf green on warm cream */
  --mandarin:       #ED6A1A;
  --mandarin-deep:  #B84B0C;
  --mandarin-light: #FBA24A;
  --leaf:           #2F6B3A;
  --leaf-deep:      #1F4A28;
  --gold:           #E0A02C;
  --cream:          #FFF9F2;
  --cream-2:        #FBEFE0;
  --ink:            #2A2018;
  --ink-soft:       #5D5147;
  --line:           #EADBC9;
  --white:          #ffffff;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1120px;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(80, 45, 10, 0.08);
  --shadow-lg: 0 10px 34px rgba(80, 45, 10, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }
a { color: var(--mandarin-deep); }
a:hover { color: var(--mandarin); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--mandarin-deep); outline-offset: 2px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 242, 0.94);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.logo-mark { font-size: 2rem; line-height: 1; }
.logo-mark-img { height: 46px; width: auto; display: block; }
.about-logo { max-width: 210px; height: auto; margin: .25rem 0 1rem; display: block; }
.card-photo { width: 100%; max-width: 720px; height: auto; border-radius: 12px; margin: 0 auto 1.25rem; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-top { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: var(--mandarin-deep); }
.logo-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); font-weight: 700; }

.site-nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: .5rem .8rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-link:hover { background: var(--cream-2); color: var(--mandarin-deep); }

.btn-donate {
  background: var(--mandarin); color: #fff; text-decoration: none;
  padding: .55rem 1.2rem; border-radius: 999px; font-weight: 800; font-size: .95rem;
  box-shadow: var(--shadow); white-space: nowrap;
}
.btn-donate:hover { background: var(--mandarin-deep); color: #fff; }

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

.mobile-nav { border-top: 1px solid var(--line); background: var(--cream); }
.mobile-nav ul { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.mobile-nav a { display: block; padding: .7rem .5rem; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-donate-btn { color: var(--mandarin-deep) !important; }

/* ---------- Layout primitives ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem; }
.section-narrow { max-width: 780px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 800; color: var(--leaf); margin: 0 0 .5rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; color: var(--mandarin-deep); }
.card--leaf { border-top: 4px solid var(--leaf); }
.card--mandarin { border-top: 4px solid var(--mandarin); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-outline {
  display: inline-block; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 800;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; font-size: 1rem;
}
.btn-primary { background: var(--mandarin); color: #fff; }
.btn-primary:hover { background: var(--mandarin-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--mandarin-deep); border-color: var(--mandarin); }
.btn-outline:hover { background: var(--mandarin); color: #fff; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(100deg, #FFF9F2 0%, #FFF9F2 36%, rgba(255,249,242,.90) 54%, rgba(255,249,242,.45) 74%, rgba(255,249,242,.15) 100%),
    url('../img/hero-orchard.jpg') center 62% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(rgba(255,249,242,.92), rgba(255,249,242,.92)),
      url('../img/hero-orchard.jpg') center / cover no-repeat;
  }
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 4.5rem 1.25rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; margin: 0 0 1rem; max-width: 16ch; }
.hero .lede { max-width: 60ch; }
.hero .btn-row { margin-top: 1.75rem; }
.hero-name-note { margin-top: 1.5rem; font-size: .95rem; font-style: italic; color: var(--ink-soft); }
.hero-name-note a { color: var(--mandarin-deep); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--cream-2), var(--cream)); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem 2.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 0 0 .5rem; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.7rem; font-weight: 800; color: var(--mandarin-deep); margin: 2.5rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose strong { color: var(--ink); }

.pull-quote {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; font-style: italic;
  color: var(--leaf-deep); border-left: 4px solid var(--gold);
  margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem;
}

/* ---------- Heritage timeline ---------- */
.timeline { list-style: none; margin: 2rem 0; padding: 0; border-left: 3px solid var(--mandarin-light); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px;
  background: var(--mandarin); border: 3px solid var(--cream); border-radius: 50%;
}
.timeline .yr { font-family: var(--font-head); font-weight: 900; color: var(--mandarin-deep); display: block; }

/* ---------- Editorial / notes ---------- */
.note {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--leaf);
  border-radius: 8px; padding: 1rem 1.25rem; margin: 1.5rem 0; font-size: .95rem; color: var(--ink-soft);
}
.note strong { color: var(--leaf-deep); }
.note--review { border-left-color: var(--gold); background: #FFFBF3; }

/* Placeholder blocks — mark unfinished content areas without looking broken. */
.placeholder-block {
  border: 2px dashed var(--mandarin-light); border-radius: var(--radius);
  padding: 1.5rem; background: repeating-linear-gradient(45deg, #fff, #fff 12px, #FFF6EC 12px, #FFF6EC 24px);
  color: var(--ink-soft);
}
.placeholder-block h3 { color: var(--mandarin-deep); margin-top: 0; }
.tag-todo { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  background: var(--gold); color: #3a2a06; padding: .15rem .5rem; border-radius: 5px; vertical-align: middle; }

/* ---------- Sources list (public citations) ---------- */
.sources { font-size: .9rem; color: var(--ink-soft); }
.sources ol { padding-left: 1.25rem; }
.sources li { margin-bottom: .4rem; }

/* ---------- Sponsor grid ---------- */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.sponsor-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
  min-height: 90px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 700; color: var(--ink-soft);
}

/* ---------- Contact / forms ---------- */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
.form-disabled { opacity: .6; pointer-events: none; }

.copy-email { background: none; border: 0; color: var(--mandarin-deep); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--leaf-deep); color: #F3EDE4; margin-top: 3rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.25rem; display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2rem; }
.footer-tagline { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 .75rem; color: #fff; }
.footer-sub { margin: .25rem 0; font-size: .92rem; color: #D8CFC2; }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mandarin-light); margin: 0 0 .75rem; }
.footer-links ul, .footer-contact address { list-style: none; margin: 0; padding: 0; font-style: normal; }
.footer-links li { margin-bottom: .4rem; }
.site-footer a { color: #F3EDE4; }
.site-footer a:hover { color: var(--mandarin-light); }
.site-footer .copy-email { color: #F3EDE4; }
.footer-social { margin-top: .75rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 1rem; font-size: .85rem; color: #C9BFB1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav, .btn-donate { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
