/* KariShift design system — modern hospital / health-system.
   Clinical hospital blue family: medical blue primary, deep navy for
   dark sections and headings, sky tints for soft backgrounds, lots of
   clean white. WhatsApp green survives only on WhatsApp buttons.
   Photography: local files under /images/ only; no other external assets. */

:root {
  --brand: #0b6bcb;
  --brand-dark: #0a4f8a;
  --brand-deep: #0a2a52;
  --brand-bright: #2f9be8;
  --brand-tint: #e8f3fc;
  --brand-tint-2: #f2f8fd;
  --accent: #2f9be8;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --ink: #0e2a47;
  --slate: #3d5a76;
  --muted: #6b8299;
  --line: #d7e6f2;
  --bg: #f4f9fd;
  --urgent: #c62f24;
  --urgent-bg: #fdecea;
  --demo-bg: #e3effe;
  --demo-ink: #0a4f8a;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 42, 82, .05);
  --shadow: 0 1px 2px rgba(10, 42, 82, .05), 0 14px 34px -14px rgba(10, 42, 82, .20);
  --shadow-lg: 0 2px 4px rgba(6, 30, 60, .06), 0 30px 60px -20px rgba(6, 35, 70, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--brand); }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.015em; margin: 36px 0 14px; line-height: 1.2; }
