/* --------------------------- */
/*         Base Styles        */
/* --------------------------- */
:root {
    /* background colours */
    --prcolwh: rgb(255, 255, 255);
    --secolbl: #59c6ea;
    --thrdcolgr: #e6e3e3d0;
    --fthcolblk: black;
    --btn: #59c6ea;

    /* font styles */
    --hdfstyle: 'Raleway', Verdana, Helvetica, sans-serif;
    --logofstyle: 'Agency FB', Helvetica, sans-serif;
    --mnfstyle: Avenir, Helvetica, sans-serif;

    /* font colours and sizes */
    --hdfclr: black;
    --mnfclr: black;
    --hdfclwh: white;

    --hd1sz: 3em;
    --hd2sz: 2em;
    --hd3sz: 1.8em;
    --hd4sz: 1.4em;
    --psz: 1.2em;
}

* {
    text-decoration: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: auto;
    font-family: var(--hdfstyle);
    color: var(--hdfclr);
    line-height: 2em;
}

/* Headings */

h2 {
    font-size: var(--hd1sz);
    margin-top: 3em;
}

h3 {
    font-size: var(--hd2sz);
}

h4,
p {
    color: var(--mnfclr);
    font-family: var(--mnfstyle);
}

h4 {
    font-size: var(--hd4sz);
}

p {
    font-size: var(--psz);
    margin-bottom: 1.2em; /* Added paragraph spacing */
}

/* Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--prcolwh);
    padding: 1em 4em;
    min-height: 100px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 40px;
    height: 40px;
}

header nav ul {
    margin: 0;
    padding: 0;
}

header nav ul li {
    list-style: none;
    float: left;
    position: relative;
}

header nav ul li a {
    display: block;
    height: 50px;
    line-height: 50px;
    padding-top: 3px;
    padding-left: 15px;
    padding-right: 15px;
    color: var(--mnfclr);
    font-family: var(--hdfstyle);
    text-decoration: none;
    font-size: var(--psz);
    font-weight: bold;
}

header nav ul li ul {
    position: absolute;
    left: 0;
    background-color: var(--prcolwh);
    display: none;
}

header nav ul li:hover ul {
    display: block;
}

header nav ul li ul li {
    display: block;
    width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
    text-decoration-line: underline;
    text-decoration-color: var(--btn);
    text-decoration-thickness: 25%;
}


.menu-toggle {
    all: unset; /* or use background: none, border: none, etc. */
    display: none; /* still hidden on desktop */
    font-size: 1.8em;
    color: var(--hdfclr);
    padding-right: 1em;
    cursor: pointer;
}




/* Responsive Header */

@media (max-width: 991px) {
    header {
        display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 1em 2em;
    min-height: 80px;
    position: relative;
    z-index: 10000;
    }

     .logo {
    margin-left: 0;
    display: flex;
    align-items: center;
    }


    .menu-toggle {
        display: block;
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
    font-size: 1.8em;
    color: var(--hdfclr);
    padding-right: 1em;
    cursor: pointer;
    align-self: center;
    }



    header nav {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--prcolwh);
    transition: left 0.3s ease-in-out;
    z-index: 9999;
  }

  header nav.active {
    left: 0;
  }

  header nav ul {
    display: block;
    text-align: center;
    padding-top: 2em;
  }

  header nav ul li {
    float: none;
    margin: 1em 0;
  }

  header nav ul li a {
    font-size: 1.2em;
    color: var(--mnfclr);
  }

  header nav ul li a:hover {
    color: var(--secolbl);
  }
}

/* Main container section */

