/* === GLOBAL STYLES & VARIABLES === */
:root {
  --primary-color: #00806e;
  --accent-color: #e0e0e0;
  --bg-color: #1a1a1a;
  --bg-darker-color: #111111;
  --text-color: #ffffff;
  --text-muted-color: #b0b0b0;
  --border-color: #444444;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Lato", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section.bg-darker {
  background-color: var(--bg-darker-color);
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 60px;
  font-weight: 700;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* === HEADER & NAVIGATION === */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: transparent;
  transition: background-color 0.4s ease, padding 0.4s ease;
}
.main-header.scrolled {
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-color);
}
.main-nav ul {
  list-style: none;
  display: flex;
}
.main-nav ul li {
  margin: 0 15px;
}
.main-nav ul li a {
  color: var(--text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  position: relative;
  padding-bottom: 5px;
}
.main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.main-nav ul li a:hover::after,
.main-nav ul li a.active-link::after {
  width: 100%;
}
.lang-switcher {
  display: flex;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted-color);
  padding: 5px 10px;
  cursor: pointer;
  margin-left: 5px;
  transition: all 0.3s ease;
}
.lang-btn.active,
.lang-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-color);
  border-color: var(--primary-color);
}
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--text-color);
  transition: all 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === HERO SECTION === */
#hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background: url("https://images.unsplash.com/photo-1617469723232-15a7723535a7?q=80&w=2070&auto=format&fit=crop")
    no-repeat center center/cover;

  display: flex;
  justify-content: center;
  align-items: center;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.9) 0%,
    rgba(26, 26, 26, 0.4) 50%,
    rgba(26, 26, 26, 0.8) 100%
  );
  z-index: 1;
}
.hero-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  opacity: 1;
  z-index: 2;
  transition: filter 0.3s ease-out, transform 0.3s ease-out;
}

/* Treść (tekst i przycisk) */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
}
.hero-content h1 {
  font-size: 3.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}
.hero-content p {
  font-size: 1.25rem;
  color: var(--accent-color);
  margin-bottom: 40px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* === OFFER SECTION === */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.offer-card {
  background-color: var(--bg-darker-color);
  padding: 40px;
  text-align: center;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 128, 110, 0.15);
}
.offer-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 50%;
}
.offer-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* === ABOUT SECTION === */
.about-container {
  max-width: 800px;
  text-align: center;
}
.about-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--text-muted-color);
}
.about-features {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.about-features li {
  background-color: var(--bg-color);
  padding: 10px 20px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

/* === BOOKING SECTION === */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--text-muted-color);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-darker-color);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-row .form-group {
  flex: 1;
}

/* Style dla dynamicznych przystanków */
.waypoint-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.waypoint-group input {
  flex-grow: 1;
}
.remove-waypoint-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted-color);
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.remove-waypoint-btn:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  color: var(--text-color);
}

#add-waypoint-btn {
  width: 100%;
  margin-bottom: 20px;
  background-color: transparent;
  border: 1px dashed var(--border-color);
  color: var(--text-muted-color);
}
#add-waypoint-btn:hover {
  background-color: var(--bg-darker-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Widoczność szczegółów trasy */
#route-details {
  display: block;
  margin: 20px 0;
  padding: 20px;
  background-color: var(--bg-darker-color);
  border-left: 3px solid var(--primary-color);
}
#route-details p {
  margin-bottom: 10px;
}
#route-details strong {
  color: var(--primary-color);
}

#map {
  height: 700px; /* Wysokość mapy */
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}
/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}
.contact-info h3,
.contact-form-container h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}
.contact-info p {
  margin-bottom: 15px;
}

.social-links {
  margin-top: 30px;
}

.booking-success {
  display: none;
}
.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  margin-right: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-color);
}
.social-links a:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-color);
}
#form-status {
  margin-top: 15px;
  font-weight: bold;
}

/* === FOOTER === */
.main-footer {
  background-color: var(--bg-darker-color);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--text-color);
}
.footer-links a {
  margin: 0 10px;
  color: var(--text-muted-color);
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-legal {
  font-size: 0.9rem;
  color: var(--text-muted-color);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
  .booking-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  #map-placeholder {
    height: 400px;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  #map {
    height: 460px;
  }
  .lang-switcher {
    margin-right: 10px;
  }

  .main-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }
  .main-nav.active {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  .main-nav ul li {
    margin: 20px 0;
  }
  .main-nav ul li a {
    font-size: 1.5rem;
  }
  .hamburger {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .hero-scroll-image {
    width: 100%;
    max-width: 500px;
  }
}
