:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #eaf3ef;
  --text: #12231d;
  --muted: #4d635b;
  --primary: #0f7664;
  --primary-strong: #0a574a;
  --accent: #e89f3d;
  --border: #d7e4de;
  --shadow: 0 16px 36px rgba(14, 45, 36, 0.09);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 118, 100, 0.14), transparent 36%),
    radial-gradient(circle at 92% 9%, rgba(232, 159, 61, 0.16), transparent 30%),
    var(--bg);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 100, 0.55);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  z-index: 120;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 252, 250, 0.92);
  backdrop-filter: blur(10px);
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary), #24a68f);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav {
  display: none;
  position: absolute;
  top: 74px;
  left: 1rem;
  right: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header.menu-open .primary-nav {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a,
.search-trigger {
  border: 1px solid transparent;
  width: 100%;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.search-trigger {
  background: none;
  cursor: pointer;
  font: inherit;
}

.nav-list a:hover,
.nav-list a.current,
.search-trigger:hover {
  background: var(--surface-soft);
  color: var(--text);
}

main {
  flex: 1;
  padding-bottom: 3rem;
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.hero-card,
.page-header {
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(130deg, rgba(15, 118, 100, 0.09), rgba(255, 255, 255, 0.9) 45%),
    var(--surface);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  color: var(--primary-strong);
  font-weight: 800;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.hero h1,
.page-header h1 {
  margin: 0.65rem 0 0;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
}

.hero p,
.page-header p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 64ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.12rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-soft);
}

.btn-tertiary {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.section {
  padding: 2.35rem 0;
}

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.section-intro {
  margin: 0.7rem 0 1.3rem;
  color: var(--muted);
  max-width: 72ch;
}

.grid {
  display: grid;
  gap: 0.95rem;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  padding: 0.2rem 0.58rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.tag.pricing {
  background: #fff2de;
  border-color: #f1d1a1;
  color: #86520b;
}

.card-actions {
  margin-top: auto;
  padding-top: 0.2rem;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.44rem 0.75rem;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.count-line {
  margin: 0.3rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  padding: 1rem;
  color: var(--muted);
}

.bullet-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.bullet-card li {
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.content-wrap {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-wrap h2 {
  margin-top: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  padding: 1.2rem 0 1.8rem;
}

.footer-wrap {
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-wrap small {
  color: var(--muted);
}

.footer-link {
  color: var(--primary);
  font-weight: 700;
}

.footer-link:hover {
  text-decoration: underline;
}

.search-modal[hidden] {
  display: none;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 20, 0.55);
}

.search-panel {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  margin: 10vh auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(9, 25, 20, 0.28);
  padding: 1.2rem;
}

.search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.search-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.icon-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.05rem;
}

.search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.74rem 0.92rem;
  font: inherit;
}

.search-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.search-routing {
  display: none;
  margin-top: 1rem;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.search-routing.visible {
  display: flex;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    padding: 0;
    gap: 0.3rem;
    align-items: center;
  }

  .nav-list a,
  .search-trigger {
    width: auto;
    padding-inline: 0.85rem;
  }
}
