/* ============================================================
   Payworld Technologies — Global Stylesheet
   Brand: primary #146424 (deep green), accent #85BB65 (leaf green)
   ============================================================ */

:root {
  --green-900: #0a2f12;
  --green-800: #0e4319;
  --green-700: #146424;
  --green-600: #1a7d2e;
  --green-500: #2e9e45;
  --leaf: #85bb65;
  --leaf-soft: #e8f3e0;
  --mint: #f2f8ee;
  --navy: #0a2540;
  --ink: #16241a;
  --slate: #46584c;
  --muted: #6b7c70;
  --line: #dde8dc;
  --white: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(10, 47, 18, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 47, 18, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 47, 18, 0.16);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-500); }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.55em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 84px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--leaf-soft);
  border: 1px solid #d3e6c4;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.06rem; }

.lead { font-size: 1.13rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(20, 100, 36, 0.32); }
.btn-primary:hover { background: var(--green-600); color: #fff; }
.btn-light { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--green-600); }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-outline-dark { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline-dark:hover { background: var(--leaf-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 100, 36, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green-600); }
.main-nav a.active { color: var(--green-700); border-bottom-color: var(--leaf); }
.main-nav .btn { padding: 10px 22px; font-size: 0.95rem; }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--green-800);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(133, 187, 101, 0.28), transparent 60%),
    linear-gradient(128deg, #0e4319 0%, #146424 34%, #0f4f3a 62%, var(--navy) 100%);
  overflow: hidden;
  padding: 96px 0 104px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1.4px, transparent 1.6px);
  background-size: 30px 30px;
  mask-image: linear-gradient(115deg, transparent 42%, rgba(0, 0, 0, 0.6));
  -webkit-mask-image: linear-gradient(115deg, transparent 42%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #d9ecca; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--leaf); }
.hero p.lead { color: #d9e6dc; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-stats .stat strong { display: block; font-size: 1.25rem; color: #fff; letter-spacing: -0.01em; }
.hero-stats .stat span { color: #b9cfbe; font-size: 0.92rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c4dcb0; }
.card h3 { margin-top: 0; }
.card p { color: var(--slate); margin-bottom: 0; font-size: 0.99rem; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--leaf-soft), #d7ecc6);
  color: var(--green-700);
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

.card.featured {
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 55%, #1c6e46);
  border-color: transparent;
  color: #fff;
}
.card.featured h3 { color: #fff; }
.card.featured p { color: #d5e6d3; }
.card.featured .icon-badge { background: rgba(255, 255, 255, 0.14); color: var(--leaf); }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-content .eyebrow { margin-bottom: 14px; }
.split-content p { color: var(--slate); }

.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146424' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist li small { display: block; font-weight: 500; color: var(--muted); }

/* ---------- Tinted / dark sections ---------- */
.section-tint { background: var(--mint); }
.section-dark {
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(133, 187, 101, 0.16), transparent 55%),
    linear-gradient(140deg, #0b3315, #0e4319 45%, #0d3a2b);
  color: #fff;
}
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: #c4d8c8; }
.section-dark .eyebrow { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); color: #d9ecca; }
.section-dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.section-dark .card h3 { color: #fff; font-size: 1.1rem; }
.section-dark .card p { color: #c4d8c8; font-size: 0.95rem; }
.section-dark .card:hover { border-color: rgba(133, 187, 101, 0.55); }
.section-dark .icon-badge { background: rgba(133, 187, 101, 0.16); color: var(--leaf); }

/* ---------- Logo strip / trust ---------- */
.trust-strip { padding: 34px 0; border-bottom: 1px solid var(--line); background: #fff; }
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 44px;
  color: var(--slate);
  font-weight: 700;
  font-size: 0.95rem;
}
.trust-items span { display: inline-flex; align-items: center; gap: 9px; }
.trust-items svg { width: 20px; height: 20px; color: var(--green-600); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 58px 54px;
  background:
    radial-gradient(700px 320px at 90% 10%, rgba(133, 187, 101, 0.35), transparent 60%),
    linear-gradient(120deg, var(--green-800), var(--green-700) 55%, #14523c);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p { color: #d5e6d3; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
details.faq-item[open] { border-color: #c4dcb0; box-shadow: var(--shadow-md); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.04rem;
  padding: 20px 58px 20px 24px;
  position: relative;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--green-700);
  font-size: 1.25rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { content: "–"; transform: translateY(-50%) rotate(180deg); }
details.faq-item .faq-body { padding: 0 24px 22px; color: var(--slate); }
details.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
input, select, textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: #fbfdf9;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(133, 187, 101, 0.22);
}
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 700; display: none; }
.form-status.ok { display: block; color: var(--green-600); }
.form-status.err { display: block; color: #b3261e; }

.contact-aside { display: grid; gap: 22px; align-content: start; }
.contact-aside .card { padding: 26px; }
.contact-aside .card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.contact-aside .card h3 svg { width: 21px; height: 21px; color: var(--green-600); }

/* ---------- Legal pages ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% -20%, rgba(133, 187, 101, 0.25), transparent 60%),
    linear-gradient(125deg, #0e4319, #146424 55%, #12503b);
  color: #fff;
  padding: 76px 0 68px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #d5e6d3; max-width: 640px; margin: 0; font-size: 1.08rem; }

.legal-body { max-width: 820px; }
.legal-body h2 { margin-top: 2em; font-size: 1.45rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--slate); }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-updated { font-size: 0.9rem; color: var(--muted); margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a2610;
  color: #b9cfbe;
  padding: 64px 0 32px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; }
.footer-brand .wordmark { font-weight: 800; color: #fff; letter-spacing: 0.06em; font-size: 1.05rem; line-height: 1.2; }
.footer-brand .wordmark small { display: block; font-weight: 600; letter-spacing: 0.28em; font-size: 0.62rem; color: var(--leaf); }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #b9cfbe; }
.site-footer a:hover { color: var(--leaf); }
.footer-disclaimer {
  padding: 28px 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #8aa391;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #8aa391;
}
.footer-bottom .legal-links { display: flex; gap: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 10px 24px 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a.active { border-bottom-color: var(--line); }
  .main-nav .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
