/* ---------- root settings ---------- */
/* ---------- root on mobile ---------- */
:root {
    --clr-primary-900: hsl(0, 0%, 0%);
    --clr-primary-800: hsl(0, 0%, 10%);
    --clr-primary-700: hsl(189, 43%, 15%);
    --clr-primary-500: hsl(41, 82%, 54%);

    --clr-neutral-100: hsl(0, 0%, 100%);
    --clr-neutral-200: hsl(0, 0%, 92%);
    --clr-neutral-300: hsl(0, 0%, 85%);
    --clr-neutral-400: hsl(188, 8%, 61%);
    --clr-neutral-500: hsl(190, 3%, 45%);
    --clr-neutral-600: hsl(195, 2%, 42%);
    --clr-neutral-700: hsl(204, 4%, 22%);

    --ff-primary: 'Titillium Web', Arial, Helvetica, sans-serif;
    --ff-heading: 'Roboto Slab', Arial, Helvetica, sans-serif;
    --ff-blowup: 'Roboto Slab', Arial, Helvetica, sans-serif;
    --ff-nav: 'Titillium Web', Arial, Helvetica, sans-serif;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-semi-bold: 600;
    --fw-bold: 700;

    --fs-300: 0.875rem;
    --fs-400: 1rem;
    --fs-500: 1.5rem;
    --fs-600: 1.75rem;
    --fs-700: 2rem;
    --fs-800: 3.5rem;

    --ff-body: var(--ff-primary);
    --ff-footer: var(--ff-primary);

    --fs-body-primary: var(--fs-400);
    --fs-body-xs: var(--fs-300);
    --fs-footer: var(--fs-500);
    --fs-footer-xs: var(--fs-400);
    --fs-nav: var(--fs-500);
    --fs-heading-primary: var(--fs-700);
    --fs-heading-secondary: var(--fs-600);
  }

/* ---------- root on desktop ---------- */
@media (min-width: 50rem) {
    :root {
        --fs-300: 0.875rem;
        --fs-400: 1.1rem;
        --fs-500: 1.75rem;
        --fs-600: 2.25rem;
        --fs-700: 3.0rem;   
        
        --fs-body-primary: var(--fs-400);
        --fs-body-xs: var(--fs-300);
        --fs-nav: var(--fs-400);
        --fs-heading-primary: var(--fs-700);
        --fs-heading-secondary: var(--fs-600);
        --fs-footer: var(--fs-400);
        --fs-footer-xs: var(--fs-400);
    }
    .grid2 {
        display: grid;
        gap: 2rem;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
    }

}



/* ---------- utility classes ---------- */
.clr-bckgrnd-neutral-200 {
    background: var(--clr-neutral-200);
}
.clr-bckgrnd-primary-700 {
    background: var(--clr-primary-700);
}
.clr-bckgrnd-primary-800 {
    background: var(--clr-primary-800);
}
.clr-neutral-300 {
    color: var(--clr-neutral-300)
}
.clr-neutral-400 {
    color: var(--clr-neutral-400)
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; /*added line */
    border: 0;
}
.text-primary-700 {
    color: var(--clr-primary-700)
}
.fs-body-primary {
    font-size: var(--fs-body-primary);
}
.fs-body-xs {
    font-size: var(--fs-body-xs);
}
.fs-heading-primary {
    font-size: var(--fs-primary-heading);
}
.fs-heading-secondary {
    font-size: var(--fs-secondary-heading);
}
.fw-700 {
    font-weight: 700;
}
.fs-blowup-800 {
    font-size: var(--fs-800);
    margin: 0;
  }
.h1 {
    font-size: var(--fs-700);
    margin: 0;
  }
.h2 {
    font-size: var(--fs-600);
    margin: 0;
    padding-bottom: 0.75rem;
  }
.h3 {
    font-size: var(--fs-500);
    margin: 0;
    padding-bottom: 0.75rem;
  }



/* ---------- general styling ---------- */
html, body {
    height:100%;
  }
html {
    background: var(--clr-neutral-200);
}



