/* ============================================================
   SHARED COMPONENTS
   Hero system, section rhythm, cards. Loaded after styles.css
   so it wins where it deliberately supersedes older rules.
   ============================================================ */

/* ---------- hero system ----------
   The header is fixed, so every hero owns its own top clearance.
   No page should ever need an inline padding-top again. */
.hero,
.page-hero {
  padding: clamp(120px, 15vh, 168px) 24px var(--s-8);
  max-width: var(--container);
  margin: 0 auto;
}

/* home: centred, largest type */
.hero { text-align: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700; line-height: var(--lh-tight);
  letter-spacing: -0.035em;
  max-width: 18ch; margin: 0 auto var(--s-5);
  text-wrap: balance;
}
.hero-sub {
  font-size: var(--fs-lead); color: var(--text-secondary);
  max-width: 62ch; margin: 0 auto var(--s-6);
  line-height: var(--lh-body); text-wrap: pretty;
}
.hero-btns { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* inner pages: left-aligned, calmer */
.page-hero { text-align: left; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700; line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 20ch; margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.page-hero .hero-sub {
  margin: 0 0 var(--s-6); max-width: 58ch;
}
.page-hero .hero-btns { justify-content: flex-start; }
.page-hero .trust-strip { justify-content: flex-start; }

/* eyebrow used across every hero */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-sm); font-weight: 500;
  color: var(--text-secondary); margin-bottom: var(--s-4);
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}
.hero .eyebrow { justify-content: center; }

/* ---------- section rhythm ---------- */
.section { padding: var(--section-y) 24px; max-width: var(--container); margin: 0 auto; }
.section-tight { padding-top: 0; }

.section-header { margin-bottom: var(--s-7); }
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2); font-weight: 700;
  line-height: var(--lh-heading); letter-spacing: -0.025em;
  margin-bottom: var(--s-3); text-wrap: balance;
}
.section-header p {
  font-size: var(--fs-body); color: var(--text-secondary);
  max-width: 58ch; line-height: var(--lh-body);
}
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }
.section-header.center .eyebrow { justify-content: center; }

/* header with a trailing action on the same line */
.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap;
}
.section-head-row .section-header { margin-bottom: 0; }

/* ---------- service cards (§8) ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
.svc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5) var(--s-5);
  border: 1px solid transparent;
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 99, 255, 0.22);
}
.svc-card-num {
  font-family: var(--font-display);
  font-size: var(--fs-sm); font-weight: 700; color: var(--brand);
  letter-spacing: 0.06em; margin-bottom: var(--s-5);
}
.svc-card-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3); font-weight: 600;
  line-height: 1.25; margin-bottom: var(--s-2);
}
.svc-card p {
  font-size: var(--fs-sm); color: var(--text-secondary);
  line-height: 1.65; margin-bottom: var(--s-5);
}
.svc-card-link {
  margin-top: auto; font-size: var(--fs-sm); font-weight: 600;
  color: var(--text); display: inline-flex; align-items: center; gap: 6px;
}
.svc-card:hover .svc-card-link { color: var(--brand); }
/* whole card is clickable, link stays the accessible target */
.svc-card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- differentiators (§9) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.why-item { padding-top: var(--s-4); border-top: 2px solid var(--text); }
.why-item h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; margin-bottom: var(--s-2);
}
.why-item p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero, .page-hero { padding: clamp(104px, 14vh, 132px) 20px var(--s-7); }
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .section { padding-left: 20px; padding-right: 20px; }
}

/* ---------- founder note (about page, no portrait) ---------- */
.founder-note-card {
  background: var(--surface-dark); border-radius: var(--r-xl);
  padding: var(--s-8) var(--s-7); position: relative; overflow: hidden;
  max-width: 860px;
}
.founder-note-card::before {
  content: ''; position: absolute; top: -140px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,99,255,0.35), transparent 65%);
}
.founder-note-card > * { position: relative; z-index: 1; }
.founder-note-card .eyebrow { color: var(--brand-light); }
.founder-note-card .founder-quote {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px); font-weight: 600;
  line-height: 1.35; color: var(--text-on-dark);
  margin: var(--s-3) 0 var(--s-5); padding-left: var(--s-5);
  border-left: 3px solid var(--brand);
}
.founder-note-card .founder-note {
  font-size: var(--fs-body); color: var(--text-on-dark-2);
  line-height: var(--lh-body); margin-bottom: var(--s-5); max-width: 62ch;
}
.founder-note-card .founder-sign strong {
  display: block; font-family: var(--font-display);
  font-size: 16px; font-weight: 600; color: var(--text-on-dark);
}
.founder-note-card .founder-sign span { font-size: var(--fs-sm); color: var(--brand-light); }

/* ---------- contact card: text sits on a DARK panel ----------
   These were inheriting light-mode colours and rendering near-invisible. */
.contact-card .contact-hours-note { color: var(--text-on-dark-2); }
.contact-card .contact-hours-note strong { color: var(--text-on-dark); }
.contact-card .contact-address {
  color: var(--text-on-dark-2);
  border-top-color: rgba(255, 255, 255, 0.16);
}
.contact-card .contact-address strong { color: var(--text-on-dark); }
.contact-card .form-privacy { color: var(--text-muted); }
.contact-card .form-privacy a { color: var(--brand-light); }
.contact-card label { color: var(--text-on-dark-2); }

/* ---------- breadcrumbs ---------- */
.crumbs { padding: 96px 24px 0; max-width: var(--container); margin: 0 auto; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: var(--fs-sm); }
.crumbs li { color: var(--text-muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--divider); }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--brand); }
.crumbs + .page-hero { padding-top: var(--s-5); }

/* ---------- problem / solution split ---------- */
.split-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border-radius: var(--r-xl); overflow: hidden;
}
.split-problem, .split-solution { padding: var(--s-7) var(--s-6); }
.split-problem { background: var(--surface-alt); }
.split-solution { border-left: 3px solid var(--brand); }
.split-label {
  display: block; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--s-3);
}
.split-solution .split-label { color: var(--brand); }
.split-card p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-secondary); }

/* ---------- deliverables ---------- */
.deliver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.deliver-item {
  background: var(--surface); border-radius: var(--r-md);
  padding: var(--s-5); border-top: 3px solid var(--brand);
}
.deliver-item h3 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; margin-bottom: var(--s-2);
}
.deliver-item p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }

/* ---------- process list ---------- */
.proc-list { list-style: none; display: grid; gap: var(--s-3); counter-reset: step; }
.proc-list li {
  display: grid; grid-template-columns: 64px 1fr; gap: var(--s-4);
  align-items: start; padding: var(--s-5);
  background: var(--surface); border-radius: var(--r-md);
  transition: transform var(--t-base) var(--ease);
}
.proc-list li:hover { transform: translateX(4px); }
.proc-n {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--brand); line-height: 1;
}
.proc-list h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.proc-list p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6; }

/* ---------- visible placeholder (§38) ---------- */
.placeholder-note {
  border: 1px dashed var(--brand); border-radius: var(--r-md);
  background: var(--brand-tint); color: var(--text-secondary);
  padding: var(--s-5); font-size: var(--fs-sm); line-height: 1.6;
}

@media (max-width: 900px) {
  .split-card { grid-template-columns: 1fr; }
  .split-solution { border-left: none; border-top: 3px solid var(--brand); }
  .deliver-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .deliver-grid { grid-template-columns: 1fr; }
  .proc-list li { grid-template-columns: 44px 1fr; padding: var(--s-4); }
}
