/* ════════════════════════════════════════════════════════════════
   ThriveOn Solutions — brand patch CSS
   Loaded site-wide via single <link> in unified header.
   Fixes Safari header overflow + applies brand voice to new pages.
   ════════════════════════════════════════════════════════════════ */

:root {
  --ink:#0A1628; --navy:#082B5F; --mid:#1E2A44;
  --paper:#F4F1EC; --white:#FFFFFF;
  --red:#B91C2C; --teal:#17B8CF;
  --muted:#5F708A; --soft:#9FB8DF;
  --border-dark:#1A2D4F; --border-light:#D6CCB8;
}

/* ─── SAFARI HEADER OVERFLOW FIX ──────────────────────────────────
   Problem: existing logo is 398×523 (portrait), with no height
   constraint. Safari renders this taller than Chrome, breaking
   the flexbox header. Fix: hard-cap the logo height.
   ──────────────────────────────────────────────────────────────── */
.site-header .nav-logo img {
  height: 36px !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0;
  display: block;
}
.site-header .nav-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header .nav-logo span {
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 15px;
  white-space: nowrap;
}
.site-header .site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  flex-wrap: nowrap;
  overflow: visible;
}
.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mobile header behavior */
@media (max-width: 860px) {
  .site-header .nav-links { display: none; }
  .site-header .menu-toggle { display: inline-block; }
}
@media (min-width: 861px) {
  .site-header .menu-toggle { display: none; }
}

/* ─── BRAND-VOICE PAGE CLASSES (homepage + careers) ──────────────── */
.thriveon-page {
  font-family: 'Lato', -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.thriveon-page * { box-sizing: border-box; }
.thriveon-page img { max-width: 100%; height: auto; display: block; }

.tx-hero {
  background: var(--ink); color: var(--white);
  padding: 88px 0 112px; position: relative; overflow: hidden;
}
.tx-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 88px 88px; pointer-events: none;
}
.tx-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; }
.tx-hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.tx-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--teal); margin-bottom: 28px; text-transform: uppercase;
}
.tx-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal); }
.tx-eyebrow.red { color: var(--red); }
.tx-eyebrow.red::before { background: var(--red); }
.tx-h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 28px;
}
.tx-h1 .red { color: var(--red); }
.tx-lead {
  font-family: 'Prata', Georgia, serif; font-style: italic;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.4;
  color: var(--soft); max-width: 560px; margin-bottom: 40px;
}
.tx-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.tx-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; transition: all .2s;
  border: none; cursor: pointer; font-family: inherit;
}
.tx-btn-primary { background: var(--white); color: var(--ink); }
.tx-btn-primary:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.tx-btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.tx-btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); color: var(--white); }
.tx-btn .arrow { transition: transform .2s; }
.tx-btn:hover .arrow { transform: translateX(4px); }
.tx-meta {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--soft); text-transform: uppercase;
}
.tx-hero-banner {
  position: relative; border-radius: 6px; overflow: hidden;
  background: var(--mid); box-shadow: 0 30px 80px rgba(0,0,0,.4);
  aspect-ratio: 1276/618;
}
.tx-hero-banner img { width: 100%; height: 100%; object-fit: cover; }

.tx-band {
  background: var(--navy); color: var(--white); padding: 28px 0;
  border-top: 1px solid var(--border-dark);
}
.tx-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.tx-band-text { display: flex; align-items: center; gap: 24px; }
.tx-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); animation: tx-pulse 2s infinite; }
@keyframes tx-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }
.tx-band-label { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--teal); }
.tx-band-headline { font-family: 'Prata', serif; font-style: italic; font-size: 20px; color: var(--white); }

.tx-section { padding: 112px 0; }
.tx-section--ink { background: var(--ink); color: var(--white); }
.tx-section--paper { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--border-light); }
.tx-section h2 {
  font-size: clamp(36px, 4.5vw, 56px); font-weight: 900;
  line-height: 1.05; letter-spacing: -.02em;
}

.tx-method-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.tx-method-col .verb { font-size: 56px; font-weight: 900; line-height: 1; margin-bottom: 14px; letter-spacing: -.02em; }
.tx-method-col .sub-it { font-family: 'Prata', serif; font-style: italic; font-size: 19px; color: var(--teal); margin-bottom: 20px; }
.tx-method-col .body { font-size: 15px; line-height: 1.7; color: var(--soft); padding-top: 20px; border-top: 2px solid var(--red); }

.tx-manifesto { text-align: center; }
.tx-manifesto-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 40px 0; }
.tx-manifesto-word { font-size: clamp(52px, 7vw, 96px); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.tx-manifesto-word.strike { color: var(--muted); position: relative; }
.tx-manifesto-word.strike::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 4px; background: var(--muted); }
.tx-manifesto-word.thrive { color: var(--red); }
.tx-manifesto-tagline { margin-top: 32px; font-family: 'Prata', serif; font-style: italic; font-size: 22px; color: var(--mid); max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.4; }

