/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geo&family=Montserrat:wght@400;700&family=Smooch+Sans:wght@400;700&display=swap');

/* Zawsze rezerwuj miejsce na pionowy scrollbar, by navbar się nie ruszał */
html {
  overflow-y: scroll;
}

/* Reset & podstawy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background: #000;
  line-height: 1.6;
}

/* Kontener */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid #e20613;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 50px;
}
.logo-text {
  margin-left: .5rem;
  font-family: 'Geo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e20613;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: color .3s;
  padding: .25rem 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: #e20613;
}
.nav-links a.contact-btn {
  padding: .25rem 1.6rem;
  background: #e20613;
  color: #fff;
  font-weight: 800;
  border-radius: 6px;
  transition: background .3s;
}
.nav-links a.contact-btn:hover {
  background: #c40f0f;
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background: url('../assets/baner.jpg') center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
}
.hero-content h1 span {
  display: block;
  line-height: 1.4;
}
.hero-content .highlight {
  color: #e20613;
}
.hero-content p {
  margin: 1.5rem auto;
  max-width: 600px;
  font-size: 1.125rem;
}
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  background: #e20613;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background .3s, transform .2s;
}
.btn:hover {
  background: #ce0610;
  transform: translateY(-2px);
}

/* Sekcja “O mnie” */
.kim-section {
  margin-top: 80px;
  padding: 4rem 0;
  background: #111;
}
.kim-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.kim-intro__image img {
  width: 320px;
  border-radius: 8px;
}
.kim-intro__text {
  flex: 1;
  font-family: 'Smooch Sans', sans-serif;
  font-size: 1.25rem;
  line-height: 1.8;
  text-align: justify;
}
.highlight-text {
  color: #e20613;
  font-weight: 700;
}

/* Kafelki “O mnie” */
.kim-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
}
.kim-cards-grid .card {
  position: relative;
  background: #000;
  border: 2px solid #e20613;
  border-radius: 8px;
  overflow: visible;
  transition: box-shadow .3s, transform .2s;
}
.kim-cards-grid .card:hover {
  box-shadow: 0 0 20px #e20613;
  transform: translateY(-4px);
}
.kim-cards-grid .card::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px; bottom: -3px;
  border: 3px solid transparent;
  border-radius: 10px;
  transition: box-shadow .3s;
}
.kim-cards-grid .card:hover::before {
  box-shadow: 0 0 8px #e20613, 0 0 16px #e20613, 0 0 32px #e20613;
}
.kim-cards-grid .card-icon {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 5rem;
  height: 5rem;
  background: #e20613;
  border: 2px solid #e20613;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.kim-cards-grid .card-icon img {
  width: 2.5rem;
  height: 2.5rem;
}
.kim-cards-grid .card-content {
  padding: 3.5rem 1rem 1rem;
  z-index: 1;
}
.kim-cards-grid .card-content h3 {
  margin-bottom: .5rem;
  font-size: 1.25rem;
}
.kim-cards-grid .card-content p {
  font-size: .95rem;
  line-height: 1.5;
  text-align: justify;
}

/* Sekcja “Oferta” */
.projects-section {
  margin-top: 80px;
  padding: 4rem 0;
  background: #111;
}

/* Wprowadzenie w sekcji “Oferta” */
.projects-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
}
.projects-intro h2 {
  font-size: 2rem;
  color: #e20613;
  text-align: center;
  margin-bottom: 1rem;
}
.projects-intro p {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
}
.projects-benefits {
  list-style: none;
  padding: 0;
  margin: 1rem auto;
  max-width: 600px;
}
.projects-benefits li {
  position: relative;
  padding-left: 1.8em;
  margin: 0.5rem 0;
  text-align: justify;
}
.projects-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e20613;
  font-weight: bold;
}

