/* ============================================================
   Course N Jobs — Site-wide styles
   Depends on colors_and_type.css for design tokens.
   ============================================================ */

/* ===== Shared button styles (used across all pages) ===== */
.cnj-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--t-base), color var(--t-base), border-color var(--t-base), transform var(--t-fast), box-shadow var(--t-base);
  white-space: nowrap;
  text-decoration: none;
}
.cnj-btn:hover { text-decoration: none; }
.cnj-btn:active { transform: translateY(1px); }
.cnj-btn--primary { background: var(--action-primary-bg); color: var(--action-primary-fg); }
.cnj-btn--primary:hover { background: var(--action-primary-bg-hover); color: var(--action-primary-fg); }
.cnj-btn--secondary { background: var(--white); color: var(--action-secondary-fg); border-color: var(--action-secondary-border); }
.cnj-btn--secondary:hover { background: var(--gray-100); }
.cnj-btn--ghost { color: var(--cnj-blue-700); }
.cnj-btn--ghost:hover { background: var(--gray-100); }
.cnj-btn--ghost-inverse { color: var(--white); border-color: rgba(255,255,255,0.4); }
.cnj-btn--ghost-inverse:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.cnj-btn--lg { padding: 14px 24px; font-size: 15px; }

/* ===== Top info bar ===== */
.site-topbar {
  background: var(--cnj-blue-700);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 7px 0;
}
.site-topbar__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-topbar__contact {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-topbar__social { display: flex; gap: 14px; }
.site-topbar__social a {
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--t-base);
  line-height: 1;
}
.site-topbar__social a:hover { color: var(--cnj-gold-400); }

/* ===== Site Nav ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-1);
  box-shadow: var(--shadow-sm);
}
.site-nav__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-brand { display: flex; align-items: center; flex-shrink: 0; }
.site-brand img { height: 48px; width: auto; display: block; }
.site-nav__links {
  display: flex;
  gap: 28px;
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.site-nav__links a {
  color: var(--fg-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}
.site-nav__links a:hover { color: var(--cnj-blue-700); }
.site-nav__links a.active {
  color: var(--cnj-blue-700);
  font-weight: 600;
  border-bottom-color: var(--cnj-gold-500);
}
.site-nav__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--fg-1);
  margin-left: auto;
  flex-shrink: 0;
}
.site-nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border-1);
  padding: 12px 24px 20px;
  gap: 2px;
}
.site-nav__mobile.is-open { display: flex; }
.site-nav__mobile a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-1);
  display: block;
}
.site-nav__mobile a:last-of-type { border-bottom: none; }
.site-nav__mobile a.active { color: var(--cnj-blue-700); font-weight: 600; }
.site-nav__mobile .cnj-btn { margin-top: 12px; justify-content: center; }

/* ===== Site Footer ===== */
.site-foot {
  background: #0a1e3d;
  color: rgba(255,255,255,0.75);
}
.site-foot__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.site-foot__brand img { height: 44px; margin-bottom: 14px; background: rgba(255,255,255,0.92); border-radius: 8px; padding: 5px 10px; box-sizing: content-box; }
.site-foot__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 300px;
  margin: 0 0 20px;
}
.site-foot__social { display: flex; gap: 10px; }
.site-foot__social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--t-base), color var(--t-base), background-color var(--t-base);
}
.site-foot__social a:hover { border-color: var(--cnj-gold-500); color: var(--cnj-gold-500); }
.site-foot__col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin: 0 0 18px;
}
.site-foot__col a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--t-base);
}
.site-foot__col a::before { content: '›'; color: var(--cnj-gold-500); }
.site-foot__col a:hover { color: var(--white); }
.site-foot__col p { font-size: 14px; color: rgba(255,255,255,0.55); margin: 0 0 8px; line-height: 1.55; }
.site-foot__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(140deg, #061a47 0%, #0b2f73 55%, #154a9e 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__blob--gold {
  width: 500px; height: 500px;
  background: rgba(245,168,16,0.10);
  top: -150px; right: -100px;
}
.hero__blob--blue {
  width: 380px; height: 380px;
  background: rgba(30,144,216,0.13);
  bottom: -80px; left: -80px;
}
.hero__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cnj-gold-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 22px;
}
.hero h1 .accent { color: var(--cnj-gold-500); }
.hero__sub {
  font-size: 19px;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 64px 0 0;
}
.hero__stats {
  display: flex;
  gap: 56px;
  justify-content: center;
  padding-top: 36px;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero__stat-num .accent { color: var(--cnj-gold-500); }
.hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

/* ===== Trusted brands strip ===== */
.brands {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-1);
  padding: 44px 0;
}
.brands__label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-4);
  margin-bottom: 28px;
}
.brands__list {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brands__item {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: -0.01em;
  transition: color var(--t-base);
  cursor: default;
}
.brands__item:hover { color: var(--fg-2); }

/* ===== Section header ===== */
.section-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cnj-gold-600);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 14px;
}
.section-header h2 .accent { color: var(--cnj-blue-600); }
.section-header p { font-size: 17px; color: var(--fg-3); max-width: 520px; margin: 0 auto; line-height: 1.6; }

