/* refresh.css — 2026 visual upgrade for MD Passive Income.
 * Loaded AFTER style.css so these rules override the older palette/typography
 * without touching existing HTML class names.
 * Brand: rich green + gold, serif headlines (Wirecutter/NerdWallet-inspired).
 */

:root {
  --mdpi-ink: #0f172a;
  --mdpi-body: #374151;
  --mdpi-muted: #6b7280;
  --mdpi-line: #e5e7eb;
  --mdpi-bg: #ffffff;
  --mdpi-bg-alt: #f8fafc;
  --mdpi-accent: #047857;       /* rich emerald green */
  --mdpi-accent-dark: #064e3b;
  --mdpi-gold: #b45309;         /* warm gold */
  --mdpi-gold-hover: #92400e;
  --mdpi-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* Typography */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--mdpi-body);
  background: var(--mdpi-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 {
  font-family: 'Lora', 'Georgia', serif;
  color: var(--mdpi-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; margin-top: 2.5rem; }
h3 { font-size: 1.35rem; font-weight: 600; margin-top: 2rem; }
a { color: var(--mdpi-accent); text-underline-offset: 3px; }
a:hover { color: var(--mdpi-accent-dark); }

/* Import serif headline font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@500;600;700&display=swap");

/* Layout cleanup */
.container { max-width: 1200px; padding-left: 1.25rem; padding-right: 1.25rem; }
.section { padding: 3.5rem 0; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.section-subtitle { color: var(--mdpi-muted); font-size: 1.1rem; }

/* Header polish */
header {
  background: var(--mdpi-bg);
  border-bottom: 1px solid var(--mdpi-line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  position: sticky; top: 0; z-index: 100;
}
.header-content { padding: 1rem 0; }
.logo { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 700; color: var(--mdpi-ink); }
nav ul { gap: 1.5rem; }
nav a {
  color: var(--mdpi-body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
nav a:hover { color: var(--mdpi-accent); }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid var(--mdpi-line);
}
.hero h1 { color: var(--mdpi-ink); }
.hero-subtitle { color: var(--mdpi-body); font-size: 1.2rem; }

/* Buttons */
.btn, button.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
  border: 0;
  cursor: pointer;
}
.btn-primary, .btn-gold {
  background: var(--mdpi-gold);
  color: #fff;
}
.btn-primary:hover, .btn-gold:hover {
  background: var(--mdpi-gold-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.3);
}
.btn-secondary {
  background: var(--mdpi-bg);
  color: var(--mdpi-accent);
  border: 2px solid var(--mdpi-accent);
}
.btn-secondary:hover {
  background: var(--mdpi-accent);
  color: #fff;
}

/* Cards */
.card {
  background: var(--mdpi-bg);
  border: 1px solid var(--mdpi-line);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mdpi-shadow);
}
.card h3 { margin-top: 0; }

/* Newsletter */
.newsletter-form {
  background: linear-gradient(135deg, var(--mdpi-accent-dark) 0%, var(--mdpi-accent) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.15);
}
.newsletter-form h3, .newsletter-form h4 { color: #fff; }
.newsletter-form p { color: rgba(255,255,255,0.92); }
.newsletter-form input[type="email"] {
  width: 100%; padding: 0.85rem 1rem;
  border-radius: 8px; border: 0;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.newsletter-form label { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.newsletter-success {
  background: rgba(255,255,255,0.12);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  color: #fff;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
footer a { color: #cbd5e1; }
footer a:hover { color: #fff; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem; margin-bottom: 2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* Grid */
.grid-2, .grid.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3, .grid.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Ad slot spacing */
.ad-slot, ins.adsbygoogle {
  display: block !important;
  margin: 2.5rem auto;
  max-width: 100%;
}
.ad-slot {
  background: var(--mdpi-bg-alt);
  border: 1px solid var(--mdpi-line);
  border-radius: 8px;
  padding: 0.5rem;
  min-height: 100px;
  text-align: center;
}
.ad-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mdpi-muted);
  margin-bottom: 0.25rem;
}

/* Responsive nav */
@media (max-width: 768px) {
  nav ul { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .hero { padding: 3rem 0; }
}
