:root {
    --color-primary: #2E5339;
    --color-secondary: #F5F5F0;
    --color-tertiary: #4A4A4A;
    --color-accent: #C97C27;
    --font-display: 'Merriweather', Georgia, serif;
    --font-button: 'Sansation', 'Helvetica Neue', Arial, sans-serif;
    --font-test: "Roboto", sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-display);
}

body {
    overflow-x: hidden;
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* ===== SHARED UTILITIES ===== */
p a {
    font-family: var(--font-test);
}

.btn {
    color: white;
    background-color: var(--color-accent);
    border: none;
    border-radius: 20px;
    font-family: var(--font-button);
    font-weight: 600;
    transition: all .1s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    font-weight: 800;
    transition: all .2s ease;
}

.btn:active {
    background-color: var(--color-tertiary);
    transition: all .1s ease;
}

.btn-small {
    width: 6rem;
    height: 3rem;
    font-size: 1rem;
}

.btn-large {
    width: 10rem;
    height: 4rem;
    font-size: 1.3rem;
    margin-top: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 3rem;
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 98vw;
    min-height: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.content-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

/* ===== HEADER ===== */
header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    top: 0;
    z-index: 1000;
    background-color: var(--color-secondary);
    position: sticky;
}

header > picture > a > img {
    margin-left: 1rem;
    height: 5rem;
    transition: all .1s ease;
}

header > picture > a > img:hover {
    transform: scale(1.05);
    transition: all .2s ease;
}

header > nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 35rem;
    width: clamp(25rem, 30rem, 40rem);
    padding-left: 5rem;
    min-width: 25rem;
}

header > nav > a {
    color: var(--color-primary);
    font-size: 1.1rem;
    transition: all .1s ease;
}

header > nav > a:hover {
    text-decoration: underline;
    transform: scale(1.05);
    transition: all .2s ease;
}

.desktop-nav-btn {
    margin-right: 2rem;
}

/* ===== HERO SECTION ===== */
.hero-div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 60vh;
    height: auto;
    padding: 8rem 0; 
}

.hero-div > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(.75);
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    left: 5%;
    max-width: 45rem;
}

.hero-content > h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    color: white;
    max-width: 45rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    text-align: center;
    margin-bottom: 6rem;
}

.services h2 {
    padding-top: 3rem;
}

.services-box {
    width: 26rem;
    height: 25rem;
    text-align: left;
}

.services-box > img {
    width: 100%;
    border-radius: 1rem;
}

.services-box > h3 {
    text-align: center;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.services-box > p {
    text-align: center;
    margin-top: 1rem;
    font-size: clamp(1rem, 3vw, 1.25rem);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    position: relative;
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding-top: 1rem;
    padding-bottom: 6rem;
}

.testimonials h2 {
    margin-top: 3rem;
}

.testimonials-box {
    text-align: left;
    width: 20rem;
    height: 20rem;
}

.testimonials-box > img {
    width: 100%;
    border-radius: 1rem;
}

.flex-testimony {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-testimony > img {
    width: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 200px;
    box-sizing: border-box;
    background-color: black;
    border: 5px solid gray;
}

.testimonials-box h3 {
    text-align: left;
    color: var(--color-primary);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1rem;
}

.stars {
    margin-top: -2rem;
}

.testimonials-box > p {
    text-align: left;
    color: black;
    margin-top: 1rem;
    font-size: clamp(1rem, 3.5vw, 1.55rem);
    line-height: 3.5rem;
}

.testimonial-button {
    margin-top: 2rem;
}

/* ===== ESTIMATE FORM ===== */
.estimate {
    padding: 3rem 1rem 6rem;
}

.estimate-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.estimate-flex > h2 {
    margin-top: 0;
}

form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 35rem;
    width: 100%;
    box-sizing: border-box;
}

form p {
    margin-bottom: 1.5rem;
}

form label {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
}

form input,
form textarea {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 124, 39, 0.2);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form button {
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-test);
    width: 100%;
    max-width: 200px;
    transition: all .1s ease;
}

form button:hover {
    background-color: var(--color-primary);
    font-weight: 800;
    transform: scale(1.05);
}

form button:active {
    background-color: var(--color-tertiary);
    transform: scale(0.98);
}

/* Hide honeypot field */
form .hidden {
    display: none;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-primary);
    color: white;
    min-height: 20rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

