/* ══════════════════════════════════════════════
   Dental Park Žilina – style.css
   Colors:
     teal  : #1a9bbb
     green : #7ec143
     dark  : #3d3d3d
     light : #f5f5f5
   ══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #3d3d3d;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

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

/* ─── Variables ─── */
:root {
  --teal:  #1a9bbb;
  --green: #7ec143;
  --dark:  #3d3d3d;
  --grey:  #f5f5f5;
  --mid:   #888;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --transition: .25s ease;
}

/* ─── Container ─── */
.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ─── Section headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header.left { text-align: left; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.section-header h2 span { color: var(--green); }
.section-sub {
  color: var(--mid);
  font-size: .95rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.btn:hover { opacity: .88; transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-outline  { background: transparent; color: #fff; border-color: #fff; }
.btn-full     { width: 100%; text-align: center; }
.btn-nav {
  background: var(--green);
  color: #fff !important;
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  transition: opacity var(--transition);
}
.btn-nav:hover { opacity: .85; }

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: box-shadow var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .9rem;
}
.logo-svg { height: 54px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  transition: color var(--transition);
}
.nav-links a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:not(.btn-nav):hover { color: var(--teal); }
.nav-links a:not(.btn-nav):hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* navbar height */
  overflow: hidden;
}

/* Slideshow layers */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(10,60,80,.55) 0%, rgba(10,60,80,.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding-block: 5rem;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-content h1 span { color: var(--green); }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   STATS
   ══════════════════════════════════════════════ */
.stats {
  background: var(--grey);
  padding-block: 3.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
}
.stat-icon { font-size: 2rem; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--dark);
}
.stat-label {
  font-size: .85rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════ */
.services {
  padding-block: 5rem;
  background: #fff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.service-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.service-icon {
  width: 60px; height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.2rem;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .8rem;
}
.service-card p {
  font-size: .88rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   PRICE LIST
   ══════════════════════════════════════════════ */
.cennik {
  background: var(--grey);
  padding-block: 5rem;
}
.cennik-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.cennik-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.cennik-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--grey);
}
.price-list { list-style: none; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: .55rem;
  border-bottom: 1px dashed #ddd;
  font-size: .9rem;
  color: var(--dark);
  gap: 1rem;
}
.price-list li:last-child { border-bottom: none; }
.price-list li span:last-child {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.cennik-note {
  font-size: .8rem;
  color: var(--mid);
  text-align: center;
}

/* ══════════════════════════════════════════════
   OPENING HOURS
   ══════════════════════════════════════════════ */
.hodiny {
  background: #fff;
  padding-block: 5rem;
}
.hodiny-inner {
  max-width: 680px;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.hours-table td {
  padding: .9rem .5rem;
  border-bottom: 1px solid #ececec;
  font-size: .95rem;
  color: var(--dark);
}
.hours-table td:first-child { font-weight: 600; width: 45%; }
.hours-table td:last-child  { text-align: right; color: var(--mid); }
.hours-table tr.closed td   { color: #bbb; }
.hours-table tr.closed td:first-child { font-weight: 400; }
.hours-table tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════ */
.kontakt {
  background: #3a3a3a;
  padding-block: 5rem;
  color: #ddd;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.kontakt-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  font-weight: 400;
  margin-bottom: 1rem;
}
.divider {
  width: 50px;
  border: none;
  border-top: 3px solid var(--green);
  margin-bottom: 1.4rem;
}
.kontakt-info p { font-size: .95rem; margin-bottom: 1.8rem; line-height: 1.8; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .8rem; font-size: .95rem; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }
.contact-list a { color: var(--green); transition: opacity var(--transition); }
.contact-list a:hover { opacity: .8; }

/* Contact form */
.kontakt-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: .4rem;
}
.form-sub { font-size: .85rem; color: #aaa; margin-bottom: 1.8rem; }

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aaa;
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #666;
  padding: .6rem 0;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #666; }
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--green); }
.form-group input.invalid,
.form-group textarea.invalid { border-bottom-color: #e74c3c; }

.form-error {
  font-size: .78rem;
  color: #e74c3c;
  min-height: 1em;
  margin-top: .25rem;
}
.form-success {
  display: none;
  text-align: center;
  color: var(--green);
  margin-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
}

/* ══════════════════════════════════════════════
   MAP
   ══════════════════════════════════════════════ */
.map-wrap { line-height: 0; }
.map-wrap iframe { display: block; }

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.footer {
  background: #2a2a2a;
  padding-block: 1.5rem;
  text-align: center;
  color: #888;
  font-size: .82rem;
}
.footer-inner { display: flex; flex-direction: column; gap: .4rem; }
.footer a { color: var(--green); transition: opacity var(--transition); }
.footer a:hover { opacity: .8; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cennik-grid   { grid-template-columns: 1fr; }
  .kontakt-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle     { display: flex; }

  .services-grid  { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: 1fr; gap: 2rem; }
  .hero-ctas      { flex-direction: column; align-items: center; }
}
