@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    font-family: "Inter", sans-serif;
    font-size: 18px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    background-color: var(--light-bg-color);
    color: var(--text-color);
}

:root{
    --primary-color: #448943 ;
    --accent-color: rgb(163, 177, 138) ;
    --text-color: #000 ;
    --light-bg-color: rgb(245, 247, 243) ;
    --transparent-bg: rgba(245, 247, 243, 0.65);
    --secondary-color: #26861c;
}

/* Header styles */
header{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--light-bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.logo::before {
    content: "";
    display: inline-block;
    width: 42px;
    height: 100px;
    background: url("images/logo.png") center center / cover no-repeat;
    transform: rotate(-15deg);
    vertical-align: middle;
    margin-right: 10px;
}

.logo{
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
}

nav{
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .link{
    transition: all 0.3s ease !important;
    font-weight: 500;
}

nav .link:hover{
    color: var(--accent-color);
}

nav .button:hover{
    color: white;
}


.button{
    padding: 10px 30px;
    border: 2px solid;
    transition: all 0.3s ease !important;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.button:hover{
    scale: 1.05;
}

.header-button{
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
}

.header-button:hover{
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 2px 2px var(--accent-color);
}

section{
    width: 100%;
    padding: 2rem;
}

footer{
    width: 100%;
}

/* Hero styles */
#hero{
    align-items: center;
    text-align: center;
    align-content: center;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #eaf2df;
    background: linear-gradient(39deg, rgba(234, 242, 223, 1) 0%, rgba(180, 191, 155, 1) 55%, rgba(204, 237, 173, 1) 96%);
    padding: 10rem 2rem 3rem 2rem;
    border-radius: 15px 15px 0 0;
    width: 100%;
}

.hero-content *{
    background: none;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.2;
}

.hero-content p{
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.4;
}

.hero-button{
    margin-top: 15px;
    background-color: var(--primary-color);
    color: var(--light-bg-color);
    border: none;
}

.hero-button:hover{
    background-color: white;
    color: var(--primary-color);
}

/* About styles */
#about{
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 0 auto;
}

.about-content{
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.heading{
    color: var(--primary-color);
    font-weight: 900;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-content h2{
    font-size: 2.5rem;
    color: var(--text-color);
    line-height: 1.2;
}

.about-content .secondary{
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-content h3{
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 1.5rem;
}

.about-content p:not(.heading){
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.about-content ul{
    margin-left: 1rem;
}

.about-content li{
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-content li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 20px;
    height: 20px;
    background: url("images/arrow-right.png") center center / cover no-repeat;
}

#about .img-container{
    width: 50%;
    height: auto;
}

#about img{
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#about a{
    width: 200px;
    margin-top: 1rem;
}

/* Services styles */
#services{
    background: #eaf2df;
    background: linear-gradient(39deg, rgba(234, 242, 223, 1) 0%, rgba(180, 191, 155, 1) 55%, rgba(204, 237, 173, 1) 96%);
}

.services-content, .services-content *{
    background: none;
}

.services-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto;
}

.services-content h2{
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.cards-container{
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.card{
    padding: 1.5rem;
    width: 350px;
    min-height: 400px;
    background-color: var(--light-bg-color);
    border-radius: 8px;
    box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover{
    box-shadow: 0 0 10px 5px var(--primary-color);
    translate: 0 -5px;
}

.card h3{
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.card .price{
    color: rgb(27, 27, 27);
    font-size: 1.4rem;
    font-weight: 800;
    font-family:"Inter", sans-serif;
    margin-bottom: 0.5rem;
}

.price-before::before{
    content: "250zł";
    text-decoration: line-through;
    color: grey;
    margin-right: 10px;
}

.card-list{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.card-list li{
    padding-left: 2rem;
    position: relative;
    line-height: 1.4;
}

.card-list li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 20px;
    height: 20px;
    background: url("images/checks.png") center center / cover no-repeat;
}

.card p{
    font-style: italic;
    color: rgb(100, 100, 100);
    font-size: 0.85rem;
    margin: 10px 0;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 40px;
    margin: 60px 0;
}

.stat-box {
    text-align: center;
    width: 200px;
}

.stat-box strong {
    font-size: 40px;
    color: var(--primary-color);
    display: block;
}

.stat-box span {
    font-size: 16px;
    color: black;
    font-weight: 600;
}

.services-content p.note{
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Testimonials styles */
#testimonials{
    padding: 4rem 2rem;
}

.testimonials-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-content h2{
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    text-align: center;
}

.testimonials-container{
    display: flex;
    gap: 2rem;
    max-width: 100%;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.testimonials-container::-webkit-scrollbar {
    height: 8px;
}

.testimonials-container::-webkit-scrollbar-track {
    background: transparent;
}

.testimonials-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.testimonials-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

.testimonial-card{
    background: var(--light-bg-color);
    border-radius: 8px;
    width: 300px;
    min-width: 300px;
    padding: 1.5rem;
    box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease !important;
    height: auto;
    flex-shrink: 0;
}

.testimonial-card:hover{
    box-shadow: 0 0 10px 5px var(--primary-color);
    translate: 0 -5px;
}

.testimonial-card h3{
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
}

.testimonial-card h3::before{
    content: url("images/user.png");
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 5px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background-color: rgb(224, 219, 219);
}

.stars {
    display: flex;
    margin-bottom: 1rem;
}

.stars::before {
    content: "★★★★★";
    color: #FFD700;
    font-size: 1.2rem;
}

.testimonial-card p.testimonial-text{
    font-style: italic;
    color: rgb(100, 100, 100);
    font-size: 0.9rem;
    line-height: 1.5;
}

.testimonial-card .author{
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Contact styles */
#contact{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 0 auto;
}

.contact-content{
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-content h2{
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.alternate-contact{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.alternate-contact h4{
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.alternate-contact a{
    font-size: 1.2rem;
    color: var(--text-color);
    text-decoration: underline;
    transition: color 0.3s ease !important;
}

.alternate-contact a:hover{
    color: var(--primary-color);
}

#contact .img-container{
    width: 40%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contact img{
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.form-container{
    display: grid;
    gap: 1rem;
    margin-right: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px 2px rgba(163, 177, 138, 0.38);
    max-width: 750px;
    height: auto;
}

#contact-form{
    display: grid;
    grid-template-areas: "heading heading"
                         "first last"
                         "email phone"
                         "message message"
                         "submit none";
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#contact-form h5{
    font-size: 1.5rem;
    margin-bottom: 1rem;
    grid-area: heading;
}

.input1, .input2, .input3, .input4, textarea{
    padding: 20px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    background-color: rgba(163, 177, 138, 0.2);
    transition: background-color 0.3s ease !important;
}

.input1, .input2, .input3, .input4, textarea{
    outline: none;
}

.input1:focus, .input2:focus, .input3:focus, .input4:focus, textarea:focus{
    background-color: rgba(163, 177, 138, 0.3);
}

textarea{
    height: 7rem;
    resize: vertical;
    grid-area: message;
}

.input1{grid-area: first;}
.input2{grid-area: last;}
.input3{grid-area: phone;}
.input4{grid-area: email;}

.send-button{
    grid-area: submit;
    width: 60%;
    justify-self: start;
}
    
.send-button:hover{
    color: var(--primary-color);
    box-shadow: 0 0 2px 2px var(--primary-color);
    cursor: pointer;
    border: 2px solid var(--primary-color);
}

/* Footer styles */
footer {
    padding: 3rem 1rem;
    background-color: var(--accent-color);
    color: white;
}

footer *{
    background: none;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-section.about{
    max-width: 400px;
}

.footer-section p,
.footer-section li,
.footer-section a {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}

.footer-section a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.footer-section ul{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* MEDIA QUERIES - RESPONSYWNOŚĆ */

/* Tablet landscape - 1024px and below */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .contact-content h2 {
        font-size: 3rem;
    }
    
    .cards-container {
        gap: 1.5rem;
    }
    
    .card {
        width: 300px;
    }
    
    .stats {
        gap: 30px;
    }
    
    .stat-box {
        width: 150px;
    }
    
    .stat-box strong {
        font-size: 30px;
    }
    
    .testimonial-card {
        width: 280px;
        min-width: 280px;
    }
}

/* Tablet portrait - 768px and below */
@media (max-width: 768px) {
    * {
        font-size: 16px;
    }
    
    /* Header */
    header {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hero */
    #hero {
        align-items: flex-start;
        height: auto;
        min-height: 30vh;
        padding: 1rem;
    }
    
    .hero-content {
        padding: 5rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* About */
    #about {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .about-content, #about .img-container {
        width: 100%;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .heading {
        text-align: center;
    }
    
    .about-content a {
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Services */
    .services-content h2 {
        font-size: 1.8rem;
    }
    
    .cards-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .card {
        width: 100%;
        max-width: 350px;
        min-height: auto;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stat-box {
        width: 200px;
    }
    
    /* Testimonials */
    .testimonials-content h2 {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        width: 260px;
        min-width: 260px;
    }
    
    .testimonial-card h3::before {
        width: 30px;
        height: 30px;
        padding: 3px;
    }
    
    .testimonial-card h3 {
        font-size: 1.1rem;
        padding-left: 2.5rem;
    }
    
    /* Contact */
    #contact {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-content {
        width: 100%;
    }
    
    .contact-content h2 {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .alternate-contact {
        text-align: center;
    }
    
    .alternate-contact h4 {
        font-size: 1.2rem;
    }
    
    .alternate-contact a {
        font-size: 1rem;
    }
    
    #contact .img-container {
        width: 100%;
        max-height: 300px;
    }
    
    .form-container {
        margin-right: 0;
        padding: 1.5rem;
    }
    
    #contact-form {
        grid-template-areas: "heading heading"
                             "first first"
                             "last last"
                             "email email"
                             "phone phone"
                             "message message"
                             "submit submit";
        grid-template-columns: 1fr;
    }
    
    .send-button {
        width: 100%;
        justify-self: center;
    }
    
    /* Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section.about {
        max-width: 100%;
    }
}

/* Mobile landscape - 600px and below */
@media (max-width: 600px) {
    section {
        padding: 1.5rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 3rem 1rem;
    }
    
    .button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
    }
    
    .contact-content h2 {
        font-size: 2rem;
    }
    
    .alternate-contact h4 {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .input1, .input2, .input3, .input4, textarea {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
        width: 240px;
        min-width: 240px;
    }
    
    .testimonial-card h3::before {
        width: 25px;
        height: 25px;
        padding: 2px;
    }
    
    .testimonial-card h3 {
        font-size: 1rem;
        padding-left: 2rem;
    }
    
    .stat-box strong {
        font-size: 24px;
    }
    
    .stat-box span {
        font-size: 14px;
    }
}

/* Mobile portrait - 480px and below */
@media (max-width: 480px) {
    * {
        font-size: 14px;
    }
    
    header {
        padding: 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    nav {
        gap: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .about-content h2 {
        font-size: 1.3rem;
    }
    
    .about-content h3 {
        font-size: 1.2rem;
    }
    
    .contact-content h2 {
        font-size: 1.8rem;
    }
    
    .services-content h2,
    .testimonials-content h2 {
        font-size: 1.5rem;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .stat-box {
        width: 150px;
    }
    
    .stat-box strong {
        font-size: 20px;
    }
    
    .stat-box span {
        font-size: 12px;
    }
    
    .testimonial-card {
        width: 220px;
        min-width: 220px;
        padding: 0.8rem;
    }
    
    .testimonial-card h3::before {
        width: 20px;
        height: 20px;
        padding: 2px;
    }
    
    .testimonial-card h3 {
        font-size: 0.9rem;
        padding-left: 1.8rem;
    }
    
    .testimonial-card p.testimonial-text {
        font-size: 0.8rem;
    }
    
    .stars::before {
        font-size: 1rem;
    }
}

/* Very small screens - 360px and below */
@media (max-width: 360px) {
    section {
        padding: 1rem 0.5rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .contact-content h2 {
        font-size: 1.5rem;
    }
    
    .form-container {
        padding: 0.5rem;
    }
    
    .input1, .input2, .input3, .input4, textarea {
        padding: 10px;
    }
    
    .card, .testimonial-card {
        padding: 0.5rem;
    }
    
    .testimonial-card {
        width: 200px;
        min-width: 200px;
    }
    
    .testimonial-card h3::before {
        width: 18px;
        height: 18px;
        padding: 1px;
    }
    
    .testimonial-card h3 {
        font-size: 0.8rem;
        padding-left: 1.5rem;
    }
    
    .testimonial-card p.testimonial-text {
        font-size: 0.7rem;
    }
    
    .footer-container {
        padding: 0 0.5rem;
    }
}


/* animations */
#hero, #hero h1, #hero p, #hero .button {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#hero.visible, #hero h1.visible, #hero p.visible, #hero .button.visible {
  opacity: 1;
  transform: translateY(0);
}
