/* Gynekologická ambulance Jablunkov — theme stylesheet (no build step) */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #0cb8b6;          /* brand: logo, large shapes, icons on white */
  --teal-ink: #0a6461;      /* text links and buttons (AA on white and tint) */
  --teal-ink-hover: #074b49;
  --tint: #eef7f7;          /* pale teal field */
  --tint-2: #dcefee;
  --ink: #1d2a2c;
  --ink-2: #455759;         /* secondary text */
  --line: #d3e4e3;
  --acute: #b3261e;
  --white: #fff;

  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 1rem;
  --step-0: 1.1875rem;      /* 19px body, readable for older patients */
  --step-1: 1.375rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  --step-4: clamp(2.35rem, 1.5rem + 3vw, 3.5rem);

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 12px 32px -14px rgb(10 60 58 / 0.28), 0 2px 6px rgb(10 60 58 / 0.06);
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 2rem + 4vw, 5.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-ink-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tint-2); color: var(--ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.012em; font-weight: 700; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.022em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.skip-link:hover { color: var(--white); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 46rem); }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 3rem; padding: 0.65em 1.2em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: var(--step--1); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button--large { min-height: 3.5rem; padding: 0.8em 1.45em; font-size: 1.125rem; }
.button--primary { background: var(--teal-ink); color: var(--white); box-shadow: 0 8px 18px -10px rgb(10 100 97 / 0.7); }
.button--primary:hover { background: var(--teal-ink-hover); color: var(--white); }
.button--ghost { background: var(--white); color: var(--teal-ink); border-color: var(--line); }
.button--ghost:hover { border-color: var(--teal-ink); color: var(--teal-ink-hover); }
.button .icon { width: 1.15em; height: 1.15em; }
.text-link { font-weight: 650; }
.text-link--arrow { display: inline-flex; align-items: center; gap: 0.35em; text-decoration: none; }
.text-link--arrow:hover { text-decoration: underline; }
.text-link--arrow .icon { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.text-link--arrow:hover .icon { transform: translateX(3px); }

/* Notice */
.notice { background: var(--ink); color: var(--white); font-size: var(--step--1); }
.notice__inner { display: flex; gap: 0.75rem; align-items: center; padding-block: 0.7rem; }
.notice .icon { color: var(--teal); width: 1.35em; height: 1.35em; }
.notice p { margin: 0; }
.notice strong { font-weight: 700; margin-right: 0.35em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.96); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 5rem; }
.brand { flex: none; display: block; }
.brand img { width: 170px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-nav a:hover { background: var(--tint); color: var(--teal-ink-hover); }
.site-nav a[aria-current="page"] { color: var(--teal-ink); background: var(--tint); }
.header-call { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem 0.45rem 0.8rem; border-radius: 999px; background: var(--tint); color: var(--ink); text-decoration: none; line-height: 1.15; font-weight: 700; }
.header-call .icon { color: var(--acute); }
.header-call small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.header-call:hover { background: var(--tint-2); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .site-header__inner { min-height: 4.25rem; gap: 0.75rem; }
  .brand img { width: 140px; }
  .header-call { margin-left: auto; padding: 0.6rem; }
  .header-call__text { display: none; }
  .header-call .icon { width: 1.5em; height: 1.5em; }
  .nav-toggle { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); cursor: pointer; }
  .nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
  .nav-toggle__close, .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  .site-nav { position: absolute; inset: 100% 0 auto; margin: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a { padding: 0.85rem 0.75rem; font-size: var(--step-1); border-radius: var(--radius); }
  .no-js .site-nav { position: static; display: block; box-shadow: none; border: 0; }
}

/* Hero: intro row, then the team photo as one wide tinted stage */
.hero { padding-top: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: center; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.hero h1 { max-width: 13ch; margin: 0 0 1rem; }
.hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 38ch; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.button--acute { line-height: 1.1; }
.button--acute .icon { color: var(--acute); }
.button--acute small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); }
.hero__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero__address { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--ink-2); }
.hero__address .icon { color: var(--teal-ink); }
.hero__stage { margin: 0; display: flex; justify-content: center; background: var(--tint); border-radius: 2.5rem; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 4vw, 3rem) 0; }
/* the photo is shot on pure white: multiply melts it into the tint field */
.hero__stage img { width: min(100%, 56rem); mix-blend-mode: multiply; margin-bottom: -1px; }

