/* Fonts: Bricolage Grotesque (headings) and Instrument Sans (text), hosted with the site.
   Both are open-source under the SIL Open Font License (see assets/fonts/OFL-*.txt). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque.woff') format('woff');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-italic.woff') format('woff');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* First Tech Hub Solutions — site styles
   Brand palette only: brand brown from the logo, deep brown, warm neutrals, gold accent. */
:root {
  --brand: #5B2E0F;        /* logo brown */
  --brand-deep: #3B1D09;   /* headings, dark sections, primary buttons */
  --brand-soft: #7A4424;
  --body: #5E4A3C;         /* body text */
  --muted: #6E5A4B;        /* captions */
  --cream: #F6F3EC;        /* page background */
  --sand: #ECE8DF;
  --tint: #F1E4D8;         /* pills, icon tiles */
  --line: #DDD7CA;
  --field: #CFC8B8;
  --white: #FFFFFF;
  --gold: #F2B23E;         /* accent: enroll/pay buttons, numbers */
  --gold-hover: #E6A020;
  --on-dark: #EAD9C8;
  --on-dark-muted: #E3D3C3;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 24px 60px rgba(59, 29, 9, 0.08);
  --gutter: clamp(16px, 6vw, 120px);
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brand-deep);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.02em; line-height: 1.06; color: var(--brand-deep); }
p { margin: 0; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--body); }
.h-section { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 700 16px/1.2 var(--text); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--brand-deep); }
.btn-gold:hover { background: var(--gold-hover); color: var(--brand-deep); }
.btn-dark { background: var(--brand-deep); color: var(--cream); }
.btn-dark:hover { background: var(--brand); color: var(--cream); }
.btn-outline { border-color: var(--brand-deep); color: var(--brand-deep); background: transparent; }
.btn-outline:hover { background: var(--brand-deep); color: var(--cream); }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--brand); font-size: 13px; font-weight: 700; }
.pill-gold { background: #FBEBC9; color: #6B4A09; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--cream); font-size: 14px; font-weight: 600; }

/* Announcement bar */
.announce { background: var(--brand-deep); color: var(--cream); font-size: 15px; text-align: center; padding: 10px var(--gutter); }
.announce a { color: var(--gold); font-weight: 700; margin-left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 243, 236, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 47px; object-fit: contain; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--brand); letter-spacing: -0.01em; }
.nav { display: flex; gap: 30px; font-weight: 500; }
.nav a { color: var(--brand-deep); text-decoration: none; }
.nav a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--brand-deep); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; line-height: 1.02; }
.hero-actions { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; }
.link-strong { font-weight: 700; color: var(--brand-deep); }
.ticks { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 600; color: #3F2A1C; }
.ticks span { display: inline-flex; gap: 8px; align-items: center; }
.tick { width: 20px; height: 20px; flex-shrink: 0; }

.hero-visual { position: relative; padding-bottom: 100px; }
.lms-card { position: relative; margin-left: auto; width: min(540px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: var(--shadow); }
.lms-top { display: flex; justify-content: space-between; align-items: center; }
.lms-top small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.lms-top strong { font-family: var(--display); font-size: 22px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.lms-course { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.lms-course-head { background: var(--brand); color: var(--cream); padding: 28px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.lms-course-head small { color: #E8C8A8; font-weight: 600; font-size: 13px; }
.lms-course-head strong { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.lms-course-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.progress { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress i { display: block; width: 6%; height: 100%; background: var(--brand); border-radius: 999px; }
.lms-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 14px; background: var(--cream); font-weight: 600; }
.lms-row small { font-weight: 500; color: var(--muted); font-size: 13px; }
.toast { position: absolute; left: 0; bottom: 0; width: 330px; max-width: 90%; background: var(--brand-deep); color: var(--cream); border-radius: var(--radius-md); padding: 20px 22px; display: flex; gap: 14px; box-shadow: 0 20px 50px rgba(59, 29, 9, 0.25); }
.toast-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--gold); display: grid; place-items: center; }
.toast strong { display: block; }
.toast span { font-size: 14px; color: var(--on-dark-muted); }

/* Feature strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-block: 40px; border-block: 1px solid var(--line); }
.strip h3 { font-size: 20px; margin-bottom: 8px; }
.strip p { font-size: 15px; color: var(--body); }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-head > div { display: flex; flex-direction: column; gap: 16px; }
.section-head p { max-width: 440px; color: var(--body); font-size: 18px; }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.course-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.course-card h3 { font-size: 30px; font-weight: 700; line-height: 1.1; }
.course-card p { color: var(--body); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--sand); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.course-card.dark { background: var(--brand); color: var(--cream); border-color: var(--brand); }
.course-card.dark h3 { color: var(--cream); }
.course-card.dark p { color: var(--on-dark); }
.course-card.dark .pill { background: var(--brand-soft); color: #F3E3D3; }

/* How it works */
.how { background: var(--brand); color: var(--cream); }
.how h2 { color: var(--cream); }
.how .eyebrow { color: #E8C8A8; }
.how .lead { color: var(--on-dark); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.step { border-top: 2px solid var(--gold); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.step b { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; }
.step h3 { color: var(--cream); font-size: 22px; }
.step p { color: var(--on-dark); font-size: 16px; }

/* Value cards */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.value h3 { font-size: 22px; margin-bottom: 10px; }
.value p { color: var(--body); font-size: 16px; }

/* Founder */
.founder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.founder img { width: 100%; height: 620px; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); }
.founder-copy { display: flex; flex-direction: column; gap: 24px; }
.founder-quote { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.founder-sign { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.founder-sign strong { display: block; font-size: 18px; }

/* Testimonials */
.testimonials { background: var(--sand); }
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.t-card { margin: 0; background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.t-card blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.t-card figcaption strong { display: block; }
.t-card figcaption span { font-size: 14px; color: var(--muted); }

/* FAQs */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.faq-intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-size: 20px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--brand); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin-top: 12px; color: var(--body); }

/* CTA band */
.cta { background: var(--gold); border-radius: 32px; padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 80px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; }
.cta p { margin-top: 12px; color: var(--brand-deep); font-size: 18px; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--brand-deep); color: var(--on-dark-muted); padding-block: 80px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand span { color: var(--cream); }
.footer-brand p { font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col strong { color: var(--cream); }
.footer-col a, .footer-bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid #5A3A22; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.socials { display: flex; gap: 22px; flex-wrap: wrap; }

/* Course page */
.breadcrumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.course-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; padding-block: 56px 96px; }
.course-main { display: flex; flex-direction: column; gap: 28px; }
.course-main h1 { font-size: clamp(38px, 4.8vw, 60px); font-weight: 800; }
.course-main h2 { font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; margin-bottom: 20px; }
.course-block { padding-top: 24px; }
.learn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.learn-item { display: flex; gap: 12px; align-items: flex-start; }
.learn-item .tick { margin-top: 3px; }
.learn-item strong { display: block; font-size: 17px; }
.learn-item span { font-size: 15px; color: var(--body); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.stat b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat span { font-weight: 600; font-size: 15px; }
.who-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.who-chips span { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.outline-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); flex-wrap: wrap; }
.outline-card > div { display: flex; gap: 16px; align-items: center; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; flex-shrink: 0; }
.outline-card strong { display: block; font-size: 18px; }

.enroll-card { position: sticky; top: 104px; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); }
.enroll-price small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.enroll-price strong { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.enroll-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.enroll-list span { display: flex; gap: 10px; align-items: center; }
.divider { height: 1px; background: var(--sand); }
.enroll-form { display: flex; flex-direction: column; gap: 16px; }
.enroll-form h2 { font-size: 22px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { height: 52px; padding: 0 16px; border: 1.5px solid var(--field); border-radius: 12px; font: 16px var(--text); color: var(--brand-deep); background: var(--white); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(242, 178, 62, 0.45); }
.form-error { display: none; padding: 12px 14px; border-radius: 12px; background: #FBE3DC; color: #7A2412; font-size: 14px; }
.form-error.show { display: block; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-align: center; }
.small-note { font-size: 13px; color: var(--muted); text-align: center; }
.mini-steps { background: var(--brand); color: var(--cream); border-radius: 28px; padding: 56px 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 96px; }
.mini-steps b { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--gold); }
.mini-steps strong { display: block; font-size: 18px; margin: 6px 0; }
.mini-steps span { font-size: 15px; color: var(--on-dark); }

/* Success page */
.status-wrap { min-height: calc(100vh - 81px); display: grid; place-items: center; padding: 48px var(--gutter); }
.status-card { width: min(640px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; box-shadow: var(--shadow); }
.status-icon { width: 88px; height: 88px; border-radius: 999px; background: var(--brand); display: grid; place-items: center; }
.status-icon.warn { background: var(--gold); }
.status-card h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.status-card p { color: var(--body); font-size: 18px; }
.ref-box { width: 100%; background: var(--cream); border-radius: 16px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; flex-wrap: wrap; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--tint); border-top-color: var(--brand); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.legal h1 { font-size: clamp(36px, 4.5vw, 52px); font-weight: 800; margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--body); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.open { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 12px 0; font-weight: 600; color: var(--brand-deep); text-decoration: none; border-bottom: 1px solid var(--sand); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero, .founder, .course-layout, .faq-wrap { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
  .strip, .steps, .mini-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid, .value-grid, .t-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta { flex-direction: column; align-items: flex-start; }
  .enroll-card { position: static; }
  .founder img { height: 520px; }
  .faq-wrap { gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { min-height: 68px; }
  .brand img { width: 34px; height: 40px; }
  .brand span { font-size: 16px; }
  .header-actions .btn-gold { display: none; }
  .lms-card { padding: 20px; }
  .toast { left: 12px; }
  .strip, .steps, .course-grid, .value-grid, .t-grid, .learn-grid, .mini-steps, .stat-grid { grid-template-columns: 1fr; }
  .strip { gap: 24px; }
  .mini-steps { padding: 36px 28px; border-radius: 24px; }
  .course-card, .enroll-card { padding: 24px; }
  .founder img { height: 420px; }
  .cta-actions, .cta-actions .btn, .hero-actions .btn-dark { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .announce { font-size: 13px; }
}
