/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #1d2d7c;          /* brand navy from logo */
  --ink-soft: #4a5391;
  --muted: #8a93b0;
  --line: #e7e9f1;
  --navy: #1d2d7c;
  --navy-deep: #11205a;
  --green: #7bc242;        /* brand green from "Diagnostics" */
  --green-dark: #6aac34;
  --green-soft: #effae0;
  --accent: #ffd60a;       /* brand yellow from monogram/stars */
  --accent-dark: #f2c500;
  --accent-soft: #fff8d6;
  --radius: 14px;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(29, 45, 124, 0.06),
            0 10px 30px -12px rgba(29, 45, 124, 0.16);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: #1f2330;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .nav-links a {
  color: var(--ink-soft);
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: var(--navy);
}

.site-header .nav-toggle span {
  background: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1.05;
  font-weight: 700;
}

.brand-mark {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.brand-mark img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  letter-spacing: -0.01em;
}

.brand-wordmark > span {
  font-size: 19px;
  line-height: 1;
}

.brand-wordmark .euro { color: var(--navy); }
.brand-wordmark .diag { color: var(--green); }

.brand-wordmark small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.site-footer .brand-mark img {
  height: 56px;
}

.site-footer .brand-wordmark > span { font-size: 21px; }

@media (max-width: 640px) {
  .brand-mark img { height: 40px; }
  .brand-wordmark > span { font-size: 16px; }
  .brand-wordmark small { font-size: 9px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--navy) !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.site-header .nav-links a.nav-cta:hover,
.site-header .nav-links a.nav-cta.active {
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 21px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 20px;
}

p {
  color: var(--ink-soft);
  font-size: 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 18px;
}

.lead {
  font-size: 18.5px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

.hero-copy h1 span {
  color: var(--green-dark);
  font-style: italic;
  font-family: 'Georgia', serif;
  font-weight: 400;
}

.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.hero-meta div span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.hero-meta div strong {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%, #0a154a 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 214, 10, 0.18), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(123, 194, 66, 0.18), transparent 50%);
}

.hero-visual::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23ffd60a' stroke-width='0.6' opacity='0.45'><circle cx='100' cy='100' r='80'/><circle cx='100' cy='100' r='60'/><circle cx='100' cy='100' r='40'/><path d='M20 100 H180 M100 20 V180'/></svg>") center/contain no-repeat;
  animation: spin 60s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.hero-badge .dot {
  width: 10px;
  height: 10px;
  background: #2ecc8b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(46, 204, 139, 0.18);
}

.hero-badge small {
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-badge strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

/* ---------- Section header ---------- */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ---------- Service list ---------- */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-item {
  background: var(--surface);
  padding: 36px;
  transition: background 0.2s ease;
}

.service-item:hover {
  background: #fdfdfb;
}

.service-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.service-item-head h3 {
  font-size: 19px;
}

.service-item-head .num {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.service-item p {
  font-size: 15px;
  line-height: 1.6;
}

.service-item ul {
  list-style: none;
  margin-top: 18px;
}

.service-item ul li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-item ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-visual {
  aspect-ratio: 1/1.1;
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--green-soft) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%231d2d7c' stroke-width='0.5' opacity='0.5'><path d='M0 50 Q15 30 30 50 T 60 50 T 90 50 T 120 50'/><path d='M0 60 Q15 40 30 60 T 60 60 T 90 60 T 120 60'/><path d='M0 70 Q15 50 30 70 T 60 70 T 90 70 T 120 70'/></svg>") center/cover;
  opacity: 0.7;
}

/* ---------- Doctors / team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: all 0.25s ease;
}

.team-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.team-photo {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-deep) 100%);
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team-card h3 {
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--navy);
}

.team-card .role {
  font-size: 13.5px;
  color: var(--green-dark);
  margin-bottom: 14px;
  font-weight: 600;
}

.team-card p {
  font-size: 14px;
  line-height: 1.6;
}

.team-card .creds {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- About story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
}

.story-grid h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.value-list {
  margin-top: 40px;
  display: grid;
  gap: 28px;
}

.value-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.value-item:first-child {
  padding-top: 0;
  border-top: none;
}

.value-num {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.value-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-item p {
  font-size: 15px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info {
  display: grid;
  gap: 28px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}

.contact-card span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}

.contact-card a:hover {
  color: var(--green-dark);
}

form.contact-form {
  background: var(--surface);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- CTA strip ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 22px;
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  max-width: var(--maxw);
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.16), transparent 70%);
}

.cta h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 38px);
  position: relative;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  margin-top: 14px;
  position: relative;
}

.cta-actions { position: relative; }

.cta .btn-primary {
  background: var(--accent);
  color: var(--navy);
  font-weight: 600;
}

.cta .btn-primary:hover {
  background: var(--accent-dark);
}

.cta-actions {
  text-align: right;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
  margin-top: 96px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}

.footer-bottom .made {
  color: var(--muted);
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  max-width: 760px;
}

.page-hero .lead {
  margin-top: 22px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--ink);
}

/* ---------- Map embed ---------- */
.map-wrap {
  aspect-ratio: 16/8;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid,
  .split,
  .story-grid,
  .contact-grid,
  .cta {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 32px;
  }
  .cta-actions { text-align: left; }
  .feature-grid,
  .team-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .feature-grid,
  .team-grid,
  .stats-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-value { font-size: 36px; }
  h1 { font-size: 40px; }
}
