/* ============================================================
   shared.css — Common variables, nav, footer, and buttons
   Loaded by every page before its own stylesheet.
   ============================================================ */

:root {
  --green: #305c3b;
  --green-light: #4f7b57;
  --cream: #f7f3ea;
  --text: #2f2f2f;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
}

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

header {
  background: var(--cream);
  border-bottom: 1px solid #e0d8c7;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
  color: var(--green);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  font-weight: 600;
}

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

.site-footer {
  background: var(--cream);
  border-top: 1px solid #e0d8c7;
  padding: 1.75rem 0;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  font-family: "Georgia", "Times New Roman", serif;
}

.footer-inner a {
  color: var(--green);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--green);
}

/* ── Responsive nav ──────────────────────────────────────────── */

@media (max-width: 800px) {
  .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
