html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #2D2D2D;
    display: flex;
    flex-direction: column;
    font-size: 16px; /* Base font size */
    line-height: 1.6; /* Base line height */
  }

html {
    scroll-behavior: smooth;
}
  
  main.main_body {
    flex: 1 0 auto; /* rośnie i wypełnia dostępną przestrzeń */
    padding: 0 6rem; /* Zwiększony poziomy padding dla głównej treści na desktopie */
  }
  
  .footer {
    flex-shrink: 0; /* nie ściska się przy małej wysokości */
    background-color: #2D2D2D;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
  }

/* General link styling */
a {
    color: inherit; /* Links will be the same color as surrounding text */
    text-decoration: none;
    border-bottom: 1px dotted rgba(245, 158, 11, 0.6); /* Subtle dotted underline in accent color */
    padding-bottom: 1px; /* Space for the dotted line */
    transition: color 0.2s ease, border-bottom-color 0.2s ease, border-bottom-style 0.2s ease;
}

a:hover {
    color: #F59E0B; /* Accent color on hover */
    border-bottom-color: #F59E0B;
    border-bottom-style: solid; /* Underline becomes solid on hover */
}

p ,li, blockquote{ /* Removed h1, h2 from here */
    color:#FFFFFF;
}

/* Added new rules for headings and paragraphs */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold; /* Or a specific weight like 600 or 700 */
    color: #FFFFFF; /* Ensuring headings are also white */
}

/* General H1 style for the page (e.g., if used elsewhere as a main page title) */
h1 {
    font-size: 2.5rem; /* approx 40px */
    margin-bottom: 0.5em;
}

/* Specific style for H1 within the slogan/hero section */
.slogan h1 {
    font-size: 1.5rem; /* approx 24px, to match previous .slogan h2 style */
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Copied from previous .slogan h2 */
    line-height: 1.4; /* Adjust line-height for better readability if needed */
    margin-bottom: 0; /* Reset margin if not needed here */
}


h2 {
    font-size: 1.75rem; /* approx 28px */
    margin-bottom: 0.5em;
}

p {
    font-size: 1rem; /* approx 16px */
    margin-bottom: 1em;
}

/* CTA Button Styles */
.cta-section {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: #F59E0B; /* Accent color */
    color: #2D2D2D; /* Dark text for contrast on yellow */
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border-bottom: none; /* Override general link style */
}

.cta-button:hover {
    background-color: #e08e0b; /* Darker accent for hover */
    color: #FFFFFF;
    transform: translateY(-2px);
    border-bottom: none; /* Override general link style */
}


/* Dodane reguły dla odstępów sekcji */
.service, .about, .contact {
    padding-top: 2rem; /* Odstęp nad zawartością wewnątrz sekcji */
    margin-bottom: 3rem; /* Odstęp pod sekcją, do następnego bloku */
    max-width: 1140px; /* Maksymalna szerokość dla sekcji tekstowych */
    margin-left: auto; /* Wyśrodkowanie sekcji */
    margin-right: auto; /* Wyśrodkowanie sekcji */
}

/* Social Links Styling */
.social-links {
    margin-top: 1.5rem;
    text-align: left; /* Or center if you prefer */
}

.social-links p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.social-link {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    margin-right: 1.5rem; /* Space between social links */
    margin-bottom: 0.5rem; /* Space for wrapping */
    text-decoration: none;
    color: #FFFFFF; /* White text */
    font-size: 1rem;
    border-bottom: 1px dotted rgba(245, 158, 11, 0.6); /* Keep consistent with other links */
    padding-bottom: 2px;
}

/* Removed .social-link .icon-placeholder styles */

/* New style for actual icons */
.social-icon {
    width: 1.5rem; /* Recommended size (24px) */
    height: 1.5rem; /* Recommended size (24px) */
    margin-right: 0.5rem; /* Space between icon and text */
    vertical-align: middle; /* Ensures good alignment if parent wasn't flex */
}

.social-link:hover {
    color: #F59E0B; /* Accent color on hover */
    border-bottom-color: #F59E0B;
    border-bottom-style: solid;
}

/* Removed .social-link:hover .icon-placeholder styles */


/* .testimonial-wrapper już ma margin: 3rem auto; co zapewnia odpowiednie odstępy pionowe */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style-type: none;
     margin: 0;
    padding: .5em  1em; 
    background: #2D2D2D;
    position: relative; /* Added for positioning mobile menu */
}
/* #333 */

.nav_links  {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-left: auto; /* to zapewnia maksymalne przesunięcie w prawo */   
}


.logo {
    /* margin-left: auto; Removed this to keep logo on the left */
    color:#F59E0B;
    text-decoration: none;
    border-bottom: none; /* Remove general link underline */
    padding-bottom: 0; /* Reset padding for underline */
    transition: color 0.2s ease;
}

.logo:hover {
    color: white; /* Accent color on hover */
    border-bottom: none; /* Ensure no underline on hover */
    padding-bottom: 0; /* Ensure no padding for underline on hover */
}


.nav_links a {
    color: white;
    text-decoration: none;
    border-bottom: none; /* Remove general link underline */
    padding-bottom: 0; /* Reset padding for underline */
    transition: color 0.2s ease;
  }

