/* === Sid's Business Toolkit — Global Styles v2 === */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --brand-navy:   #0a1628;
  --brand-blue:   #1a56db;
  --brand-teal:   #0d9488;
  --brand-accent: #f59e0b;
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --border:       #e2e8f0;
  --text-1:       #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --radius-card:  20px;
  --shadow-card:  0 4px 24px rgba(15,23,42,.07);
  --shadow-lift:  0 12px 40px rgba(15,23,42,.13);
}

html  { scroll-behavior: smooth; }
body  { font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif; }

/* ── Nav ── */
.nav-gradient {
  background: linear-gradient(115deg, var(--brand-navy) 0%, #0b2060 60%, #0a1628 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ── Home Hero gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #14b8a6, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Tool Cards ── */
.page-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  display: block;
}
.page-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

/* ── Category Pill badges ── */
.badge-ready   { background: #dcfce7; color: #15803d; }
.badge-soon    { background: #f1f5f9; color: #64748b; }

/* ── Drop zones ── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop-zone.dragover {
  border-color: var(--brand-teal);
  background: #f0fdfa;
}

/* ── Form inputs ── */
.sbt-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .65rem 1rem;
  font-size: .9rem;
  background: #fff;
  color: var(--text-1);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.sbt-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

/* ── Primary Button ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: .75rem 1.5rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  font-family: inherit;
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }

.btn-teal {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .55rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.btn-teal:hover { background: #0f766e; }

/* ── Section card wrapper ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

/* ── Invoice / document preview ── */
.invoice-preview { font-family: Arial, sans-serif; color: #111827; }
.invoice-top     { background: linear-gradient(120deg, #0f172a, #1d4ed8, #14b8a6); }

/* ── HR document preview wrapper ── */
.hr-preview-wrap { overflow: hidden; width: 100%; }
#certificate, #letter, #noc, #resume { box-sizing: border-box; }

/* ── Print ── */
@media print {
  .no-print { display: none !important; }
  .invoice-preview, #certificate, #letter, #noc, #resume {
    box-shadow: none !important; border: 0 !important;
  }
}

/* ── Responsive nav ── */
@media (max-width: 640px) {
  .page-card { padding: 1rem; }
}


/* ── Phase 1 content and legal pages ── */
.tool-info-menu {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem;
}
.tool-info-menu a {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  background: #fff; color: var(--brand-teal); border-radius: 999px;
  padding: .45rem .85rem; font-size: .85rem; font-weight: 700; text-decoration: none;
}
.tool-info-menu a:hover { background: #f0fdfa; }
.legal-page {
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: 2rem; box-shadow: var(--shadow-card); color: var(--text-2); line-height: 1.75;
}
.legal-page h1 { font-size: 2rem; line-height: 1.15; font-weight: 800; color: var(--text-1); margin-bottom: 1rem; }
.legal-page h2 { font-size: 1.2rem; font-weight: 800; color: var(--text-1); margin-top: 1.5rem; margin-bottom: .35rem; }
.legal-page p { margin-top: .75rem; }
footer a:hover { color: var(--brand-teal); }

/* ── Mobile fix for business document generators ── */
@media (max-width: 640px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  main { width: 100%; max-width: 100%; overflow-x: hidden; }
  main > section { max-width: 100%; }
  .grid { min-width: 0; }
  .grid > * { min-width: 0; }
  .sbt-input, textarea, select, button, label { max-width: 100%; }
  .rounded-3xl { max-width: 100%; }
  #invoice {
    max-width: 100%;
    min-width: 0;
  }
  #invoice > div { max-width: 100%; }
  #invoice .p-7, #invoice .p-6 { padding: 1rem !important; }
  #invoice .text-3xl { font-size: 1.45rem !important; line-height: 1.2 !important; }
  #invoice table { font-size: .75rem; }
  #invoice th, #invoice td { padding-left: .35rem !important; padding-right: .35rem !important; }
  h1 { font-size: 2rem !important; line-height: 1.15 !important; overflow-wrap: anywhere; }
  .btn-primary,
  #download,
  #add,
  label[for="logoFile"] {
    width: 100%;
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
  }
}
