/* ── Seeds & Water — Global Styles ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

:root {
  --river-midnight: #1F4E5F;
  --moss-shadow:    #2F4F3A;
  --seed-gold:      #D4A63F;
  --canvas-warmth:  #E8D8B8;
  --soft-linen:     #F4F0E8;
  --deep-earth:     #0E1510;
  --text-light:     #F0EAD8;
  --text-muted:     rgba(240,234,216,0.65);

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-width: 780px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--deep-earth);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-height);
  background: rgba(47, 79, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,166,63,0.12);
  transition: background 0.3s;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

nav .logo img {
  height: 44px;
  width: auto;
}

nav .logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--canvas-warmth);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

nav .logo-text span {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--seed-gold);
  opacity: 0.85;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  align-items: center;
}

nav ul a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--canvas-warmth);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}

nav ul a:hover,
nav ul a.active {
  opacity: 1;
  color: var(--seed-gold);
}

nav .nav-cta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--seed-gold);
  border: 1px solid rgba(212,166,63,0.5);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

nav .nav-cta:hover {
  background: var(--seed-gold);
  color: var(--deep-earth);
  opacity: 1;
}

/* ── Anchor scroll offset (accounts for fixed nav) ─────────────────────────── */

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

/* #story is on the post-header div — needs nav-height offset only */
#story {
  scroll-margin-top: var(--nav-height);
}

/* ── Dropdown nav ───────────────────────────────────────────────────────────── */

nav ul li.has-dropdown { position: relative; }

nav ul li.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.5;
  margin-left: 5px;
  vertical-align: middle;
}

nav ul li.has-dropdown > ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0 0.4rem; /* top padding bridges the hover gap visually */
  min-width: 190px;
  background: rgba(14, 21, 16, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212,166,63,0.18);
  border-top: 2px solid var(--seed-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 200;
}

/* Invisible bridge so hovering from link into dropdown doesn't lose the hover state */
nav ul li.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -1rem;
  right: -1rem;
  height: 12px;
}

nav ul li.has-dropdown:hover > ul.dropdown,
nav ul li.has-dropdown:focus-within > ul.dropdown {
  display: flex;
}

nav ul li.has-dropdown > ul.dropdown li { width: 100%; }

nav ul li.has-dropdown > ul.dropdown a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.77rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--canvas-warmth);
  opacity: 0.75;
  white-space: nowrap;
  transition: opacity 0.15s, background 0.15s;
}

nav ul li.has-dropdown > ul.dropdown a:hover {
  opacity: 1;
  color: var(--seed-gold);
  background: rgba(212,166,63,0.07);
}

/* ── Hero (shared) ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,21,16,0.35) 0%,
    rgba(14,21,16,0.15) 40%,
    rgba(14,21,16,0.6)  100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 680px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--canvas-warmth);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-content p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--seed-gold);
  opacity: 0.9;
  letter-spacing: 0.03em;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: fadeInUp 2s ease 1.5s both;
}

.hero-scroll span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--canvas-warmth);
}

.hero-scroll .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--canvas-warmth), transparent);
  animation: scrollArrow 2s ease-in-out infinite;
}

/* ── Sections ───────────────────────────────────────────────────────────────── */

section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Dark section */
.section-dark {
  background: var(--deep-earth);
}

/* Teal section */
.section-teal {
  background: var(--river-midnight);
}

/* Linen section */
.section-linen {
  background: var(--canvas-warmth);
  color: var(--deep-earth);
}

.section-linen h2,
.section-linen h3 {
  color: var(--moss-shadow);
}

.section-linen p,
.section-linen li {
  color: rgba(14,21,16,0.72);
}

.section-linen .fade-in {
  color: var(--deep-earth);
}

/* Moss section */
.section-moss {
  background: var(--moss-shadow);
}

/* ── Typography ─────────────────────────────────────────────────────────────── */

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--canvas-warmth);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--canvas-warmth);
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--seed-gold);
  margin-bottom: 1rem;
  display: block;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--seed-gold);
  opacity: 0.5;
  margin: 1.5rem 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--seed-gold);
  color: var(--deep-earth);
}

