:root {
  --ink: #0a1f3f;
  --muted: #64748b;
  --line: #d8e5ee;
  --blue: #07589f;
  --green: #31a84b;
  --cyan: #0d9488;
  --paper: #f7fbfd;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(10, 31, 63, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 229, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  font-weight: 950;
  font-size: 17px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  transform: translateY(-3px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: #28506f;
  font-weight: 700;
  font-size: 14px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active,
.nav-action {
  background: #e8f6f1;
  color: #075f43;
}

.page:not(.active) {
  display: none !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  align-items: start;
  gap: clamp(22px, 4vw, 52px);
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px) clamp(18px, 5vw, 76px) clamp(46px, 6vw, 76px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 253, 0.78)),
    repeating-linear-gradient(90deg, rgba(7, 88, 159, 0.08) 0 1px, transparent 1px 90px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green));
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pulse-ring {
  position: absolute;
  border: 2px solid rgba(7, 88, 159, 0.16);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.ring-one {
  width: min(58vw, 720px);
  aspect-ratio: 1;
  right: -12vw;
  top: 6vh;
}

.ring-two {
  width: min(38vw, 480px);
  aspect-ratio: 1;
  right: 14vw;
  bottom: 8vh;
  border-color: rgba(49, 168, 75, 0.18);
  animation-delay: -2.5s;
}

.care-track {
  position: absolute;
  height: 6px;
  width: 42vw;
  min-width: 320px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(7, 88, 159, 0.6), rgba(49, 168, 75, 0.75), transparent);
  transform: rotate(-18deg);
  animation: track 7s linear infinite;
}

.track-one {
  top: 28%;
  right: -8vw;
}

.track-two {
  right: 10vw;
  bottom: 22%;
  animation-delay: -3.5s;
}

.floating-card {
  position: absolute;
  padding: 14px 18px;
  border: 1px solid rgba(216, 229, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  font-weight: 900;
  animation: float 5s ease-in-out infinite;
}

.card-pharmacy {
  right: 9%;
  top: 24%;
}

.card-lab {
  right: 28%;
  bottom: 18%;
  animation-delay: -1.4s;
}

.card-doctor {
  right: 7%;
  bottom: 34%;
  animation-delay: -2.8s;
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  max-width: 780px;
  padding-top: 0;
}

.hero-brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 22px);
  margin: -10px 0 10px;
}

.hero-logo {
  width: clamp(88px, 10vw, 138px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(10, 31, 63, 0.14));
  transform: translateY(-6px);
}

.hero-brand-lockup span {
  color: var(--ink);
  max-width: 560px;
  padding-top: 8px;
  font-size: clamp(36px, 5.4vw, 78px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-service-line {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green), var(--blue));
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: serviceShine 4.8s ease-in-out infinite, serviceLift 3s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(42px, 6.8vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 19px;
}

.hero-copy {
  max-width: 680px;
  color: #315875;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  margin-bottom: 18px;
}

.trust-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 11px 15px;
  border: 1px solid rgba(49, 168, 75, 0.28);
  border-radius: 7px;
  color: #075f43;
  background: rgba(232, 246, 241, 0.92);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 950;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.22);
}

.trust-row div {
  display: grid;
  gap: 2px;
}

.trust-row span:not(.trust-icon) {
  color: #9a6a00;
  font-size: 14px;
}

.trust-row span:not(.trust-icon)::before {
  content: "★★★★★ ";
  color: #f5a400;
}

.hero-actions,
.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reach-card {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(7, 88, 159, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(10, 31, 63, 0.12);
}

.reach-card strong {
  font-size: clamp(17px, 1.8vw, 22px);
}

.reach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.reach-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 7px;
  font-weight: 950;
}

.reach-link.call {
  color: #063a72;
  background: #e8f3fb;
}

.reach-link.whatsapp {
  color: #075f43;
  background: #e8f6f1;
}

.contact-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 950;
}

.call-icon {
  background: var(--blue);
}

.call-icon::before {
  content: "☎";
}

.whatsapp-icon {
  background: #16a34a;
}

.whatsapp-icon::before {
  content: "WA";
  font-size: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 34px rgba(7, 88, 159, 0.24);
}

.secondary {
  color: var(--blue);
  background: #e8f3fb;
}