.container {
    background-image: url("../img/wood3.jpg");
    background-attachment: fixed;
    max-width: 100%;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.box {
    background-color: white;
    padding: 2.4em;
    text-align: center;
    width: 30%;
    max-height: 250px;
    border-radius: 5%;
    margin: 3.5em;
}

/* Links section */

.links {
    display: flex;
    background-color: var(--prcolwh);
    padding-top: 10%;
    padding-bottom: 10%;
    justify-content: center;
    flex-wrap: wrap;
}

.links div {
    max-width: 24%;
    margin-left: 2em;
    margin-right: 2em;
    text-align: center;
}

.links div p {
    line-height: 1.5em;
}

.links div h4 {
    padding-top: 0.6em;
}

.buttonr {
    border-radius: 50%;
    background-color: var(--btn);
    margin-bottom: 20px;
    border: none;
    padding: 25px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    cursor: pointer;

    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.buttonr:hover {
    background-color: #4bb8dd;
    transform: translateY(-2px);
}

/* About Section */

.about {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: var(--thrdcolgr);
    color: var(--mnfclr);
    padding-top: 6%;
    padding-bottom: 4%;
}

.aboutwrite,
.supportwrite {
    max-width: 56%;
    padding-left: 4em;
    padding-right: 4em;
    text-align: center;
}

.aboutwrite h5,
.aboutwrite p,
.supportwrite h5,
.supportwrite p {
    padding-bottom: 1.2em;
    padding-top: 1em;
}

.supportwrite h5,
.supportwrite p {
    text-align: left;
}

.gardenpic img,
.paintpic img {
    width: 100%;
    max-width: 30em;
    border-radius: 3px;
    display: block;
    margin: 0 auto;
}

.paintpic img {
    padding-top: 3em;
}

/* Contact and Form Section */

.contact {
    display: flex;
    background-size: cover;
    padding-top: 5%;
    padding-bottom: 5%;
    justify-content: center;
    flex-wrap: wrap;
}

.form {
    width: 35%;
    background: transparent;
    border: 2px solid var(--secolbl);
    padding: 5%;
    border-radius: 12px;
    box-sizing: border-box;
    min-width: 280px;
}

.input-box,
.message-box {
    text-align: left;
    width: 100%;
    padding: 2% 0;
    position: relative;
}

input,
textarea {
    width: 100%;
    background: transparent;
    outline: none;
    border: 2px solid var(--secolbl);
    border-radius: 40px;
    padding: 15px 20px;
    font-size: 1em;
    color: var(--hdfclr);
    box-sizing: border-box;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--hdfclr);
}

.btn,
.btn2 {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 14px 20px;
    width: 60%;
    height: 40px;
    margin-top: 6%;
    margin-bottom: 3%;
    margin-left: 20%;
    background-color: var(--btn);
    border: none;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background-color: #4bb8dd;
    transform: translateY(-2px);
}

.btn2 {
    width: 20%;
    height: 35px;
    background-color: var(--btn);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.btn2:hover {
    background-color: #4bb8dd;
    transform: translateY(-2px);
}

.loglink a:hover {
    text-decoration: underline;
}

/* Social Section */

.social {
    display: flex;
    justify-content: center;
    background-color: var(--secolbl);
    padding: 1em 0;
    flex-wrap: wrap;
}

.icon {
    margin: 0 2em;
}

.icon img {
    width: 60px;
    height: 60px;
}

/* Section Styling */

section#section2,
section#section3,
section#section4,
section#section5,
section#section6 {
    padding: 5% 5%;
    margin-bottom: 3%;
}

#section6 {
  /* background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');*/
   
    background-image: url("../img/country.jpg");
    background-attachment: fixed;
    max-width: 100%;
    min-height: 70vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white; /* text color */
    padding: 2em;
    text-align: left;
    margin-inline: auto;
    position: relative;
    filter: brightness(2);
}

#section6::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* black overlay with 50% opacity */
  z-index: 1;
}

#section6 > div {
  position: relative;
  z-index: 2; /* place text above overlay */
}

#section6 h2 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.section2 {
    max-width: 100%;
    min-height: 100%;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 3%;
    text-align: center;
}


.section h3 {
    text-shadow: 2px 2px 2px black;
}

.about h5 {
    text-align: center;
    color: var(--mnfclr);
    font-family: var(--mnfstyle);
    font-size: var(--hd3sz);
}

.contact h5 {
    text-align: left;
    color: var(--hdfclr);
    font-family: var(--mnfstyle);
    font-size: var(--hd3sz);
    padding-bottom: 3%;
}

.container h5 {
    text-align: center;
    color: var(--mnfclr);
    font-family: var(--mnfstyle);
    font-size: var(--hd3sz);
}

/* Footer */



.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--secolbl);
    gap: 1em; /* space between links */
}

.privacy {
    background-color: var(--secolbl);
    display: inline;
    text-decoration: none;
    color: var(--mnfclr);
    font-family: var(--hdfstyle);
    font-weight: bold;
    padding-left: 3%;
    padding-right: 3%;
}

/* Responsive adjustments mobile*/

@media (max-width: 768px) {  
     :root {
    --hd1sz: 2em;
    --hd2sz: 1.6em;
    --hd3sz: 1.4em;
    --psz: 1em;
    }  
    
    .container {
        min-height: 400px;
    }

    .box {
        width: 90%;
        margin: 2em auto;
        max-height: none;
        padding: 2em;
    }

    #section6 h2 {
    text-align: center;
    font-size: 1.8em; /* reduce size on mobile */
    padding: 0 1em;   /* add padding for better spacing */
    }

    .about,
    .contact,
    .links {
        flex-direction: column;
        padding-top: 3%;
        padding-bottom: 3%;
    }

    .links {
        padding: 3% 3%;
    }

    .aboutwrite,
    .supportwrite {
        max-width: 100%;
        padding-left: 1em;
        padding-right: 1em;
        text-align: center;
    }

    .gardenpic img,
    .paintpic img {
        width: 90%;
        max-width: none;
        height: auto;
        padding-top: 1em;
    }

    .links div {
        max-width: 100%;
        margin: 1em 0;
    }

    .buttonr {
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .form {
        width: 90%;
        margin: 0 auto;
        padding: 3%;
    }

    .btn,
    .btn2 {
        width: 80%;
        margin-left: 10%;
    }

    .social {
        flex-direction: column;
        padding: 1em 0;
    }

    .icon {
        margin: 1em 0;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.4em;
    }

    h4 {
        font-size: 1.1em;
    }

    p {
        font-size: 1em;
    }

    .buttonr {
        padding: 15px;
    }

     #section6 h2 {
    font-size: 1.5em;
  }
}
