/* colours used
#4CAF50 - bright green
#388E3C - dark green
#607D8E - slate grey
*/

:root {
    color-scheme: light dark;
}

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

}

/* montserrat-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-900 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/montserrat-v31-latin-900.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lora-v37-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/lora-v37-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lora-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lora';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/lora-v37-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* Headings: green in both modes */
h1,
h2
{
    margin-bottom: 1rem;
    color: light-dark(#388E3C, #4CAF50);
    font-weight: 700;
    font-size: 2rem;
    font-family: 'lora', serif;
}

h3 {
    color: light-dark(#388E3C, #4CAF50);
    font-size: 1.5rem;

}

body {
  
    
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: light-dark(#fff, #383838);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}





/* Links: green in both modes */
a {
    text-decoration: none;
    color: light-dark(#fff, #222);
    font-weight: 500;
}

.container-contact a,
.container a {
    color: light-dark(#333, #fff);
}

.name a {
    color: #4CAF50;
    font-weight: 700;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 30px;
}

.logo-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px 0;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    grid-area: tagline;
    color: light-dark (#388E3C, #2b692e);
    margin-top: 5px;
    font-family: 'montserrat', sans-serif;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    grid-area: name;
    color: light-dark (#388E3C, #2b692e);
}

.logo-image img {

    grid-area: logo-image;
    width: auto;
    height: 100px;
    object-fit: fill;
    border-radius: 8px;
}


.top-nav {
    background-color: light-dark(#4CAF50, #2b692e);
    padding: 1rem 0;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 2px solid light-dark(#2b692e, #4CAF50);
}

.hamburger {
    display: none;
    font-weight: 900;
}



.top-nav a {
    color: light-dark(#fff, #222);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0 20px;
}

.top-nav a:hover {
    text-decoration: underline;
    color: light-dark(#fff, #333);
}

.hidden {
    display: none;
    height: 0;
}

.phone-moblie {
    display: none;
}


.container {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(1fr, auto));
    gap: 5px;
    margin: 30px 0 0 0;
}

.welcome {
    grid-column: 2/ 7;
    grid-row: 1/3;
}

.slideshow-index {
    grid-row: 1/3;
    grid-column: 8/15;
}

.welcome a {
    color: light-dark (#fff, #222);
}

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

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

.slideshow-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.mySlides {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  
}

.services-home {
    grid-column: 2/15;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
    max-width: 100%;
    width: 100%;
    padding-top: 70px;
}
#ourServicesHeader{
    grid-column: 1 / span 2;
    
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 20px 40px;
}

.ourSerivces {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
    padding: 20px 40px;
}

.extra-services {
        grid-column: 1 / span 2;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
}
.btn-group{
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 20px 40px;
}

.svg {
    width: 50px;
    height: 50px;
    fill: #388E3C;
    width: 50px;
    height: 50px;
}

.services {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding: 20px 40px;
}


/* Gallery styles to prevent overlapping photos */
.work {
    margin: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 20px;
    padding: 20px 40px;

    @media (width >=40em) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (width >=60em) {
        grid-template-columns: repeat(4, 1fr);
    }

}

.closeBtn {
    color: #4CAF50;
    z-index: 2;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;

}

.popupCard {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 20px 30px 20px;
    background-color: light-dark (#fff, #222);
    border-radius: 2%;
}

.newPhoto {
    height: 100%;
    width: auto;
    align-self: center;
}

.popup {
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #42414199;
    padding: 20px;
    flex-direction: column;
}


.img:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}


.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img {

    object-fit: center;
}

.card {
    width: 250px;
    height: 250px;
}


/*footer styles */
footer {
    background-color: light-dark(#4CAF50, #2b692e);
    color: light-dark(#fff, #222);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    margin-bottom: 0;
    border-top: 2px solid light-dark(#388E3C, #4CAF50);
}

footer p {
    margin: 0;
    font-weight: 700;
}

footer a {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0 10px;
    color: light-dark (#fff, #222);
}

footer a:hover {
    color: light-dark (#fff, #444);
}


.copy {
    grid-area: copy;
}

.footer-nav {
    grid-area: footer-nav;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(20px, auto);
    gap: 8px;
    justify-items: center;
    align-items: center;

}

.footer-info {
    grid-area: footer-info;
    grid-area: footer-nav;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(20px, auto);
    gap: 8px;
    justify-items: center;
    align-items: center;
}

.fa {
    padding: 5px;

}


/*contact page */
.contact a {
    color: light-dark (#333, #fff);
}

.container-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.inquiries,
.form {
    background: light-dark (#f9f9f9, #444);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-control {
    margin-bottom: 15px;
}

.form-control input,
.form-control textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-control textarea {
    resize: vertical;
}

.btn {
    background-color: light-dark(#4CAF50, #388E3C);
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-self: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: light-dark(#fff, #222);
    box-shadow: 0 2px 8px light-dark(rgba(76, 175, 80, 0.07), rgba(56, 142, 60, 0.2));
}


.btn a {
    color: light-dark(#fff, #222);
}
.btn:hover {
    background-color: light-dark(#388E3C, #4CAF50);
    color: light-dark(#fff, #388E3C);
}

.subject-options {
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    display: flex;
    justify-content: center;
}

/*services */

.services {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px;
    text-wrap: wrap;
}

.what-we-do {
    margin-bottom: 50px;
    padding: 0 40px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
}

.services-item {
    display: flex;
    padding: 15px;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}


.services-item h3 {
    height: 3.2rem;
    display: flex;
    justify-content: center;
    align-content: center;
    font-size: 1.35rem;
    
}
.garden-maintenance {
    grid-column: 1 / 5;
}

.slideshow-services {
    grid-column: 9 /16;
}

.fencing {
    grid-column: 5 / 9;
}

.services-item li {
  list-style: none; /* remove default bullet */
  position: relative;
  padding-left: 2rem; /* space for the icon */
  line-height: 1.5rem;
 
}

.services-item li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem; /* adjust vertically */
  width: 1.7rem;
  height: 1.7rem;
  background-image: url('/resources/transparent-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  
}




.reach-out {
    display: inline-flex;
    text-align: center;
    margin-top: 20px;
    text-wrap: nowrap;
}

/* media queries tablet*/
@media (max-width: 770px) {

 h2 {
    display: flex;
    justify-content: center;
}

    .top-nav {
        overflow: hidden;
        background-color: light-dark (#4CAF50, #388E3C);
        position: relative;
    }

    .top-nav #myLinks {
        display: none;
    }

    .top-nav a {
        color: light-dark (white, #444);
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
    }

    .top-nav a.icon {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        padding: 14px 16px;
        color: white;

    }

    .top-nav a.icon:hover {
        background-color: light-dark (#fff, #444);
        color: black;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        position: absolute;
        right: 20px;
        top: 10px;
        cursor: pointer;
        z-index: 1000;
        color: light-dark (#fff, #444);
        font-weight: 900;
    }

    .services-list {
        display: grid;
        flex-direction: column;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .garden-maintenance,
    .fencing,
    .slideshow-services {
        grid-column: 1fr;
    }

    .garden-maintenance {
        grid-row: 1;
        grid-column: 1 /13;
    }

    .fencing {
        grid-row: 2;
        grid-column: 1 /13;
    }

    .slideshow-services {
        grid-row: 3;
        grid-column: 1 /13;
    }


    .welcome {
        grid-row: 1;
        grid-column: 2 /12;
    }

    .slideshow-index {
        grid-row: 2;
        grid-column: 3 /12;
    }



    .footer-nav {
        display: inline-block;
        text-align: center;
    }

    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .phone-desktop {
        display: none;
    }

    .phone-moblie {
        display: list-item;
        list-style: none;
    }
.gallery {
    justify-items: center;
}

.services-home, .extra-services {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
    }

    .newPhoto {
    width: auto;
    height: 80vh;
    max-width: 80vw;
}
 .ourSerivces {
    display: flex;
            justify-content: space-between;
            justify-items: center;
            align-self: center;
            padding: 10px;
            font-size: 0.8rem;
            width: 65vw;
    }
ul {
    display: flex;
    flex-direction: column;
  width: 65%;
        align-items: flex-start;
        align-self: center;
}

li {
    text-align: center;
    margin: 10px 0;
    
}
    .container {
        display: flex;
        justify-self: center;
        flex-direction: column;
        padding: 1rem;
        width: 95vw;
    }
}


/* media queries mobile */
@media (max-width: 480px) {
    .top-nav {
        overflow: hidden;
        background-color: light-dark (#4CAF50, #388E3C);
        position: relative;
    }

    .top-nav #myLinks {
        display: none;
        flex-direction: column;
        align-items: center;

    }

    .top-nav a {
        color: light-dark (white, #444);
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
    }

    .top-nav a.icon {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        padding: 14px 16px;
        color: light-dark (white, #444);

    }

    .top-nav a.icon:hover {
        background-color: #ddd;
        color: light-dark (black, #fff);
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-end;
        position: absolute;
        right: 20px;
        top: 10px;
        cursor: pointer;
        z-index: 1000;
        color: light-dark (#fff, #444);
        font-weight: 900;
    }

    .container {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        justify-content: center;
        gap: 20px;
        margin: 20px;
        max-width: 100%;
        width: 95vw;
    }

    .welcome {
        justify-content: center;
        margin: 20px;
        text-wrap: wrap;
    }


.newPhoto {
    width: 85vw;
    height: auto;
}
    .footer-nav {
        display: inline-block;
        text-align: center;
    }

    body {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .container2 {
        display: flex;
        flex-direction: column;
        text-align: center;
        text-wrap: wrap;
        gap: 20px;
        max-width: 100%;
    }

    .services-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
    }

    .services-home, .extra-services, .btn-group {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin: 20px 0;
        max-width: 100%;
        width: 100%;
    }

    
    
.what-we-do{
    padding: 0;
}

h2 {
    display: flex;
    justify-content: center;
}
.services {
    padding: 0;
}

    .footer-info {
        grid-template-columns: 1fr;
        ;
    }

    .inquiries {

        justify-content: center;
        text-wrap: wrap;
    }

    .contact {
        text-wrap: wrap;
        font-size: 0.8rem;
    }

    .subject-options {
        display: flex;
        flex-direction: column;
        gap: 5px;
        text-wrap: wrap;
        font-size: 0.8rem;
        
    }

    .slideshow-container {
        width: 100%;
    }

    .reach-out {
        text-wrap: wrap;
        font-size: 0.8rem;
        margin-top: 10px;
        width: 280px;
    }

    .phone-desktop {
        display: none;
    }

    .phone-moblie {
        display: list-item
    }

    .gallery {
        justify-items: center;
    }

    .ourSerivces {
        display: flex;
        justify-content: flex-end;
        padding: 5px;
        font-size: 0.5rem;
        width: 75%;
    }
    svg {
        margin-right: 5px;
    }
    .ourSerivces h3 {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
        margin-left: 1rem;
    }

    ul{
        width: 100%;
    }

}