/* MommyRevenue — Family Finance Resource
   Design: Warm sage green + amber, clean editorial, friendly and trustworthy
   Framework: Bootstrap 5
*/

:root {
  --primary: #4A7C59;
  --primary-light: #6AAF7A;
  --primary-dark: #2E5C3E;
  --secondary: #D4823A;
  --secondary-light: #E8A966;
  --secondary-dark: #A85F20;
  --bg: #FAFAF7;
  --bg-alt: #F2F5F0;
  --bg-warm: #FDF6EC;
  --text: #1C2B1E;
  --text-muted: #5A6B5C;
  --border: #D8E4DA;
  --white: #FFFFFF;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(74, 124, 89, 0.10);
  --shadow-md: 0 4px 24px rgba(74, 124, 89, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* === BASE === */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-top: 2rem; margin-bottom: 0.75rem; color: var(--primary-dark); }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

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

ul, ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

strong { color: var(--primary-dark); }

/* === NAVBAR === */
.site-navbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}

.site-navbar .navbar-brand span {
  color: var(--secondary);
}

.site-navbar .nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--primary-dark);
  background: var(--bg-alt);
}

/* === HERO === */
.hero-section {
  background: linear-gradient(135deg, #E8F2EC 0%, #F5EFE0 100%);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.hero-badge {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--secondary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-section h1 {
  color: var(--primary-dark);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 520px;
}

.btn-primary-site {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary-site:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary-site {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary-site:hover {
  background: var(--primary);
  color: var(--white);
}

/* === CONTENT SECTIONS === */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* === TOPIC CARDS === */
.topic-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
  text-decoration: none;
}

.topic-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.topic-card h3 {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin: 0 0 0.5rem;
}

.topic-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* === ARTICLE CARDS === */
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.15s;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 1.4rem 1.5rem;
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.tag-budget { background: #E3F2E6; color: #2E6E3E; }
.tag-frugal { background: #FFF0E0; color: #A85F20; }
.tag-income { background: #EDF0FF; color: #3A4EC4; }

.article-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-heading);
  color: var(--text);
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.article-card a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.article-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* === PAGE CONTENT === */
.page-hero {
  background: linear-gradient(160deg, #E8F2EC 0%, #F5EFE0 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--primary-dark);
  max-width: 800px;
}

.page-hero .page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.content-area {
  max-width: 780px;
}

.content-area h2 {
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
  margin-top: 2.5rem;
}

.content-area img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
}

.content-area ul, .content-area ol {
  padding-left: 1.75rem;
}

.content-area a[href^="http"] {
  color: var(--primary);
  font-weight: 500;
}

/* === SIDEBAR === */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-size: 1rem;
  font-family: var(--font-heading);
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bg-alt);
}

.sidebar-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-list a {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  transition: color 0.15s;
}

.sidebar-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.sidebar-cta h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border: none;
  padding: 0;
}

.sidebar-cta p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
}

.sidebar-cta a {
  background: var(--white);
  color: var(--primary-dark);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}

.sidebar-cta a:hover { opacity: 0.9; color: var(--primary-dark); }

/* === BANNER === */
.banner-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3.5rem 0;
}

.banner-section h2 {
  color: var(--white);
  margin: 0 0 0.75rem;
  border: none;
  padding: 0;
}

.banner-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
}

.btn-white:hover { opacity: 0.9; color: var(--primary-dark); text-decoration: none; }

/* === FOOTER === */
.site-footer {
  background: #1C2B1E;
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--secondary-light); }

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.45rem; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--secondary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* === CONTACT FORM === */
.contact-form .form-control {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.contact-form .btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.contact-form .btn:hover { background: var(--primary-dark); color: var(--white); }

/* === BREADCRUMB === */
.breadcrumb-area {
  padding: 0.75rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin: 0;
  font-size: 0.85rem;
}

.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* === 404 === */
.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.page-404 h1 {
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* === UTILITIES === */
.bg-alt { background: var(--bg-alt); }
.bg-warm { background: var(--bg-warm); }
.text-muted-site { color: var(--text-muted); }
.mt-section { margin-top: 4rem; }
.mb-section { margin-bottom: 4rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-section { padding: 2.5rem 0 2rem; }
  .page-hero { padding: 2rem 0 1.5rem; }
  .banner-section { padding: 2.5rem 0; }
  .hero-image-wrap { margin-top: 1.5rem; }
  .hero-image-wrap img { height: 220px; }
}