/* ---------- body styling desktop ---------- */
.ff-blowup {
    font-family: var(--ff-blowup);
}
.ff-body {
    font-family: var(--ff-body);
    color: var(--clr-primary-800);
}
.ff-footer {
    font-family: var(--ff-body);
    color: var(--clr-primary-800);
}
.ff-heading {
    font-family: var(--ff-heading);
    color: var(--clr-primary-800);
}
.ff-heading-primary500 {
    font-family: var(--ff-heading);
    color: var(--clr-primary-500);
}
.ff-nav {
    font-family: var(--ff-nav);
    color: var(--clr-primary-800);
}
.grid1-75p{
    display: grid;
    gap: 2rem;
    width: 75%;
}
.grid2 {
    display: grid;
    gap: 2rem;
}
.fixed {
    position: -webkit-fixed;
    position: fixed;
}
.container {
    --max-width: 1200px;
    --padding: 1rem;

    width: min(var(--max-width), 100% - (var(--padding) *2));
    margin-inline: auto;

    border: 0em solid var(--clr-neutral-200);
    background: var(--clr-neutral-200);
}
.container-sticky {
    --max-width: 1200px;
    --padding: 1rem;
   
    width: min(var(--max-width), 100% - (var(--padding) *2));
    margin-inline: auto;

    border: 0em solid var(--clr-neutral-200);
    background: var(--clr-neutral-200);
    transition: all 0.5s;
}
.hide {
    opacity:0;
}
.show {
    opacity:1;
}
.content_main1 {
    padding-top: 0rem;
    padding-bottom: 3rem;
    border: 0em solid var(--clr-neutral-200);
    background: var(--clr-neutral-200);
    transition: 1s ease;
}
.content_main1:hover {
    padding-top: 2rem;
    padding-bottom: 5rem;
    border: 0em solid var(--clr-neutral-300);
    background: var(--clr-neutral-300);
}
.content_main1-500 {
    padding-top: 0rem;
    padding-bottom: 3rem;
    border: 0em solid var(--clr-neutral-200);
    background: var(--clr-neutral-200);
    transition: 1s ease;
}
.content_main1-500:hover {
    padding-top: 2rem;
    padding-bottom: 5rem;
    border: 0em solid var(--clr-primary-500);
    background: var(--clr-primary-500);
}
.content_main2 {
    padding-top: 0rem;
    padding-bottom: 3rem;
    border: 0em solid var(--clr-neutral-200);
    background: var(--clr-neutral-200);
}
.eart_logo {
    position: relative;
    top: 0;
    z-index: 350;
}
.p1 {
    padding-bottom: 0.75rem;
    text-indent:40px;
}
.block1 {
    background-color: aqua;
    display:grid;
    width: 300px;
}

/* ---------- body styling mobile ---------- */
@media (max-width: 50rem) {

.grid1-75p{
    display: grid;
    gap: 2rem;
    width: 100%;
}
}


 /* ---------- go to top button ---------- */
 #myBtn {
    height: 3rem; /* Button height */
    width: 3rem; /* Button width */
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 5rem; /* Place the button at the bottom of the page */
    right: 1rem; /* Place the button 30px from the right */
    z-index: 300; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--clr-neutral-600); /* Set a background color */
    font-family: var(--ff-body); /* Font family */
    font-size: 1.5rem; /* Increase font size */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    border-radius: 5px; /* Rounded corners */
    transition: .3s ease; /* Transition timing between states*/
}
#myBtn:hover {
    background-color: var(--clr-neutral-600); /* Add an orange background on hover */
}
#myBtn:focus {
    background-color: var(--clr-neutral-600); /* Add a dark-grey background on focus */
}



/* ---------- header styling ---------- */