.nav_links a:hover {
    color: #F59E0B; /* Accent color on hover */
    border-bottom: none; /* Ensure no underline on hover */
    padding-bottom: 0; /* Ensure no padding for underline on hover */
}



 /*tlo sekcji */ 


/* Hamburger Menu Styles */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 28px; /* Adjusted size */
    height: 22px; /* Adjusted size */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's above other elements */
    margin-left: auto; /* Push hamburger to the right if nav_links is hidden */
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger active state (X icon) */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg); /* Adjusted for new height */
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg); /* Adjusted for new height */
}


/* Mobile – hamburger menu (prosty przykład) AND Added responsive font size adjustments */
/* Scalono dwa bloki @media (max-width: 768px) */
@media (max-width: 768px) {
    main.main_body { /* Dostosowanie paddingu dla mniejszych ekranów */
        padding: 0 1rem; /* To ustawienie pozostaje dla mobile */
    }

    .nav_links {
      display: none; /* Hide nav links by default on mobile */
      flex-direction: column;
      position: absolute;
      top: 100%; /* Position below the navbar */
      left: 0;
      width: 100%;
      background-color: #333; /* Slightly different background for dropdown */
      padding: 0.2em 0; /* Reduced padding to bring items closer to navbar */
      box-shadow: 0px 3px 5px rgba(0,0,0,0.2);
      z-index: 1000;
      align-items: center; /* Center items in dropdown */
    }

    .nav_links.active {
        display: flex; /* Show when active */
    }

    .nav_links li {
        margin: 0.5em 0; /* Spacing for mobile links */
        width: 100%;
        text-align: center;
    }
    
    .nav_links li a {
        padding: 0.5em 1em;
        display: block; /* Make whole area clickable */
    }

    .hamburger-menu {
      display: flex; /* Show hamburger on mobile */
    }

    h1 {
        font-size: 2rem; /* approx 32px */
    }

    /* Adjust .slogan h1 for mobile if the general h1 style is too big */
    .slogan h1 {
        font-size: 1.25rem; /* approx 20px, to match previous .slogan h2 mobile style */
    }

    h2 {
        font-size: 1.5rem; /* approx 24px */
    }
    /* .slogan h2 rule is no longer needed here as it's now .slogan h1 */
    /*
    .slogan h2 {
        font-size: 1.25rem; 
    }
    */
    p {
        font-size: 0.95rem; /* Slightly smaller on mobile for better readability if needed */
    }
}

  @media (max-width: 600px) {
    .testimonial-card {
      padding: 1rem;
      font-size: 0.9rem; /* This was already here, ensure it's 0.9rem relative to 16px base */
    }
  
    .testimonial-author {
      font-size: 0.8rem; /* This was already here, ensure it's 0.8rem relative to 16px base */
    }
  }


.montserrat-handyman {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
  }         


.image-section {
    background-image: url("img/background_handyman_picture_compressed_336.webp"); /* bez / na początku */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 70vh; /* Zmniejszona wysokość dla desktopu */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: right;
}

@media (max-width: 768px) {
    .image-section {
        height: 80vh; /* Można dostosować wysokość dla mobile, jeśli 70vh jest za mało */
    }
}

.slogan {
    display:flex;
    color:white;
}

/* This rule for .slogan h2 is now covered by .slogan h1 */
/*
.slogan h2 {
    font-size: 1.5rem; 
    max-width: 800px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
  }
*/
  




/* SLIDER */
.testimonial-wrapper {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 3rem; /* miejsce na przyciski */
    height: auto; /* ustalona wysokość! */
    box-sizing: border-box;
  }
  
  .testimonial-slider {
    overflow: hidden;
    width: 100%;
    height: auto; /* pilnuj wysokości */
  }
  
  .testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: auto;
  }
  
  .testimonial-card {
    flex: 0 0 100%;
    padding: 1rem 2rem;
    background: #2D2D2D;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 180px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .testimonial-author {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
  }

  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2D2D2D; /* Changed background to match page background */
    border: 1px solid #F59E0B; /* Added border for visibility */
    color: #F59E0B; /* Changed icon color for contrast */
    font-size: 1.2rem; /* mniejszy rozmiar ikony */
    padding: 0.25rem 0.5rem; /* mniejszy rozmiar przycisku */
    cursor: pointer;
    border-radius: 4px; /* Changed to rectangular with slightly rounded corners */
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease; /* Added transitions for hover effects */
  }
  
  .prev:hover, .next:hover {
    opacity: 1;
    background-color: #F59E0B; /* Optional: change background on hover */
    color: #2D2D2D; /* Optional: change icon color on hover */
  }
  
  .prev { left: 5px; }
  .next { right: 5px; }
  

  /* @keyframes scrollTestimonials {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
   */

/* .nav_el > a {
    display: inline-block;
    /* float: right; */
    /* padding: 0.5em 1em;
    list-style: none;
    min-width:70px;

 */

.footer .footer__links a {
    color: white;
    text-decoration: none;
    border-bottom: none; /* Remove general link underline */
    padding-bottom: 0; /* Reset padding for underline */
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    margin: 0 0.5rem; /* Added horizontal margin for spacing */
}

.footer .footer__links a:hover {
    color: #F59E0B; /* Accent color on hover */
    text-decoration-color: #F59E0B; /* Change decoration color on hover */
  }
















