/* Careers page, standalone. Header and footer reuse the site stylesheet;
   everything below the header is scoped under .cr. Palette taken from the
   pre-rendered pages: paper #F7F3EC, ink #211D1A, gold #B99D72 / #D6C3A4. */
:root {
  --cr-ink: #17130f;
  --cr-text: #211d1a;
  --cr-paper: #f7f3ec;
  --cr-paper-2: #ece4d8;
  --cr-muted: rgba(33, 29, 26, 0.68);
  --cr-line: rgba(185, 157, 114, 0.38);
  --cr-gold: #b99d72;
  --cr-gold-soft: #d6c3a4;
  --cr-gold-strong: #cdac72;
  --cr-gold-hover: #dcbd86;
  --cr-wine: #6f1d2b;
  --cr-error: #a8382b;
  --cr-display: "Cormorant Garamond", Georgia, serif;
  --cr-body: Manrope, system-ui, sans-serif;
  --cr-pad: clamp(1.25rem, 4vw, 3rem);
}

body.cr-body { background: var(--cr-paper); color: var(--cr-text); font-family: var(--cr-body); }
.cr { overflow-x: clip; }
.cr img { display: block; max-width: 100%; }
.cr-wrap { max-width: 88rem; margin: 0 auto; padding: 0 var(--cr-pad); }
.cr-section { padding: clamp(4.5rem, 10vw, 8rem) 0; scroll-margin-top: 5rem; }
.cr-h2 { font-family: var(--cr-display); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.05; margin: 0; }
.cr-lead { font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.75; color: var(--cr-muted); max-width: 40rem; margin: 1.25rem 0 0; }
.cr a { color: inherit; }

/* Buttons */
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 3.5rem; padding: 0 2rem;
  font: 600 0.72rem/1 var(--cr-body); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.cr .cr-btn { color: inherit; }
.cr-btn svg { width: 1rem; height: 1rem; flex: none; }
.cr .cr-btn--primary { background: var(--cr-gold-strong); color: var(--cr-ink); }
.cr .cr-btn--primary:hover { background: var(--cr-gold-hover); }
.cr-btn--xl { min-height: 4rem; padding: 0 2.5rem; }
.cr-btn--wide { width: 100%; }
.cr .cr-btn--light { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); }
.cr .cr-btn--light:hover { background: #fff; color: var(--cr-ink); }
.cr .cr-btn--ghost { border-color: var(--cr-line); color: var(--cr-text); background: transparent; }
.cr .cr-btn--ghost:hover { border-color: var(--cr-gold); background: var(--cr-paper-2); }
.cr-btn[disabled] { opacity: 0.6; cursor: progress; }
.cr-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.cr a:focus-visible, .cr button:focus-visible, .cr select:focus-visible, .cr input:focus-visible, .cr textarea:focus-visible { outline: 2px solid var(--cr-gold); outline-offset: 3px; }

/* Hero */
.cr-hero { position: relative; min-height: min(88svh, 52rem); display: flex; align-items: flex-end; isolation: isolate; background: var(--cr-ink); color: #fff; }
.cr-hero__img { position: absolute; inset: 0; z-index: -2; }
.cr-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 13, 10, 0.9) 0%, rgba(16, 13, 10, 0.55) 55%, rgba(16, 13, 10, 0.2) 100%), linear-gradient(0deg, rgba(16, 13, 10, 0.75), transparent 50%); }
.cr-hero__inner { width: 100%; padding-top: 8rem; padding-bottom: clamp(3rem, 9vh, 6rem); }
.cr-hero h1 { font-family: var(--cr-display); font-weight: 400; line-height: 0.95; margin: 0; font-size: clamp(3rem, min(8vw, 11vh), 6.5rem); max-width: 14ch; }
.cr-hero h1 span { display: block; color: var(--cr-gold-soft); font-style: italic; }
.cr-hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; max-width: 40rem; margin: 1.5rem 0 0; color: rgba(255, 255, 255, 0.86); }