/* ===== Services section ===== */
.services-section {
  padding: 96px 0;
  background: var(--white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gray-300);
}
.service-card__art {
  height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
}
.service-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--fg-1);
  margin: 0 0 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
}

/* ===== Collaborate / form section ===== */
.collab-section {
  padding: 96px 0;
  background: var(--gray-50);
}
.collab-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.collab-left h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin: 0 0 16px;
}
.collab-left h2 .accent { color: var(--cnj-blue-600); }
.collab-left > p { font-size: 16px; color: var(--fg-3); line-height: 1.65; margin: 0 0 28px; }
.collab-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.collab-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--fg-2);
}
.collab-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: var(--cnj-blue-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%231e90d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
.collab-stats {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-1);
  flex-wrap: wrap;
}
.collab-stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--cnj-blue-700);
  line-height: 1;
  letter-spacing: -0.025em;
}
.collab-stat-label { font-size: 13px; color: var(--fg-3); margin-top: 5px; }

/* ===== Form card ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-card h3 { font-size: 20px; font-weight: 700; color: var(--fg-1); margin: 0 0 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--fg-1);
  background: var(--gray-50);
  transition: border-color var(--t-base), box-shadow var(--t-base), background-color var(--t-base);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cnj-blue-500);
  box-shadow: var(--shadow-focus-ring);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-phone { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-success {
  text-align: center;
  padding: 40px 16px;
}
.form-success__icon { font-size: 52px; margin-bottom: 14px; }
.form-success p { font-size: 16px; font-weight: 600; color: var(--fg-1); margin: 0; }
.form-success small { font-size: 14px; color: var(--fg-3); }

/* ===== Contact page ===== */
.contact-hero {
  background: linear-gradient(140deg, #061a47 0%, #0b2f73 100%);
  padding: 64px 24px;
  text-align: center;
}
.contact-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: var(--white); margin: 0 0 12px; }
.contact-hero h1 .accent { color: var(--cnj-gold-500); }
.contact-hero p { font-size: 17px; color: rgba(255,255,255,0.7); margin: 0; }
.contact-body {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: 28px; font-weight: 700; margin: 0 0 14px; color: var(--fg-1); }
.contact-info > p { font-size: 15px; color: var(--fg-3); line-height: 1.65; margin: 0 0 36px; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-detail__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--cnj-blue-100);
  color: var(--cnj-blue-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-detail__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-4);
  margin-bottom: 4px;
}
.contact-detail__value { font-size: 15px; font-weight: 600; color: var(--fg-1); }

/* ===== Coming soon ===== */
.coming-soon {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}
.coming-soon__inner { max-width: 500px; }
.coming-soon__badge {
  display: inline-block;
  background: var(--cnj-gold-100);
  color: var(--cnj-gold-700);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.coming-soon__emoji { font-size: 80px; margin-bottom: 20px; }
.coming-soon h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg-1);
  margin: 0 0 16px;
}
.coming-soon p {
  font-size: 18px;
  color: var(--fg-3);
  line-height: 1.6;
  margin: 0 0 36px;
}

/* ===== Courses search (inline, above course list) ===== */
.courses-search {
  margin-bottom: 14px;
}
.courses-search__inner {
  position: relative;
  max-width: 100%;
}
.courses-search__inner svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-3);
  pointer-events: none;
}
.courses-search__inner input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--fg-1);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.courses-search__inner input:focus {
  outline: none;
  border-color: var(--cnj-blue-500);
  box-shadow: var(--shadow-focus-ring);
}

/* ===== Responsive: tablet ===== */
@media (max-width: 960px) {
  .site-topbar { display: none; }
  .site-nav__links { display: none; }
  .site-nav__inner .cnj-btn { display: none; }
  .site-nav__menu-btn { display: flex; }

  .hero { min-height: auto; }
  .hero__stats { gap: 28px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-inner { grid-template-columns: 1fr; gap: 40px; }

  .site-foot__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-body { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Responsive: mobile ===== */
@media (max-width: 640px) {
  .site-nav__inner { padding: 0 16px; }

  .hero__inner { padding: 64px 16px 56px; }
  .hero__stats { gap: 20px; }
  .hero__stat-num { font-size: 30px; }
  .hero h1 { font-size: 30px; }
  .hero__sub { font-size: 16px; }

  .brands__list { gap: 20px; }
  .brands__item { font-size: 15px; }

  .services-section { padding: 56px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 32px; }

  .collab-section { padding: 56px 0; }
  .collab-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }

  .contact-body { padding: 48px 16px 64px; }
  .contact-hero { padding: 48px 16px; }

  .site-foot__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-foot__bottom { flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 16px; }
}
