@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Sen:wght@400;800&display=swap');

:root {
    --bg-color: rgb(140, 155, 168);
    --second-bg-color: rgb(241, 236, 230);
    --text-color: #333333;
    --main-color: #665B34;
    --accent-color: rgb(229, 167, 143);
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    color: var(--text-color);
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover {
    color: var(--text-color);
    text-decoration: none;
}

.atendimento-content p,
.escritorio-content p,
.contato-infos p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* AVISO IMPORTANTE */
.aviso-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--text-color);
    padding: 25px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    z-index: 1100;
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
    text-align: center;
}

.aviso-content {
    text-align: center;
}

.aviso-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--main-color);
}

.aviso-content h2 i {
    font-size: 24px;
}

.aviso-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555555;
    text-align: left;
}

.highlight {
    color: var(--main-color);
    font-weight: bold;
    background: rgba(209, 147, 123, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.btn-aviso {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.btn-aviso:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(209, 147, 123, 0.3);
}

@media (max-width: 768px) {
    .aviso-container {
        max-width: 90%;
        max-height: 85vh;
        overflow-y: auto;
        padding: 18px 16px;
        gap: 14px;
    }

    .aviso-content h2 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .aviso-content h2 i {
        font-size: 20px;
    }

    .aviso-content p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .btn-aviso {
        font-size: 14px;
        padding: 10px 20px;
        max-width: 160px;
    }
}

@media (max-width: 440px) {
    .aviso-container p {
        padding-bottom: 20px;
    }
}

@media (max-width: 360px) {
    .aviso-container {
        max-width: 94%;
        padding: 14px 12px;
    }

    .aviso-content p {
        font-size: 12.5px;
    }

    .btn-aviso {
        font-size: 13px;
        padding: 9px 16px;
    }
}

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.main-header.fixed-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar {
    padding: 15px 0;
}

.logo-header {
    width: 60px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--second-bg-color);
}

.navbar-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--second-bg-color);
}

.navbar-nav {
    gap: 20px;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #555555;
    position: relative;
    padding: 5px 10px !important;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--main-color);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.whatsapp-btn:hover {
    background: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    background: transparent;
}

.navbar-toggler span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    transition: all 0.3s;
}

.navbar-toggler span:nth-child(1) { top: 0; }
.navbar-toggler span:nth-child(2) { top: 9px; }
.navbar-toggler span:nth-child(3) { top: 18px; }

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* WHATSAPP MOBILE */
.whatsapp-mobile {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s;
    border: 2px solid white;
}

