/* style.css */

/* ====== bazowe ====== */
:root{
  --container: 1180px;        /* szersze, żeby kafle nie zawijały */
  --pad: 20px;

  --text: #222;
  --muted: #6b6b6b;
  --line: #ececec;

  --nav: #111;
  --accent: #d82f18;          /* czerwony */
  --hero-overlay: 0.06;       /* overlay bardzo delikatny */
  --hero-bg: url("../img/hero-bg.jpg");
  --services-bg: #f3f3f3;
}

body{
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

/* ====== layout ====== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section{ padding: 48px 0; }

/* ====== header ====== */
.header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height: 80px;
}

.brand__logo{
  display:block;
  height: 34px;
  width:auto;
}

.nav__list{
  display:flex;
  align-items:center;
  gap:26px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav__link{
  position:relative;
  display:inline-block;
  padding: 6px 2px 12px;
  text-transform: uppercase;
  color: var(--nav);
  font-size: 15px;
  font-weight: 700;
  transition: color .15s ease;
}

/* underline bazowe (dla hover i active) */
.nav__link::after{
  content:"";
  position:absolute;
  left:0;
  right:0;          /* = szerokość tekstu (bo inline-block) */
  bottom:0;
  height:3px;
  background: var(--accent);
  opacity:0;
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .15s ease, opacity .15s ease;
}

/* aktywna podstrona */
.nav__link.is-active{
  color: var(--accent);
}
.nav__link.is-active::after{
  opacity:1;
  transform: scaleX(1);
}

/* hover: TYLKO podkreślenie, tekst zostaje czarny */
.nav__link:hover{
  color: var(--nav);
}
.nav__link:hover::after{
  opacity:1;
  transform: scaleX(1);
}

/* burger */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 8px;
  padding: 10px;
}
.nav-toggle__bar{
  display:block;
  height:2px;
  background:#111;
  margin:5px 0;
}

/* ====== hero ====== */
.hero{
  position:relative;
  height: 430px;
  overflow:hidden;
}

.hero__bg{
  position:absolute;
  inset:0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
}

.hero__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,var(--hero-overlay));
}

.hero__inner{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
}

.hero__content{
  color:#000;
}

