/* ============================================
   AffiShope — Main CSS
   ============================================ */

:root {
  --accent: #185FA5;
  --accent-dark: #0C447C;
  --accent-light: #E6F1FB;
  --text: #1C1917;
  --text-muted: #78716C;
  --text-faint: #A8A29E;
  --bg: #F5F5F4;
  --surface: #ffffff;
  --border: #E7E5E4;
  --green: #059669;
  --red: #E11D48;
  --amber: #D97706;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Typography ── */
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; }
h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 700; line-height: 1.3; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
p  { color: var(--text-muted); line-height: 1.7; }
a  { text-decoration: none; color: var(--accent); }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.bg-alt { background: #fff; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .15s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 13px 28px; font-size: 15px; }

/* ── Navbar ── */
.nav {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px;
}
.logo { font-size: 20px; font-weight: 800; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; flex: 1; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ── Hero ── */
.hero { background: linear-gradient(160deg, #EFF6FF 0%, #fff 50%, #F0FDF4 100%); padding: 80px 0 64px; text-align: center; }
.hero em { font-style: normal; color: var(--accent); }
.hero-badge {
  display: inline-block; background: var(--accent-light);
  color: var(--accent-dark); border-radius: 99px;
  padding: 5px 14px; font-size: 12px; font-weight: 700;
  margin-bottom: 20px; letter-spacing: .3px;
}
.hero h1 { margin-bottom: 16px; }
.hero p { font-size: 18px; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 0; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; max-width: 560px; margin: 0 auto;
  background: #fff; box-shadow: var(--shadow);
}
.stat { flex: 1; padding: 20px 16px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-val { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Trust bar ── */
.trust-bar { background: var(--accent); padding: 14px 0; }
.trust-inner { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; }
.trust-item { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; padding: 4px 24px; border-right: 1px solid rgba(255,255,255,.2); }
.trust-item:last-child { border-right: none; }

/* ── Section header ── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-label { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 16px; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon { font-size: 32px; margin-bottom: 12px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 14px; margin-bottom: 12px; }
.service-price { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.service-link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── Process ── */
.process-steps { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin: 0 auto; }
.process-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.process-step h4 { margin-bottom: 4px; }
.process-step p { font-size: 14px; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testi-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.testi-stars { color: #D97706; font-size: 16px; margin-bottom: 12px; }
.testi-card p { font-size: 14px; font-style: italic; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.testi-author strong { display: block; font-size: 13px; }
.testi-author span { font-size: 12px; color: var(--text-muted); }

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  padding: 72px 0; text-align: center; color: #fff;
}
.cta-section h2 { color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 28px; }
.cta-section .btn-primary { background: #fff; color: var(--accent); font-size: 15px; padding: 13px 28px; }
.cta-section .btn-primary:hover { background: rgba(255,255,255,.9); }

/* ── Footer ── */
.footer { background: #1C1917; color: rgba(255,255,255,.8); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a { font-size: 12px; color: rgba(255,255,255,.5); }
.footer-links-group h4 { color: #fff; font-size: 13px; margin-bottom: 14px; }
.footer-links-group ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links-group a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links-group a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; justify-content: space-between; font-size: 12px;
  color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px;
}

/* ── Cards (general) ── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }

/* ── Form elements ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; color: var(--text); background: #fff;
  outline: none; transition: border-color .15s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1C1917; color: #fff; border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 13px; z-index: 9999;
  animation: slideUp .3s ease-out; display: none;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  .hero { padding: 48px 0 40px; }
  .hero p { font-size: 16px; }
  .hero-stats { flex-direction: column; max-width: 100%; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .trust-inner { flex-direction: column; align-items: center; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
}
