/* ============================================================
   DESIGN SYSTEM — Kožní Dermalab
   ============================================================ */

:root {
  --sage:        #8aaa8e;
  --sage-light:  #c5d9c7;
  --sage-pale:   #edf4ee;
  --sage-dark:   #4d7055;
  --cream:       #faf7f2;
  --warm-white:  #f5f1ea;
  --charcoal:    #2c2c2c;
  --muted:       #6b7070;
  --gold:        #b8956a;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-card:   16px;
  --radius-pill:   40px;

  --max-width: 1140px;
  --section-py: 5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

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

.section { padding: var(--section-py) 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--sage-light);
  transition: box-shadow 0.2s;
}

.nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  flex-shrink: 0;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--charcoal);
  border-radius: var(--radius-pill);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--sage-pale); color: var(--sage-dark); }
.nav-links a.active { color: var(--sage-dark); font-weight: 500; }

.nav-cta {
  background: var(--sage-dark) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-pill) !important;
}

.nav-cta:hover { background: var(--sage) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: white;
  border-top: 1px solid var(--sage-light);
  padding: 1rem 1.5rem 1.5rem;
  gap: 0.25rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border-radius: var(--radius-card);
  transition: background 0.15s;
}

.nav-mobile a:hover { background: var(--sage-pale); }

.nav-mobile .nav-cta {
  background: var(--sage-dark) !important;
  color: white !important;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.75rem !important;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.hero h1 em {
  font-style: italic;
  color: var(--sage-dark);
}

.hero-perex {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 42ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  line-height: 1;
}

.btn-primary {
  background: var(--sage-dark);
  color: white;
}

.btn-primary:hover {
  background: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(77,112,85,0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  border: 1.5px solid var(--sage-light);
}

.btn-secondary:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
  transform: translateY(-2px);
}

/* Hero right — image placeholder */
.hero-right {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--sage-pale);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge-doctor {
  bottom: 1.5rem;
  left: -1rem;
}

.hero-badge-insurance {
  top: 1.5rem;
  right: -1rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

/* ============================================================
   RIBBON
   ============================================================ */

.ribbon {
  background: var(--sage-dark);
  color: white;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 3rem;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.services { background: white; }

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

.service-card {
  background: white;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  transition: transform 0.22s, box-shadow 0.22s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(138,170,142,0.2);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1.1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.65rem;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   AKTUALITY PREVIEW (homepage)
   ============================================================ */

.aktuality-preview { background: var(--cream); }

.aktuality-preview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.preview-card {
  display: block;
  background: white;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(138,170,142,0.2);
}

.preview-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.preview-card h3 {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.preview-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-more {
  text-align: right;
  font-size: 0.9rem;
  color: var(--sage-dark);
  font-weight: 500;
}

.preview-more:hover { text-decoration: underline; }

/* ============================================================
   HOURS + CONTACT (homepage)
   ============================================================ */

.hours-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.hours-panel {
  background: var(--sage-dark);
  color: white;
  padding: 3.5rem;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.hours-panel h2 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: white;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.hours-table tr { border-bottom: 1px solid rgba(255,255,255,0.1); }
.hours-table tr:last-child { border-bottom: none; }

.hours-table td {
  padding: 0.6rem 0;
  font-size: 0.9rem;
}

.hours-table td:first-child {
  font-weight: 500;
  padding-right: 1.5rem;
  width: 7rem;
}

.hours-table .note-row td { font-size: 0.8rem; color: rgba(255,255,255,0.65); padding-top: 0; }

.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 400;
}

.hours-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-light);
}

.contact-panel {
  background: var(--sage-pale);
  padding: 3.5rem;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

.contact-panel h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 2rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--charcoal);
}

.contact-item-value a {
  color: var(--sage-dark);
  font-weight: 400;
}

.contact-item-value a:hover { text-decoration: underline; }

/* ============================================================
   INSURANCE STRIP
   ============================================================ */

.insurance {
  background: white;
  border-top: 1px solid var(--sage-light);
  border-bottom: 1px solid var(--sage-light);
  padding: 2rem 0;
}

.insurance-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.insurance-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.5rem;
}

.insurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--sage-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: white;
}

