/* RESET + OGÓLNE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  transition: background 0.3s, color 0.3s;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* NAWIGACJA */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: background 0.3s;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}
.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 2rem;
}
.nav-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #00bfa5;
}
.btn-nav {
  margin-left: 2rem;
  background: linear-gradient(135deg, #00bfa5, #00d1b2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}
.btn-nav:hover {
  background: #009e88;
}
.hamburger {
  display: none;
  flex-direction: column;
  border: none;
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  width: 25px; height: 3px;
  background: #333;
  margin: 4px 0;
  transition: 0.3s;
}

/* DARK MODE TOGGLE */
.dark-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  margin-left: 1rem;
  cursor: pointer;
  color: #333;
  transition: transform 0.3s;
}
.dark-toggle:hover {
  transform: rotate(20deg);
}

/* HERO */
.hero-modern {
  position: relative;
  height: 100vh;
  background: url('img/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-modern .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}
.hero-content {
  position: relative;
  color: white;
  text-align: center;
  max-width: 700px;
  z-index: 10;
}
.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  margin: 0.5rem 0.3rem;
  display: inline-block;
}

/* PRZYCISKI */
.btn {
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn.primary {
  background: linear-gradient(135deg, #00bfa5, #00d1b2);
  color: white;
}
.btn.primary:hover {
  background: #009e88;
  transform: translateY(-3px);
}
.btn.secondary {
  background: rgba(255,255,255,0.9);
  color: #333;
}
.btn.secondary:hover {
  background: #fff;
  transform: translateY(-3px);
}

/* SEKCJE */
.section {
  padding: 5rem 0;
}
.section:nth-of-type(even) {
  background: #f9f9f9;
}
.section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  color: #333;
}

/* DLACZEGO MY */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.perk {
  text-align: center;
  padding: 1.5rem;
}
.perk .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.perk h3 {
  margin-bottom: 0.5rem;
  color: #00bfa5;
}
.perk p {
  color: #666;
}

/* FLOTA */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.car-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  position: relative;
}
.car-card:hover {
  transform: translateY(-5px);
}
.car-card img {
  width: 100%;
  object-fit: cover;
  height: 180px;
}
.car-card h3 {
  margin: 1rem;
  font-size: 1.3rem;
}
.car-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  padding: 0 1rem;
}
.car-card:hover .car-details {
  max-height: 200px;
}

/* MIEJSCA */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5rem;
}
.place-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.place-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.5s;
}
.place-card:hover img {
  transform: scale(1.1);
}
.place-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.5);
  color: white;
  text-align: center;
}
.place-overlay h3 {
  margin: 0;
}

/* OPINIE */
.carousel {
  position: relative;
  max-width: 700px;
  margin: auto;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.review {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 2rem;
  display: none;
}
.review.active {
  display: block;
}
.review p {
  font-style: italic;
  margin-bottom: 1rem;
}
.review h4 {
  font-weight: 600;
  color: #00bfa5;
}
.review .stars {
  font-size: 1.2rem;
  color: gold;
  margin: 0.5rem 0;
  letter-spacing: 2px;
}
.carousel-controls {
  text-align: center;
  margin-top: 1rem;
}
.carousel-controls button {
  background: #00bfa5;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-controls button:hover {
  background: #009e88;
}

/* FAQ SLIDER */
.faq-carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}
.faq-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}
.faq-item {
  min-width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: relative;
}
.faq-item.active {
  opacity: 1;
  transform: translateX(0);
}
.faq-item h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.faq-item p {
  color: #555;
  line-height: 1.5;
}
.faq-controls {
  text-align: center;
  margin-top: 1rem;
}
.faq-controls button {
  background: #00bfa5;
  border: none;
  color: white;
  font-size: 1.2rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
}
.faq-controls button:hover {
  background: #009e88;
}

/* STOPKA */
.footer {
  background: #333;
  color: white;
  padding: 2rem 0;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-left, .footer-right {
  margin: 0.5rem 0;
}
.footer-right a {
  color: #ccc;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}
.footer-right a:hover {
  color: white;
}

/* DARK MODE */
body.dark-mode {
  background-color: #111;
  color: #eee;
}
body.dark-mode .navbar {
  background: rgba(0, 0, 0, 0.85);
}
body.dark-mode .nav-links a,
body.dark-mode .logo,
body.dark-mode .dark-toggle {
  color: #eee;
}
body.dark-mode .btn-nav,
body.dark-mode .btn.primary {
  background: linear-gradient(135deg, #333, #555);
  color: white;
}
body.dark-mode .section {
  background-color: #1c1c1c;
}
body.dark-mode .section:nth-of-type(even) {
  background-color: #171717;
}
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode p {
  color: #ccc;
}
body.dark-mode .place-overlay {
  background: rgba(0, 0, 0, 0.7);
}
body.dark-mode .footer {
  background: #000;
  color: #aaa;
}
body.dark-mode .footer-right a {
  color: #aaa;
}
body.dark-mode .carousel-controls button {
  background: #333;
}

/* MOBILNE POPRAWKI */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .hero-buttons .btn {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
  }
}
