/*
  Dermatologie Hartová s.r.o. — Jihlava
  Barvy zachovány z původní šablony (additional.css):
  #e20074 primární (růžová/magenta), #76ae0a sekundární (zelená),
  #9A004E / #F9B3D7 upozornění
*/

:root {
  --color-primary: #e20074;
  --color-primary-dark: #9a004e;
  --color-secondary: #76ae0a;
  --color-danger-bg: #f9b3d7;
  --color-danger-text: #9a004e;

  --color-text: #2b2b2b;
  --color-text-muted: #6a6a6a;
  --color-bg: #f7f6f4;
  --color-card-bg: #ffffff;
  --color-border: #e7e3e0;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  background: var(--color-secondary);
  box-shadow: var(--shadow);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 72px;
}

.site-header img {
  height: 28px;
  width: auto;
  display: block;
}

/* Hero / heading */

.hero {
  padding: 40px 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw + 1rem, 2.4rem);
  font-weight: 700;
  color: #000;
  text-align: center;
}

main {
  padding-bottom: 56px;
}

section {
  margin-top: 28px;
}

/* Aktuality */

.notice {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}

.notice p {
  margin: 0 0 8px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice a {
  color: var(--color-danger-text);
  font-weight: 700;
  text-decoration: underline;
}

/* Card grid layouts */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 40px;
  column-gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 40px;
  column-gap: 20px;
}

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

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card-heading {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-heading svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.card-heading h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: 4px;
}

.card-body {
  padding: 20px 22px;
  flex: 1;
}

.card-body p {
  margin: 0 0 10px;
}

.card-body p:last-child {
  margin-bottom: 0;
}

/* Ordinační hodiny */

.hours-alert {
  text-align: center;
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

table#ordhod {
  width: 100%;
  border-collapse: collapse;
}

table#ordhod th,
table#ordhod td {
  padding: 8px 6px;
  text-align: right;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

table#ordhod tr:last-child th,
table#ordhod tr:last-child td {
  border-bottom: none;
}

table#ordhod th {
  text-align: left;
  color: var(--color-text-muted);
  font-weight: 600;
  width: 15%;
}

/* Kontakt */

.contact-address {
  margin-bottom: 6px;
}

.contact-note {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.phone {
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary);
  white-space: nowrap;
  margin: 10px 0;
}

.phone .prefix {
  font-size: 0.55em;
  font-weight: 500;
  margin-right: 4px;
}

a.phone:hover,
a.phone:focus-visible {
  text-decoration: none;
  color: var(--color-primary-dark);
}

.contact-sms {
  text-align: right;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Mapa */

.map-frame {
  position: relative;
  width: 100%;
  padding-bottom: 34%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 699px) {
  .map-frame {
    padding-bottom: 75%;
  }
}

/* Footer */

footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}
