/*
  Brand tokens — replace these once logo/colors are provided.
  Everything else in this file references only these variables,
  so re-theming the whole site is a matter of editing this block.
*/
/*
  Premium palette — "Luxury Hospitality" per the design review.
  Re-theming the whole site means editing only this block.
*/
:root {
  --brand-primary: #122238;      /* Deep Midnight Navy — trust, authority */
  --brand-primary-dark: #0b1727;
  --brand-primary-soft: rgba(18, 34, 56, 0.12);
  --brand-accent: #C5A059;       /* Warm Brass/Gold — celebration, quality */
  --brand-accent-dark: #a8873f;
  --ink: #2C3E50;                /* Dark Charcoal Slate — readability */
  --ink-muted: #63748a;
  --paper: #FDFBF7;              /* Soft Cream/Alabaster — warmth */
  --paper-alt: #F4F0E7;
  --border: #E2DACA;
  --success: #2e7a4f;
  --error: #b3261e;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(18, 34, 56, 0.08);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  /* Minimum touch target for inputs and controls (mobile mandate). */
  --tap-target: 48px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: var(--brand-primary); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Site header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header .logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
}
.site-header .logo img { height: 44px; display: block; }
.site-header nav a {
  margin-left: 24px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--brand-primary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  margin: 0 0 16px;
}
.hero p {
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 28px;
  opacity: 0.92;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-target);
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--brand-accent);
  color: var(--brand-primary-dark);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* ---------- Content sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-alt); }
.section h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin-top: 0;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.perk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.perk-card h3 { margin-top: 0; font-size: 1.1rem; }
.perk-card p { color: var(--ink-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Hiring timeline ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: timeline;
}
.timeline li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  box-shadow: var(--shadow);
  position: relative;
}
.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: var(--brand-accent);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.timeline li h3 { margin: 0 0 6px; font-size: 1.05rem; }
.timeline li p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  box-shadow: var(--shadow);
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-style: italic;
  margin: 0 0 14px;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.positions-list { list-style: none; padding: 0; margin: 32px 0 0; }
.positions-list li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.positions-list .tag {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-item { margin-bottom: 22px; }
.faq-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.faq-item p { margin-top: 0; color: var(--ink-muted); }

.cta-band {
  text-align: center;
  padding: 56px 0;
  background: var(--brand-accent);
  /* Navy on brass rather than slate — slate sits near the AA floor on gold. */
  color: var(--brand-primary-dark);
}
.cta-band h2 { margin-top: 0; color: var(--brand-primary-dark); }
.cta-band .btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.site-footer {
  background: var(--ink);
  color: #cfc9c3;
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: #fff; }

/* ---------- Application form ---------- */
.form-page { padding: 40px 0 80px; }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 760px;
  margin: 0 auto;
}
.form-card h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-top: 0;
}

.form-card-wide { max-width: 1040px; }
.app-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 20px;
}

/* ---------- Tab bar ---------- */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 6px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap-target);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.tab-btn:hover { border-color: var(--brand-primary); color: var(--ink); }
.tab-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.tab-btn .tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 0.75rem;
}
.tab-btn:not(.active) .tab-num { background: rgba(0,0,0,0.08); }
.tab-btn.has-error::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--error);
  border: 2px solid #fff;
}
@media (max-width: 700px) {
  .tab-btn .tab-label { display: none; }
  .tab-btn { padding: 10px 12px; }
}

