/* ═══════════════════════════════════════════════
   WOOD BIOENERGY CONFERENCE & EXPO — SHARED CSS
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Lato:wght@300;400;700;900&display=swap');

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

:root {
  --forest:    #1b3a1b;
  --deep:      #0e1e0e;
  --mid:       #2c4e2c;
  --bright:    #3a6b3a;
  --lime:      #7ec94a;
  --lime-lt:   #a2e070;
  --amber:     #d4891e;
  --amber-lt:  #f0a83a;
  --cream:     #f6f1e8;
  --warm-wh:   #faf8f3;
  --white:     #ffffff;
  --text:      #181e15;
  --muted:     #5e6b58;
  --border:    #d8d3c8;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--warm-wh);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: #ffffff;
  border-bottom: 2px solid var(--lime);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 84px;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo-img { height: 64px; display: block; }
.nav-logo-fallback {
  display: none;
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}
.nav-logo-fallback span {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bright);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #4a5244;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a.active { color: var(--forest); }

.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.5; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-top: 2px solid var(--lime);
  min-width: 210px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block !important;
  padding: 0.6rem 1.1rem !important;
  font-size: 0.82rem !important;
  color: #4a5244 !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}
.dropdown-menu a:hover { color: var(--forest) !important; background: var(--cream); }

.nav-cta {
  background: var(--lime) !important;
  color: var(--deep) !important;
  padding: 0.48rem 1.2rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.07em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--lime-lt) !important; }

/* ─── INNER PAGE HEADER ─── */
.page-header {
  padding-top: 84px;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(126,201,74,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126,201,74,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-header-inner {
  position: relative;
  z-index: 2;
  padding: 3.5rem 5rem;
  max-width: 860px;
  margin: 0 auto;
}
.page-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-kicker::before { content:''; width:20px; height:2px; background:var(--lime); flex-shrink:0; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 0.75rem;
}
.page-subtitle {
  font-size: 1rem;
  color: rgba(246,241,232,0.9);
  letter-spacing: 0.02em;
  line-height: 1.6;
  max-width: 600px;
}
.page-header-line {
  height: 3px;
  background: linear-gradient(90deg, var(--lime), transparent);
  margin-top: 2.5rem;
}

/* ─── MAIN CONTENT ─── */
.page-content {
  padding: 4rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.page-content-full {
  padding: 4rem 5rem;
}

/* ─── SECTION HELPERS ─── */
.section-kicker {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-kicker::before { content:''; width:20px; height:2px; background:currentColor; flex-shrink:0; }
.section-kicker.amber { color: var(--amber); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.section-title.light { color: var(--white); }

/* ─── BUTTONS ─── */
.btn-lime {
  background: var(--lime);
  color: var(--deep);
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-lime:hover { background: var(--lime-lt); transform: translateY(-1px); }

.btn-dark {
  background: var(--deep);
  color: var(--cream);
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}
.btn-dark:hover { background: var(--forest); }

.btn-ghost {
  border: 1px solid rgba(246,241,232,0.25);
  color: rgba(246,241,232,0.7);
  padding: 1.25rem 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime-lt); }

.btn-outline-dark {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.8rem 1.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-dark:hover { border-color: var(--lime); background: var(--cream); }

/* ─── TICKER ─── */
.ticker {
  background: var(--lime);
  color: var(--deep);
  padding: 0.65rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}
.ticker-inner span {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0 2.5rem;
  border-right: 2px solid rgba(14,30,14,0.2);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FOOTER ─── */
footer {
  background: var(--deep);
  border-top: 1px solid rgba(126,201,74,0.15);
  padding: 4rem 5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo-img {
  height: 100px;
  display: block;
  margin-bottom: 1.25rem;
  opacity: 0.85;
  filter: sepia(1) hue-rotate(0deg) saturate(0);
}

.footer-tagline {
  font-size: 1.25rem;
  color: rgba(246,241,232,0.9);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

address {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(246,241,232,0.55);
  line-height: 1.85;
}
address a { color: var(--lime); text-decoration: none; }
address a:hover { text-decoration: underline; }

.footer-col-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 0.55rem; }
.footer-links a {
  font-size: 1.25rem;
  color: rgba(246,241,232,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }

.footer-bottom {
  background: rgba(0,0,0,0.35);
  padding: 1.1rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(126,201,74,0.08);
}

.footer-copy {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(246,241,232,0.3);
}

.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246,241,232,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--lime-lt); }

/* ─── SIGNUP BAND ─── */
.signup-band {
  background: var(--forest);
  padding: 4rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.signup-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 0.4rem;
  line-height: 1.25;
}
.signup-sub { font-size: 0.94rem; color: rgba(246,241,232,0.45); margin-top: 0.5rem; line-height: 1.6; }
.signup-fields { display: flex; flex-direction: column; gap: 0.75rem; }
.field-row { display: flex; }
.signup-input {
  flex: 1;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(126,201,74,0.2);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.signup-input::placeholder { color: rgba(246,241,232,0.25); }
.signup-input:focus { border-color: var(--lime); }
.signup-btn {
  padding: 0.85rem 1.5rem;
  background: var(--lime);
  color: var(--deep);
  border: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.signup-btn:hover { background: var(--lime-lt); }

/* ─── MOBILE NAV BURGER ─── */
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  z-index: 201;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
}
.nav-burger span:nth-child(1) { width: 24px; }
.nav-burger span:nth-child(2) { width: 16px; }
.nav-burger span:nth-child(3) { width: 24px; }
.nav-burger.open span:nth-child(1) { width: 24px; transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-burger.open span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }

/* ─── SEARCH ─── */
.nav-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem;
  color: #4a5244;
  display: flex;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s;
  margin-right: 0.35rem;
}
.nav-search-btn:hover { opacity: 1; }

.search-overlay {
  position: fixed;
  top: 84px; left: 0; right: 0;
  background: var(--deep);
  border-bottom: 2px solid var(--lime);
  padding: 1.25rem 5rem;
  z-index: 198;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
  pointer-events: none;
}
.search-overlay.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.search-form { display: flex; align-items: center; gap: 0.75rem; max-width: 680px; margin: 0 auto; }
.search-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(126,201,74,0.3);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1.05rem;
  padding: 0.8rem 1.1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: rgba(246,241,232,0.3); }
.search-input:focus { border-color: var(--lime); }
.search-go {
  background: var(--lime);
  color: var(--deep);
  border: none;
  padding: 0.8rem 1.4rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.search-go:hover { background: var(--lime-lt); }
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(246,241,232,0.45);
  padding: 0.5rem;
  transition: color 0.2s;
  line-height: 1;
}
.search-close:hover { color: #fff; }

/* ─── SEARCH RESULTS PAGE ─── */
.sr-search-bar { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; }
.sr-search-bar input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.sr-search-bar input:focus { border-color: var(--lime); }
.sr-count { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.sr-count strong { color: var(--text); }
.sr-card {
  display: block;
  text-decoration: none;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sr-card:hover { border-color: var(--lime); box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.sr-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.sr-url { font-size: 0.8rem; color: var(--lime); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.sr-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }
.sr-empty { font-size: 1rem; color: var(--muted); line-height: 1.7; padding: 2rem 0; }
.sr-empty strong { color: var(--text); }

/* ─── REVEAL ANIMATION ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  nav { padding: 0 1.5rem; }
  .page-header-inner, .page-content, .page-content-full,
  .signup-band, footer { padding-left: 2rem; padding-right: 2rem; }
  .search-overlay { padding: 1.25rem 2rem; }
}

@media (max-width: 768px) {
  .search-overlay { padding: 1rem 1.5rem; }
  .sr-search-bar { flex-direction: column; }
  /* burger visible, nav panel hidden by default */
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: #fff;
    border-bottom: 3px solid var(--lime);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    list-style: none;
    z-index: 199;
    overflow-y: auto;
    max-height: calc(100vh - 84px);
  }
  .nav-links.open { display: flex; }
  .nav-links > li { border-bottom: 1px solid var(--border); }
  .nav-links > li:last-child { border-bottom: none; padding: 0.75rem 1.5rem; }
  .nav-links a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0.03em;
  }
  .nav-links a:hover { color: var(--forest); background: var(--cream); }
  /* dropdown expand/collapse on mobile */
  .dropdown > a::after { content: ' +'; font-size: 0.9rem; opacity: 0.5; }
  .dropdown.mobile-open > a::after { content: ' −'; opacity: 0.7; }
  .dropdown:hover .dropdown-menu { display: none; }
  .dropdown.mobile-open .dropdown-menu { display: block; }
  .dropdown-menu {
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--border) !important;
    background: var(--cream) !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
  .dropdown-menu a {
    padding: 0.75rem 1.5rem 0.75rem 2.25rem !important;
    font-size: 0.95rem !important;
    color: var(--muted) !important;
    background: none !important;
  }
  .dropdown-menu a:hover { background: var(--border) !important; }
  /* register CTA full-width in panel */
  .nav-cta {
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0.9rem 1.5rem !important;
    letter-spacing: 0.08em !important;
  }
  /* rest of page layout */
  .page-header-inner { padding: 2.5rem 1.5rem; }
  .page-content, .page-content-full { padding: 2.5rem 1.5rem; }
  .signup-band { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  footer { grid-template-columns: 1fr 1fr; padding: 2.5rem 1.5rem; gap: 2rem; }
  .footer-bottom { padding: 1rem 1.5rem; flex-direction: column; gap: 0.75rem; }
}
