/* Reset básico */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    background: #fafbfc;
    color: #222;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1);
}

body.page-loaded {
    opacity: 1;
}

header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 0;
}
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 32px; /* Espaço maior para separar da navegação */
}
.logo-img {
    width: 240px; /* aumentado de 180px para 240px */
    margin-bottom: -32px;
    z-index: 1;
}
.main-logo {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.6rem;
    color: #b89fa3;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    background: none;
}
.logo-sub {
    font-size: 1.5rem;
    color: #222;
    font-weight: 400;
    letter-spacing: 4px;
}
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
    margin-bottom: 0;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    text-decoration: none;
    color: #222;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border 0.2s, color 0.2s;
    letter-spacing: 2px;
}
.main-nav a.active, .main-nav a:hover {
    color: #b89fa3;
    border-bottom: 2px solid #b89fa3;
}
.main-nav a.disabled {
    color: #bbb;
    pointer-events: none;
}
.search-bar {
    display: flex;
    align-items: center;
    margin-left: 32px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 2px 8px;
}
.search-bar input {
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    padding: 6px 4px;
    width: 120px;
}
.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #b89fa3;
    padding: 0 4px;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 48px auto 0 auto;
    padding: 0 2vw;
    gap: 48px;
}
.left-content {
    flex: 2;
    min-width: 340px;
}
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: left;
    margin-bottom: 32px;
    text-transform: uppercase;
}
/* Espaçamento extra apenas na página de Procedimentos */
body.procedimentos-page .section-title {
    margin-bottom: 64px;
}
.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-items: center;
}
.procedimento-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    overflow: hidden;
    width: 100%;
    max-width: 370px;
    min-width: 0;
    position: relative;
    margin-bottom: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.procedimento-card:hover {
    box-shadow: 0 8px 32px rgba(184,159,163,0.18);
    transform: translateY(-4px) scale(1.03);
}
.procedimento-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}
.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 18px 0 16px 0;
    color: #222;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
.card-desc {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; /* cobre todo o card, inclusive o título */
    background: rgba(217,207,208,0.96); /* alterado para #d9cfd0 */
    color: #fff;
    font-size: 1.20rem;
    font-weight: 500;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    transition: opacity 0.25s;
    border-radius: 18px;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}
.procedimento-card:hover .card-desc {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.welcome-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 18px 18px 18px;
    text-align: center;
}
.welcome-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.sidebar-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.welcome-text {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 0 0 12px 0;
}
.social-icons a {
    font-size: 1.3rem;
    color: #b89fa3;
    text-decoration: none;
    transition: color 0.2s;
}
.social-icons a:hover {
    color: #222;
}
.newsletter-box {
    background: #f6f8fa;
    border-radius: 12px;
    padding: 18px 12px 16px 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    text-align: center;
}
.newsletter-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.newsletter-form input[type="email"] {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 8px;
    font-size: 1rem;
    outline: none;
}
.newsletter-form button {
    background: #b89fa3;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.newsletter-form button:hover {
    background: #a08a8e;
}

footer {
    background: #fff;
    border-top: 1px solid #eaeaea;
    text-align: center;
    padding: 18px 0 10px 0;
    margin-top: 56px;
    color: #aaa;
    font-size: 0.98rem;
    letter-spacing: 0.5px;
}

/* Ícones sociais em rosa */
.contact-icons img {
    filter: invert(70%) sepia(8%) saturate(400%) hue-rotate(300deg) brightness(90%) contrast(90%);
}

