@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --base: #D2B48C;
    --details: #A47551;
    --texts: #4B2E2E;
    --background: #fcfcfc;
    --background02: #E9D9C4;
    --drafts: #C8A97E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    max-width: 2000px;
    width: 100%;
    margin: auto;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.5);
    font-family: 'Nunito', sans-serif;  
    background-color: var(--background);
}

#main-header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    transition: 0.5s ease;
}

.scrolled {
    background-image: linear-gradient(-180deg, var(--texts), var(--details)); 
}

.container {
    max-width: 1500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 1rem 2rem 0.5rem 2rem;
}

.main-link {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: flex-start;
    justify-content: left;
    gap: 1rem;
    font-size: 2.3rem;
    font-weight: 600;
    color: var(--background);
}

.logo {
    height: 5rem;
}

.logo-container p {
    display: flex;
    flex-direction: column;
}

.logo-container span {
    font-size: 1.3rem;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style-type: none;
}

.nav-item {
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-item::after {
    position: absolute;
    content: "";
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: var(--base);
    box-shadow: 0px 0px 5px var(--base);
    transition: width 0.5s ease-in-out;
}

.nav-item:hover::after {
    width: 70%;
}

.nav-link {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--background);
}

.nav-link:hover {
    color: var(--base);
    text-shadow: 0px 0px 5px var(--base);
}

.header-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--background);
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--background);
    transition: 0.3s ease;
}

.header-button svg {
    height: 2rem;
    fill: white;
    transition: 0.3s ease;
}

.header-button:hover {
    border: 2px solid var(--base);
    box-shadow: 0px 0px 0px var(--base);
    color: var(--base);
    text-shadow: 0px 0px 5px var(--base);
}

.header-button:hover svg {
    fill: var(--base);
    filter: drop-shadow(0 0 6px var(--base));
}

.mobile-menu {
    display: none;
}

.mobile-menu-button {
    display: none;
}

.mobile-menu-button img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {

    #main-header {
        background-image: linear-gradient(-180deg, var(--texts), var(--details)); 
    }

    .container {
        padding: 0.5rem 2rem;
    }

    .nav-bar {
        gap: 0;
    }

    .nav-list {
        position: absolute;
        top: 5.9rem;
        left: 0;
        width: 100%;
        max-height: 0;
        z-index: 100;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background-color: var(--details);
        transition: max-height 0.3s ease-in-out;
    }

    .nav-list.open {
        max-height: 30rem;
        padding: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item::after {
        display: none;
        height: 0;
    }

    .nav-link {
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        border-bottom: 1px solid var(--background);
    }

    .nav-link:hover {
        border: 1px solid var(--base);
        box-shadow: 1px 1px 5px var(--base);
    }

    .header-button {
        display: none;
    }

    .mobile-menu-button {
        display: block;
        height: 2rem;
        border: none;
        background: transparent;
        cursor: pointer;
    }
}

#banner {
    position: relative;
    height: 65rem;
    display: flex;
    align-items: center;
    justify-content: center;    
    box-shadow: 2px 3px 5px rgba(0,0,0,0.5);
}

@keyframes fade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    33%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

.slide {
    position: absolute;
    top: 0; 
    left: 0;
    height: 100%; 
    width: 100%;
    background-size: cover;
    background-position: center;
    background-blend-mode: darken;
    background-color: rgba(0,0,0,0.4);
    opacity: 0;
    animation: fade 15s infinite;
}

.banner-text-container {
    z-index: 2;
    color: #FFF;
    text-shadow: 2px 2px 5px var(--base);
    text-align: center;
}

.banner-text-container h1 {
    font-size: 5rem;
}   

.banner-text-container p {
    max-width: 100rem;
    margin: auto;
    text-align: justify;
    font-size: 2rem;
}

.title-bar {
    height: 3px;
    width: 8rem;
    margin: auto;
    margin-bottom: 2rem;
    background-color: var(--details);
}

@media (max-width: 620px) {

    .banner-text-container h1 {
        font-size: 4rem;
    }
}

@media (max-width: 1200px) {

    .banner-text-container {
        max-width: 90%;
    }

    .banner-text-container h1 {
        text-align: left;
    }
}

#about {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.about-content-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    margin: auto;
}

.about-text-container {
    max-width: 75rem;
    font-size: 1.8rem;
}

.about-text-container p {
    margin-bottom: 1rem;
    text-align: justify;
}

.about-text-container ul {
    padding-left: 3rem;
    margin-bottom: 1rem;
}

.about-bottom-container {
    position: relative;
    margin: auto;
    height: 21rem;
    width: 46rem;
}

