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

html {
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #142019;
  background-color: #f7f5ef;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #142019;
  line-height: 1.2;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

a.link,
.content a {
  color: #0a5c39;
  text-decoration: underline;
}

a.link:hover,
.content a:hover {
  color: #0a5c39;
  opacity: 0.85;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.58rem 1.3rem;
  min-height: 2.05rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.87rem;
  text-align: center;
  background-color: #0c6e45;
  color: #ffffff;
  border: 1px solid #0c6e45;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background-color: #0a5c39;
  border-color: #0a5c39;
}

.btn-secondary {
  background-color: #c9a24b;
  color: #21180a;
  border: 1px solid #c9a24b;
}

.btn-secondary:hover {
  background-color: #d8b864;
  border-color: #d8b864;
}

/* ---------- Header ---------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e3dfd2;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  width: 140px;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  order: 2;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #142019;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  flex-basis: 100%;
  order: 3;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  width: 100%;
}

.primary-nav.is-open {
  max-height: 400px;
}

.primary-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
}

.nav-link {
  display: block;
  padding: 0.5rem 0;
  font-weight: 600;
  color: #142019;
}

.nav-link:hover {
  color: #0a5c39;
}

.nav-link-cta {
  display: inline-block;
  padding: 0.52rem 1.05rem;
  min-height: 1.95rem;
  border-radius: 6px;
  font-size: 0.85rem;
  background-color: #0c6e45;
  color: #ffffff;
}

.nav-link-cta:hover {
  background-color: #0a5c39;
  color: #ffffff;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e3dfd2;
  margin-top: 2rem;
}

.footer-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-link {
  color: #142019;
  font-weight: 600;
}

.footer-link:hover {
  color: #0a5c39;
}

.footer-bottom {
  border-top: 1px solid #e3dfd2;
  padding-top: 1rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: #142019;
  opacity: 0.8;
  margin: 0;
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    flex-basis: auto;
    order: 2;
    max-height: none;
    overflow: visible;
    width: auto;
  }

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

  .nav-link {
    padding: 0;
  }

  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .footer-bottom {
    border-top: none;
    padding-top: 0;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .header-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* ---------- 404 Not Found ---------- */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.not-found-code {
  font-size: 3.5rem;
  font-weight: 700;
  color: #c9a24b;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.not-found-inner h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.not-found-inner p {
  color: #142019;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* ---------- Page content (added for the "/" page) ---------- */
.page-content .section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-content h1 {
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

.page-content p {
  margin: 0 0 1rem;
}

.page-content .article-block,
.page-content .key-facts {
  border-top: 1px solid #e3dfd2;
}

/* Table of contents */
.toc-box {
  border: 1px solid #e3dfd2;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.toc-intro {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #142019;
}

.toc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem 1.5rem;
}

.toc-list li::before {
  content: "\2713";
  display: inline-block;
  margin-right: 0.5rem;
  color: #0c6e45;
  font-weight: 700;
}

.toc-list a {
  color: #142019;
  font-weight: 600;
}

.toc-list a:hover {
  color: #0a5c39;
}

/* Promo banner */
.promo-banner-link {
  display: block;
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
}

.promo-banner-img {
  width: 100%;
  border-radius: 10px;
}

/* Article images */
.article-img {
  width: 100%;
  max-width: 300px;
  max-height: 220px;
  object-fit: cover;
  margin: 1rem 0;
  border-radius: 10px;
  border: 1px solid #e3dfd2;
}

/* Tables */
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  background-color: #ffffff;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  overflow: hidden;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #e3dfd2;
  vertical-align: top;
}

.page-content th {
  background-color: #f7f5ef;
  color: #142019;
  font-weight: 700;
}

.page-content tr:last-child td {
  border-bottom: none;
}

/* Step list */
.step-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background-color: #0c6e45;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ accordion */
.faq-item {
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.faq-question {
  cursor: pointer;
  font-weight: 700;
  color: #142019;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: #0c6e45;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  padding-top: 0.75rem;
}

.faq-answer p {
  margin: 0;
}

/* Article meta / closing block */
.article-meta {
  font-size: 0.9rem;
  color: #142019;
  opacity: 0.85;
  border-top: 1px solid #e3dfd2;
}

.article-meta p {
  margin-bottom: 0.75rem;
}

.content a,
.page-content a:not(.btn):not(.promo-banner-link) {
  color: #0a5c39;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .toc-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- /payments page additions ---------- */

.breadcrumb-bar {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #e3dfd2;
  background-color: #ffffff;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #142019;
  opacity: 0.75;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.6;
}

.breadcrumb-list a {
  color: #0a5c39;
  text-decoration: underline;
}

.bullet-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.4rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #c9a24b;
}

.promo-strip {
  margin: 1.5rem 0;
}

.promo-strip-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: #ffffff;
  border: 1px solid #e3dfd2;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.promo-strip-icon {
  color: #c9a24b;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.promo-strip-text {
  flex: 1 1 240px;
  font-weight: 600;
  color: #142019;
}

.promo-strip-btn {
  flex-shrink: 0;
  font-size: 0.9rem;
}

.floating-promo {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #ffffff;
  border: 1px solid #e3dfd2;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 4px 16px rgba(20, 32, 25, 0.15);
  max-width: 420px;
  margin: 0 auto;
}

.floating-promo-img {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.floating-promo-text {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.floating-promo-btn {
  flex-shrink: 0;
  padding: 0.46rem 0.8rem;
  min-height: 1.78rem;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .floating-promo {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    margin: 0;
  }
}