/* ==========================================================================
   Allomedis.cz — Design system
   Source: ux_strategie_allomedis.md / wireframe_draft.md
   ========================================================================== */

/*
  Font: Open Sans should be self-hosted (GDPR — no third-party font CDNs).
  Font files are not yet present in wwwroot/fonts. Once added, uncomment the
  @font-face rules below and point them at the .woff2 files, e.g.:

  @font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Open Sans";
    src: url("/fonts/OpenSans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  Until then, fall back to the system sans-serif stack below.
*/

:root {
  --color-navy: #1A365D;
  --color-blue: #2B6CB0;
  --color-bg: #F7FAFC;
  --color-amber: #DD6B20;
  --color-white: #FFFFFF;
  --color-border: #CBD5E0;
  --color-status-open: #276749;
  --color-status-closed: #C53030;
  --color-alert-bg: #B7541A;

  --font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1100px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-navy);
  background-color: var(--color-bg);
}

h1, h2, h3 {
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-blue);
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.15s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

.section-inner,
.header-inner,
.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: var(--color-white);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  text-decoration: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}

.main-nav a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.lang-switch a {
  color: var(--color-navy);
  text-decoration: none;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
}

.lang-switch a:hover {
  background-color: var(--color-bg);
}

.lang-switch a.lang-current {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.phone-link {
  background-color: var(--color-blue);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.phone-link:hover,
.phone-link:active {
  background-color: var(--color-navy);
}

/* Sticky header on desktop only — kept out of the way on small screens */
@media (min-width: 1025px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
  }
}

/* ==========================================================================
   Alert bar
   ========================================================================== */

.alert-bar {
  background-color: var(--color-alert-bg);
  color: var(--color-white);
}

.alert-bar p {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  font-weight: 700;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
  text-align: center;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-photo {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.18);
}

.hero-subtitle {
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}

.hero-microcopy {
  font-size: 0.9rem;
  color: var(--color-blue);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.section-lead {
  max-width: 42rem;
  font-size: 1.05rem;
  color: #4A5568;
}

.status-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-open .status-dot {
  background-color: var(--color-status-open);
}

.status-open {
  color: var(--color-status-open);
}

.status-closed .status-dot {
  background-color: var(--color-status-closed);
}

.status-closed {
  color: var(--color-status-closed);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-amber);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  min-height: 48px;
}

.btn-cta:hover,
.btn-cta:active {
  background-color: #B7541A;
}

.btn-cta-secondary {
  background-color: var(--color-blue);
  margin-top: 1.5rem;
}

.btn-cta-secondary:hover,
.btn-cta-secondary:active {
  background-color: var(--color-navy);
}

/* ==========================================================================
   How-it-works steps
   ========================================================================== */

.steps-section .section-inner {
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background-color: var(--color-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

.step-icon {
  font-size: 2rem;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.12);
}

.steps-extra {
  max-width: 42rem;
  margin: 2rem auto 0;
  font-size: 1.05rem;
  color: #4A5568;
}

/* ==========================================================================
   Office hours cards — "kartotéka" index-card motif (adapted from v3, in
   the v2 navy/blue palette). Each day is a self-labeling <dl> card, so no
   separate mobile relabeling is needed.
   ========================================================================== */

.hours-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem 1.25rem;
}

.hour-card {
  position: relative;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px 4px 10px 10px;
  padding: 1.75rem 1.25rem 1.25rem;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.hour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.12);
}

.hour-card-tab {
  position: absolute;
  top: -14px;
  left: 1.25rem;
  background-color: var(--color-blue);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.hour-card h3 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.hour-card-doctors {
  font-size: 0.8rem;
  color: var(--color-blue);
  margin: 0.1rem 0 0;
}

.hour-data {
  margin: 0.75rem 0 0;
}

.hour-data dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-blue);
  margin-top: 0.6rem;
}

.hour-data dt:first-child {
  margin-top: 0;
}

.hour-data dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
  color: var(--color-navy);
}

/* Odběry times are supplementary information — de-emphasized vs. the primary hours.
   Only the time value is muted; the "Odběry" label keeps normal styling. */
.hour-data dd.hour-data-dim {
  color: #718096;
  font-weight: 400;
}

.hours-note {
  margin-top: 1.5rem;
  font-style: italic;
}

/* ==========================================================================
   Services grid
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.12);
}

.section-alt .service-card,
.section:not(.section-alt) .service-card {
  background-color: var(--color-white);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  background-color: #DCE9F5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.fill-icon path {
  fill: var(--color-blue);
  stroke: none;
}

.service-card h3 {
  color: var(--color-blue);
}

.service-card p {
  margin-bottom: 0;
}

/* ==========================================================================
   Team grid
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
}

.team-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card:nth-child(2) .team-avatar {
  background-color: var(--color-blue);
}

.team-card:nth-child(3) .team-avatar {
  background-color: var(--color-alert-bg);
}

.team-role {
  color: var(--color-blue);
  font-weight: 700;
  margin-top: -0.5em;
}

.team-note {
  text-align: center;
  font-style: italic;
  color: #718096;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Insurance list
   ========================================================================== */

.insurance-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem 1.5rem;
}

.insurance-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.insurance-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-navy);
  text-decoration: none;
}

.insurance-link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.insurance-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
}

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

.contact-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.06);
}

.contact-icon {
  display: inline-block;
  width: 1.5em;
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 42rem;
}

.faq-item {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.25rem 1.25rem;
}

.faq-item summary {
  font-weight: 700;
  padding: 0.9rem 0;
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.faq-item p {
  padding-bottom: 1rem;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.site-footer a {
  color: var(--color-white);
}

.footer-inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.footer-inner p {
  margin: 0 0 0.5em;
}

/* ==========================================================================
   Responsive breakpoints
   Mobile: <=480px, Tablet: 481-1024px, Desktop: >=1025px
   ========================================================================== */

/* Mobile: stack office hours table into labeled rows */
@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .brand-logo {
    height: 28px;
  }

  .main-nav ul {
    justify-content: center;
    gap: 1rem;
  }

  /* Avoid showing the phone number twice in quick succession above the fold —
     the hero CTA button just below already carries the same tel: link. */
  .header-actions .phone-link {
    display: none;
  }

  .hours-cards {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-photo {
    max-width: 420px;
    margin: 0 auto;
  }

  .contact-grid-map {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
  }

  .hero-subtitle {
    margin-left: 0;
  }

  .hero-microcopy {
    text-align: left;
  }

  .contact-grid-map {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

/* ==========================================================================
   Ceník (price list)
   ========================================================================== */

.cenik-category {
  margin-bottom: 2.5rem;
}

.cenik-category:last-child {
  margin-bottom: 0;
}

.cenik-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
}

.cenik-table th,
.cenik-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.cenik-table th {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.cenik-table td:last-child,
.cenik-table th:last-child {
  text-align: right;
  white-space: nowrap;
}

.cenik-table td:last-child {
  font-weight: 700;
}

.cenik-table tbody tr:last-child td {
  border-bottom: none;
}

.cenik-empty {
  font-style: italic;
}

/* ==========================================================================
   Plain content lists — "Příprava na odběr" bullets, "Jak zvládnout
   návštěvu" numbered tips. Both are static text, no card/grid treatment.
   ========================================================================== */

.prep-list,
.tips-list {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  padding-left: 1.4rem;
}

.prep-list li,
.tips-list li {
  margin-bottom: 0.75rem;
}

.prep-list li::marker,
.tips-list li::marker {
  color: var(--color-blue);
  font-weight: 700;
}
