/* ============================================================
   AffilliPay — Global Stylesheet
   Domain: affilipay.online
   ============================================================ */

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

:root {
  --white:   #ffffff;
  --offwhite:#f8fafc;
  --light:   #f1f5f9;
  --border:  #e2e8f0;
  --muted:   #64748b;
  --body:    #374151;
  --heading: #0f172a;
  --blue:    #1a56db;
  --blue-dk: #1240a8;
  --blue-lt: #eff6ff;
  --green:   #16a34a;
  --radius:  8px;
  --shadow:  0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --max-w:   1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4rem; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--gray { background: var(--offwhite); }
.section--blue { background: var(--blue); color: var(--white); }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,86,219,0.25);
  text-decoration: none;
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.btn-lg { padding: 0.95rem 2.2rem; font-size: 1.05rem; }
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover { background: var(--blue-lt); color: var(--blue-dk); text-decoration: none; }

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.nav-logo img { height: 38px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--blue-lt);
  text-decoration: none;
}
.nav-cta { margin-left: 0.5rem; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--heading);
}
.nav-toggle svg { display: block; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 60%, #f8fafc 100%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--blue-lt);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(26,86,219,0.15);
}
.hero-title { margin-bottom: 1.1rem; }
.hero-title span { color: var(--blue); }
.hero-sub { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image img { width: 100%; border-radius: 12px; }

/* Hero stats bar */
.stats-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 2rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  box-shadow: var(--shadow);
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--heading); display: block; }
.stat-lbl { font-size: 0.78rem; color: var(--muted); }

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--blue-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Trust badges */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* Steps */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-body h3 { margin-bottom: 0.25rem; }
.step-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.testimonial-body { font-size: 0.92rem; color: var(--body); font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.88rem; color: var(--heading); }
.author-loc  { font-size: 0.78rem; color: var(--muted); }
.stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 0.75rem; letter-spacing: 1px; }

/* CTA Band */
.cta-band {
  background: var(--blue);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p  { color: rgba(255,255,255,0.82); margin-bottom: 2rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.1rem 0;
  font-size: 1rem; font-weight: 600; color: var(--heading);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.faq-q .arrow { transition: transform 0.25s; font-size: 1.2rem; color: var(--blue); }
.faq-a { display: none; padding-bottom: 1rem; font-size: 0.92rem; color: var(--muted); }
.faq-item.open .faq-a { display: block; }
.faq-item.open .arrow { transform: rotate(180deg); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #f0f7ff, #e8f2ff);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero p  { color: var(--muted); margin: 0; }

/* Prose content */
.prose h2 { margin-top: 2rem; margin-bottom: 0.75rem; font-size: 1.3rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--blue); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--blue-lt);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; margin-bottom: 0.2rem; }
.contact-value { font-weight: 600; color: var(--heading); font-size: 0.95rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--heading); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--body);
  background: var(--white);
  transition: border-color 0.18s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 0.88rem; line-height: 1.65; margin-top: 0.9rem; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-col h4 { color: var(--white); font-size: 0.88rem; margin-bottom: 1rem; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.87rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); text-decoration: none; }
.affiliate-disc {
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1rem 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 199;
  }
  .nav-links.open + .nav-cta { display: block; padding: 0 1.25rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { gap: 1.5rem; justify-content: center; }
  .hero { padding: 3rem 0; }
  .section { padding: 2.75rem 0; }
}
