/* VITALIS — všeobecná ambulancia, Košice
   Mobile-first, bez externých zdrojov (fonty, CDN, obrázky).
   Farby a rozostupy sú riadené premennými nižšie. */

:root {
  --teal-900: #0b4f4a;
  --teal-700: #0f766e;
  --teal-600: #12897f;
  --teal-100: #d7ebe8;
  --teal-50: #eef7f6;

  --ink: #14211f;
  --body: #465654;
  --muted: #6d7d7b;
  --line: #dde8e6;
  --surface: #ffffff;
  --canvas: #f6faf9;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 79, 74, .06), 0 12px 28px rgba(11, 79, 74, .07);
  --shadow-sm: 0 1px 2px rgba(11, 79, 74, .06), 0 4px 12px rgba(11, 79, 74, .05);

  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.12rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }

img, svg, iframe { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-700);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--teal-700);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Demo pás ---------- */

.demo-bar {
  background: #3b2f13;
  color: #f6e7bf;
  font-size: .87rem;
}

.demo-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.demo-tag {
  flex: none;
  padding: 3px 9px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #3b2f13;
  background: #e8c766;
  border-radius: 4px;
}

.demo-bar p { margin: 0; line-height: 1.45; }

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal-700);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.22rem;
  letter-spacing: .06em;
  color: var(--ink);
}

.brand-text span {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Na úzkych telefónoch (375 px) presiahne logo + tlačidlo Menu dostupnú
   šírku o jednotky pixelov a hlavička sa zlomí na dva riadky. */
@media (max-width: 420px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-text span { font-size: .66rem; letter-spacing: .07em; }
  .header-inner { gap: 10px; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--teal-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.site-nav {
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
}

.site-nav.is-open { display: flex; }

.site-nav a {
  padding: 11px 4px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav a:hover { color: var(--teal-700); }

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 18px !important;
  color: #fff !important;
  background: var(--teal-700);
  border: 0 !important;
  border-radius: 999px;
  justify-content: center;
}

.nav-call:hover { background: var(--teal-900); color: #fff !important; }
.nav-call svg { width: 17px; height: 17px; flex: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    width: auto;
    padding-bottom: 0;
  }

  .site-nav a {
    padding: 6px 0;
    border-bottom: 0;
    font-size: .96rem;
  }

  .nav-call { margin-top: 0; padding: 11px 20px !important; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--teal-100) 0%, rgba(215, 235, 232, 0) 62%),
    var(--canvas);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  gap: 40px;
}

.hero h1 { margin-bottom: .35em; }

.lead {
  font-size: 1.1rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--teal-700);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-900); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: #fff; border-color: var(--teal-600); color: var(--teal-900); }

.btn-block { width: 100%; }

.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-cards {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

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

.info-card h2 {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.info-card-accent { border-color: var(--teal-100); background: var(--teal-50); }

.hours { margin: 0; }

.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.hours > div:last-child { border-bottom: 0; }

.hours dt { color: var(--body); }

/* nowrap: bez neho sa „7:00 – 15:00“ v úzkej karte zlomí na dva riadky
   a riadky dní prestanú byť rovnako vysoké. */
.hours dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.info-note {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--muted);
}

.address {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  font-size: .93rem;
}

@media (min-width: 700px) {
  .hero-cards { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  .hero { padding: 72px 0 84px; }
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
  .hero-cards { margin-top: 52px; }
}

/* ---------- Pás s prehľadom ---------- */

.strip {
  background: var(--teal-900);
  color: #d9ebe9;
}

.strip-inner {
  display: grid;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .96rem;
}

.strip-item svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: #6fc7bd;
}

@media (min-width: 860px) {
  .strip-inner { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Sekcie ---------- */

.section { padding: 64px 0; }
.section-alt { background: var(--canvas); border-block: 1px solid var(--line); }

.section-head {
  max-width: 62ch;
  margin-bottom: 40px;
}

.section-lead { font-size: 1.05rem; }

@media (min-width: 960px) {
  .section { padding: 88px 0; }
}

/* ---------- Služby ---------- */

.service-grid {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.service:hover {
  border-color: var(--teal-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service svg {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--teal-700);
}

.service h3 { margin-bottom: .4em; }

.service p {
  font-size: .96rem;
  margin: 0;
}

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Dvojstĺpec ---------- */

.two-col {
  display: grid;
  gap: 40px;
  align-items: center;
}

.check-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.check-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 3px;
  padding: 3px;
  color: #fff;
  background: var(--teal-700);
  border-radius: 50%;
}

.check-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.check-list div { font-size: .97rem; }

.visual { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Široký pás s fotkou a popiskom pod mriežkou služieb */
.feature {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature figcaption {
  padding: 26px 24px;
  font-size: .97rem;
}

.feature figcaption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.12rem;
  color: var(--ink);
}

@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; align-items: center; }
  .feature img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .feature figcaption { padding: 34px 36px; }
}

@media (min-width: 960px) {
  .two-col { grid-template-columns: 1.05fr .95fr; gap: 64px; }
}

/* ---------- Kroky ---------- */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: .98rem;
  color: #fff;
  background: var(--teal-700);
  border-radius: 50%;
}

.steps h3 { margin-bottom: .35em; }
.steps p { font-size: .96rem; margin: 0; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
}

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-panel h3,
.contact-form h3 {
  font-size: 1.22rem;
  margin-bottom: 1rem;
}

.contact-list { margin: 0 0 22px; }

.contact-list > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list > div:last-child { border-bottom: 0; }

.contact-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dt svg { width: 16px; height: 16px; color: var(--teal-700); }

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }

.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  line-height: 0;
}

.map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ---------- Formulár ---------- */

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.form-row label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.form-row textarea { resize: vertical; min-height: 96px; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  background: #fff;
  border-color: var(--teal-600);
}

.form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--teal-700);
}

.form-check label { font-weight: 400; font-size: .92rem; color: var(--body); }

/* Honeypot — mimo obrazovky, ale nie display:none (boty ho ignorujú). */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--muted);
}

.form-status {
  margin-top: 14px;
  padding: 13px 16px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--teal-900);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
}

@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-panel, .contact-form { padding: 32px 30px; }
}

/* ---------- Päta ---------- */

.site-footer {
  padding: 56px 0 28px;
  background: var(--ink);
  color: #b9c8c6;
}

.site-footer h2 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: .9rem;
}

.site-footer a { color: #d7ebe8; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8c9d9b; }

.footer-inner {
  display: grid;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-brand .brand { margin-bottom: 14px; color: var(--teal-600); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #8c9d9b; }
.footer-brand p { font-size: .95rem; max-width: 34ch; }

.footer-col p { font-size: .95rem; line-height: 1.75; }

.social {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #33403e;
  border-radius: 50%;
  transition: background-color .18s ease, border-color .18s ease;
}

.social a:hover { background: var(--teal-700); border-color: var(--teal-700); }
.social svg { width: 19px; height: 19px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid #2a3735;
  font-size: .87rem;
}

.footer-bottom p { margin: 0; }

@media (min-width: 780px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
}
