/* ===================================================================
   Jacob Nardini — personal consulting site
   Editorial-professional: serif display headings, deep navy ink,
   restrained teal accent, hairline borders, generous whitespace.
   =================================================================== */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1a2433;
  --ink-soft: #46556b;
  --ink-faint: #8593a6;
  --accent: #14594b;
  --accent-dark: #0e453a;
  --accent-tint: #edf3f0;
  --gold: #c9974c;
  --border: #e7e3da;
  --shadow: 0 1px 3px rgba(26, 36, 51, 0.06);
  --shadow-lift: 0 10px 30px rgba(26, 36, 51, 0.10);
  --radius: 12px;
  --max-width: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.18rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav tabs ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero (About page) ---------- */

.hero {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, #f5f2ea 0%, var(--bg) 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.tagline {
  font-size: 2.45rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.tagline em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-photo {
  justify-self: center;
}

.hero-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid #c9c3b6;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--surface);
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 38px;
  max-width: 62ch;
}

.section-head p {
  margin-top: 10px;
  font-size: 1.02rem;
}

.page-title {
  padding: 68px 0 8px;
}

.page-title p {
  margin-top: 14px;
  font-size: 1.08rem;
  max-width: 64ch;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  border-color: #d4cfc3;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; margin-bottom: 0; }

.card .tag-row { margin-bottom: 16px; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-right: 6px;
}

.tag-health { background: #eaf1f8; color: #335f8f; }
.tag-finserv { background: #f1edf7; color: #5d4a87; }
.tag-status { background: #f7efdf; color: #8c6a2f; }

/* ---------- About page extras ---------- */

.about-body {
  max-width: 70ch;
}

.about-body p { font-size: 1.05rem; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 8px;
}

.pill-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.91rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- Services: staged approach ---------- */

.stages {
  display: grid;
  gap: 16px;
}

.stage {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}

.stage-num {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage h3 { margin-bottom: 4px; }
.stage .stage-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.stage p { font-size: 0.97rem; margin-bottom: 0; }

/* ---------- Blog ---------- */

.blog-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 46px 0 24px;
}

.blog-section-label h2 { white-space: nowrap; }

.blog-section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

.post-card {
  display: block;
  color: inherit;
}

.post-card .post-date {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.post-card h3 { transition: color 0.15s; }
.post-card:hover h3 { color: var(--accent-dark); }

.post-card .read-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Article pages ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 76px;
}

.article .post-date {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 16px 0 32px;
}

.article h1 { font-size: 2.05rem; }
.article h2 { font-size: 1.4rem; margin: 38px 0 14px; }
.article p { font-size: 1.04rem; }
.article ul, .article ol { margin: 0 0 18px 26px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }

.article-note {
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--accent-dark);
  margin-bottom: 32px;
}

.back-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.form-field .optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4cfc3;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 89, 75, 0.12);
}

.form-field textarea { min-height: 130px; resize: vertical; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.calendly-card {
  background: linear-gradient(160deg, #20304a 0%, var(--ink) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lift);
}

.calendly-card h3 { color: #fff; margin-bottom: 10px; }
.calendly-card p { color: #c2cbd9; font-size: 0.96rem; }

.calendly-card .btn-primary {
  margin-top: 8px;
  background: var(--gold);
  color: #1a2433;
}

.calendly-card .btn-primary:hover { background: #d8a85f; color: #1a2433; }

.contact-direct {
  margin-top: 26px;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 48px;
  background: var(--surface);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.footer-wrap a {
  color: var(--ink-soft);
  margin-left: 22px;
  font-weight: 500;
}
.footer-wrap a:first-child { margin-left: 0; }
.footer-wrap a:hover { color: var(--accent-dark); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 220px; height: 220px; }
  .tagline { font-size: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px 20px;
    gap: 10px;
    box-shadow: var(--shadow-lift);
  }

  .nav-links.open { display: flex; }
}
