/*PARAMETRY GLOBALNE*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Century Gothic", Arial, sans-serif;
  color: #222;
  background: #fff;
  overflow-y: scroll;
}

/*NAGŁÓWEK*/

.header {
  text-align: center;
  padding: 20px;
}

.logo img {
  max-height: 120px;
  width: auto;
  display: inline-block;
  margin-bottom: 10px;
}

/*MENU*/

.nav {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.nav a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  letter-spacing: 1px;
}
.nav a.active {
  color: #768db6;   /*AKTYWNA ZAKŁADKA ZMIENIA KOLOR NA NIEBIESKI*/
}

/*HERO*/

.hero {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.hero img {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0px 0px 30px rgba(0, 0, 100, 0.5);
}

/*SIATKA KONTAKT*/

.contact-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
}

.contact-grid {
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/*MAPA GOOGLE*/

.map {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.map1 {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.map-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: opacity 1s ease;
  pointer-events: none; /* 🔥 to odblokowuje kliknięcia */
}


.map-placeholder.hide {
  opacity: 0;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) contrast(110%);
}

.map-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}


.area-map {
  width: 100%;
  height: auto;
  display: block;
}

/*DANE W ZAKŁADCE KONTAKT*/

.contact-info h1 {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 30px;
}

.contact-info p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.map-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* jeśli chcesz kwadrat */
  overflow: hidden;
}

.map-placeholder,
.map-iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.map-placeholder {
  object-fit: cover;
  z-index: 2;
}

.map-iframe {
  border: 0;
  z-index: 1;
}


/*PROJEKTY*/

.projects-page {
  display: flex;
  justify-content: center;
  padding: 40px 20px 60px;
}

.projects-grid {
  max-width: 1000px; /* taka sama szerokość jak kontakt */
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center; /* wyśrodkowanie w pionie */
}

/* zdjęcie projektu */

.project-image {
  display: flex;
  justify-content: center;  /* wyśrodkowanie poziome */
  align-items: center;      /* wyśrodkowanie pionowe */
}

.project-image img {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
}

/* opis projektu */

.project-info h1 {
  font-size: 22px;
  font-weight: normal;
  margin-bottom: 30px;
}

.project-info p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

/*STOPKA*/

.footer {
  text-align: center;
  padding: 60px 40px;
}

.footer-logo img {
  max-height: 40px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
}

.social-icons img {
  width: 20px;
  height: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.social-icons img:hover {
  opacity: 1;
}

.copyright {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

/*RESPONSYWNOŚĆ*/

@media (max-width: 900px) {

  .contact-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-image img {
    max-width: 100%;
  }

}