/* ============================================================
   MEDICALSHIFT — shared stylesheet
   Brand: Clinical Navy / Ocean Blue / Electric Teal · Oswald + Inter
   ============================================================ */

:root {
  --navy:        #0A1F33;
  --navy-deep:   #061320;
  --navy-soft:   #102B45;
  --ocean:       #1C6EA4;
  --ocean-light: #2E8BC9;
  --teal:        #14E0D4;
  --teal-bright: #34F0E4;
  --teal-dim:    #0FB9AF;
  --violet:      #9B7BEA;
  --paper:       #F3F8FB;
  --paper-line:  #DCE8EF;
  --ink:         #0A1F33;
  --ink-soft:    #41576B;
  --white:       #FFFFFF;
  --mist:        rgba(255,255,255,0.72);
  --mist-dim:    rgba(255,255,255,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.accent { background: linear-gradient(100deg, var(--teal), var(--ocean-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- NAV ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  background: rgba(10,31,51,0);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
nav.scrolled {
  background: rgba(6,19,32,0.94);
  backdrop-filter: blur(14px);
  padding: 14px 40px;
  box-shadow: 0 1px 0 rgba(20,224,212,0.14);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: 21px; letter-spacing: 0.02em; color: var(--violet);
  text-decoration: none;
}
.logo .mark { height: 30px; width: auto; flex-shrink: 0; display: block; }
.logo b { color: var(--teal); font-weight: 600; }
.logo-full { display: inline-block; text-decoration: none; line-height: 0; }
.logo-full .full-img { width: 210px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--mist); text-decoration: none; font-size: 14px;
  font-weight: 500; letter-spacing: 0.01em; transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  border: 1px solid rgba(20,224,212,0.5); color: var(--teal) !important;
  padding: 9px 20px; border-radius: 2px; transition: all .25s;
}
.nav-cta:hover { background: var(--teal); color: var(--navy-deep) !important; }

/* mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  padding: 15px 30px; border-radius: 3px; text-decoration: none;
  cursor: pointer; transition: all .25s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--navy-deep); }
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,224,212,0.3); }
.btn-ghost { border-color: rgba(255,255,255,0.28); color: var(--white); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn svg { width: 17px; height: 17px; }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(28,110,164,0.42), transparent 60%),
    radial-gradient(900px 700px at 12% 90%, rgba(20,224,212,0.14), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #0C2A44 100%);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 700px at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 700px at 70% 30%, #000 0%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 90px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 28px;
  opacity: 0; transform: translateY(14px);
  animation: rise .8s .15s forwards cubic-bezier(.2,.7,.2,1);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,224,212,0.18); }

.hero h1 {
  font-size: clamp(46px, 8vw, 104px); font-weight: 700; letter-spacing: -0.02em; max-width: 17ch;
  opacity: 0; transform: translateY(20px); animation: rise .9s .3s forwards cubic-bezier(.2,.7,.2,1);
}
.hero p.lead {
  font-size: clamp(17px, 2vw, 21px); color: var(--mist); max-width: 58ch; margin: 30px 0 42px; font-weight: 400;
  opacity: 0; transform: translateY(20px); animation: rise .9s .45s forwards cubic-bezier(.2,.7,.2,1);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); animation: rise .9s .6s forwards cubic-bezier(.2,.7,.2,1); }
.hero-meta { display: flex; gap: 44px; margin-top: 76px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); animation: rise .9s .78s forwards cubic-bezier(.2,.7,.2,1); }
.hero-meta .item { border-left: 2px solid rgba(20,224,212,0.5); padding-left: 16px; }
.hero-meta .num { font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 600; color: var(--white); line-height: 1; }
.hero-meta .lbl { font-size: 12.5px; color: var(--mist-dim); margin-top: 6px; letter-spacing: 0.04em; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- PAGE HEADER (sub-pages) ---------- */
.page-hero {
  position: relative; padding: 180px 0 90px;
  background:
    radial-gradient(900px 500px at 82% 20%, rgba(28,110,164,0.4), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 70%);
  overflow: hidden;
}
.page-hero .hero-grid { mask-image: radial-gradient(800px 500px at 75% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(800px 500px at 75% 30%, #000 0%, transparent 75%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { animation-delay: .05s; }
.page-hero h1 { font-size: clamp(38px, 6vw, 74px); font-weight: 700; max-width: 18ch; opacity: 0; transform: translateY(18px); animation: rise .8s .2s forwards cubic-bezier(.2,.7,.2,1); }
.page-hero p { color: var(--mist); font-size: clamp(16px,1.8vw,20px); max-width: 60ch; margin-top: 24px; opacity: 0; transform: translateY(18px); animation: rise .8s .35s forwards cubic-bezier(.2,.7,.2,1); }

/* ---------- SECTIONS ---------- */
section { position: relative; }
.sec-pad { padding: 110px 0; }
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-tag { font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 18px; display: block; }
.sec-head h2 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 600; }
.sec-head p { color: var(--mist); font-size: 18px; margin-top: 20px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.band-light { background: var(--paper); color: var(--ink); }
.band-light .sec-tag { color: var(--teal-dim); }
.band-light .sec-head h2 { color: var(--ink); }
.band-light .sec-head p { color: var(--ink-soft); }
.band-deep { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.06); }
.band-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%); }

/* ---------- SERVICE / FEATURE CARDS ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-card {
  background: var(--white); border: 1px solid var(--paper-line);
  border-radius: 6px; padding: 38px 34px; position: relative; overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.svc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--teal), var(--ocean)); transform: scaleY(0); transform-origin: top; transition: transform .4s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(10,31,51,0.12); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card .ico { width: 50px; height: 50px; border-radius: 8px; margin-bottom: 24px; background: linear-gradient(135deg, rgba(20,224,212,0.16), rgba(28,110,164,0.16)); display: flex; align-items: center; justify-content: center; color: var(--ocean); }
.svc-card .ico svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 22px; color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.svc-card p { color: var(--ink-soft); font-size: 15.5px; }
.svc-card .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card .tags span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--ocean); background: rgba(28,110,164,0.09); padding: 5px 11px; border-radius: 100px; }

/* dark variant of cards */
.svc-card.dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.svc-card.dark h3 { color: var(--white); }
.svc-card.dark p { color: var(--mist); }
.svc-card.dark .ico { color: var(--teal); }
.svc-card.dark .tags span { color: var(--teal); background: rgba(20,224,212,0.1); }
.svc-card.dark:hover { box-shadow: 0 22px 50px rgba(0,0,0,0.3); border-color: rgba(20,224,212,0.3); }

/* ---------- TWO-COLUMN BLOCK ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.lean { grid-template-columns: 1.3fr 1fr; align-items: start; }
.big-quote { font-family: 'Oswald', sans-serif; font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.01em; }
.big-quote strong { font-weight: 600; color: var(--teal); }
.body-col p { color: var(--mist); font-size: 17px; margin-bottom: 20px; }
.body-col strong { color: var(--white); font-weight: 600; }
.arc { display: flex; align-items: center; gap: 18px; margin-top: 30px; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; }
.arc .step { color: var(--white); }
.arc .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--ocean), var(--teal)); max-width: 60px; }

/* ---------- KAIRANCE METHOD ---------- */
.kairance-intro { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.kairance-word { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.02em; line-height: 1; }
.kairance-etym { color: var(--mist-dim); font-size: 14px; letter-spacing: 0.05em; margin-top: 18px; }
.kairance-etym b { color: var(--teal); font-weight: 600; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 18px; }
.method-step {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 30px 24px; position: relative;
  transition: transform .35s ease, border-color .35s ease;
}
.method-step:hover { transform: translateY(-5px); border-color: rgba(20,224,212,0.35); }
.method-step .ph { font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 0.2em; color: var(--teal); }
.method-step .letter { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -0.02em; color: var(--teal); }
.method-step h3 { font-size: 21px; margin: 10px 0 10px; font-weight: 500; }
.method-step .q { color: var(--teal); font-size: 14px; font-style: italic; margin-bottom: 10px; }
.method-step p { color: var(--mist); font-size: 14.5px; }

/* SHIFT process flow */
.shift-flow { position: relative; display: flex; justify-content: space-between; gap: 10px; max-width: 900px; margin: 0 auto 64px; }
.shift-flow::before { content: ''; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--ocean), var(--teal)); opacity: .6; }
.flow-node { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow-dot { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; color: var(--teal); background: var(--navy-deep); border: 2px solid var(--teal); box-shadow: 0 0 0 6px rgba(20,224,212,0.08); transition: transform .3s, box-shadow .3s; }
.flow-node:hover .flow-dot { transform: translateY(-4px); box-shadow: 0 0 0 8px rgba(20,224,212,0.16); }
.flow-node .fw { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 15px; margin-top: 16px; color: var(--white); }
.flow-node .fc { font-size: 12px; color: var(--mist-dim); margin-top: 4px; max-width: 15ch; }
@media (max-width: 640px) {
  .shift-flow { flex-direction: column; gap: 0; max-width: 340px; }
  .shift-flow::before { left: 26px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--ocean), var(--teal)); }
  .flow-node { flex-direction: row; align-items: center; gap: 18px; text-align: left; padding: 11px 0; }
  .flow-dot { width: 52px; height: 52px; font-size: 23px; flex-shrink: 0; }
  .flow-node .fw { margin-top: 0; }
  .flow-node .fc { display: none; }
}

/* ---------- APPROACH 3-COL ---------- */
.appr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.appr-item { padding-top: 26px; border-top: 2px solid rgba(20,224,212,0.4); }
.appr-item .n { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--teal); letter-spacing: 0.2em; }
.appr-item h3 { font-size: 24px; margin: 14px 0 12px; font-weight: 500; }
.appr-item p { color: var(--mist); font-size: 15.5px; }

/* ---------- CREDENTIALS ---------- */
.creds { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 34px; position: sticky; top: 100px; }
.creds h4 { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 22px; }
.creds ul { list-style: none; }
.creds li { display: flex; gap: 13px; padding: 13px 0; font-size: 14.5px; color: var(--mist); border-bottom: 1px solid rgba(255,255,255,0.06); }
.creds li:last-child { border-bottom: none; }
.creds li svg { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; margin-top: 3px; }

/* ---------- DECK ---------- */
.deck-frame {
  position: relative; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: var(--navy-deep);
  aspect-ratio: 16 / 9; box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.deck-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.deck-note { margin-top: 26px; color: var(--mist-dim); font-size: 14px; max-width: 60ch; }

/* ---------- CONTACT ---------- */
.contact-band {
  background: radial-gradient(800px 500px at 80% 20%, rgba(28,110,164,0.35), transparent 60%), var(--navy-deep);
  text-align: center;
}
.contact-band h2 { font-size: clamp(36px, 5.5vw, 66px); font-weight: 700; max-width: 15ch; margin: 0 auto 24px; }
.contact-band p { color: var(--mist); font-size: 19px; max-width: 52ch; margin: 0 auto 44px; }
.contact-band .hero-actions { justify-content: center; }
.contact-line { margin-top: 54px; display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; font-size: 14.5px; color: var(--mist-dim); }
.contact-line a { color: var(--mist); text-decoration: none; transition: color .25s; }
.contact-line a:hover { color: var(--teal); }

/* contact form */
.form-card { max-width: 620px; margin: 0 auto; text-align: left; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 40px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--mist); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px; padding: 13px 15px; color: var(--white); font-family: 'Inter', sans-serif; font-size: 15px;
  transition: border-color .25s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--teal); }