.today { display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: center; }
.today__icon { grid-row: span 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--tint); color: var(--teal-ink); }
.today__icon .icon { width: 1.35rem; height: 1.35rem; }
.today__status { margin: 0; font-weight: 700; font-size: var(--step-0); line-height: 1.25; }
.today__detail { margin: 0; color: var(--ink-2); line-height: 1.35; font-size: var(--step--1); }
.today[data-state="open"] .today__icon { background: var(--teal-ink); color: var(--white); }
.today[data-state="open"] .today__status::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.45em; border-radius: 50%; background: var(--teal); vertical-align: 0.08em; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(12 184 182 / 0.55); } 70% { box-shadow: 0 0 0 10px rgb(12 184 182 / 0); } 100% { box-shadow: 0 0 0 0 rgb(12 184 182 / 0); } }

@media (max-width: 860px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .hero__actions .button { flex: 1 1 15rem; justify-content: center; }
  .hero__facts { flex-direction: column; align-items: flex-start; }
  .hero__stage { border-radius: 1.5rem; padding-top: 1.25rem; }
}

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--flush-top { padding-top: 0; }
.section__title { margin-bottom: 1.5rem; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.section__head .section__title { margin: 0; }

/* Services */
.services__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.service { border-radius: var(--radius-lg); }
.service p { color: var(--ink-2); }
.service--lead { background: var(--tint); padding: clamp(1.5rem, 3vw, 2.75rem); }
.service--lead h3 { font-size: var(--step-2); }
.service--lead p { font-size: var(--step-0); max-width: 52ch; }
.services__side { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
.services__side .service { border: 1px solid var(--line); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.service--media { display: flex; flex-direction: column; }
.service--media .service__img { margin-bottom: 1.25rem; flex: 1 1 auto; min-height: 9rem; aspect-ratio: auto; }
.service__img { border-radius: var(--radius); aspect-ratio: 5 / 2; object-fit: cover; width: 100%; }
.service__img--lead { aspect-ratio: 2.1 / 1; margin-bottom: 1.75rem; border-radius: var(--radius-lg); }
.service__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin: 1rem 0 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }
.checklist--compact { font-size: var(--step--1); gap: 0.4rem; margin-bottom: 0; }
.checklist--compact li { color: var(--ink-2); }
@media (max-width: 960px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* About + team */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; }
.about__media { margin: 0; }
.about__media img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.team-heading { margin-top: clamp(3rem, 6vw, 4.5rem); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
@media (max-width: 600px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .member-card__name { font-size: 1.125rem; } }
.member-card a { display: block; text-decoration: none; color: var(--ink); }
.member-card img { width: 100%; aspect-ratio: 250 / 315; object-fit: cover; border-radius: var(--radius-lg); background: var(--tint); margin-bottom: 0.75rem; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.member-card a:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.member-card__name { display: block; font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
.member-card a:hover .member-card__name { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 0.18em; }
.member-card__role { display: block; color: var(--ink-2); }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* Article tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.tile__link { display: block; text-decoration: none; color: var(--ink); }
.tile__media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); margin-bottom: 1rem; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile__link:hover .tile__media img { transform: scale(1.03); }
.tile__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.tile__link:hover .tile__title { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.tile__summary { color: var(--ink-2); font-size: var(--step--1); margin: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.contact__col { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.section--flush-top .contact__col { border: 1px solid var(--line); }
.contact h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.booking__item { display: flex; gap: 0.75rem; align-items: flex-start; }
.booking__item .icon { margin-top: 0.2em; color: var(--teal-ink); }
.booking__item--acute .icon { color: var(--acute); }
.booking__item--acute { font-weight: 650; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0 0 0.75rem 2rem; }
.app-links--stores { margin-bottom: 1.5rem; color: var(--ink-2); }
.phones { list-style: none; padding: 0; margin: 0 0 1.25rem; border-top: 1px solid var(--line); }
.phones a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.phones a:hover { background: var(--tint); }
.phones__label { color: var(--ink-2); }
.phones__label small { font-size: 0.85em; }
.phones__number { font-weight: 700; font-size: var(--step-1); color: var(--teal-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact__line { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.contact__line .icon { margin-top: 0.2em; color: var(--teal-ink); }
.contact__map { grid-column: 1 / -1; display: grid; gap: 0.75rem; justify-items: start; }
.contact__map iframe { width: 100%; height: clamp(16rem, 30vw, 22rem); border: 0; border-radius: var(--radius-lg); background: var(--tint-2); }
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .app-links { margin-left: 0; }
}

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; vertical-align: top; padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 700; width: 7.5rem; white-space: nowrap; }
.hours .slot { display: block; }
.hours .slot + .slot { margin-top: 0.35rem; }
.slot__time { font-weight: 650; }
.slot__who { display: block; color: var(--ink-2); font-size: var(--step--1); line-height: 1.35; }
.slot--closed, .is-closed th { color: var(--ink-2); font-weight: 400; }
.hours tr.is-today { background: var(--tint); }
.hours tr.is-today th { color: var(--teal-ink); }
.hours tr.is-today th::after { content: "dnes"; display: inline-block; margin-left: 0.5em; padding: 0.05em 0.5em; border-radius: 999px; background: var(--teal-ink); color: var(--white); font-size: 0.75em; font-weight: 700; vertical-align: 0.12em; }
.hours-note { margin-top: 1rem; color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 480px) {
  .hours th { width: auto; display: block; padding-bottom: 0; border: 0; }
  .hours td { display: block; padding-top: 0.25rem; border: 0; }
  .hours tr { display: block; border-bottom: 1px solid var(--line); padding-block: 0.4rem; }
}

/* Inner pages */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: var(--step-3); max-width: 24ch; }
.page-head__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.page-head__lead p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.4em; margin-bottom: 1rem; font-weight: 600; text-decoration: none; }
.back-link .icon { transform: rotate(180deg); width: 1em; height: 1em; }
.back-link:hover { text-decoration: underline; }
.article__meta { color: var(--ink-2); margin: 0; }
.page__image { width: 100%; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.page { padding-bottom: var(--section); }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { margin-top: 1.75em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--teal-ink); }
.prose table:not(.hours) { border-collapse: collapse; width: 100%; margin: 1.5em 0; font-size: var(--step--1); }
.prose table:not(.hours) th, .prose table:not(.hours) td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.about__text.prose { max-width: none; }
.prose .section__title { font-size: var(--step-3); margin-top: 0; }

.member__grid { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.member__photo img { width: 100%; border-radius: var(--radius-lg); background: var(--tint); }
.member h1 { font-size: var(--step-3); margin-bottom: 0.15em; }
.member__role { font-size: var(--step-1); color: var(--ink-2); }
.member__hours { margin: 2rem 0 2.5rem; max-width: 34rem; }
.member__hours h2 { font-size: var(--step-1); }
@media (max-width: 640px) {
  .member__grid { grid-template-columns: 1fr; }
  .member__photo img { max-width: 14rem; }
}

/* CTA */
.cta { background: var(--tint); padding-block: clamp(2rem, 4vw, 3rem); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.cta__text { margin: 0; max-width: 46ch; }
.cta__text strong { display: block; font-size: var(--step-1); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 3.5rem); font-size: var(--step--1); color: var(--ink-2); }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 2rem; }
.site-footer__brand img { width: 150px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer__contacts li { margin-bottom: 0.4rem; }
.site-footer__contacts span { display: inline-block; min-width: 7.5rem; }
.site-footer__contacts a { font-weight: 650; font-variant-numeric: tabular-nums; }
.site-footer__nav { display: grid; gap: 0.4rem; }
.site-footer__nav a { color: var(--ink); }
.site-footer__legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-block: 1.25rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}
