/* ============================================================
   afflove.com — Shared Stylesheet
   Fonts: Syne (display) · Inter (body) · JetBrains Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
  --crimson:       #C8294E;
  --crimson-light: #E8445E;
  --crimson-pale:  #FFF0F3;
  --charcoal:      #141C2E;
  --slate:         #2B3A55;
  --slate-light:   #3D5070;
  --pearl:         #F4F6FB;
  --pearl-dark:    #E9EDF5;
  --gold:          #E8A838;
  --gold-pale:     #FFF8E7;
  --green:         #1DB97B;
  --green-pale:    #E7F9F1;
  --white:         #FFFFFF;
  --text-primary:  #141C2E;
  --text-secondary:#4A5568;
  --text-muted:    #8896AB;
  --border:        #E2E8F0;
  --border-strong: #CBD5E0;
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --font-display:  'Syne', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius:        10px;
  --radius-lg:     18px;
  --radius-xl:     28px;
  --max-w:         1160px;
  --nav-h:         68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--pearl);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); }

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.7; }

.mono { font-family: var(--font-mono); }
.text-crimson { color: var(--crimson); }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green); }
.text-muted   { color: var(--text-muted); font-size: 0.85rem; }

/* ── Layout Helpers ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.grid-2     { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3     { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.flex       { display: flex; }
.flex-center{ display: flex; align-items: center; justify-content: center; }
.flex-between{display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.center { text-align: center; }

/* ── Eyebrow Labels ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  background: var(--crimson-pale);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.eyebrow-gold { color: var(--gold); background: var(--gold-pale); }
.eyebrow-slate { color: var(--slate); background: var(--pearl-dark); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--charcoal);
}
.nav-logo .logo-heart { color: var(--crimson); font-size: 1.1rem; }
.nav-logo .logo-aff { color: var(--charcoal); }
.nav-logo .logo-love { color: var(--crimson); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--charcoal); background: var(--pearl); }
.nav-links a.active { color: var(--crimson); font-weight: 600; }
.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white) !important;
  background: var(--crimson) !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--crimson-light) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: var(--crimson);
  color: var(--white);
}
.btn-primary:hover { background: var(--crimson-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--white);
  color: var(--charcoal);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--slate); background: var(--pearl); }

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-gold:hover { background: #D49530; transform: translateY(-1px); }

.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 8px; }
.btn-full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.card-sm { padding: 20px; border-radius: var(--radius); }
.card-dark {
  background: var(--charcoal);
  border-color: var(--slate);
  color: var(--white);
}
.card-dark p { color: rgba(255,255,255,0.7); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.badge-red   { background: var(--crimson-pale); color: var(--crimson); }
.badge-gold  { background: var(--gold-pale); color: #9A6A10; }
.badge-green { background: var(--green-pale); color: #0D7A4A; }
.badge-slate { background: var(--pearl-dark); color: var(--slate); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Stat Numbers ── */
.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--charcoal);
}

/* ── Section Headings ── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head p { max-width: 560px; margin: 12px auto 0; font-size: 1.05rem; }

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .logo .heart { color: var(--crimson); }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 14px;
  font-family: var(--font-display);
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 9px;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }

/* ── Form Inputs ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(200,41,78,0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--crimson); }
.breadcrumb-sep { color: var(--border-strong); }

/* ── Inner Page Hero ── */
.page-hero {
  background: var(--charcoal);
  padding: 56px 0 48px;
  color: var(--white);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.65); margin-top: 10px; }
.page-hero .breadcrumb { margin-bottom: 20px; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: rgba(255,255,255,0.5); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Utility ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.visible { display: block !important; }

/* ════════════════════════════════════
   GOOGLE ADSENSE AD UNIT STYLES
   Containers hold live ads once AdSense
   is active. Before approval they are
   invisible (no min-height placeholder)
   so layout is unaffected.
════════════════════════════════════ */
.ad-section {
  padding: 10px 0;
  background: var(--pearl-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.ad-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-bottom: 4px;
}
.ad-unit { display: block; width: 100%; }
.ad-unit-in-content {
  margin: 32px 0;
  text-align: center;
}
/* Sidebar ad for inner pages */
.ad-aside {
  background: var(--pearl-dark);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
/* Hide ads in print (report download) */
@media print { .ad-section, .ad-unit-in-content, .ad-aside { display: none !important; } }