.about-image-container {
    position: absolute;
    z-index: 2;
    top: 1.7rem;
    height: 18rem;
    width: 18rem;  
    border-top-left-radius: 2rem; 
    border-bottom-right-radius: 2rem;
    border: 2px solid var(--texts); 
    box-shadow: 3px 3px 0 var(--texts);
    overflow: hidden;
}

.about-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 2rem; 
    border-bottom-right-radius: 2rem;
}

.diferentials-container {
    position: absolute;
    top: 0rem;
    left: 17rem;
    display: flex;
    flex-direction: column;
    border-top-right-radius: 3rem;
    border-bottom-left-radius: 3rem ;
    overflow: hidden;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.4);
}

.diferential {
    height: 7rem;
    width: 33rem;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.5rem;
    padding-left: 2rem;
    color: #FFF;
    font-size: 1.8rem;
    font-weight: 600;
}

#d1 { background-color: var(--base);  }
#d2 { background-color: var(--drafts); }
#d3 { background-color: var(--details); }

@media (max-width: 800px) {

    #about {
        padding-bottom: 1rem;
    }

    .about-text-container {
        max-width: 90%;
    }

    .about-image-container {
        top: 0;
        left: 8rem;
    }

    .about-bottom-container {
        height: 40rem;
        width: 33rem;
    }

    .diferentials-container {
        top: 16rem;
        left: 0rem;
    }

    #d1 {
        padding-top: 1.5rem;
    }
}

#services {
    padding: 5rem 0rem;
    background-color: var(--background02);
    background-image: url(../images/pattern.jpg);
    background-size: cover;
    background-position: center;
    background-blend-mode: darken;
    border: 5px double var(--details);
    border-top-left-radius: 20rem;
    box-shadow: 2px 3px 5px rgba(0,0,0,0.4);
}

.card-container {
    width: 70rem;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 35rem);
    grid-template-rows: repeat(3, 30rem);
    gap: 1rem;
    justify-content: center;
}

.card {
    padding: 1rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--texts);
    background-image: linear-gradient(120deg,var(--background), var(--background02));
    box-shadow: 2px 3px 5px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.5);
}

.card-image {
    height: 8rem;
}

.card-title-container {
    text-align: center;
}

.card-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-bar {
    height: 3px;
    width: 5rem;
    background-color: var(--details);
    margin: auto;
}

.card-list {
    max-width: 80%;
    font-size: 1.4rem;
}

@media (max-width: 800px) {

    #services {
        padding-top: 3rem;
        border-top-left-radius: 10rem;
    }

    .card-container {
        width: 100%;
        grid-template-columns: 31rem;
        grid-template-rows: repeat(6, auto);
    }

    .card {
        padding: 1rem;
    }
}

#blog {
    padding: 5rem 0rem;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(3, 35rem);
    grid-template-rows: 35rem;
    gap: 1rem;
    justify-content: center;
}

.preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--texts);
    border-radius: 0.5rem;
    background-image: linear-gradient(120deg, var(--background), var(--background02));
    box-shadow: 2px 3px 5px rgba(0,0,0,0.4);
}

.preview-image-container {
    height: 40%;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--texts);
}

.preview-image {
    height: 100%;
    width: 100%;
    object-fit: cover;  
}

.preview-title-container {
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-title-container a {
    text-decoration: none;
    color: #000;
    transition: 0.5s ease;
}

.preview-title-container a:hover {
    color: #a50303;
}

.preview-title {
    font-size: 1.5rem;
}

.preview-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--texts);
}

.preview-text-container {
    height: 25%;
}

.preview-text {
    font-size: 1.2rem;
    text-align: justify;
}

.preview-button {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--texts);
    background-color: var(--texts);
    color: var(--background);
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.5s ease;
}

.preview-button:hover {
    background-color: var(--base);
}

@media (max-width: 1100px) {

    #blog {
        padding-top: 3rem;
    }

    .preview-container {
        grid-template-columns: repeat(1, 35rem);
        grid-template-rows: repeat(3, 35rem);
    }
    
}

#contact {
    display: flex;
    padding-top: 5rem;
    padding-bottom: 3rem;
    background-image: linear-gradient(-180deg, var(--base), var(--texts));
}

#contact h2 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    color: #FFF;
}

#contact .title-bar {
    background-color: var(--base);
    margin: 0;
}

.form-container {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

form {
    width: 50rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
}

label {
    margin-bottom: 0.5rem;
    color: var(--background);
    font-size: 1.6rem;
    font-weight: 600;
}

input, textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 2px solid var(--background);
    border-radius: 0.5rem;
    font-size: 1.5rem;
    color: var(--background);
    background-color: transparent;
    font-family: 'Nunito', sans-serif;
    resize: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s; /* truque para evitar reapply */
}

