:root {
  --ink: #102027;
  --muted: #5d6b70;
  --paper: #f7fbfa;
  --white: #ffffff;
  --teal: #137c72;
  --teal-dark: #07564f;
  --navy: #18324a;
  --gold: #d99c35;
  --line: #dbe7e4;
  --soft: #edf6f3;
  --shadow: 0 22px 60px rgba(16, 32, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 231, 228, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand::after {
  content: "ST Jupiter Consultancy";
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--teal-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.login-link {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.header-call {
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 126px clamp(18px, 6vw, 78px) 72px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(247, 251, 250, 0.99) 0%, rgba(247, 251, 250, 0.9) 40%, rgba(247, 251, 250, 0.22) 76%),
    linear-gradient(0deg, rgba(16, 32, 39, 0.2), rgba(16, 32, 39, 0.02));
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker,
.job-type,
.blog-grid p {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 650px;
  color: #34484e;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero-actions,
.trust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.btn.primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(19, 124, 114, 0.24);
}

.btn.secondary,
.btn.ghost {
  background: var(--white);
  color: var(--teal-dark);
  border: 1px solid var(--line);
}

.btn.compact {
  min-height: 40px;
  padding: 0 14px;
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats span {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(219, 231, 228, 0.88);
  color: var(--muted);
  font-size: 14px;
}

.hero-stats strong {
  color: var(--ink);
}

.search-band {
  width: min(1120px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
}

.job-search {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.page-main {
  padding-top: 76px;
}

.page-hero {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 90px 0 42px;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 6vw, 70px);
}

.page-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.page-search {
  margin-top: 0;
  margin-bottom: 10px;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.intro p:last-child,
.trust-panel p,
.contact-inner p,
.post-job p,
.login-strip p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.feature-grid,
.service-grid,
.hospital-grid,
.testimonial-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.service-card,
.hospital-card,
.blog-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(16, 32, 39, 0.06);
}

.feature-card span,
.service-icon,
.logo-box {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e6f4f0;
  font-size: 13px;
  font-weight: 800;
}

.feature-card p,
.service-card p,
.hospital-card p,
.job-card p,
.step p,
.trust-list span,
blockquote p {
  color: var(--muted);
  line-height: 1.6;
}

.job-grid {
  display: grid;
  gap: 14px;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.job-card h3,
.job-card p,
.hospital-card h3,
.hospital-card p {
  margin-bottom: 8px;
}

.hospital-band,
.testimonial-band {
  background: #e9f3f0;
}

.hospital-grid {
  grid-template-columns: repeat(4, 1fr);
}

.process-band {
  background: var(--navy);
  color: var(--white);
}

.process-band .section-kicker {
  color: #8bd9ce;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #201303;
  font-weight: 800;
}

.step p {
  color: rgba(255, 255, 255, 0.74);
}

.trust {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

.trust-panel {
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.trust-list {
  display: grid;
  gap: 14px;
}

.trust-list div {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
  border-radius: 0 8px 8px 0;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

blockquote {
  margin: 0;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid article {
  min-height: 180px;
}

.contact-band {
  padding: 76px 18px;
  background: #e9f3f0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  width: min(1100px, 100%);
  margin: 0 auto;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-shell {
  width: min(1020px, calc(100% - 36px));
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.single-auth {
  width: min(560px, calc(100% - 36px));
  grid-template-columns: 1fr;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.check-row input {
  width: auto;
}

.form-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e6f4f0;
  font-weight: 700;
}

.form-status.error {
  color: #8a1f1f;
  background: #ffe9e7;
}

.dashboard-grid {
  padding-top: 40px;
}

.admin-stats {
  padding-top: 20px;
  padding-bottom: 20px;
}

.admin-panel {
  padding-top: 34px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(16, 32, 39, 0.06);
}

.admin-filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 0 0 16px;
}

.admin-filters input,
.admin-filters select {
  min-height: 46px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--teal-dark);
  background: #e6f4f0;
  font-size: 13px;
  text-transform: uppercase;
}

.dashboard-app,
.crm-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  padding-top: 92px;
  background: var(--paper);
}

.crm-shell {
  padding-top: 0;
}

.dashboard-sidebar,
.crm-sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 92px);
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.crm-sidebar {
  top: 0;
  height: 100vh;
  background: #101f27;
  color: var(--white);
}

.dashboard-avatar {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  object-fit: cover;
  background: #050505;
}

.dashboard-sidebar nav,
.crm-sidebar nav {
  display: grid;
  gap: 8px;
}

.dashboard-sidebar nav a,
.crm-sidebar nav a,
.crm-sidebar nav button {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.crm-sidebar nav a,
.crm-sidebar nav button {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-content,
.crm-main {
  padding: 54px clamp(18px, 4vw, 64px);
}

.dashboard-top,
.crm-top {
  margin-bottom: 34px;
}

.dashboard-top h1,
.crm-top h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.dashboard-panel,
.admin-panel {
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(16, 32, 39, 0.06);
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.muted-text {
  color: var(--muted);
}

.chat-box {
  min-height: 140px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.crm-body {
  background: var(--paper);
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--teal-dark);
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: #fbfefe;
}

textarea {
  resize: vertical;
}

.post-job,
.login-strip {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
}

.login-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  padding: 52px clamp(18px, 4vw, 56px) 26px;
  color: #cbd6d9;
  background: #101f27;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  width: min(1160px, 100%);
  margin: 0 auto 30px;
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand strong,
.footer-col strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 10px;
}

.footer-brand p,
.footer-bottom p {
  margin: 0;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col a,
.footer-col span {
  color: #cbd6d9;
}

.footer-col a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .nav-links,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header.open .nav-links,
  .site-header.open .header-actions {
    position: absolute;
    left: 18px;
    right: 18px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .site-header.open .nav-links {
    top: 74px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 18px 40px rgba(16, 32, 39, 0.12);
  }

  .site-header.open .header-actions {
    top: 424px;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
  }

  .site-header.open .nav-links a {
    padding: 10px 12px;
  }

  .site-header.open .login-link,
  .site-header.open .header-call {
    text-align: center;
    padding: 12px;
  }

  .job-search {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid,
  .service-grid,
  .hospital-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 251, 250, 0.99) 0%, rgba(247, 251, 250, 0.9) 58%, rgba(247, 251, 250, 0.3) 100%),
      linear-gradient(0deg, rgba(16, 32, 39, 0.18), rgba(16, 32, 39, 0.02));
  }

  .intro,
  .steps,
  .trust,
  .contact-inner,
  .testimonial-grid,
  .blog-grid,
  .auth-shell,
  .job-search {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .job-card,
  .post-job,
  .login-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-filters {
    grid-template-columns: 1fr;
  }

  .job-card .btn,
  .post-job .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 14px;
  }

  .hero {
    padding-top: 104px;
  }

  .hero-actions .btn,
  .job-search .btn,
  .contact-form .btn {
    width: 100%;
  }

  .section {
    padding: 66px 0;
  }

  .feature-grid,
  .service-grid,
  .hospital-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .dashboard-app,
  .crm-shell {
    grid-template-columns: 1fr;
    padding-top: 92px;
  }

  .crm-shell {
    padding-top: 0;
  }

  .dashboard-sidebar,
  .crm-sidebar {
    position: relative;
    top: auto;
    height: auto;
  }

  .dashboard-grid-2,
  .chat-form {
    grid-template-columns: 1fr;
  }
}
