/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  --header-height: 3.5rem;

  /* Colors */
  --primary-color: #0000AF;
  --primary-color-alt: #F71200;
  --maroon-color: #800000;
  --light-maroon-color: #f2e6e6;
  --light-blue-color: #e6f0ff;
  --title-color: #333333;
  --text-color: #555555;
  --body-bg-color: #FFFFFF;
  --container-color: #FFFFFF;
  --section-bg-color: #F8F9FA;
  --white-color: #fff;
  --border-color: #E0E0E0;

  /* Font & Typography */
  --body-font: 'Poppins', sans-serif;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /* Font Weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-bg-color);
  color: var(--text-color);
  line-height: 1.7;
}

h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* === REUSABLE CSS CLASSES === */
.container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.section {
  padding: 4rem 0;
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.text-center {
  text-align: center;
}

.section__subtitle {
  display: block;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

/* === HEADER & NAV === */
#header {
  width: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background-color .4s, box-shadow .4s;
  position: sticky;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-weight: 700;
  color: var(--maroon-color);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
  transition: color .4s;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black-color);
  display: none; /* Hidden by default */
}

.nav__link {
  color: var(--black-color);
  font-weight: var(--font-medium);
  transition: color .4s;
  position: relative;
  padding-bottom: 0.25rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

/* Scrolled header styles */
#header.scrolled {
  background-color: var(--white-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#header.scrolled .nav__logo {
  color: var(--primary-color);
  text-shadow: none;
}

#header.scrolled .nav__link {
  color: black;
  text-shadow: none;
}

#header.scrolled .nav__toggle {
    color: var(--title-color);
}

.nav__link:hover {
  color: var(--primary-color-alt);
}

#header.scrolled .nav__link:hover {
  color: var(--primary-color);
}

.nav__phone {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.nav__phone-link {
  color: var(--maroon-color);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
  transition: color .4s;
}

#header.scrolled .nav__phone-link {
  color: var(--primary-color);
  text-shadow: none;
}

.nav__phone-link:hover {
  color: var(--primary-color-alt);
}

.nav__list {
  display: flex;
  gap: 2.5rem;
}

/* Active link indicator */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color-alt);
  transition: width .3s;
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

#header.scrolled .nav__link::after {
    background-color: var(--primary-color);
}

/* === REUSABLE CSS CLASSES === */
.grid {
    display: grid;
    gap: 1.5rem;
}

/* === HERO SECTION === */
.hero {
    padding: 6rem 0 4rem;
}

.hero__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero__img img {
    width: 100%;
    height: auto;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero__description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn i {
    margin-left: 0.5rem;
    transition: transform .3s;
}

.btn:hover i {
    transform: translateX(0.25rem);
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-medium);
  transition: background .3s, transform .3s;
}

.btn:hover {
  background: var(--primary-color-alt);
  transform: translateY(-3px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 175, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 175, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 0, 175, 0);
  }
}

.btn {
  animation: pulse 2s infinite;
}

/* === ABOUT SECTION === */
#about-us {
  background-color: var(--container-color);
}

.about-us-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-us-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

/* === HOW IT WORKS SECTION === */
#how-it-works {
  background-color: var(--section-bg-color);
  padding: 4rem 0;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.how-it-works-step {
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1rem;
}

.review-stars {
  color: #FFD700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* === SERVICES SECTION === */
#services {
  background-color: var(--section-bg-color);
  padding: 30px;
  padding-top: 30px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--container-color);
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card h3,
.service-card p {
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
}

.service-card h3 {
  font-size: var(--h3-font-size);
  margin-bottom: .5rem;
  margin-top: 1.5rem;
}

.service-card p {
    padding-bottom: 2rem;
}

/* === PRICING SECTION === */
#pricing {
    text-align: center;
    background-color: var(--section-bg-color);
}
.pricing-box {
    background: var(--section-bg-color);
    padding: 3rem 2rem;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}
.pricing-box h2 {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}
.pricing-box p {
    margin-bottom: 2rem;
}

.btn-offer {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-medium);
  transition: background .3s, transform .3s;
}

.btn-offer:hover {
  background: var(--primary-color-alt);
  transform: translateY(-3px);
}

.pricing-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pricing-buttons .separator {
  color: var(--text-color);
  font-weight: var(--font-medium);
}

/* === REVIEWS SECTION === */
#reviews {
  background-color: var(--section-bg-color);
  padding: 25px;
  padding-top: 15px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
  position: relative;
}

.review-card::before {
  content: '\f10d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  opacity: 0.1;
}

.review-text {
  margin-bottom: 1rem;
  font-style: italic;
}

.reviews cite {
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  font-style: normal;
}


/* === CONTACT SECTION === */

#contact {
    padding-top:10px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--section-bg-color);
  padding: 3rem;
  border-radius: 10px;
}

