@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600');
@import url('https://fonts.googleapis.com/css?family=Sora:400,600');
@import url('https://fonts.googleapis.com/css?family=Oswald');

:root {
  --green: #528F4E;
  --gold: #FFD700;
  --aqua: #00cc99;
  --dark-text: #333;
  --light-bg: #fff;
}

* {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: var(--light-bg);
  color: #000;
}

/* --- NAWIGACJA --- */

.main-nav {
  background-color: var(--green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1.5em;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Logo tekstowe w lewym rogu (opcjonalne) */
.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  color: white;
  font-size: 1.5em;
  text-decoration: none;
  font-weight: bold;
}

.nav-left {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-left li {
  margin: 0 0.5em;
  position: relative; /* Ważne dla dropdowna */
}

.main-nav a, .dropbtn {
  text-decoration: none;
  color: var(--gold);
  font-weight: 600;
  padding: 0.6em 1em;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
  font-size: 1rem;
  display: inline-block;
}

.main-nav a:hover, .dropbtn:hover {
  background-color: rgba(255,255,255,0.2);
  color: white;
}

/* --- HAMBURGER --- */

.hamburger {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  padding: 0.2em;
}

/* --- DROPDOWN --- */

.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  border: 1px solid #ddd;
  border-radius: 6px;
  top: 100%;
  left: 0; /* Wyrównanie do lewej krawędzi przycisku */
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dropdown-content a {
  color: var(--green);
  padding: 12px 16px;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: var(--green);
}

/* Wyświetlanie dropdowna po najechaniu */
.dropdown:hover .dropdown-content {
  display: block;
}

/* --- HERO SECTION --- */

.hero-header {
  background: linear-gradient(180deg, var(--green) 0%, var(--aqua) 100%);
  height: 80vh; /* 80% wysokości ekranu */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 64px; /* Rekompensata za fixed nav */
}

.hero-overlay {
  color: white;
  padding: 1em;
}

.logo-hero {
  max-width: 180px;
  width: 100%; /* Responsywność obrazka */
  margin-bottom: 1em;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  color: white;
  font-size: 3em;
  margin: 0 0 0.2em 0;
}

.hero-subtitle {
  color: var(--gold);
  font-size: 1.2em;
  margin: 0;
}

/* --- TREŚĆ --- */

.content-section {
  padding: 4em 1em;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1em;
}

.section-header {
  text-align: center;
  font-family: 'Sora', sans-serif;
  color: var(--dark-text);
  font-size: 2em;
  margin-bottom: 1em;
}

p {
  text-align: center;
  line-height: 1.6;
  color: #444;
}

/* --- STOPKA --- */

.main-footer {
  background-color: var(--aqua);
  color: black;
  padding: 3em 0 1.5em 0;
  margin-top: 3em;
  font-weight: 600;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.footer-left {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4em;
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 1em;
  margin: 0;
  padding: 0;
}

.footer-nav img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s;
  display: block;
}

.footer-nav img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center; /* Wyśrodkowanie */
  font-size: 0.9em;
  opacity: 0.8;
}

/* --- RESPONSYWNOŚĆ (MOBILE) --- */

@media (max-width: 768px) {
  .hamburger {
    display: block; /* Pokaż hamburgera */
  }

  /* Główne zmiany w menu mobilnym */
  .nav-left {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--green);
    width: 100%;
    flex-direction: column; /* Układ pionowy */
    align-items: center;
    
    /* Animacja rozwijania */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* Klasa dodawana przez JS */
  .nav-left.show {
    max-height: 500px; /* Wystarczająco dużo, by zmieścić linki */
    opacity: 1;
  }

  .nav-left li {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .main-nav a, .dropbtn {
    display: block;
    width: 100%;
    padding: 1em 0;
    border-radius: 0;
  }
  
  /* Poprawka dropdowna na mobile - żeby nie był "latający" */
  .dropdown-content {
    position: static; /* Elementy wpadają w normalny przepływ */
    box-shadow: none;
    border: none;
    background-color: rgba(0,0,0,0.05); /* Lekko ciemniejsze tło */
    width: 100%;
    text-align: center;
  }
  
  .dropdown-content a {
    text-align: center;
    padding: 0.8em;
  }
  
  .nav-logo-text {
    font-size: 1.2em;
  }
  
  .hero-title {
    font-size: 2.2em;
  }
  
  .footer-top {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-right {
    flex-direction: column;
  }
}

/* --- BUTTON W HERO --- */

.hero-button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.8em 2em;
  background-color: var(--gold);
  color: #333; /* Ciemny tekst dla kontrastu */
  font-weight: 700;
  border-radius: 50px; /* Zaokrąglony przycisk */
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
}

.hero-button:hover {
  background-color: #fff; /* Po najechaniu zmienia się na biały */
  transform: translateY(-3px); /* Lekko unosi się do góry */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
