/* letsboot.nz — standalone static site.
   Design ported from www.letsboot.ch (web/src/styles/global.css :root tokens),
   shared with the letsboot-japan.com region. Self-contained: no build step, no framework. */

:root {
  --c-bg: #ffffff;
  --c-fg: #15181d;
  --c-muted: #5b6470;
  --c-line: #e3e7ec;
  --c-soft: #f5f7f9;
  --c-brand: #e8482b; /* letsboot orange-red */
  --c-brand-fg: #ffffff;
  --c-ink: #0d1b2a;

  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  --radius: 10px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--c-fg);
  background: var(--c-bg);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}
h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
h4 {
  font-size: 1rem;
  letter-spacing: 0;
}
p {
  margin: 0 0 var(--sp-4);
}

.btn {
  display: inline-block;
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--c-brand);
  color: var(--c-brand-fg);
}
.btn--primary:hover {
  filter: brightness(0.94);
}
.btn--ghost {
  background: #fff;
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn--ghost:hover {
  border-color: var(--c-muted);
}

.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-brand);
  margin-bottom: var(--sp-3);
}
.kicker {
  font-size: 0.78rem;
  margin-bottom: var(--sp-2);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--c-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand:hover {
  text-decoration: none;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
@media (max-width: 520px) {
  .brand-logo {
    height: 38px;
  }
}
.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: 0.92rem;
}
.header-right > a {
  color: var(--c-ink);
  font-weight: 600;
}
.header-contact {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.35;
  font-size: 0.82rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--c-soft) 0%, #ffffff 60%);
  border-bottom: 1px solid var(--c-line);
}
.hero .wrap {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
  max-width: 860px;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--c-muted);
  margin-bottom: var(--sp-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--sp-16) 0;
}
.section + .section {
  border-top: 1px solid var(--c-line);
}
.section-lead {
  max-width: 760px;
  margin-bottom: var(--sp-8);
}
.section-lead p {
  color: var(--c-muted);
}

/* ---------- Course grid (home) ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--sp-4);
}
.course-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--sp-6);
  color: var(--c-ink);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.course-card:hover {
  text-decoration: none;
  border-color: var(--c-brand);
  box-shadow: 0 6px 20px rgba(13, 27, 42, 0.08);
  transform: translateY(-2px);
}
.course-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.course-card .c-title {
  font-weight: 700;
  line-height: 1.25;
}
.course-card .c-tag {
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-top: auto;
}

/* ---------- References ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-4);
  align-items: center;
}
.ref {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}
.ref img {
  max-width: 100%;
  max-height: 44px;
  width: auto;
  height: auto;
  filter: grayscale(1);
  opacity: 0.75;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.trainer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--sp-6);
  color: var(--c-ink);
}
.trainer-card:hover {
  text-decoration: none;
  border-color: var(--c-brand);
}
.trainer-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-line);
  margin-bottom: var(--sp-2);
}
.trainer-card .t-name {
  font-weight: 700;
}
.trainer-card .t-role {
  font-size: 0.85rem;
  color: var(--c-muted);
}
.trainer-card .t-note {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-brand);
  margin-top: 0.15rem;
}

/* ---------- Card / contact CTA ---------- */
.card {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  margin-bottom: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding-top: var(--sp-6);
  font-size: 0.85rem;
  color: var(--c-muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--c-muted);
}
.breadcrumb span:last-child {
  color: var(--c-ink);
  font-weight: 600;
}

/* ---------- Course page ---------- */
.course-hero {
  border-bottom: 1px solid var(--c-line);
}
.course-hero .wrap {
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-12);
  max-width: 820px;
}
.course-hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--c-muted);
}
/* trainer boxes at the top of a course page */
.course-trainers {
  margin: var(--sp-6) 0 0;
}
.course-trainers .ct-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}
.ct-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.course-trainer {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-3);
  color: var(--c-ink);
}
.course-trainer:hover {
  text-decoration: none;
  border-color: var(--c-brand);
}
.course-trainer img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-line);
}
.course-trainer .ct-name {
  display: block;
  font-weight: 700;
  line-height: 1.2;
}
.course-trainer .ct-role {
  display: block;
  font-size: 0.82rem;
  color: var(--c-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-6) 0;
}
.chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink);
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.hero-actions {
  margin-top: var(--sp-4);
}

.course-body {
  max-width: 820px;
  padding-bottom: var(--sp-16);
}
.course-block {
  padding-top: var(--sp-8);
}
.course-block h2 {
  font-size: 1.35rem;
}
.course-block p,
.course-block li {
  color: var(--c-fg);
}
.course-block ul {
  padding-left: 1.2rem;
  margin: 0 0 var(--sp-4);
}
.course-block li {
  margin-bottom: 0.25rem;
}
.course-block ul ul {
  margin-top: 0.25rem;
  color: var(--c-muted);
}
.course-block code {
  background: var(--c-soft);
  border: 1px solid var(--c-line);
  border-radius: 5px;
  padding: 0.05rem 0.35rem;
  font-size: 0.9em;
}

/* FAQ */
.faq dl {
  margin: 0;
}
.faq dt {
  font-weight: 700;
  color: var(--c-ink);
  margin-top: var(--sp-4);
}
.faq dd {
  margin: 0.25rem 0 0;
  color: var(--c-muted);
}

/* CTA box on course pages */
.cta-box {
  margin-top: var(--sp-12);
  padding: clamp(var(--sp-6), 4vw, var(--sp-8));
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-soft);
}
.cta-box h3 {
  margin-bottom: var(--sp-3);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-ink);
  color: #cdd6e0;
  padding: var(--sp-12) 0;
  font-size: 0.9rem;
}
.site-footer a {
  color: #fff;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-8);
}
.site-footer .f-brand {
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
  display: block;
  margin-bottom: var(--sp-2);
}
.site-footer .f-head {
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: var(--sp-2);
}
.site-footer .f-mihi {
  color: #9fb0c0;
  max-width: 34ch;
}
.site-footer p {
  margin-bottom: var(--sp-3);
}

@media (max-width: 780px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    gap: var(--sp-3);
  }
  .header-right {
    gap: var(--sp-4);
    width: 100%;
    justify-content: space-between;
    font-size: 0.85rem;
  }
  .header-contact {
    display: none;
  }
  .hero .wrap {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
  }
}
