html, body {
    margin: 0;
    height: 100%;
    font-family: Georgia, serif;
    color: #f3e8d8;
    scroll-behavior: smooth;

   background-image: url("backdrop.png");
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
background-size: cover;  /* <— THIS is what you want on desktop AND mobile */
background-color: #555555;
}



/* HERO SECTION */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background:
        url("Rustic Home Improvement Elegance.png")
        no-repeat center center fixed;
    background-size: 60%;
    background-position: center center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #fcead2;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
    letter-spacing: 0.05em;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(30, 20, 10, 0.55);
    backdrop-filter: blur(4px);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

nav a {
    color: #f3e8d8;
    margin: 0 24px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 2px 3px black;
}

nav a:hover {
    color: #ffffff;
}

/* CONTENT SECTIONS */
section {
    padding: 45px 30px;
    max-width: 900px;
    margin: 70px auto;
    background: rgba(40, 25, 15, 0.85);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    backdrop-filter: blur(2px);
}

h2 {
    color: #f6e4c3;
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

p, li, label {
    font-size: 1.2rem;
    line-height: 1.8rem;
}

ul {
    margin-left: 25px;
}

/* SERVICES TABLE */
.services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
    text-align: center;
}

.services-table td {
    padding: 10px;
}

.separator {
    width: 40px;
    font-size: 1.5rem;
}
/* GALLERY SECTION */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    background: rgba(255,255,255,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Optional: smooth fade-in appearance */
.gallery-item {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}


/* FORM */
form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #5b4632;
    background: rgba(255,255,255,0.12);
    color: #f3e8d8;
}

button {
    background: #6b3f24;
    color: #f3e8d8;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

button:hover {
    background: #8a512d;
}

#form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

#form-message.success {
    background: rgba(0, 120, 0, 0.3);
    color: #b4ffb4;
}

#form-message.error {
    background: rgba(120, 0, 0, 0.3);
    color: #ffb4b4;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 25px;
    background: rgba(50, 30, 15, 0.9);
    color: #f3e8d8;
    margin-top: 50px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.7);
}

@media (max-width: 600px) {
    html, body {
        background-attachment: scroll !important; /* fixes mobile rendering */
        background-size: cover !important;        /* ensures full-page backdrop */
    }
}

@media (max-width: 1100px) {
    section {
        max-width: 85%;
    }

    nav a {
        margin: 0 16px;
        font-size: 1.1rem;
    }

    .hero {
        background-size: 80%;
    }
}

/* Tablets */
@media (max-width: 800px) {
    header {
        padding: 15px 0;
    }

    nav a {
        margin: 0 12px;
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        margin: 60px auto;
        padding: 35px 25px;
    }

    p, li, label {
        font-size: 1.1rem;
    }

    .hero {
        background-size: 95%;
    }
}

/* Phones */
@media (max-width: 600px) {

    /* Stack nav links vertically for clarity */
    header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    nav a {
        margin: 0 8px;
        font-size: 1rem;
    }

    /* Hero adjusts to full width */
    .hero {
        background-size: 130%;
    }

    section {
        padding: 25px 18px;
        margin: 50px auto;
    }

    h2 {
        font-size: 1.7rem;
    }

    p, li, label {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    /* Services table becomes stacked */
    .services-table td {
        display: block;
        width: 100%;
        padding: 12px 0;
    }

    .separator {
        display: none; /* Remove the middle ⚒ on small screens */
    }

    form input, form textarea {
        font-size: 1rem;
        padding: 10px;
    }

    button {
        width: 100%;
        font-size: 1rem;
        padding: 12px;
    }

    footer {
        padding: 18px;
        font-size: 0.9rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    h2 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    form input, form textarea {
        font-size: 0.95rem;
    }

    button {
        font-size: 0.95rem;
    }
}
