/* ==========================================================================
   valdman.sk — Ambulancia plastickej a estetickej chirurgie
   Mobile-first, responsive, dependency-free stylesheet.
   Base styles target small screens; min-width media queries enhance upward.
   ========================================================================== */

:root {
  --ink:        #17324a;
  --ink-soft:   #4a6076;
  --brand:      #0f5c8c;
  --brand-dark: #0a3f61;
  --accent:     #c1962f;
  --accent-dark:#7a5c12;   /* darkened so eyebrow/role text meets WCAG AA */
  --bg:         #ffffff;
  --bg-soft:    #f2f6fa;
  --bg-tint:    #e8f0f7;
  --line:       #dbe4ee;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 6px 24px rgba(15, 60, 107, .08);
  --shadow-lg:  0 14px 40px rgba(15, 60, 107, .14);
  --maxw:       1120px;
  --header-h:   64px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;            /* guard against any accidental horizontal scroll */
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
/* Inline text links must be distinguishable by more than colour (WCAG) */
.prose a, .note a, .crumbs a, .site-footer a, main p a { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); color: var(--brand-dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 7vw, 3rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.35rem, 5vw, 2rem); margin: 2rem 0 .7rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; color: var(--brand); }

p { margin: 0 0 1.1rem; }
ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin: .35rem 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--brand-dark); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ============================ Header ================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;   /* above the drawer backdrop */
  background: #fff;
  border-bottom: 1px solid var(--line);
  /* NOTE: no backdrop-filter/transform here — it would trap the fixed drawer
     inside the header box instead of the viewport. */
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand strong { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-dark); }
.brand span { font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .8px; }

/* Hamburger — visible on mobile */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; padding: .4rem; margin-right: -.4rem;
  color: var(--brand-dark);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* Nav drawer (mobile base) */
.nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  z-index: 200;
  display: flex; flex-direction: column; align-items: stretch; gap: .15rem;
  background: #fff; box-shadow: var(--shadow-lg);
  padding: 4.5rem 1.1rem 2rem;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.nav[data-open="true"] { transform: translateX(0); }
.nav a {
  color: var(--ink); font-weight: 600; font-size: 1.05rem;
  padding: .85rem .8rem; border-radius: var(--radius-sm);
}
.nav a:hover, .nav a:focus { background: var(--bg-tint); text-decoration: none; color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--bg-tint); }
.nav-cta {
  margin-top: .8rem; text-align: center;
  background: var(--brand) !important; color: #fff !important; border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-dark) !important; }

/* Close button inside drawer */
.nav-close {
  position: absolute; top: .8rem; right: 1rem;
  width: 42px; height: 42px; border: 0; cursor: pointer;
  background: var(--bg-tint); color: var(--brand-dark);
  border-radius: 10px; font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center;
}
.nav-close:hover { background: var(--line); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(10,30,50,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.nav-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* Desktop nav — inline, no drawer */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-close { display: none; }
  .nav-backdrop { display: none; }
  .nav {
    position: static; width: auto; z-index: auto;
    flex-direction: row; align-items: center; gap: .3rem;
    background: none; box-shadow: none; padding: 0; transform: none; overflow: visible;
  }
  .nav a { font-size: .95rem; padding: .5rem .7rem; }
  .nav-cta { margin-top: 0; margin-left: .4rem; padding: .55rem 1rem !important; }
  .brand strong { font-size: 1.25rem; }
  .brand span { font-size: .74rem; letter-spacing: 1px; }
}

/* ============================== Hero ================================= */
.hero { background: linear-gradient(160deg, var(--bg-tint), #fff 70%); }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding-block: clamp(1.8rem, 6vw, 5rem);
}
.hero-photo { order: -1; max-width: 300px; margin-inline: auto; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; aspect-ratio: 389 / 491; object-fit: cover; }
.hero .lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 1.5rem; }
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem .8rem; font-size: .8rem; font-weight: 600; color: var(--brand-dark);
}
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
  .hero-photo { order: 0; max-width: none; }
  .hero .lead { font-size: 1.15rem; }
}

/* ============================== Buttons ============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-size: 1rem; padding: .8rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .08s ease, background .2s, box-shadow .2s; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-outline:hover { background: var(--bg-tint); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ============================== Sections ============================ */
section { padding-block: clamp(1.8rem, 5vw, 3.5rem); }
.section-soft { background: var(--bg-soft); }
.page { padding-block: clamp(1.4rem, 4vw, 3rem); }
.prose { max-width: 74ch; }
.lead { font-size: 1.08rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .74rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 .4rem; }

