/* ============================================================
   Pediatria Nová Dubnica — style.css
   ============================================================ */

/* === FONTS === */
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

/* === BASE === */
body {
  font-family: 'Barlow', Arial, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  background: #fff;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #2DAAE1;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
address {
  font-style: normal;
}
ul {
  list-style: none;
}

/* === VARIABLES === */
:root {
  --blue:      #2DAAE1;
  --blue-dark: #1e8ab8;
  --orange:    #FBB040;
  --text:      #333;
  --text-muted:#666;
  --bg-alt:    #f5f7fa;
  --border:    #e0e6ee;
  --footer-bg: #1a2235;
  --max-w:     1100px;
  --radius:    6px;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 1rem;
}
.logo img {
  height: 54px;
  width: auto;
}

/* === NAVIGATION === */
nav ul {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}
nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  color: var(--blue);
  background: rgba(45,170,225,0.09);
  text-decoration: none;
}
nav a.active {
  color: var(--blue);
}

/* === HAMBURGER === */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (index.html)
   ============================================================ */
.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: #c5e8f7;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
}
.hero-content {
  padding: 0 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-text-box {
  display: inline-block;
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(2px);
  padding: 1.1rem 1.75rem;
  border-radius: 6px;
  border-left: 4px solid var(--blue);
}
.hero-sub {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.hero-title {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  padding: 4rem 0;
}
section.bg-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}
.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 1.5rem;
}

/* ============================================================
   INTRO SECTION (index.html)
   ============================================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.intro-list {
  margin: 1.5rem 0 1rem;
}
.intro-list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.intro-list li:last-child {
  border-bottom: none;
}
.intro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}
.social-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.social-row a:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}
.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.75rem 2.2rem;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.intro-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.intro-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ============================================================
   CONTACT SECTION (index.html)
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-info address {
  line-height: 1.9;
  color: var(--text-muted);
}
.contact-info address strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}
.contact-detail {
  margin-top: 0.85rem;
  color: var(--text-muted);
}
.contact-detail a {
  color: var(--blue);
}
.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.map-box iframe {
  width: 100%;
  height: 370px;
  display: block;
  border: none;
}

/* ============================================================
   CENNÍK
   ============================================================ */
.cennik-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}
.cennik-table {
  width: 100%;
  border-collapse: collapse;
}
.cennik-table thead th {
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cennik-table thead th:last-child {
  text-align: right;
  width: 110px;
}
.cennik-table tbody td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.cennik-table tbody td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.cennik-table tbody tr:nth-child(even) td {
  background: var(--bg-alt);
}
.cennik-table tbody tr:hover td {
  background: rgba(45,170,225,0.05);
}

/* ============================================================
   ORDINAČNÉ HODINY
   ============================================================ */
.hours-wrap {
  overflow-x: auto;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.hours-table thead th {
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
}
.hours-table thead th:first-child {
  text-align: left;
  width: 130px;
}
.hours-table tbody th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hours-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.hours-table .col-break {
  color: #aaa;
  font-style: italic;
  font-size: 0.85rem;
}
.hours-table tbody tr:hover th,
.hours-table tbody tr:hover td {
  background: rgba(45,170,225,0.04);
}
.hours-note {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   GALÉRIA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s;
}
.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-btn:hover {
  background: rgba(255,255,255,0.25);
}
.lb-close {
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
}
.lb-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 60px;
  font-size: 1.5rem;
}
.lb-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 60px;
  font-size: 1.5rem;
}
.lb-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* ============================================================
   PREVENCIA
   ============================================================ */
.prevencia-card {
  max-width: 600px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.prevencia-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.prevencia-card .btn {
  margin-top: 0;
}

/* ============================================================
   UŽITOČNÉ LINKY
   ============================================================ */
.links-list li {
  border-bottom: 1px solid var(--border);
}
.links-list li:first-child {
  border-top: 1px solid var(--border);
}
.links-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}
.links-list a:hover {
  color: var(--blue);
  padding-left: 0.75rem;
  text-decoration: none;
}
.link-icon {
  color: var(--blue);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.link-arrow {
  margin-left: auto;
  color: #bbb;
  flex-shrink: 0;
}

/* ============================================================
   TEXT PAGES (cookie, prava-pacienta)
   ============================================================ */
.text-content {
  max-width: 820px;
}
.text-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.text-content h2:first-of-type {
  margin-top: 0;
}
.text-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.text-content ul {
  list-style: disc;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
}
.text-content li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ============================================================
   PAGE HEADER BANNER
   ============================================================ */
.page-banner {
  background: var(--blue);
  padding: 2.5rem 0;
  color: #fff;
}
.page-banner h1 {
  font-size: 2rem;
  font-weight: 700;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,34,53,0.97);
  color: rgba(255,255,255,0.85);
  padding: 1.1rem 1.5rem;
  z-index: 500;
  font-size: 0.88rem;
  border-top: 2px solid var(--blue);
}
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  flex: 1;
  min-width: 200px;
}
.cookie-banner-inner a {
  color: var(--blue);
}
.cookie-accept {
  padding: 0.5rem 1.4rem;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-accept:hover {
  background: var(--blue-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.footer-grid address {
  line-height: 1.85;
  color: rgba(255,255,255,0.6);
}
.footer-grid ul li {
  margin-bottom: 0.5rem;
}
.footer-grid a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-grid a:hover {
  color: var(--blue);
}
.footer-contact-detail {
  margin-top: 0.5rem;
}
.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--blue);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 1.1rem 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  nav {
    position: static;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 100;
  }
  nav ul.open {
    display: flex;
  }
  nav a {
    padding: 0.8rem 1.25rem;
    border-radius: 0;
    font-size: 0.95rem;
    width: 100%;
  }
  .hero {
    height: 300px;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .hours-table {
    font-size: 0.82rem;
  }
  .hours-table th,
  .hours-table td {
    padding: 0.5rem 0.5rem;
  }
  section {
    padding: 2.5rem 0;
  }
  .page-banner {
    padding: 1.75rem 0;
  }
  .page-banner h1 {
    font-size: 1.5rem;
  }
  .cennik-table thead th,
  .cennik-table tbody td {
    padding: 0.6rem 0.7rem;
    font-size: 0.88rem;
  }
}
