/* ===========================
   DIBIAX HEALTH TECHNOLOGIES — GLOBAL STYLES
   =========================== */

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

:root {
  --blue-600:  #0A5860;
  --blue-500:  #C4956A;
  --blue-400:  #D4A878;
  --blue-50:   #EAF4F5;
  --teal-500:  #1C2E30;
  --teal-400:  #C4956A;
  --slate-900: #1C2E30;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white:     #ffffff;

  --font:      'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

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

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn--sm { padding: .55rem 1.2rem; font-size: .875rem; }

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover { background: #083d44; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
  border-color: var(--blue-600);
  color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-600); color: var(--white); }

.btn-ghost {
  color: var(--slate-700);
  background: transparent;
}
.btn-ghost:hover { color: var(--blue-600); }

/* ===========================
   NAVBAR
   =========================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.navbar.scrolled {
  border-color: var(--slate-100);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue-600); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all .25s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 30%;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--slate-900) 0%, #0d4a50 60%, #0A5860 100%);
  overflow: hidden;
  padding-top: 80px;
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--blue-500);
  top: -150px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--teal-500);
  bottom: -100px; left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 250px; height: 250px;
  background: var(--blue-400);
  top: 30%; left: 40%;
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 4rem;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(10,88,96,.25);
  border: 1px solid rgba(196,149,106,.5);
  color: var(--blue-400);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-actions .btn-ghost { color: rgba(255,255,255,.75); }
.hero-actions .btn-ghost:hover { color: var(--white); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .25rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* ===========================
   SERVICES
   =========================== */

.services {
  padding: 6rem 0;
  background: var(--slate-100);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: .3rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  background: linear-gradient(145deg, var(--blue-600), var(--slate-900));
  border-color: transparent;
  color: var(--white);
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-600);
  flex-shrink: 0;
}
.service-card--featured .service-icon { color: rgba(255,255,255,.85); }

.service-icon svg { width: 100%; height: 100%; }

.featured-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,.2);
  color: var(--white);
  padding: .2rem .65rem;
  border-radius: 999px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: .25rem;
}
.service-card--featured .service-title { color: var(--white); }

.service-desc {
  font-size: .9rem;
  color: var(--slate-500);
  line-height: 1.7;
  flex: 1;
}
.service-card--featured .service-desc { color: rgba(255,255,255,.75); }

.service-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-top: auto;
  transition: gap .2s;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.service-link:hover { gap: .5rem; }
.service-card--featured .service-link { color: rgba(255,255,255,.9); }

/* ===========================
   TRUST STRIP
   =========================== */

.trust-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: var(--white);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.trust-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--slate-500);
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
}

.trust-logo {
  font-size: .85rem;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.trust-logo:hover { color: var(--blue-600); }

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--slate-900);
  color: var(--slate-300);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 0 2.5rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.footer-tagline {
  font-size: .9rem;
  color: var(--slate-500);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social { display: flex; gap: .75rem; }

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--slate-700);
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--slate-400);
  transition: all .2s;
}
.social-link:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-list a, .footer-list--contact li {
  font-size: .875rem;
  color: var(--slate-500);
  transition: color .2s;
  line-height: 1.5;
}
.footer-list a:hover { color: var(--white); }

.footer-col .btn--sm { margin-top: 1rem; }

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: .8rem; color: var(--slate-600); }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: .8rem;
  color: var(--slate-600);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--white); }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
