@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap");

/* base */
html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Manrope", sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
header,
footer {
  max-width: 100%;
}

/* navbar */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* cards */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

/* hero background */
.hero-gradient {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #f0f9ff 100%);
}

/* hero dashboard mockup (homepage) */
.hero-mockup {
  min-height: 420px;
}

.hero-glow {
  position: absolute;
  inset: 8% 5% 12%;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.08));
  filter: blur(2px);
  pointer-events: none;
}

.hero-panel {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(37, 99, 235, 0.1);
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-panel:hover {
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 28px 56px rgba(37, 99, 235, 0.14);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-dot-red { background: #f87171; }
.hero-dot-amber { background: #fbbf24; }
.hero-dot-green { background: #34d399; }

.notice-row {
  border-left: 3px solid #cbd5e1;
  transition: transform 0.25s ease;
}

.notice-row:hover {
  transform: translateX(3px);
}

.notice-blue { border-left-color: #3b82f6; }
.notice-violet { border-left-color: #8b5cf6; }
.notice-cyan { border-left-color: #06b6d4; }
.notice-green { border-left-color: #22c55e; }

.hero-chip {
  position: absolute;
  z-index: 2;
  bottom: -1rem;
  left: -0.5rem;
  padding: 0.875rem 1.125rem;
  border-radius: 0.875rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  animation: heroFloat 8s ease-in-out infinite 1s;
}

.hero-chip-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 1px solid #86efac;
  position: relative;
}

.hero-chip-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a;
  transform: translate(-50%, -60%) rotate(-45deg);
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 639px) {
  .hero-mockup {
    min-height: auto;
  }

  .hero-chip {
    display: none;
  }
}

/* stats section dividers */
.stat-divider:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background-color: #e2e8f0;
}

@media (max-width: 768px) {
  .stat-divider:not(:last-child)::after {
    display: none;
  }
}

/* faq accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* success modal */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* 2026 responsive brand polish */
:root {
  --brand-ink: #07111f;
  --brand-blue: #0057ff;
  --brand-cyan: #00b7ff;
}

.hero-gradient {
  min-height: auto;
  background: radial-gradient(circle at 82% 16%, rgba(0, 87, 255, 0.16), transparent 28rem), linear-gradient(135deg, #ffffff 0%, #f5f8ff 52%, #eaf1ff 100%);
}

.hero-gradient h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hero-panel {
  border: 1px solid rgba(7, 17, 31, 0.08);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 87, 255, 0.15);
}

.hero-mockup {
  width: 100%;
}

footer .border-t p::after {
  content: " Educational platform information only; healthcare decisions should be made with qualified professionals.";
  display: block;
  margin-top: 0.5rem;
  color: rgb(148 163 184);
}

@media (max-width: 640px) {
  .hero-gradient {
    padding-top: 6.75rem;
    padding-bottom: 3.5rem;
  }

  .hero-gradient h1 {
    max-width: 18rem;
    font-size: clamp(2rem, 10.5vw, 3rem);
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: none;
    overflow-wrap: break-word;
  }

  .hero-gradient .flex.flex-wrap {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 18rem;
  }

  .hero-gradient .flex.flex-wrap a {
    width: 100%;
    justify-content: center;
  }

  .hero-panel {
    border-radius: 18px;
  }
}

/* Inner page heroes: separate images and readable text */
body:not(.page-home) .hero-gradient.pb-16 {
  min-height: 430px;
  background-position: center !important;
  background-size: cover !important;
}

body:not(.page-home) .hero-gradient.pb-16 > .max-w-7xl {
  position: relative;
  z-index: 1;
}

body:not(.page-home) .hero-gradient.pb-16 h1,
body:not(.page-home) .hero-gradient.pb-16 p,
body:not(.page-home) .hero-gradient.pb-16 span {
  color: #fff !important;
  text-shadow: 0 3px 18px rgba(0,0,0,0.48);
}

body:not(.page-home) .hero-gradient.pb-16 {
  background-image: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.58), rgba(7,17,31,0.18)), url("images/contact.webp") !important;
}

body.page-about .hero-gradient.pb-16,
body:has(a[href="about.html"].text-blue-600) .hero-gradient.pb-16 {
  background-image: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.58), rgba(7,17,31,0.18)), url("images/about.webp") !important;
}

body.page-services .hero-gradient.pb-16,
body:has(a[href="services.html"].text-blue-600) .hero-gradient.pb-16 {
  background-image: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.58), rgba(7,17,31,0.18)), url("images/patient-notification.webp") !important;
}

body.page-resources .hero-gradient.pb-16,
body:has(a[href="resources.html"].text-blue-600) .hero-gradient.pb-16 {
  background-image: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.58), rgba(7,17,31,0.18)), url("images/resources.webp") !important;
}

