html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    scroll-padding-top: 90px;
}


nav {
    background: linear-gradient(
        to right,
        rgb(129, 103, 0),
        white,
        rgb(129, 103, 0)
    );
    color: white;
    height: 60px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

#nav-logo {
    margin: 0;
    padding: 0;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    list-style: none;
}

.nav-bar {
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-list a {
  color: rgb(31, 55, 74);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-list a.highlight {
  color: rgb(31, 55, 74); /* highlight color */
}

#home {
    margin-top: 120px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#home img {
    height: auto;
    width: 360px;
    margin: 20px;
    border: 2px solid rgb(185, 151, 14);
}

#home h1 {
    font-size: 4rem;
    color: rgb(31, 55, 74);
    text-align: center;
    
}

#home p {
    font-size: 1.5rem;
    color: rgb(31, 55, 74);
    text-align: center;
    max-width: 800px;
}

#services {
    padding-bottom: 40px;
}

#services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#services-list div {
    flex: 1 1 70%; /* Flex-grow, flex-shrink, and base width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
    border: 2px solid rgb(185, 151, 14);
    padding: 20px;
    box-sizing: border-box;
    max-width: 70%;
    line-height: 1.5;
}

.bifold-images,
.roof-lantern-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
}

.bifold-images img,
.roof-lantern-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 2px solid rgb(185, 151, 14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.hidden {
    display: none;
}

#contact {
    margin-top: 80px;
}

.contact-details p {
    font-size: 1rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    text-decoration: underline;
    margin-bottom: 60px;
    color: rgb(185, 151, 14);
}

h5 {
    font-size: 1.2rem;
    text-align: center;
    color: rgb(31, 55, 74);
}

h6 {
    font-size: 1.3rem;
    text-align: center;
    color: rgb(31, 55, 74);
    margin-bottom: 30px;
    text-decoration: underline;
}

p {
    font-size: 1.2rem;
    text-align: center;
    color: rgb(31, 55, 74);
}

form {
  max-width: 500px;
  margin: 40px auto;
  padding: 20px;
  border: 2px solid rgb(185, 151, 14); /* AGS Gold */
  border-radius: 8px;
  background-color: #fdfdfd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  color: rgb(31, 55, 74);
}

input,
select,
textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border: 1px solid rgb(129, 103, 0); /* Highlight on focus */
  outline: none;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: rgb(129, 103, 0);
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: rgb(102, 82, 0);
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(129, 103, 0); /* Your gold tone */
    color: white;
    text-align: center;
    padding: 5px 0;         /* Reduced vertical padding */
    width: 100%;
}

footer p {
    margin: 0;
    font-size: 0.9rem; /* Smaller font size */
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1024px) {

    html, body {
        scroll-padding-top: 150px; /* Adjust for fixed nav height */
    }

    nav {
        height: 80px;
    }

    .nav-bar {
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    }

    #nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    }

    .nav-list {
    flex-grow: 1;              /* fill remaining space next to logo */
    display: flex;
    justify-content: flex-end; /* align nav links to right */
    gap: 40px;                 /* space between links */
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 1.5rem;
    }

    #home {
        margin: 240px 0;
        height: 100%;
        padding-bottom: 150px;
    }

    #home img {
        height: auto;
        width: 450px;
        margin: 40px;
    }

    #home h1 {
        font-size: 4rem;        
    }

    #home p {
        font-size: 2rem;
    }

    h2 {
        font-size: 3rem;
        margin-bottom: 80px;
    }

    h5 {
        font-size: 1.8rem;
    }

    h6 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    p {
        font-size: 1.5rem;
        width: 80%;
        margin: 0 auto;
    }

    #services {
        margin: 240px 0;
    }

    #services-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        flex-direction: row;
        align-items: stretch;
        margin-top: 20px;
    }

    #services-list div {
        flex: 1 1 35%;
        margin: 40px;
        padding: 40px;
        font-size: 1.6rem;
        max-width: 40%;
    }

    #see-more-bifold,
    #see-more-roof-lantern {
        display: block;
        margin: 20px auto;
        padding: 10px 20px;
        font-size: 1.2rem;
        background-color: rgb(129, 103, 0);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .bifold-images img,
    .roof-lantern-images img {
        width: 100%;
        height: 400px;
    }

    .contact-details p {
        font-size: 1.4rem;
        line-height: 1.6;
    }

    form {
        max-width: 600px;
        padding: 30px;
    }

    label {
        font-size: 1.4rem;
        padding-bottom: 20px;
    }

    input,
    select,
    textarea {
        font-size: 1.4rem;
    }

    button[type="submit"] {
        font-size: 1.4rem;
    }

}