.light {
  color: var(--ink);
  background: white;
}

.admin-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats div,
.panel,
.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.admin-stats div {
  padding: 22px;
}

.admin-stats span {
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  font-weight: 950;
}

.admin-stats small {
  color: var(--muted);
  font-weight: 800;
}

.banner-strip {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  align-self: stretch;
  min-height: clamp(560px, 54vw, 720px);
  border: 1px solid rgba(216, 229, 238, 0.95);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9f6fb, #ffffff);
  box-shadow: var(--shadow);
}

.banner-strip img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(560px, 54vw, 720px);
  object-fit: contain;
  object-position: center;
}

.promo-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 24px;
  padding: 30px clamp(18px, 5vw, 76px);
  color: white;
  background: linear-gradient(100deg, #063a72, #057574, #238b45);
}

.promo-band h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 38px);
}

.promo-band .eyebrow,
.promo-band p {
  color: white;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 76px);
}

.home-services {
  padding-top: clamp(38px, 5vw, 64px);
  background: #f1f8f8;
}

.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}

.compact-head {
  margin-bottom: 18px;
}

.compact-head h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.service-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.compact-grid .service-card {
  min-height: 178px;
}

.service-card {
  appearance: none;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: 210px;
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 30px 80px rgba(10, 31, 63, 0.2);
  outline: none;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 950;
}

.service-card p,
.status,
.empty-state {
  color: var(--muted);
  line-height: 1.55;
}

.service-card span {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 950;
}

.account-section,
.admin-section {
  background: #eef7f8;
}

.two-column,
.order-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.order-layout {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.panel {
  padding: 22px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #284661;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c9dbe7;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.request-tabs,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab,
.chip,
.link-button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: #23516f;
  background: #e9f2f7;
  font-weight: 900;
}

.tab,
.chip {
  padding: 10px 13px;
}

.tab.active {
  color: white;
  background: var(--blue);
}

.link-button {
  padding: 8px 10px;
  color: var(--blue);
  background: transparent;
}

.request-form {
  display: none;
}

.request-form.active {
  display: block;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.inline-check input {
  width: auto;
}

.request-list,
.master-list {
  display: grid;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
}

.request-item,
.master-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-request-item {
  padding: 0;
  overflow: hidden;
}

.request-edit-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.request-edit-head,
.request-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.request-edit-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.request-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.request-edit-grid label {
  margin-bottom: 0;
}

.request-edit-grid .wide {
  grid-column: 1 / -1;
}

.repeat-item {
  align-items: start;
}

.request-item span,
.master-item small {
  color: var(--muted);
}

.master-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-title {
  justify-content: space-between;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hidden {
  display: none !important;
}

footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 28px clamp(18px, 5vw, 76px);
  color: white;
  background: #071b33;
}

footer div {
  display: grid;
  gap: 6px;
}

footer span,
footer address {
  color: rgba(255, 255, 255, 0.78);
}

footer address {
  margin: 0;
  font-style: normal;
  line-height: 1.5;
}

.map-link {
  display: inline-flex;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 7px;
  color: #071b33;
  background: white;
  font-weight: 950;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: #063a72;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}

@keyframes track {
  from {
    translate: -18vw 0;
  }
  to {
    translate: 18vw 0;
  }
}

@keyframes float {
  50% {
    transform: translateY(-16px);
  }
}

@keyframes serviceShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes serviceLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .promo-band,
  .two-column,
  .order-layout {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .banner-strip {
    grid-column: 1;
  }

  .hero-content {
    grid-row: auto;
    order: 1;
  }

  .banner-strip {
    grid-row: auto;
    order: 2;
    min-height: 360px;
  }

  .banner-strip img {
    min-height: 360px;
  }

  .service-grid,
  .admin-grid,
  .admin-stats,
  .request-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand span {
    font-size: 15px;
  }

  .nav a {
    padding: 9px 8px;
  }

  .hero {
    padding-top: 32px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-brand-lockup {
    align-items: flex-start;
    margin-top: -8px;
  }

  .hero-brand-lockup span {
    font-size: 34px;
  }

  .service-grid,
  .admin-grid,
  .admin-stats,
  .request-edit-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    display: none;
  }
}