.hero__title{
  font-size: 46px;
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__subtitle{
  margin-top: 0px;
  font-size: 46px;
  font-weight: 600;
  text-transform: uppercase;
}

/* === HEADER na HERO (tło hero widoczne pod menu) === */
.header.header--over-hero{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  z-index: 2000;
}

/* po scrollu header wraca do białego jak wcześniej */
.header.header--over-hero.is-solid{
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

/* hero musi mieć padding na wysokość headera, żeby treść nie weszła pod menu */
.hero{
  padding-top: 92px; /* tyle ile w .header__inner */
}

/* opcjonalnie: gdy header jest przezroczysty, linki menu na tle hero muszą być czytelne */
.header.header--over-hero:not(.is-solid) .nav__link{ color: #111; }
.header.header--over-hero:not(.is-solid) .nav__link.is-active{ color: var(--accent); }


/* ====== hero services (szary pasek) ====== */
.hero-services{
  position: relative;
  background: var(--services-bg);
  padding: 28px 0;
  box-shadow: 0 8px 10px rgba(0,0,0,.1);
  z-index: 2;
}

.hero-services__inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.hs-item{
  display:flex;
  gap: 14px;
  align-items:flex-start;
}

.hs-item__icon img{
  max-height: 40px;
  width: auto;
  height: auto;
}

.hs-item__title{
  font-size: 18px;
  margin-bottom: 6px;
}

.hs-item__text{
  color: var(--muted);
  font-size: 14px;
}

/* ====== about ====== */
.about__inner{
  display:grid;
  grid-template-columns: 300px 1fr; 
  gap: 34px;
  align-items:start;
}

.about__img{
  width:auto;
  max-height:250px;
  object-fit: cover;
  border-radius: 999px;
  display:block;
}

.about__title{
  font-size: 26px;
  margin-bottom: 12px;
}

.about__content p{
  margin-top: 10px;
}

.about__content ul{
  list-style: disc;
  padding-left: 1.2em;
  margin: 12px 0 0;
}
.about__content li{
  list-style: disc;
  margin: 6px 0;
}

/* =========================
   OFERTA
   ========================= */

.offer__inner{
  display: grid;
  grid-template-columns: 300px 1fr;   /* jak about */
  gap: 48px;
  align-items: start;
}

.offer__media{
  width: 250px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.offer__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* tekst */
.offer__content h2{
  margin: 0 0 28px;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.offer__content p{
  margin: 0 0 18px;
  font-size: 15px;
}

/* dwie kolumny list */
.offer__lists{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* listy z czerwonym trójkątem */
.offer__lists ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer__lists li{
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  line-height: 1.5;
  font-size: 16px;
}

/* czerwony marker jak w WP */
.offer__lists li::before{
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent); /* czerwony */
  font-size: 12px;
  line-height: 1.5;
}

/* RWD */
@media (max-width: 900px){
  .offer__inner{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .offer__media{
    margin: 0 auto;
  }

  .offer__lists{
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* =========================
   REALIZACJE (projects)
   ========================= */

.project--card{
  border-bottom: none;          
  padding: 0 0 26px;
}

.project__card{
  background: #f1f1f1;
  padding: 22px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
  border-radius: 2px;
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.project__media{
  display: block;
}

.project__image{
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.project__name{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
}

.project__meta{
  margin: 0 0 14px;
}

.project__scopeLabel{
  margin: 0 0 8px;
  font-weight: 700;
}

.project__scopeList{
  margin: 0;
  padding: 0;
  list-style: none;
}

.project__scopeList li{
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
}

.project__scopeList li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 2px;
}

/* RWD */
@media (max-width: 900px){
  .project__card{
    grid-template-columns: 1fr;
  }
  .project__image{
    height: 220px;
  }
}

/* === LIGHTBOX === */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 4000;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog{
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
}

.lightbox__img{
  display: block;
  max-width: 100%;
  max-height: 88vh;
  height: auto;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}

.lightbox.is-open .lightbox__img{
  opacity: 1;
  transform: scale(1);
}

.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;

  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
  display: grid;
  place-items: center;

  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.lightbox__close:hover{
  background: rgba(0,0,0,.8);
}

.lightbox__close{ z-index: 2; }

/* =========================
   KONTAKT (bez formularza)
   ========================= */

.contact__inner{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact__title{
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #111;
}

.contact__item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact__icon{
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.contact__label{
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}

.contact__value{
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.contact__value a{
  color: #111;
  text-decoration: none;
}
.contact__value a:hover{
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.contact__right{
  background: #f1f1f1;
  padding: 12px;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.contact__map{
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  border-radius: 2px;
}

/* RWD */
@media (max-width: 900px){
  .contact__inner{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact__map{
    height: 360px;
  }
}

/* =========================
   POLITYKA PRYWATNOŚCI
   ========================= */

.policy__inner{
  max-width: 820px;
}

.policy h1{
  margin: 0 0 26px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
}

.policy h2{
  margin: 32px 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.policy p{
  margin: 0 0 14px;
  line-height: 1.7;
  color: #333;
}

.policy ul{
  margin: 0 0 14px 18px;
  list-style: disc;
}

.policy li{
  margin: 6px 0;
  line-height: 1.6;
}


/* ====== trusted ====== */
.trusted{
  padding: 34px 0 52px;
  background: #f2f2f2;
}

.trusted__inner{
  display:flex;
  flex-direction:column;
  gap: 18px;
  text-align: center;
}

.trusted__title{
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 22px;
}

.trusted__logos{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  align-items: center;
  gap: 22px 50px;
}

.trusted__logos img{
  display: block;
  max-height: 100px;
  width: auto;
  height: auto;
  opacity: 0.9;
}

.trusted__logos img:hover{
  opacity: 1;
}

/* ====== footer ====== */
.footer{
  background: #111;
  color: #fff;
  padding-top: 46px;
}

.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 28px;
}

.footer__title{
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}
.footer__logo{
  height: 34px;
  width:auto;
  display:block;
  margin-bottom: 12px;
}

.footer__col h3{
  font-size: 18px;
  margin-bottom: 20px;
}

/* linki */
.footer a{
  color: #cfcfcf;
}
.footer a:hover{
  color:#fff;
}

.footer__links{
  list-style: disc;
  padding-left: 18px;
}
.footer__links li{
  margin: 6px 0;
}

/* kontakt z ikonami */
.footer__contact{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 10px 0;
}

.footer__icon{
  width: 22px;
  height: 22px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex: 0 0 22px;
}

.footer__bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 0;
}

.footer__bottom-inner{
  display:flex;
  justify-content:center;
}

.footer__bottom small{
  color:#cfcfcf;
  letter-spacing: .08em;
}

/* ====== responsive ====== */
@media (max-width: 980px){
  .hero-services__inner{
    grid-template-columns: 1fr;
  }

  .about__inner{
    grid-template-columns: 1fr;
  }

  .about__media{
    display:flex;
    justify-content:center;
  }

  .footer__inner{
    grid-template-columns: 1fr;
  }

  .nav-toggle{ display:block; }
  .nav{
    display:none;
  }
  .nav.is-open{
    display:block;
    position:absolute;
    top:92px;
    right:0;
    left:0;
    background:#fff;
    border-bottom:1px solid var(--line);
  }
  .nav__list{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding: 14px var(--pad);
  }
  .nav__link{
    padding: 12px 2px;
  }
}

/* FINAL: header overlay on hero */
header.header.header--over-hero{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  background: rgba(255,255,255,.7) !important;  /* “mleczne” */
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);

  border-bottom: 1px solid rgba(255,255,255,.45) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.05) !important;
}

.hero{ padding-top: 92px; }
