/* Reset i podstawy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #f39c12; /* Kolor pomarańczowy / dachówka */
    --dark: #2c3e50;
    --light: #f4f4f4;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Nawigacja */
nav {
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), 
                url('bg/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efekt paralaksy */
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
	

}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e67e22;
}

/* Sekcje */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

/* Usługi - Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Dodatkowy baner w środku strony - Zdjęcie detalu dachówki/pracy */
.banner-work {
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), 
                url('bg/banner-work.jpg');
    background-size: cover;
    background-position: center;
	    background-attachment: fixed; /* Efekt paralaksy */
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
	

}

.banner-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Zdjęcie w tle sekcji O Nas - Jasne i profesjonalne */
.about {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), 
                url('https://images.unsplash.com');
    background-size: cover;
    background-position: center;
}

.about-content ul {
    list-style: none;
    max-width: 600px;
    margin: 30px auto;
}

.about-content li {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.about-content i {
    color: var(--primary);
    margin-right: 10px;
}

/* Kontakt */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Mobile Friendly */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Proste ukrycie menu dla ułatwienia - w wersji mobile zazwyczaj robi się burger menu */
    }
    .hero h1 {
        font-size: 2rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Styl dla Social Media w stopce */
.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    color: #f39c12; /* Twój pomarańczowy kolor */
    font-size: 24px;
    margin-right: 15px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #2c3e50; /* Zmiana koloru po najechaniu */
}

/* Styl dla Opinii */
.reviews {
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

.stars {
    color: #f1c40f; /* Złoty kolor gwiazdek */
    margin-bottom: 15px;
}

.gray {
    color: #ccc; /* jasnoszara */
}


.review-card p {
    font-style: italic;
    margin-bottom: 15px;
}

.review-card h4 {
    font-weight: bold;
    color: var(--dark);
}
/* Partnerzy */
.partners {

    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.0)), 
                url('bg/partners.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efekt paralaksy */
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.section-subtitle{
  text-align: center;
  max-width: 800px;
  margin: -10px auto 35px;
  opacity: 0.85;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.partner-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;

  transition: transform .2s ease, box-shadow .2s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.10);
}

.partner-card img {
  max-width: 140px;
  max-height: 70px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

.partner-card span {
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Responsywność */
@media (max-width: 1024px) {
  .partners-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 420px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

.area {
    padding: 60px 0;
    background: #f8f8f8;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.area-item {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-item i {
    color: #e63946;
    font-size: 20px;
}
.area-voivodeship {
    margin-top: 40px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}
/* Wygląd powiadomienia */
#notification-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: top 0.5s ease-in-out;
    font-weight: bold;
}
/* Klasa, która wysuwa powiadomienie */
#notification-toast.show {
    top: 20px;
}
/* Klasa dla błędów */
#notification-toast.error {
    background-color: #dc3545;
}