/* =========================================================
   Narender Singh — Business Turnaround & Growth Consulting
   Design concept: the "ledger" — a business's story told like
   a financial statement moving from loss (red) to growth (green),
   set in deep ink with a warm gold accent for authority & trust.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --ink: #0f1826;
  --ink-soft: #16223a;
  --ink-line: #2a3854;
  --paper: #f4f1ea;
  --paper-dim: #e7e2d5;
  --gold: #c99a3c;
  --gold-bright: #e0b45c;
  --growth: #5a9d76;
  --loss: #b5564c;
  --text-on-ink: #ece8dc;
  --text-on-ink-muted: #93a0ba;
  --text-on-paper: #16202f;
  --text-on-paper-muted: #5c6577;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1160px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); display: inline-block; }

.section-title { font-size: clamp(28px, 3.6vw, 42px); color: inherit; margin-bottom: 16px; }
.section-lede { color: var(--text-on-paper-muted); font-size: 17px; max-width: 620px; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text-on-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand .mark { color: var(--gold); font-size: 22px; }
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-on-ink-muted);
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14.5px;
  color: var(--text-on-ink-muted);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a.mobile-cta { display: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text-on-ink); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background .2s;
}
.nav-cta:hover { background: var(--gold-bright); }

.nav-toggle { display: none; background: none; border: none; color: var(--text-on-ink); font-size: 26px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: 8px 32px 20px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--ink-line); }
  .nav-links.open a.mobile-cta {
    margin-top: 10px; border-bottom: none;
    background: var(--gold); color: var(--ink); font-weight: 600;
    text-align: center; border-radius: var(--radius); padding: 12px;
  }
}

@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: 24px 28px; }
  .hero-stats div { flex: 0 0 calc(50% - 14px); border-left: none; border-top: 2px solid var(--ink-line); padding-left: 0; padding-top: 12px; }
}

/* ---------- Hero (ledger chart signature) ---------- */

.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; }
}

.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--text-on-ink); }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lede {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-on-ink-muted);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid var(--ink-line);
  color: var(--text-on-ink);
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(201,154,60,0.08); }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stats div { border-left: 2px solid var(--ink-line); padding-left: 16px; }
.hero-stats .num { font-family: var(--font-mono); font-size: 26px; color: var(--gold); }
.hero-stats .label { font-size: 12.5px; color: var(--text-on-ink-muted); margin-top: 4px; }

/* Signature chart */
.ledger-chart { position: relative; }
.ledger-chart svg { width: 100%; height: auto; }
.ledger-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s ease-out forwards .3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.ledger-dot {
  opacity: 0;
  animation: fadein .5s ease-out forwards 2.3s;
}
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ledger-line { stroke-dashoffset: 0; animation: none; }
  .ledger-dot { opacity: 1; animation: none; }
}

/* ---------- Generic sections ---------- */

.section { padding: 90px 0; }
.section.on-ink { background: var(--ink); color: var(--text-on-ink); }
.section.dim { background: var(--paper-dim); }
.section-head { margin-bottom: 52px; max-width: 640px; }
.section.on-ink .section-lede { color: var(--text-on-ink-muted); }

.divider { border: none; border-top: 1px solid var(--ink-line); }
.divider.on-paper { border-top: 1px solid #d8d2c2; }

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

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid #e2ddcf;
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card .icon { font-size: 26px; margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-on-paper-muted); font-size: 15px; }

.card.on-ink { background: var(--ink-soft); border-color: var(--ink-line); }
.card.on-ink:hover { border-color: var(--gold); }
.card.on-ink p { color: var(--text-on-ink-muted); }

/* ---------- Process / timeline (real sequence -> numbered) ---------- */

.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--ink-line);
}
.process-item:last-child { border-bottom: 1px solid var(--ink-line); }
.process-num { font-family: var(--font-mono); color: var(--gold); font-size: 15px; }
.process-item h3 { font-size: 20px; margin-bottom: 6px; }
.process-item p { color: var(--text-on-ink-muted); font-size: 15px; max-width: 560px; }

/* ---------- Pricing ---------- */

