/* === RESET === */

/* OGÓLNE*/
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
}

/* === HEADER === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 2rem;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* === LOGO === */
.logo img {
  max-height: 80px;
  height: auto;
  width: auto;
}

/* === NAVIGATION === */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  color: #004d40;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: rgba(0, 77, 64, 0.20);
  color: #004d40;
}

.main-nav li {
  position: relative;
}

.main-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.2em;
  background-color: #ccc;
}

/* Header pokazuje się odpowiednio - dodany margines górny */
#o-mnie,
#uslugi,
#how-to-start,
#why-me,
#recommendation,
#kontakt {
  scroll-margin-top: 80px;
}

/* === HERO === */
.hero {
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;    
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.4rem;
  margin-top: 1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}


.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background-color: #004d40;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background-color: #00413c;
}

/* === HAMBURGER MENU (mobile only) === */
.hamburger {
  display: none;
  font-size: 2rem;
  color: #004d40;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    
  }

  .main-nav.active ul {
    display: flex;
  }

  .main-nav ul li {
    padding: 0.5rem 1.5rem;
  }

  .main-nav li:not(:last-child)::after {
    display: none;
  }
}


/* === ABOUT === */


.about {
  background-color: #f5f7f8;
  padding: 4rem 2rem;
}


.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  text-align: justify;
}


.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #004d40;
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about-text .about-note {
  font-style: italic;
  color: #005f56;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.about-image img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
}

.about-note {
  margin-bottom: 0; /* lub nawet - zmniejsz do potrzeb */
}

.about-note i {
  color: #005f56;
  margin-right: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #004d40;
}

/* === SERVICES === */
.services {
  padding: 2rem 2rem;
  background-color: #ffffff;
}

.services h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: #1b5e20;
}

.services-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.service-highlight {
  flex: 1 1 100px;
  max-width: 500px;
  padding: 2rem;
  border-radius: 1rem;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.service-highlight:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  filter: brightness(1.05);
}


#important {
  transition: all 0.3s ease;
}

.szkolenia:hover #important {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  transform: scale(1.01);
}


.rozliczenia {
  background-color: #1b5e20;
}
   
.szkolenia {
  background-color: #1b5e20;
}

.service-highlight i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

@media (max-width: 768px) {
  .services-top {
    flex-direction: column;
    align-items: center; /* <--- TO DODAJ */
  }
    .service-highlight {
    width: 90%;         /* Wszystkie będą równe */
    max-width: 500px;   /* Nadal nie większe niż desktopowa wersja */
  }
}
.service-highlight h3 {
  margin-bottom: 1rem;
}

.services-rest {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-box {
  flex: 1 1 280px;
  max-width: 300px;
  background-color: #f0f0f0;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background-color 0.3s;
}

.service-box:hover {
  background-color: #e0e0e0;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-box i {
  font-size: 1.6rem;
  color: #1b5e20;
}

.service-box h4 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
}

.toggle-icon {
  font-size: 1.5rem;
  color: #004d40;
  font-weight: bold;
  margin-left: 0.5rem;
}

.service-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  transition: all 0.3s ease;
}

.service-box.active .service-desc {
  height: auto !important;
  opacity: 1 !important;
  padding-top: 1rem !important;
  overflow: visible !important;
}

.service-box.active .toggle-icon {
  content: "-";
}

@media (max-width: 768px) {
  .services-top {
    flex-direction: column;
    
  }
}

@media (max-width: 768px) {
  .timeline {
    flex-direction: column;
  }

  .timeline-arrow {
    transform: rotate(90deg);
    margin: 0; /* zamiast 1rem 0 */
    font-size: 1.8rem; /* opcjonalnie trochę mniejsze */
  }
}

/* === HOW TO START SECTION === */
.how-to-start {
background-color: #f5f7f6;
padding: 2rem 2rem;
text-align: center;
}


.how-to-start h2 {
font-size: 2.4rem;
color: #004d40;
margin-bottom: 1rem;
}


.how-to-start .subtitle {
font-size: 1.2rem;
margin-bottom: 3rem;
color: #333;
}


