*,
*::before,
*::after {
    box-sizing: border-box;
}


/* CSS variables */
:root {
    /* --clr-primary: #78E336; */
    /* --clr-primary: #f020b2; */
    
    --clr-primary: #e61faa; 
    
    /* --clr-primary: #a020f0; */
    --clr-primary__light: #db1651;
    --clr-primary__blue: #274172;
    /* --clr-primary__blue: #071166; */
    
    --clr-grey: #505050;
    --clr-green: #82c374;

    --clr-dark: #6189AD;
    
    --clr-light: rgb(240, 240, 240);
    --clr-light__blue: #bbdfff;

    --fw-normal: 400;
    --fw-bold: 700;
    --fw-black: 900;

    /* --fs-h1: 3rem; */
    --fs-h1: 2rem;

    --fs-h2: 1.50rem;
    /* --fs-h2: 1.25rem; */

    --fs-h3: 1.25rem;
    /* --fs-h3: 1rem; */

    --fs-body: 1rem;
    /* --fs-body: .75rem; */

    --grid: 
        minmax(1em, 10%) 
        min-content
        minmax(20rem, 50ch) 
        1fr
        minmax(1em, 1fr);

    --header-height: 60px;
}

[id] {
    scroll-margin-top: 10px;
    /* scroll-margin-top: calc(var(--header-height) + 1.5rem); */
}

html {
    scroll-behavior: smooth;
}


body { 
    margin: 0 auto;
    max-width: 1800px;
    font-size: var(--fs-body);
    color: var(--clr-primary__blue);
    background-color: var(--clr-light); 
    line-height: 1.6; 

    font-family: 'Roboto', sans-serif;
    /* font-family: 'Work Sans', sans-serif; */
    /* font-family: 'Gothic A1', sans-serif; */
    /* font-family: 'Playfair Display', serif; */
    /* font-family: 'Montserrat', sans-serif; */
}

img {
    max-width: 100%;
}


h1, h2, h3 { 
    line-height: 1;
    font-family: 'Gothic A1', sans-serif;
}

p {
    margin: 0 auto;
    /* font-family: 'Work Sans', sans-serif;  */
}

hr {
    display: block;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 1px;
    width: 95%;
    max-width: 700px;
    border-color: var(--clr-light__blue);
}



/* ******************************************** */

/* HEADER fixed menu */

/* .header {
    height: calc(var(--header-height) + 1.75rem);

    overflow: hidden;
    background-color: var(--clr-dark);
    position: fixed;
    top: 0;
    width: 100%;
    text-align: center;
    z-index: 1;
} */

/* ******************************************** */


.container {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;

    position: relative;
}


.fixed-header {
    background-color: var(--clr-dark);
    padding: .5em 0 0;
    text-align: center;
}

.logo__img {
    height: 60px;
}


.nav-toggle {
    cursor: pointer;
    border: 0;
    width: 3em;
    height: 3em;
    padding: 0em;
    border-radius: 50%;
    background: var(--clr-green);
    color: #fff;
    transition: opacity 250ms ease;
    
    position: absolute;
    left: 0;
}

.nav-toggle:focus,
.nav-toggle:hover {
    opacity: .75;
}


.hamburger {
    width: 50%;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    margin: 0 auto;
    height: 3px;
    background: #fff;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(3px);
}


.nav {
    visibility: hidden;
    height: 0;
    position: absolute;
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
}

.nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}


.nav__item {
    margin-top: .75em;
}

