/* MedRefer — Homepage v3 styles. Single family: Poppins. */

:root {
  --navy:        #0D1B2A;
  --navy-deep:   #07111B;
  --navy-2:      #16263A;
  --navy-3:      #243A52;
  --ink:         #0B1622;
  --ink-2:       #475569;
  --ink-3:       #94A3B8;
  --rule:        #E4E8EE;
  --rule-soft:   #EEF1F5;
  --paper:       #FAFAF7;
  --paper-2:     #F1EEE6;
  --surface:     #FFFFFF;
  --surface-2:   #F6F7F9;
  --teal:        #00BFA6;
  --teal-deep:   #009E89;
  --teal-ink:    #054F44;
  --teal-soft:   #E6F6F2;

  --shadow-xs: 0 1px 2px rgba(11,22,34,0.04);
  --shadow-sm: 0 1px 2px rgba(11,22,34,0.05), 0 1px 1px rgba(11,22,34,0.03);
  --shadow-md: 0 6px 18px -4px rgba(11,22,34,0.08), 0 2px 4px -1px rgba(11,22,34,0.04);
  --shadow-lg: 0 32px 64px -28px rgba(11,22,34,0.22), 0 12px 24px -12px rgba(11,22,34,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: 1480px; margin: 0 auto; padding: 0 32px; }

/* ============ UTILITY BAR ============ */
.util {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.util-inner {
  height: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.util-left {
  grid-column: 2;
  justify-self: center;
  display: inline-flex; align-items: center; gap: 14px; line-height: 1;
}
.util-right {
  grid-column: 3;
  justify-self: end;
}
.util-right {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 16px;
  line-height: 1;
}
.util-right .util-spacer {
  display: inline-block;
  width: 36px;
  height: 1px;
}
.util-right .util-contact {
  min-width: 56px;
  text-align: center;
}
.util-right .util-phone {
  min-width: 132px;
  text-align: center;
}
.util a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: 0.005em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.util a:hover { color: #fff; }
.util .au {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  line-height: 1;
}
.util .au .pip {
  display: inline-block; width: 14px; height: 10px; border-radius: 1.5px;
  background: linear-gradient(180deg, #012169 0 50%, #E4002B 50% 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.18);
  vertical-align: middle;
}
.util .util-left > span:not(.au) {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.util .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255,255,255,0.32);
  display: inline-block;
}

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: rgba(250,250,247,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid var(--rule);
}
.nav.scrolled {
  background: rgba(250,250,247,0.92);
  box-shadow: 0 1px 0 rgba(11,22,34,0.02);
}
.nav-inner {
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 56px;
}
.nav.scrolled .nav-inner { height: 64px; }
.nav.scrolled .nav-inner { height: 64px; }

.logo {
  display: inline-flex; align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  line-height: 1;
}
.logo .mark {
  width: 28px; height: 28px;
  flex: none;
  display: grid; place-items: center;
}
.logo .mark svg { display: block; }
.logo .wordmark {
  display: inline-flex; align-items: baseline;
}
.logo .stop { color: var(--teal); margin-left: 1px; }

.nav-links {
  display: flex; justify-content: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after {
  content:""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1.5px; background: var(--navy); border-radius: 1px;
}

.nav-cta { display: inline-flex; align-items: center; gap: 16px; }
.signin {
  font-size: 14px; font-weight: 500;
  color: var(--ink); text-decoration: none;
}
.signin:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font: 500 14px/1 'Poppins', sans-serif;
  letter-spacing: -0.005em;
  color: #fff; background: var(--navy);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1px solid rgba(13,27,42,0.22);
}
.btn-ghost:hover { background: rgba(13,27,42,0.04); border-color: var(--navy); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-cta { justify-content: flex-end; }
}
