/* Variáveis */
:root {
    --bg-light: #ecebe9;
    --bg-dark: #c1bdba;
    --bg-medium: #e7ded9;
    --btn-color: #b3b2ae;
    --text-main: #56524d;
    --white: #ffffff;
}

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

img,
video {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header {
    padding: 30px 0;
    background: var(--white);
    position: relative;
    z-index: 9999;
}

header nav:first-child {
    margin-bottom: -30px;
}

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

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    width: 470px;
    height: auto;
    display: block;
}

.top-socials {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 10px;
    color: var(--btn-color);
}

.social-icon {
    font-size: 1.8rem;
    color: var(--btn-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover,
.social-icon.wa:hover,
.social-icon.ig:hover {
    transform: translateY(-3px);
    color: var(--text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--btn-color);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 5px;
    z-index: 10001;
}

/* Banner Home */
.hero {
    width: 100%;
    background-color: var(--white);
}

.hero-banner {
    width: 100%;
    max-width: 1600px;
    aspect-ratio: 8 / 3;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 31.5% 68.5%;
    overflow: hidden;
    background-color: var(--bg-medium);
}

.hero-video-side,
.hero-image-side {
    height: 100%;
    overflow: hidden;
}

.hero-video-side video,
.hero-image-side img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    
}

/* Home - Sobre */
.vision-section {
    padding: 100px 0;
    background-color: var(--white);
}

.vision-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.vision-photo-side {
    flex: 0 0 350px;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 25px;
}

.photo-frame-med img {
    width: 20%;
    height: auto;
    display: block;
    margin-bottom: 25px;
}

.photo-footer h4 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 10px;
        text-align: left;
}

.photo-footer p {
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 250;
    margin: 10px 0 25px;
    color: var(--text-main);
}

.tagline-vision {
    font-size: 1.0rem;
    letter-spacing: 1px;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: left;
    margin-bottom: 25px;
}

.btn-vision,
.btn-main {
    background-color: var(--btn-color);
    color: var(--white);
    border: none;
    cursor: pointer;
}

.btn-vision {
    padding: 18px 30px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
}

.btn-main {
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.7rem;
    margin-top: 20px;
}

.text-side {
    flex: 1;
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.55;
    margin-left: 30px;
}

.doctor-title,
.name-header {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.paragraph {
    margin-bottom: 5px;
}

.text-block {
    margin-bottom: 10px;
}

.text-block p {
    margin-bottom: 1px;
}

.sub-topic {
    padding-left: 25px;
    font-size: 0.9rem;
}

.highlight-separator {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--bg-dark);
}

.highlight-separator p {
    margin-bottom: 15px;
}

.highlight-separator strong {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
}

/* Home - Especialidades */
.specialties-section {
    padding: 100px 0;
    background-color: #ebeae8;
}

.specialties-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.specialties-photo {
    flex: 0 0 380px;
}

.specialties-photo img {
    width: 100%;
    height: 470px;
    margin-top: 80px;
    border: 1px solid #000;
    display: block;
    object-fit: cover;
}

.specialties-content {
    flex: 1;
    color: var(--text-main);
}

.specialties-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--btn-color);
    display: inline-block;
}

.specialties-group {
    margin-bottom: 10px;
}

.specialties-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.specialties-group ul {
    list-style: none;
    padding: 0;
}

.specialties-group li {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Rodapé */
.footer-section {
    padding: 80px 0;
    background-color: #cccccc;
    color: #4a4a4a;
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 100px;
}

.footer-info {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
}

.doctor-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.footer-contacts {
    margin-top: 30px;
}

.footer-form {
    flex: 1;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #999;
    color: #4a4a4a;
    font-size: 1.1rem;
    outline: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #666;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit {
    margin-top: 20px;
    background-color: var(--text-main);
    color: var(--white);
    border: none;
    padding: 10px 40px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* Página Medicina */
.medicina-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.medicina-wrapper .medicina-hero {
    padding: 55px 0 45px;
    background-color: var(--bg-dark);
    text-align: left;
    border-bottom: 1px solid #eee;
        
}

.medicina-hero h1 {
    font-weight: 200;
    font-size: 1.7rem;
    color: #333;
    margin-top: 25px;
}

.medicina-hero .tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.1rem;
    color: #888;
    display: block;
}

.content-flow {
    padding: 10px;
}

.med-section {
    margin-bottom: 70px;
}

.med-section h2 {
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 25px;
    font-size: 1rem;
}

.text-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.medicina-wrapper .vision-section {
    padding: 45px 0 35px;
}

.medicina-wrapper .vision-wrapper {
    max-width: 1200px;
    gap: 70px;
}

.medicina-photo-side {
    flex: 0 0 250px;
}

.medicina-photo-side img {
    width: 355px;
    height: auto;
    display: block;    
}

.medicina-text-side {
    flex: 1;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--text-main);
}

