/* ============================================
   CSS Variables - łatwo edytowalne kolory
   ============================================ */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #fff;
  --bg-light: #f8f9fa;
  --border-color: #ddd;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* ============================================
   Reset i bazowe style
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ============================================
   Header - nagłówek strony
   ============================================ */
.header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 0;
  position: relative;
}

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

.logo-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.logo-link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.logo-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.contact-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
}

.contact-item strong {
  font-weight: 600;
}

/* ============================================
   Nawigacja
   ============================================ */
.nav {
  padding: 0;
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.nav-list li a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--text-color);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem 0.8rem;
  color: #fff;
  transition: var(--transition);
  line-height: 1;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Container - główny kontener
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Hero section - sekcja powitalna
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-features li {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-features li::before {
  content: "✓";
  background: rgba(255,255,255,0.2);
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* ============================================
   CTA Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: #c0392b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
  background-color: #2980b9;
}

/* ============================================
   Services Grid - siatka usług
   ============================================ */
.services {
  padding: 4rem 0;
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Partners - partnerzy
   ============================================ */
.partners {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.partner-logo {
  max-width: 150px;
  height: auto;
  opacity: 0.7;
  transition: var(--transition);
  filter: grayscale(100%);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* ============================================
   Content page - strony z treścią
   ============================================ */
.content-page {
  padding: 3rem 0;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

.page-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.page-content ul {
  margin: 1rem 0 1rem 2rem;
  list-style: none;
}

.page-content ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.page-content ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-content strong {
  color: var(--primary-color);
}

/* ============================================
   Contact section
   ============================================ */
.contact-section {
  padding: 3rem 0;
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.contact-box {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.contact-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.contact-box p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.contact-box p strong {
  color: var(--primary-color);
}

.contact-box a {
  color: var(--secondary-color);
  font-weight: 600;
}

.contact-box .btn {
  color: #fff !important;
}

/* ============================================
   Map section
   ============================================ */
.map-section {
  padding: 3rem 0;
}

.map-container {
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

/* ============================================
   Responsive - style responsywne
   ============================================ */
@media (max-width: 1200px) {
  .partners-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .partner-logo {
    max-width: 130px;
  }
}

@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .header-top {
    padding: 1rem 0;
  }

  .header-top .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 1rem;
  }

  .logo-text {
    flex-shrink: 0;
  }

  .logo-main {
    font-size: 1.5rem;
  }

  .logo-sub {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  .contact-info {
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    font-size: 1.1rem;
    flex-wrap: nowrap;
  }

  .contact-item {
    font-size: 1.05rem;
    white-space: nowrap;
  }

  .contact-item strong {
    display: none; /* Ukryj "Andrzej Paluch" na mobile - oszczędność miejsca */
  }

  .nav-list {
    flex-direction: column;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-list.active {
    display: flex;
    max-height: 500px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    border-bottom: 1px solid var(--border-color);
    border-left: none;
    padding: 1rem 1.5rem;
    text-align: left;
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    padding: 0.6rem 1rem;
    width: 52px;
    min-width: 52px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
    gap: 0.8rem;
  }

  .hero-features li {
    text-align: left;
  }

  .hero .mt-3 {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

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

  .page-header h1 {
    font-size: 2rem;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .header-top {
    padding: 1rem 0;
  }

  .logo-main {
    font-size: 1.3rem;
  }

  .logo-sub {
    font-size: 0.75rem;
  }

  .contact-info {
    font-size: 1rem;
  }

  .contact-item {
    font-size: 0.95rem;
  }

  .contact-item:first-child {
    display: none; /* Ukryj "Andrzej Paluch" na bardzo małych ekranach */
  }

  .menu-toggle {
    padding: 0.5rem 0.8rem;
    font-size: 1.8rem;
    width: 48px;
    min-width: 48px;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .services {
    padding: 3rem 0;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ============================================
   Contact page specific styles
   ============================================ */
.contact-phone {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.contact-email {
  font-size: 1.2rem;
  font-weight: bold;
}

.hours-table {
  width: 100%;
  margin-top: 1rem;
}

.hours-table td {
  padding: 0.3rem 0;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  margin-bottom: 0.5rem;
}

/* ============================================
   Utility classes
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