.nav__link {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.nav__link:hover,
.nav__link:focus {
    opacity: 0.75;
}


/* This will be added at "nav" element when clk on hamburger btn */
.nav--visible {
    visibility: visible;
    height: auto;
    position: relative;
} 


/* MAIN */

.main__bg {
    margin-top: -1.35em;
    color: var(--clr-light);
    min-height: 300px;
    background-image: url(../images/1/ferma-afine-eco-dambovita-ivachris-berry-1.jpg);
    background-size: cover;
    background-position: center center; 
}

.main__title {
    padding-top: 2.5em;
}


/* ABOUT */

.about {
    margin: 1.5rem auto;
    padding: 0 1em;
    max-width: 700px;
} 

.about__title,
.about__subtitle, 
.about__text {
    margin: 0.5rem auto;
    padding-top: .5rem;
} 

.about__title {
    font-weight: var(--fw-black);
    font-size: var(--fs-h3);
} 

.about__subtitle {
    letter-spacing: 2px;
    font-weight: var(--fw-black);
    color: var(--clr-primary);
} 

.about__photo > img {
    display: block;
    margin: auto;
    /* max-width: 100%; */
}

.more {
    color: var(--clr-green);
    /* font-weight: var(--fw-bold); */
    font-weight: var(--fw-black);
}
.certificat-2022 > a {
    color: var(--clr-green);
    font-weight: var(--fw-black);
    text-decoration: none;
}
.certificat-2022 > a:visited {
    color: var(--clr-green);
    font-weight: var(--fw-black);
    text-decoration: none;
}

/* GAP */

.gap {
    margin: 1.5rem auto;
    padding: 0 1em;
    max-width: 700px;
} 

.gap__title,
.gap__subtitle, 
.gap__text {
    margin: 0.5rem auto;
    padding-top: .5rem;
} 

.gap__title {
    font-weight: var(--fw-black);
    font-size: var(--fs-h3);
} 

.gap__subtitle {
    letter-spacing: 2px;
    font-weight: var(--fw-black);
    color: var(--clr-primary);
} 

.gap__photo > img {
    display: block;
    margin: auto;
    /* max-width: 100%; */
}

.more {
    color: var(--clr-green);
    /* font-weight: var(--fw-bold); */
    font-weight: var(--fw-black);
}



/* PRODUCTS & CERTIFICATES*/

.products {
    margin: 1.5rem auto;
    padding: 0 1em;
    max-width: 700px;
} 

.products__title,
.products__subtitle, 
.products__text {
    margin: 0 auto;
    padding-top: .5rem;
    margin-bottom: .5em;
} 

.products__title {
    font-weight: var(--fw-black);
    font-size: var(--fs-h3);
} 

.products__subtitle {
    font-weight: var(--fw-black);
    color: var(--clr-primary);
    margin-bottom: 1rem ;
} 

.products__photo > img {
    display: block;
    margin: auto;
    /* max-width: 100%; */
}

.products__certificates {
    font-weight: var(--fw-black);
    color: var(--clr-green);
}



/* *************** Images Slideshow ******************* */

    /* >> 
    NEXT, there are some settings for maintaining the dimensions we want for the Slideshow images:
    ->> we set max-width of the container ;
    ->> we set the IMAGE's max-width and height in order for the image to fit into the container sizes:
       max-width ->> 100%
       height ->> the value we want (in px: 300, 450, 700 etc). 
    << */


/* Slideshow container */
.slideshow-container {
    position: relative;
    padding: 0 1em;
    margin: 0 auto;
    max-width: 700px;  
}

.slideshow__title {
    font-size: var(--fs-h3);
}
  
/* Hide the images by default */
.myImages {
    display: none;
    text-align: center; 
}

.myImages > img {
    object-fit: cover;
    max-width: 100%; 
    max-height: 375px;    
}


/* Next & previous buttons */
.prev-arrow, 
.next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 10px;

    color: var(--clr-primary__blue);

    font-weight: var(--fw-black);

    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;

    background-color: rgba(255, 255, 255, 0.4);
}