.medicina-text-side .doctor-title {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.medicina-text-side p {
    margin-bottom: 10px;
}

.neuro-focus {
    background: var(--bg-medium);
    color: var(--text-main);
    padding: 50px;
    border-radius: 4px;
}

.neuro-focus h2 {
    color: var(--text-main);
    border-left: 3px solid var(--white);
    padding-left: 20px;
}

.neuro-focus p {
    font-size: 1.15rem;
    line-height: 1.7;
}

.oath-card {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.oath-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    margin-left: 20px;
}

.oath-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

/* Blog */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 80px;
}

.blog-header-v2 {
    margin-left: 50px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.grid-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.image-wrapper {
    width: 100%;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 2px;
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.6s ease;
}

.grid-item.tall img {
    height: 360px;
}

.grid-item:hover img {
    transform: scale(1.04);
}

.image-caption {
    padding: 15px 0;
}

.image-caption h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    margin-bottom: 5px;
}

.image-caption p {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

/* Blog Group - Carrossel */
.detail-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 60px;
    margin-bottom: 80px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

.detail-grid.detail-carousel-track {
    display: flex;
    gap: 30px;
    overflow: hidden;
    scroll-behavior: smooth;
}

.detail-grid.detail-carousel-track .detail-item {
    flex: 0 0 calc((100% - 90px) / 4);
}

.detail-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.detail-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.detail-card {
    background: var(--white);
    padding: 25px 20px;
    margin: -15px 15px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.detail-card p {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #777;
}

.detail-carousel-btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 20;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

.detail-prev {
    left: 10px;
}

.detail-next {
    right: 10px;
}

/* Botão Voltar */
.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 40px 0;
    padding-left: 0;
    transition: all 0.3s ease;
}

.btn-back i {
    margin-right: 10px;
    font-size: 0.7rem;
}

.btn-back:hover {
    color: var(--text-main);
    transform: translateX(-5px);
}

/* Página Obrigado */
.obrigado-header {
    justify-content: center;
}

.obrigado-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
}

.obrigado-box {
    max-width: 650px;
}

.obrigado-box h1 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text-main);
}

.obrigado-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--text-main);
}

.btn-voltar {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--text-main);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.btn-voltar:hover {
    opacity: 0.8;
}

/* Responsivo Tablet */
@media (max-width: 1024px) {
    .hero-banner {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }

    .hero-video-side {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .hero-video-side video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-image-side img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .vision-wrapper,
    .specialties-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .vision-photo-side,
    .specialties-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        text-align: center;
        margin-bottom: 40px;
    }

    .text-side {
        margin-left: 0;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 20px;
    }

    .detail-grid.detail-carousel-track .detail-item {
        flex: 0 0 calc((100% - 30px) / 2);
    }
}

/* Responsivo Mobile */
@media (max-width: 768px) {

     main header {
        position: relative;
        z-index: 1;
    }


    body > header {
        position: relative;
        z-index: 1000;
    }

    header {
        position: relative;
        z-index: 9999;
        overflow: visible;
    }

    header nav.container {
        overflow: visible;
    }

    header nav.container:last-of-type {
        position: relative;
        z-index: 99999;
    }


    header nav:first-child {
        margin-bottom: -10px;
    }

    .top-socials {
        justify-content: right;
        width: 100%;
        margin: 0;
    }

    .social-icon {
        font-size: 1.6rem;
        
    }

    .logo {
        flex: 1;
        min-width: 0;

    }

    .logo img {
        width: 350px;
        height: 80px;
        max-width: 100%;
        margin-top: 20px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        margin-right: 0;
        margin-top: 20px;
    }

  .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;

        width: 260px;
        max-width: calc(100vw - 32px);

        display: none;
        flex-direction: column;

        background: #fff;
        padding: 18px 22px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);

        z-index: 2000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        list-style: none;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 11px 0;
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.3;
        white-space: normal;
        text-align: left;
    }

    .hero {
        margin-bottom: 50px;
        width: 100%;

    }

    .hero-video-side {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .hero-image-side {
        width: 100%px;
        height: 100%px;

    }

    .hero-image-side img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position:  top;
        
    }

    .vision-section,
    .specialties-section {
        padding: 60px 0;
    }
    
    .vision-wrapper,
    .specialties-wrapper,
    .footer-wrapper {
        gap: 40px;
    }

    .tagline-vision {
        width: 100%;
        max-width: 100%;
        font-size: 1rem;
    }

    .footer-wrapper {
        flex-direction: column;
        margin-left: 20px;

    }

    .footer-form {
        margin-right: 30px;
    }

    .medicina-wrapper .container {
        margin-left: 10px;
        margin-right: 20px;
        padding-left: 0;
        padding-right: 0;

    }

    .medicina-wrapper .medicina-hero .container {
        margin-left: 30px;
        margin-right: 20px;
        padding: 0 10px;
    }

    .medicina-hero h1 {
        font-size: 1.8rem;
    }

    .medicina-wrapper .vision-wrapper {
        flex-direction: column;
        gap: 25px;
        align-items: left;
        text-align: left;
    }

    .medicina-photo-side {
        flex: 0 0 auto;

    }

    .medicina-photo-side img {
        width: 210px;

    }

    .medicina-text-side {
        padding-top: 0;
        font-size: 1rem;

    }

    .med-section {
        margin-left: 10px;
        margin-right: 20px;   
        
    }

    .neuro-focus {
        padding: 30px;
        margin-right: 20px;   
    }

    .blog-header-v2 {
        margin-left: 0;
    }

    .detail-carousel-wrapper {
        padding: 0 45px;
    }

    .detail-grid.detail-carousel-track .detail-item {
        flex: 0 0 100%;
    }

    .detail-prev {
        left: 0;
    }

    .detail-next {
        right: 0;
    }
}

