/* ============================================================
   Beginner Rise — visual system
   Typography: Inter (UI) + DM Sans (display headings)
   Palette:    deep teal primary + warm amber accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:wght@500;600;700;800&display=swap');

:root {
  --teal-50:  #effaf7;
  --teal-100: #d6f1e7;
  --teal-300: #5dbfa6;
  --teal-500: #0d8a78;
  --teal-600: #0d6e6e;   /* primary */
  --teal-700: #075454;
  --teal-900: #042f33;

  --amber-100: #fff3d6;
  --amber-300: #fbbf24;
  --amber-500: #f59e0b;  /* accent */
  --amber-600: #d97706;

  --ink:        #0f1d2a;
  --ink-soft:   #475569;
  --ink-muted:  #6b7888;
  --bg:         #fbfaf6;     /* warm paper */
  --surface:    #ffffff;
  --surface-2:  #f5f3ec;
  --border:     #e7e3d7;
  --border-strong: #cdc7b6;

  --shadow-sm: 0 1px 2px rgba(15, 29, 42, .06);
  --shadow-md: 0 6px 18px rgba(15, 29, 42, .08);
  --shadow-lg: 0 24px 60px rgba(7, 84, 84, .14);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --container: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245,158,11,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(13,110,110,.10), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amber-600); }

h1, h2, h3, h4, .display {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .6rem;
  line-height: 1.18;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin-top: 1.6rem; }
h3 { font-size: 1.25rem; margin-top: 1.2rem; }
h4 { font-size: 1.02rem; margin-top: 1rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }
p strong { color: var(--ink); }
ul, ol { color: var(--ink-soft); padding-left: 1.25rem; }
li + li { margin-top: .25rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 2.2rem 1.4rem; }
.muted { color: var(--ink-muted); }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 999px;
  padding: .35rem .8rem;
  margin-bottom: .9rem;
}
.eyebrow.amber { color: var(--amber-600); background: var(--amber-100); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.4rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'DM Sans', sans-serif; font-weight: 800; color: var(--ink); font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); box-shadow: var(--shadow-sm); }
.brand-text span { color: var(--amber-600); }
.primary-nav { display: flex; gap: 1.4rem; align-items: center; }
.primary-nav a { color: var(--ink-soft); font-weight: 500; font-size: .96rem; }
.primary-nav a:hover { color: var(--teal-700); }
.primary-nav .btn { font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: .98rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--teal-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-accent { background: var(--amber-500); color: #1f1300; box-shadow: var(--shadow-md); }
.btn-accent:hover { background: var(--amber-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-700); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--teal-700); background: var(--surface-2); border-color: var(--teal-500); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0)) ,
    radial-gradient(900px 400px at 88% 30%, rgba(245,158,11,.18), transparent 60%),
    linear-gradient(135deg, var(--teal-100), var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: -2px 0 auto 0; height: 8px;
  background: linear-gradient(90deg, var(--teal-600), var(--amber-500));
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 4.5rem 1.4rem 4rem; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.85rem); }
.hero h1 span { background: linear-gradient(120deg, var(--amber-500), var(--amber-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 56ch; margin: 1.1rem 0 1.7rem; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem; color: var(--ink-muted); font-size: .9rem; }
.hero-trust span::before { content: "✓ "; color: var(--teal-600); font-weight: 700; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.stat { text-align: center; padding: .4rem; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 2.2rem; color: var(--teal-700); letter-spacing: -.03em; }
.stat .lbl { color: var(--ink-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card-link { display: block; color: inherit; transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-300); color: inherit; }
.card h3 { margin: .2rem 0 .35rem; font-size: 1.1rem; }
.card .meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; color: var(--ink-muted); font-size: .88rem; }

.cat-card {
  display: block; padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(13,110,110,.10), transparent 70%);
  border-radius: 50%;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-300); color: inherit; }
.cat-card .icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500)); color: #fff; font-weight: 700;
  font-family: 'DM Sans', sans-serif; letter-spacing: .04em; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.cat-card h3 { margin: 0 0 .35rem; }