.btn-gold:hover {
  background: #c49530;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--canvas-warmth);
  border: 1px solid rgba(232,216,184,0.4);
}

.btn-outline:hover {
  border-color: var(--canvas-warmth);
  background: rgba(232,216,184,0.08);
}

.btn-outline-gold {
  background: transparent;
  color: var(--seed-gold);
  border: 1px solid rgba(212,166,63,0.5);
}

.btn-outline-gold:hover {
  background: var(--seed-gold);
  color: var(--deep-earth);
  border-color: var(--seed-gold);
}

/* ── Blog Cards ─────────────────────────────────────────────────────────────── */

.cat-btn {
  padding: 0.35rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(232,216,184,0.2);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}
.cat-btn:hover {
  border-color: var(--cat-color, rgba(212,166,63,0.5));
  color: var(--canvas-warmth);
}
.cat-btn.active {
  background: var(--cat-color, var(--seed-gold));
  border-color: var(--cat-color, var(--seed-gold));
  color: var(--canvas-warmth);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.25rem;
}

.post-card {
  background: var(--river-midnight);
  border: 1px solid rgba(232,216,184,0.1);
  border-radius: 4px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  background: #245870;
  border-color: rgba(212,166,63,0.3);
  transform: translateY(-2px);
}

.post-card-tile {
  height: 7px;
  width: 100%;
  flex-shrink: 0;
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card .post-category {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

.post-card .post-date {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.post-card h3 {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--canvas-warmth);
  margin: 0;
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

footer {
  background: #080e09;
  padding: 4rem 2rem 2.5rem;
  border-top: 1px solid rgba(212,166,63,0.1);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(232,216,184,0.08);
}

.footer-brand img {
  height: 48px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--seed-gold);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--canvas-warmth);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin: 0;
}

/* ── Animations ─────────────────────────────────────────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 0.5; transform: translateY(0); }
}

@keyframes scrollArrow {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.6); opacity: 0.2; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blog Post Page ──────────────────────────────────────────────────────────── */

.post-header {
  padding: calc(var(--nav-height) + 1.5rem) 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(to bottom, #0a120b, var(--deep-earth));
}

.post-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--canvas-warmth);
  max-width: 680px;
  margin: 1rem auto;
  line-height: 1.25;
}

.post-body {
  max-width: 660px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

.post-body p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.post-body h2, .post-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-body a {
  color: var(--seed-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Hamburger button (hidden on desktop) ───────────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--canvas-warmth);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .hamburger span:nth-child(2) { opacity: 0; }
nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; }

  .hamburger { display: flex; }

  nav ul {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(47, 79, 58, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid rgba(212,166,63,0.15);
    z-index: 99;
  }

  nav.open ul { display: flex; }

  nav ul li { width: 100%; }

  nav ul a {
    display: block;
    padding: 0.85rem 1.75rem;
    font-size: 0.88rem;
    opacity: 0.85;
  }

  nav ul a:hover,
  nav ul a.active { opacity: 1; color: var(--seed-gold); background: rgba(212,166,63,0.06); }

  nav .nav-cta {
    margin: 0.5rem 1.75rem 0;
    display: inline-block;
    padding: 0.6rem 1.25rem;
  }

  /* Mobile: dropdown always expanded, indented */
  nav ul li.has-dropdown > ul.dropdown {
    display: flex;
    position: static;
    transform: none;
    background: none;
    border: none;
    border-left: 2px solid rgba(212,166,63,0.25);
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin-left: 1.75rem;
    min-width: unset;
  }
  nav ul li.has-dropdown > ul.dropdown a {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    opacity: 0.65;
  }
  nav ul li.has-dropdown > a::after { content: ''; }

  .mission-grid { grid-template-columns: 1fr !important; }
  .mission-grid > div:last-child { display: none; } /* hide logo on mobile */

  .footer-inner { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
}