/* ---------- navigation desktop ---------- */
.primary-header {
    margin-top: 15px;
    margin-bottom: 60px;
    z-index: 199;
}
.mobile-nav-toggle {
    display: none; 
}
.nav-list {
    font-size: var(--fs-nav);
    display: flex;
    gap: 2.5rem;
}
.nav-link, .drop-down li {
    gap: 2.5rem;
    list-style: none;
    height: 100%;
    cursor: pointer;
}
.drop-down {
    position: absolute;
    padding: 0.5rem 1rem;
    margin: 0 -1rem;
    background: var(--clr-neutral-200);
    gap: 0.5rem;
    display: none;
}
.services {
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.services:hover{
    text-decoration: none;
    color: var(--clr-primary-500);
}
.services:focus{
    text-decoration: none;
    color: var(--clr-primary-800);
}
.services:hover .drop-down {
    /* display: block; */
    display: grid;
}
.nav-list a {
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.nav-list a:hover{
    text-decoration: none;
    color: var(--clr-primary-500);
}
.nav-list a:focus{
    text-decoration: none;
    color: var(--clr-primary-800);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 199;
}



/* ---------- navigation mobile ---------- */


@media (hover: hover) {
  /* only on devices that support hover */
}

@media (hover: none) {
  /* only on devices that don't hover */
}

/* mobile toggle dla submenu */
@media (max-width: 50rem) {
    .drop-down {
     display: none;
    }

    .drop-down.visible {
    display: grid !important; /* lub block, zależnie od układu */
    }

    .primary-header {
        margin-top: 15px;
        margin-bottom: 40px;
        z-index: 199;
    }
    .primary-navigation {
        display: none;
        position: absolute;
        inset: 0;
        background: var(--clr-neutral-200);
        z-index: 199;
    }
    .primary-navigation::after {
        content: '';
        position: fixed;
        background: var(--clr-neutral-200);
        inset: 0;
        z-index: -1;
    }
    .primary-navigation[data-visible] {
        display: block;
        position: absolute;
        z-index: 199;
    }
    .nav-list{
        padding-top: 120px;
        padding-right: 60px;
        display: grid;
        gap: 1.0rem;
        text-align: right;
    }
    .drop-down{
        position: relative;
        padding-top: 1rem;
        gap: 0.5rem;
    }
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 35px;
        right: 1rem;
        cursor: pointer;
        background: transparent;
        border: 0;
        padding: 0.5em;
        z-index: 199;
    }
    .mobile-nav-toggle .hmbrgr-close {
        display: none;
    }
    
    

    /* ---------- off-screen-menu ---------- */
    .off-screen-menu {
        font-size: var(--fs-nav);
        display: flex;
        gap: 2.5rem;
        text-decoration: none;
        color: var(--clr-neutral-600);

        background-color:  var(--clr-neutral-200);
        height: 100vh;
        width: 100%;
        max-width: 50rem;
        position: fixed;
        top: 0;
        right: -50rem;
        display: flex;
        flex-direction: column;
        align-items: right;
        text-align: center;
        z-index: 100;

        transition: .3s ease;
    }
    .off-screen-menu.active {
        right: 0;
    }



    /* ---------- nav ---------- */
    nav {
        padding: 0.5rem;
        display: flex;
        /* background: transparent; */
        /* background-color: rgb(83, 45, 88); */
    }
    .drop-down li {
        padding: 0.5rem 0;
        
    }

    /* ---------- ham menu ---------- */
    .ham-menu {
        height: 50px;
        width: 40px;
        margin-left: auto;
        position: relative;
        cursor: pointer;
        z-index: 199;
    }
    .ham-menu span {
        height: 5px;
        width: 100%;
        background-color: var(--clr-neutral-600);
        border-radius: 5px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: .3s ease;
    }
    .ham-menu span:nth-child(1) {
        top: 25%;
    }
    .ham-menu span:nth-child(3) {
        top: 75%;
    }
    .ham-menu.active span {
        background-color: var(--clr-neutral-600);
    }
    .ham-menu.active span:nth-child(1) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .ham-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .ham-menu.active span:nth-child(3) {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

}



/* ---------- team grid desktop ---------- */
.team-photo {
    padding: 0;
    width: 100%;
    object-fit: cover;
}
.team-item-1 { grid-area: foto; }
.team-item-2 { grid-area: opis; }
.grid-team-container {
    padding-top: 3rem;
    padding-bottom: 5rem;
    display: grid;
    grid-template-areas: 'foto foto opis opis opis';
    gap: 3rem;
    background-color: transparent;
    /* padding: 10px; */
}
.team-mail {
    font-weight: var(--fw-semi-bold);
}
.team-mail-link {
    text-decoration: none;
    font-family: var(--ff-body);
    font-weight: var(--fw-semi-bold);
    color: var(--clr-primary-800);
}
.team-mail-link:hover{
    text-decoration: none;
    color: var(--clr-primary-500);
}


/* ---------- team grid mobile ---------- */
@media (max-width: 50rem) {

    .team-photo {
        padding: 1rem;
        width: 100%;
        object-fit: cover;
    }
    .grid-team-container {
        padding-top: 3rem;
        padding-bottom: 3rem;
        display: grid;
        grid-template-areas:
        'foto'
        'opis';
        gap: 2rem;
        background-color: transparent;
}

}



/* ---------- contact desktop ---------- */
.address-container {
    padding-bottom: 3rem;
}
.google-map {
    overflow: hidden;
    padding-bottom: 50%;
    border-radius: 1rem;
    position: relative;
    height: 0;
}
.google-map iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}
.google-map-container {
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-radius: 1rem;
    background-color: transparent;
}
.contact-mail-link {
    text-decoration: none;
    font-family: var(--ff-body);
    color: var(--clr-primary-800);
}
.contact-mail-link:hover{
    text-decoration: none;
    color: var(--clr-primary-500);
}

/* ---------- contact mobile ---------- */
@media (max-width: 50rem) {
    .google-map {
        padding-bottom: 100%;
}
}



/* ---------- footer styling ---------- */

/* ---------- footer grid desktop ---------- */
/* .footer-item-1 { grid-area: logo; } */
.footer-item-1 { grid-area: oferta; }
.footer-item-2 { grid-area: firma; }
.footer-item-3 { grid-area: adres; }

.footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.footer-container {
    width: 100%;
    margin-inline: auto;

    border: 0em solid var(--clr-neutral-200);
}
.grid-footer-container {
    padding-bottom: 1rem;
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: 'oferta firma adres';
    gap: 1rem;
}

.eart_logo_400 {
    position: relative;
    top: 0;
    padding-left: 0rem;
    padding-bottom: 2rem;
    z-index: 20;
}
.footer-section {
    font-family: var(--ff-footer);
    font-size: var(--fs-footer);
}
.footer-list {
    padding-top: 0.5rem;
    font-family: var(--ff-footer);
    font-size: var(--fs-footer);
    display: grid;
    gap: 0.3rem;
}
.footer-link {
    list-style: none;
    height: 100%;
    cursor: pointer;
}
.footer-list a {
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.footer-list a:hover{
    text-decoration: none;
    color: var(--clr-primary-500);
}
.footer-list a:focus{
    text-decoration: none;
    color: var(--clr-primary-100);
}
.footer-list-text {
    padding-top: 0.5rem;
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.footer-logo {
    padding-left: 0rem;
    padding-bottom: 2rem;
    z-index: 1;
}
.footer-text {
    padding-top: 0.5rem;
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.footer-description {
    padding-left: 0rem;
    padding-top: 1rem;
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.footer-text-list {
    padding-top: 0.5rem;
    padding-left: 1rem;
    font-family: var(--ff-footer);
    font-size: var(--fs-footer);
    display: grid;
    gap: 0rem;
    text-align: left;
}
.footer-text-list a {
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.footer-text-list a:hover {
    text-decoration: none;
    color: var(--clr-primary-500);
}
.footer-text-list a:focus {
    text-decoration: none;
    color: var(--clr-primary-100);
}
.footer-mail-link {
    text-decoration: none;
    color: var(--clr-neutral-600);
}
.footer-mail-link:hover{
    text-decoration: none;
    color: var(--clr-primary-500);
}



/* ---------- footer grid mobile ---------- */
@media (max-width: 50rem) {
    .grid-footer-container {
        width: 100%;
        padding-bottom: 1rem;
        padding-top: 1rem;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 'logo' 'oferta' 'firma' 'adres';
        gap: 3rem;
    }
    .footer-description {
        padding-left: 0rem;
        padding-top: 1rem;
        text-decoration: none;
        color: var(--clr-neutral-600);
        font-size: var(--fs-footer-xs);
    }
    .footer-list {
        padding-top: 0.5rem;
        font-family: var(--ff-footer);
        font-size: var(--fs-footer);
        display: grid;
        gap: 1.0rem;
    }
    .footer-logo {
        padding-bottom: 1rem;
    }
}

/* ---------- praca desktop ---------- */


.praca-h-mod {
    min-height: 20em;
    height: calc(100% - 620px);
}
    