/* Additions on top of base.css (the original workshop design system).
   base.css holds the type, colors, sections, buttons, org chart, bio, FAQ.
   This file adds what a multi-page site needs: nav, footer, cards, prose. */

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(14, 12, 10, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-top: 14px; padding-bottom: 14px; }
.nav-brand { font-size: .8rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--white); text-decoration: none; white-space: nowrap; }
.nav-brand span { color: var(--accent-hot); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--gray-warm); text-decoration: none; font-size: .9rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav .btn { padding: 11px 22px; font-size: .82rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--white); padding: 9px 12px; font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #0F0C09; border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 1rem; }
  .nav-links .btn { margin-top: 16px; border-bottom: none; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0F0C09; border-top: 1px solid var(--line-dark); padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; }
.foot-col h4 { margin: 0 0 14px; font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--white); }
.foot-col a { display: block; color: var(--gray-warm); text-decoration: none; font-size: .92rem; padding: 4px 0; }
.foot-col a:hover { color: var(--accent-hot); }
.foot-about p { color: var(--gray-warm); font-size: .92rem; margin-top: 12px; max-width: 30ch; }
.foot-about a.mail { color: var(--white); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 14px; font-size: .92rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .84rem; color: var(--gray-deep); }
.foot-bottom a { color: var(--gray-warm); text-decoration: none; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; } }

/* ---------- Secondary button ---------- */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--white); text-decoration: none; font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 19px 30px; border: 1.5px solid var(--line-dark); border-radius: 8px; transition: border-color .15s ease;
}
.btn-line { transition: background .15s, border-color .15s, color .15s; }
.btn-line:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.on-light .btn-line { color: var(--black); border-color: var(--line-light); }
.on-light .btn-line:hover { color: #fff; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Pain cards (light) ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 52px; }
.pain { background: var(--white-2); border: 1px solid var(--line-light); border-radius: 12px; padding: 30px 26px; box-shadow: 0 18px 44px -22px rgba(22,19,16,.14); }
.pain .q { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.pain h3 { font-size: 1.25rem; font-weight: 850; letter-spacing: -.015em; margin: 12px 0 10px; }
.pain p { color: var(--gray-deep); font-size: .98rem; }
.pain-close { margin-top: 44px; font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.35; border-left: 4px solid var(--accent); padding-left: 26px; max-width: 34ch; color: var(--black); }
@media (max-width: 1000px) { .pain-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 54px; }
.path { background: var(--black-2); border: 1px solid var(--line-dark); border-radius: 16px; padding: 40px 36px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.path::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.path .for { font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hot); }
.path h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; letter-spacing: -.025em; text-transform: uppercase; line-height: 1; margin: 14px 0 16px; }
.path > p { color: var(--gray-warm); }
.path ul { list-style: none; padding: 0; margin: 24px 0 30px; flex: 1; }
.path li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; }
.path li .tick { color: var(--accent-hot); font-weight: 900; flex: none; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { padding: 32px 24px; } }