.price-card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--gold); position: relative; }
.price-card.featured::before {
  content: "MOST CHOSEN";
  position: absolute; top: -12px; left: 32px;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 2px;
}
.price-card h3 { color: var(--text-on-ink); font-size: 20px; margin-bottom: 6px; }
.price-card .amount { font-family: var(--font-mono); font-size: 30px; color: var(--gold); margin: 14px 0; }
.price-card .amount span { font-size: 13px; color: var(--text-on-ink-muted); font-family: var(--font-body); }
.price-card ul { list-style: none; margin: 20px 0 28px; flex-grow: 1; }
.price-card li { color: var(--text-on-ink-muted); font-size: 14.5px; padding: 7px 0; display: flex; gap: 10px; }
.price-card li::before { content: "—"; color: var(--gold); }

/* ---------- Testimonials ---------- */

.quote-card {
  background: #fff;
  border-left: 3px solid var(--gold);
  padding: 28px 30px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-card p.quote { font-family: var(--font-display); font-size: 19px; font-style: italic; color: var(--text-on-paper); margin-bottom: 18px; }
.quote-card .who { font-size: 13.5px; color: var(--text-on-paper-muted); font-family: var(--font-mono); }
.result-chip {
  display: inline-block; margin-top: 14px;
  background: rgba(90,157,118,0.12); color: var(--growth);
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 5px 10px; border-radius: 2px;
}

/* ---------- Forms (enquiry) ---------- */

.form-wrap {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 44px;
}
@media (max-width: 600px) { .form-wrap { padding: 28px 22px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block; font-size: 13px; color: var(--text-on-ink-muted);
  margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: .03em;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  color: var(--text-on-ink);
  padding: 13px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field.full { grid-column: 1 / -1; }

.form-note { font-size: 13px; color: var(--text-on-ink-muted); margin-top: 16px; }

.alert {
  padding: 16px 20px; border-radius: var(--radius); margin-bottom: 28px; font-size: 14.5px;
}
.alert.success { background: rgba(90,157,118,0.14); border: 1px solid var(--growth); color: var(--growth); }
.alert.error { background: rgba(181,86,76,0.14); border: 1px solid var(--loss); color: var(--loss); }

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

.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  border-top: 1px solid var(--ink-line);
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-grid h4 { color: var(--text-on-ink); font-family: var(--font-body); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--ink-line); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }

/* ---------- Admin ---------- */

.admin-shell { background: var(--paper-dim); min-height: 100vh; }
.admin-topbar { background: var(--ink); color: var(--text-on-ink); padding: 18px 32px; display: flex; justify-content: space-between; align-items: center; }
.admin-topbar a.logout { color: var(--gold); font-size: 13.5px; }
.admin-wrap { max-width: 1160px; margin: 0 auto; padding: 40px 32px; }
.login-box {
  max-width: 400px; margin: 90px auto; background: #fff;
  border: 1px solid #e2ddcf; border-radius: var(--radius); padding: 40px;
}
.login-box h1 { font-size: 22px; margin-bottom: 24px; }
.login-box .field { margin-bottom: 18px; }
.login-box .field label { color: var(--text-on-paper-muted); }
.login-box .field input {
  background: #fff; border: 1px solid #ccc4ae; color: var(--text-on-paper);
}
.login-box .field input:focus { border-color: var(--gold); }

table.leads-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2ddcf; }
table.leads-table th {
  text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-on-paper-muted); padding: 14px 16px; border-bottom: 1px solid #e2ddcf; background: var(--paper-dim);
}
table.leads-table td { padding: 14px 16px; border-bottom: 1px solid #ece7d9; font-size: 14px; vertical-align: top; }
table.leads-table tr:last-child td { border-bottom: none; }

.status-pill { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-family: var(--font-mono); display: inline-block; }
.status-pill.New { background: rgba(201,154,60,0.15); color: var(--gold); }
.status-pill.Contacted { background: rgba(93,130,182,0.15); color: #5d82b6; }
.status-pill.In.Discussion { background: rgba(93,130,182,0.15); color: #5d82b6; }
.status-pill.Converted { background: rgba(90,157,118,0.15); color: var(--growth); }
.status-pill.Closed { background: rgba(120,120,120,0.15); color: #888; }

.admin-stats { display: flex; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-stat { background: #fff; border: 1px solid #e2ddcf; border-radius: var(--radius); padding: 20px 26px; min-width: 140px; }
.admin-stat .n { font-family: var(--font-mono); font-size: 26px; color: var(--ink); }
.admin-stat .l { font-size: 12.5px; color: var(--text-on-paper-muted); margin-top: 4px; }