.timeline {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
margin-bottom: 2rem;
position: relative;
}


.step {
background-color: white;
padding: 2rem 1.5rem;
border-radius: 1rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
flex: 1 1 280px;
max-width: 320px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
position: relative;
height: 280px;
}


.step:hover {
transform: translateY(-6px);
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


.circle {
width: 60px;
height: 60px;
background-color: #004d40;
color: white;
font-weight: bold;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin: 0 auto 1rem;
position: relative;
}


.step h3 {
font-size: 1.2rem;
margin-bottom: 0.75rem;
position: relative;
}


.step p {
font-size: 1rem;
line-height: 1.5;
color: #333;
}


.arrow {
font-size: 2rem;
color: #004d40;
animation: arrowMove 1s infinite alternate;
}




/* === TESTIMONIALS SECTION === */

.testimonials {
background-color: #ffffff;
padding: 2rem 2rem;
text-align: center;
margin: 0 auto;
max-width: 1200px;
}


.testimonials h2 {
font-size: 2.4rem;
color: #1b5e20;
margin-bottom: 1rem;
}


.testimonials .subtitle {
font-size: 1.2rem;
margin-bottom: 3rem;
color: #333;
}


.testimonials-grid {
display: grid;
grid-template-columns: 1fr;
gap: 2rem;
}


@media (min-width: 768px) {
.testimonials-grid {
grid-template-columns: repeat(2, 1fr)
}
}

@media (max-width: 768px) {
  .opinie-grid {
    display: grid;
    grid-template-columns: 1fr !important; /* wymuszamy jedną kolumnę */
    gap: 20px;
  }

  .testimonial {
    min-width: auto !important; /* usuwamy minimalną szerokość */
    width: 100%;
  }

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



.testimonial {
background-color: #ffffff;
padding: 2rem 1.5rem;
border-radius: 1rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
display: flex;
flex-direction: column;
justify-content: space-between;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.testimonial:hover {
transform: translateY(-6px);
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


.quote {
font-size: 1.05rem;
font-style: italic;
position: relative;
padding-left: 1.5rem;
color: #333;
text-align: justify;
}


.quote::before {
content: "\201C";
font-size: 2rem;
position: absolute;
left: 0;
top: -0.2rem;
color: #1b5e20;
}


.client {
display: flex;
align-items: center;
gap: 1rem;
margin-top: 1rem;

}


.client img {
height: 40px;
padding: 0.2rem;
border-radius: 5px;
display: inline-block;
}

.client a {
text-decoration: none;
}

.client span {
font-size: 0.95rem;
font-weight: 500;
color: #1b1b1b;
text-align: left;
display: inline-block;
padding-left: 10px;
font-style: italic;
}



.btn {
  display: inline-block;
  background-color: #1b5e20;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #14573a;
}

.opinie-button-wrapper {
  text-align: center;
  margin-top: 2rem;
}

/* === RECOMMENDATION SECTION === */
.recommendation {
  background-color: #f5f7f6;
  padding: 4rem 2rem;
  text-align: center;
}

.recommendation .container {
margin: 0 auto;
max-width: 1200px;
padding: 0 2rem;
}


.recommendation h2 {
font-size: 2.4rem;
color: #004d40;
margin-bottom: 2rem;
}


.recommendation-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 2rem;
background-color: #ffffff;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
text-align: center;
}


.recommendation-logo img {
max-width: 180px;
height: auto;
margin-bottom: 1rem;
}


.recommendation-text {
max-width: 700px;
}


.recommendation-text p {
font-size: 1.1rem;
color: #333;
margin-bottom: 1rem;
}


.recommendation-logo img {
  max-height: 100px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.recommendation-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  cursor: pointer;
}


/* === CONTACT SECTION === */
.contact {
background-color: #ffffff;
padding:2rem 0;
text-align: center;
}

.contact-heading {
  text-align: center;
  font-size: 2.4rem;
  color: #1b5e20;
  margin-bottom: 1rem;
  padding: 2rem 2rem;
}

.contact-description {
  margin-bottom: 2rem;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.5;
}

.contact .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}


.contact-content {
display: flex;
flex-direction: column;
gap: 3rem;
}


@media (min-width: 992px) {
.contact-content {
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
}


.contact-info,
.contact-form {
flex: 0 0 48%;
}
}


.contact-info {
color: #1b1b1b;
text-align: center;
}


.contact-info h2 {
font-size: 2.4rem;
color: #1b5e20;
margin-bottom: 1rem;
}


.contact-info p {
font-size: 1.1rem;
margin-bottom: 1.5rem;
}

.contact-data {
align-items: center;
}


.contact-data a {
display: inline-block;
padding: 0.5rem 1rem;
color: #1b5e20;
border: 2px solid #1b5e20;
border-radius: 8px;
font-weight: bold;
text-decoration: none;
transition: background-color 0.3s ease, color 0.3s ease;
}


.contact-data a:hover {
background-color: #1b5e20;
color: #ffffff;
}


.contact-table {
  display: table;
  width: 100%;
  margin-top: 2rem;
  border-spacing: 0.75rem 1rem;
}

.contact-row {
  display: table-row;
}

.contact-label,
.contact-value {
  display: table-cell;
  vertical-align: middle;
  font-size: 1.1rem;
}

.contact-label {
  font-weight: bold;
  white-space: nowrap;
  padding-right: 1rem;
  text-align: right;
}

.contact-value a {
  color: #0e3b28;
  font-weight: 600;
  background-color: #e8f5e9;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  border: 2px solid #0e3b28;
  text-decoration: none;
  display: inline-block;
  text-align: left;
}

.contact-value a:hover {
  background-color: #d2ede2;
}


.contact-form form {
display: flex;
flex-direction: column;
gap: 1.25rem;
background-color: #ffffff;
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
transition: box-shadow 0.3s ease;
}


.contact-form form:hover {
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}


.contact-form label {
font-weight: 600;
color: #1b1b1b;
margin-bottom: 0.25rem;
display: block;
text-align: left;
}


.contact-form input,
.contact-form textarea {
padding: 0.75rem 1rem;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 1rem;
font-family: inherit;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}


.contact-form input:focus,
.contact-form textarea:focus {
border-color: #1b5e20;
outline: none;
box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.2);
}


.contact-form textarea {
min-height: 150px;
}


.contact-form button {
background-color: #1b5e20;
color: #ffffff;
border: none;
padding: 0.75rem 1.5rem;
font-size: 1rem;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
align-self: flex-start;
}


.contact-form button:hover {
background-color: #174f1a;
transform: translateY(-2px);
}



/* === FOOTER === */
.site-footer {
  background-color: #0e3b28;
  color: #ffffff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.2;

  font-style: italic;
}

@media (max-width: 480px) {
  .site-footer p {
    display: block;
  }
}

@media (min-width: 481px) {
  .site-footer p {
    display: inline;
  }
}



/* === FOOTER LINK === */
.site-footer a {
  color: #b2dfdb;
  text-decoration: underline;
  font-style: normal;
}

/* === FORM CONSENT === */
.form-consent {
  font-size: 0.85rem;
  margin-top: 1rem;
  color: #333;
}

.form-consent a {
  color: #004d40;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #004d40;
  color: white;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.cookie-banner a {
  color: #b2dfdb;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #ffffff;
  color: #004d40;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

/* PODSTRONA OPINIE */

.opinie-page {
  padding: 4rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.opinie-section h2 {
  font-size: 2.5rem;
  color: #14573a;
  margin-bottom: 0.5rem;
}

.opinie-section p {
  margin-bottom: 2rem;
  color: #333;
}

.opinie-grid {
    display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  display: block;
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.testimonial img {
  height: 40px;
  margin-top: 1rem;
  opacity: 0.9;
  object-fit: contain;
}

@media (max-width: 480px) {
  .contact-table {
    display: block;
  }

  .contact-row {
    display: block;
    margin-bottom: 1rem;
  }

  .contact-label, .contact-value {
    display: block;
    text-align: center;
    font-size: 1rem;
  }

  .contact-label {
    font-weight: bold;
    margin-bottom: 0.25rem;
  }

  .google-map iframe {
    height: 200px;
  }
}