/* ---------- Hub showcase (light) ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; border: 1px solid var(--line-light); border-radius: 14px; overflow: hidden; background: var(--white-2); }
.hub-cell { padding: 30px 28px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.hub-cell:nth-child(3n) { border-right: none; }
.hub-cell:nth-last-child(-n+3) { border-bottom: none; }
.hub-cell .ic { width: 38px; height: 38px; border-radius: 9px; background: rgba(232,80,15,.1); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hub-cell .ic svg { width: 20px; height: 20px; }
.hub-cell h3 { font-size: 1.12rem; font-weight: 850; margin: 16px 0 6px; }
.hub-cell p { color: var(--gray-deep); font-size: .96rem; }
@media (max-width: 860px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-cell { border-right: 1px solid var(--line-light) !important; border-bottom: 1px solid var(--line-light) !important; }
  .hub-cell:nth-child(2n) { border-right: none !important; }
  .hub-cell:nth-last-child(-n+2) { border-bottom: none !important; }
}
@media (max-width: 520px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-cell { border-right: none !important; border-bottom: 1px solid var(--line-light) !important; }
  .hub-cell:last-child { border-bottom: none !important; }
}

/* ---------- Guarantee band ---------- */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.promise-card { border: 1px solid var(--line-dark); border-radius: 16px; padding: 38px 34px; background: var(--black-2); }
.promise-card.hot { border-color: var(--accent-dim); background: linear-gradient(150deg, rgba(232,80,15,.14), var(--black-2) 60%); }
.promise-card .big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; }
.promise-card .big .mark { color: var(--accent-hot); }
.promise-card h3 { font-size: 1.3rem; font-weight: 850; margin: 18px 0 10px; }
.promise-card p { color: var(--gray-warm); }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } .promise-card { padding: 30px 24px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 90px 0 70px; background: radial-gradient(80rem 34rem at 85% -20%, rgba(232,80,15,.10), transparent 55%), var(--black); border-bottom: 1px solid var(--line-dark); }
.page-hero h1 { margin-top: 22px; max-width: 18ch; }
.page-hero .lede { margin-top: 26px; max-width: 54ch; }
.page-hero .cta-row { margin-top: 36px; }
.crumbs { font-size: .8rem; color: var(--gray-deep); margin-bottom: 18px; }
.crumbs a { color: var(--gray-warm); text-decoration: none; }

/* ---------- Prose (legal, guides) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.55rem; font-weight: 850; letter-spacing: -.02em; margin: 46px 0 14px; }
.prose h3 { font-size: 1.15rem; font-weight: 800; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--gray-warm); font-size: 1.06rem; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--white); }
.prose a { color: var(--accent-hot); }
.prose .updated { font-size: .86rem; color: var(--gray-deep); }
.prose blockquote { margin: 26px 0; border-left: 4px solid var(--accent); padding: 4px 0 4px 22px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--white); }

/* ---------- Mobile tune-ups for the new pieces ---------- */
@media (max-width: 600px) {
  .page-hero { padding: 60px 0 50px; }
  .cta-row .btn, .cta-row .btn-line { width: 100%; }
}

/* Five-department org chart */
.org-depts.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .org-depts.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .org-depts.five { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .org-depts.five { grid-template-columns: 1fr; } }
/* Five pain cards: 3 across then 2 wider ones, so headlines never squeeze */
.pain-grid { grid-template-columns: repeat(6, 1fr); }
.pain-grid .pain { grid-column: span 2; }
.pain-grid .pain:nth-child(4), .pain-grid .pain:nth-child(5) { grid-column: span 3; }
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr 1fr; } .pain-grid .pain, .pain-grid .pain:nth-child(4), .pain-grid .pain:nth-child(5) { grid-column: auto; } .pain-grid .pain:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .pain-grid { grid-template-columns: 1fr; } .pain-grid .pain:nth-child(5) { grid-column: auto; } }

/* Stat units ("2 hrs") sit inline with the number */
.stat b .unit { font-style: normal; font-size: .42em; font-weight: 800; letter-spacing: .02em; color: var(--accent-hot); margin-left: 4px; }
/* "Built for ..." line under the two paths */
.built-for { margin-top: 34px; color: var(--gray-warm); font-size: 1.02rem; max-width: 70ch; }
.built-for a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.built-for a:hover { color: var(--accent-hot); border-color: var(--accent-hot); }
/* Forms on dark pages (contact, guides signup) */
.dark-form { display: grid; gap: 14px; }
.dark-form label { color: var(--gray-warm); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; display: block; }
.dark-form input, .dark-form textarea { background: var(--black); color: var(--white); border-color: var(--line-dark); }
.dark-form textarea { min-height: 140px; resize: vertical; }
.form-msg { display: none; padding: 12px 15px; border-radius: 6px; font-size: .95rem; }
.form-msg.ok { display: block; background: #16241A; border-left: 4px solid #7FB77E; color: #CBE6CA; }
.form-msg.bad { display: block; background: #2A160D; border-left: 4px solid var(--accent); color: #F4C4AC; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.signup input { flex: 1; min-width: 220px; background: var(--black); color: var(--white); border-color: var(--line-dark); }