.form-legend {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 10px 0 24px;
}
.required-star { color: var(--error); font-weight: 700; }
.conditional-star { color: #0070C0; font-weight: 700; }

.eeo-footer {
  font-size: 0.8rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding-top: 16px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tab-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.two-col .col h3 { margin-top: 0; font-size: 1.1rem; }
/* Applied when a conditional column is hidden, so the remaining one
   takes the full width instead of leaving a gap. */
.two-col.single-col { grid-template-columns: 1fr; }
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

.server-position-box {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.server-position-box h4 { margin: 0 0 6px; font-size: 0.95rem; }
.server-position-box .hint { margin-top: 0; }

.reference-block {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--paper-alt);
  border-radius: var(--radius);
}
.reference-block:last-child { margin-bottom: 0; }

.agreement-text {
  font-size: 0.85rem;
  color: var(--ink-muted);
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
}

.agree-checkbox-field .checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  margin-top: 8px;
  cursor: pointer;
}
.agree-checkbox-field .checkbox-line input { margin-top: 3px; }

/* ---------- Pill-style buttons (Yes/No, Position Type, Reference Type) ---------- */
.pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-group input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill-option {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  transition: all 0.15s ease;
  user-select: none;
}
.pill-group input:checked + .pill-option {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}
.pill-group input:focus-visible + .pill-option {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.field.has-error .pill-option { border-color: var(--error); }

.availability-table .sub-head { background: var(--paper-alt); font-size: 0.78rem; color: var(--ink-muted); font-weight: 500; }
.availability-table .day-label { white-space: nowrap; }

/*
  Mobile rating grids: each row becomes its own card so these tables never
  need horizontal scrolling on a phone. Every option shows its own label
  (from data-label) beside a full-width tap target.
*/
@media (max-width: 760px) {
  .responsive-grid,
  .responsive-grid tbody,
  .responsive-grid tr,
  .responsive-grid td { display: block; width: 100%; }

  .responsive-grid .grid-head-row { display: none; }

  .responsive-grid tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    padding: 6px 0;
    background: #fff;
  }
  .responsive-grid .day-label {
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--paper-alt);
    border: none;
    padding: 10px 14px;
    text-align: left;
  }
  .responsive-grid td {
    border: none;
    border-top: 1px solid var(--border);
    text-align: left;
    padding: 0;
  }
  .responsive-grid td:not(.day-label) {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--tap-target);
    padding: 4px 14px;
  }
  .responsive-grid td[data-label]:not(.day-label)::after {
    content: attr(data-label);
    font-size: 0.92rem;
    color: var(--ink);
  }
}

/* ---------- Progressive disclosure (long legal text) ---------- */
.disclosure {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 20px;
  overflow: hidden;
}
.disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap-target);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  background: var(--paper-alt);
  list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: 'Read more ▾';
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--brand-primary);
  white-space: nowrap;
}
.disclosure[open] > summary::after { content: 'Show less ▴'; }
.disclosure .disclosure-body {
  padding: 16px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.disclosure .disclosure-body p:first-child { margin-top: 0; }
.disclosure .disclosure-body p:last-child { margin-bottom: 0; }

/* ---------- Repeatable entry builder (work history) ---------- */
.entry-card {
  position: relative;
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.entry-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.entry-card-head h4 { margin: 0; font-size: 0.95rem; }
.btn-remove-entry {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
}
.btn-remove-entry:hover { background: #fbeaea; border-color: var(--error); }
.btn-add-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap-target);
  padding: 10px 20px;
  border: 1px dashed var(--brand-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-add-entry:hover { background: var(--brand-primary); color: #fff; }

.current-job-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 40px;
}

/* Inline "add optional field" toggle, e.g. alternate phone number. */
.optional-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-primary);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--brand-primary);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}

/* ---------- Job description modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  padding: 16px;
}
.modal-box img { display: block; width: 100%; height: auto; border-radius: 6px; }
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
}
legend {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 12px;
  padding: 0;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.field .hint { font-weight: 400; color: var(--ink-muted); font-size: 0.82rem; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=date],
.field input[type=month],
.field input[type=number],
.field select,
.field textarea {
  width: 100%;
  min-height: var(--tap-target);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  /* 16px prevents iOS Safari from zooming the viewport on focus. */
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
}
/* Radios and checkboxes get a comfortable tap area of their own. */
.field input[type=radio],
.field input[type=checkbox],
.grid-table input[type=radio] {
  width: 22px;
  height: 22px;
  accent-color: var(--brand-primary);
  cursor: pointer;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 600px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.92rem;
}

.grid-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 8px; }
.grid-table th, .grid-table td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}
.grid-table th:first-child, .grid-table td:first-child { text-align: left; font-weight: 600; }
.grid-table th { background: var(--paper-alt); font-weight: 600; }

.error-text {
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 4px;
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); }
.field.has-error .error-text { display: block; }

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.alert-error { background: #fbeaea; color: var(--error); border: 1px solid #f2c6c3; }
.alert-success { background: #e9f6ee; color: var(--success); border: 1px solid #bfe6cd; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
}
.admin-topbar a { color: #fff; text-decoration: none; margin-left: 18px; font-size: 0.9rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; }
.admin-table th { background: var(--paper-alt); }
.status-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-New { background: #e8eefc; color: #2952a3; }
.status-Reviewed { background: #f4eecb; color: #8a6d1a; }
.status-Interviewing { background: #e7defa; color: #5b3aa8; }
.status-Hired { background: #dff2e6; color: #227a4a; }
.status-Rejected { background: #f9dede; color: #a5312a; }
.login-card {
  max-width: 380px;
  margin: 80px auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
