/* FinStart — Mobile-first stylesheet */

/* ===== Variables ===== */
:root {
  --navy: #1e3a5f;
  --navy-light: #2a4f80;
  --orange: #f97316;
  --orange-hover: #ea6a0a;
  --bg: #f8f9fb;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6075;
  --border: #e2e6ef;
  --max-w: 900px;
  --radius: 10px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span { color: var(--orange); }

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--orange); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 680px;
  margin: 0 auto 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* ===== About ===== */
.about {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.about h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.about p {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
}

/* ===== Calculators section ===== */
.calculators {
  padding: 3rem 0;
}

.calculators h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 820px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(30,58,95,0.1);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer .disclaimer {
  max-width: 680px;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

.site-footer .copyright {
  opacity: 0.5;
  font-size: 0.8rem;
}