body.page-blog .hero-gradient.pb-16,
body:has(a[href="blog.html"].text-blue-600) .hero-gradient.pb-16 {
  background-image: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.58), rgba(7,17,31,0.18)), url("images/blog-1.webp") !important;
}

/* Full-width image hero override */
.hero-gradient {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.82) 45%, rgba(255,255,255,0.22) 100%), url("images/hero.webp") center right / cover no-repeat !important;
}

.hero-gradient > .max-w-7xl {
  max-width: 1180px !important;
  width: 100%;
}

@media (max-width: 640px) {
  .hero-gradient {
    min-height: auto;
    background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,255,255,0.82)), url("images/hero.webp") center bottom / cover no-repeat !important;
  }
}

/* Final responsive visibility fixes */
body.page-home .hero-gradient {
  min-height: auto;
  padding-top: 8.5rem;
  padding-bottom: 5.5rem;
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.15), transparent 25rem),
    linear-gradient(100deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.94) 52%, rgba(224, 235, 255, 0.68) 100%),
    url("images/hero.webp") center right / cover no-repeat !important;
}

body.page-home .hero-gradient h1,
body.page-home .hero-gradient p {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.page-home .hero-gradient h1 {
  max-width: 720px;
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

body.page-home .hero-gradient p {
  color: #475569 !important;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

body.page-home .hero-gradient > .max-w-7xl {
  max-width: 1280px !important;
}

body.page-home .hero-panel {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(203, 213, 225, 0.9);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

body.page-home .hero-panel p,
body.page-home .hero-panel span {
  text-shadow: none !important;
}

body.page-home .hero-panel .text-slate-900,
body.page-home .hero-panel .text-slate-800,
body.page-home .hero-panel .text-slate-700 {
  color: #0f172a !important;
}

body.page-home .hero-panel .text-slate-600,
body.page-home .hero-panel .text-slate-500 {
  color: #64748b !important;
}

body.page-home .hero-panel .text-blue-700 {
  color: #1d4ed8 !important;
}

body.page-home .hero-panel .text-blue-600\/80 {
  color: rgba(37, 99, 235, 0.88) !important;
}

body.page-home .hero-panel .text-emerald-700 {
  color: #047857 !important;
}

body.page-home .hero-panel .text-amber-700 {
  color: #b45309 !important;
}

body.page-home .hero-panel .text-slate-600 {
  color: #475569 !important;
}

.hero-dot,
.hero-chip,
.hero-panel,
.card-hover,
img {
  max-width: 100%;
}

.card-hover {
  border-radius: 1rem !important;
}

@media (max-width: 1023px) {
  body.page-home .hero-gradient {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  body.page-home .hero-gradient .grid {
    gap: 2.5rem;
  }

  .hero-mockup {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  html,
  body {
    position: relative;
    min-width: 0;
    overflow-x: clip;
  }

  body.page-home main,
  body.page-home section,
  body.page-home .grid,
  body.page-home .flex,
  body.page-home .hero-gradient *,
  body.page-home .card-hover * {
    min-width: 0;
  }

  .hero-gradient > .max-w-7xl {
    width: 100%;
    max-width: 100% !important;
  }

  body.page-home .hero-gradient {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(239, 246, 255, 0.95)),
      url("images/hero.webp") center bottom / cover no-repeat !important;
    overflow-x: clip;
  }

  body.page-home .hero-gradient h1 {
    max-width: none;
    font-size: clamp(2rem, 10.5vw, 2.85rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.page-home .hero-gradient h1,
  body.page-home .hero-gradient p,
  body.page-home .hero-gradient span {
    max-width: 100%;
  }

  body.page-home .hero-gradient .flex.flex-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: none;
    width: 100%;
  }

  body.page-home .hero-gradient .flex.flex-wrap a {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.page-home .hero-mockup {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body.page-home .hero-panel {
    width: 100%;
    overflow: hidden;
  }

  .card-hover > div[class*="items-center"][class*="justify-center"]:first-child {
    margin-left: auto;
    margin-right: auto;
  }

  .card-hover {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  body:not(.page-home) .hero-gradient.pb-16 {
    min-height: 360px;
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }

  body:not(.page-home) .hero-gradient.pb-16 h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  section[class*="py-20"],
  section[class*="lg:py-28"] {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .card-hover {
    border-radius: 0.875rem !important;
  }
}

@media (max-width: 480px) {
  header a.text-xl {
    font-size: 1.05rem;
  }

  body.page-home .hero-gradient {
    padding-top: 6.5rem;
  }

  body.page-home .hero-panel > .grid {
    grid-template-columns: 1fr;
  }

  body.page-home .hero-panel .p-5 {
    padding: 1rem;
  }

  body.page-home .notice-row {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }
}
