/* ════════════════════════════════════════════════════════════════════
   Careers page — additions on top of styles.css. Loaded by careers.html only,
   so the other five pages carry none of this weight.
   Every section uses .sec / .sec-inner, so the site's existing ≤768px and
   ≤480px normalisation applies with no new mobile rules.
   ════════════════════════════════════════════════════════════════════ */

/* ─── Shared primitives ───────────────────────────────────────────── */

/* --coral (#E87C4A) measures 2.68:1 on cream at this size — well under the 4.5
   AA floor for small text. A darkened coral keeps the brand hue and clears it
   at 5.08:1. Do not swap this back to var(--coral). */
.c-eyebrow {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #B4491F; font-weight: 600; margin-bottom: 18px;
}

.c-lede {
  color: var(--text-soft); font-size: 1.05rem; line-height: 1.8;
  max-width: 620px;
}

.c-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--forest); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 18px;
}
.c-h2 em { font-style: italic; color: var(--coral); }

/* ─── Hero pay badge ──────────────────────────────────────────────── */

.pay-badge {
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  padding: 16px 26px; border-radius: 18px;
  background: rgba(245,221,208,0.16);
  border: 1px solid rgba(245,221,208,0.34);
}
.pay-figure {
  font-family: 'Fraunces', serif; font-size: 1.7rem; font-weight: 700;
  color: var(--blush); letter-spacing: -0.01em;
}
.pay-note { font-size: 0.86rem; color: rgba(255,255,255,0.72); }

/* ─── Founder ─────────────────────────────────────────────────────── */

.founder-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px;
  align-items: center;
}
/* studio-doodle.jpg is a tall portrait with a lot of empty wall above the dog.
   Crop slightly below centre so the face and the grooming table both survive. */
.founder-photo {
  width: 100%; height: 460px; object-fit: cover;
  object-position: 50% 55%;
  border-radius: 26px; display: block;
}
@media (max-width: 860px) {
  .founder-grid  { grid-template-columns: 1fr; gap: 34px; }
  .founder-photo { height: 300px; }
}

/* ─── The path ────────────────────────────────────────────────────── */

.path { display: grid; gap: 18px; }

.path-step {
  display: grid; grid-template-columns: 54px 1fr; gap: 22px;
  align-items: start;
  background: #fff; border: 1px solid rgba(28,61,46,0.10);
  border-radius: 20px; padding: 26px 28px;
}
.path-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.05rem;
  flex-shrink: 0;
}
.path-step h4 {
  font-size: 1.1rem; color: var(--forest); font-weight: 600; margin-bottom: 7px;
}
.path-step p { color: var(--text-soft); line-height: 1.7; font-size: 0.94rem; }

@media (max-width: 560px) {
  .path-step { grid-template-columns: 1fr; gap: 14px; padding: 22px 22px; }
}


/* ─── Role panels ─────────────────────────────────────────────────── */

.role-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px; align-items: stretch;
}

.role-card {
  background: #fff; border: 1px solid rgba(28,61,46,0.10);
  border-radius: 24px; padding: 38px 34px;
  box-shadow: 0 14px 44px rgba(28,61,46,0.07);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s ease, border-color 0.3s ease;
  height: 100%; display: flex; flex-direction: column;
}
.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(28,61,46,0.13);
  border-color: rgba(232,124,74,0.35);
}
/* The assistant card previously used var(--cream) while sitting ON a cream
   section — identical values, so it read as disabled next to the white groomer
   card. Both cards are white now; the entry card is marked with a coral rule
   instead of a fill, which distinguishes it without demoting it. */
.role-card-entry { border-top: 3px solid var(--coral); }

.role-kicker {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--coral); font-weight: 600; margin-bottom: 10px;
}
.role-title {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem; font-weight: 700; color: var(--forest);
  letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 16px;
}
.role-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.chip {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 50px;
  background: var(--blush); color: var(--forest);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em;
}
.chip-open { background: rgba(232,124,74,0.14); color: #B85A28; }
.chip-open::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral); margin-right: 7px; flex-shrink: 0;
}

.role-blurb {
  color: var(--text-soft); line-height: 1.75; font-size: 0.96rem;
  margin-bottom: 24px;
}
.role-card .role-foot { margin-top: auto; padding-top: 24px; }

.pay-inline {
  font-family: 'Fraunces', serif; font-size: 1.28rem;
  font-weight: 700; color: var(--forest); margin-bottom: 4px;
}
.pay-inline-note {
  font-size: 0.82rem; color: var(--text-soft); margin-bottom: 22px;
}

/* ─── Lists ───────────────────────────────────────────────────────── */

.c-list { list-style: none; margin: 0 0 24px; padding: 0; }
.c-list li {
  position: relative; padding-left: 30px; margin-bottom: 13px;
  color: var(--text-soft); line-height: 1.65; font-size: 0.94rem;
}
.c-list li::before {
  content: ''; position: absolute; left: 0; top: 0.52em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--coral); opacity: 0.75;
}
.c-list li b { color: var(--forest); font-weight: 600; }