footer > h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-flex-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 600px;
}

.footer-flex-nav > a {
    color: var(--color-secondary);
    padding: 0.5rem;
}

.footer-flex-credits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.footer-flex-credits > div {
    text-align: center;
}

.web-credits > h5 {
    font-size: 1rem;
    opacity: 80%;
    margin-bottom: 0.5rem;
}

.web-credits > h4 {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .08rem;
}

.company-credits > h5{
    font-size: 1rem;
    opacity: 80%;
    margin-bottom: 0.5rem;
}

.company-credits > h5:last-child {
    margin-bottom: 0;
}

.top-button {
    font-size: 1.1rem;
    font-weight: 575;
    opacity: 80%;
    order: -1;
}

.top-button > a > h4 {
    color: white;
    transition: all .1s ease;
    margin: 0;
}

.top-button > a > h4:hover {
    transform: scale(1.05);
    text-decoration: underline;
    transition: all .2s ease;
}

.socials > div > a > img {
    width: 1.5rem;
    margin: 0 0.5rem;
}

.flex-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 2rem;
}

.flex-info > div > h3 {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 0.5rem;
}

.flex-info > div > p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.25rem 0;
}

hr {
    border-color: var(--color-accent);
    border-style: solid;
    border-width: 0.1rem;
    width: 60%;
    margin: 0.5rem auto;
}

/* ===== HAMBURGER MENU & MOBILE NAV ===== */
.desktop-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 35rem;
    width: 100%;
    gap: 2rem;
}

.hamburger-nav {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    width: 2rem;
    height: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
    z-index: 1001;
}

.hamburger-nav span {
    display: block;
    text-align: left;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate into "X" when active */
.hamburger-nav.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}
.hamburger-nav.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-nav.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -12px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 22rem;
    height: 100vh;
    background-color: var(--color-secondary);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu nav a {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu.active {
    right: 0;
}

.form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
}

.form input,
.form textarea,
.form button {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
}

.footer .footer-section {
    flex: 1;
}

/* ===== MEDIA QUERIES ===== */

@media (max-width: 1418px) {
    .hero-button {
        
    }
}

@media (max-width: 1145px) {
    .hero-div {
        min-height: 50vh;
        padding: 3rem 0;
    }
    .hero-content > h1 {
        font-size: 3rem;
        max-width: 35rem;
        margin-top: 3rem;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }
    .hamburger-nav {
        display: flex;
    }
}

@media (max-width: 725px) {
    .hero-div {
        min-height: 40vh;
        padding: 2rem 0;
    }
    .hero-content > h1 {
        font-size: 2rem;
        max-width: 25rem;
        margin-top: 2.5rem;
    }
    
    /* Form mobile adjustments */
    form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .estimate {
        padding: 2rem 0.5rem 4rem;
    }
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .footer .footer-section {
        margin: 0 1rem;
    }

    .form {
        padding: 2rem;
    }
    
    /* Desktop footer layout */
    .footer-flex-nav {
        gap: 3rem;
        margin-bottom: 4rem;
        max-width: 700px;
    }
    
    .flex-info {
        flex-direction: row;
        justify-content: space-between;
        max-width: 100vw;
        margin: 0 auto 2rem auto;
    }
    
    .flex-info > div {
        flex: 1;
        padding: 0 1rem;
    }
    
    .flex-info .hours {
        text-align: left;
    }
    
    .flex-info .contact-footer {
        text-align: center;
    }
    
    .flex-info .socials {
        text-align: right;
    }
    
    .flex-info .hours hr {
        margin: 0.5rem 0 0.5rem 0;
        width: 80%;
    }
    
    .flex-info .contact-footer hr {
        margin: 0.5rem auto;
        width: 60%;
    }
    
    .flex-info .socials hr {
        margin: 0.5rem 0 0.5rem auto;
        width: 80%;
    }
    
    .footer-flex-credits {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        max-width: 100vw;
        margin: 0 auto;
        margin-top: 1rem;
    }
    
    .footer-flex-credits > div {
        flex: 1;
        padding: 0 0;
    }
    
    .top-button {
        order: 0;
        text-align: center;
    }
    
    .web-credits {
        text-align: left;
    }
    
    .company-credits {
        text-align: right;
    }
}