.crumbs { font-size: .85rem; color: var(--ink-soft); padding-top: 1rem; }
.crumbs a { color: var(--ink-soft); }

/* Card grids — mobile-first single column */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: .8rem;
  background: var(--bg-tint); color: var(--brand); display: grid; place-items: center;
}
.card-icon svg { width: 26px; height: 26px; }

/* Service list — single column on mobile */
.svc-list { columns: 1; list-style: none; padding: 0; }
.svc-list li {
  break-inside: avoid; padding: .6rem 0 .6rem 1.9rem; position: relative;
  border-bottom: 1px solid var(--line);
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: .95rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5c8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
@media (min-width: 700px) { .svc-list { columns: 2; column-gap: 2.5rem; } }

/* Staff — stacked on mobile */
.staff {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.3rem;
}
.staff img { border-radius: var(--radius-sm); width: 100%; max-width: 170px; }
.staff h2, .staff h3 { margin-top: 0; }
.staff .role { color: var(--accent-dark); font-weight: 600; font-size: .9rem; margin: -.3rem 0 .6rem; }
@media (min-width: 560px) {
  .staff { grid-template-columns: 160px 1fr; gap: 1.4rem; }
  .staff img { max-width: 100%; }
}

.note {
  background: var(--bg-tint); border-left: 4px solid var(--brand);
  padding: 1rem 1.1rem; border-radius: var(--radius-sm); margin: 1.3rem 0;
}
.note strong { color: var(--brand-dark); }

/* Essay images (pojmy) — full width on mobile, floated on larger screens */
.essay-img {
  display: block; width: 100%; max-width: 320px; margin: .4rem auto 1.2rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .essay-img { max-width: 260px; }
  .essay-img.right { float: right; margin: .2rem 0 1rem 1.6rem; }
  .essay-img.left  { float: left;  margin: .2rem 1.6rem 1rem 0; }
}
h2 { clear: both; }   /* headings start below any floated essay image */

/* ============================ Price tables =========================== */
/* Mobile-first: no forced min-width, text wraps, prices stay visible. */
.price-wrap {
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow-x: auto; -webkit-overflow-scrolling: touch;   /* safety only */
}
table.price { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.price caption {
  text-align: left; font-weight: 700; color: var(--brand-dark);
  font-family: var(--serif); font-size: 1.05rem; padding: .9rem .8rem .2rem;
}
table.price th, table.price td {
  padding: .5rem .6rem; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top; overflow-wrap: anywhere; word-break: break-word;
}
table.price thead th { background: var(--brand); color: #fff; }
table.price tbody tr:nth-child(even) { background: var(--bg-soft); }
table.price td.num, table.price th.num {
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600;
}
table.price td:first-child, table.price th:first-child { white-space: nowrap; color: var(--ink-soft); }
table.price thead th:first-child { color: #fff; }
table.price .subrow td:first-child { padding-left: 1.3rem; }
@media (min-width: 700px) {
  table.price { font-size: .95rem; }
  table.price th, table.price td { padding: .6rem .9rem; }
  table.price caption { font-size: 1.15rem; padding: 1rem 1rem .2rem; }
}

/* ============================== Contact ============================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; align-items: start; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-list .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--bg-tint);
  color: var(--brand); display: grid; place-items: center; }
.info-list .ic svg { width: 19px; height: 19px; }
.info-list strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); font-weight: 700; }
.info-list a { font-size: 1.05rem; word-break: break-word; }
.map-embed { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 560px) { .map-embed { height: 420px; } }

/* ============================== CTA band ============================ */
.cta-band { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e7f4; }
.cta-band .container { text-align: center; }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-primary:hover { background: #eaf1f8; color: var(--brand-dark); }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.cta-band .btn-row { justify-content: center; }

/* ============================== Footer ============================== */
.site-footer { background: #0c2438; color: #c4d4e2; padding-block: 2.5rem 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; } }
.site-footer h2 { color: #fff; font-family: var(--serif); margin: 0 0 .7rem; font-size: 1.05rem; clear: none; font-weight: 700; }
.site-footer a { color: #c4d4e2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.6rem; padding-top: 1.1rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: #8ea6bd; font-size: .82rem; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hours-table { border-collapse: collapse; }
.hours-table td { padding: .2rem .8rem .2rem 0; }
.hours-table td:last-child { font-variant-numeric: tabular-nums; }
