/* ==========================================================
   Ambulancia – spoločné štýly
   Farebná paleta: upokojujúca teal/modrozelená (zdravotníctvo)
   ========================================================== */

:root {
  --primary: #1b7a72;
  --primary-dark: #145d57;
  --primary-light: #e6f4f1;
  --accent: #d9a94e;
  --text: #22302e;
  --text-light: #5b6b68;
  --bg: #ffffff;
  --bg-alt: #f6faf9;
  --border: #e1e8e6;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(20, 60, 55, 0.08);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.25; font-weight: 700; color: var(--primary-dark); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 680px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-dark);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 400; color: var(--text-light); font-size: 0.75rem; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
nav.main-nav a.active { color: var(--primary); }

.nav-cta { margin-left: 8px; }
nav.main-nav a.nav-cta {
  color: #fff !important;
}

nav.main-nav a.nav-cta:hover {
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--primary-dark);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { margin-top: 0; }
.hero .lead { margin-bottom: 28px; }

.hero-photo-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo-main img { height: 320px; object-fit: cover; width: 100%; }

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.photo-grid-3 figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-grid-3 img { height: 200px; object-fit: cover; width: 100%; }

/* ===== Info cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

/* Poisťovne badge row */
.insurance-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.insurance-box .icon-big {
  font-size: 2.2rem;
  color: var(--primary);
}
.insurance-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

/* ===== Contact section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}
.contact-info-item a:hover { color: var(--primary); }
.contact-info-item .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
form.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: block;
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }

/* honeypot – skryté pole proti spam botom */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}
.form-success {
  display: none;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 12px;
  font-weight: 600;
}

/* ===== Map ===== */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 12px;
}
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ===== Generic page hero (podstránky) ===== */
.page-hero {
  background: var(--primary-light);
  padding: 48px 0;
  text-align: left;
}

/* ===== Služby ===== */
.service-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.service-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.service-item h3 { margin: 0 0 8px; color: var(--primary-dark); }
.service-item p { margin: 0; color: var(--text-light); }

/* ===== O nás ===== */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; }
.about-block.reverse .about-photo { order: 2; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { object-fit: cover; height: 280px; width: 100%; }

.timeline { margin-top: 24px; border-left: 3px solid var(--primary-light); padding-left: 24px; }
.timeline-item { margin-bottom: 22px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline-item .year { font-weight: 700; color: var(--primary); font-size: 0.9rem; }

/* ===== Cenník ===== */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.pricing th, table.pricing td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
table.pricing th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
table.pricing tr:last-child td { border-bottom: none; }
table.pricing tr:hover td { background: var(--bg-alt); }

.note-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 8px;
  margin-top: 32px;
}

/* ===== Priestory gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-grid img { height: 230px; object-fit: cover; width: 100%; }

/* ===== Footer ===== */
footer.site-footer {
  background: var(--primary-dark);
  color: #d9ece9;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
footer.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
footer.site-footer a { color: #d9ece9; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer p { margin: 0 0 8px; color: #b9d6d1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 32px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #a9c9c3;
}
.footer-legal a { margin-right: 16px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-grid, .contact-grid, .about-block, .about-block.reverse { grid-template-columns: 1fr; }
  .about-block.reverse .about-photo { order: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .photo-grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }

  .menu-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
    gap: 16px;
  }
  nav.main-nav.open { display: flex; }
  .nav-cta { margin-left: 0; }
}

@media (max-width: 560px) {
  .photo-grid-3, .gallery-grid { grid-template-columns: 1fr; }
}
