/* ============================================================
   Leanifi Business Solutions — site styles
   Re-brand by editing the variables below; everything inherits.
   ============================================================ */

:root {
  /* Palette — swap these to re-brand */
  --ink: #21313e;          /* deep slate — headlines, footer */
  --ink-soft: #46586a;     /* body text */
  --paper: #faf7f1;        /* warm off-white page background */
  --card: #ffffff;
  --accent: #0e7c7b;       /* teal — links, buttons */
  --accent-dark: #0a5f5e;
  --amber: #e8a13d;        /* warm highlight — tags, underlines */
  --line: #e5ded2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw: 1060px;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(33, 49, 62, 0.06), 0 12px 28px rgba(33, 49, 62, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.22rem; margin-bottom: 0.35rem; }

p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
}
.logo:hover { text-decoration: none; color: var(--accent-dark); }
.logo { display: flex; align-items: center; gap: 9px; }
.logo svg { height: 24px; width: auto; }
.logo b { font-weight: 700; }
.logo img { height: 22px; width: auto; display: block; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 0.98rem; font-weight: 500; }
.nav-links a.active { color: var(--ink); border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; }
.hero .kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}
.hero h1 { max-width: 17ch; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 1.18rem; max-width: 58ch; margin-bottom: 30px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title { margin-bottom: 8px; }
.section-sub { max-width: 62ch; margin-bottom: 34px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.tile h3 { margin-bottom: 8px; }
.tile p:last-child { margin-bottom: 0; }

/* ---------- Portfolio cards ---------- */
.card-project {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.tag {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  background: #f6ead4; color: #8a5f14; padding: 4px 10px; border-radius: 999px;
}
.tag.teal { background: #dcefee; color: var(--accent-dark); }
.card-project h3 { font-size: 1.35rem; }
.card-project .block-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-top: 6px;
}
.card-project p { margin-bottom: 4px; }
.stack { font-size: 0.85rem; color: #8b98a5; margin-top: 8px; }
.card-links { margin-top: 10px; font-weight: 600; }
.placeholder { background: #fff3cd; border-radius: 6px; padding: 1px 6px; font-size: 0.9em; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.headshot {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(145deg, #dcefee, #f6ead4);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 0.9rem; text-align: center; padding: 20px;
  border: 1px solid var(--line);
}
.cred-list { list-style: none; margin: 18px 0 0; }
.cred-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.cred-list li:last-child { border-bottom: none; }
.cred-list strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); border-radius: var(--radius); padding: 52px 44px;
  text-align: center; margin: 30px 0 10px;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: #b9c4ce; max-width: 52ch; margin: 10px auto 26px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; margin-top: 40px; }
.foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px; font-size: 0.92rem;
}
.foot a { color: var(--ink-soft); margin-left: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .headshot { max-width: 300px; }
  .hero { padding: 56px 0 40px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { font-size: 0.9rem; }
}
@media (max-width: 560px) {
  .nav { flex-direction: column; gap: 10px; }
  .cta-band { padding: 40px 22px; }
}
