/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* VARIABLES */
:root {
    --primary-color: #2E5339;
    --secondary-color: #D6B36A;
    --dark-color: #1E1E1E;
    --light-color: #F5F5F5;
    --white-color: #FFFFFF;
}

/* GLOBAL */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding-top: 110px;
}

/* HEADER */
header {
    background-color: var(--primary-color);

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 50px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/* LOGO */
.logo img {
    height: 120px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 6px rgba(214, 179, 106, 0.25));
}

/* NAVIGATION */
nav ul {
    display: flex;

    gap: 55px;

    list-style: none;
}

nav a {
    color: var(--white-color);

    text-decoration: none;

    font-size: 18px;
    font-weight: bold;

    display: inline-block;

    transition: all 0.3s ease;
}

nav a:hover {
    color: #d4c06a;

    transform: translateY(-2px);

    text-shadow: 0 0 8px rgba(244, 201, 93, 0.4);
}

/* HERO */
#hero {
    height: 82vh;

    background-image:
        linear-gradient(
            rgba(0,0,0,0.55),
            rgba(0,0,0,0.55)
        ),
        url("../assets/images/pergola01.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 20px;

    transition: opacity 3.5s ease-in-out;
}

.fade {
    opacity: 0.75;
}

/* HERO CONTENT */
#hero h1 {
    font-size: 56px;

    color: var(--white-color);

    margin-bottom: 20px;

    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

#hero p {
    font-size: 22px;

    color: var(--white-color);

    max-width: 700px;

    margin: 0 auto;

    line-height: 1.5;

    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* HERO BUTTON */
.hero-btn {
    display: inline-block;

    background-color: var(--primary-color);
    color: var(--white-color);

    padding: 15px 35px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;

    margin-top: 20px;

    transition: 0.3s;
}

.hero-btn:hover {
    background-color: var(--secondary-color);
}

/* SERVICES */
#services {
    padding: 100px 80px;

    background-color: var(--white-color);

    text-align: center;
}

#services h2 {
    font-size: 42px;

    margin-bottom: 60px;

    color: var(--primary-color);
}

/* SERVICES CONTAINER */
.services-container {
    display: flex;

    justify-content: center;

    gap: 40px;

    flex-wrap: wrap;

    margin-top: 20px;
}

/* SERVICE CARD */
.service-card {
    background-color: #fafafa;

    width: 320px;

    padding: 40px 30px;

    border-radius: 16px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.08);

    transition: 0.3s ease;

    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);

    box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

/* SERVICE CARD CONTENT */
.service-card h3 {
    font-size: 28px;

    margin-bottom: 20px;

    color: var(--primary-color);
}

.service-card p {
    font-size: 18px;

    line-height: 1.6;

    color: #555;
}

#about,
#services,
#gallery,
#contact {
    scroll-margin-top: 140px;
}

/* ABOUT */

#about {
    padding: 40px 80px 120px;
    background-color: #f9f9f9;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-text p {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    height: 380px;

    object-fit: cover;
    object-position: center;

    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.12);

    display: block;
    margin: 0 auto;
}

/* GALLERY */

#gallery {
    padding: 100px 80px;
    background-color: var(--white-color);
    text-align: center;
}

#gallery h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 60px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.gallery-container img {
    width: 100%;
    height: 260px;

    object-fit: cover;

    border-radius: 18px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.12);

    transition: 0.4s ease;

    cursor: pointer;
}

.gallery-container img:hover {
    transform: translateY(-8px) scale(1.02);

    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* CONTACT */

#contact {
    padding: 20px 80px;
    background-color: #f7f7f7;
}

#contact h2 {
    text-align: center;

    font-size: 35px;

    color: var(--primary-color);

    margin-bottom: 60px;
}

.contact-container {
    display: flex;

    gap: 60px;

    align-items: flex-start;

    justify-content: center;

    max-width: 1400px;

    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 32px;

    color: var(--primary-color);

    margin-bottom: 25px;
}

.contact-info p {
    font-size: 18px;

    line-height: 1.8;

    color: #555;

    margin-bottom: 20px;
}

.contact-form {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 18px;

    border: 1px solid #ddd;

    border-radius: 12px;

    font-size: 16px;

    outline: none;

    transition: 0.3s ease;
}

.contact-form textarea {
    height: 180px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);

    box-shadow: 0 0 10px rgba(46, 83, 57, 0.15);
}