/* Roles */
.cr-roles { display: grid; gap: 0; margin-top: 3.5rem; border-top: 1px solid var(--cr-line); border-left: 1px solid var(--cr-line); }
@media (min-width: 640px) { .cr-roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cr-roles { grid-template-columns: repeat(4, 1fr); } }
.cr-role { display: flex; flex-direction: column; gap: 0.85rem; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-right: 1px solid var(--cr-line); border-bottom: 1px solid var(--cr-line); background: rgba(236, 228, 216, 0.35); transition: background 0.25s; }
.cr-role:hover { background: var(--cr-paper-2); }
.cr-role__n { font-family: var(--cr-display); font-size: 1.15rem; color: var(--cr-gold); }
.cr-role h3 { font-family: var(--cr-display); font-weight: 400; font-size: clamp(1.6rem, 2.2vw, 2rem); line-height: 1.1; margin: 0; }
.cr-role p { margin: 0; color: var(--cr-muted); line-height: 1.65; font-size: 0.95rem; }
.cr .cr-role__apply { margin-top: auto; padding-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start;
  font: 600 0.7rem/1 var(--cr-body); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--cr-wine); min-height: 2.75rem; }
.cr-role__apply svg { width: 0.95rem; height: 0.95rem; transition: transform 0.2s; }
.cr-role__apply:hover svg { transform: translateX(4px); }
.cr-other { margin: 2rem 0 0; color: var(--cr-muted); line-height: 1.7; max-width: 44rem; }
.cr-other a { color: var(--cr-wine); text-decoration: underline; text-underline-offset: 3px; }

/* Application */
.cr-apply { background: var(--cr-paper-2); border-top: 1px solid var(--cr-line); }
.cr-apply__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 1000px) { .cr-apply__grid { grid-template-columns: 0.85fr 1.15fr; } .cr-apply__intro { position: sticky; top: 7rem; } }
.cr-steps { list-style: none; margin: 2.25rem 0 0; padding: 0; }
.cr-steps li { display: flex; gap: 1.25rem; align-items: baseline; padding: 1rem 0; border-top: 1px solid var(--cr-line); }
.cr-steps li:last-child { border-bottom: 1px solid var(--cr-line); }
.cr-steps span { font-family: var(--cr-display); font-size: 1.4rem; color: var(--cr-gold); min-width: 1.25rem; }
.cr-steps p { margin: 0; line-height: 1.6; }
.cr-apply__img { margin: 2.25rem 0 0; aspect-ratio: 16 / 10; overflow: hidden; }
.cr-apply__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 999px) { .cr-apply__img { display: none; } }
.cr-mail { margin: 1.5rem 0 0; color: var(--cr-muted); font-size: 0.92rem; line-height: 1.6; }
.cr-mail a { color: var(--cr-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cr-gold); word-break: break-word; }

