/* SQLSteps.com — static site stylesheet (no frameworks, no JavaScript) */

:root {
  --blue: #3579f3;
  --navy: #101a36;
  --ink: #1f2937;
  --muted: #5f6b7d;
  --line: #e4e8ef;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --soft-2: #eaf1fd;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(16, 26, 54, .10);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
/* Grid children must be allowed to shrink below their content's intrinsic width (prevents image blowout on phones) */
.hero .wrap > *, .about .wrap > *, .grid > *, .footer-grid > *, .cta .wrap > * { min-width: 0; }
.hero-media img, .about-media img { width: 100%; }
body { overflow-x: clip; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #000; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
}
.brand img { width: 40px; height: 40px; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--soft); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--soft-2); }
.nav svg { width: 15px; height: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; line-height: 1.2;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #1b2a58; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-grad { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(53, 121, 243, .12), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-top: 8px; }
.card .more svg { width: 16px; height: 16px; }
.card .more:hover { text-decoration: underline; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--soft-2); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 1.08rem; color: var(--ink); flex: 1; }
.quote blockquote::before {
  content: "\201C"; display: block; font-size: 3rem; line-height: .6; color: var(--blue);
  font-family: Georgia, serif; margin-bottom: 10px;
}
.who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; display: grid; place-items: center; font-size: .95rem; flex: none;
}
.who strong { display: block; color: var(--navy); line-height: 1.2; }
.who span { color: var(--muted); font-size: .9rem; }

/* ---------- About ---------- */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about h2 { margin-bottom: 16px; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 2px; }
.checks strong { color: var(--navy); display: block; }
.checks span { color: var(--muted); font-size: .95rem; }

/* ---------- Module flow ---------- */
.flow {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  list-style: none; padding: 0; margin: 0; counter-reset: step;
}
.flow li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--navy); font-weight: 700; }
.flow li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .85rem; margin-bottom: 10px;
}
.flow li small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Course plans ---------- */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--blue); }
.ribbon {
  position: absolute; top: -14px; right: 20px; background: var(--blue); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.plan h3 { font-size: 1.4rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.meta span {
  display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600;
  color: var(--navy); background: var(--soft); border-radius: 999px; padding: 6px 12px;
}
.meta svg { width: 14px; height: 14px; color: var(--blue); }
.plan ol { padding-left: 0; list-style: none; margin: 0 0 8px; counter-reset: mod; }
.plan ol li { counter-increment: mod; display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.plan ol li::before {
  content: counter(mod); flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--soft-2); color: var(--blue); font-weight: 700; font-size: .8rem; display: grid; place-items: center;
}
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan .note { color: var(--muted); font-size: .95rem; margin: 10px 0 16px; }

/* ---------- Services ---------- */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.services li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-weight: 600; color: var(--navy); }
.services svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.intro { max-width: 760px; margin: 0 auto 40px; text-align: center; color: var(--muted); font-size: 1.1rem; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: p; }
.process li { counter-increment: p; }
.process li::before {
  content: "0" counter(p); display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
  color: var(--blue); margin-bottom: 12px;
}
.process h3 { font-size: 1.1rem; }
.process p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; padding: 64px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #b9c3dc; }

/* ---------- Long-form pages ---------- */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.prose { max-width: 800px; padding-bottom: 72px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose p, .prose li { color: #374151; }
.toc { background: var(--soft); border-radius: var(--radius); padding: 22px 26px; margin: 24px 0 8px; }
.toc strong { display: block; color: var(--navy); margin-bottom: 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
address { font-style: normal; }
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cce0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { color: #aab4cd; }
.email { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; }
.email svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0 0 4px; color: #9aa6c2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .cols-3, .cols-2, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .checks, .process { grid-template-columns: 1fr; }
  .nav a { padding: 8px 10px; font-size: .9rem; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
