/* ══════════════════════════════════════════════════════════════════
   MONEY CALCULATORS — Style Sheet
   Theme: Finance green/gold
══════════════════════════════════════════════════════════════════ */

:root {
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --c-bg: #f5f7f4;
  --c-card: #ffffff;
  --c-border: rgba(20,40,30,0.08);
  --c-border-strong: rgba(20,40,30,0.15);
  --c-text: #0f1f17;
  --c-text-muted: #5a6b62;
  --c-text-light: #8a9690;
  --c-primary: #0a7c4a;
  --c-primary-dark: #065a35;
  --c-primary-light: #e8f5ee;
  --c-accent: #b8860b;
  --c-success: #0a7c4a;
  --c-warning: #c0392b;
  --grad-hero: linear-gradient(135deg, #0f3326 0%, #1a5c3e 50%, #0a7c4a 100%);
  --grad-primary: linear-gradient(135deg, #0a7c4a 0%, #16a368 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 40px rgba(10,124,74,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--c-text); line-height: 1.6; background: var(--c-bg); font-feature-settings: 'tnum'; -webkit-font-smoothing: antialiased; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ══════════ TOP NAV (hub + 5 sites) ══════════ */
.site-nav {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-hub {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #f8f5e8, #fdf6e3);
  border: 1px solid #d4a017;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #7a5a08;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-hub:hover {
  background: linear-gradient(135deg, #fdf6e3, #f4d47f);
  transform: translateY(-1px);
  text-decoration: none;
  color: #5a4006;
}

.nav-hub-icon { font-size: 16px; }

.nav-sites {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-site {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: transparent;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-site:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
  text-decoration: none;
}

.nav-site.active {
  background: var(--c-primary);
  color: white;
}

.nav-site.active:hover {
  background: var(--c-primary-dark);
  color: white;
}

.nav-site-icon { font-size: 14px; }

/* ══════════ HERO ══════════ */
.hero {
  background: var(--grad-hero);
  color: white;
  padding: 64px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(184,134,11,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(10,124,74,0.2), transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(184,134,11,0.2);
  border: 1px solid rgba(184,134,11,0.4);
  color: #f4d47f;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-mono); font-size: 32px; font-weight: 700; color: #f4d47f; line-height: 1; }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* ══════════ MAIN ══════════ */
.main { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; text-align: center; }

/* ══════════ CALC SELECTION GRID ══════════ */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.calc-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.calc-card:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.calc-icon { font-size: 32px; margin-bottom: 10px; display: block; }
.calc-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--c-text); }
.calc-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }

/* ══════════ CALCULATOR SECTIONS ══════════ */
.calculator {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 36px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  scroll-margin-top: 90px;
}

.calc-header { margin-bottom: 28px; text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--c-border); }
.calc-tag { display: inline-block; background: var(--c-primary-light); color: var(--c-primary-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; text-transform: uppercase; }
.calc-header h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.calc-header p { color: var(--c-text-muted); font-size: 15px; }

.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.calc-inputs { display: flex; flex-direction: column; gap: 16px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 13px; font-weight: 600; color: var(--c-text-muted); letter-spacing: 0.01em; }
.input-group input, .input-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-group input:focus, .input-group select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(10,124,74,0.1);
}
.input-group select { font-family: var(--font-body); cursor: pointer; }

.tip-buttons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.tip-btn {
  padding: 8px 4px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 8px;
  background: white;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tip-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tip-btn.active { background: var(--c-primary); border-color: var(--c-primary); color: white; }

.calc-results {
  background: linear-gradient(135deg, #fafbf9 0%, #f0f5ee 100%);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 28px 24px;
}

.result-main { text-align: center; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--c-border); }
.result-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--c-text-muted); margin-bottom: 10px; }
.result-value { font-family: var(--font-mono); font-size: clamp(28px, 5vw, 38px); font-weight: 700; color: var(--c-primary); line-height: 1.1; letter-spacing: -0.02em; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.result-item { background: white; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--c-border); }
.result-sublabel { font-size: 11px; color: var(--c-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.result-subvalue { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--c-text); }
.result-subvalue.earnings { color: var(--c-success); }
.result-subvalue.warning { color: var(--c-warning); }

.result-message {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--c-primary-light);
  border-left: 3px solid var(--c-primary);
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-primary-dark);
}
.result-message.warning-box { background: #fef0ee; border-left-color: var(--c-warning); color: var(--c-warning); }
.result-message:empty { display: none; }

.result-breakdown { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.result-breakdown h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-muted); margin-bottom: 12px; font-weight: 600; }
.growth-bars { display: flex; flex-direction: column; gap: 8px; }
.growth-bar { display: flex; align-items: center; gap: 12px; }
.growth-bar-label { font-size: 12px; color: var(--c-text-muted); width: 60px; font-family: var(--font-mono); }
.growth-bar-track { flex: 1; height: 8px; background: rgba(20,40,30,0.06); border-radius: 4px; overflow: hidden; }
.growth-bar-fill { height: 100%; background: var(--grad-primary); border-radius: 4px; transition: width 0.4s ease; }
.growth-bar-value { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--c-text); width: 90px; text-align: right; }

.calc-info { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.calc-info summary { font-size: 14px; font-weight: 600; color: var(--c-primary); cursor: pointer; padding: 8px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.calc-info summary::before { content: '▸'; display: inline-block; transition: transform 0.2s; font-size: 11px; }
.calc-info[open] summary::before { transform: rotate(90deg); }
.calc-info summary::-webkit-details-marker { display: none; }
.calc-info p, .calc-info ul { margin: 10px 0; font-size: 14px; line-height: 1.7; color: var(--c-text-muted); }
.calc-info ul { padding-left: 20px; }
.calc-info li { margin-bottom: 4px; }
.calc-info strong { color: var(--c-text); }

/* ══════════ AD SLOTS ══════════ */
.ad-slot {
  background: rgba(245,247,244,0.6);
  border: 1px dashed var(--c-border-strong);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin: 32px 0;
  color: var(--c-text-light);
  font-size: 13px;
}
.ad-label { font-size: 10px; letter-spacing: 0.1em; margin-bottom: 8px; color: var(--c-text-light); font-weight: 600; }

/* ══════════ SISTER SITES SECTION ══════════ */
.sister-sites {
  margin: 64px 0 32px;
  padding: 48px 28px;
  background: linear-gradient(135deg, #f8fbf7, #eef5ee);
  border-radius: 24px;
  text-align: center;
}

.sister-sites h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.sister-sub { color: var(--c-text-muted); margin-bottom: 32px; font-size: 15px; }

.sister-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.sister-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sister-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-primary);
  text-decoration: none;
}

.sister-card.hub {
  background: linear-gradient(135deg, #fdf6e3, #f8edca);
  border: 1.5px solid #d4a017;
}

.sister-card.hub:hover {
  border-color: #b8860b;
  box-shadow: 0 16px 40px rgba(184,134,11,0.15);
}

.sister-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.sister-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.sister-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.sister-cta { font-size: 13px; font-weight: 700; color: var(--c-primary); }
.sister-card.hub .sister-cta { color: #7a5a08; }

/* ══════════ FOOTER ══════════ */
.site-footer { background: #0f1f17; color: rgba(255,255,255,0.7); padding: 48px 20px 24px; margin-top: 32px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-section h4 { font-size: 14px; font-weight: 700; color: white; margin-bottom: 10px; letter-spacing: 0.02em; }
.footer-section p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer-section a { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.9; }
.footer-section a:hover { color: white; text-decoration: underline; }
.footer-bottom { max-width: 1000px; margin: 0 auto; padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 768px) {
  .calc-body { grid-template-columns: 1fr; gap: 24px; }
  .calculator { padding: 24px 18px; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 10px 14px; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-hub { justify-content: center; }
  .nav-sites { justify-content: center; gap: 2px; }
  .nav-site { padding: 6px 9px; font-size: 12px; }
  .nav-site-icon { font-size: 13px; }
  .hero { padding: 48px 20px 60px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 24px; }
  .calc-card { padding: 18px 16px; }
  .result-grid { grid-template-columns: 1fr; }
  .calc-results { padding: 20px 18px; }
  .calc-header h2 { font-size: 22px; }
  .sister-sites { padding: 32px 18px; }
  .sister-sites h2 { font-size: 22px; }
}
