/* Careers at South Dental - public site */
:root {
  --brand:        #0e7490;
  --brand-dark:   #155e75;
  --brand-soft:   #ecfeff;
  --ink:          #0f172a;
  --ink-2:        #334155;
  --muted:        #64748b;
  --line:         #e2e8f0;
  --bg:           #f8fafc;
  --card:         #ffffff;
  --danger:       #b91c1c;
  --danger-soft:  #fef2f2;
  --ok:           #047857;
  --ok-soft:      #ecfdf5;
  --radius:       12px;
  --shadow:       0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --wrap:         1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; }
a { color: var(--brand-dark); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------------------------ header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-weight: 700; font-size: 15px;
  display: grid; place-items: center; letter-spacing: .5px;
}
.brand-name { font-weight: 700; font-size: 16.5px; line-height: 1.2; }
.brand-sub   { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.header-link { font-size: 14.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.header-link:hover { color: var(--brand-dark); }

/* -------------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(160deg, #0e7490 0%, #155e75 60%, #134e63 100%);
  color: #fff; padding: 64px 0 68px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -.5px; }
.hero p  { margin: 0; max-width: 60ch; font-size: 17px; color: #cffafe; }
.hero-count {
  display: inline-block; margin-bottom: 18px; padding: 5px 13px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .3px;
}

/* -------------------------------------------------------------------- main */
main { padding: 44px 0 72px; }
.section-head { margin: 0 0 16px; }
.section-head h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); }
.location-group + .location-group { margin-top: 38px; }

/* --------------------------------------------------------------- job cards */
.job-grid { display: grid; gap: 14px; }
.job-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; text-decoration: none;
  color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job-card:hover { border-color: #a5c8d4; box-shadow: var(--shadow); transform: translateY(-1px); }
.job-card h3 { margin: 0 0 6px; font-size: 18.5px; color: var(--brand-dark); }
.job-card p  { margin: 0 0 12px; color: var(--ink-2); font-size: 15px; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.apply-hint { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: #f1f5f9; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}
.chip-brand { background: var(--brand-soft); border-color: #a5f3fc; color: var(--brand-dark); }

/* ---------------------------------------------------------------- empty */
.empty {
  background: var(--card); border: 1px dashed #cbd5e1; border-radius: var(--radius);
  padding: 52px 26px; text-align: center;
}
.empty h2 { margin: 0 0 8px; font-size: 20px; }
.empty p  { margin: 0 auto; max-width: 46ch; color: var(--muted); }

/* ------------------------------------------------------------ job detail */
.back-link {
  display: inline-block; margin-bottom: 20px; font-size: 14.5px;
  color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--brand-dark); }

.job-header { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.job-header h1 { margin: 0 0 12px; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -.4px; }

.job-body {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; margin-top: 16px;
}
.job-body h2 { margin: 26px 0 10px; font-size: 17px; }
.job-body h2:first-child { margin-top: 0; }
.job-body p  { margin: 0 0 12px; color: var(--ink-2); }
.job-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); }
.job-body li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ form */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; margin-top: 16px; scroll-margin-top: 90px;
}
.form-card > h2 { margin: 0 0 4px; font-size: 21px; }
.form-card > .lede { margin: 0 0 24px; color: var(--muted); font-size: 15px; }

.field { margin-bottom: 17px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--danger); font-weight: 400; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea, .field input[type=file] {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #cbd5e1; border-radius: 9px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,116,144,.15);
}
.field input[type=file] { padding: 9px 11px; background: #f8fafc; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ef4444; }
.err { display: block; color: var(--danger); font-size: 13.5px; margin-top: 5px; font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* Honeypot: kept out of sight and out of the tab order for real visitors. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block; border: 0; border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 15.5px; font-weight: 600; padding: 13px 30px;
  background: var(--brand); color: #fff; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }

.alert { border-radius: 10px; padding: 13px 16px; margin-bottom: 20px; font-size: 14.5px; }
.alert-error { background: var(--danger-soft); border: 1px solid #fecaca; color: #991b1b; }
.alert-ok    { background: var(--ok-soft);     border: 1px solid #a7f3d0; color: #065f46; }

.privacy { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- thank you */
.thanks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
          padding: 56px 34px; text-align: center; max-width: 640px; margin: 0 auto; }
.thanks .tick {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--ok-soft); border: 1px solid #a7f3d0; color: var(--ok);
  display: grid; place-items: center; font-size: 30px;
}
.thanks h1 { margin: 0 0 12px; font-size: 27px; }
.thanks p  { margin: 0 auto 10px; max-width: 48ch; color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 26px 0; font-size: 13.5px; color: var(--muted);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand-dark); }
