/* =====================================================================
   Heron Contracting: Jobs, Privacy Policy and Terms & Conditions.
   Loads AFTER contact.css (it reuses the header, hero, buttons, cards, FAQ, form,
   CTA band and footer from there) and only adds what those pages need.
   ===================================================================== */

/* ---------- Hero (same dark panel, a little shorter) ---------- */
.panel--support { min-height: clamp(540px, calc(20vw + 300px), 720px); }
.panel--support .hs-title { font-size: clamp(2.3rem, 4vw, 4.7rem); }
.panel--legal { min-height: clamp(500px, calc(16vw + 300px), 640px); }
.hero-direct .hero-line { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.hero-meta { margin-top: clamp(18px, 1.8vw, 26px); }
@media (max-width: 860px) {
  .panel--support, .panel--legal { min-height: 0; }
  .panel--support .hs-title { font-size: clamp(2.2rem, 9.2vw, 3.3rem); }
}

/* First section after the hero sits a little closer than the default section gap. */
.sec--first { margin-top: clamp(40px, 4.6vw, 76px); }
.sec .contact-card--flat { margin: 0; }

/* ---------- Jobs: filter + role cards ---------- */
.job-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: clamp(24px, 2.6vw, 38px) 0 0; }
.job-f {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(11,47,54,.2); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.job-f:hover { border-color: var(--sun); transform: translateY(-1px); }
.job-f:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.job-f.is-on { background: linear-gradient(160deg, #105964, #09323a); border-color: transparent; color: #fff; }
.job-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(11,47,54,.08); font-size: 12px; font-weight: 700; text-align: center; }
.job-f.is-on .job-count { background: var(--sun); color: #2b1d00; }

.job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); max-width: 1180px; margin: clamp(24px, 2.6vw, 38px) auto 0; }
.job { gap: 12px; transition: transform .25s, box-shadow .25s; }
.job:hover { transform: translateY(-4px); box-shadow: 0 26px 48px -22px rgba(11,47,54,.38); }
.job[hidden] { display: none; }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.job-dept { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.job-tag { padding: 3px 10px; border-radius: 999px; background: rgba(244,193,93,.28); color: #7a4f00; font-size: 11.5px; font-weight: 600; }
.job-title { margin: 0; color: var(--ink); font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }
.job-meta li { display: inline-flex; align-items: center; gap: 7px; }
.job-meta svg { flex: none; color: var(--teal); }
.job-blurb { margin: 0; color: var(--muted); font-size: clamp(.95rem, 1vw, 1.02rem); line-height: 1.65; }
.job-apply { align-self: flex-start; margin-top: 6px; box-shadow: 0 12px 24px -12px rgba(226,167,59,.7); }

.job-empty { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 620px; margin: clamp(24px, 2.6vw, 38px) auto 0; padding: clamp(28px, 3.4vw, 48px) clamp(20px, 3vw, 40px); border: 1.5px dashed rgba(11,47,54,.28); border-radius: 28px; background: #f6fafa; }
.job-empty[hidden] { display: none; }
.job-empty h3 { margin: 6px 0 0; color: var(--ink); font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: -.01em; }
.job-empty p { margin: 0 0 8px; max-width: 46ch; color: var(--muted); line-height: 1.65; }

/* ---------- Jobs: why Heron + hiring steps ---------- */
.why-grid { list-style: none; margin: clamp(26px, 3vw, 44px) auto 0; padding: 0; max-width: 1280px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.why-card { gap: 10px; }
.why-card .round-ico { margin-top: 8px; }
.why-card h3 { margin: 6px 0 0; color: var(--ink); font-size: clamp(1.1rem, 1.3vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.why-card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }
@media (min-width: 901px) { .journey--4 { --n: 4; max-width: 1180px; margin-left: auto; margin-right: auto; } }

/* ---------- Legal pages ---------- */
.glance { list-style: none; margin: 0; padding: 0; max-width: 1280px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.glance-card { gap: 8px; }
.glance-card .round-ico { margin-top: 8px; }
.glance-card h2 { margin: 6px 0 0; color: var(--ink); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.glance-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

.legal { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: clamp(28px, 4vw, 76px); align-items: start; max-width: 1280px; margin: clamp(40px, 4.6vw, 72px) auto 0; }
.legal-toc-wrap { position: sticky; top: 20px; align-self: start; }
.legal-toc {
  border-radius: 28px; border: 1px solid rgba(11,47,54,.08); box-shadow: 0 18px 40px -22px rgba(11,47,54,.3);
  background: linear-gradient(var(--sun), var(--sun)) 30px 0 / 56px 5px no-repeat, #fff;
}
.legal-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; cursor: pointer; list-style: none; color: var(--ink); font-size: 1.05rem; font-weight: 700; border-radius: 28px; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc summary:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.legal-toc summary > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.legal-toc summary svg { color: var(--teal); }
.legal-chev { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(11,47,54,.2); transition: transform .3s, background .25s; }
.legal-toc[open] .legal-chev { transform: rotate(45deg); background: var(--sun); border-color: var(--sun); }
.legal-toc nav { max-height: min(58vh, 560px); overflow: auto; padding: 0 12px 6px; scrollbar-width: thin; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc li a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; color: #35575e; font-size: .93rem; line-height: 1.35; transition: background .2s, color .2s; }
.legal-toc li a:hover { background: rgba(244,193,93,.2); color: var(--ink); }
.legal-toc li a:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; }
.legal-toc li a.is-active { background: rgba(244,193,93,.3); color: var(--ink); font-weight: 600; }
.toc-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(15,127,134,.12); color: var(--teal); font-size: 12px; font-weight: 700; }
.legal-toc li a.is-active .toc-n { background: var(--sun); color: #2b1d00; }
.legal-tools { display: grid; gap: 10px; margin-top: 8px; padding: 16px 24px 22px; border-top: 1px solid rgba(11,47,54,.1); }
.legal-print { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font-size: .92rem; font-weight: 600; }
.legal-print:hover, .legal-other:hover { color: var(--teal); }
.legal-print:focus-visible, .legal-other:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.legal-other { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: .92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.legal-body { max-width: 820px; }
.lg { margin: 0 0 clamp(28px, 3vw, 44px); padding: 0 0 clamp(28px, 3vw, 44px); border-bottom: 1px solid rgba(11,47,54,.1); scroll-margin-top: 20px; }
.lg:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.lg h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--ink); font-size: clamp(1.35rem, 1.9vw, 1.9rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
.lg-n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #105964, #09323a); color: var(--sun); font-size: 1rem; font-weight: 700; letter-spacing: 0; box-shadow: 0 10px 20px -10px rgba(5,40,48,.6); }
.lg p { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.05vw, 1.1rem); line-height: 1.8; }
.lg p + p, .lg p + ul, .lg ul + p, .lg ul + .lg-note, .lg p + .lg-note { margin-top: 16px; }
.lg strong { color: var(--ink); font-weight: 600; }
.lg a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lg a:hover { color: var(--ink); }
.lg a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.lg .diamond-list { gap: 12px; }
.lg .diamond-list li { color: var(--muted); font-size: clamp(1rem, 1.05vw, 1.1rem); line-height: 1.7; }
.lg-note { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--blush); border-left: 5px solid var(--sun); }
.lg-note p { color: var(--ink); font-size: 1rem; line-height: 1.65; }
.lg-note-ic { flex: none; margin-top: 2px; color: #c0705f; }
.lg-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.lg-contact li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(11,47,54,.08); box-shadow: 0 12px 26px -18px rgba(11,47,54,.3); }
.lg-contact .sf-ic { width: 44px; height: 44px; border: 0; background: linear-gradient(160deg, #105964, #09323a); }
.lg-contact small { display: block; color: var(--muted); font-size: .8rem; font-weight: 500; }
.lg-contact a, .lg-contact span:not(.sf-ic):not(.ph) { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.lg-contact a:hover { color: var(--teal); }
.lg-contact .ph { color: var(--muted); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .glance, .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc-wrap { position: static; }
  .legal-toc nav { max-height: 360px; }
}
@media (max-width: 760px) {
  .job-grid, .glance, .why-grid { grid-template-columns: 1fr; }
  .job-bar { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .job-f { flex: none; }
  .lg h2 { align-items: flex-start; }
  .lg-n { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .job, .job-f, .legal-chev { transition: none; } .job:hover { transform: none; } }

/* ---------- Print: just the policy text ---------- */
@media print {
  .skip-link, .nav, .cta-band, .site-footer, .legal-toc-wrap, .glance, .hero-meta, .cta { display: none !important; }
  .panel { min-height: 0 !important; padding: 0 0 12px !important; background: none !important; color: #000 !important; box-shadow: none; }
  .panel *, .hs-l1, .hs-l2 { color: #000 !important; -webkit-text-fill-color: #000 !important; background: none !important; }
  .legal { display: block; margin-top: 12px; }
  .lg { break-inside: avoid-page; }
  .lg-n { background: none; border: 1px solid #000; color: #000; box-shadow: none; }
}