h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
strong { font-weight: 700; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand .brand-mark { display: inline-flex; filter: drop-shadow(0 4px 10px rgba(11, 107, 203, .35)); }
.brand .brand-accent { color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a { color: var(--slate); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 999px; }
.site-nav a:hover { color: var(--brand-dark); background: var(--brand-tint); }
.site-nav a.nav-phone { color: var(--brand-dark); font-weight: 700; }
.mobile-menu { display: none; }
.site-nav a.nav-cta { background: var(--brand); color: #fff; padding: 9px 18px; margin-left: 6px; box-shadow: var(--shadow-sm); }
.site-nav a.nav-cta:hover { background: var(--brand-dark); color: #fff; }
.site-nav .nav-user { color: var(--muted); font-size: 14px; padding: 8px 4px; }
main { padding: 28px 20px 64px; }

/* ---------- buttons ---------- */
button, .btn {
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
button:hover, .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.secondary, .btn.secondary { background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); }
button.secondary:hover, .btn.secondary:hover { background: var(--brand-tint); }
.btn-whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; padding: 7px 16px; font-size: 14px; }
.btn-whatsapp:hover { background: var(--wa-dark); border-color: var(--wa-dark); }
.btn-lg { padding: 14px 28px; font-size: 16.5px; }
form.inline { display: inline; }
.linkbtn { background: none; border: 0; color: var(--brand); padding: 8px 6px; font-weight: 600; font-size: 15px; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { background: none; color: var(--brand-dark); }

/* ---------- flash / error ---------- */
.flash { background: var(--brand-tint); border: 1px solid var(--brand); color: var(--brand-dark); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.error { background: var(--urgent-bg); border: 1px solid var(--urgent); color: var(--urgent); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }

/* ---------- cards, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow-sm); }
.card-head { margin-bottom: 6px; font-size: 16px; }
.badge { background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.badge.urgent { background: var(--urgent-bg); color: var(--urgent); }
.badge.demo { background: var(--demo-bg); color: var(--demo-ink); }
.pay-line { margin-top: 8px; font-size: 13.5px; }

/* shift cards */
.shift-card { padding: 0; overflow: hidden; }
.shift-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.shift-date { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.shift-role { color: var(--slate); font-weight: 600; }
.shift-rate { font-size: 19px; font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.shift-rate span { font-size: 13px; font-weight: 600; color: var(--muted); }
.shift-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.shift-meta { padding: 4px 20px 0; color: var(--slate); }
.shift-notes { padding: 2px 20px 0; }
.shift-actions { padding: 12px 20px 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.shift-actions form.inline { display: inline-block; }

/* ratings */
.stars { color: var(--accent); letter-spacing: 2px; }
.ratings { margin-top: 6px; }
.rating { margin: 4px 0; font-size: 14.5px; color: var(--slate); }
.inline-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 10px; }
.inline-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--slate); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; margin: 16px 0; }
.auth-card { max-width: 460px; margin: 24px auto; }
form.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.grid .span2 { grid-column: 1 / -1; }
form.grid label, .stack label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 14px; color: var(--slate); }
form.stack { display: flex; flex-direction: column; gap: 14px; }
label.check { flex-direction: row !important; align-items: center; gap: 9px !important; font-weight: 600; }
input, select, textarea {
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(11, 107, 203, .16); }
input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--brand); flex: none; }
form.grid button[type="submit"], form.stack button[type="submit"] { justify-self: start; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 14px 0; background: #fff; }
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { padding: 11px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--brand-tint-2); color: var(--brand-dark); font-weight: 700; white-space: nowrap; }

/* ---------- page heads / sections ---------- */
.page-head { margin: 6px 0 4px; }
.page-head .eyebrow { margin-bottom: 6px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.section-head { max-width: 640px; margin: 0 auto 8px; text-align: center; }
.section-head p { color: var(--slate); }

/* ---------- homepage hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 26px; color: #fff;
  background:
    radial-gradient(640px 340px at 88% -10%, rgba(125, 211, 252, .35), transparent 60%),
    radial-gradient(760px 480px at -10% 110%, rgba(47, 155, 232, .45), transparent 60%),
    linear-gradient(128deg, var(--brand-deep) 0%, var(--brand-dark) 48%, var(--brand) 100%);
  padding: clamp(30px, 5vw, 58px);
  box-shadow: var(--shadow-lg);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 52px); align-items: center; position: relative; }
.hero .eyebrow { color: #a8d8f8; }
.hero h1 { color: #fff; font-size: clamp(2.15rem, 5.2vw, 3.5rem); margin: 10px 0 16px; }
.hero h1 .hl { color: #8fd0ff; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #d6e9f9; max-width: 34rem; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero .btn-primary-hero { background: #fff; border-color: #fff; color: var(--brand-deep); box-shadow: 0 10px 24px -8px rgba(3, 30, 60, .45); }
.hero .btn-primary-hero:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-deep); }
.hero .btn-ghost-hero { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn-ghost-hero:hover { background: rgba(255, 255, 255, .22); }
.hero-talk { color: #c4def5; font-size: 15px; margin: 0; }
.hero-talk a { color: #fff; font-weight: 700; }

/* hero visual: real photo panel with a compact shift-card overlay + chips */
.hero-visual { position: relative; padding-bottom: 30px; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .65); position: relative; z-index: 1; }
.hero-photo img { display: block; width: 100%; height: clamp(330px, 37vw, 480px); object-fit: cover; }
.mock-card {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 15px 17px;
  box-shadow: var(--shadow-lg); position: absolute; left: -14px; bottom: 0;
  width: min(338px, 90%); z-index: 4;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.mock-title { font-weight: 800; font-size: 16.5px; letter-spacing: -.01em; }
.mock-rate { color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.mock-match { display: flex; align-items: center; gap: 12px; background: var(--brand-tint-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-dark)); color: #fff; font-weight: 800; font-size: 17px;
}
.mock-match-name { font-weight: 700; }
.mock-match-sub { color: var(--muted); font-size: 13.5px; }
.verified-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--brand-dark); font-weight: 700; font-size: 13px; white-space: nowrap; }
.mock-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow); z-index: 3;
}
.mock-chip.wa { right: -6px; top: 16px; color: var(--wa-dark); }
.mock-chip.pay { right: -6px; bottom: 46px; color: var(--brand-dark); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 6px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat .stat-big { font-size: 19px; font-weight: 800; letter-spacing: -.015em; color: var(--brand-dark); margin-bottom: 3px; }
.stat p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- benefit cards ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.benefit p { color: var(--slate); font-size: 15px; margin: 0; }
.icon-chip { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: relative; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px;
  box-shadow: 0 6px 14px -4px rgba(11, 107, 203, .45);
}
.step p { color: var(--slate); font-size: 15px; margin: 0; }
.mini-flow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; color: var(--slate); font-weight: 600; font-size: 15px; }
.mini-flow .flow-item { background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: 8px 16px; }
.mini-flow .flow-arrow { color: var(--muted); font-weight: 800; }

