@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap');
body {
    margin: 0;
    box-sizing: border-box;
    width: 100%;
}
a {
    text-decoration: none;
}
p {
    font-family: "Inter";
}
.active {
    text-decoration: underline;
    font-weight: bold;
    color: rgb(172, 170, 170);
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Merriweather Sans";
    margin: 0;
}

/* Nav Bar */
nav {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: #2D2F2A;
    padding: 0.5rem;
    max-width: 100vw;
}
.logo-container img {
    height: 46px;
}
.logo-container {
    align-content: center;
    padding-left: 1rem;
}
.buttons-container {
    display: none;
}
.off-screen-menu ul {
    list-style-type: none;
}
.off-screen-menu a{
    text-decoration: none;
    color: white;
}
.gap img {
    width: 250px;
    height: auto;
}
div.off-screen-menu {
    background-color: #000000f2;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
}
.off-screen-menu.active-menu {
    right: 0;
}
.ham-menu {
    height: 62px;
    width: 62px;
    margin-left: auto;
    position: relative;
    z-index: 9;
    grid-column-start: 2;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #f2f1df;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
    z-index: 9;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.buttons-container div{
    color: white;
    transition: 0.4s ease;
}
.buttons-container div:hover {
    transform: scale(1.1);
}

/* Hero Section */
.fences {
    display: none;
}
div.hero-image {
    height: 50vh;
    max-height: 300px;
    overflow: hidden;
    background-image: url("../images/small_mobile_hero.webp");
    background-size: cover;
    background-position: left center;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.hero-image-fences {
    height: 50vh;
    max-height: 600px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

.background {
    background-color: #2a582372;
    grid-column-start: 2;
    box-shadow: -20px 0px 20px 13px #2a582372;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:start;
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem;
}
.solid-background {
    background-color: #4c7945;
    grid-column-start: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:start;
    color: white;
    font-size: 2rem;
    padding: 1rem;
}
.solid-background h1 {
    font-size: 2.5rem;
    align-self: center;
}
.cta-button {
    font-size: 0.8rem;
    text-align: center;
    color: white;
    background: #2b2b2b;
    width: 150px;
    border-radius: 1px;
    transition: 0.4s ease;
    padding: 0.5rem;
    font-family: "Inter";
}
.cta-button:hover {
    transform: scale(1.1);
}
.smaller-hero {
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.8rem;
    justify-content: center;
    align-items: center;
    background: #2a582372;
}
/* slideshow */
.slideshow-wrapper {
    position: relative;
    overflow: hidden;
}
.slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}
/* slide in styles */
.slide-in {
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 0;
    transform: translateY(50px);
}
.slidertrack {
  display: flex;
  transition: transform 0.5s ease;
}
.slide-in.active-slides {
  opacity: 1;
  transform: translateY(0);
}
.mySlides1 {
   min-width: 100%; 
  display: flex;
  justify-content: center; 
  align-items: center;  
}
.mySlides1 img {
    width: 350px;   
  height: auto;
  object-fit: contain; 
  display: block;
}
button.prev {
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    background: #393939ae;
    color: white;
    padding: 0.2rem;
    border: none;
}

button.next {
    position: absolute;
    top: 50%;
    right: 0;
    width: 40px;
    background: #393939ae;
    color: white;
    padding: 0.2rem;
    border: none;
}
/* content */
section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    
}
.gap {
    padding: 1.2rem;
    
}
.center {
    text-align: center;
}
.flex-center{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}
.gap h3 {
    font-size: 1rem;
}
.contact {
    background: #F5F1EB;
    grid-template-columns: 1fr;
}
.beige {
    display: flex;
    background: #F5F1EB;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}
.beige.reverse-on-mobile {
    flex-direction: column-reverse;
  }
footer {
    background: #2D2F2A;
    display: flex;
    justify-content: center;
    color: white;
    align-items: center;
    gap: 3rem;
    font-size: 0.5rem;
    padding: 1rem;
}
footer a {
    text-decoration: none;
    color: white;

}
form {
    width: 90%;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}
form > div{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    background: rgb(198, 198, 198);
    padding: 1rem;
    width: 80%;
    max-width: 80vw;
}
form > div >button {
    padding: 0.5rem;
    background: #2D2F2A;
    color: white;
    margin-right: auto;
    margin-left: auto;
    border: none;
    font-family: "Merriweather Sans";
    font-weight: bold;
    width: 70%;
}
form > div input[type=text], form > div input[type=email] {
    padding: 0.4rem;
    font-size: 0.7rem;
}
textarea#message{
    height: 200px;
    width: 100%;
}
label {
    font-size: 1rem;
    font-family: "Merriweather Sans";
}
.link-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.error-message {
    color: red;
    font-size: 0.85em;
    margin-top: 4px;
}
@media (min-width: 480px) and (orientation: portrait) {
    div.hero-image {
        background-image: url("../images/large_mobile_hero.webp");
    }
    form > div{
    width: 420px;
    max-width: 80vw;
}
.solid-background h1 {
    font-size: 3rem;
    align-self: center;
}
}

@media (max-width: 767px) and (orientation: landscape) {
    div.hero-image {
        background-image: url("../images/landscape_hero.webp");
    }
}
@media (min-width: 1100px) {
    div.hero-image {
    height: 70vh;
    max-height: 600px;
    overflow: hidden;
    background-image: url("../images/hero_desktop.webp");
}
nav {
    display: grid;
    grid-template-columns: 2fr 6fr;
    background: #2D2F2A;
    padding: 0.5rem;
}
.logo-container img {
    height: 100px;
}
.ham-menu {
    display: none;
}
.buttons-container {
    grid-column-start: 2;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-family: "Inter";
}
.background {
    background-color: #2a582372;
    grid-column-start: 2;
    box-shadow: -20px 0px 20px 13px #2a582372;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:start;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem;
}
.solid-background {
    background-color: #4c7945;
    grid-column-start: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:start;
    color: white;
    padding: 1rem;
}
.solid-background h1 {
    font-size: 3.5rem;
    align-self: center;
}
.cta-button {
    font-size: 1.3rem;
    text-align: center;
    color: white;
    background: #2b2b2b;
    width: 200px;
    border-radius: 1px;
    transition: 0.4s ease;
    padding: 0.5rem;
    font-family: "Inter";
}
.gap h3 {
    font-size: 2rem;
}
.mySlides1 img {
    width: 500px;   /* You can set to 60%, 400px, etc. */
  height: auto;
  object-fit: contain; /* Keeps aspect ratio */
  display: block;
}
button.prev {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 40px;
    background: #393939ae;
    color: white;
    padding: 0.2rem;
    border: none;

}

button.next {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 40px;
    background: #393939ae;
    color: white;
    padding: 0.2rem;
    border: none;
}
section {
    
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    
}
.beige {
    display: grid;
    background: #F5F1EB;
    grid-template-columns: 1fr 1fr;
}
div.off-screen-menu {
    display: none;
}
.smaller-hero {
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    background: #2a582372;
}
.hero-image-fences {
    height: 70vh;
    background: url("../images/hero_desktop_fences.webp");
    max-height: 600px;
    object-fit: cover;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.gap img {
    width: 500px;
    height: auto;
}
footer {
    font-size: 1rem;
}
form > div{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
    background: rgb(198, 198, 198);
    padding: 1rem;
    width: 600px;
}
form > div >button {
    padding: 0.5rem;
    background: #2D2F2A;
    color: white;
    margin-right: auto;
    margin-left: auto;
    border: none;
    font-family: "Merriweather Sans";
    font-weight: bold;
    width: 70%;
}
form > div input[type=text], form > div input[type=email] {
    padding: 0.4rem;
    font-size: 1.2rem;
}
label {
    font-size: 2rem;
    font-family: "Merriweather Sans";
}
}