@media (min-width: 1025px) {

    html, body {
        scroll-padding-top: 150px; /* Adjust for fixed nav height */
        height: 100%;
        margin: 0;
        padding: 0;
    }

    section {
        padding: 70px 0;
    }

    .page-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    main {
        flex-grow: 1;
    }

    form {
        margin-bottom: 60px; /* prevent footer collision */
    }

    nav {
        height: 80px;
    }

    .nav-bar {
        display: flex;
        align-items: center;
        padding: 0 20px;
        box-sizing: border-box;
        width: 100%;
    }

    #nav-logo {
        height: 60px;
        width: auto;
        object-fit: contain;
    }

    #home img {
        height: 200px;
        width: auto;
        margin: 20px;
    }

    .nav-list {
        flex-grow: 1;              /* fill remaining space next to logo */
        display: flex;
        justify-content: flex-end; /* align nav links to right */
        gap: 40px;                 /* space between links */
        list-style: none;
        margin: 0;
        padding-left: 0;
        font-size: 1.5rem;
    }

    #services-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 40px;
    }

    #services {
        padding-bottom: 60px;
        width: 85%;
        margin: 0 auto;
    }

    #services-list div {
        flex: 1 1 25%;
        margin: 40px;
        padding: 40px;
        height: 440px;
        font-size: 1.6rem;
        line-height: 1.4;
        align-items: center;
        max-width: 30%;
    }

    .bifold-images,
    .roof-lantern-images {
        gap: 15px;
        padding: 20px;
    }

    .bifold-images img,
    .roof-lantern-images img {
        width: 100%;
        height: 420px;
    }

    .bifold-images-shown,
    .bifold-images-more-images,
    .roof-lantern-images-shown,
    .roof-lantern-more-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 👈 3 images per row */
        gap: 15px;
        padding: 20px 0;
    }

    .hidden {
        display: none;
    }

    #see-more-bifold,
    #see-more-roof-lantern {
        display: block;
        margin: 20px auto;
        padding: 10px 20px;
        font-size: 1.2rem;
        background-color: rgb(129, 103, 0);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    h5{
        font-size: 1.5rem;
    }

    #contact {
        margin-top: 120px;
        height: 100%;
    }

    .contact-details {
        width: 50%;
        margin: 0 auto;
        text-align: center;
        padding: 40px;
    }

    .contact-details p {
        font-size: 1.4rem;
        line-height: 2.6;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 80px;
    }

    h5 {
        font-size: 1.5rem;
    }

    h6 {
        font-size: 1.5rem;
        margin-bottom: 40px;
    }

    p {
        font-size: 1.3rem;
        width: 85%;
        margin: 0 auto;
        line-height: 1.6;
    }

    footer {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgb(129, 103, 0); /* Your gold tone */
        color: white;
        text-align: center;
        padding: 5px 0;         /* Reduced vertical padding */
        width: 100%;
    }

    footer p {
        margin: 0;
        font-size: 0.9rem; /* Smaller font size */
        text-align: center;
    }
}

@media  (max-width: 767px) {
    html, body {
        scroll-padding-top: 60px;
        overflow-x: hidden;
    }

    section {
        padding: 20px;
    }

    #home {
        padding: 60px 0;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        background-color: transparent; /* ← if you want no background */
        margin-left: auto;
        position: relative;
        right: 0;
        padding-right: 20px;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: floralwhite;
        border-radius: 2px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background-color: rgb(184, 148, 2); /* dark background for dropdown */
        padding: 10px;
        border-radius: 4px;
        box-sizing: border-box;
        max-width: 90vw;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-bar {
        display: flex;
        align-items: center;
        justify-content: space-between; /* ← important! */
        padding: 0;
        position: fixed;
        width: 100%;
    }

    #nav-logo {
        padding-left: 20px;
    }
}