/* Ajuste para hover, se desejar */
.contact-icons a:hover img {
    filter: invert(70%) sepia(8%) saturate(400%) hue-rotate(300deg) brightness(90%) contrast(90%) drop-shadow(0 0 4px #b89fa3);
}

/* Feedbacks */
.feedbacks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 24px;
}
.feedback-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(184,159,163,0.10);
    padding: 28px 24px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 120px;
    transition: box-shadow 0.2s;
    border: 1.5px solid #b89fa3;
}
.feedback-card:hover {
    box-shadow: 0 4px 24px rgba(184,159,163,0.18);
}
.feedback-name {
    font-weight: 700;
    color: #b89fa3;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.feedback-text {
    font-size: 1.08rem;
    color: #222;
    font-style: italic;
    margin: 0;
}
@media (max-width: 1100px) {
    .main-content {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }
    .sidebar {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .feedbacks-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}
@media (max-width: 700px) {
    .main-content {
        padding: 0 2vw;
    }
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px; /* Reduz o espaço entre os cards no mobile */
    }
    .procedimento-card {
        max-width: 100%;
    }
    .sidebar {
        flex-direction: column;
        align-items: center;
    }
    .main-nav {
        flex-direction: column;
        gap: 12px;
        position: relative;
        justify-content: flex-start;
    }
    .main-nav ul {
        gap: 18px;
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        box-shadow: 0 4px 24px rgba(0,0,0,0.07);
        z-index: 100;
        padding: 24px 0 12px 0;
        margin: 0;
        border-bottom: 1px solid #eee;
        overflow-x: hidden;
        opacity: 0;
        transform: translateY(-30px);
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    }
    .main-nav ul.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .main-nav ul li {
        margin: 0 0 18px 0;
        text-align: left;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 24px;
        padding-right: 24px;
        word-break: break-word;
    }
    .main-nav ul li a {
        width: 100%;
        display: block;
        box-sizing: border-box;
        padding: 8px 0;
    }
    .main-nav ul li:last-child {
        margin-bottom: 0;
    }
    .menu-toggle {
        left: 18px;
        right: auto;
        color: #b89fa3;
    }
    .search-bar {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        width: 100%;
        max-width: 260px;
        align-self: center;
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 0;
        margin-top: 18px; /* Adicionado para espaçamento superior no mobile */
    }
    .search-bar input {
        width: 100%;
        text-align: left;
        padding-left: 10px;
        font-size: 1.1rem;
    }
    .search-bar button {
        justify-self: end;
        padding-right: 6px;
        font-size: 1.2rem;
    }
    .section-title {
        margin-top: 2px;
        margin-bottom: 16px;
    }
    body.index-home .main-content {
        margin-top: 8px !important;
        padding-top: 0 !important;
    }
    body.index-home .sidebar {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body.index-home .main-content {
        flex-direction: column-reverse !important;
    }
    body.index-home .sidebar {
        margin-top: 0 !important;
    }
}

/* Menu hamburguer responsivo */
@media (max-width: 700px) {
    .logo-area {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0;
    }
    .menu-toggle {
        display: block;
        position: static;
        margin: 12px auto 0 auto;
        left: unset;
        right: unset;
        color: #b89fa3;
        font-size: 2.1rem;
        background: none;
        border: none;
        z-index: 200;
        cursor: pointer;
        text-align: center;
    }
    .main-nav {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        box-sizing: border-box;
        box-shadow: 0 4px 24px rgba(0,0,0,0.07);
        z-index: 1000;
        padding: 32px 0 12px 0;
        margin: 0;
        border-bottom: 1px solid #eee;
        overflow-x: hidden;
        align-items: flex-start;
        opacity: 0;
        transform: translateY(-60px) scaleY(0.95);
        pointer-events: none;
        transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
        display: flex;
        visibility: hidden;
    }
    .main-nav ul.open {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        pointer-events: auto;
        visibility: visible;
    }
    .main-nav ul li {
        margin: 0 0 18px 0;
        text-align: left;
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        padding-left: 24px;
        padding-right: 24px;
        word-break: break-word;
    }
    .main-nav ul li a {
        width: 100%;
        display: block;
        box-sizing: border-box;
        padding: 8px 0;
    }
    .main-nav ul li:last-child {
        margin-bottom: 0;
    }
}
@media (min-width: 701px) {
    .menu-toggle {
        display: none;
    }
}
@media (max-width: 700px) {
    body.index-home .sidebar {
        margin-bottom: 40px !important;
    }
}
.boas-vindas-cursiva span:first-child {
    font-family: 'Dancing Script', cursive !important;
    color: #b89fa3 !important;
    font-size: 2.2rem !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: none;
    display: inline-block;
    vertical-align: middle;
}
@media (min-width: 701px) {
  body.index-home .main-content {
    gap: 120px !important;
  }
  body.index_home .left-content {
    margin-left: -56px;
  }
  body.index_home .sidebar {
    margin-right: -56px;
  }
  body.index-home .cards-container .procedimento-card {
    max-width: 420px;
  }
}
.welcome-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
@media (max-width: 700px) {
  .welcome-flex {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
  }
  .welcome-box {
    text-align: left;
    padding-left: 12px;
    padding-right: 12px;
  }
}
.sobre-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 24px;
    margin-bottom: 12px;
    float: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
@media (max-width: 700px) {
  .sobre-img {
    width: 70px;
    height: 70px;
    margin-right: 0;
    display: block;
    float: none;
    margin-bottom: 18px;
  }
}
@media (max-width: 700px) {
  .cards-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .procedimento-card {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 380px;
  }
}