.contact-form button {
    background-color: var(--primary-color);

    color: var(--white-color);

    border: none;

    padding: 18px;

    border-radius: 14px;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--secondary-color);

    transform: translateY(-2px);

}

/* FOOTER */

footer {
    background-color: var(--primary-color);
    color: var(--white-color);

    padding-top: 100px;

    border-radius: 20px 20px 0 0;

    overflow: hidden;

    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
}

.footer-container {
    max-width: 1400px;

    margin: 0 auto;

    padding: 0 80px 50px;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 60px;

    flex-wrap: wrap;
}

.footer-logo {
    flex: 1.4;
    min-width: 300px;
    text-align: center;
    margin-top: -18px;
    
}

.footer-logo img {
    display: block;
    margin: 0 auto 5px;
    height: 115px; 
}

.footer-logo p {
    font-size: 17px;

    line-height: 1.8;

    max-width: 350px;

    margin: 0 auto;

    color: rgba(255,255,255,0.8);
}

.footer-links,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 220px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.social-icons img:hover {
    transform: translateY(-4px);
}

.social-icons img {
    width: 60px;
    height: 60px;
    transition: 0.3s ease;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    font-size: 26px;

    margin-bottom: 25px;

    color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;

    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
    
}

.footer-links a {
    color: rgba(255,255,255,0.85);

    text-decoration: none;

    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-contact p {
    margin-bottom: 18px;

    color: rgba(255,255,255,0.85);

    font-size: 17px;
}

.footer-social {
    display: flex;

    flex-direction: column;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);

    text-align: center;

    padding: 25px;

    font-size: 15px;

    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: rgba(255,255,255,0.85);

    text-decoration: none;

    transition: 0.3s ease;

    word-break: break-word;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

/* WHATSAPP BUTTON */

.whatsapp-button {

    position: fixed;

    bottom: 20px;

    right: 15px;

    z-index: 999;

    width: 60px;

    height: 60px;

    border-radius: 50%;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0,0,0,0.25);

    transition: 0.3s ease;
}

.whatsapp-button img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.whatsapp-button:hover {
    transform: scale(1.08) translateY(-3px);

    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

#form-message {
    margin-top: 1px;
    min-height: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;

}

#form-message.success {
    color: #2e7d32;
}

#form-message.error {
    color: #d32f2f;
}

/*RESPONSIVIDADE MOBILE*/

@media (max-width: 768px) {

    /* HEADER */
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 20px;
    }

    .logo img {
        height: 60px;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* HERO */
    #hero {
    height: 80vh;
    padding-top: 160px;
    padding-right: 20px;
    padding-left: 20px;
    }

    #hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;

        max-width: 320px;
        margin: 0 auto 20px;
    }

    .hero-content p {
        font-size: 18px;
    }

    /* ABOUT */
    #about {
        padding: 80px 25px;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-text h2 {
        font-size: 40px;
    }

    .about-text p {
        font-size: 18px;
    }

    .about-image img {
        width: 100%;
        max-width: 450px;
        height: auto;
        margin: 0 auto;
    }

    /* SERVICES */

#services {
    padding: 80px 25px;
}

#services h2 {
    font-size: 40px;
}

.services-container {
    flex-direction: column;

    align-items: center;

    gap: 25px;
}

.service-card {
    width: 100%;

    max-width: 450px;
}

.service-card h3 {
    font-size: 24px;
}

.service-card p {
    font-size: 17px;
}

    /* GALLERY */
    #gallery {
        padding: 80px 25px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }
   
    /* CONTACT */

#contact {
    padding: 80px 25px;
}

#contact h2 {
    font-size: 42px;
    margin-bottom: 40px;
}

.contact-container {
    flex-direction: column;

    gap: 40px;

    align-items: center;
}

.contact-info,
.contact-form {
    width: 100%;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 28px;
}

.contact-info p {
    font-size: 17px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
}

.contact-form textarea {
    min-height: 160px;
}

    /* FOOTER */
    footer {
        padding: 50px 20px 30px;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        
    }
    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-contact {
    width: 100%;

}

.footer-logo {
    min-width: auto;
    margin-top: 0;
}

.footer-logo img {
    width: 220px;
    height: auto;
}

.footer-logo p {
    max-width: 100%;
}

/*whatsapp*/

.whatsapp-button {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
}
}