.cr-panel { background: var(--cr-paper); border: 1px solid var(--cr-line); padding: clamp(1.25rem, 3.5vw, 2.75rem); }
.cr-form { display: grid; gap: 1.35rem; }
.cr-fields { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .cr-fields--2 { grid-template-columns: 1fr 1fr; } }
.cr-field { display: grid; gap: 0.5rem; min-width: 0; }
.cr-field > span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cr-text); }
.cr-field input[type="text"], .cr-field input[type="tel"], .cr-field input[type="email"], .cr-field select, .cr-field textarea {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem; background: #fff; border: 1px solid rgba(33, 29, 26, 0.2); color: var(--cr-text); font: 1rem var(--cr-body); border-radius: 0; }
.cr-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cr-gold) 50%), linear-gradient(135deg, var(--cr-gold) 50%, transparent 50%);
  background-position: calc(100% - 1.2rem) 55%, calc(100% - 0.85rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.cr-field textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.cr-field--other { display: none; }
.cr-field--other.is-shown { display: grid; }
.cr-field__err { display: none; font-size: 0.85rem; color: var(--cr-error); line-height: 1.5; }
.cr-field.is-invalid .cr-field__err { display: block; }
.cr-field.is-invalid input, .cr-field.is-invalid select, .cr-field.is-invalid .cr-drop { border-color: var(--cr-error); }

.cr-drop { position: relative; display: grid; justify-items: center; gap: 0.4rem; padding: 1.75rem 1rem; text-align: center; cursor: pointer;
  border: 1px dashed rgba(185, 157, 114, 0.9); background: #fff; transition: background 0.2s, border-color 0.2s; }
.cr-drop:hover, .cr-drop.is-over { background: rgba(214, 195, 164, 0.18); border-color: var(--cr-gold); }
.cr-drop:focus-within { outline: 2px solid var(--cr-gold); outline-offset: 3px; }
.cr-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cr-drop__icon { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cr-line); color: var(--cr-gold); }
.cr-drop__icon svg { width: 1.2rem; height: 1.2rem; }
.cr-drop__text { line-height: 1.5; word-break: break-word; }
.cr-drop__text b { color: var(--cr-wine); font-weight: 600; }
.cr-drop__hint { color: var(--cr-muted); font-size: 0.82rem; line-height: 1.5; }
.cr-drop.has-file { border-style: solid; border-color: var(--cr-gold); background: rgba(214, 195, 164, 0.14); }
.cr-drop.has-file .cr-drop__icon { background: var(--cr-gold-strong); border-color: var(--cr-gold-strong); color: var(--cr-ink); }

.cr-check { display: flex; gap: 0.85rem; align-items: flex-start; cursor: pointer; font-size: 0.92rem; line-height: 1.6; }
.cr-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--cr-wine); flex: none; }
.cr-check a { text-decoration: underline; text-underline-offset: 3px; }
.cr-form__error { margin: 0; color: var(--cr-error); font-size: 0.92rem; line-height: 1.6; }
.cr-form__error:empty { display: none; }
.cr-form__error a { text-decoration: underline; }
.cr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cr-progress { height: 3px; background: var(--cr-line); overflow: hidden; }
.cr-progress[hidden] { display: none; }
.cr-progress span { display: block; height: 100%; width: 0; background: var(--cr-wine); transition: width 0.2s; }

.cr-done { text-align: center; padding: clamp(1rem, 4vw, 3rem) 0; outline: none; }
.cr-done[hidden] { display: none; }
.cr-done__icon { width: 3.5rem; height: 3.5rem; margin: 0 auto 1.5rem; border: 1px solid var(--cr-gold); border-radius: 50%; display: grid; place-items: center; color: var(--cr-gold); }
.cr-done__icon svg { width: 1.4rem; height: 1.4rem; }
.cr-done h3 { font-family: var(--cr-display); font-weight: 400; font-size: 2.1rem; margin: 0; line-height: 1.15; }
.cr-done p { color: var(--cr-muted); line-height: 1.7; max-width: 30rem; margin: 1rem auto 1.75rem; }

/* Header states the React app normally drives */
header.cr-header { transition: background 0.3s; }
header.cr-header.is-solid { background: rgba(23, 19, 15, 0.96); backdrop-filter: blur(10px); }
.cr-menu { position: fixed; inset: 0; z-index: 60; background: var(--cr-ink); color: #f4efe7; padding: 6rem var(--cr-pad) 2rem; overflow-y: auto; }
.cr-menu[hidden] { display: none; }
.cr-menu a { display: block; font-family: var(--cr-display); font-size: 2rem; padding: 0.55rem 0; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(244, 239, 231, 0.14); }
.cr-menu__close { position: absolute; top: 1.4rem; right: 1.25rem; width: 2.75rem; height: 2.75rem; background: none; border: 0; color: inherit; font-size: 1.75rem; cursor: pointer; }

.cr-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.8s; }
.cr-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cr-reveal { opacity: 1; transform: none; transition: none; } .cr-role__apply svg { transition: none; } }