.footer-logo .logo-circle { background: var(--sage); }

.footer-info {
  font-size: 0.8rem;
  line-height: 1.8;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.15s;
}

.footer-links a:hover { color: white; }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */

.page-hero {
  background: var(--sage-pale);
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--sage-light);
}

.page-hero .section-label { margin-bottom: 0.5rem; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ============================================================
   AKTUALITY PAGE
   ============================================================ */

.aktuality-list { max-width: 760px; }

.post-date {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.post-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.85rem;
  color: var(--charcoal);
}

.post-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
}

.post-divider {
  border: none;
  border-top: 1px solid var(--sage-light);
  margin: 2.5rem 0;
}

/* Skeleton loader */
.skeleton { animation: pulse 1.5s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.skeleton-line {
  height: 1rem;
  background: var(--sage-light);
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.skeleton-line.short { width: 30%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.long { width: 90%; }
.skeleton-line.full { width: 100%; }

.empty-state, .error-state {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 2rem 0;
}

/* ============================================================
   O NÁS PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--sage-pale);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.about-content .subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* ============================================================
   CENÍK PAGE
   ============================================================ */

.price-table-wrap {
  max-width: 640px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.price-table tr {
  border-bottom: 1px solid var(--sage-light);
  transition: background 0.15s;
}

.price-table tr:last-child { border-bottom: none; }
.price-table tr:hover { background: var(--sage-pale); }

.price-table td {
  padding: 1rem 0.75rem;
  font-size: 0.95rem;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--sage-dark);
  white-space: nowrap;
}

.price-note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--sage-light);
  padding-left: 1rem;
  line-height: 1.7;
}

/* ============================================================
   ORDINAČNÍ HODINY PAGE
   ============================================================ */

.hours-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hours-page-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-page-table tr { border-bottom: 1px solid var(--sage-light); }
.hours-page-table tr:last-child { border-bottom: none; }

.hours-page-table td {
  padding: 0.9rem 0.75rem;
  font-size: 0.95rem;
}

.hours-page-table td:first-child {
  font-weight: 500;
  color: var(--charcoal);
  width: 8rem;
}

.hours-page-table td:last-child { color: var(--muted); }

.hours-notice {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-card);
  padding: 2rem 2rem;
}

.hours-notice h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

.hours-notice p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   KONTAKT PAGE
   ============================================================ */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: white;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.22s, box-shadow 0.22s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(138,170,142,0.2);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-card-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--charcoal);
}

.contact-card-value a {
  color: var(--sage-dark);
}

.contact-card-value a:hover { text-decoration: underline; }

.erecept-box {
  background: var(--sage-pale);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius-card);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.erecept-box h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sage-dark);
  margin-bottom: 0.6rem;
}

.erecept-box p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.map-wrap {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--sage-light);
}

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

.ico-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
  .hours-contact { grid-template-columns: 1fr; }
  .hours-panel { border-radius: var(--radius-card) var(--radius-card) 0 0; }
  .contact-panel { border-radius: 0 0 var(--radius-card) var(--radius-card); }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 0 2.5rem;
    gap: 2rem;
  }
  .hero-right { display: none; }

  /* Aktuality preview */
  .aktuality-preview-grid {
    grid-template-columns: 1fr;
  }

  /* Hours/contact */
  .hours-panel, .contact-panel { padding: 2.5rem 1.5rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16/9; }

  /* Ceník */
  .price-table-wrap { overflow-x: auto; }

  /* Hours page */
  .hours-page-grid { grid-template-columns: 1fr; }

  /* Contact cards */
  .contact-cards { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-info { order: 3; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .insurance-inner { justify-content: flex-start; }
}
