/* ---------- GLOBAL ---------- */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f0f4ff;
  color: #0f1b3d;
}

h1,
h2,
h3 {
  margin: 0;
}

/* ---------- HEADER ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: white;
  border-bottom: 2px solid #e0e6f2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logoImg {
  height: 80px;
  transition: all 0.4s;
}

.logoCompress {
  height: 35px;
  transition: all 0.4s;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  padding: 0;
  margin-block-start: 1em;
  margin-block-end: 1em;
  transition:
    margin-block-start 0.4s,
    margin-block-end 0.4s;
}

.menuCompress {
  margin-block-start: 0.3em;
  margin-block-end: 0.3em;
  transition:
    margin-block-start 0.6s,
    margin-block-end 0.6s;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: #102251;
  transition: 0.2s;
}

nav a:hover {
  color: #00d28e;
}

nav a.highlight {
  color: #00d28e;
}

nav a.active {
  color: #00d28e;
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(45deg, #00d28e, #00a8e8);
  border-radius: 2px;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background:
    linear-gradient(rgba(15, 27, 61, 0.75), rgba(15, 27, 61, 0.75)),
    url("parallax-bg.svg");

  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* PARALAKSA */

  scroll-margin-top: 90px;
}

.hero h1 {
  font-size: 44px;
  color: white;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  color: #d7e3ff;
  margin-bottom: 25px;
}

.heroMainContent {
  padding: 20px;
}

.heroContainer {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  justify-content: center;
}

.heroItem {
  font-size: 20px;
  color: #d7e3ff;
  margin-bottom: 25px;
  align-content: center;
  max-width: 180px;
}

.btn.cta {
  font-size: 18px;
  padding: 14px 36px;
}

/* ---------- CTA BUTTON ---------- */
.btn {
  display: inline-block;
  background: #00d28e;
  background: linear-gradient(
    45deg,
    rgba(0, 210, 142, 1) 0%,
    rgba(0, 119, 166, 1) 100%
  );
  color: white;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.25s;
  border: 0px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- SEKCJE ---------- */
.section {
  padding: 80px 40px;
  text-align: center;
  scroll-margin-top: 40px;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 25px;
}

#o-nas {
  margin: 0 auto;
}

#o-nas p {
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- USŁUGI ---------- */
.servicesContainer {
  display: flex;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.servicesItem {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
  align-content: center;
  width: 260px;
}

/* ---------- DLACZEGO MY ---------- */
.whyList {
  list-style: none;
  padding: 0;
  font-size: 20px;
  line-height: 2;
}

/* ---------- KONTAKT ---------- */
#kontakt {
  scroll-margin-top: 0px;
}

.contactBox {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contactForm,
.contactData {
  background: white;
  padding: 30px;
  border-radius: 14px;
  width: 330px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.contactData {
  align-content: center;
}

.contactForm input,
.contactForm textarea {
  width: 100%;
  padding: 10px 0 10px 0;
  margin-bottom: 12px;
  border: 1px solid #ccd3e3;
  border-radius: 6px;
}

#contactFormBtn {
  display: inline-block;
  position: relative;
  background: linear-gradient(45deg, #00d28e, #0077a6);
  color: white;
  padding: 12px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.25s;
  border: 0px;
  z-index: 1;
  cursor: pointer;
}

#contactFormBtn::before {
  position: absolute;
  border-radius: 10px;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(45deg, #1a1a1a, #7c7c7c);
  z-index: -1;
  transition: opacity 0.5s linear;
  opacity: 0;
}

#contactFormBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

#contactFormBtn:disabled {
  cursor: not-allowed;
}

#contactFormBtn:disabled::before {
  opacity: 1;
  cursor: not-allowed;
}

.g-recaptcha {
  margin-bottom: 12px;
}

.g-recaptcha > div {
  margin: 0 auto;
}

#contactFormMsg {
  display: none;
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

#contactFormMsg.success {
  background: #d4edda;
  color: #155724;
}

#contactFormMsg.error {
  background: #f8d7da;
  color: #721c24;
}

footer {
  text-align: center;
  padding: 25px;
  background: #102251;
  color: white;
  margin-top: 40px;
}

/* ---------- ANIMATIONS ---------- */
.fadeIn {
  animation: fadein 1.2s ease forwards;
  opacity: 0;
}

.slideUp {
  animation: slideup 1.3s ease forwards;
  opacity: 0;
  transform: translateY(25px);
}

.hoverRise {
  transition: 0.3s;
}

.hoverRise:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* ---------- BACK TO TOP (SVG) ---------- */
#scrollTopBtn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(45deg, #00d28e, #00a8e8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

#scrollTopBtn {
  transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
  transform: translateY(-3px);
}

#scrollTopBtn.showScrollBtn {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- COOKIE BANNER ---------- */
#cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: white;
  color: #0f1b3d;
  padding: 20px 25px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: calc(100% - 40px);
  z-index: 9999;
  transition: 0.4s ease;
}

#cookieBanner.showCookiesBanner {
  transform: translateX(-50%) translateY(0);
}

#cookieBanner p {
  font-size: 14px;
  margin-bottom: 15px;
}

#cookieBanner a {
  color: #00a8e8;
  text-decoration: none;
}

.cookieButtonsContainer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookieButtonsContainer button {
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#acceptCookies {
  background: linear-gradient(45deg, #00d28e, #00a8e8);
  color: white;
  transition: transform 0.3s ease;
}

#acceptCookies:hover,
#rejectCookies:hover {
  transform: translateY(-3px);
}

#rejectCookies {
  background: #e5e8f3;
  color: #0f1b3d;
  transition: transform 0.3s ease;
}

@keyframes fadein {
  to {
    opacity: 1;
  }
}

@keyframes slideup {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RWD ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .hero {
    background-attachment: scroll;
  }

  .logoContainer {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 60px 20px;
  }
}
