/* ============================================
   FOR SHOREBIRDS — Shared Styles
   forshorebirds.org
   Part of the Conversations With Birds initiative
   ============================================ */

/* --- Google Fonts import handled in HTML --- */

:root {
  --forest:       #2B5016;
  --forest-mid:   #3d6b22;
  --forest-light: #5a8a38;
  --gold:         #8B6914;
  --gold-mid:     #b08520;
  --gold-light:   #d4a843;
  --gold-bright:  #f0c060;
  --sky:          #4a7fa5;
  --sky-light:    #d6eaf5;
  --sky-mid:      #7aafc8;
  --cream:        #faf6ef;
  --parchment:    #f5edd8;
  --sand:         #e8d5b0;
  --bark:         #5c4a2a;
  --white:        #ffffff;
  --dark:         #1C1C12;
  --robin:        #c0392b;
  --slate:        #4a5568;
  --mid:          #718096;
  --fsb-deep:     #111d0a;
  --fsb-hero:     #182f0e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
}

/* ── PASSWORD GATE ─────────────────────────── */

#gate-overlay {
  position: fixed; inset: 0;
  background-image: url('fsb-gate-bg.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#gate-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(17,29,10,0.55) 0%,
      rgba(17,29,10,0.72) 45%,
      rgba(17,29,10,0.88) 100%
    );
  z-index: 0;
}

.gate-box {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
  text-align: center;
  background: rgba(17,29,10,0.58);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}

.gate-bird {
  margin: 0 auto 1.5rem;
  width: 56px; height: 56px;
  opacity: 0.9;
}

.gate-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--parchment);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.gate-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}

.gate-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  color: rgba(245,237,216,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.gate-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}

.gate-input:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255,255,255,0.09);
}

.gate-input::placeholder { color: rgba(255,255,255,0.25); }

.gate-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--forest-mid);
  border: 1px solid var(--forest-light);
  border-radius: 4px;
  color: var(--white);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s;
}

.gate-btn:hover { background: var(--forest-light); }

.gate-error {
  color: #ff8a7a;
  font-size: 0.82rem;
  margin-top: 0.7rem;
  display: none;
}

.gate-error.show { display: block; }

.gate-note {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
}

.gate-note a { color: var(--gold-light); text-decoration: none; }
.gate-note a:hover { text-decoration: underline; }

/* ── NAV ────────────────────────────────────── */

nav {
  background: var(--forest);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--parchment);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-accent { color: var(--gold-light); }

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

.nav-links a {
  color: rgba(245,237,216,0.78);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  transition: color 0.18s, background 0.18s;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--parchment);
  background: rgba(255,255,255,0.08);
}

.nav-cwb-pill {
  border: 1px solid var(--gold-light) !important;
  color: var(--gold-light) !important;
  border-radius: 20px !important;
  padding: 0.28rem 0.85rem !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  margin-left: 0.4rem;
  transition: background 0.18s !important;
}

.nav-cwb-pill:hover { background: rgba(212,168,67,0.14) !important; }

/* ── SHARED LAYOUT ──────────────────────────── */

.section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 0.65rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--forest);
  line-height: 1.22;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 0.98rem;
  color: var(--slate);
  max-width: 650px;
  line-height: 1.78;
}

/* ── WAVE DIVIDER ───────────────────────────── */

.wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ── FOOTER ─────────────────────────────────── */

footer {
  background: var(--dark);
  padding: 2.25rem 2rem;
  text-align: center;
}

.footer-site {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--parchment);
  margin-bottom: 0.5rem;
}

.footer-attr {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.32);
  line-height: 1.7;
}

.footer-attr a { color: var(--gold-light); text-decoration: none; }

/* ── HERO SHARED ────────────────────────────── */

.page-hero {
  background: var(--fsb-hero);
  background-image:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(43,80,22,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(74,127,165,0.1) 0%, transparent 55%);
  padding: 4.5rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 52px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold-light);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--parchment);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(245,237,216,0.72);
  max-width: 580px;
  line-height: 1.72;
  font-weight: 300;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: rgba(245,237,216,0.6);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── ANIMATIONS ─────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-inner > * {
  animation: fadeUp 0.55s ease both;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.08s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.28s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.38s; }

/* ── RELATIONSHIP BLOCK (shared) ────────────── */

.rel-block {
  background: var(--forest);
  padding: 3.25rem 2rem;
}

.rel-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.rel-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
}

.rel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: var(--parchment);
  margin-bottom: 1rem;
  line-height: 1.28;
}

.rel-body {
  font-size: 0.94rem;
  color: rgba(245,237,216,0.7);
  line-height: 1.78;
  margin-bottom: 1.75rem;
}

.rel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding: 0.62rem 1.4rem;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.18s;
}

.rel-link:hover { background: rgba(212,168,67,0.14); }

/* ── RESPONSIVE ─────────────────────────────── */

@media (max-width: 720px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .section { padding: 3rem 1.25rem; }
  .page-hero { padding: 3.5rem 1.25rem 2.5rem; }
}
