/* =====================================================================
   CAREERS PAGE — uses the same fonts, colours and header as the home page
===================================================================== */
.careers-page { background: #f6f2e9; }
.careers-page main { padding-top: 80px; }

/* shared heading pieces (same look as the home page section headings) */
.cr-eyebrow {
  position: relative; margin: 0 0 14px;
  font-family: 'Jost', sans-serif; font-size: .86rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: #7a5f1f;
}
.cr-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4vw, 3.9rem); font-weight: 600;
  line-height: 1.1; letter-spacing: -.01em; color: #16233a; text-wrap: balance;
}
.cr-title em { font-style: italic; color: #9a7a2e; }
.cr-divider { display: block; width: 64px; height: 1px; margin: 22px auto 0; background: #b8902a; }
.cr-divider--left { margin-left: 0; }
.cr-text, .cr-lead, .cr-card p {
  font-family: 'Jost', sans-serif; color: rgba(22, 35, 58, .84); line-height: 1.8;
}
.cr-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px;
  font-family: 'Jost', sans-serif; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #16233a; background: #b8902a; border: 1px solid #b8902a; border-radius: 2px; text-decoration: none; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.cr-btn:hover { background: #16233a; color: #f0d584; border-color: #16233a; }
.cr-btn:focus-visible, .cr-field input:focus-visible, .cr-field select:focus-visible, .cr-field textarea:focus-visible {
  outline: 2px solid #b8902a; outline-offset: 2px;
}

/* hero: text on the left, office photo on the right */
.cr-hero { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: calc(100vh - 80px); }
.cr-hero__text { align-self: center; padding: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 64px) clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px); }
.cr-hero__text .cr-divider { margin-left: 0; }
.cr-lead { margin: 20px 0 32px; max-width: 54ch; font-size: 1.06rem; }
.cr-hero__photo { margin: 0; position: relative; overflow: hidden; }
.cr-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

/* sections */
.cr-section { padding: clamp(80px, 8vw, 116px) clamp(20px, 4vw, 48px); }
.cr-section--tint { background: #fbf9f4; }
.cr-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); }
.cr-grid { display: grid; gap: 22px; max-width: 1180px; margin: 0 auto; }
.cr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cr-card {
  background: #fff; border: 1px solid rgba(136, 115, 76, .2); border-top: 3px solid #b8902a; border-radius: 6px;
  padding: 28px 26px; box-shadow: 0 18px 40px -30px rgba(22, 35, 58, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cr-card:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -28px rgba(22, 35, 58, .5); }
.cr-card__title { margin: 0 0 10px; font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 600; line-height: 1.2; color: #16233a; }
.cr-card p { margin: 0; font-size: .97rem; }
.cr-card__num { display: block; margin-bottom: 12px; font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; line-height: 1; color: #b8902a; }

/* application */
.cr-apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); max-width: 1180px; margin: 0 auto; align-items: start; }
.cr-text { margin: 22px 0 26px; font-size: 1.02rem; }
.cr-contact { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(136, 115, 76, .2); }
.cr-contact li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(136, 115, 76, .2); font-family: 'Jost', sans-serif; font-size: .97rem; color: #16233a; }
.cr-contact span { min-width: 64px; font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #7a5f1f; padding-top: 3px; }
.cr-contact a { color: #16233a; text-decoration: none; }
.cr-contact a:hover { color: #9a7a2e; }

.cr-form { background: #fff; border: 1px solid rgba(136, 115, 76, .2); border-top: 3px solid #b8902a; border-radius: 6px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 24px 50px -34px rgba(22, 35, 58, .45); }
.cr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cr-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; font-family: 'Jost', sans-serif; }
.cr-field span { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7a5f1f; }
.cr-field input, .cr-field select, .cr-field textarea {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 14px;
  font-family: 'Jost', sans-serif; font-size: 1rem; color: #16233a;
  background: #fbf9f4; border: 1px solid rgba(136, 115, 76, .32); border-radius: 3px;
}
.cr-field textarea { resize: vertical; min-height: 130px; }
.cr-field .is-invalid, .cr-field input.is-invalid, .cr-field select.is-invalid, .cr-field textarea.is-invalid { border-color: #b3261e; }
.cr-form__note { margin: 0 0 16px; font-family: 'Jost', sans-serif; font-size: .88rem; color: rgba(22, 35, 58, .7); }
.cr-form__error { margin: 0 0 14px; font-family: 'Jost', sans-serif; font-size: .9rem; color: #b3261e; }
.cr-form__thanks { margin: 16px 0 0; font-family: 'Jost', sans-serif; font-size: .95rem; color: #2f6b3a; }

/* footer */
.cr-footer { background: #16233a; color: rgba(242, 236, 226, .8); padding: 40px clamp(20px, 4vw, 48px); text-align: center; font-family: 'Jost', sans-serif; font-size: .92rem; }
.cr-footer__brand { display: inline-block; margin-bottom: 14px; }
.cr-footer__brand img { display: block; height: 46px; width: auto; }
.cr-footer p { margin: 6px 0; }
.cr-footer a { color: #f0d584; text-decoration: none; }
.cr-footer__small { font-size: .8rem; color: rgba(242, 236, 226, .55); }

/* gentle entrance (added by js/08-careers.js) */
.cr-anim { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--d, 0ms), transform .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0ms); }
.cr-anim.cr-in { opacity: 1; transform: none; }

/* tablets */
@media (max-width: 1099px) {
  .cr-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-apply { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .careers-page main { padding-top: var(--m-nav, 68px); }
  .cr-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .cr-hero__photo { order: -1; aspect-ratio: 3 / 2; }
  .cr-hero__text { padding: 44px var(--m-gutter, 24px) 56px; }
}
/* phones */
@media (max-width: 640px) {
  .cr-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cr-form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cr-section { padding: 64px var(--m-gutter, 20px); }
  .cr-title { font-size: 2.3rem; }
  .cr-eyebrow { font-size: .76rem; letter-spacing: .24em; }
  .cr-btn { width: 100%; }
  .cr-card { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-anim { opacity: 1; transform: none; transition: none; }
  .cr-card, .cr-btn { transition: none; }
}
