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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

header .logo {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
}

.logo-main {
  color: #000;
  font-size: 0.9em;
}

.logo-number {
  color: #e4002b;
  font-size: 1.2em;
  margin-left: 0.1em;
}

.logo-zero {
  width: 0.65em;
  height: 0.65em;
  vertical-align: -0.05em;
  margin: 0 0.025em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #e4002b;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  background: url('hero.png') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideDown 0.8s ease-out 0.2s forwards;
}

@keyframes slideDown {
  0% {
    transform: translateY(-40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideDown 0.8s ease-out 0.2s forwards;
}

.btn-primary {
  background: #e4002b;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #c30025;
}

.hero .btn-primary {
  display: inline-block; /* ensure transform applies correctly */
  opacity: 0;
  animation: slideDown 0.8s ease-out 0.2s forwards;
}

/* Sections */
section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #e4002b;
}

/* Services */
/* Grid list (used on homepage) */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: #fafafa;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-item h3 {
  margin-bottom: 1rem;
  color: #333;
}

/* Two-column rows (used on usluge.html) */
.services-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-title {
  flex: 0 0 250px;
  font-weight: 600;
  color: #e4002b;
  font-size: 1.2rem;
}

.service-content {
  flex: 1 1 300px;
}

@media (max-width: 768px) {
  .service-title {
    flex: 1 1 100%;
  }
}

/* Contact */
.contact p {
  margin-bottom: 0.5rem;
}

/* Kontakt section layout */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* reduced gap */
  align-items: flex-start;
}

.contact-info {
  flex: 2 1 400px; /* larger width */
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: left; /* align left */
  position: relative;
  color: #333;
  font-size: 1.3rem; /* even larger text */
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  fill: #e4002b;
  flex-shrink: 0;
}

.contact-info a {
  color: #e4002b;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-map {
  flex: 2 1 400px; /* give map more space */
}

.contact-map iframe {
  width: 100%;
  height: 400px; /* taller map */
  border: 0;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-map iframe {
    height: 300px; /* maintain reasonable size on mobile */
  }
}

/* Usluge page specific styles */
#usluge-kontakt-heading {
  text-align: left;
  color: #e4002b;
  margin-bottom: 1rem;
}

/* Services detail section reverted */
/* .services-detail {
} */

footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
}

/* Scroll CTA */
.scroll-cta {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #e4002b;
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transform: translateX(-100%);
  transition: transform 0.4s ease-out;
  z-index: 1000;
  display: none; /* hidden on desktop */
}

.scroll-cta.visible {
  transform: translateX(0);
}

@media (max-width: 480px) {
  .scroll-cta {
    font-size: 1rem;
    padding: 0.75rem;
  }
} 

/* ---------------------- Mobile styles at bottom for highest precedence ---------------------- */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  nav.open ul {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  /* Services grid single column */
  .service-list {
    grid-template-columns: 1fr;
  }
  /* Contact wrapper/gap */
  .contact-wrapper {
    gap: 1rem;
  }
  .contact-info {
    flex: none;
    width: 100%;
    display: block;
    padding-bottom: 1rem;
  }
  .contact-map {
    width: 100%;
    flex: 1 1 100%;
  }
  .contact-map iframe {
    width: 100%;
    height: 80vw;
    border-radius: 0;
  }
  .contact {
    padding: 4rem 0;
  }
  /* Show CTA on mobile */
  .scroll-cta {
    display: block;
  }

  /* Extra space so CTA bar doesn't cover footer text */
  footer {
    margin-bottom: 3rem;
  }
} 

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
} 