/* Position the "next button" to the right */
.next-arrow {
    right: 1em;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev-arrow:hover, .next-arrow:hover {
    background-color: var(--clr-light);
}
  

/* Number of img in the gallery (1/3 etc) */
.numbertext-image {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    color: var(--clr-dark);
    font-weight: var(--fw-black);

    font-size: calc(var(--fs-body) * .85);
    margin-top: 15px;
    padding: 2px;
    top: 18px;
    width: 50px;
    height: 24px;
}


/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
    .prev, .next,.text {font-size: 11px}
}


/* CERTIFICATES */

.certificates-slideshow-container {
    position: relative;
    margin: 0 auto;
    max-width: 700px;  
}

.myCertificates > img {
    object-fit: scale-down;
    width: 90%; 
    height: auto;
}


/* MODALS */

/* The Consent Modal */

.consent-modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    padding-top: 200px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 

    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4); 
}

#accept {
    font-weight: var(--fw-bold);
}


/* The Modal (the container and the background for header and body of the modal it self) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */

    /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}


/* Modal Content */
.modal-content {
    position: relative;
    background-color: var(--clr-light);
    color: var(--clr-primary__blue);
    font-weight: var(--fw-normal);
    font-size: var(--fs-body);
    /* text-indent: 5%; */
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    max-width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.8s
}

/* Modal Header */
.modal-header {
    padding: 2px 16px;
    background-color: var(--clr-dark);
    color: var(--clr-light);
}

/* Modal Body */
.modal-body {
    padding: 0 10px;
}


/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}


/* The Modal's Close Button */
.close {
    color: var(--clr-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


#btn__gap, 
#btn__certificates, 
#btn__about, 
#btn__confid, 
#btn__terms, 
#btn__blueberry,
#btn__bluecrop,
#btn__elliot,
#myBtn5 {
    cursor: pointer;
}

#btn__gap > a {
    text-decoration: none;
    color: var(--clr-green);
}



/* FOOTER */

.footer {
    background: var(--clr-dark);
    color: var(--clr-light);
}

.footer-container {
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
    padding-top: .5em;
    display: flex;
    flex-direction: column;
}

.ivachris-name {
    max-width: 700px;
    width: 90%;
    margin: 0 auto;
    padding-top: 1em;
    color: var(--clr-primary__blue);
    font-weight: var(--fw-black);
    font-size: var(--fs-h3);
}

