@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-slate-900: #0f172a;
  --color-slate-700: #334155;
  --color-slate-500: #64748b;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
}

main,
section,
article,
.grid > * {
  min-width: 0;
}

h1,
h2,
h3,
p,
li,
a {
  overflow-wrap: break-word;
}


html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(37, 99, 235, 0.75) 100%
  );
}

.page-header-overlay {
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9),
    rgba(37, 99, 235, 0.8)
  );
}

.nav-scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.slide-up {
  animation: slideUp 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  background-color: #2563eb;
  color: #ffffff;
}

.service-icon {
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.5s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  padding: 8px 16px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}


html,
body {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* 2026 responsive brand polish */
:root {
  --nexus-ink: #07111f;
  --nexus-blue: #0057ff;
  --nexus-soft: #eef4ff;
}

header {
  border-bottom: 1px solid rgba(7, 17, 31, 0.08);
}

.page-home main > section:first-child {
  min-height: clamp(620px, 86vh, 860px);
}

.page-home main > section:first-child h1 {
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0.54), rgba(0, 87, 255, 0.18));
}

.btn-primary,
.btn-outline {
  border-radius: 999px;
}

.service-card,
.img-zoom,
.faq-item {
  border-radius: 18px;
}

footer .border-t p:first-child::after {
  content: " Educational and navigation content only; consult qualified healthcare professionals for diagnosis, treatment, and care decisions.";
  display: block;
  margin-top: 0.5rem;
  color: rgb(148 163 184);
}

@media (max-width: 640px) {
  .page-home main > section:first-child {
    min-height: 680px;
    align-items: end;
  }

  .page-home main > section:first-child 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;
  }

  .page-home main > section:first-child p {
    font-size: 1rem;
  }

  .page-home main > section:first-child .flex.flex-col {
    width: 100%;
    max-width: 18rem;
  }

  .page-home main > section:first-child a {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu.open {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

/* Inner page heroes: stronger overlay for readable content */
.page-header-overlay {
  background: linear-gradient(90deg, rgba(7,17,31,0.86), rgba(7,17,31,0.56), rgba(7,17,31,0.18));
}

main section.relative.pt-16 .relative.h-64,
main section.relative.pt-16 .relative.h-80 {
  min-height: 430px;
}

main section.relative.pt-16 h1,
main section.relative.pt-16 p {
  text-shadow: 0 3px 18px rgba(0,0,0,0.48);
}

/* Full-width image hero override */
.page-home main > section:first-child {
  min-height: calc(100vh - 80px);
  width: 100%;
}

.page-home main > section:first-child > .relative.max-w-7xl {
  max-width: 1180px !important;
  width: min(1180px, calc(100% - 32px));
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(7,17,31,0.84), rgba(7,17,31,0.54), rgba(7,17,31,0.12));
}

@media (max-width: 1023px) {
  main > section > .max-w-7xl,
  main > section > .max-w-4xl {
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  main .text-center.max-w-2xl,
  main .max-w-4xl.text-center {
    width: auto !important;
    max-width: 42rem !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  main section.relative.pt-16 .page-header-overlay .max-w-7xl {
    box-sizing: border-box;
    width: calc(100% - 2rem) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-home main > section:first-child {
    min-height: calc(100vh - 64px);
    text-align: center;
    align-items: center;
  }

  .page-home main > section:first-child .fade-in,
  .page-home main > section:first-child .max-w-2xl {
    width: 100%;
    max-width: 36rem;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-home main > section:first-child h1,
  .page-home main > section:first-child p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-home main > section:first-child .flex.flex-col {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  main section.py-20,
  main section.lg\:py-28 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  main section.relative.pt-16 .relative.h-64,
  main section.relative.pt-16 .relative.h-80 {
    min-height: 360px;
  }

  main section.relative.pt-16 + section {
    padding-top: 3.5rem;
  }

  main section.relative.pt-16 .page-header-overlay {
    text-align: center;
  }

  main section.relative.pt-16 .page-header-overlay .max-w-7xl {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  main section.relative.pt-16 h1 {
    font-size: 2.25rem;
    line-height: 1.05;
  }

  main section h1,
  main section h2,
  main section h3,
  main section p,
  main section li {
    max-width: 100%;
  }

  main section:not(:first-child) h2 {
    font-size: 1.75rem;
    line-height: 1.15;
    margin-left: auto;
    margin-right: auto;
  }

  main section:not(:first-child) p {
    line-height: 1.7;
  }

  main section .text-center,
  main section > div > .text-center,
  main section .max-w-4xl.text-center,
  main section .max-w-2xl.text-center {
    text-align: center;
  }

  main article > div[class*="w-12"][class*="h-12"],
  main article > div[class*="w-14"][class*="h-14"],
  main article > div[class*="w-16"][class*="h-16"],
  main article > div[class*="w-20"][class*="h-20"],
  main .service-icon {
    margin-left: auto;
    margin-right: auto;
  }

  main article.bg-white,
  main article.bg-slate-50,
  main .service-card {
    text-align: center;
  }

  main article ul,
  main .service-card ul {
    text-align: left;
  }

  main article img,
  main .img-zoom img {
    width: 100%;
  }

  footer {
    text-align: center;
  }

  footer a.flex {
    justify-content: center;
  }

  footer li.flex {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  header .text-xl {
    font-size: 1.125rem;
  }

  header nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-home main > section:first-child {
    min-height: 640px;
  }

  .page-home main > section:first-child > .relative.max-w-7xl {
    width: auto !important;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }

  .page-home main > section:first-child h1 {
    max-width: 21rem;
    margin-left: auto;
    margin-right: auto;
  }

  .page-home main > section:first-child .flex.flex-col {
    max-width: 21rem;
  }

  main section.relative.pt-16 .relative.h-64,
  main section.relative.pt-16 .relative.h-80 {
    min-height: 320px;
  }

  main section.relative.pt-16 h1 {
    font-size: 2rem;
  }

  main section.relative.pt-16 p {
    font-size: 1rem;
    line-height: 1.6;
  }

  main section:not(:first-child) h2 {
    font-size: 1.625rem;
  }

  main article,
  main .service-card,
  main .bg-white.p-8,
  main .bg-slate-50.p-8 {
    padding: 1.5rem;
  }

  main img.h-72 {
    height: 15rem;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  footer .grid {
    gap: 2rem;
  }
}
