/* PSE Piotr Szmer - Elektryk Wrocław */
/* Modern electrician services website */

:root {
  --primary: #0056b3;
  --primary-dark: #003d82;
  --secondary: #17a2b8;
  --accent: #ffc107;
  --text: #333333;
  --text-light: #666666;
  --bg: #f8f9fa;
  --white: #ffffff;
  --border: #dee2e6;
  --success: #28a745;
}

* {
  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);
}

.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.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.header-top a {
  color: var(--white);
  text-decoration: none;
}

.header-top a:hover {
  text-decoration: underline;
}

.phone-highlight {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 4px 15px;
  border-radius: 20px;
  font-weight: 600;
}

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

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

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

.logo-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

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

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

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

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

nav a:hover {
  background: var(--bg);
  color: var(--primary);
}

nav a.active {
  background: var(--primary);
  color: var(--white);
}

.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-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
}

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

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

.page-header p {
  opacity: 0.9;
}

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

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

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

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

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

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--primary);
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

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

.service-card ul {
  margin: 15px 0 0 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.service-card li {
  margin-bottom: 5px;
}

.service-card a {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

/* Features List */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--success);
}

.feature-item span {
  font-weight: 500;
}

/* Contact Info Box */
.contact-box {
  background: var(--primary);
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.contact-box h3 {
  margin-bottom: 20px;
}

.contact-box .phone {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-box .phone a {
  color: var(--accent);
  text-decoration: none;
}

.contact-box p {
  opacity: 0.9;
  margin-bottom: 5px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
}

.gallery-item .caption {
  padding: 15px;
  text-align: center;
  font-weight: 500;
  color: var(--text);
}

/* References List */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}

.reference-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s;
}

.reference-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reference-icon {
  font-size: 2.5rem;
  color: var(--primary);
}

.reference-info h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.reference-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item-icon {
  font-size: 1.5rem;
  color: var(--primary);
  min-width: 40px;
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  color: var(--text);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
}

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

.content-page h2 {
  color: var(--primary);
  margin: 30px 0 15px;
  font-size: 1.5rem;
}

.content-page h3 {
  color: var(--primary);
  margin: 25px 0 10px;
  font-size: 1.2rem;
}

.content-page p {
  margin-bottom: 15px;
}

.content-page ul {
  margin: 15px 0 15px 25px;
}

.content-page li {
  margin-bottom: 8px;
}

/* CTA Section */
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

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

.cta p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.cta-phone {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s;
}

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

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 50px 0 20px;
}

.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;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  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: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--primary-dark);
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .header-main .container {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    display: none;
    width: 100%;
  }

  nav.active ul {
    display: flex;
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

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

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

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