/* Sekcja “Konsultacja” */
.consultation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}
.consultation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e20613;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background .3s, transform .2s;
}
.consultation-btn:hover {
  background: #cf0610;
  transform: translateY(-2px);
}
.consultation small {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Karty “Oferta” */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.project-card {
  background: #000;
  border: 2px solid #e20613;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .2s;
}
.project-card:hover {
  box-shadow: 0 0 20px #e20613;
  transform: translateY(-4px);
}
.card-header {
  position: relative;
  width: 100%;
  height: 220px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.badge {
  position: absolute;
  top: 0.6rem;
  left: 1rem;
  background: #e20613;
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 600;
}
.project-content {
  padding: 1.5rem;
  flex: 1;
}
.project-content h3 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
  text-align: center;
}
.project-content p {
  font-size: .95rem;
  line-height: 1.5;
  text-align: justify;
}

/* RESPONSYWNOŚĆ mobilna + poprawione wysuwane menu */
@media (max-width: 768px) {
  /* hamburger włączony */
  .nav-toggle {
    display: flex;
  }

 .hero {
    /* robi miejsce pod navbar i pozwala na pełną wysokość */
    padding-top: 60px; 
    align-items: flex-start; /* blok zaczyna się od górnej krawędzi */
    justify-content: flex-start;
  }
  .hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem; /* odsuń tekst od krawędzi */
  }
  .hero-content h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.2;
    white-space: normal;
    word-break: keep-all;  /* wymuś łamanie długich wyrazów */
    overflow-wrap: normal;
  }
  .hero-content h1 span {
    display: block;     /* zapewnia każdy wers w osobnym wierszu */
  }
  .hero-content h1 span.highlight {
    white-space: nowrap;
  }
  .hero-content p {
    padding: 0 1rem;    /* ten sam padding co nagłówek */
    font-size: 1rem;
  }
  .btn {
    margin-top: 1.5rem;
  }

  /* panel wysuwanego menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 240px;              /* szerokość panelu */
    height: 100vh;             /* pełna wysokość */
    background: #000;          /* nieprzezroczyste czarne tło */
    padding: 4rem 1rem;        /* odstęp na navbar + padding */
    box-shadow: -4px 0 12px rgba(0,0,0,0.5);
    transition: right .3s ease;
    z-index: 300;              /* nad całą resztą */
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links.show {
    right: 0;                  /* wysunięcie na ekran */
  }

  /* linki jako przyciski */
  .nav-links a {
    display: block;
    padding: .75rem 1rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background .2s, color .2s;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: #e20613;       /* czerwone tło */
    color: #fff;               /* czarny tekst */
  }

  /* Contact-button na dole panelu */
  .nav-links a.contact-btn {
    margin-top: auto;
    background: #e20613;
    color: #fff;
  }
}

/* ——— STOPKA ——— */
.site-footer {
  background: #0d0d0d;
  color: #ccc;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid #e20613;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;    /* <-- wyśrodkuj kolumny */
  gap: 2rem;
  width: 65%;
  margin: 0 auto;             /* <-- i upewnij się, że jest wyśrodkowane */
}

.footer-col {
  flex: 0 0 auto;
  min-width: 120px;
  position: relative;
  padding: 0 1rem;
}

.footer-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  right: 0;
  width: 1px;
  background: #e20613;
}

.footer-logo img {
  height: 10rem;
  display: block;
}

.footer-contact h4,
.footer-info h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.footer-contact address {
  font-style: normal;
  line-height: 1.6;
  text-align: left;        /* możesz też wyśrodkować tekst */
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color .3s;
}
.footer-contact a:hover {
  color: #e20613;
}