.form-row textarea { resize: vertical; min-height: 130px; }

/* ---------- PROSE (legal pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; color: var(--white); }
.prose h3 { font-size: 19px; margin: 26px 0 10px; color: var(--teal); font-weight: 500; }
.prose p, .prose li { color: var(--mist); font-size: 15.5px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 16px; }
.placeholder { background: rgba(20,224,212,0.08); border: 1px dashed rgba(20,224,212,0.5); border-radius: 4px; padding: 2px 8px; color: var(--teal); font-size: 14px; }

/* ---------- FOOTER ---------- */
footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.07); padding: 56px 0 36px; font-size: 13.5px; color: var(--mist-dim); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-top .logo { font-size: 20px; margin-bottom: 16px; }
.footer-top p { max-width: 34ch; color: var(--mist-dim); }
.footer-col h5 { font-family: 'Oswald', sans-serif; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--mist); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--mist-dim); text-decoration: none; padding: 5px 0; transition: color .25s; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07); }
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom a { color: var(--mist-dim); text-decoration: none; transition: color .25s; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .split.lean { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 22px; }
  nav { padding: 16px 22px; }
  nav.scrolled { padding: 12px 22px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 40px; transform: translateX(100%);
    transition: transform .35s ease; box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .split, .split.lean { grid-template-columns: 1fr; gap: 40px; }
  .svc-grid { grid-template-columns: 1fr; }
  .appr-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .creds { position: static; }
  .sec-pad { padding: 80px 0; }
  .page-hero { padding: 140px 0 70px; }
  .hero-meta { gap: 28px; }
}
@media (max-width: 560px) {
  .method-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
}
