/* Shared marketing chrome — owns the header (nav) and footer styling
   for every marketing page. Pages keep their own page-specific styles;
   anything chrome-related belongs here so the header/footer look
   identical across the site. */

/* ---- Header / nav ---- */

/* Scoped to the page header: a bare `nav` selector also catches nested
   in-page navs (the api-docs sidebar) and fixes them over the content. */
body > body > nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.175);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: #2c7a2c; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; color: #000; }
.logo-text { font-size: 20px; font-weight: 700; color: #000; }

.nav-links {
  display: flex; align-items: center; gap: 24px; flex-wrap: nowrap;
}
.nav-links a {
  color: #6b6b6b; transition: color 0.2s; font-size: 15px;
  text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: #000; }
.nav-links a.active { color: #000; }

.nav-dropdown { position: relative; }
.nav-dropdown > button {
  background: none; border: 0; cursor: pointer; color: #6b6b6b;
  font: inherit; font-size: 15px; padding: 0;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-dropdown > button:hover { color: #000; }
.nav-dropdown > button::after { content: '\25BE'; font-size: 10px; opacity: 0.7; margin-left: 2px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 0;
  background: #ffffff; border: 1px solid #000000; border-radius: 8px;
  padding: 8px 0; min-width: 200px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  display: none; z-index: 100;
}
.nav-dropdown-menu.open { display: block; }
.nav-dropdown.align-right .nav-dropdown-menu { left: auto; right: 0; }
.nav-dropdown-menu a {
  display: block; padding: 8px 18px; color: #333333; font-size: 14px;
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: rgba(140,243,122,0.08); color: #000; }

.nav-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.btn-primary {
  background: #000000; color: #ffffff;
  padding: 10px 20px; border-radius: 8px;
  font-weight: 600; transition: background 0.2s;
  display: inline-block; border: none; cursor: pointer;
  font-family: inherit; font-size: 15px; text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover { background: #2c7a2c; text-decoration: none; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ---- Footer ---- */

footer {
  padding: 48px 24px;
  border-top: 1px solid #000000;
  color: #6b6b6b;
  text-align: center;
  font-size: 14px;
}
footer .container { max-width: 1200px; margin: 0 auto; }
footer a { color: #6b6b6b; text-decoration: none; }
footer a:hover { color: #000; }

/* Footer link grid — grouped by section, mirrors the Resources dropdown
   so visitors don't need to find the dropdown to discover everything. */
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(4, 1fr);
  text-align: left;
  margin-bottom: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #333333; margin-bottom: 4px;
}
.footer-col a { font-size: 14px; }
.footer-bottom { color: #6b6b6b; font-size: 13px; }
.footer-bottom a { color: #6b6b6b; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
