/**
 * Careers landing — upbeat breakfast-brunch hiring page (Wooden Spoon styling).
 */

/* Account for sticky 72px .ws-header when jumping to the form via #apply-form */
#apply-form {
  scroll-margin-top: 88px;
}

.ws-careers-page {
  --ws-careers-cream: #faf7f3;
  --ws-careers-ink: #2d2d2d;
}

.ws-careers-page,
.ws-careers-page * {
  text-transform: none;
}

.ws-careers-page .ws-footer {
  margin-top: 0;
}

/* Hero */
.ws-careers-hero {
  position: relative;
  min-height: 62vh; min-height: min(62vh, 520px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.ws-careers-hero__media {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background: center / cover no-repeat url('../../img/optimized/slider/Social/Social2-1200.webp');
  transform: scale(1.03);
}

.ws-careers-hero__media::after {
  content: '';
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  background: linear-gradient(
    120deg,
    rgba(44, 38, 33, 0.88) 0%,
    rgba(156, 28, 52, 0.55) 45%,
    rgba(124, 92, 62, 0.5) 100%
  );
}

.ws-careers-hero__grain {
  position: absolute;
  top:0; right:0; bottom:0; left:0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ws-careers-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding:72px 24px 48px; padding: clamp(72px, 12vw, 120px) 24px clamp(48px, 8vw, 72px);
  width: 100%;
  box-sizing: border-box;
}

.ws-careers-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ws-careers-hero__title {
  font-family: var(--font-primary, 'Prata', Georgia, serif);
  font-size:2rem; font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 12px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.ws-careers-hero__lead {
  max-width: 540px;
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 0 22px;
  opacity: 0.96;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.ws-careers-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ws-careers-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ws-careers-cta--primary {
  background: linear-gradient(92deg, #fff 0%, #faf0e4 100%);
  color: var(--primary-color, #9c1c34);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.ws-careers-cta--primary:hover,
.ws-careers-cta--primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  outline: none;
}

.ws-careers-cta--ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.ws-careers-cta--ghost:hover,
.ws-careers-cta--ghost:focus {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* Perks */
.ws-careers-perks {
  background: var(--ws-careers-cream);
  padding:48px 20px; padding: clamp(48px, 8vw, 72px) 20px;
  border-bottom: 1px solid var(--taupe, #b8a99a);
}

.ws-careers-perks__inner {
  max-width: 1060px;
  margin: 0 auto;
}

.ws-careers-perks__head {
  text-align: center;
  margin-bottom: 32px;
}

.ws-careers-perks__title {
  font-family: var(--font-primary);
  font-size:1.65rem; font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  color: var(--primary-color);
  margin: 0 0 8px;
}

.ws-careers-perks__sub {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-secondary, #666);
  line-height: 1.5;
}

.ws-careers-perk-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .ws-careers-perk-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ws-careers-perk {
  background: var(--surface, #fff);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(184, 169, 154, 0.45);
  box-shadow: var(--shadow, 0 4px 16px rgba(44, 38, 33, 0.06));
}

.ws-careers-perk__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(156, 28, 52, 0.1);
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.ws-careers-perk h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--ws-careers-ink);
}

.ws-careers-perk p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary, #666);
}

/* Roles */
.ws-careers-roles {
  padding:48px 20px; padding: clamp(48px, 8vw, 72px) 20px;
  background: linear-gradient(180deg, var(--surface, #fff) 0%, var(--background, #f8f6f3) 100%);
}

.ws-careers-roles__inner {
  max-width: 980px;
  margin: 0 auto;
}

.ws-careers-roles__title {
  text-align: center;
  font-family: var(--font-primary);
  font-size:1.55rem; font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--primary-color);
  margin: 0 0 10px;
}

.ws-careers-roles__hint {
  text-align: center;
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* "Not actively hiring" notice (shown when every position is paused). */
.ws-careers-not-hiring {
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 16px 20px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  text-align: center;
}

.ws-careers-not-hiring__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #92400e;
}

.ws-careers-not-hiring__body {
  margin: 0;
  font-size: 0.92rem;
  color: #78350f;
}

.ws-careers-roles__controls {
  max-width: 420px;
  margin: 0 auto 20px;
}

/* Role cards — every open position with a "Hiring now" pill + apply jump. */
.ws-careers-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1020px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .ws-careers-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .ws-careers-role-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ws-careers-role-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ws-careers-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.ws-careers-role-card.is-selected {
  border-color: #9c1c34;
  box-shadow: 0 0 0 2px rgba(156, 28, 52, 0.18);
}

.ws-careers-role-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ws-careers-role-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.ws-careers-role-card__pill {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ws-careers-role-card__body {
  flex: 1;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary, #555);
}

.ws-careers-role-card__apply {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid #9c1c34;
  border-radius: 999px;
  background: transparent;
  color: #9c1c34;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ws-careers-role-card__apply:hover,
.ws-careers-role-card__apply:focus {
  background: #9c1c34;
  color: #fff;
  outline: none;
}

.ws-careers-roles__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color, #7c5c3e);
  margin-bottom: 8px;
  font-family: var(--font-secondary);
}

.ws-careers-role-select {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  border: 2px solid var(--taupe, #b8a99a);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ws-careers-role-select:hover,
.ws-careers-role-select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(156, 28, 52, 0.12);
}

.ws-careers-role-detail {
  max-width: 620px;
  margin: 0 auto;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: var(--surface, #fff);
  border: 1px solid rgba(184, 169, 154, 0.55);
  box-shadow: var(--shadow, 0 4px 16px rgba(44, 38, 33, 0.06));
}

.ws-careers-role-detail[hidden] {
  display: none !important;
}

.ws-careers-role-detail__title {
  margin: 0 0 12px;
  font-family: var(--font-primary);
  font-size: 1.35rem;
  color: var(--primary-color);
}

.ws-careers-role-detail__body {
  margin: 0 0 18px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.ws-careers-role-detail__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--accent-color) 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ws-careers-role-detail__apply:hover,
.ws-careers-role-detail__apply:focus {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(156, 28, 52, 0.25);
  outline: none;
}

/* Team galleries */
.ws-careers-team {
  padding:44px 20px 52px; padding: clamp(44px, 7vw, 64px) 20px clamp(52px, 9vw, 80px);
  background: var(--ws-careers-cream);
}

.ws-careers-team .ws-container {
  max-width: 1100px;
  margin: 0 auto;
}

.ws-careers-team__heading {
  text-align: center;
  font-family: var(--font-primary);
  font-size:1.5rem; font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--primary-color);
  margin: 0 0 8px;
}

.ws-careers-team__sub {
  text-align: center;
  margin: 0 0 28px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.ws-careers-team .ws-staff-galleries-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .ws-careers-team .ws-staff-galleries-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ws-careers-team .ws-staff-galleries-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ws-careers-team .ws-staff-gallery {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  padding:14px; padding: clamp(14px, 3vw, 22px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(184, 169, 154, 0.4);
  box-shadow: 0 4px 18px rgba(44, 38, 33, 0.08);
}

/* Safari < 15 / Chrome < 88 have no aspect-ratio: keep the card tall enough for its photo. */
@supports not (aspect-ratio: 1) {
  .ws-careers-team .ws-staff-gallery { min-height: 240px; }
}

/* Rounded-square rotators (theme cards use ~12–18px radii; not circles) */
.ws-careers-team .ws-staff-img {
  width:160px; width: clamp(160px, 42vw, 220px);
  height:160px; height: clamp(160px, 42vw, 220px);
  max-width: calc(100% - 4px);
  max-height: calc(100% - 4px);
  border-radius: 16px;
  object-fit: cover;
}

.ws-careers-team .ws-staff-img:hover {
  transform: translate(-50%, -50%) scale(1.03);
  border-radius: 16px;
}

/* Form zone */
.ws-careers-page .ws-careers-form-wrap {
  background: linear-gradient(to bottom, transparent, rgba(156, 28, 52, 0.04));
  padding-top: 8px;
}

.ws-careers-page .ws-careers-form-wrap > .ws-staff-app {
  padding-top: 24px;
}

.ws-careers-page .ws-staff-app__inner {
  max-width: 560px;
}

.ws-careers-page .ws-staff-app__bar {
  left: 0;
  right: 0;
  max-width: 560px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .ws-careers-cta,
  .ws-careers-role-detail__apply {
    transition: none;
  }
}

/* Job application on phones (2026-11-19 audit, blocker): the site's Order / Menu / Directions bar
   sat on top of the form's own fixed Back / Continue bar, so applicants could not reach Continue.
   On this page the form's bar is the bottom bar; sticky-footer.js reserves room for it. */
@media (max-width: 768px) {
  body.ws-page-app-form .ws-sticky-footer {
    display: none !important;
  }
  body.ws-page-app-form,
  body.ws-page-app-form:has(#wsStickyFooter) {   /* must outrank the bundle's body:has(#wsStickyFooter) 60px */
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}