/* Responsivo Mobile Pequeno */
@media (max-width: 500px) {
    .container {
        padding: 0 14px;
    }

    .logo img {
        width: 240px;
    }

    .hero-image-side {
        height: 520px;
    }

    .image-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .grid-item img,
    .grid-item.tall img {
        height: 320px;
    }

    .obrigado-box h1 {
        font-size: 1.6rem;
    }

    .obrigado-box p {
        font-size: 1rem;
    }
}

/* depoimento
/* Página Cirurgia com Paciente Acordado */

.flag{
    margin-left:6px;
    font-size:1.1em;
    vertical-align:middle;
}

.country-flag {
    width: 26px;
    height: 18px;
    object-fit: cover;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    border-radius: 2px;
}

.awake-hero {
    background-color: #e7ded9;
    padding: 80px 0 55px;
}

.awake-layout {
    display: grid;
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

.awake-image-column {
    width: 100%;
}

.awake-image-frame {
    margin: 0;
    width: 100%;
    overflow: hidden;
    background-color: #d7d0cc;
}

.awake-image-frame img {
    width: 100%;
    height: 570px;
    display: block;
    object-position: left top;
}

.awake-content {
    min-width: 0;
    color: #56524d;
}

.awake-title-block {
    padding: 0;
    margin: 0 0 48px;
    background: transparent;
    position: static;
    z-index: auto;
}

.awake-title-block h1 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    line-height: 1.03;
    font-weight: 700;
    letter-spacing: -1px;
    color: #56524d;
}

.awake-title-block h1 span {
    display: inline-block;
    margin-top: 8px;
}

.awake-quote {
    margin: 0;
    padding: 0;
    border: 0;
    font-style: normal;
    color: #56524d;
}

.awake-quote p {
    margin: 0 0 34px;
    font-size: clamp(0.75rem, 1.9vw, 1.12rem);
    line-height: 1.32;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.awake-quote .awake-highlight {
    margin-top: 38px;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.16;
}

.awake-thanks {
    background-color: #e7ded9;
    padding: 15px 0 70px;
    color: #56524d;
}

.awake-thanks .container {
    max-width: 1200px;
}

.awake-thanks p {
    margin: 0 0 8px;
    font-size: clamp(1rem, 1.65vw, 1.05rem);
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 0.2px;
}

.awake-thanks strong {
    font-weight: 400;
}

.awake-special-thanks {
    margin-top: 35px;
}

.awake-special-thanks p {
    margin-bottom: 2px;
}

/* Página Cirurgia com Paciente Acordado - Tablet */

@media (max-width: 1024px) {
    .awake-hero {
        padding: 60px 0 40px;
    }

    .awake-layout {
        grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
        gap: 35px;
    }

    .awake-image-frame img {
        height: 520px;
    }

    .awake-title-block {
        margin-bottom: 35px;
    }

    .awake-quote p {
        margin-bottom: 27px;
    }
}

/* Página Cirurgia com Paciente Acordado - Mobile */

@media (max-width: 768px) {
    .awake-hero {
        padding: 35px 0 25px;
    }

    .awake-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .awake-image-column {
        order: 1;
    }

    .awake-content {
        order: 2;
    }

    .awake-image-frame img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .awake-title-block {
        margin-bottom: 28px;
    }

    .awake-title-block h1 {
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.07;
    }

    .awake-quote p {
        font-size: 1.08rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .awake-quote .awake-highlight {
        margin-top: 30px;
    }

    .awake-thanks {
        padding: 20px 0 50px;
    }

    .awake-thanks p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .awake-special-thanks {
        margin-top: 28px;
    }
}

/* Página Cirurgia com Paciente Acordado - Mobile Pequeno */

@media (max-width: 500px) {
    .awake-hero .container,
    .awake-thanks .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .awake-title-block h1 {
        font-size: 2rem;
    }
}