.footer-social {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;   /* albo flex-start jeśli wolisz */
}
.footer-social img {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-info .footer-link {
  display: inline-block;
  color: #fff;
  font-weight: 400;
  font-size: .95rem;
  text-decoration: none;
  transition: color .3s;
}
.footer-info .footer-link:hover {
  color: #e20613;
}

.footer-bottom {
  text-align: center;
  margin-top: 0.75rem;
  color: #777;
  font-size: 0.85rem;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  .footer-inner {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    padding: 0.5rem 0;
  }
  .footer-col:not(:last-child)::after {
    display: none;
  }
  .footer-info {
    margin-top: 1rem;
  }
}

/* ===== Modal konsultacji ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.modal.show { display: flex; }

/* pół-transparentne tło */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

/* okno */
.modal-box {
  position: relative;
  margin: auto;
  width: min(90%, 480px);
  background: #000;
  border: 2px solid #e20613;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 0 20px #e20613;
  animation: zoomIn .3s;
}

/* zamykanie */
.modal-close {
  position: absolute;
  top: .5rem;
  right: .75rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* formularz */
#consultation-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#consultation-form input,
#consultation-form textarea {
  width: 100%;
  padding: .5rem .75rem;
  background: #111;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
}
#consultation-form input:focus,
#consultation-form textarea:focus {
  outline: none;
  border-color: #e20613;
}

.contact-pref {
  border: none;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.contact-pref label {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.consent {
  font-size: .875rem;
  line-height: 1.3;
}
.consent input { margin-right: .4rem; }

@keyframes zoomIn {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}


/* ——— MODAL / formularz konsultacji ——— */

/* kontener modalu */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* pół-transparentne tło */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

/* okno modalu */
.modal-box {
  position: relative;
  width: min(90%, 480px);
  background: #000;
  border: 2px solid #e20613;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 0 20px #e20613;
  animation: zoomIn .3s ease-out;
}

/* przycisk zamknięcia */
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* animacja otwierania */
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* nagłówek modalu */
.modal-box .modal-title {
  text-align: center;
  color: #e20613;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* formularz wewnątrz modalu */
#consultation-form {
  display: flex;
  flex-direction: column;
}

/* etykiety + pola */
#consultation-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
#consultation-form label small {
  font-size: 0.8rem;
  font-style: italic;
  color: #ccc;
  margin-left: 0.25rem;
}

/* inputy i textarea */
#consultation-form input,
#consultation-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  margin-top: 0.25rem;
  font-family: inherit;
}
#consultation-form textarea {
  resize: vertical;
}
#consultation-form input:focus,
#consultation-form textarea:focus {
  outline: none;
  border-color: #e20613;
}

/* odstęp między polem Temat a notką RODO */
#consultation-form textarea + .rodo-note {
  margin-top: 0.1rem;
}

/* notka o danych osobowych */
.rodo-note {
  font-size: 0.65rem;
  line-height: 1.4;
  text-align: justify;
  margin: 0.1rem 0 1rem;
  color: #ccc;
}
.rodo-note a {
  color: #e20613;
  font-weight: 700;
  text-decoration: none;
}
.rodo-note a:hover {
  text-decoration: underline;
}

/* szeroki przycisk Wyślij */
.btn.wide {
  width: 100%;
  background: #e20613;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  transition: background .3s;
}
.btn.wide:hover {
  background: #cf0610;
}



/* ——— Sekcja Blog ——— */
.blog-section {  
  margin-top: 80px;  
  padding: 4rem 0;  
  background: #111;
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;    /* tylko jeden na raz */
  justify-items: center;
}
.blog-card-link {
  text-decoration: none;
  width: 100%;
  max-width: 480px;
}
.blog-card {
 position: relative;
  background: #000;
  border: 2px solid #e20613;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.blog-card .card-header {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
}
.blog-card .badge {
  position: absolute;
  top: 0.75rem;      /* z góry */
  left: 0.75rem;
  background: #e20613;      /* czerwone tło */
  color: #fff;              /* biały tekst dla kontrastu */
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
}
.blog-card .card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}
.blog-card .card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #e20613;           /* czerwony tytuł */
}
.blog-card .card-content p {
  flex: 1;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  color: #ccc;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #999;
}
.blog-meta time::before {
  content: "🕒";
  margin-right: 0.4em;
}
.blog-meta .author {
  font-style: italic;
}
		