.c-list-check li::before {
  content: '✓'; background: none; color: var(--forest);
  font-size: 0.85rem; font-weight: 700; top: 0.06em;
  width: auto; height: auto; opacity: 1;
}

.c-list-label {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--forest); font-weight: 700; margin-bottom: 14px; opacity: 0.75;
}

/* ─── Apply ───────────────────────────────────────────────────────── */

.apply-block { text-align: center; }
.apply-block .c-lede { margin-left: auto; margin-right: auto; }
.apply-actions {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin: 30px 0 22px;
}
/* Four separate facts (email, address, eligibility, gallery). They were one
   <br>-separated paragraph, which on a phone collapsed into a seven-line
   centred block whose line breaks landed mid-thought. Real paragraphs. */
.apply-alt { font-size: 0.9rem; color: var(--text-soft); line-height: 1.8; }
.apply-alt p + p { margin-top: 8px; }
.apply-alt a { color: var(--forest); font-weight: 600; }

/* ─── Sticky apply bar ────────────────────────────────────────────── */

.apply-bar {
  position: sticky; bottom: 0; z-index: 60;
  background: rgba(253,248,242,0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(28,61,46,0.10);
  box-shadow: 0 -6px 30px rgba(28,61,46,0.08);
  padding: 14px 48px;
}
.apply-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.apply-bar-text { color: var(--forest); font-weight: 600; font-size: 0.95rem; }
.apply-bar-sub  { color: var(--text-soft); font-weight: 400; font-size: 0.85rem; }
.apply-bar-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* On a 844px-tall phone the two-row bar was 136px, and with the 68px fixed nav
   that ate 24% of the viewport from the first pixel — pushing the hero chips
   off the first screen. The label also just repeated the hero. Drop to one row
   of buttons on mobile: ~60px instead of 136px. */
@media (max-width: 640px) {
  /* env() keeps the buttons clear of the iPhone home indicator — without it
     the bottom ~34px of a sticky bar sits under the system gesture area and
     the two apply buttons are the hardest thing on the page to hit. */
  .apply-bar { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .apply-bar-inner { justify-content: center; gap: 10px; }
  .apply-bar-text { display: none; }
  .apply-bar-btns { width: 100%; }
  .apply-bar-btns .btn { flex: 1; justify-content: center; padding: 12px 16px; }
}

/* Respect the site-wide reduced-motion contract already set in styles.css */
@media (prefers-reduced-motion: reduce) {
  .role-card { transition: none; }
  .role-card:hover { transform: none; }
}

/* ─── Responsive: collapse the two-up grids ───────────────────────── */

@media (max-width: 860px) {
  .role-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .role-card { padding: 30px 24px; }
}

/* ─── Phone pass ──────────────────────────────────────────────────────
   Measured 2026-08-17 at 320/360/390/430. Everything below lives inside a
   mobile query, so desktop renders byte-identically to before.

   The leading is the substance of this block, not a tweak. Desktop sets
   1.75–1.8 line-height for 620px measures; on a phone the same copy runs
   ~40 characters a line, and at that measure loose leading makes the eye
   hunt for the next line. Tightening to ~1.6 both reads better and takes
   roughly a screen and a half off the page.
   ──────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-lede                 { line-height: 1.6; }
  .c-lede                    { font-size: 1rem; line-height: 1.62; }
  .role-blurb                { line-height: 1.62; margin-bottom: 18px; }
  .path-step p               { line-height: 1.6; }
  .c-list li                 { line-height: 1.55; margin-bottom: 10px; }
  .c-list                    { margin-bottom: 18px; }
  .c-h2                      { margin-bottom: 14px; }
  .c-eyebrow                 { margin-bottom: 12px; letter-spacing: 0.22em; }
  .role-card .role-foot      { padding-top: 18px; }
  .pay-inline-note           { margin-bottom: 18px; }

  /* Full-width CTAs. At 320px "Apply — Grooming Assistant" wrapped to a
     two-line 77px pill, and the two role-card buttons rendered 220px and
     206px wide inside a 302px card — close enough to full width to read as
     a mistake rather than a choice. */
  .role-foot .btn,
  .apply-actions .btn        { display: flex; width: 100%; justify-content: center; }
  .apply-actions             { flex-direction: column; gap: 12px; margin: 26px 0 20px; }

  /* Vertical padding on an INLINE element grows the hit box without growing
     the line box, so these two links go from an 18px tap target to ~44px
     with zero layout shift. Do not change these to inline-block — that
     would push the surrounding lines apart. */
  .apply-alt a               { padding: 13px 0; }
  .apply-alt                 { line-height: 1.62; }
  .apply-alt p + p           { margin-top: 12px; }
}

/* The h1's forced <br> strands "of it," on its own centred line at phone
   widths. Letting it flow naturally was tried and is worse — it breaks as
   "of it, taught / properly.", splitting the italic phrase that carries the
   line. Keeping the break: an intact "taught properly." beats a tidy ragging. */
@media (max-width: 560px) {
  .path-step   { padding: 20px; gap: 10px; }
  .path-num    { width: 36px; height: 36px; font-size: 0.98rem; }
  .role-card   { padding: 26px 22px; }
}
