/* ============================================
   Green for the Future — Shared Styles
   ============================================ */

:root {
  --olive: #4F5635;
  --olive-hover: #5C6440;     /* slightly lighter olive for hover bg */
  --olive-muted: #7A8263;     /* muted pill default state on olive bg */
  --olive-deep: #3D4530;      /* darker olive for Work section 01 */
  --olive-soft: #909773;      /* lighter olive (sage-ish) for Work section 02 */
  --cream: #F3F1EA;
  --cream-soft: #ECE9DF;
  --sage: #C9D1B5;            /* light sage — used on imprint/privacy */
  --olive-sage: #909773;      /* mid sage-olive — used on work section 02 */
  --ink: #101010;
  --ink-soft: #2B2B2B;
  --ink-muted: #6B6B6B;
  --blue: #1B64C2;
  --success: #4E7845;         /* email copied confirmation */
  --hairline: rgba(16, 16, 16, 0.12);
  --hairline-cream: rgba(243, 241, 234, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "halyard-text", system-ui, -apple-system, sans-serif;
  font-weight: 300; /* Book */
  font-style: normal;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================
   NAV
   ============================================ */
nav.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--olive);
  color: var(--cream);
  padding: 24px 0;
}
nav.nav.on-blue { background: var(--blue); }
nav.nav.on-cream { background: var(--cream); color: var(--ink); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.nav-wordmark {
  font-weight: 600; /* Semibold */
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-year {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 72px;
}
@media (max-width: 768px) {
  .nav-links { gap: 28px; }
}
.nav-links a {
  font-weight: 600; /* Semibold per spec */
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.95;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.65; }

@media (max-width: 640px) {
  .nav-year { display: none; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.14em; }
  .nav-wordmark { font-size: 10px; letter-spacing: 0.14em; }
  .nav-inner { gap: 16px; }
}
@media (max-width: 420px) {
  .nav-wordmark { font-size: 9px; letter-spacing: 0.1em; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.1em; }
}

/* ============================================
   PILL BUTTONS (G4F-style)
   ============================================ */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 300; /* Book */
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  border: none;
  background: var(--olive-muted);
  color: var(--cream);
  transition: background 0.2s ease, color 0.2s ease, transform 0.05s;
  font-family: inherit;
  user-select: none;
}
.pill:not(.pill-email) {
  min-width: 130px;
  justify-content: flex-start;
  padding-left: 18px;
}
.pill:hover {
  background: var(--cream);
  color: var(--ink);
}
.pill:active { transform: translateY(1px); }

.pill-email {
  min-width: 280px;
  gap: 24px;
}
.pill-email .pill-label {
  opacity: 0.85;
  font-size: 12px;
}
.pill-email:hover .pill-label { opacity: 1; }

.pill-email.copied {
  background: var(--cream);
  color: var(--success);
}
.pill-email.copied .pill-label { color: var(--success); }

@media (max-width: 520px) {
  .pill:not(.pill-email) { min-width: 0; }
  .pill-email { min-width: 0; width: 100%; }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #0C0C0C;
  color: var(--cream);
  padding: 90px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 56px; }
}
.footer-brand .footer-wordmark {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}
.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  max-width: 340px;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  font-size: 14px;
  opacity: 0.85;
  display: block;
  line-height: 1.8;
}
.footer-col a:hover { opacity: 1; }

/* Footer pill buttons — uniform width, same behavior as hero pills but on black */
.footer-col .pill-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.footer-col a.footer-pill,
.footer-col button.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 300; /* Book */
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  border: none;
  background: rgba(245, 244, 239, 0.08);
  color: var(--cream);
  width: 280px;
  max-width: 100%;
  opacity: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.05s;
  font-family: inherit;
  user-select: none;
  text-align: left;
  box-sizing: border-box;
  margin: 0;
}
.footer-col a.footer-pill:hover,
.footer-col button.footer-pill:hover {
  background: var(--cream);
  color: var(--ink);
  opacity: 1;
}
.footer-col a.footer-pill:active,
.footer-col button.footer-pill:active { transform: translateY(1px); }

.footer-pill-email .pill-label {
  opacity: 0.65;
  font-size: 12px;
}
.footer-pill-email:hover .pill-label { opacity: 1; color: var(--ink); }

.footer-pill-email.copied {
  background: var(--cream);
  color: var(--success);
}
.footer-pill-email.copied .pill-label { color: var(--success); opacity: 1; }

@media (max-width: 768px) {
  .footer-pill { width: 100%; }
}

.footer-bottom {
  border-top: 1px solid var(--hairline-cream);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.55;
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; gap: 10px; }
}
.footer-bottom a:hover { opacity: 1; text-decoration: underline; }
