/* ===========================================================
   Medical KG — Design tokens
   =========================================================== */
:root {
  /* Brand */
  --primary: #00677d;
  --primary-hover: #004e5f;
  --accent: #00b4d8;

  /* Surfaces */
  --bg: #f5fafd;
  --surface: #ffffff;
  --surface-alt: #eff4f7;
  --surface-footer: #e9eff1;
  --warm: #e6e2dd;

  /* Text */
  --text: #171c1f;
  --text-2: #3d494d;
  --outline: #bcc9ce;

  /* Accent secondary */
  --orange: #914d00;

  /* Radii */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-pill: 9999px;

  /* Shadow (teal-tinted) */
  --shadow-sm: 0 1px 2px rgba(0,103,125,.05), 0 1px 1px rgba(0,103,125,.04);
  --shadow-md: 0 8px 24px -8px rgba(0,103,125,.18), 0 2px 6px rgba(0,103,125,.06);
  --shadow-lg: 0 24px 48px -16px rgba(0,103,125,.22), 0 4px 10px rgba(0,103,125,.08);

  /* Type */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
h1, h2, h3 { overflow-wrap: break-word; }

/* Na úzkych displejoch musia nadpisy zmenšiť, inak jedno dlhé slovo
   („Ambulancia", „hypercholesterolémia") rozťahuje grid stopu a stránka preteká. */
@media (max-width: 640px) {
  h1 { font-size: clamp(28px, 8vw, 36px); }
  h2 { font-size: clamp(21px, 6.2vw, 28px); }
  h3 { font-size: 20px; }
}
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Material icons base */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0,180,216,.18);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--outline);
}
.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--primary);
  padding: 8px 0;
  border-radius: 0;
  background: none;
}
.btn-ghost:hover { color: var(--primary-hover); gap: 12px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn .material-symbols-outlined { font-size: 18px; }

/* ===========================================================
   Header / Announcement
   =========================================================== */
.announce {
  background: var(--warm);
  color: #5a4422;
  font-size: 14px;
  border-bottom: 1px solid rgba(145,77,0,.08);
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.announce .material-symbols-outlined { color: var(--orange); font-size: 20px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(0,103,125,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  box-shadow: 0 4px 12px -4px rgba(0,180,216,.45);
}
.brand-mark::before {
  /* subtle hex hint */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 60%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--text-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--r-pill);
  color: var(--text-2);
  transition: color .15s, background .15s;
  cursor: pointer;
}
.nav-link:hover { color: var(--primary); background: var(--surface-alt); }
.nav-link.active { color: var(--primary); background: rgba(0,180,216,.1); }
.nav-cta { margin-left: 12px; }

.hamburger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  color: var(--primary);
}
.hamburger:hover { background: var(--surface-alt); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .nav-cta { display: none; }
  .brand-sub { display: none; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,30,40,.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: #fff;
  padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer-panel .nav-link {
  padding: 14px 16px;
  font-size: 16px;
}
.drawer-close {
  align-self: flex-end;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-2);
}
.drawer-close:hover { background: var(--surface-alt); }

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  margin-top: 80px;
  background: var(--surface-footer);
  border-radius: 24px 24px 0 0;
  padding: 56px var(--gutter) 24px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: 48px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin-bottom: 16px;
}
.footer-list { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-list a { color: var(--text); }
.footer-list a:hover { color: var(--primary); }
.footer-blurb {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 14px;
  max-width: 32ch;
}
.footer-contact-line {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.footer-contact-line .material-symbols-outlined { color: var(--primary); font-size: 18px; margin-top: 2px; }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(0,103,125,.1);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-2);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer { padding-top: 40px; }
}

/* ===========================================================
   Reusable bits
   =========================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,180,216,.1);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.eyebrow.warm {
  background: var(--warm);
  color: var(--orange);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid rgba(0,103,125,.08);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hoverable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,180,216,.3);
}
.icon-blob {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(0,180,216,.12);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.icon-blob.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-blob.lg .material-symbols-outlined { font-size: 30px; }

/* Image placeholder (striped) */
.img-ph {
  position: relative;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(0,103,125,.08) 0 12px,
      rgba(0,103,125,.04) 12px 24px);
  background-color: var(--surface-alt);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--text-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.img-ph::before {
  content: attr(data-label);
  background: rgba(255,255,255,.8);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0,103,125,.08);
}

/* Section helpers */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 14px; }

/* Page hero */
.page-hero {
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p { color: var(--text-2); font-size: 18px; max-width: 600px; margin: 18px auto 0; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(0,180,216,.1);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 500;
}
.chip.warm { background: var(--warm); color: var(--orange); }
.chip.outline { background: #fff; border: 1px solid var(--outline); color: var(--text-2); }

/* Divider */
.divider { height: 1px; background: rgba(0,103,125,.1); border: 0; margin: 0; }

/* Page transition */
.page-fade {
  animation: pageFade .3s ease;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
