/* FleriLab — botanical/scientific editorial identity */

:root {
  --forest: #1f3d2b;
  --forest-deep: #14291b;
  --leaf: #3a7d44;
  --leaf-light: #6fae5f;
  --ivory: #faf6ee;
  --ivory-warm: #f2ead9;
  --accent: #c65d3b;
  --ink: #1c2620;
  --ink-soft: #445048;
  --line: #dfd6c1;
  --radius: 14px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--leaf); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 600;
  margin-bottom: 0.9em;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(198, 93, 59, 0.28);
}
.btn-primary:hover { background: #b04f30; color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-ghost:hover { background: var(--forest); color: #fff; }
.btn-on-dark {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-on-dark:hover { background: #fff; color: var(--forest); }
.btn-lg { padding: 1.05em 2.1em; font-size: 1.05rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--forest);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover { color: var(--leaf); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .nav-cta .btn-lg { display: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/nature/nature2.jpg");
  background-size: cover;
  background-position: center 65%;
  opacity: 0.32;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,41,27,0.75) 0%, rgba(20,41,27,0.94) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero .eyebrow { color: var(--leaf-light); }
.hero h1 { color: #fff; }
.hero-phrase {
  font-family: var(--serif);
  font-style: italic;
  color: var(--leaf-light);
  font-size: 1.15rem;
  margin-bottom: 1.1em;
}
.hero p.lead {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.6em;
}
.hero-sprig {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 340px;
  opacity: 0.16;
  z-index: 1;
  pointer-events: none;
}

/* Section spacing */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-deep {
  background: var(--forest);
  color: rgba(255,255,255,0.92);
}
.section-deep h2, .section-deep h3 { color: #fff; }
.section-deep p { color: rgba(255,255,255,0.8); }
.section-deep .eyebrow { color: var(--leaf-light); }
.section-warm { background: var(--ivory-warm); }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Mission */
.mission-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.mission-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 41, 27, 0.18);
}
.mission-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.mission-copy .lede { font-size: 1.12rem; color: var(--ink); }

@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 36px; }
  .mission-media img { aspect-ratio: 16/10; }
}

/* Approach */
.approach-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.approach-item {
  background: var(--ivory);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}
.approach-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--leaf-light);
  font-weight: 600;
}
.approach-item h3 { margin-bottom: 0.35em; color: var(--forest); }
.approach-item p { margin: 0; color: var(--ink-soft); }

@media (max-width: 700px) {
  .approach-item { grid-template-columns: 40px 1fr; padding: 26px 20px; }
}

/* Founder */
.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.founder-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 41, 27, 0.18);
  position: relative;
}
.founder-media img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; object-position: top center; }
.founder-name { margin-bottom: 0.2em; }
.founder-role {
  font-family: var(--sans);
  color: var(--leaf);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
  display: block;
}

.founder-stats {
  display: flex;
  gap: 36px;
  margin: 0.6em 0 1.8em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}
.founder-stat dt {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--forest);
  font-weight: 600;
  margin: 0;
}
.founder-stat dd {
  margin: 0.2em 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 500px) {
  .founder-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .founder-media { max-width: 320px; margin: 0 auto; }
}

/* Support / Donate */
.support-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(20,41,27,0.35);
}
.support-copy {
  background: var(--forest-deep);
  padding: 56px;
  color: #fff;
}
.support-copy h2 { color: #fff; }
.support-copy p { color: rgba(255,255,255,0.82); }
.support-action {
  background: var(--accent);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}
.support-action p { color: rgba(255,255,255,0.92); margin-bottom: 0; }
.support-action form { margin: 0; }
.support-action .btn { background: #fff; color: var(--accent); }
.support-action .btn:hover { background: var(--ivory); }
.support-secondary {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85) !important;
}
.support-secondary a { color: #fff; text-decoration: underline; }

@media (max-width: 900px) {
  .support-panel { grid-template-columns: 1fr; }
  .support-copy, .support-action { padding: 40px 28px; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.contact-intro h2 { margin-bottom: 0.4em; }
.contact-detail {
  margin-top: 2.2em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.contact-detail dt { font-weight: 600; color: var(--forest); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-detail dd { margin: 0 0 1.2em; color: var(--ink-soft); }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  color: var(--forest);
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--leaf);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #e5f3e2; color: var(--forest); }
.form-status.error { background: #fbe4de; color: #8a2f18; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Footer */
.site-footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.78);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--leaf-light) !important;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1em;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Sticky mobile support bar */
.mobile-support-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--forest);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: none;
  justify-content: center;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
}
.mobile-support-bar .btn { width: 100%; max-width: 420px; }
@media (max-width: 760px) {
  .mobile-support-bar { display: flex; }
  body { padding-bottom: 78px; }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