.footer-left > *,
.footer-right > * {
    margin: .5rem 0;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer__link:hover,
.social-list__link:hover {
    opacity: .7;
}

.email,
.facebook,
.location,
.confidentiality,
.terms,
.anpc {
    color: var(--clr-green);
}

.copyright {
    text-align: center;
    padding: .5em 0;
    margin: 0;
    background: var(--clr-dark);
    font-size: calc(var(--fs-body)*.75);
}



/* *************** @ ******************* */
/* *************** @ ******************* */
/* *************** @ ******************* */


@media (min-width: 600px) {

    .row {
        display: flex;
        justify-content: space-between;
    }


    .nav-toggle {
        display: none;
    }


    .nav {
        visibility: visible;
        display: flex;
        align-items: center;
        height: auto;
        position: relative;
    }
    
    .nav__list {
        display: flex;
        margin: 0;
    }
    
    .nav__item {
        margin: 0 0 0 1.5em;
    }


    .main {
        font-size: var(--fs-h3);
        font-weight: var(--fw-bold);
    }

}



/* @media-1000px */
@media (min-width: 1000px) {

    hr,
    .container,
    .about,
    .gap,
    .products,
    .slideshow-container,
    .certificates-slideshow-container,
    .footer-container {
        max-width: 1100px;
    }


    .main {
        grid-template-columns: 5rem repeat(3, 1fr);
        padding-left: 0;
        padding-right: 0;
        font-size: var(--fs-h2);
    }

    .main__title {
        padding-top: 2em;
    }

    .main__bg {
        background-position: 50% 75%; 
    } 


    .about {
        margin: 1rem auto;
        display: grid;
        grid-template-columns: .25rem 45% repeat(2, 1fr);

        grid-template-areas: 
            "tag title photo photo"
            "tag subtitle photo photo"
            "tag text photo photo";

        grid-gap: 1em;
        align-items: center;
    }
 
    .about > * {
        margin: 0;
    }

    .tag {
        grid-area: tag;
    }

    .about__title {
        grid-area: title;
        font-size: var(--fs-h2);
        align-self: center;
    }
    
    .about__subtitle {
        grid-area: subtitle;
        font-size: var(--fs-h3);
        align-self: stretch;
    }

    .about__text {
        font-size: var(--fs-h3);
        font-weight: var(--fw-normal);
        line-height: 1.2;
        grid-area: text;
        align-self: center;

    }
 
    .about__photo {
        grid-area: photo;
        background: rgb(192, 248, 175);
    }


    /* //////////////////////// */
    .gap {
        margin: 1rem auto;
        display: grid;
        grid-template-columns: .25rem 45% repeat(2, 1fr);

        grid-template-areas: 
            "tag title photo photo"
            "tag subtitle photo photo"
            "tag text photo photo";

        grid-gap: 1em;
        align-items: center;
    }
 
    .gap > * {
        margin: 0;
    }

    .tag {
        grid-area: tag;
    }

    .gap__title {
        grid-area: title;
        font-size: var(--fs-h2);
        align-self: center;
    }
    
    .gap__subtitle {
        grid-area: subtitle;
        font-size: var(--fs-h3);
        align-self: stretch;
    }

    .gap__text {
        font-size: var(--fs-h3);
        font-weight: var(--fw-normal);
        line-height: 1.2;
        grid-area: text;
        align-self: center;

    }
 
    .gap__photo {
        grid-area: photo;
        background: rgb(192, 248, 175);
    }    
    /* //////////////////////// */


    .products {
        margin: 1rem auto;
        display: grid;
        grid-template-columns: .25rem repeat(2, 1fr) 45%;
        grid-template-areas: 
            "tag photo photo title"
            "tag photo photo subtitle"
            "tag photo photo text";
        grid-gap: 10px;
    }

    .products > * {
        margin: 0;
    }

    .products__tag {
        grid-area: tag;
    }

    .products__title {
        grid-area: title;
        font-size: var(--fs-h2);
        align-self: center;
    }
    
    .products__subtitle {
        grid-area: subtitle;
        font-size: var(--fs-h3);
    }

    .products__text {
        font-size: var(--fs-h3);
        font-weight: var(--fw-normal);
        line-height: 1.2;

        grid-area: text;
        align-self: start;

    }
 
    .products__photo{
        grid-area: photo;
        background: rgb(192, 248, 175);
    }
    

    .myCertificates>img {
        height: 800px;
        width: 100%;
    }


    .slideshow__title {
        font-size: var(--fs-h2);
    }

    .myImages>img {
        max-height: 600px;
    }


    /* Number of img in the gallery (1/3 etc) */
    .numbertext-image {
        position: absolute;
        background-color: rgba(255, 255, 255, 0.5);
        display: inline-block;
        color: var(--clr-dark);
        font-weight: var(--fw-black);

        font-size: var(--fs-body);
        padding: 2px 12px;
        width: 78px;
        height: 30px;
        top: 25px;
    }

    .prev-arrow, .next-arrow {
        font-size: var(--fs-h2);
    }


    .modal-content {
        max-width: 700px;
    }


    .footer {
        font-size: var(--fs-h3);
    }

    .footer-container {       
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1rem 1fr 10% 30% 1rem;
        grid-gap: 10px;
    }

    .ivachris-name {
        max-width: 1000px;
        font-size: var(--fs-h2);
    }
    
    .footer-left {
        grid-column-start: 2;
    }
    
    .footer-right {
        grid-column-start: 4;
    }

    .footer-social {
        margin-top: 0;
    }

    .copyright {
        font-size: calc(var(--fs-body)*.85);
    }
}