.cat-card .count { margin-top: 1rem; font-weight: 600; color: var(--teal-700); font-size: .92rem; }
.cat-card.beginner-flag .icon { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); }
.cat-card .badge { position: absolute; top: 1rem; right: 1rem; background: var(--amber-100); color: var(--amber-600); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; }

.tag { display: inline-block; background: var(--teal-50); color: var(--teal-700); border: 1px solid var(--teal-100); padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .04em; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; color: var(--ink-soft); background: var(--surface); }
.chip:hover { border-color: var(--teal-500); color: var(--teal-700); }

/* ---------- Job grid ---------- */
.job-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.8rem 2rem; box-shadow: var(--shadow-sm); }
.job-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin: .9rem 0 1.2rem; color: var(--ink-soft); font-size: .94rem; }
.job-meta strong { color: var(--ink); font-weight: 600; }
.job-body h2, .job-body h3 { color: var(--ink); }
.job-body p, .job-body li { color: var(--ink-soft); }
.callout { background: linear-gradient(180deg, var(--amber-100), #fff); border: 1px solid var(--amber-300); border-left: 4px solid var(--amber-500); padding: 1rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0 1.4rem; color: var(--ink); }
.callout strong { color: var(--amber-600); }

.success { background: var(--teal-50); border: 1px solid var(--teal-100); border-left: 4px solid var(--teal-600); padding: 1rem 1.1rem; border-radius: var(--radius-sm); margin: 1rem 0; color: var(--teal-900); }

/* ---------- Pay table ---------- */
.pay-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.pay-table th, .pay-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
.pay-table th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.pay-table tr:last-child td { border-bottom: none; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1rem; position: sticky; top: 88px; }
.sidebar .card h3 { margin-top: 0; font-size: 1.05rem; }
.sidebar .card ul { padding-left: 1.1rem; color: var(--ink-soft); }

/* ---------- Form ---------- */
.contact-form { display: grid; gap: 1rem; margin-top: 1rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; color: var(--ink); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: .75rem .9rem;
  font: inherit; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(13,110,110,.18);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Prose / long-form ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose blockquote { border-left: 3px solid var(--teal-500); margin: 1rem 0; padding: .25rem 1rem; color: var(--ink-soft); background: var(--teal-50); border-radius: var(--radius-sm); }

/* ---------- Crumbs ---------- */
.crumbs { color: var(--ink-muted); font-size: .88rem; margin-bottom: .8rem; }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--teal-700); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 1.4rem 2rem; max-width: var(--container); margin: 0 auto; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: .5rem 0; }
.footer-grid a { color: var(--ink-soft); font-size: .94rem; }
.footer-grid a:hover { color: var(--teal-700); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 1.4rem; border-top: 1px solid var(--border); color: var(--ink-muted); }

/* ---------- Long-form pages ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 80% 20%, rgba(245,158,11,.16), transparent 60%),
    linear-gradient(135deg, var(--teal-100), var(--bg) 70%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.page-hero .container { padding-top: 1rem; padding-bottom: 1rem; }
.page-hero h1 { max-width: 22ch; }
.page-hero p { max-width: 65ch; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; margin: 1.4rem 0; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem 1.3rem 4rem; position: relative; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 1.3rem; top: 1.2rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-family: 'DM Sans', sans-serif; box-shadow: var(--shadow-sm);
}
.step h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.step p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-image { order: -1; max-width: 460px; margin: 0 auto; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .job-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 1.6rem 1.1rem; }
  .primary-nav { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-inner { padding: 2.5rem 1.1rem 2.5rem; gap: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .stats { grid-template-columns: 1fr 1fr; padding: 1.1rem; }
  .stat .num { font-size: 1.7rem; }
  .job-card { padding: 1.3rem; }
  .page-hero { padding: 2rem 0 1rem; }
}
