/* =====================================================================
   careers-body.css — Careers (page body styles only)
   Follows the Homes by Villatel legal/info page layout (Terms, Privacy,
   Accessibility): compact teal hero + centered prose block. Chrome (nav,
   footer, modal, chat) is owned by the hbv/ kit. Design tokens come from
   hbv-chrome.css (:root). Mobile-first.
   ===================================================================== */

/* ---- Local design tokens ------------------------------------------
   Declared locally (matching contact / our-story) so spacing + palette
   never depend on the kit :root resolving on the deployed platform. This
   is what keeps the hero gutter equal to the kit nav's gutter — without
   it the deployed hero collapsed to the viewport edge (further left than
   the logo). Font tokens are intentionally NOT redeclared here (single
   source of truth is hbv-chrome.css, per project rules). */
:root {
  color-scheme: light;

  --deep-teal:   #153442;
  --stone-taupe: #AFA085;
  --soft-ivory:  #FFFFFF;
  --mist-blue:   #98C1D8;
  --seafoam:     #D1DBD6;

  --teal-deep:    #061B29;
  --taupe-deep:   #7c6f5b;
  --ink:          #2A2A28;
  --ink-muted:    #6B6862;
  --hairline:       rgba(42, 42, 40, 0.12);
  --hairline-light: rgba(255, 255, 255, 0.22);

  --gutter:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3rem, 6vw, 5.5rem);
}

/* ---- Base ---------------------------------------------------------- */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--soft-ivory);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select { font-family: inherit; }
img { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  /* Fallback matches the kit --gutter token so the container keeps its
     inset even if --gutter fails to resolve (load order / older browsers),
     preventing the hero text from slamming against the viewport edge. */
  padding-inline: var(--gutter, clamp(1.25rem, 4vw, 3rem));
}

/* Custom-element layout neutrality (per kit integration contract) */
hbv-legal-hero { display: block; }
hbv-book-modal { display: contents; }

/* ---- Compact hero header (identical to legal pages) ---------------- */
.legal-hero {
  position: relative;
  background: var(--deep-teal);
  color: var(--soft-ivory);
  padding-top: clamp(130px, 14vh, 190px);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
  overflow: hidden;
}
.legal-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
/* Self-contained gutter geometry (mirrors the site's .hero__content) so the
   hero copy lines up with the nav logo at every width. Intentionally NOT the
   shared `.wrap` utility: on the deploy platform a global `.wrap` rule flattened
   this padding and shoved the hero to the viewport edge — left of the logo.
   A dedicated class name can't be clobbered that way. */
.legal-hero__inner {
  position: relative;
  z-index: 1;
  max-width: clamp(1440px, 90vw, 1920px);
  margin-inline: auto;
  padding-inline: var(--gutter, clamp(1.25rem, 4vw, 3rem));
}

.legal-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.legal-hero__crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legal-hero__crumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.35);
  margin-left: 0.5rem;
}
.legal-hero__crumbs a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.legal-hero__crumbs a:hover { color: #fff; }
.legal-hero__crumbs [aria-current] { color: var(--mist-blue); }

.legal-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist-blue);
  margin: 0 0 0.85rem;
}
.legal-hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--soft-ivory);
  text-wrap: balance;
}
.legal-hero__lede {
  margin: 1.25rem 0 0;
  max-width: 62ch;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

/* ---- Main / layout ------------------------------------------------- */
.legal {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.legal__doc { min-width: 0; max-width: 74ch; }

.legal__intro {
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.18rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

.legal__section { margin: 2.5rem 0 0; }
.legal__section h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--deep-teal);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.legal__doc p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 1.1rem;
}
.legal__doc p:last-child { margin-bottom: 0; }

/* ---- Primary CTA button (calm, brand teal; no bounce) -------------- */
.careers-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 1rem 1.9rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--deep-teal);
  color: var(--soft-ivory);
  border: 1px solid var(--deep-teal);
  border-radius: 4px;
  transition: background-color 0.24s ease, color 0.24s ease;
}
.careers-cta:hover { background: var(--teal-deep, #061B29); color: var(--soft-ivory); }
.careers-cta .arrow { transition: transform 0.24s ease; }
.careers-cta:hover .arrow { transform: translateX(4px); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--mist-blue);
  outline-offset: 3px;
}

/* ---- Reduced motion / print --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .careers-cta, .careers-cta .arrow { transition: none; }
}
@media print {
  .nav, .nav-sticky, .nav-drawer, .announce, .skip-link,
  .hbv-support, hbv-footer, .footer { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .legal-hero { color: #000; background: #fff; }
}