.contact-info h3 {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.contact-info ul {
  margin-top: 1.5rem;
}

.contact-info li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 20px;
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px; /* Slightly more rounded corners */
  background: var(--white-color);
  transition: border-color .3s, box-shadow .3s;
  font-size: var(--normal-font-size);
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 0, 175, 0.15); /* Professional focus ring */
}

.contact-form button {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  border-radius: 8px;
  transition: background-color .3s, transform .3s, box-shadow .3s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-error-message {
  color: var(--primary-color-alt);
  font-size: var(--small-font-size);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: var(--font-medium);
}

.form-group-agree {
  display: flex;
  justify-content: flex-start; /* Align items to the left */
  align-items: flex-start; /* Align items to the top */
  margin-bottom: 1rem;
  font-size: var(--small-font-size);
  line-height: 1.5;
  text-align: left; /* Ensure text within the label is left-aligned */
}

.form-group-agree input[type="checkbox"] {
  flex-shrink: 0; /* Prevent checkbox from shrinking */
  margin-top: 0.25em; /* Adjust for better vertical alignment */
  margin-right: 12px; /* Space between checkbox and label */
  width: 1.15em; /* Explicit size */
  height: 1.15em; /* Explicit size */
  accent-color: var(--primary-color);
}

.form-group-agree label {
  flex-basis: 80%; /* Set ideal width to 80% */
  flex-grow: 1;     /* Allow it to grow to fill space */
  cursor: pointer;  /* Better user experience */
}

.form-group-agree a {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-consent-group {
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.form-consent-group legend {
  padding: 0 0.5rem;
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.all-consents {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* === FOOTER === */
.site-footer {
  background: #1E2A38;
  color: #a9b3c1;
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.site-footer h3 {
  color: var(--white-color);
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: var(--small-font-size);
}

.footer-links a,
.footer-contact a {
  color: #a9b3c1;
  transition: color .3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary-color-alt);
}

.footer-links li,
.footer-contact li {
  margin-bottom: .5rem;
}

.footer-social a {
  color: var(--white-color);
  font-size: 1.25rem;
  margin-right: 1rem;
  transition: color .3s;
}

.footer-social a:hover {
  color: var(--maroon-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #3c4a5b;
  font-size: var(--small-font-size);
}

/* === POPUP STYLES === */
@keyframes popup-animation {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--white-color);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  /* Set initial state for animation */
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.popup-overlay.visible .popup-content {
  animation: popup-animation 1s ease-out forwards;
}

.popup-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-color);
}

.popup-content h3 {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
  color: var(--title-color);
}

.popup-content p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}


/* Service Details Popup Content */
.service-popup-img {
  width: 100%;
  max-height: 300px; /* Ograniczenie maksymalnej wysokości */
  height: auto; /* Automatyczna wysokość, aby zachować proporcje */
  object-fit: contain; /* Skalowanie z zachowaniem proporcji */
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.service-popup-title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.service-popup-description {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.service-popup-details {
  text-align: left;
  line-height: 1.6;
}


/* === RESPONSIVENESS === */
@media screen and (max-width: 992px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding: 4rem 0 3rem;
    background-color: var(--white-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: top .4s;
    z-index: var(--z-fixed);
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav__link {
    color: var(--title-color);
    text-shadow: none;
  }

  .nav__link:hover {
    color: var(--primary-color);
  }

  .nav__link.active-link::after,
  .nav__link:hover::after {
    background-color: var(--primary-color);
  }

  .nav__close {
      position: absolute;
      top: 1rem;
      right: 1.5rem;
      color: var(--title-color);
      display: block;
  }

  .nav__toggle {
    display: block;
  }

  /* Show menu */
  .show-menu {
    top: 0;
  }

  .services-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-it-works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



@media screen and (max-width: 768px) {
  .about-us-content {
    grid-template-columns: 1fr;
  }
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__img {
    margin-top: 2rem;
  }
  .hero__title {
    font-size: 2rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .reviews-grid,
  .how-it-works-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-consent-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-consent-banner p {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .floating-call-btn {
    display: flex;
  }
}
.floating-call-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color-alt);
  color: var(--white-color);
  border-radius: 50px;
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: var(--z-fixed);
  transition: background-color .3s, transform .3s;
}

.floating-call-btn:hover {
  background-color: var(--maroon-color);
  transform: scale(1.05);
}

.floating-call-btn i {
  font-size: 1.25rem;
}

/* === PRICING PAGE SPECIFIC STYLES === */
.pricing.section {
  background-color: var(--section-bg-color);
}

.pricing-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  box-shadow: 0 4px 25px rgba(0,0,0,0.05);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background-color: var(--primary-color);
  font-weight: var(--font-semi-bold);
  color: var(--white-color);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background-color: var(--light-blue-color);
}

.pricing-info {
  text-align: center;
  margin-top: 2rem;
  background-color: var(--section-bg-color);
  padding: 2rem;
  border-radius: 10px;
}

.pricing-info p {
  margin-bottom: 1rem;
}

.btn-details {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
    border: none;
    float: right;
}