/* ---------- audience panels ---------- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.panel { border-radius: 22px; padding: 28px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.panel-photo { display: block; width: 100%; height: 205px; object-fit: cover; border-radius: 14px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.panel.dark { background: linear-gradient(140deg, var(--brand-deep), var(--brand-dark)); color: #dcecf9; border: 0; box-shadow: var(--shadow); }
.panel.dark h3 { color: #fff; }
.panel.dark li { color: #c9e2f5; }
.panel ul { list-style: none; margin: 14px 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.panel li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); font-size: 15.5px; }
.panel li .check { flex: none; margin-top: 2px; }
.panel .btn { margin-top: 2px; }
.panel.dark .btn { background: #fff; border-color: #fff; color: var(--brand-deep); }
.panel.dark .btn:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-deep); }

/* ---------- CTA band ---------- */
.cta-band {
  margin-top: 44px; border-radius: 26px; text-align: center; color: #fff;
  padding: clamp(30px, 5vw, 52px);
  background:
    radial-gradient(560px 300px at 12% -20%, rgba(125, 211, 252, .32), transparent 60%),
    linear-gradient(120deg, var(--brand-deep), var(--brand));
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { color: #d6e9f9; max-width: 36rem; margin: 0 auto 22px; }
.cta-band .hero-ctas { justify-content: center; margin-bottom: 14px; }
.cta-band .btn-primary-hero { background: #fff; border-color: #fff; color: var(--brand-deep); }
.cta-band .btn-primary-hero:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-deep); }
.cta-band .btn-ghost-hero { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .55); color: #fff; }
.cta-band .btn-ghost-hero:hover { background: rgba(255, 255, 255, .22); }
.cta-band .hero-talk { color: #c4def5; }
.cta-band .hero-talk a { color: #fff; }

/* ---------- dashboards / admin ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verify-card { border-left: 5px solid var(--brand); }
.earnings-card { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 15.5px; }
.alert-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 0; border-top: 1px dashed var(--line); }
.alert-row:first-of-type { border-top: 0; }
.alert-row .btn-whatsapp { margin-left: auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: #bcd7ef; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; padding: 38px 20px 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .brand-accent { color: #7cc4ff; }
.site-footer h4 { color: #fff; margin: 4px 0 10px; font-size: 15px; letter-spacing: .02em; }
.site-footer a { color: #d6e9f9; text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { font-size: 14.5px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 14px 20px 22px; font-size: 13.5px; color: #93b4d4; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .mock-card { left: 0; }
  .steps { grid-template-columns: 1fr; }
  .panels { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cols, form.grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .site-nav a.nav-link { display: none; }
  /* Mobile header (Medely pattern): one slim row — logo left, hamburger
     right; everything else lives in the dropdown menu panel. */
  .header-row { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; position: relative; }
  .site-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu-btn {
    list-style: none; display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; color: var(--brand);
    cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .mobile-menu-btn::-webkit-details-marker { display: none; }
  .mobile-menu-btn:hover { background: var(--brand-tint); }
  .mobile-menu[open] .mobile-menu-btn { background: var(--brand-tint); color: var(--brand-dark); }
  .mobile-menu-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 11px); z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); padding: 8px;
  }
  .mobile-menu-panel a, .mobile-menu-panel .linkbtn {
    display: block; width: 100%; text-align: left; padding: 12px 14px;
    border-radius: 10px; color: var(--slate); font-weight: 600; font-size: 15.5px;
    text-decoration: none; background: none;
  }
  .mobile-menu-panel a:hover, .mobile-menu-panel .linkbtn:hover { background: var(--brand-tint); color: var(--brand-dark); }
  .mobile-menu-panel .linkbtn { border: 0; cursor: pointer; font-family: inherit; }
  .mobile-menu-panel form.inline { display: block; }
  .mobile-menu-panel .nav-user { display: block; padding: 12px 14px 4px; color: var(--muted); font-size: 14px; }
  .mock-chip.wa { right: 0; }
  .mock-chip.pay { right: 0; }
  main { padding: 20px 14px 52px; }
  .wrap { padding: 0 14px; }
}