input::placeholder, textarea::placeholder {
    color: var(--background);
    font-family: 'Nunito', sans-serif;
}

input:focus, textarea:focus {
    border: 2px solid var(--base);
    outline: none;
    box-shadow: 1px 1px 5px var(--base);
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: var(--base);
    text-shadow: 1px 1px 5px var(--base);
}

textarea {
    height: 10rem;
}

input[type="submit"] {
    width: fit-content;
    padding: 0.5rem 1rem; 
    border-radius: 0.5rem;
    transition: 0.3s ease;  
    cursor: pointer;
}

input[type="submit"]:hover {
    border: 2px solid var(--base);
    box-shadow: 1px 1px 5px var(--base);
    text-shadow: 1px 1px 5px var(--base);
    color: var(--base);
}

.address-container {
    width: 40%;
    text-align: left;
}

.social-media {
    margin: 2rem 0rem;
    list-style-type: none;
    color: #FFF;
}

.social-media li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-media img {
    height: 3.5rem;
    width: 3.5rem;
}

#contact h3 {
    font-size: 2rem;
    color: #FFF;
}

.another-contacts {
    margin: 1.5rem 0rem;
    color: #FFF;
    list-style-type: none;
}

.another-contacts li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.another-contacts img {
    height: 2rem;
    width: 2rem;
}

.contact-whatsapp-button {
    display: block;
    width: fit-content;
    margin-top: 2rem;
    padding: 1rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    color: #FFF;
    border-radius: 0.5rem;
    border: 2px solid var(--background);
    background-color: transparent;
    transition: 0.3s ease;
}

.contact-whatsapp-button:hover {
    color: #25D366;
    border: 2px solid #25D366;
    box-shadow: 0px 0px 3px #25D366;
}

@media (max-width: 530px) {

    form {
        width: 90%;
    }
}

@media (max-width: 930px) {

    #contact {
        padding-top: 3rem;
        flex-direction: column;
        gap: 2rem;
    }

    .form-container {
        width: 100%;
    }

    .address-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contact-whatsapp-button {
        margin-top: 1rem;
    }
}

.whatsapp-button {
    height: 5rem;
    width: 5rem;
    position: fixed;
    bottom: 2em;
    right: 2rem;
    border-radius: 50%;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.whatsapp-button img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

footer {
    background-color: var(--texts);
}

.credits-container {
    width: 90%;
    margin: auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--background);
    font-size: 1.1rem;
    color: #FFF; 
}

footer a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 600px) {
    
    .credits-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

.post-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(-180deg, var(--texts), var(--details));
}

.post-container {
    width: 100rem;
    padding: 5rem 3rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    background-color: var(--background02);
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
}

.post-title-container {
    max-width: 90%;
    margin: auto;
}

.post-title {
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 3rem;
}

.post-credits-container {
    position: relative;
    height: 6rem;
    width: 29rem;
    padding: 1rem;
}

.post-credits-photo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 6rem;
    width: 6rem;
    border: 3px solid var(--details);
    border-radius: 50%;
}

.post-credits-author {
    position: absolute;
    top: 1.5rem;
    left: 4.5rem;
    width: fit-content;
    padding: 0.8rem 1rem 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--background);
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    background-color: var(--details);
}

.post-credits-date {
    position: absolute;
    top: 1.5rem;
    right: 0;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 2rem;
    background-color: var(--details);
    color: var(--background);
}

.post-image-container {
    height: 25rem;
    width: 60rem;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.5);
}

.post-image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.post-subtitle {
    width: 100%;
    margin-top: 1rem;
    font-size: 2rem;
    text-align: left;
}

.post-container > p,
.post-container ol,
.post-container ul {
    width: 100%;
    font-size: 1.7rem;
    text-align: justify;
}

.post-container ol, .post-container ul {
    padding-left: 2rem;
}

.post-container ol {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    gap: 2rem;
}

.post-container ul {
    margin-bottom: 0.5rem;
}

.list-subtitle {
    display: block;
    margin-bottom: 0.5rem;
}

.post-line {
    width: 100%;
    height: 0.1rem;
    background-color: var(--details);
    border: none;
}

.post-footer {
    padding-top: 2rem;
    background-image: linear-gradient(-180deg, var(--base), var(--texts));
}

@media (max-width: 460px) {

    .post-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {

    .post-header {
        padding: 1rem 2rem;
        
    }
}

@media (max-width: 1000px) {

    .post-container {
        width: 100%;
    }

    .nav-bar {
        gap: 0;
    }

    .post-header .header-button {
        display: block;
    }

    .post-image-container {
        max-width: 100%;
    }

}   

.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}


