/*
Theme Name: FinanceCalcwise
Theme URI: https://financecalcwise.com
Author: FinanceCalcwise
Description: Custom theme for FinanceCalcwise — free financial calculators for the world. Blog posts and pages are fully editable in wp-admin; calculator tool pages run the site's existing interactive app.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: financecalcwise
*/

:root{
  --background: 40 20% 97%;
  --foreground: 160 25% 10%;
  --card: 0 0% 100%;
  --card-foreground: 160 25% 10%;
  --primary: 160 45% 22%;
  --primary-foreground: 40 20% 97%;
  --secondary: 40 30% 92%;
  --secondary-foreground: 160 25% 10%;
  --muted: 40 15% 94%;
  --muted-foreground: 160 10% 45%;
  --accent: 36 80% 55%;
  --accent-foreground: 160 25% 10%;
  --border: 40 15% 88%;
  --radius: .75rem;
}

* { box-sizing: border-box; }

body.financecalcwise {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

body.wp-app-page { margin:0; background:#fff; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }

a { color: hsl(var(--primary)); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Site header ---------- */
.fcw-header { border-bottom: 1px solid hsl(var(--border)); background: #fff; }
.fcw-header .bar { display:flex; align-items:center; justify-content:space-between; height:64px; }
.fcw-logo { font-weight:700; font-size:1.15rem; color: hsl(var(--primary)); }
.fcw-nav { display:flex; gap:1.25rem; flex-wrap:wrap; font-size:.95rem; }
.fcw-nav a { color: hsl(var(--foreground)); }

/* ---------- Hero band (used on blog/pages) ---------- */
.fcw-hero { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); padding: 3rem 0; }
.fcw-hero h1 { margin: 0 0 .5rem; font-size: 2rem; }
.fcw-hero p { margin:0; opacity:.85; max-width:640px; }

/* ---------- Cards / grids ---------- */
.fcw-grid { display:grid; gap:1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 2rem 0; }
.fcw-card { background: hsl(var(--card)); border:1px solid hsl(var(--border)); border-radius: var(--radius); padding:1.25rem; box-shadow: 0 2px 16px -2px hsl(var(--foreground) / .06); transition: box-shadow .15s ease, transform .15s ease; }
.fcw-card:hover { box-shadow: 0 8px 30px -4px hsl(var(--foreground) / .12); transform: translateY(-2px); }
.fcw-card .cat { display:inline-block; font-size:.72rem; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color: hsl(var(--accent)); margin-bottom:.4rem; }
.fcw-card h3 { margin:.15rem 0 .4rem; font-size:1.05rem; }
.fcw-card p { margin:0; color: hsl(var(--muted-foreground)); font-size:.9rem; }
.fcw-card .meta { margin-top:.75rem; font-size:.78rem; color: hsl(var(--muted-foreground)); }

/* ---------- Article / prose ---------- */
.fcw-prose { max-width: 760px; margin: 2.5rem auto; padding: 0 1.25rem; }
.fcw-prose h2 { margin-top:2rem; font-size:1.4rem; }
.fcw-prose h3 { margin-top:1.5rem; font-size:1.15rem; }
.fcw-prose p, .fcw-prose li { color: hsl(var(--foreground) / .9); font-size:1rem; }
.fcw-prose table { width:100%; border-collapse:collapse; margin: 1.5rem 0; }
.fcw-prose th, .fcw-prose td { border:1px solid hsl(var(--border)); padding:.5rem .75rem; text-align:left; }
.fcw-byline { display:flex; gap:.75rem; align-items:center; font-size:.85rem; color: hsl(var(--muted-foreground)); margin: .75rem 0 2rem; }
.fcw-disclaimer { margin-top:3rem; padding:1rem 1.25rem; background: hsl(var(--secondary)); border-radius: var(--radius); font-size:.85rem; color: hsl(var(--muted-foreground)); }

/* ---------- Footer ---------- */
.fcw-footer { border-top:1px solid hsl(var(--border)); background:#fff; margin-top:3rem; padding: 2.5rem 0; font-size:.85rem; color: hsl(var(--muted-foreground)); }
.fcw-footer a { color: hsl(var(--muted-foreground)); }
.fcw-footer .cols { display:grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap:1.5rem; }
.fcw-footer h4 { color: hsl(var(--foreground)); font-size:.85rem; margin:0 0 .6rem; }
.fcw-footer ul { list-style:none; margin:0; padding:0; }
.fcw-footer li { margin:.3rem 0; }

.fcw-ad-slot { margin: 2rem 0; text-align:center; }

@media (max-width:640px){
  .fcw-nav { display:none; }
  .fcw-hero h1 { font-size:1.5rem; }
}