.tx-cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.tx-cta h2 { margin-bottom: 28px; }
.tx-cta h2 .red { color: var(--red); }
.tx-cta-lead { font-family: 'Prata', serif; font-style: italic; font-size: 20px; line-height: 1.5; color: var(--soft); max-width: 540px; margin-bottom: 32px; }
.tx-contact-rows { display: grid; gap: 8px; margin-top: 24px; }
.tx-contact-row { display: flex; align-items: center; gap: 16px; }
.tx-contact-row .label { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--teal); min-width: 60px; }
.tx-contact-row .value { font-weight: 700; font-size: 16px; color: var(--white); }
.tx-qr { background: var(--white); padding: 24px; border-radius: 8px; text-align: center; max-width: 280px; margin-left: auto; }
.tx-qr img { width: 100%; max-width: 240px; margin: 0 auto 16px; }
.tx-qr p { color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin: 0; }
.tx-qr small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); letter-spacing: 1px; font-weight: 400; }

/* ─── CAREERS PAGE ────────────────────────────────────────────── */
.tx-jobs { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
.tx-job-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 8px;
  padding: 32px 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between;
  text-decoration: none; color: var(--ink); transition: all .2s;
}
.tx-job-card:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0,0,0,.06); border-color: var(--ink); }
.tx-job-num { font-family: 'Prata', serif; font-size: 28px; color: var(--red); min-width: 50px; }
.tx-job-body { flex: 1; }
.tx-job-role { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 6px; }
.tx-job-meta { font-size: 13px; color: var(--muted); font-weight: 500; }
.tx-job-arrow { font-size: 18px; color: var(--ink); transition: transform .2s; }
.tx-job-card:hover .tx-job-arrow { transform: translateX(4px); color: var(--red); }

/* Job detail page */
.tx-job-detail { background: var(--paper); padding: 80px 0 112px; }
.tx-job-detail .tx-container { max-width: 880px; }
.tx-job-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; text-decoration: none; margin-bottom: 32px; }
.tx-job-back:hover { color: var(--red); }
.tx-job-h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 16px; }
.tx-job-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.tx-job-tag { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--ink); background: var(--white); border: 1px solid var(--border-light); padding: 6px 12px; border-radius: 4px; text-transform: uppercase; }
.tx-job-section { margin-top: 40px; }
.tx-job-section h3 { font-size: 11px; letter-spacing: 3px; color: var(--red); font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.tx-job-section p { font-size: 17px; line-height: 1.65; color: var(--mid); margin-bottom: 12px; }
.tx-job-section ul { list-style: none; padding: 0; margin: 0; }
.tx-job-section li { padding: 8px 0 8px 28px; position: relative; font-size: 16px; line-height: 1.6; color: var(--mid); border-bottom: 1px solid var(--border-light); }
.tx-job-section li:last-child { border-bottom: none; }
.tx-job-section li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.tx-job-eeo { margin-top: 48px; padding: 24px 28px; background: var(--white); border-left: 3px solid var(--ink); font-size: 14px; line-height: 1.6; color: var(--mid); font-style: italic; font-family: 'Prata', serif; }
.tx-apply-bar {
  margin-top: 48px; padding: 36px;
  background: var(--ink); color: var(--white); border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.tx-apply-bar h3 { color: var(--white); font-size: 22px; font-weight: 900; margin: 0; }
.tx-apply-bar p { color: var(--soft); font-size: 14px; margin: 6px 0 0; }

/* ─── CONTACT FORM ──────────────────────────────────────────────── */
.tx-form { display: grid; gap: 20px; max-width: 640px; margin-top: 40px; }
.tx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tx-form label { font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--ink); text-transform: uppercase; display: block; margin-bottom: 8px; }
.tx-form input, .tx-form textarea, .tx-form select {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border-light); border-radius: 6px;
  background: var(--white); color: var(--ink);
  font-family: inherit; font-size: 15px; line-height: 1.5;
  transition: border-color .2s;
}
.tx-form input:focus, .tx-form textarea:focus, .tx-form select:focus {
  outline: none; border-color: var(--ink);
}
.tx-form textarea { min-height: 140px; resize: vertical; }
.tx-form-submit { justify-self: start; }

/* ─── FOOTER ──────────────────────────────────────────────────── */
.tx-footer { background: #050D1A; color: var(--soft); padding: 64px 0 28px; }
.tx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border-dark); }
.tx-footer h4 { font-size: 11px; letter-spacing: 2px; color: var(--white); text-transform: uppercase; margin-bottom: 14px; }
.tx-footer a { display: block; color: var(--soft); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.tx-footer a:hover { color: var(--white); }
.tx-footer-brand p { max-width: 340px; font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.tx-social { display: flex; gap: 10px; }
.tx-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-dark); border-radius: 50%; margin-bottom: 0; }
.tx-social a:hover { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.tx-social svg { width: 14px; height: 14px; fill: currentColor; }
.tx-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 12px; flex-wrap: wrap; gap: 12px; }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .tx-hero-grid, .tx-cta-grid, .tx-footer-grid { grid-template-columns: 1fr; }
  .tx-method-cols { grid-template-columns: 1fr; gap: 32px; }
  .tx-band-inner { flex-direction: column; text-align: center; }
  .tx-qr { margin: 0 auto; }
  .tx-job-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tx-form-row { grid-template-columns: 1fr; }
  .tx-section, .tx-hero { padding-top: 64px; padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .tx-container { padding: 0 20px; }
  .tx-h1 { font-size: clamp(40px, 9vw, 56px); }
  .tx-manifesto-word { font-size: clamp(48px, 13vw, 80px); }
}