.whatsapp-mobile:hover {
    transform: scale(1.1);
    background: #128C7E;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

@media (max-width: 991px) {
    .main-header .navbar-collapse{
        border-bottom: 2px solid var(--text-color);
        border-top: 2px solid var(--text-color);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
    }

    .main-header .navbar-nav > li + li {
        border-top: 1px solid rgba(55, 55, 55, 0.1);
    }

    .main-header .navbar-nav > li > .nav-link {
        line-height: 50px;
    }

    .main-header .navbar-nav > li > .nav-link::after {
        display: none;
    }

    .main-header .navbar-toggler {
        display: flex;
        flex-direction: column;
        border: none;
        padding: 4px 9px;
        outline: none;
        box-shadow: none;
    }

    .main-header .navbar-toggler span {
        width: 25px;
        height: 2px;
        background: var(--text-color);
        margin: 4px 0;
        transition: 0.3s;
    }

    .main-header .navbar-toggler:not(.collapsed) span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .main-header .navbar-toggler:not(.collapsed) span:nth-child(2) {
        opacity: 0;
    }

    .main-header .navbar-toggler:not(.collapsed) span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

@media (min-width: 770px) {
    .whatsapp-mobile {
        width: 60px;
        height: 60px;
        font-size: 20px;
        bottom: 14px;
        right: 14px;
    }
}

@media (max-width: 768px) {
    .whatsapp-mobile {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-mobile {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
    }
}

/* SECTIONS */
.section {
    padding: 50px 0;
    position: relative;
    background-image: linear-gradient(rgba(46, 38, 38, 0.7),rgba(61, 46, 51, 0.7)), url(background_images/fundo-index.png);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

.heading {
    text-align: center;
    font-size: 45px;
    font-family: Quicksand;
    color: #fff;
}

@media (max-width: 991px) {
    .section {
        padding: 20px 0;
    }

    .heading {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }

    .heading {
        font-size: 40px;
    }
}

/* HOME */
.home-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(211, 190, 190, 0.7),rgba(221, 192, 200, 0.7)), url(background_images/fundo-home.png);
    background-position: center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

.home-content img {    
    max-width: 800px;
    width: 100%;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@media (max-width: 768px) {
    .home-section {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 40px 20px;
        background-attachment: scroll; /* evita bug no mobile */
    }

    .home-content img {
        max-width: 300px;
        width: 90%;
        animation: none; /* opcional no mobile */
    }
}

@media (max-width: 360px) {
    .home-section {
        min-height: 100vh;
        padding: 70px 35px 20px;
    }

    .home-content img {
        max-width: 300px;
        width: 90%;
    }
}

/* ATENDIMENTO */
.atendimento {
    background: linear-gradient(135deg, var(--second-bg-color) 0%, #f5f1ed 100%);
    padding: 60px 0;
}

.atendimento-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.atendimento-content {
    text-align: left;
}

.atendimento-content .heading {
    text-align: left;
    color: var(--text-color);
    font-size: 36px;
    line-height: 1.3;
}

.atendimento-content p {
    font-size: 17px;
    margin-bottom: 20px;
    color: #555555;
    line-height: 1.7;
}

.atendimento-content a {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    padding: 2px 0;
}

.atendimento-content a:hover {
    border-bottom-color: var(--main-color);
    color: var(--accent-color);
}

.atendimento-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.atendimento-img img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .atendimento {
        padding: 60px 0;
    }

    .atendimento-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .atendimento-content .heading {
        text-align: center;
        font-size: 28px;
    }
    
    .atendimento-content p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .atendimento {
        padding: 50px 0; /* Ajuste para telas muito pequenas */
    }
}

/* O ESCRITÓRIO */
.escritorio {
    background: linear-gradient(135deg, var(--second-bg-color) 0%, #665D3E 100%);
    padding: 50px 0;
}

.escritorio-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.escritorio-img {
    display: flex;
    justify-content: center;
}

.escritorio-img img {
    max-width: 80%;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 3px solid white;
}

.escritorio-content .heading {
    text-align: left;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.escritorio-content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .escritorio-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .escritorio-content .heading {
        text-align: center;
        font-size: 32px;
    }

    .escritorio-content h3 {
        font-size: 18px;
        text-align: center;
    }
    
    .escritorio-content p {
        font-size: 15px;
        text-align: justify;
    }
    
    .escritorio-img img {
        max-width: 70%;
    }
}

/* ÁREAS DE ATUAÇÃO */
#areas-atuacao {
    background-image: linear-gradient(rgba(46, 38, 38, 0.75), #665D3E), url(background_images/fundo-index.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}

#areas-atuacao .heading {
    color: #fff;
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.specialties-grid {
    display: grid;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.specialty-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    transition: transform 0.3s ease;
    border-top: 6px solid #B4994E;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px #B4994E;
}

.specialty-icon {
    font-size: 34px;
    color: #665D3E;
    margin-bottom: 18px;
}

.specialty-card h3 {
    font-size: 20px;
    color: #2e2626;
    margin-bottom: 12px;
    font-weight: 700;
}

.specialty-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

@media (min-width: 1200px) {
    .specialties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    #areas-atuacao {
        padding: 45px 0;
    }

    #areas-atuacao .heading {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .specialties-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .specialty-card {
        padding: 18px 16px;
        border-radius: 12px;
        border-top-width: 4px;
    }

    .specialty-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .specialty-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .specialty-card p {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }
}

@media (max-width: 768px) {
    #areas-atuacao {
        background-attachment: scroll;
    }

    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* CONTATO */
.contato {
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    padding: 40px 0;
}

.contato-container {
    padding: 40px 20px;
}

.contato-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.contato-form h5 {
    color: var(--main-color);
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #666666;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(209, 147, 123, 0.1);
    background: white;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contato-btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contato-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(209, 147, 123, 0.3);
}

.contato-infos {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.contato-infos li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.contato-infos li:hover {
    transform: translateY(-5px);
}

.contato-infos .icon {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contato-infos .col {
    flex: 1;
}

.contato-infos h6 {
    color: var(--main-color);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contato-infos p {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 767px) {
    .contato-form {
        padding: 25px;
    }
    
    .contato-infos li {
        flex-direction: column;
        text-align: center;
    }
    
    .contato-infos .icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .contato-infos p {
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 576px) {

    .contato {
        padding: 30px 0;
    }

    .contato-container {
        padding: 20px 10px;
    }

    .contato-form {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .contato-form h5 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-control {
        font-size: 15px;
        padding: 11px 14px;
        border-radius: 7px;
    }

    textarea.form-control {
        min-height: 100px;
    }

    .contato-btn {
        padding: 13px;
        font-size: 15px;
        letter-spacing: 0.8px;
        border-radius: 7px;
    }
}

@media (max-width: 768px) {
    .specialty-card:hover,
    .contato-infos li:hover {
        transform: none;
        box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    }
}

/* FOOTER */
.footer {
    background: #f8f9fa;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    color: var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(209, 147, 123, 0.3);
}

.copyright {
    color: #666666;
    font-size: 14px;
    margin-bottom: 10px;
}

.developed-by {
    color: #999999;
    font-size: 13px;
    margin-bottom: 25px;
    font-style: italic;
}

.footer-iconTop {
    margin-top: 20px;
}

.footer-iconTop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-iconTop a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(209, 147, 123, 0.3);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; 
        align-items: center; 
    }

    .social-icons {
        margin-bottom: 10px; 
    }

    .copyright {
        margin-bottom: 10px; 
    }

    .footer-iconTop {
        margin-bottom: 10px; 
    }
}