/* ============================================================
   NovaPayworks — Global Stylesheet
   Clean, trustworthy B2B fintech aesthetic
   ============================================================ */

:root {
  --navy: #0B2447;
  --navy-2: #19376D;
  --blue: #576CBC;
  --accent: #2E8B57;
  --accent-dark: #256d45;
  --ink: #1a2233;
  --muted: #5b6472;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-navy-soft: #eef2fb;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 18px rgba(11, 36, 71, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 36, 71, 0.14);
  --maxw: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #dbe3f4; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: var(--shadow-lg); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo .logo-mark { width: 34px; height: 34px; }
.logo span.pay { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .97rem; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--accent-dark); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; color: var(--navy); white-space: nowrap; text-decoration: none; }
.header-phone:hover { color: var(--accent-dark); text-decoration: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(11,36,71,.92) 0%, rgba(25,55,109,.88) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
  color: #dbe3f4;
  padding: 96px 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: #c6d2ec; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-card h3 { color: #fff; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li { display: flex; gap: 10px; padding: 8px 0; color: #d5deef; }
.hero-card li svg { flex: none; margin-top: 3px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-navy-soft); padding: 22px 0; }
.trustbar-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: .95rem; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-navy-soft); color: var(--navy-2);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

.section-title { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-title .lead { margin: 12px auto 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li svg { flex: none; margin-top: 4px; color: var(--accent); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.pricing {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
table.pricing th, table.pricing td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.pricing thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.pricing tbody tr:nth-child(even) { background: var(--bg-soft); }
table.pricing td.center, table.pricing th.center { text-align: center; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-size: 1.05rem; font-weight: 600; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform .2s ease; flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; }
.faq-item.open .faq-a { padding: 0 22px 20px; max-height: 500px; }
.faq-a p { color: var(--muted); margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--navy-2), var(--navy)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c6d2ec; max-width: 620px; margin: 0 auto 24px; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article h2 { margin: 32px 0 12px; }
.article h3 { margin: 24px 0 8px; }
.article p, .article li { color: #333c4d; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 6px; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.field textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-error { color: #c0392b; font-size: .85rem; margin-top: 4px; display: none; }
.field.invalid .form-error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }

/* ---------- Contact info ---------- */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li svg { flex: none; color: var(--accent); margin-top: 2px; }
.info-list strong { display: block; color: var(--navy); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c4dc; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #b9c4dc; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; font-size: .85rem; color: #93a1c0; }
.footer-bottom .disclaimer { margin-bottom: 10px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 90;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; color: var(--muted); flex: 1 1 320px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 9px 18px; font-size: .9rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: var(--bg-navy-soft); padding: 56px 0; text-align: center; }
.page-hero h1 { margin-bottom: 12px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Disclaimer note ---------- */
.disclaimer-note {
  background: var(--bg-soft); border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 8px; font-size: .92rem; color: var(--muted); margin-top: 20px;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 100px 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); color: var(--navy-2); }

/* ---------- Images / Media ---------- */
.media-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); object-fit: cover; display: block;
}
.media-img.tall { aspect-ratio: 4 / 3; }
.media-img.wide { aspect-ratio: 16 / 9; }

.feature-media { position: relative; }
.feature-media .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255,255,255,.95); color: var(--navy);
  font-weight: 700; font-size: .85rem; padding: 8px 14px; border-radius: 999px;
  box-shadow: var(--shadow);
}

/* Card with top image */
.card.card-media { padding: 0; overflow: hidden; }
.card.card-media .card-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card.card-media .card-body { padding: 22px 24px 26px; }
.card.card-media .card-body h3 { margin-bottom: 8px; }
.card.card-media .card-body p { color: var(--muted); }

/* Hero card image */
.hero-photo { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* About / team photos */
.about-photo { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 3 / 2; object-fit: cover; }

/* Testimonials */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.testimonial p.quote { color: var(--ink); font-size: 1.02rem; margin-bottom: 18px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial .who strong { display: block; color: var(--navy); font-size: .95rem; }
.testimonial .who span { color: var(--muted); font-size: .85rem; }
.stars { color: #e0a416; letter-spacing: 2px; margin-bottom: 10px; font-size: .95rem; }

/* Article hero image */
.article-hero {
  width: 100%; aspect-ratio: 16 / 7; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: 28px;
}

/* Logos strip */
.logos-strip { display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center; opacity: .8; }
.logos-strip span { font-weight: 800; color: var(--muted); font-size: 1.15rem; letter-spacing: .02em; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 24px; } .mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr !important; }
}
