/* Dentystyka Krakow - Modern Dental Clinic Website */
/* Clean, professional medical/dental design */

:root {
  --primary: #0a4d68;
  --primary-light: #088395;
  --accent: #05bfdb;
  --accent-light: #00ffca;
  --text: #1a1a2e;
  --text-light: #4a4a5a;
  --bg: #ffffff;
  --bg-alt: #f8fafb;
  --bg-dark: #0a4d68;
  --white: #ffffff;
  --border: #e0e6eb;
  --success: #10b981;
  --nfz: #c4161c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  color: var(--primary-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--bg-dark);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header-top a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-top a:hover {
  color: var(--accent);
}

.nfz-badge {
  background: var(--white);
  color: var(--nfz);
  padding: 4px 12px;
  font-weight: 600;
  font-size: 12px;
  border-radius: 3px;
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-text span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
}

nav a {
  color: var(--text);
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.3s;
  font-weight: 500;
  font-size: 15px;
}

nav a:hover,
nav a.active {
  background: var(--bg-alt);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="80" r="30" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-badge {
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

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

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* Sections */
section {
  padding: 80px 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 25px 30px;
}

.service-header h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.service-header p {
  opacity: 0.9;
  font-size: 0.9rem;
}

.service-body {
  padding: 25px 30px;
}

.service-body ul {
  list-style: none;
}

.service-body li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-body li:last-child {
  border-bottom: none;
}

.service-body li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-photo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  margin: 30px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  padding: 0 20px;
}

.team-card .specialty {
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-card .description {
  color: var(--text-light);
  font-size: 0.9rem;
  padding: 0 20px 25px;
}

/* Contact Info */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-card {
  background: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 3px;
  font-weight: 500;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
  color: var(--text);
}

/* Hours Table */
.hours-table {
  width: 100%;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-row .day {
  font-weight: 500;
}

.hours-row .time {
  color: var(--primary);
  font-weight: 600;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta p {
  opacity: 0.95;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-phone {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  transition: all 0.3s;
}

.cta-phone:hover {
  transform: scale(1.05);
  color: var(--primary);
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--accent);
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.back-link {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--white);
}

.back-link::before {
  content: "← ";
}

/* Content Page */
.content-page {
  padding: 60px 0;
}

/* Price Table */
.price-table {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.price-table-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 20px 25px;
}

.price-table-header h3 {
  font-size: 1.2rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: var(--bg-alt);
}

.price-row .service-name {
  flex: 1;
}

.price-row .price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.price-row .nfz-tag {
  background: var(--nfz);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 15px;
}

/* NFZ Info Box */
.nfz-info {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  border-left: 4px solid var(--nfz);
  padding: 20px 25px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
}

.nfz-info h4 {
  color: var(--nfz);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nfz-info p {
  color: var(--text);
  font-size: 0.95rem;
}

/* Map container */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-top .container {
    justify-content: center;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  nav ul {
    flex-direction: column;
    padding: 15px;
    display: none;
  }

  nav.active ul {
    display: flex;
  }

  nav a {
    padding: 12px 15px;
    text-align: center;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-badges {
    justify-content: center;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .cta h2 {
    font-size: 1.6rem;
  }

  .cta-phone {
    font-size: 1.3rem;
    padding: 14px 30px;
  }

  .back-link {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Logo Image */
.logo-img {
  height: 50px;
  width: auto;
}

/* Team Photo Image */
.team-photo-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px 8px 0 0;
}

.team-card {
  padding: 0;
  overflow: hidden;
}

.team-card h3,
.team-card .specialty,
.team-card .description {
  padding: 0 20px;
}

.team-card h3 {
  padding-top: 20px;
}

.team-card .description {
  padding-bottom: 25px;
}

/* Gallery Image */
.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card h4,
.gallery-card p {
  padding: 0 15px;
}

.gallery-card h4 {
  padding-top: 15px;
}

.gallery-card p {
  padding-bottom: 15px;
}

/* Navigation Button */
.btn-nav {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--accent-light) !important;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.gallery-image {
  font-size: 4rem;
  padding: 30px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--white) 100%);
}

.gallery-card h4 {
  padding: 15px 20px 5px;
  color: var(--text);
  font-size: 1.1rem;
}

.gallery-card p {
  padding: 0 20px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Booking Grid */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.booking-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.booking-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.booking-card.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.booking-card.primary h3,
.booking-card.primary p {
  color: var(--white);
}

.booking-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.booking-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text);
}

.booking-card > p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.booking-phone {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255,255,255,0.2);
  padding: 15px 30px;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: background 0.3s ease;
}

.booking-phone:hover {
  background: rgba(255,255,255,0.3);
  color: var(--white);
}

.booking-hours {
  font-size: 0.9rem;
  opacity: 0.9;
}

.booking-address {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Checklist Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.checklist-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.checklist-card h4 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--bg-alt);
}

.checklist-card ul {
  list-style: none;
  padding: 0;
}

.checklist-card li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-light);
  border-bottom: 1px solid var(--bg-alt);
}

.checklist-card li:last-child {
  border-bottom: none;
}

.checklist-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Small Button */
.btn-small {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.85rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 6px;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background: var(--primary-light);
  color: var(--white);
}

/* Responsive for new elements */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .booking-phone {
    font-size: 1.5rem;
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
