/* NatHelvetia — Custom styles */
:root {
  --bg: #FAFAF7;
  --accent: #1e3a5f;
  --accent-soft: #E8A87C;
  --accent-light: #d4e4f5;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #16a34a;
  --error: #dc2626;
  --warning: #d97706;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --radius: .5rem;
  --radius-lg: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}

/* ── Typography ─────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; }

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

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 2.5rem 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.badge-blue   { background: var(--accent-light); color: var(--accent); }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  letter-spacing: -.02em;
}
.navbar-brand span { color: var(--accent-soft); }
.navbar-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.navbar-nav a { font-size: .9rem; font-weight: 500; color: var(--text); }
.navbar-nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .15s ease;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #162d4d; color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-soft { background: var(--accent-soft); color: #fff; }
.btn-soft:hover { background: #d4934a; color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.form-control {
  display: block;
  width: 100%;
  padding: .6rem .9rem;
  font-size: .925rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color .15s;
  font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,58,95,.1); }
.form-control.is-invalid { border-color: var(--error); }
.form-text { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: auto; }

/* ── Alerts ───────────────────────────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}
.alert-success { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.alert-error   { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

/* ── Cards ───────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 1rem; }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: #f9fafb; }

/* ── Steps ───────────────────────────────────────────────────────────────────── */
.steps { display: flex; align-items: center; margin-bottom: 2rem; }
.step  { display: flex; align-items: center; flex: 1; }
.step:last-child { flex: none; }
.step-circle {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  flex-shrink: 0;
}
.step.active .step-circle  { background: var(--accent); color: #fff; border-color: var(--accent); }
.step.done .step-circle    { background: var(--success); color: #fff; border-color: var(--success); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 .5rem; }
.step.done + .step > .step-line,
.step.done .step-line      { background: var(--success); }
.step-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); margin-top: .3rem; }
.step.active .step-label   { color: var(--accent); }

/* ── Table ───────────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.table th { text-align: left; font-weight: 700; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: .75rem 1rem; border-bottom: 2px solid var(--border); background: #f9fafb; }
table.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background: #f9fafb; }

/* ── File upload zone ─────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.upload-zone:hover,
.upload-zone.dragover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 2.5rem; margin-bottom: .75rem; color: var(--text-muted); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, #2a5298 100%);
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}
.hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero p  { font-size: 1.1rem; opacity: .9; max-width: 560px; margin-bottom: 2rem; }

/* ── Pricing card ─────────────────────────────────────────────────────────────── */
.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border-color: var(--accent-soft); }
.pricing-badge { position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); background: var(--accent-soft); color: #fff; padding: .25rem .9rem; border-radius: 9999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  background: var(--accent);
  color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
footer a { color: rgba(255,255,255,.75); font-size: .875rem; }
footer a:hover { color: #fff; }
footer .footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; }
footer hr { border-color: rgba(255,255,255,.15); margin: 2rem 0 1rem; }
footer .footer-copy { font-size: .8rem; opacity: .6; }

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 1.2rem; height: 1.2rem;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* ── Progress ────────────────────────────────────────────────────────────────── */
.progress { background: var(--border); border-radius: 9999px; height: .5rem; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 9999px; background: var(--accent); transition: width .4s ease; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--border); z-index: 100; }
  .hero { padding: 3.5rem 0 3rem; }
}

/* ── Misc ────────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-soft   { color: var(--accent-soft); }
.fw-bold     { font-weight: 700; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
